Compare commits
183
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5da9808a4d | ||
|
|
c345b65853 | ||
|
|
ebbb8057c2 | ||
|
|
4d67a6986b | ||
|
|
d72f4b6fcb | ||
|
|
737cb95adb | ||
|
|
1a561f3bb0 | ||
|
|
f4f390f325 | ||
|
|
6a325d2b22 | ||
|
|
a7f144f28b | ||
|
|
7d3d1231a9 | ||
|
|
24379db88d | ||
|
|
ff10249ab5 | ||
|
|
64e8c8d964 | ||
|
|
f3521e7007 | ||
|
|
fb915b4321 | ||
|
|
fa9a28c6f3 | ||
|
|
ff4c6fa1bb | ||
|
|
81c85f8049 | ||
|
|
67eba1b472 | ||
|
|
df27574247 | ||
|
|
a9c377c3c8 | ||
|
|
94a5773412 | ||
|
|
5e68410d4e | ||
|
|
5ec635aa40 | ||
|
|
700fc05411 | ||
|
|
c9c652eece | ||
|
|
d96d1451ab | ||
|
|
a45ec30cf0 | ||
|
|
8d8e3833f6 | ||
|
|
760263b78a | ||
|
|
128888f605 | ||
|
|
8e8f501279 | ||
|
|
9e0ecefd64 | ||
|
|
0f4a0147fd | ||
|
|
21e8cf9060 | ||
|
|
e2d8c0200f | ||
|
|
04ef0632ee | ||
|
|
d2b2b1b4a6 | ||
|
|
a8021ee6e1 | ||
|
|
63feac9423 | ||
|
|
c918f4f36d | ||
|
|
b89293418d | ||
|
|
ff1ca1412a | ||
|
|
6bd766f857 | ||
|
|
004f1336e6 | ||
|
|
b4c721d7bc | ||
|
|
e3f41666c6 | ||
|
|
271c1e22ca | ||
|
|
bef7b39cbe | ||
|
|
c78f978ede | ||
|
|
b06a62952d | ||
|
|
f205128cc0 | ||
|
|
16f6787aa9 | ||
|
|
322c9f03e1 | ||
|
|
4371574b7f | ||
|
|
f41127a0f9 | ||
|
|
b3f1114a68 | ||
|
|
b04c974407 | ||
|
|
94139f465e | ||
|
|
6f61bc8d95 | ||
|
|
319c647e13 | ||
|
|
a794a3780a | ||
|
|
4839c76fb5 | ||
|
|
e52c035fcd | ||
|
|
d306194c51 | ||
|
|
45009cd0e4 | ||
|
|
0e5928b13a | ||
|
|
2cb1861db6 | ||
|
|
7766d41c42 | ||
|
|
e3fbc8510a | ||
|
|
67f97dbe73 | ||
|
|
963786758b | ||
|
|
240e9ca907 | ||
|
|
a6486d7f08 | ||
|
|
bdaadd17dd | ||
|
|
e4ad489448 | ||
|
|
2a00253937 | ||
|
|
276a0c2125 | ||
|
|
c3f36b2b9f | ||
|
|
f9c42a32dd | ||
|
|
bae4fd9f98 | ||
|
|
c4024fe208 | ||
|
|
4ab4fca89d | ||
|
|
30e66f0ea0 | ||
|
|
dbf15b335e | ||
|
|
645b8063e1 | ||
|
|
f868e9ed68 | ||
|
|
9917935248 | ||
|
|
2e476bc742 | ||
|
|
bf91d9afc9 | ||
|
|
5e3c7570fa | ||
|
|
b2c320dc0b | ||
|
|
6d9d715948 | ||
|
|
9bce79f797 | ||
|
|
b259c975a3 | ||
|
|
db07c4a120 | ||
|
|
c0a4682dcc | ||
|
|
8879272a6b | ||
|
|
e0ed67357c | ||
|
|
1c5091539c | ||
|
|
dbf9bc1a54 | ||
|
|
0cb193c119 | ||
|
|
a187c34638 | ||
|
|
ae5c65c3cf | ||
|
|
3ad9b05e27 | ||
|
|
92dd9ecab2 | ||
|
|
7418d272a7 | ||
|
|
7a9483efba | ||
|
|
e19c4f7e19 | ||
|
|
2415e6bc86 | ||
|
|
8c07dcda24 | ||
|
|
90892fd236 | ||
|
|
764e9ddec0 | ||
|
|
a608b3451b | ||
|
|
e834d3724b | ||
|
|
f20aed95d0 | ||
|
|
83a16d144c | ||
|
|
ff8b029c9d | ||
|
|
2abade3f80 | ||
|
|
5600c2067b | ||
|
|
8e10051100 | ||
|
|
3070cf26cd | ||
|
|
04df80d907 | ||
|
|
b9efb12d4d | ||
|
|
552cb948ed | ||
|
|
e41bcf0cce | ||
|
|
f5b1f913f9 | ||
|
|
b5a1d227fd | ||
|
|
63fa9c1d07 | ||
|
|
3db508a759 | ||
|
|
15e2f24046 | ||
|
|
c138bbd3d7 | ||
|
|
b7bb8be35a | ||
|
|
994234e557 | ||
|
|
d552be8484 | ||
|
|
c536bfc7f5 | ||
|
|
744ce7705d | ||
|
|
649b4a5280 | ||
|
|
96aa970604 | ||
|
|
d8f39269b9 | ||
|
|
d789efba07 | ||
|
|
4fa37e52f7 | ||
|
|
4dbdd06d6d | ||
|
|
8422d2d0c7 | ||
|
|
b7f0040831 | ||
|
|
57386347ee | ||
|
|
e678d24a39 | ||
|
|
3f8b9998ca | ||
|
|
54bba07420 | ||
|
|
537f0559ab | ||
|
|
ccf8ce7a06 | ||
|
|
8f5c8f0a8e | ||
|
|
334635ce74 | ||
|
|
46f1d211e1 | ||
|
|
0cef10f63f | ||
|
|
496b3570e6 | ||
|
|
a93fc0443e | ||
|
|
7ffb28f753 | ||
|
|
0ba0418fac | ||
|
|
8462cbaebb | ||
|
|
ab8d7e5184 | ||
|
|
162d45a241 | ||
|
|
8aaaab37b7 | ||
|
|
45bf3a402a | ||
|
|
31f4d5dbfe | ||
|
|
a923b0eefe | ||
|
|
eeda4d377e | ||
|
|
3bd1034639 | ||
|
|
3a952293b4 | ||
|
|
966ab8336b | ||
|
|
1b0417824f | ||
|
|
3efe809d27 | ||
|
|
87a0ac7cd1 | ||
|
|
56e995c320 | ||
|
|
b44a67b7e7 | ||
|
|
f687bc95e9 | ||
|
|
46ea79bab5 | ||
|
|
4672647293 | ||
|
|
9383b3ab13 | ||
|
|
4d1619ba47 | ||
|
|
357da3219b | ||
|
|
d118eee014 |
@@ -11,6 +11,7 @@
|
||||
/docker/extensions
|
||||
/docker/data
|
||||
/docker/plugins
|
||||
/docker/dist
|
||||
/public/scripts/extensions/third-party
|
||||
|
||||
# --- Plugins (keep only package files) ---
|
||||
|
||||
@@ -102,5 +102,28 @@ module.exports = {
|
||||
// These rules should eventually be enabled.
|
||||
'no-async-promise-executor': 'off',
|
||||
'no-inner-declarations': 'off',
|
||||
// Additional formatting rules based on codebase conventions
|
||||
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
||||
'array-bracket-spacing': ['error', 'never'],
|
||||
'computed-property-spacing': ['error', 'never'],
|
||||
'block-spacing': ['error', 'always'],
|
||||
'keyword-spacing': ['error', { before: true, after: true }],
|
||||
'space-before-blocks': ['error', 'always'],
|
||||
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
|
||||
'space-in-parens': ['error', 'never'],
|
||||
'comma-spacing': ['error', { before: false, after: true }],
|
||||
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
||||
'func-call-spacing': ['error', 'never'],
|
||||
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }],
|
||||
'padded-blocks': ['error', 'never'],
|
||||
'no-whitespace-before-property': 'error',
|
||||
'space-unary-ops': ['error', { words: true, nonwords: false }],
|
||||
'arrow-spacing': ['error', { before: true, after: true }],
|
||||
'template-curly-spacing': ['error', 'never'],
|
||||
'rest-spread-spacing': ['error', 'never'],
|
||||
'generator-star-spacing': ['error', { before: false, after: true }],
|
||||
'yield-star-spacing': ['error', { before: false, after: true }],
|
||||
'template-tag-spacing': ['error', 'never'],
|
||||
'switch-colon-spacing': ['error', { after: true, before: false }],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ Angefangen im Februar 2023 als Fork von TavernAI 1.2.8 hat SillyTavern nun über
|
||||
|
||||
## Brauche ich einen leistungsstarken PC, um SillyTavern auszuführen?
|
||||
|
||||
Die Hardwareanforderungen sind minimal: Es läuft auf allem, was NodeJS 18 oder höher ausführen kann. Wenn du LLM-Inferenz auf deinem lokalen Rechner durchführen möchtest, empfehlen wir eine NVIDIA-Grafikkarte der 3000er-Serie mit mindestens 6 GB VRAM, aber die tatsächlichen Anforderungen können je nach Modell und Backend, das du verwendest, variieren.
|
||||
Die Hardwareanforderungen sind minimal: Es läuft auf allem, was NodeJS 20 oder höher ausführen kann. Wenn du LLM-Inferenz auf deinem lokalen Rechner durchführen möchtest, empfehlen wir eine NVIDIA-Grafikkarte der 3000er-Serie mit mindestens 6 GB VRAM, aber die tatsächlichen Anforderungen können je nach Modell und Backend, das du verwendest, variieren.
|
||||
|
||||
## Fragen oder Vorschläge?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern(略してST)は、テキスト生成LLM、画像生成エンジ
|
||||
|
||||
## SillyTavernを実行するには強力なPCが必要ですか?
|
||||
|
||||
ハードウェア要件は最小限です。NodeJS 18以上を実行できるものであれば何でも動作します。ローカルマシンでLLM推論を行う場合は、少なくとも6GBのVRAMを搭載した3000シリーズのNVIDIAグラフィックスカードを推奨しますが、実際の要件は使用するモデルやバックエンドによって異なる場合があります。
|
||||
ハードウェア要件は最小限です。NodeJS 20以上を実行できるものであれば何でも動作します。ローカルマシンでLLM推論を行う場合は、少なくとも6GBのVRAMを搭載した3000シリーズのNVIDIAグラフィックスカードを推奨しますが、実際の要件は使用するモデルやバックエンドによって異なる場合があります。
|
||||
|
||||
## 質問や提案はありますか?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern(짧게는 ST)은 텍스트 생성 LLM, 이미지 생성 엔진, TTS
|
||||
|
||||
## SillyTavern을 위해서 좋은 성능의 PC가 필요한가요?
|
||||
|
||||
하드웨어 요구 사항은 거의 없습니다: NodeJS 18 이상을 실행할 수 있는 모든 환경에서 작동합니다. 다만 로컬 LLM 모델을 사용할 경우, 최소 6GB VRAM 이상의 3000번대 NVIDIA 그래픽 카드를 권장하지만, 실제 요구 사항은 사용하는 모델과 백엔드에 따라 달라질 수 있습니다.
|
||||
하드웨어 요구 사항은 거의 없습니다: NodeJS 20 이상을 실행할 수 있는 모든 환경에서 작동합니다. 다만 로컬 LLM 모델을 사용할 경우, 최소 6GB VRAM 이상의 3000번대 NVIDIA 그래픽 카드를 권장하지만, 실제 요구 사항은 사용하는 모델과 백엔드에 따라 달라질 수 있습니다.
|
||||
|
||||
## 질문이나 제안이 있으신가요?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern (или сокращенно ST) - это локально уста
|
||||
|
||||
## Нужен ли мне мощный компьютер для запуска SillyTavern?
|
||||
|
||||
Требования к оборудованию минимальны: он будет работать на всем, что может запустить NodeJS 18 или выше. Если вы собираетесь выполнять инференс LLM на своем локальном компьютере, мы рекомендуем видеокарту NVIDIA 3000-й серии с не менее чем 6 ГБ видеопамяти, но фактические требования могут варьироваться в зависимости от модели и используемого вами бэкенда.
|
||||
Требования к оборудованию минимальны: он будет работать на всем, что может запустить NodeJS 20 или выше. Если вы собираетесь выполнять инференс LLM на своем локальном компьютере, мы рекомендуем видеокарту NVIDIA 3000-й серии с не менее чем 6 ГБ видеопамяти, но фактические требования могут варьироваться в зависимости от модели и используемого вами бэкенда.
|
||||
|
||||
## Вопросы или предложения?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern 于 2023 年 2 月作为 TavernAI 1.2.8 的一个分支开始,如
|
||||
|
||||
## 我需要一台性能强大的电脑来运行 SillyTavern 吗?
|
||||
|
||||
硬件要求很低:任何可以运行 NodeJS 18 或更高版本的设备都可以运行它。如果您打算在本地计算机上进行 LLM 推理,我们建议使用至少具有 6GB VRAM 的 3000 系列 NVIDIA 显卡,但实际要求可能会根据模型和您使用的后端而有所不同。
|
||||
硬件要求很低:任何可以运行 NodeJS 20 或更高版本的设备都可以运行它。如果您打算在本地计算机上进行 LLM 推理,我们建议使用至少具有 6GB VRAM 的 3000 系列 NVIDIA 显卡,但实际要求可能会根据模型和您使用的后端而有所不同。
|
||||
|
||||
## 有问题或建议?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern 起源於 2023 年 2 月,作為 TavernAI 1.2.8 的分支版本發
|
||||
|
||||
## 我需要高效能電腦才能運行 SillyTavern 嗎?
|
||||
|
||||
SillyTavern 的硬體需求相當低。任何能夠運行 NodeJS 18 或更高版本的設備都可以執行。若您打算在本地機器上進行 LLM 推理,我們建議使用擁有至少 6GB VRAM 的 3000 系列 NVIDIA 顯示卡,但實際需求可能因模型和您使用的後端而異。
|
||||
SillyTavern 的硬體需求相當低。任何能夠運行 NodeJS 20 或更高版本的設備都可以執行。若您打算在本地機器上進行 LLM 推理,我們建議使用擁有至少 6GB VRAM 的 3000 系列 NVIDIA 顯示卡,但實際需求可能因模型和您使用的後端而異。
|
||||
|
||||
## 有任何問題或建議?
|
||||
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@ We have a [Documentation website](https://docs.sillytavern.app/) to answer most
|
||||
|
||||
SillyTavern (or ST for short) is a locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models.
|
||||
|
||||
Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over 200 contributors and 2 years of independent development under its belt, and continues to serve as a leading software for savvy AI hobbyists.
|
||||
Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over 300 contributors and 3 years of independent development under its belt, and continues to serve as a leading software for savvy AI hobbyists.
|
||||
|
||||
## Our Vision
|
||||
|
||||
@@ -33,7 +33,7 @@ Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over
|
||||
|
||||
## Do I need a powerful PC to run SillyTavern?
|
||||
|
||||
The hardware requirements are minimal: it will run on anything that can run NodeJS 18 or higher. If you intend to do LLM inference on your local machine, we recommend a 3000-series NVIDIA graphics card with at least 6GB of VRAM, but actual requirements may vary depending on the model and backend you choose to use.
|
||||
The hardware requirements are minimal: it will run on anything that can run NodeJS 20 or higher. If you intend to do LLM inference on your local machine, we recommend a 3000-series NVIDIA graphics card with at least 6GB of VRAM, but actual requirements may vary depending on the model and backend you choose to use.
|
||||
|
||||
## Questions or suggestions?
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ jobs:
|
||||
# It's currently not possible to have `branches` under the `schedule` trigger
|
||||
- name: Checkout the release branch (on release)
|
||||
if: ${{ github.event_name == 'release' || github.event_name == 'push' }}
|
||||
uses: actions/checkout@v4.1.2
|
||||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
||||
with:
|
||||
ref: "release"
|
||||
|
||||
- name: Checkout the staging branch
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
uses: actions/checkout@v4.1.2
|
||||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
||||
with:
|
||||
ref: "staging"
|
||||
|
||||
@@ -55,13 +55,13 @@ jobs:
|
||||
|
||||
# Setting up QEMU for multi-arch image build
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
|
||||
|
||||
- name: Extract metadata (tags, labels) for the image
|
||||
uses: docker/metadata-action@v5.5.1
|
||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
|
||||
id: metadata
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
@@ -74,7 +74,7 @@ jobs:
|
||||
|
||||
# Login into package repository as the person who created the release
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
@@ -84,7 +84,7 @@ jobs:
|
||||
# Tag it with branch name
|
||||
# Assumes branch name is the version number
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5.3.0
|
||||
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Auto-Label Issues (Based on Issue Content)
|
||||
# only auto label based on issue content once, on open (to prevent re-labeling removed labels)
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
|
||||
# Issue Labeler
|
||||
# https://github.com/marketplace/actions/regex-issue-labeler
|
||||
uses: github/issue-labeler@v3.4
|
||||
uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
|
||||
with:
|
||||
configuration-path: .github/issues-auto-labels.yml
|
||||
enable-versioned-regex: 0
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
if: contains(fromJSON('["👩💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name)
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
if: contains(fromJSON('["❌ wontfix","👍 Approved","👩💻 Good First Issue"]'), github.event.label.name)
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
if: github.event.label.name == '🪲 Confirmed'
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
- name: Remove Stale Label
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -150,12 +150,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Post Issue Comments Based on Labels
|
||||
# Label Commenter
|
||||
# https://github.com/marketplace/actions/label-commenter
|
||||
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||
uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
|
||||
with:
|
||||
config_file: .github/issues-auto-comments.yml
|
||||
github_token: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Extract Linked Issues from Commit Message
|
||||
id: extract_issues
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Mark Issues/PRs without Activity
|
||||
# Close Stale Issues and PRs
|
||||
# https://github.com/marketplace/actions/close-stale-issues
|
||||
uses: actions/stale@v9.1.0
|
||||
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
with:
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
days-before-stale: 183
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
- name: Mark Issues/PRs Awaiting User Response
|
||||
# Close Stale Issues and PRs
|
||||
# https://github.com/marketplace/actions/close-stale-issues
|
||||
uses: actions/stale@v9.1.0
|
||||
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
with:
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
days-before-stale: 7
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
- name: Mark Issues with Alternative Exists
|
||||
# Close Stale Issues and PRs
|
||||
# https://github.com/marketplace/actions/close-stale-issues
|
||||
uses: actions/stale@v9.1.0
|
||||
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
with:
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
days-before-stale: 7
|
||||
|
||||
@@ -7,26 +7,28 @@ on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for OIDC
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
|
||||
with:
|
||||
node-version: 22
|
||||
- run: npm ci
|
||||
node-version: 24
|
||||
- run: npm ci --omit=dev --ignore-scripts
|
||||
|
||||
publish-npm:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: npm ci --omit=dev --ignore-scripts
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Remove Pending Labels on Close
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: remove-labels
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Label if Author is a Repo Maintainer
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -12,82 +12,6 @@ permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
run-eslint:
|
||||
name: ✅ Check ESLint on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
# Override permissions, linter likely needs write access to issues
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@v4.3.0
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Run npm install
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
# Action ESLint
|
||||
# https://github.com/marketplace/actions/action-eslint
|
||||
uses: sibiraj-s/action-eslint@v3.0.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
|
||||
eslint-args: '--ignore-path=.gitignore --quiet'
|
||||
extensions: 'js'
|
||||
annotations: true
|
||||
ignore-patterns: |
|
||||
dist/
|
||||
lib/
|
||||
|
||||
run-tests:
|
||||
name: ✅ Run Unit Tests on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@v4.3.0
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install root dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install test dependencies
|
||||
run: npm ci --prefix tests
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:unit --prefix tests
|
||||
|
||||
label-by-size:
|
||||
name: 🏷️ Label PR by Size
|
||||
# This job should run after all others, to prevent possible concurrency issues
|
||||
@@ -107,7 +31,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -116,7 +40,7 @@ jobs:
|
||||
- name: Label PR Size
|
||||
# Pull Request Size Labeler
|
||||
# https://github.com/marketplace/actions/pull-request-size-labeler
|
||||
uses: codelytv/pr-size-labeler@v1.10.2
|
||||
uses: codelytv/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1.10.3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
|
||||
xs_label: '🟩 ⬤○○○○'
|
||||
@@ -144,7 +68,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -153,12 +77,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Apply Labels Based on Branch Name and Target Branch
|
||||
# Pull Request Labeler
|
||||
# https://github.com/marketplace/actions/labeler
|
||||
uses: actions/labeler@v5.0.0
|
||||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||
with:
|
||||
configuration-path: .github/pr-auto-labels-by-branch.yml
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
@@ -175,7 +99,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -184,12 +108,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Apply Labels Based on Changed Files
|
||||
# Pull Request Labeler
|
||||
# https://github.com/marketplace/actions/labeler
|
||||
uses: actions/labeler@v5.0.0
|
||||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding
|
||||
with:
|
||||
@@ -209,7 +133,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -218,7 +142,7 @@ jobs:
|
||||
- name: Add Vibe Coded Label
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -246,7 +170,7 @@ jobs:
|
||||
# This action runs on comments, which will not receive the env vars for this
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -256,7 +180,7 @@ jobs:
|
||||
if: always()
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available
|
||||
@@ -281,7 +205,7 @@ jobs:
|
||||
# GitHub Script
|
||||
# https://github.com/marketplace/actions/github-script
|
||||
id: label-check
|
||||
uses: actions/github-script@v7.0.1
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
with:
|
||||
script: |
|
||||
const prLabels = context.payload.pull_request.labels.map(label => label.name);
|
||||
@@ -325,7 +249,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -334,12 +258,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Post PR Comments Based on Labels
|
||||
# Label Commenter for PRs
|
||||
# https://github.com/marketplace/actions/label-commenter
|
||||
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||
uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
|
||||
with:
|
||||
config_file: .github/pr-auto-comments.yml
|
||||
github_token: ${{ steps.app.outputs.token }}
|
||||
@@ -365,7 +289,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Check Merge Conflicts
|
||||
# Label Conflicting Pull Requests
|
||||
# https://github.com/marketplace/actions/label-conflicting-pull-requests
|
||||
uses: eps1lon/actions-label-merge-conflict@v3.0.3
|
||||
uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3
|
||||
with:
|
||||
dirtyLabel: '🚫 Merge Conflicts'
|
||||
repoToken: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
name: ✅ Pull Request Checks
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run-eslint:
|
||||
name: ✅ Check ESLint on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
# Override permissions, linter likely needs write access to issues
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Run npm install
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Run ESLint
|
||||
# Action ESLint
|
||||
# https://github.com/marketplace/actions/action-eslint
|
||||
uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
|
||||
eslint-args: '--ignore-path=.gitignore --quiet'
|
||||
extensions: 'js'
|
||||
annotations: true
|
||||
ignore-patterns: |
|
||||
dist/
|
||||
lib/
|
||||
|
||||
run-tests:
|
||||
name: ✅ Run Unit Tests on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Install root dependencies
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Install test dependencies
|
||||
run: npm ci --ignore-scripts --prefix tests
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:unit --prefix tests
|
||||
@@ -1,32 +0,0 @@
|
||||
name: Update i18n data
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: # Job-level permissions configuration starts here
|
||||
contents: write # 'write' access to repository contents
|
||||
steps:
|
||||
- name: disable auto crlf
|
||||
uses: steve02081504/disable-autocrlf@v1
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
||||
- name: Create local changes
|
||||
run: |
|
||||
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
|
||||
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
|
||||
pip install -r ./requirements.txt
|
||||
python ./generate.py "" --sort-keys
|
||||
rm -f ./generate.py ./requirements.txt
|
||||
- name: add all
|
||||
run: git add -A
|
||||
- name: push
|
||||
uses: actions-go/push@master
|
||||
with:
|
||||
author-email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||
author-name: github-actions[bot]
|
||||
commit-message: 'i18n changes'
|
||||
remote: origin
|
||||
@@ -26,6 +26,7 @@ public/stats.json
|
||||
/docker/user
|
||||
/docker/extensions
|
||||
/docker/data
|
||||
/docker/dist
|
||||
.DS_Store
|
||||
public/settings.json
|
||||
/thumbnails
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
|
||||
"js/ts.tsdk.path": "./node_modules/typescript/lib"
|
||||
}
|
||||
+1
-1
@@ -19,7 +19,7 @@ COPY --chown=node:node . ./
|
||||
|
||||
RUN \
|
||||
echo "*** Install npm packages ***" && \
|
||||
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
|
||||
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts && npm cache clean --force
|
||||
|
||||
# Create config directory and link config.yaml. Added hardcoded dirs(constants.js?)
|
||||
# that must be present for Non-Root Mode and volumeless docker runs.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@echo off
|
||||
pushd %~dp0
|
||||
set NODE_ENV=production
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
||||
node server.js %*
|
||||
pause
|
||||
popd
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ if %errorlevel% neq 0 (
|
||||
)
|
||||
)
|
||||
set NODE_ENV=production
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
||||
node server.js %*
|
||||
:end
|
||||
pause
|
||||
|
||||
@@ -102,7 +102,7 @@ if %errorlevel% neq 0 (
|
||||
|
||||
echo Installing npm packages and starting server
|
||||
set NODE_ENV=production
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
||||
node server.js %*
|
||||
|
||||
:end
|
||||
|
||||
+31
-1
@@ -127,6 +127,13 @@ sso:
|
||||
# as that used for authentik. (Ensure the username in authentik
|
||||
# is an exact match in lowercase with that in sillytavern).
|
||||
authentikAuth: false
|
||||
# List of trusted proxy IPs for SSO authentication.
|
||||
# Supports wildcards or CIDR notation for subnets.
|
||||
# Example: ['127.0.0.1', '192.168.1.1']
|
||||
# Set to ['*'] to trust all proxies (NOT RECOMMENDED unless you have other security measures in place)
|
||||
trustedProxies:
|
||||
- ::1
|
||||
- 127.0.0.1
|
||||
|
||||
# Host whitelist configuration. Recommended if you're using a listen mode
|
||||
hostWhitelist:
|
||||
@@ -165,6 +172,8 @@ rateLimiting:
|
||||
|
||||
## BACKUP CONFIGURATION
|
||||
backups:
|
||||
# Allow users to create a full backup archive of their data
|
||||
allowFullDataBackup: true
|
||||
# Common settings for all backup types
|
||||
common:
|
||||
# Number of backups to keep for each chat and settings file
|
||||
@@ -202,6 +211,16 @@ performance:
|
||||
memoryCacheCapacity: '100mb'
|
||||
# Enables disk caching for character cards. Improves performances with large card libraries.
|
||||
useDiskCache: true
|
||||
# Configures gzip compression for client requests with large payloads (e.g. settings or chat saves).
|
||||
requestCompression:
|
||||
# Enable request compression.
|
||||
enabled: false
|
||||
# Minimum payload size to trigger compression. Set to 0 to compress all requests regardless of size.
|
||||
minPayloadSize: '256kb'
|
||||
# Hard upper payload size limit for compression. Set to 0 to allow compression of any size.
|
||||
maxPayloadSize: '8mb'
|
||||
# Timeout for request compression in milliseconds.
|
||||
timeout: 4000
|
||||
|
||||
# CACHE BUSTER CONFIGURATION
|
||||
# IMPORTANT: Requires localhost or a domain with HTTPS, otherwise will not work!
|
||||
@@ -250,6 +269,13 @@ extensions:
|
||||
speechToText: Xenova/whisper-small
|
||||
textToSpeech: Xenova/speecht5_tts
|
||||
|
||||
# Git backend for plugin/extension repository operations.
|
||||
# - Use "auto" to prefer system git, falling back to the integrated backend
|
||||
# - Use "system" to force system backend
|
||||
# - Use "builtin" to force integrated backend
|
||||
git:
|
||||
backend: auto
|
||||
|
||||
# Additional model tokenizers can be downloaded on demand.
|
||||
# Disabling will fallback to another locally available tokenizer.
|
||||
enableDownloadableTokenizers: true
|
||||
@@ -293,7 +319,7 @@ claude:
|
||||
# Otherwise, you'll just waste money on cache misses.
|
||||
enableSystemPromptCache: false
|
||||
# Enables caching of the message history at depth (if supported).
|
||||
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
||||
# https://platform.claude.com/docs/en/build-with-claude/prompt-caching
|
||||
# -- IMPORTANT! --
|
||||
# Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
|
||||
# Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
|
||||
@@ -304,6 +330,10 @@ claude:
|
||||
## 5m: base price x 1.25
|
||||
## 1h: base price x 2
|
||||
extendedTTL: false
|
||||
# Enables adaptive thinking for supported models (Opus 4.6+).
|
||||
# Disable to enforce legacy thinking mode (with thinking budget).
|
||||
# https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking
|
||||
enableAdaptiveThinking: false
|
||||
# -- GOOGLE GEMINI API CONFIGURATION --
|
||||
gemini:
|
||||
# API endpoint version ("v1beta" or "v1alpha")
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Not found</title>
|
||||
<title>Not Found</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Not found</h1>
|
||||
<h1>Not Found</h1>
|
||||
<p>
|
||||
The requested URL was not found on this server.
|
||||
</p>
|
||||
@@ -638,5 +638,41 @@
|
||||
{
|
||||
"filename": "presets/reasoning/OpenAI Harmony.json",
|
||||
"type": "reasoning"
|
||||
},
|
||||
{
|
||||
"filename": "presets/reasoning/Think XML.json",
|
||||
"type": "reasoning"
|
||||
},
|
||||
{
|
||||
"filename": "presets/reasoning/Gemma 4.json",
|
||||
"type": "reasoning"
|
||||
},
|
||||
{
|
||||
"filename": "presets/instruct/Gemma 4.json",
|
||||
"type": "instruct"
|
||||
},
|
||||
{
|
||||
"filename": "presets/context/Gemma 4.json",
|
||||
"type": "context"
|
||||
},
|
||||
{
|
||||
"filename": "user.css",
|
||||
"type": "stylesheet"
|
||||
},
|
||||
{
|
||||
"filename": "errors/forbidden-by-whitelist.html",
|
||||
"type": "error_page"
|
||||
},
|
||||
{
|
||||
"filename": "errors/host-not-allowed.html",
|
||||
"type": "error_page"
|
||||
},
|
||||
{
|
||||
"filename": "errors/unauthorized.html",
|
||||
"type": "error_page"
|
||||
},
|
||||
{
|
||||
"filename": "errors/url-not-found.html",
|
||||
"type": "error_page"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}",
|
||||
"example_separator": "",
|
||||
"chat_start": "",
|
||||
"use_stop_strings": false,
|
||||
"names_as_stop_strings": true,
|
||||
"story_string_position": 0,
|
||||
"story_string_depth": 1,
|
||||
"story_string_role": 0,
|
||||
"always_force_name2": true,
|
||||
"trim_sentences": false,
|
||||
"single_line": false,
|
||||
"name": "Gemma 4"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"input_sequence": "<|turn>user\n",
|
||||
"output_sequence": "<|turn>model\n",
|
||||
"last_output_sequence": "",
|
||||
"system_sequence": "<|turn>system\n",
|
||||
"stop_sequence": "<turn|>",
|
||||
"wrap": false,
|
||||
"macro": true,
|
||||
"names_behavior": "force",
|
||||
"activation_regex": "",
|
||||
"first_output_sequence": "",
|
||||
"skip_examples": false,
|
||||
"output_suffix": "<turn|>\n",
|
||||
"input_suffix": "<turn|>\n",
|
||||
"system_suffix": "<turn|>\n",
|
||||
"user_alignment_message": "",
|
||||
"system_same_as_user": false,
|
||||
"last_system_sequence": "",
|
||||
"first_input_sequence": "",
|
||||
"last_input_sequence": "",
|
||||
"sequences_as_stop_strings": true,
|
||||
"story_string_prefix": "<|turn>system\n",
|
||||
"story_string_suffix": "<turn|>\n",
|
||||
"name": "Gemma 4"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"input_sequence": "{{[INPUT]}}",
|
||||
"output_sequence": "{{[OUPUT]}}",
|
||||
"output_sequence": "{{[OUTPUT]}}",
|
||||
"last_output_sequence": "",
|
||||
"system_sequence": "{{[SYSTEM]}}",
|
||||
"stop_sequence": "",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Gemma 4",
|
||||
"prefix": "<|channel>thought\n",
|
||||
"suffix": "<channel|>",
|
||||
"separator": "\n\n"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Think XML",
|
||||
"prefix": "<think>",
|
||||
"suffix": "</think>",
|
||||
"separator": "\n"
|
||||
}
|
||||
@@ -191,7 +191,7 @@
|
||||
"custom_stopping_strings_macro": true,
|
||||
"fuzzy_search": true,
|
||||
"encode_tags": false,
|
||||
"experimental_macro_engine": false,
|
||||
"experimental_macro_engine": true,
|
||||
"enableLabMode": false,
|
||||
"enableZenSliders": false,
|
||||
"ui_mode": 1,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Function to handle startup logic (Config check + Postinstall + Start)
|
||||
# Function to handle startup logic (Config check + init + Start)
|
||||
start_sillytavern() {
|
||||
local PREFIX="$1"
|
||||
shift # Remove the first argument (PREFIX) so $@ contains the rest
|
||||
@@ -11,8 +11,8 @@ start_sillytavern() {
|
||||
$PREFIX cp "default/config.yaml" "config/config.yaml"
|
||||
fi
|
||||
|
||||
# Execute postinstall to auto-populate config.yaml with missing values
|
||||
$PREFIX npm run postinstall
|
||||
# Execute init script to auto-populate config.yaml with missing values
|
||||
$PREFIX npm run init
|
||||
|
||||
# Start the server
|
||||
exec $PREFIX node server.js --listen "$@"
|
||||
|
||||
Vendored
+1
-1
@@ -40,7 +40,7 @@ declare global {
|
||||
/**
|
||||
* Authenticated user handle.
|
||||
*/
|
||||
handle: string;
|
||||
handle: string | null;
|
||||
/**
|
||||
* Last time the session was extended.
|
||||
*/
|
||||
|
||||
Generated
+510
-118
@@ -1,13 +1,12 @@
|
||||
{
|
||||
"name": "sillytavern",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "sillytavern",
|
||||
"version": "1.16.0",
|
||||
"hasInstallScript": true,
|
||||
"version": "1.17.0",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@adobe/css-tools": "^4.4.4",
|
||||
@@ -58,10 +57,11 @@
|
||||
"droll": "^0.2.1",
|
||||
"env-paths": "^3.0.0",
|
||||
"express": "^4.21.0",
|
||||
"fflate": "^0.8.2",
|
||||
"form-data": "^4.0.4",
|
||||
"fuse.js": "^7.1.0",
|
||||
"google-translate-api-x": "^10.7.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"handlebars": "^4.7.9",
|
||||
"helmet": "^8.1.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"host-validation-middleware": "^0.1.1",
|
||||
@@ -72,12 +72,13 @@
|
||||
"ip-regex": "^5.0.0",
|
||||
"ipaddr.js": "^2.2.0",
|
||||
"is-docker": "^3.0.0",
|
||||
"isomorphic-git": "^1.36.3",
|
||||
"localforage": "^1.10.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mime-types": "^3.0.2",
|
||||
"moment": "^2.30.1",
|
||||
"morphdom": "^2.7.7",
|
||||
"multer": "^2.0.2",
|
||||
"multer": "^2.1.1",
|
||||
"node-fetch": "^3.3.2",
|
||||
"node-persist": "^4.0.4",
|
||||
"open": "^10.2.0",
|
||||
@@ -90,18 +91,18 @@
|
||||
"seedrandom": "^3.0.5",
|
||||
"showdown": "^2.1.0",
|
||||
"sillytavern-transformers": "2.14.6",
|
||||
"simple-git": "^3.28.0",
|
||||
"simple-git": "^3.33.0",
|
||||
"slidetoggle": "^4.0.0",
|
||||
"tiktoken": "^1.0.22",
|
||||
"url-join": "^5.0.0",
|
||||
"vectra": "^0.2.2",
|
||||
"wavefile": "^11.0.0",
|
||||
"webpack": "^5.98.0",
|
||||
"webpack": "^5.105.4",
|
||||
"write-file-atomic": "^5.0.1",
|
||||
"ws": "^8.18.3",
|
||||
"yaml": "^2.8.1",
|
||||
"yaml": "^2.8.3",
|
||||
"yargs": "^17.7.1",
|
||||
"yauzl": "^3.2.0"
|
||||
"yauzl": "^3.2.1"
|
||||
},
|
||||
"bin": {
|
||||
"sillytavern": "src/server-global.js"
|
||||
@@ -123,7 +124,7 @@
|
||||
"@types/jqueryui": "^1.12.24",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/mime-types": "^3.0.1",
|
||||
"@types/multer": "^2.0.0",
|
||||
"@types/multer": "^2.1.0",
|
||||
"@types/node": "^18.19.84",
|
||||
"@types/node-persist": "^3.1.8",
|
||||
"@types/png-chunk-text": "^1.0.3",
|
||||
@@ -137,10 +138,11 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-plugin-jest": "^27.9.0",
|
||||
"eslint-plugin-jsdoc": "^48.10.0",
|
||||
"eslint-plugin-playwright": "^2.3.0"
|
||||
"eslint-plugin-playwright": "^2.3.0",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
"node": ">= 20"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
@@ -2043,9 +2045,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/multer": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/multer/-/multer-2.0.0.tgz",
|
||||
"integrity": "sha512-C3Z9v9Evij2yST3RSBktxP9STm6OdMc5uR1xF1SGr98uv8dUlAL2hqwrZ3GVB3uyMyiegnscEK6PGtYvNrjTjw==",
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/multer/-/multer-2.1.0.tgz",
|
||||
"integrity": "sha512-zYZb0+nJhOHtPpGDb3vqPjwpdeGlGC157VpkqNQL+UU2qwoacoQ7MpsAmUptI/0Oa127X32JzWDqQVEXp2RcIA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -2606,9 +2608,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/acorn": {
|
||||
"version": "8.15.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"version": "8.16.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
|
||||
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
@@ -2662,9 +2664,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/ajv": {
|
||||
"version": "6.12.6",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
|
||||
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
|
||||
"version": "6.14.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
|
||||
"integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -2696,9 +2698,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/ajv-formats/node_modules/ajv": {
|
||||
"version": "8.17.1",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
|
||||
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
||||
"version": "8.18.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
|
||||
"integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
@@ -2826,12 +2828,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/archiver-utils/node_modules/minimatch": {
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"version": "9.0.9",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",
|
||||
"integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
"brace-expansion": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
@@ -2982,12 +2984,33 @@
|
||||
"resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz",
|
||||
"integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg=="
|
||||
},
|
||||
"node_modules/async-lock": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.4.1.tgz",
|
||||
"integrity": "sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/available-typed-arrays": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
|
||||
"integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"possible-typed-array-names": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/await-to-js": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/await-to-js/-/await-to-js-3.0.0.tgz",
|
||||
@@ -3060,9 +3083,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/basic-ftp": {
|
||||
"version": "5.0.5",
|
||||
"resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
|
||||
"integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.2.0.tgz",
|
||||
"integrity": "sha512-VoMINM2rqJwJgfdHq6RiUudKt2BV+FY5ZFezP/ypmwayk68+NzzAQy4XXLlqsGD4MCzq3DrmNFD/uUmBJuGoXw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
@@ -3334,6 +3357,24 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bind": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",
|
||||
"integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.0",
|
||||
"es-define-property": "^1.0.0",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"set-function-length": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bind-apply-helpers": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||
@@ -3484,6 +3525,12 @@
|
||||
"node": ">=6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/clean-git-ref": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/clean-git-ref/-/clean-git-ref-2.0.1.tgz",
|
||||
"integrity": "sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/cliui": {
|
||||
"version": "8.0.1",
|
||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
||||
@@ -4109,6 +4156,23 @@
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/define-data-property": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
||||
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-define-property": "^1.0.0",
|
||||
"es-errors": "^1.3.0",
|
||||
"gopd": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/define-lazy-prop": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
|
||||
@@ -4169,6 +4233,12 @@
|
||||
"integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/diff3": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/diff3/-/diff3-0.0.3.tgz",
|
||||
"integrity": "sha512-iSq8ngPOt0K53A6eVr4d5Kn6GNrM2nQZtC740pzIriHtn4pOQ2lyzEXQMBeVcWERN0ye7fhBsk9PbLLQOnUx/g==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/digest-fetch": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz",
|
||||
@@ -4252,10 +4322,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dompurify": {
|
||||
"version": "3.2.6",
|
||||
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.6.tgz",
|
||||
"integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==",
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.3.2.tgz",
|
||||
"integrity": "sha512-6obghkliLdmKa56xdbLOpUZ43pAR6xFy1uOrxBaIDjT+yaRuuybLjGS9eVBoSR/UPU5fq3OXClEHLJNGvbxKpQ==",
|
||||
"license": "(MPL-2.0 OR Apache-2.0)",
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@types/trusted-types": "^2.0.7"
|
||||
}
|
||||
@@ -4351,9 +4424,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/enhanced-resolve": {
|
||||
"version": "5.19.0",
|
||||
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.19.0.tgz",
|
||||
"integrity": "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==",
|
||||
"version": "5.20.0",
|
||||
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.0.tgz",
|
||||
"integrity": "sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"graceful-fs": "^4.2.4",
|
||||
@@ -5023,6 +5096,12 @@
|
||||
"node": "^12.20 || >= 14.13"
|
||||
}
|
||||
},
|
||||
"node_modules/fflate": {
|
||||
"version": "0.8.2",
|
||||
"resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",
|
||||
"integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/file-entry-cache": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
|
||||
@@ -5123,9 +5202,9 @@
|
||||
"license": "SEE LICENSE IN LICENSE.txt"
|
||||
},
|
||||
"node_modules/flatted": {
|
||||
"version": "3.2.9",
|
||||
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz",
|
||||
"integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==",
|
||||
"version": "3.4.2",
|
||||
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
|
||||
"integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
@@ -5149,6 +5228,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/for-each": {
|
||||
"version": "0.3.5",
|
||||
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",
|
||||
"integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"is-callable": "^1.2.7"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/foreground-child": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz",
|
||||
@@ -5545,9 +5639,9 @@
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/handlebars": {
|
||||
"version": "4.7.8",
|
||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz",
|
||||
"integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==",
|
||||
"version": "4.7.9",
|
||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz",
|
||||
"integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.5",
|
||||
@@ -5574,6 +5668,18 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/has-property-descriptors": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
||||
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-define-property": "^1.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/has-symbols": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||
@@ -5827,7 +5933,6 @@
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
|
||||
"integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
@@ -5955,6 +6060,18 @@
|
||||
"integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/is-callable": {
|
||||
"version": "1.2.7",
|
||||
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
|
||||
"integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/is-docker": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
|
||||
@@ -6057,6 +6174,21 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/is-typed-array": {
|
||||
"version": "1.1.15",
|
||||
"resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",
|
||||
"integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"which-typed-array": "^1.1.16"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/is-wsl": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz",
|
||||
@@ -6114,6 +6246,88 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/isomorphic-git": {
|
||||
"version": "1.37.2",
|
||||
"resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.37.2.tgz",
|
||||
"integrity": "sha512-HCQBBKmXIMPdHgYGstSBNp6MNmVcMQBbUqJF8xfywFmlpNseO4KKex59YlXqNxhRxmv3fUZwvNWvMyOdc1VvhA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"async-lock": "^1.4.1",
|
||||
"clean-git-ref": "^2.0.1",
|
||||
"crc-32": "^1.2.0",
|
||||
"diff3": "0.0.3",
|
||||
"ignore": "^5.1.4",
|
||||
"minimisted": "^2.0.0",
|
||||
"pako": "^1.0.10",
|
||||
"pify": "^4.0.1",
|
||||
"readable-stream": "^4.0.0",
|
||||
"sha.js": "^2.4.12",
|
||||
"simple-get": "^4.0.1"
|
||||
},
|
||||
"bin": {
|
||||
"isogit": "cli.cjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/isomorphic-git/node_modules/crc-32": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
|
||||
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"crc32": "bin/crc32.njs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/isomorphic-git/node_modules/readable-stream": {
|
||||
"version": "4.7.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz",
|
||||
"integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"abort-controller": "^3.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
"events": "^3.3.0",
|
||||
"process": "^0.11.10",
|
||||
"string_decoder": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/isomorphic-git/node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/isomorphic-git/node_modules/string_decoder": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
|
||||
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safe-buffer": "~5.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/jackspeak": {
|
||||
"version": "3.4.3",
|
||||
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
|
||||
@@ -6590,9 +6804,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/minimatch": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||
"version": "3.1.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
|
||||
"integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -6611,6 +6825,15 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/minimisted": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/minimisted/-/minimisted-2.0.1.tgz",
|
||||
"integrity": "sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.5"
|
||||
}
|
||||
},
|
||||
"node_modules/minipass": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
|
||||
@@ -6642,33 +6865,22 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/multer": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/multer/-/multer-2.0.2.tgz",
|
||||
"integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==",
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/multer/-/multer-2.1.1.tgz",
|
||||
"integrity": "sha512-mo+QTzKlx8R7E5ylSXxWzGoXoZbOsRMpyitcht8By2KHvMbf3tjwosZ/Mu/XYU6UuJ3VZnODIrak5ZrPiPyB6A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"append-field": "^1.0.0",
|
||||
"busboy": "^1.6.0",
|
||||
"concat-stream": "^2.0.0",
|
||||
"mkdirp": "^0.5.6",
|
||||
"object-assign": "^4.1.1",
|
||||
"type-is": "^1.6.18",
|
||||
"xtend": "^4.0.2"
|
||||
"type-is": "^1.6.18"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10.16.0"
|
||||
}
|
||||
},
|
||||
"node_modules/multer/node_modules/mkdirp": {
|
||||
"version": "0.5.6",
|
||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
||||
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.6"
|
||||
},
|
||||
"bin": {
|
||||
"mkdirp": "bin/cmd.js"
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/natural-compare": {
|
||||
@@ -7243,9 +7455,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/path-to-regexp": {
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
||||
"version": "0.1.13",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
|
||||
"integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/path-type": {
|
||||
@@ -7296,9 +7508,9 @@
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/picomatch": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
||||
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
||||
"version": "2.3.2",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
|
||||
"integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
@@ -7308,6 +7520,15 @@
|
||||
"url": "https://github.com/sponsors/jonschlinkert"
|
||||
}
|
||||
},
|
||||
"node_modules/pify": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
|
||||
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/platform": {
|
||||
"version": "1.3.6",
|
||||
"resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz",
|
||||
@@ -7338,6 +7559,15 @@
|
||||
"node": ">=14.19.0"
|
||||
}
|
||||
},
|
||||
"node_modules/possible-typed-array-names": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",
|
||||
"integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/prelude-ls": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
||||
@@ -7540,15 +7770,6 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/randombytes": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
||||
"integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safe-buffer": "^5.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/range-parser": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||
@@ -7714,9 +7935,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/readdir-glob/node_modules/minimatch": {
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
|
||||
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
|
||||
"version": "5.1.9",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",
|
||||
"integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
@@ -7899,9 +8121,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/schema-utils/node_modules/ajv": {
|
||||
"version": "8.17.1",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
|
||||
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
||||
"version": "8.18.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
|
||||
"integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
@@ -7991,15 +8213,6 @@
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/serialize-javascript": {
|
||||
"version": "6.0.2",
|
||||
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz",
|
||||
"integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"randombytes": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/serve-static": {
|
||||
"version": "1.16.2",
|
||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
||||
@@ -8015,12 +8228,69 @@
|
||||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/set-function-length": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
||||
"integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"define-data-property": "^1.1.4",
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"gopd": "^1.0.1",
|
||||
"has-property-descriptors": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/setprototypeof": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
||||
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/sha.js": {
|
||||
"version": "2.4.12",
|
||||
"resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz",
|
||||
"integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==",
|
||||
"license": "(MIT AND BSD-3-Clause)",
|
||||
"dependencies": {
|
||||
"inherits": "^2.0.4",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"to-buffer": "^1.2.0"
|
||||
},
|
||||
"bin": {
|
||||
"sha.js": "bin.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/sha.js/node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/shebang-command": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
||||
@@ -8191,10 +8461,55 @@
|
||||
"regenerator-runtime": "^0.13.3"
|
||||
}
|
||||
},
|
||||
"node_modules/simple-concat": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
|
||||
"integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/simple-get": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
|
||||
"integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"decompress-response": "^6.0.0",
|
||||
"once": "^1.3.1",
|
||||
"simple-concat": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/simple-git": {
|
||||
"version": "3.28.0",
|
||||
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.28.0.tgz",
|
||||
"integrity": "sha512-Rs/vQRwsn1ILH1oBUy8NucJlXmnnLeLCfcvbSehkPzbv3wwoFWIdtfd6Ndo6ZPhlPsCZ60CPI4rxurnwAa+a2w==",
|
||||
"version": "3.33.0",
|
||||
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.33.0.tgz",
|
||||
"integrity": "sha512-D4V/tGC2sjsoNhoMybKyGoE+v8A60hRawKQ1iFRA1zwuDgGZCBJ4ByOzZ5J8joBbi4Oam0qiPH+GhzmSBwbJng==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@kwsites/file-exists": "^1.1.1",
|
||||
@@ -8557,15 +8872,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/terser-webpack-plugin": {
|
||||
"version": "5.3.16",
|
||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.16.tgz",
|
||||
"integrity": "sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q==",
|
||||
"version": "5.3.17",
|
||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.17.tgz",
|
||||
"integrity": "sha512-YR7PtUp6GMU91BgSJmlaX/rS2lGDbAF7D+Wtq7hRO+MiljNmodYvqslzCFiYVAgW+Qoaaia/QUIP4lGXufjdZw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/trace-mapping": "^0.3.25",
|
||||
"jest-worker": "^27.4.5",
|
||||
"schema-utils": "^4.3.0",
|
||||
"serialize-javascript": "^6.0.2",
|
||||
"terser": "^5.31.1"
|
||||
},
|
||||
"engines": {
|
||||
@@ -8615,6 +8929,46 @@
|
||||
"integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/to-buffer": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz",
|
||||
"integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"isarray": "^2.0.5",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"typed-array-buffer": "^1.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/to-buffer/node_modules/isarray": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
|
||||
"integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/to-buffer/node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/to-regex-range": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||
@@ -8763,6 +9117,20 @@
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/typed-array-buffer": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",
|
||||
"integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bound": "^1.0.3",
|
||||
"es-errors": "^1.3.0",
|
||||
"is-typed-array": "^1.1.14"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/typedarray": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
||||
@@ -8981,9 +9349,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/webpack": {
|
||||
"version": "5.105.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz",
|
||||
"integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==",
|
||||
"version": "5.105.4",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.4.tgz",
|
||||
"integrity": "sha512-jTywjboN9aHxFlToqb0K0Zs9SbBoW4zRUlGzI2tYNxVYcEi/IPpn+Xi4ye5jTLvX2YeLuic/IvxNot+Q1jMoOw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/eslint-scope": "^3.7.7",
|
||||
@@ -8992,11 +9360,11 @@
|
||||
"@webassemblyjs/ast": "^1.14.1",
|
||||
"@webassemblyjs/wasm-edit": "^1.14.1",
|
||||
"@webassemblyjs/wasm-parser": "^1.14.1",
|
||||
"acorn": "^8.15.0",
|
||||
"acorn": "^8.16.0",
|
||||
"acorn-import-phases": "^1.0.3",
|
||||
"browserslist": "^4.28.1",
|
||||
"chrome-trace-event": "^1.0.2",
|
||||
"enhanced-resolve": "^5.19.0",
|
||||
"enhanced-resolve": "^5.20.0",
|
||||
"es-module-lexer": "^2.0.0",
|
||||
"eslint-scope": "5.1.1",
|
||||
"events": "^3.2.0",
|
||||
@@ -9008,9 +9376,9 @@
|
||||
"neo-async": "^2.6.2",
|
||||
"schema-utils": "^4.3.3",
|
||||
"tapable": "^2.3.0",
|
||||
"terser-webpack-plugin": "^5.3.16",
|
||||
"terser-webpack-plugin": "^5.3.17",
|
||||
"watchpack": "^2.5.1",
|
||||
"webpack-sources": "^3.3.3"
|
||||
"webpack-sources": "^3.3.4"
|
||||
},
|
||||
"bin": {
|
||||
"webpack": "bin/webpack.js"
|
||||
@@ -9029,9 +9397,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/webpack-sources": {
|
||||
"version": "3.3.3",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz",
|
||||
"integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==",
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.4.tgz",
|
||||
"integrity": "sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
@@ -9111,6 +9479,27 @@
|
||||
"node": ">= 8"
|
||||
}
|
||||
},
|
||||
"node_modules/which-typed-array": {
|
||||
"version": "1.1.20",
|
||||
"resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz",
|
||||
"integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"available-typed-arrays": "^1.0.7",
|
||||
"call-bind": "^1.0.8",
|
||||
"call-bound": "^1.0.4",
|
||||
"for-each": "^0.3.5",
|
||||
"get-proto": "^1.0.1",
|
||||
"gopd": "^1.2.0",
|
||||
"has-tostringtag": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/wordwrap": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
||||
@@ -9266,15 +9655,18 @@
|
||||
}
|
||||
},
|
||||
"node_modules/yaml": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
|
||||
"integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
|
||||
"version": "2.8.3",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
|
||||
"integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"yaml": "bin.mjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 14.6"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/eemeli"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs": {
|
||||
@@ -9305,9 +9697,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/yauzl": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.2.0.tgz",
|
||||
"integrity": "sha512-Ow9nuGZE+qp1u4JIPvg+uCiUr7xGQWdff7JQSk5VGYTAZMDe2q8lxJ10ygv10qmSj031Ty/6FNJpLO4o1Sgc+w==",
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.2.1.tgz",
|
||||
"integrity": "sha512-k1isifdbpNSFEHFJ1ZY4YDewv0IH9FR61lDetaRMD3j2ae3bIXGV+7c+LHCqtQGofSd8PIyV4X6+dHMAnSr60A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"buffer-crc32": "~0.2.3",
|
||||
|
||||
+14
-11
@@ -48,10 +48,11 @@
|
||||
"droll": "^0.2.1",
|
||||
"env-paths": "^3.0.0",
|
||||
"express": "^4.21.0",
|
||||
"fflate": "^0.8.2",
|
||||
"form-data": "^4.0.4",
|
||||
"fuse.js": "^7.1.0",
|
||||
"google-translate-api-x": "^10.7.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"handlebars": "^4.7.9",
|
||||
"helmet": "^8.1.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"host-validation-middleware": "^0.1.1",
|
||||
@@ -62,12 +63,13 @@
|
||||
"ip-regex": "^5.0.0",
|
||||
"ipaddr.js": "^2.2.0",
|
||||
"is-docker": "^3.0.0",
|
||||
"isomorphic-git": "^1.36.3",
|
||||
"localforage": "^1.10.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mime-types": "^3.0.2",
|
||||
"moment": "^2.30.1",
|
||||
"morphdom": "^2.7.7",
|
||||
"multer": "^2.0.2",
|
||||
"multer": "^2.1.1",
|
||||
"node-fetch": "^3.3.2",
|
||||
"node-persist": "^4.0.4",
|
||||
"open": "^10.2.0",
|
||||
@@ -80,21 +82,21 @@
|
||||
"seedrandom": "^3.0.5",
|
||||
"showdown": "^2.1.0",
|
||||
"sillytavern-transformers": "2.14.6",
|
||||
"simple-git": "^3.28.0",
|
||||
"simple-git": "^3.33.0",
|
||||
"slidetoggle": "^4.0.0",
|
||||
"tiktoken": "^1.0.22",
|
||||
"url-join": "^5.0.0",
|
||||
"vectra": "^0.2.2",
|
||||
"wavefile": "^11.0.0",
|
||||
"webpack": "^5.98.0",
|
||||
"webpack": "^5.105.4",
|
||||
"write-file-atomic": "^5.0.1",
|
||||
"ws": "^8.18.3",
|
||||
"yaml": "^2.8.1",
|
||||
"yaml": "^2.8.3",
|
||||
"yargs": "^17.7.1",
|
||||
"yauzl": "^3.2.0"
|
||||
"yauzl": "^3.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
"node": ">= 20"
|
||||
},
|
||||
"overrides": {
|
||||
"vectra": {
|
||||
@@ -111,8 +113,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/SillyTavern/SillyTavern.git"
|
||||
},
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"scripts": {
|
||||
"init": "node src/server-init.js",
|
||||
"start": "node server.js",
|
||||
"debug": "node --inspect server.js",
|
||||
"start:global": "node server.js --global",
|
||||
@@ -120,7 +123,6 @@
|
||||
"start:deno": "deno run --allow-run --allow-net --allow-read --allow-write --allow-sys --allow-env server.js",
|
||||
"start:bun": "bun server.js",
|
||||
"start:no-csrf": "node server.js --disableCsrf",
|
||||
"postinstall": "node post-install.js",
|
||||
"lint": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js",
|
||||
"lint:fix": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js --fix",
|
||||
"plugins:update": "node plugins update",
|
||||
@@ -151,7 +153,7 @@
|
||||
"@types/jqueryui": "^1.12.24",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/mime-types": "^3.0.1",
|
||||
"@types/multer": "^2.0.0",
|
||||
"@types/multer": "^2.1.0",
|
||||
"@types/node": "^18.19.84",
|
||||
"@types/node-persist": "^3.1.8",
|
||||
"@types/png-chunk-text": "^1.0.3",
|
||||
@@ -165,6 +167,7 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-plugin-jest": "^27.9.0",
|
||||
"eslint-plugin-jsdoc": "^48.10.0",
|
||||
"eslint-plugin-playwright": "^2.3.0"
|
||||
"eslint-plugin-playwright": "^2.3.0",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
||||
+4
-3
@@ -9,11 +9,13 @@ import process from 'node:process';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import { default as git, CheckRepoActions } from 'simple-git';
|
||||
import { createGitClient } from './src/git/client.js';
|
||||
import { color } from './src/util.js';
|
||||
|
||||
const __dirname = import.meta.dirname ?? path.dirname(fileURLToPath(import.meta.url));
|
||||
process.chdir(__dirname);
|
||||
const pluginsPath = './plugins';
|
||||
const gitBackend = process.env.SILLYTAVERN_GIT_BACKEND || 'auto';
|
||||
|
||||
const command = process.argv[2];
|
||||
|
||||
@@ -87,10 +89,9 @@ async function installPlugin(pluginName) {
|
||||
return console.log(color.yellow(`Directory already exists at ${pluginPath}`));
|
||||
}
|
||||
|
||||
await git().clone(pluginName, pluginPath, { '--depth': 1 });
|
||||
await createGitClient({ backend: gitBackend }).clone(pluginName, pluginPath, { depth: 1 });
|
||||
console.log(`Plugin ${color.green(pluginName)} installed to ${color.cyan(pluginPath)}`);
|
||||
}
|
||||
catch (error) {
|
||||
} catch (error) {
|
||||
console.error(color.red(`Failed to install plugin ${pluginName}`), error);
|
||||
}
|
||||
}
|
||||
|
||||
-114
@@ -1,114 +0,0 @@
|
||||
/**
|
||||
* Scripts to be done before starting the server for the first time.
|
||||
*/
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import yaml from 'yaml';
|
||||
import chalk from 'chalk';
|
||||
import { createRequire } from 'node:module';
|
||||
import { addMissingConfigValues } from './src/config-init.js';
|
||||
|
||||
/**
|
||||
* Colorizes console output.
|
||||
*/
|
||||
const color = chalk;
|
||||
|
||||
/**
|
||||
* Converts the old config.conf file to the new config.yaml format.
|
||||
*/
|
||||
function convertConfig() {
|
||||
if (fs.existsSync('./config.conf')) {
|
||||
if (fs.existsSync('./config.yaml')) {
|
||||
console.log(color.yellow('Both config.conf and config.yaml exist. Please delete config.conf manually.'));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
console.log(color.blue('Converting config.conf to config.yaml. Your old config.conf will be renamed to config.conf.bak'));
|
||||
fs.renameSync('./config.conf', './config.conf.cjs'); // Force loading as CommonJS
|
||||
const require = createRequire(import.meta.url);
|
||||
const config = require(path.join(process.cwd(), './config.conf.cjs'));
|
||||
fs.copyFileSync('./config.conf.cjs', './config.conf.bak');
|
||||
fs.rmSync('./config.conf.cjs');
|
||||
fs.writeFileSync('./config.yaml', yaml.stringify(config));
|
||||
console.log(color.green('Conversion successful. Please check your config.yaml and fix it if necessary.'));
|
||||
} catch (error) {
|
||||
console.error(color.red('FATAL: Config conversion failed. Please check your config.conf file and try again.'), error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the default config files if they don't exist yet.
|
||||
*/
|
||||
function createDefaultFiles() {
|
||||
/**
|
||||
* @typedef DefaultItem
|
||||
* @type {object}
|
||||
* @property {'file' | 'directory'} type - Whether the item should be copied as a single file or merged into a directory structure.
|
||||
* @property {string} defaultPath - The path to the default item (typically in `default/`).
|
||||
* @property {string} productionPath - The path to the copied item for production use.
|
||||
*/
|
||||
|
||||
/** @type {DefaultItem[]} */
|
||||
const defaultItems = [
|
||||
{
|
||||
type: 'file',
|
||||
defaultPath: './default/config.yaml',
|
||||
productionPath: './config.yaml',
|
||||
},
|
||||
{
|
||||
type: 'directory',
|
||||
defaultPath: './default/public/',
|
||||
productionPath: './public/',
|
||||
},
|
||||
];
|
||||
|
||||
for (const defaultItem of defaultItems) {
|
||||
try {
|
||||
if (defaultItem.type === 'file') {
|
||||
if (!fs.existsSync(defaultItem.productionPath)) {
|
||||
fs.copyFileSync(
|
||||
defaultItem.defaultPath,
|
||||
defaultItem.productionPath,
|
||||
);
|
||||
console.log(
|
||||
color.green(`Created default file: ${defaultItem.productionPath}`),
|
||||
);
|
||||
}
|
||||
} else if (defaultItem.type === 'directory') {
|
||||
fs.cpSync(defaultItem.defaultPath, defaultItem.productionPath, {
|
||||
force: false, // Don't overwrite existing files!
|
||||
recursive: true,
|
||||
});
|
||||
console.log(
|
||||
color.green(`Synchronized missing files: ${defaultItem.productionPath}`),
|
||||
);
|
||||
} else {
|
||||
throw new Error(
|
||||
'FATAL: Unexpected default file format in `post-install.js#createDefaultFiles()`.',
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(
|
||||
color.red(
|
||||
`FATAL: Could not write default ${defaultItem.type}: ${defaultItem.productionPath}`,
|
||||
),
|
||||
error,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
// 0. Convert config.conf to config.yaml
|
||||
convertConfig();
|
||||
// 1. Create default config files
|
||||
createDefaultFiles();
|
||||
// 2. Add missing config values
|
||||
addMissingConfigValues(path.join(process.cwd(), './config.yaml'));
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Looking for user.css?
|
||||
|
||||
user.css is now located under your data root directory in the "_css" folder.
|
||||
|
||||
Example for the default data root:
|
||||
|
||||
/data/_css/user.css
|
||||
+207
-16
@@ -107,7 +107,8 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.bg_example .mobile-only-menu-toggle {
|
||||
.bg_example .mobile-only-menu-toggle,
|
||||
.bg_folder_tile .mobile-only-menu-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -135,19 +136,32 @@
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
.bg_example.locked-background::after {
|
||||
content: '\f023';
|
||||
.bg_example.locked-background::after,
|
||||
.bg_example.selected-background::before,
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected::before {
|
||||
font-family: 'Font Awesome 6 Free';
|
||||
font-weight: 900;
|
||||
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg_example.selected-background::before,
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected::before {
|
||||
content: '\f00c';
|
||||
top: 5px;
|
||||
color: var(--white100);
|
||||
font-size: calc(var(--mainFontSize) * 0.9);
|
||||
}
|
||||
|
||||
.bg_example.locked-background::after {
|
||||
content: '\f023';
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
z-index: 4;
|
||||
color: var(--golden);
|
||||
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
|
||||
font-size: calc(var(--mainFontSize) * 0.8);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg_example:not(.locked-background) .jg-unlock,
|
||||
@@ -161,17 +175,28 @@
|
||||
}
|
||||
|
||||
.bg_example.selected-background::before {
|
||||
content: '\f00c';
|
||||
font-family: 'Font Awesome 6 Free';
|
||||
font-weight: 900;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
z-index: 4;
|
||||
color: var(--white100);
|
||||
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
|
||||
font-size: calc(var(--mainFontSize) * 0.9);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#bg_selection_mode_button.active {
|
||||
color: var(--golden);
|
||||
}
|
||||
|
||||
#bg_group_select_count {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example .jg-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected {
|
||||
outline: 2px solid var(--interactable-outline-color);
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected::before {
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.bg_example .jg-menu {
|
||||
@@ -376,3 +401,169 @@
|
||||
#bg_custom_content:not(:empty)~#bg_chat_hint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg_folder_grid.bg_list {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(calc(var(--bg-thumb-columns, 5) + 2), 1fr);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.bg_folder_grid:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg_folder_tile {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
height: auto;
|
||||
aspect-ratio: 1 / 1;
|
||||
outline: 2px solid var(--SmartThemeBorderColor);
|
||||
outline-offset: -1px;
|
||||
box-shadow: 0 0 7px var(--black50a);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--SmartThemeBlurTintColor);
|
||||
transition: filter var(--animation-duration) ease;
|
||||
}
|
||||
|
||||
.bg_folder_tile:hover {
|
||||
filter: brightness(1.1);
|
||||
}
|
||||
|
||||
.bg_folder_tile_cover {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.bg_folder_tile_overlay {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
|
||||
color: var(--SmartThemeBodyColor);
|
||||
padding: 6px 8px 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 0.85em;
|
||||
font-weight: 600;
|
||||
pointer-events: none;
|
||||
border-radius: 0 0 8px 8px;
|
||||
}
|
||||
|
||||
.bg_folder_tile_overlay i {
|
||||
font-size: 0.9em;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.bg_folder_tile_name {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Folder tile action menu */
|
||||
.bg_folder_tile .bg_folder_tile_menu {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 5px;
|
||||
padding: 3px;
|
||||
z-index: 3;
|
||||
backdrop-filter: blur(4px);
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
align-items: center;
|
||||
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.9);
|
||||
transform-origin: center;
|
||||
transition: opacity var(--animation-duration) ease-out, visibility var(--animation-duration) ease-out, transform var(--animation-duration) ease-out;
|
||||
}
|
||||
|
||||
.bg_folder_tile:hover .bg_folder_tile_menu,
|
||||
.bg_folder_tile:focus-within .bg_folder_tile_menu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.bg_folder_tile .jg-button {
|
||||
display: flex;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
padding: 5px;
|
||||
font-size: 1.1em;
|
||||
border-radius: 5px;
|
||||
transition: background-color var(--animation-duration) ease;
|
||||
}
|
||||
|
||||
.bg_folder_tile .jg-button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* New Folder placeholder tile */
|
||||
.bg_new_folder_tile {
|
||||
border: 2px dashed var(--SmartThemeBorderColor);
|
||||
outline: none;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
opacity: 0.6;
|
||||
gap: 6px;
|
||||
font-size: 0.85em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.bg_new_folder_tile:hover {
|
||||
opacity: 1;
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
/* Breadcrumb bar */
|
||||
.bg_folder_breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 5px 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.bg_current_folder_name {
|
||||
font-weight: 600;
|
||||
font-size: 1em;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#Backgrounds:not(.in-folder-view) .jg-set-cover {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#Backgrounds.in-folder-view .jg-set-cover {
|
||||
display: flex !important;
|
||||
}
|
||||
|
||||
/* Hide folder actions on custom (chat-specific) backgrounds */
|
||||
.bg_example[custom="true"] .jg-folder,
|
||||
.bg_example[custom="true"] .jg-set-cover {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -29,3 +29,60 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Action loader toast styles */
|
||||
.action-loader-toast {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.action-loader-message {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.action-loader-stop {
|
||||
cursor: pointer;
|
||||
font-size: 1.2em;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.action-loader-stop:hover {
|
||||
opacity: 1;
|
||||
color: color-mix(in srgb, currentColor 40%, #e74c3c 60%);
|
||||
}
|
||||
|
||||
/* Splash screen styles for branded loading */
|
||||
#loader.splash-screen {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: all var(--animation-duration-2x) ease-out;
|
||||
}
|
||||
|
||||
#loader.splash-screen #load-spinner {
|
||||
position: static;
|
||||
top: unset;
|
||||
left: unset;
|
||||
}
|
||||
|
||||
.splash-logo {
|
||||
/* max original px, or 50% on mobile */
|
||||
width: min(150px, 50%);
|
||||
height: auto;
|
||||
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
|
||||
.splash-message {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
opacity: 0.9;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,56 @@
|
||||
grid-template-columns: repeat(var(--bg-thumb-columns, 3), 1fr);
|
||||
}
|
||||
|
||||
.bg_folder_grid {
|
||||
grid-template-columns: repeat(var(--bg-thumb-columns, 3), 1fr);
|
||||
}
|
||||
|
||||
.bg_folder_tile .bg_folder_tile_menu {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
|
||||
.bg_folder_tile:hover .bg_folder_tile_menu,
|
||||
.bg_folder_tile:focus-within .bg_folder_tile_menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg_folder_tile.mobile-menu-open .bg_folder_tile_menu {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.bg_folder_tile.mobile-menu-open .mobile-only-menu-toggle {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg_folder_tile .mobile-only-menu-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
color: white;
|
||||
border-radius: 6px;
|
||||
z-index: 3;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.bg_folder_tile .jg-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.bg_list {
|
||||
width: unset;
|
||||
}
|
||||
@@ -102,10 +152,31 @@
|
||||
}
|
||||
|
||||
#add_background_button_top>span,
|
||||
#auto_background>span {
|
||||
#auto_background>span,
|
||||
#bg_add_folder_button>span,
|
||||
#bg_selection_mode_button>span:not(#bg_group_select_count),
|
||||
#bg_group_add_to_folder_button>span,
|
||||
#bg_folder_remove_selected_button>span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#bg_group_select_count:not(:empty) {
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
.bg_folder_breadcrumb {
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.bg_folder_breadcrumb .expander {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#bg_current_folder_name {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
#extensions_settings,
|
||||
#extensions_settings2 {
|
||||
width: 100% !important;
|
||||
|
||||
@@ -161,6 +161,10 @@ body.no-blur .popup[open]::backdrop {
|
||||
.popup-inputs {
|
||||
margin-top: 10px;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.popup-inputs label span {
|
||||
/* Make the title of the custom inputs a bit darker, but keep their text at default opacity. */
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
|
||||
@@ -568,3 +568,9 @@ label[for="bind_preset_to_connection"]:has(input:checked) {
|
||||
#adaptive_p_block:has([data-tg-samplers="adaptive_target"][style*="display: none"]):has([data-tg-samplers="adaptive_decay"][style*="display: none"]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#openrouter_provider_warning_text,
|
||||
#openrouter_provider_warning_chat {
|
||||
color: var(--warning);
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
.welcomePanel.recentHidden .welcomeRecent,
|
||||
.welcomePanel.recentHidden .recentChatsTitle,
|
||||
.welcomePanel.recentHidden .hideRecentChats,
|
||||
.welcomePanel.recentHidden .recentChatsSettings,
|
||||
.welcomePanel:not(.recentHidden) .showRecentChats {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Vendored
+4
-1
@@ -1,6 +1,6 @@
|
||||
import libs from './lib';
|
||||
import getContext from './scripts/st-context';
|
||||
import { power_user } from './scripts/power-user';
|
||||
import { power_user, getThemeObject } from './scripts/power-user';
|
||||
import { QuickReplyApi } from './scripts/extensions/quick-reply/api/QuickReplyApi';
|
||||
import { oai_settings } from './scripts/openai';
|
||||
import { textgenerationwebui_settings } from './scripts/textgen-settings';
|
||||
@@ -21,6 +21,7 @@ declare global {
|
||||
type MessageTimestamp = string | number | Date;
|
||||
type Character = import('./scripts/char-data').v1CharData;
|
||||
type ChatMessageExtra = BaseMessageExtra & Partial<ReasoningMessageExtra> & Record<string, any>;
|
||||
type Theme = ReturnType<typeof getThemeObject>;
|
||||
|
||||
interface Group {
|
||||
id: string;
|
||||
@@ -138,6 +139,8 @@ declare global {
|
||||
interface ImageGenerationAttachmentProps {
|
||||
generation_type?: number;
|
||||
negative?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
}
|
||||
|
||||
interface ImageCaptionAttachmentProps {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="64" height="64">
|
||||
<path d="M8.16 23h21.177v-5.86l-4.023-2.307-.694-.3-16.46.113z" fill="none" />
|
||||
<path
|
||||
d="M22.012 22.222c.197-.675.122-1.294-.206-1.754-.3-.422-.807-.666-1.416-.694l-11.545-.15c-.075 0-.14-.038-.178-.094s-.047-.13-.028-.206c.038-.113.15-.197.272-.206l11.648-.15c1.38-.066 2.88-1.182 3.404-2.55l.666-1.735a.38.38 0 0 0 .02-.225c-.75-3.395-3.78-5.927-7.4-5.927-3.34 0-6.17 2.157-7.184 5.15-.657-.488-1.5-.75-2.392-.666-1.604.16-2.9 1.444-3.048 3.048a3.58 3.58 0 0 0 .084 1.191A4.84 4.84 0 0 0 0 22.1c0 .234.02.47.047.703.02.113.113.197.225.197H21.58a.29.29 0 0 0 .272-.206l.16-.572z"
|
||||
/>
|
||||
<path
|
||||
d="M25.688 14.803l-.32.01c-.075 0-.14.056-.17.13l-.45 1.566c-.197.675-.122 1.294.206 1.754.3.422.807.666 1.416.694l2.457.15c.075 0 .14.038.178.094s.047.14.028.206c-.038.113-.15.197-.272.206l-2.56.15c-1.388.066-2.88 1.182-3.404 2.55l-.188.478c-.038.094.028.188.13.188h8.797a.23.23 0 0 0 .225-.169A6.41 6.41 0 0 0 32 21.106a6.32 6.32 0 0 0-6.312-6.302"
|
||||
/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
+165
-21
@@ -697,7 +697,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai">
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Temperature">
|
||||
Temperature
|
||||
</div>
|
||||
@@ -710,7 +710,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes">
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Frequency Penalty">
|
||||
Frequency Penalty
|
||||
</div>
|
||||
@@ -723,7 +723,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes">
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Presence Penalty">
|
||||
Presence Penalty
|
||||
</div>
|
||||
@@ -736,7 +736,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="claude,aimlapi,openrouter,makersuite,vertexai,cohere,perplexity,electronhub,chutes,nanogpt">
|
||||
<div class="range-block" data-source="claude,aimlapi,openrouter,makersuite,vertexai,cohere,perplexity,electronhub,chutes,nanogpt,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Top K">
|
||||
Top K
|
||||
</div>
|
||||
@@ -749,7 +749,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai">
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Top P">
|
||||
Top P
|
||||
</div>
|
||||
@@ -762,7 +762,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openrouter,nanogpt,chutes">
|
||||
<div class="range-block" data-source="openrouter,nanogpt,chutes,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Repetition Penalty">
|
||||
Repetition Penalty
|
||||
</div>
|
||||
@@ -986,7 +986,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq,electronhub,chutes,nanogpt,xai,pollinations,aimlapi,makersuite,vertexai,azure_openai">
|
||||
<div class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq,electronhub,chutes,nanogpt,xai,pollinations,aimlapi,makersuite,vertexai,azure_openai,workers_ai">
|
||||
<div class="range-block-title justifyLeft" data-i18n="Seed">
|
||||
Seed
|
||||
</div>
|
||||
@@ -1982,7 +1982,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,xai,electronhub,chutes,nanogpt">
|
||||
<div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,electronhub,chutes,nanogpt">
|
||||
<label for="openai_enable_web_search" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_enable_web_search" type="checkbox" />
|
||||
<span data-i18n="Enable web search">Enable web search</span>
|
||||
@@ -1996,7 +1996,7 @@
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,cohere,mistralai,custom,claude,aimlapi,openrouter,groq,siliconflow,deepseek,makersuite,vertexai,ai21,xai,pollinations,moonshot,fireworks,cometapi,electronhub,chutes,azure_openai,zai,nanogpt">
|
||||
<div class="range-block" data-source="openai,cohere,mistralai,custom,claude,aimlapi,openrouter,groq,siliconflow,deepseek,makersuite,vertexai,ai21,xai,pollinations,moonshot,fireworks,cometapi,electronhub,chutes,azure_openai,zai,nanogpt,workers_ai">
|
||||
<label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_function_calling" type="checkbox" />
|
||||
<span data-i18n="Enable function calling">Enable function calling</span>
|
||||
@@ -2011,7 +2011,31 @@
|
||||
<strong data-i18n="enable_functions_desc_4">Not supported when Prompt Post-Processing with "no tools" is used!</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot,cohere,cometapi,nanogpt,electronhub,azure_openai,zai,siliconflow,chutes">
|
||||
<div class="range-block" data-source="openrouter">
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10">
|
||||
<div class="flex-container oneline-dropdown">
|
||||
<label for="tool_reasoning_mode" data-i18n="Interleaved Thinking">
|
||||
Interleaved Thinking
|
||||
</label>
|
||||
<select id="tool_reasoning_mode">
|
||||
<option data-i18n="Disabled" value="disabled">Disabled</option>
|
||||
<option data-i18n="Since Last User Message" value="since_last_user">Since Last User Message</option>
|
||||
<option data-i18n="Active Tool Chain" value="active_chain">Active Tool Chain</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="toggle-description justifyLeft">
|
||||
<span data-i18n="openrouter_interleaved_thinking_hint">
|
||||
Sends reasoning from preceding assistant turns with tool-call requests to maintain interleaved thinking context.
|
||||
</span>
|
||||
</div>
|
||||
<div id="openrouter_interleaved_thinking_disabled_hint" class="toggle-description justifyLeft" style="display:none;">
|
||||
<em data-i18n="Enable "Request model reasoning" to use Interleaved Thinking.">
|
||||
Enable "Request model reasoning" to use Interleaved Thinking.
|
||||
</em>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot,cohere,cometapi,nanogpt,electronhub,azure_openai,zai,siliconflow,chutes,workers_ai">
|
||||
<label for="openai_media_inlining" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_media_inlining" type="checkbox" />
|
||||
<span data-i18n="Send inline media">Send inline media</span>
|
||||
@@ -2035,7 +2059,7 @@
|
||||
<strong data-source="makersuite,vertexai" data-i18n="video_inlining_hint_4">Videos must be less than 20 MB and under 1 minute long.</strong>
|
||||
<strong data-source="makersuite,vertexai" data-i18n="audio_inlining_hint_2">Audio must be less than 20 MB.</strong>
|
||||
</div>
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations,cohere,cometapi,nanogpt,moonshot,aimlapi,openrouter,mistralai,electronhub,azure_openai,zai,siliconflow,chutes,makersuite,vertexai">
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations,cohere,cometapi,nanogpt,moonshot,aimlapi,openrouter,mistralai,electronhub,azure_openai,zai,siliconflow,chutes,makersuite,vertexai,workers_ai">
|
||||
<div class="flex-container oneline-dropdown">
|
||||
<label for="openai_inline_image_quality" data-i18n="Inline Image Quality">
|
||||
Inline Image Quality
|
||||
@@ -2096,7 +2120,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="deepseek,aimlapi,openrouter,custom,claude,xai,makersuite,vertexai,pollinations,moonshot,mistralai,fireworks,cometapi,electronhub,chutes,azure_openai,nanogpt,zai">
|
||||
<div class="range-block" data-source="deepseek,aimlapi,openrouter,custom,claude,xai,makersuite,vertexai,pollinations,moonshot,mistralai,fireworks,cometapi,electronhub,chutes,azure_openai,nanogpt,zai,workers_ai">
|
||||
<label for="openai_show_thoughts" class="checkbox_label widthFreeExpand">
|
||||
<input id="openai_show_thoughts" type="checkbox" />
|
||||
<span data-i18n="Request model reasoning">Request model reasoning</span>
|
||||
@@ -2105,7 +2129,7 @@
|
||||
<span data-i18n="Allows the model to return its thinking process.">
|
||||
Allows the model to return its thinking process.
|
||||
</span>
|
||||
<strong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai,moonshot">
|
||||
<strong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai,moonshot,openrouter">
|
||||
This setting affects visibility only.
|
||||
</strong>
|
||||
</div>
|
||||
@@ -2127,6 +2151,9 @@
|
||||
<div class="toggle-description justifyLeft marginBot5" data-source="openai,custom,xai,aimlapi,openrouter,pollinations,perplexity,cometapi,electronhub,azure_openai,chutes" data-i18n="OpenAI-style options: low, medium, high. Minimum and maximum are aliased to low and high. Auto does not send an effort level.">
|
||||
OpenAI-style options: low, medium, high. Minimum and maximum are aliased to low and high. Auto does not send an effort level.
|
||||
</div>
|
||||
<strong class="toggle-description justifyLeft marginBot5" data-source="openrouter">
|
||||
Request model reasoning = Off with Reasoning Effort = Minimum disables reasoning entirely on models that support that, but can cause errors with some models.
|
||||
</strong>
|
||||
<div class="toggle-description justifyLeft marginBot5" data-source="claude" data-i18n="Allocates a portion of the response length for thinking (min: 1024 tokens, low: 10%, medium: 25%, high: 50%, max: 95%), but minimum 1024 tokens. Auto does not request thinking.">
|
||||
Allocates a portion of the response length for thinking (min: 1024 tokens, low: 10%, medium: 25%, high: 50%, max: 95%), but minimum 1024 tokens. Auto does not request thinking.
|
||||
</div>
|
||||
@@ -2155,6 +2182,9 @@
|
||||
<div class="toggle-description justifyLeft marginBot5" data-i18n="Constrains the verbosity of the model's response.">
|
||||
Constrains the verbosity of the model's response.
|
||||
</div>
|
||||
<strong class="toggle-description justifyLeft marginBot5" data-source="claude">
|
||||
On Opus 4.6 / Sonnet 4.6, a non-automatic Reasoning Effort takes precedence over Verbosity.
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="claude">
|
||||
@@ -2433,10 +2463,13 @@
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<h4 data-i18n="Model Providers">Model Providers</h4>
|
||||
<h4>
|
||||
<span data-i18n="Model Providers">Model Providers</span>
|
||||
<i id="openrouter_provider_warning_text" class="fa-solid fa-circle-exclamation displayNone" title="Deselect inapplicable provider(s) or select an applicable provider to avoid a 404 error."></i>
|
||||
</h4>
|
||||
<select id="openrouter_providers_text" class="openrouter_providers" multiple>
|
||||
</select>
|
||||
<label class="checkbox_label" data-tg-samplers="openrouter_allow_fallbacks" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." for="openrouter_allow_fallbacks_textgenerationwebui" title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
|
||||
<label class="checkbox_label" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." for="openrouter_allow_fallbacks_textgenerationwebui" title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
|
||||
<input id="openrouter_allow_fallbacks_textgenerationwebui" type="checkbox" />
|
||||
<span data-i18n="Allow fallback providers">Allow fallback providers</span>
|
||||
</label>
|
||||
@@ -2861,6 +2894,7 @@
|
||||
<option value="azure_openai">Azure OpenAI</option>
|
||||
<option value="chutes">Chutes</option>
|
||||
<option value="claude">Claude</option>
|
||||
<option value="workers_ai">Cloudflare Workers AI</option>
|
||||
<option value="cohere">Cohere</option>
|
||||
<!-- Temporarily disabled. -->
|
||||
<!-- <option value="cometapi">CometAPI</option> -->
|
||||
@@ -2995,6 +3029,12 @@
|
||||
<div>
|
||||
<h4 data-i18n="OpenAI Model">OpenAI Model</h4>
|
||||
<select id="model_openai_select">
|
||||
<optgroup label="GPT-5.4">
|
||||
<option value="gpt-5.4">gpt-5.4</option>
|
||||
</optgroup>
|
||||
<optgroup label="GPT-5.3">
|
||||
<option value="gpt-5.3-chat-latest">gpt-5.3-chat-latest</option>
|
||||
</optgroup>
|
||||
<optgroup label="GPT-5.2">
|
||||
<option value="gpt-5.2">gpt-5.2</option>
|
||||
<option value="gpt-5.2-2025-12-11">gpt-5.2-2025-12-11</option>
|
||||
@@ -3107,6 +3147,7 @@
|
||||
<option value="claude-opus-4-6">claude-opus-4-6</option>
|
||||
<option value="claude-opus-4-5">claude-opus-4-5</option>
|
||||
<option value="claude-opus-4-5-20251101">claude-opus-4-5-20251101</option>
|
||||
<option value="claude-sonnet-4-6">claude-sonnet-4-6</option>
|
||||
<option value="claude-sonnet-4-5">claude-sonnet-4-5</option>
|
||||
<option value="claude-sonnet-4-5-20250929">claude-sonnet-4-5-20250929</option>
|
||||
<option value="claude-haiku-4-5">claude-haiku-4-5</option>
|
||||
@@ -3186,7 +3227,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4 data-i18n="Model Providers">Model Providers</h4>
|
||||
<h4>
|
||||
<span data-i18n="Model Providers">Model Providers</span>
|
||||
<i id="openrouter_provider_warning_chat" class="fa-solid fa-circle-exclamation displayNone" title="Deselect inapplicable provider(s) or select an applicable provider to avoid a 404 error."></i>
|
||||
</h4>
|
||||
<select id="openrouter_providers_chat" class="openrouter_providers" multiple>
|
||||
</select>
|
||||
<label class="checkbox_label marginTopBot5" for="openrouter_allow_fallbacks" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
|
||||
@@ -3259,6 +3303,11 @@
|
||||
<div>
|
||||
<h4 data-i18n="Google Model">Google Model</h4>
|
||||
<select id="model_google_select">
|
||||
<optgroup label="Gemini 3.1">
|
||||
<option value="gemini-3.1-pro-preview">gemini-3.1-pro-preview</option>
|
||||
<option value="gemini-3.1-flash-lite-preview">gemini-3.1-flash-lite-preview</option>
|
||||
<option value="gemini-3.1-flash-image-preview">gemini-3.1-flash-image-preview</option>
|
||||
</optgroup>
|
||||
<optgroup label="Gemini 3.0">
|
||||
<option value="gemini-3-pro-preview">gemini-3-pro-preview</option>
|
||||
<option value="gemini-3-pro-image-preview">gemini-3-pro-image-preview</option>
|
||||
@@ -3432,6 +3481,11 @@
|
||||
<h4 data-i18n="Google Model">Google Model</h4>
|
||||
<select id="model_vertexai_select">
|
||||
<!-- data-mode="full" is for models that require a service account -->
|
||||
<optgroup label="Gemini 3.1">
|
||||
<option value="gemini-3.1-pro-preview">gemini-3.1-pro-preview</option>
|
||||
<option value="gemini-3.1-flash-lite-preview">gemini-3.1-flash-lite-preview</option>
|
||||
<option value="gemini-3.1-flash-image-preview">gemini-3.1-flash-image-preview</option>
|
||||
</optgroup>
|
||||
<optgroup label="Gemini 3.0">
|
||||
<option value="gemini-3-pro-preview">gemini-3-pro-preview</option>
|
||||
<option value="gemini-3-pro-image-preview">gemini-3-pro-image-preview</option>
|
||||
@@ -3503,6 +3557,11 @@
|
||||
<div data-for="api_key_siliconflow" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you click 'Connect'.">
|
||||
For privacy reasons, your API key will be hidden after you click 'Connect'.
|
||||
</div>
|
||||
<h4 data-i18n="SiliconFlow Endpoint">SiliconFlow Endpoint</h4>
|
||||
<select id="siliconflow_endpoint">
|
||||
<option value="global" data-i18n="Global (siliconflow.com)">Global (siliconflow.com)</option>
|
||||
<option value="cn" data-i18n="China (siliconflow.cn)">China (siliconflow.cn)</option>
|
||||
</select>
|
||||
<h4>SiliconFlow Model</h4>
|
||||
<select id="model_siliconflow_select">
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
@@ -3613,6 +3672,26 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div id="workers_ai_form" data-source="workers_ai">
|
||||
<h4><a href="https://dash.cloudflare.com/?to=/:account/ai/workers-ai/api-quick-start" target="_blank" rel="noopener noreferrer" data-i18n="Cloudflare Workers AI API Key">Cloudflare Workers AI API Key</a></h4>
|
||||
<div class="flex-container">
|
||||
<input id="api_key_workers_ai" name="api_key_workers_ai" class="text_pole flex1" value="" type="text" autocomplete="off">
|
||||
<div title="Manage API keys" data-i18n="[title]Manage API keys" class="menu_button fa-solid fa-key fa-fw manage-api-keys" data-key="api_key_workers_ai"></div>
|
||||
</div>
|
||||
<div data-for="api_key_workers_ai" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you click 'Connect'.">
|
||||
For privacy reasons, your API key will be hidden after you click 'Connect'.
|
||||
</div>
|
||||
<h4><a href="https://dash.cloudflare.com/?to=/:account/workers-and-pages" target="_blank" rel="noopener noreferrer" data-i18n="Cloudflare Account ID">Cloudflare Account ID</a></h4>
|
||||
<div class="flex-container">
|
||||
<input id="workers_ai_account_id" class="text_pole flex1" value="" type="text" autocomplete="off" placeholder="e.g. 023e105f4ecef8ad9ca31a8372d0c353" data-i18n="[placeholder]e.g. 023e105f4ecef8ad9ca31a8372d0c353">
|
||||
</div>
|
||||
<div>
|
||||
<h4 data-i18n="Workers AI Model">Workers AI Model</h4>
|
||||
<select id="model_workers_ai_select">
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div id="deepseek_form" data-source="deepseek">
|
||||
<h4 data-i18n="DeepSeek API Key">DeepSeek API Key</h4>
|
||||
<div class="flex-container">
|
||||
@@ -3865,6 +3944,9 @@
|
||||
</select>
|
||||
<h4 data-i18n="Z.AI Model">Z.AI Model</h4>
|
||||
<select id="model_zai_select">
|
||||
<option value="glm-5-turbo">glm-5-turbo</option>
|
||||
<option value="glm-5v-turbo">glm-5v-turbo</option>
|
||||
<option value="glm-5.1">glm-5.1</option>
|
||||
<option value="glm-5">glm-5</option>
|
||||
<option value="glm-4.7">glm-4.7</option>
|
||||
<option value="glm-4.7-flash">glm-4.7-flash</option>
|
||||
@@ -5557,6 +5639,10 @@
|
||||
<i class="fa-solid fa-wand-magic"></i>
|
||||
<span data-i18n="Auto-select">Auto-select</span>
|
||||
</div>
|
||||
<button id="bg_add_folder_button" class="menu_button menu_button_icon" data-i18n="[title]New Folder" title="New Folder">
|
||||
<i class="fa-solid fa-folder-plus"></i>
|
||||
<span data-i18n="New Folder">New Folder</span>
|
||||
</button>
|
||||
<label for="add_bg_button" id="add_background_button_top" class="menu_button menu_button_icon" data-i18n="[title]Add a new background" title="Add a new background">
|
||||
<i class="fa-solid fa-upload"></i>
|
||||
<span data-i18n="Add Background">Add Background</span>
|
||||
@@ -5581,6 +5667,14 @@
|
||||
<a href="#bg_chat_tab" data-i18n="Chat">Chat</a>
|
||||
</li>
|
||||
<div class="heading-controls">
|
||||
<button id="bg_group_add_to_folder_button" class="menu_button menu_button_icon" style="display:none;" data-i18n="[title]Add selected backgrounds to folder" title="Add selected backgrounds to folder">
|
||||
<i class="fa-solid fa-folder-tree"></i>
|
||||
<span data-i18n="Add to Folder">Add to Folder</span>
|
||||
</button>
|
||||
<button id="bg_selection_mode_button" class="menu_button menu_button_icon" data-i18n="[title]Select backgrounds for bulk folder actions" title="Select backgrounds for bulk folder actions">
|
||||
<i class="fa-solid fa-edit"></i>
|
||||
<span id="bg_group_select_count" style="display:none;"></span>
|
||||
</button>
|
||||
<button id="bg_thumb_zoom_out" class="menu_button menu_button_icon" title="Make thumbnails smaller" data-i18n="[title]Make thumbnails smaller">
|
||||
<i class="fa-solid fa-minus"></i>
|
||||
</button>
|
||||
@@ -5590,6 +5684,19 @@
|
||||
</div>
|
||||
</ul>
|
||||
<div id="bg_global_tab" class="bg_tab_panel">
|
||||
<div id="bg_folder_breadcrumb" class="bg_folder_breadcrumb" style="display:none;">
|
||||
<button id="bg_back_to_folders" class="menu_button menu_button_icon">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
<span data-i18n="Back">Back</span>
|
||||
</button>
|
||||
<span id="bg_current_folder_name" class="bg_current_folder_name"></span>
|
||||
<span class="expander"></span>
|
||||
<button id="bg_folder_remove_selected_button" class="menu_button menu_button_icon" style="display:none;" data-i18n="[title]Remove selected backgrounds from this folder" title="Remove selected backgrounds from this folder">
|
||||
<i class="fa-solid fa-folder-minus"></i>
|
||||
<span data-i18n="Remove from Folder">Remove from Folder</span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="bg_folder_grid" class="bg_list bg_folder_grid"></div>
|
||||
<div id="bg_menu_content" class="bg_list"></div>
|
||||
</div>
|
||||
<div id="bg_chat_tab" class="bg_tab_panel">
|
||||
@@ -5754,12 +5861,18 @@
|
||||
<div class="persona_controls_buttons_block buttons_block">
|
||||
<div id="persona_rename_button" class="menu_button fa-solid fa-pencil" title="Rename Persona" data-i18n="[title]Rename Persona"></div>
|
||||
<div id="sync_name_button" class="menu_button fa-solid fa-sync" title="Click to set user name for all messages" data-i18n="[title]Click to set user name for all messages"></div>
|
||||
<div id="persona_lore_button" class="menu_button fa-solid fa-globe" title="Persona Lore Alt+Click to open the lorebook" data-i18n="[title]Persona Lore Alt+Click to open the lorebook"></div>
|
||||
<div id="persona_lore_button" class="menu_button fa-solid fa-globe" title="Persona Lore Click to load Shift/Alt-click or long-press to open 'Link to Persona Lorebook' popup" data-i18n="[title]persona_lore_button_title"></div>
|
||||
|
||||
<div id="persona_set_image_button" class="menu_button fa-solid fa-image" title="Change Persona Image" data-i18n="[title]Change Persona Image"></div>
|
||||
<div id="persona_duplicate_button" class="menu_button fa-solid fa-clone" title="Duplicate Persona" data-i18n="[title]Duplicate Persona"></div>
|
||||
<div id="persona_delete_button" class="menu_button fa-solid fa-skull red_button" title="Delete Persona" data-i18n="[title]Delete Persona"></div>
|
||||
</div>
|
||||
<label class="flex1 height100p" for="persona-management-dropdown">
|
||||
<select id="persona-management-dropdown" class="text_pole">
|
||||
<option value="default" disabled selected data-i18n="More...">More...</option>
|
||||
<option id="persona_lorebook_link" data-i18n="Link to Persona Lorebook">Link to Persona Lorebook</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<h4 class="flex-container alignItemsBaseline">
|
||||
@@ -5925,8 +6038,8 @@
|
||||
<div id="favorite_button" class="menu_button fa-solid fa-star" title="Add to Favorites" data-i18n="[title]Add to Favorites"></div>
|
||||
<input type="hidden" id="fav_checkbox" name="fav" />
|
||||
<div id="advanced_div" class="menu_button fa-solid fa-book " title="Advanced Definitions" data-i18n="[title]Advanced Definition"></div>
|
||||
<div id="world_button" class="menu_button fa-solid fa-globe" title="Character Lore Click to load Shift-click to open 'Link to World Info' popup" data-i18n="[title]world_button_title"></div>
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore Alt+Click to open the lorebook" data-i18n="[title]Chat Lore Alt+Click to open the lorebook"></div>
|
||||
<div id="world_button" class="menu_button fa-solid fa-globe" title="Character Lore Click to load Shift/Alt-click or long-press to open 'Link to World Info' popup" data-i18n="[title]world_button_title"></div>
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore Click to load Shift/Alt-click or long-press to open 'Link to Chat Lorebook' popup" data-i18n="[title]chat_lorebook_button_title"></div>
|
||||
<div id="char_connections_button" class="menu_button fa-solid fa-face-smile" title="Connected Personas" data-i18n="[title]Connected Personas"></div>
|
||||
<div id="export_button" class="menu_button fa-solid fa-file-export " title="Export and Download" data-i18n="[title]Export and Download"></div>
|
||||
<!-- <div id="set_chat_character_settings" class="menu_button fa-solid fa-scroll" title="Set a chat scenario override"></div> -->
|
||||
@@ -6077,8 +6190,14 @@
|
||||
<div id="group-metadata-controls" class="marginTopBot5">
|
||||
<div class="flex-container wide100p">
|
||||
<input id="rm_group_chat_name" class="text_pole flex1" type="text" name="chat_name" data-i18n="[placeholder]Chat Name (Optional)" placeholder="Chat Name (Optional)" />
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore" data-i18n="[title]Chat Lore"></div>
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore Click to load Shift/Alt-click or long-press to open 'Link to Chat Lorebook' popup" data-i18n="[title]chat_lorebook_button_title"></div>
|
||||
</div>
|
||||
<label class="flex1 height100p" for="group-chat-lorebook-dropdown">
|
||||
<select id="group-chat-lorebook-dropdown" class="text_pole">
|
||||
<option value="default" disabled selected data-i18n="More...">More...</option>
|
||||
<option id="group_chat_lorebook_link" data-i18n="Link to Chat Lorebook">Link to Chat Lorebook</option>
|
||||
</select>
|
||||
</label>
|
||||
<div id="group_tags_div" class="wide100p">
|
||||
<div class="tag_controls">
|
||||
<input id="groupTagInput" class="text_pole textarea_compact tag_input flex1 margin0" data-i18n="[placeholder]Search / Create Tags" placeholder="Search / Create tags" />
|
||||
@@ -6558,10 +6677,34 @@
|
||||
<div data-action="copy" class="jg-button jg-copy fa-solid fa-file-arrow-up" data-i18n="[title]Copy to global backgrounds" title="Copy to global backgrounds"></div>
|
||||
<div data-action="edit" class="jg-button jg-edit fa-solid fa-pen-to-square fa-fw pointer" data-i18n="[title]Rename Background" title="Rename Background"></div>
|
||||
<div data-action="delete" class="jg-button jg-delete fa-solid fa-trash-can fa-fw pointer" data-i18n="[title]Delete Background" title="Delete Background"></div>
|
||||
<div data-action="folder" class="jg-button jg-folder fa-solid fa-folder fa-fw pointer" data-i18n="[title]Add to folder" title="Add to folder"></div>
|
||||
<div data-action="set-cover" class="jg-button jg-set-cover fa-solid fa-image fa-fw pointer" data-i18n="[title]Set as folder cover" title="Set as folder cover"></div>
|
||||
</div>
|
||||
<div class="BGSampleTitle"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bg_folder_tile_template" class="template_element">
|
||||
<div class="bg_folder_tile" data-folder-id="">
|
||||
<div class="bg_folder_tile_cover"></div>
|
||||
<div class="bg_folder_tile_overlay">
|
||||
<i class="fa-solid fa-folder"></i>
|
||||
<span class="bg_folder_tile_name"></span>
|
||||
</div>
|
||||
<div class="mobile-only-menu-toggle">
|
||||
<i class="fa-solid fa-ellipsis-vertical"></i>
|
||||
</div>
|
||||
<div class="bg_folder_tile_menu jg-menu">
|
||||
<div data-action="rename-folder" class="jg-button fa-solid fa-pen-to-square fa-fw pointer" data-i18n="[title]Rename folder" title="Rename folder"></div>
|
||||
<div data-action="delete-folder" class="jg-button fa-solid fa-trash-can fa-fw pointer" data-i18n="[title]Delete folder" title="Delete folder"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bg_new_folder_template" class="template_element">
|
||||
<div class="bg_folder_tile bg_new_folder_tile">
|
||||
<i class="fa-solid fa-folder-plus fa-2x"></i>
|
||||
<span data-i18n="New Folder">New Folder</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- templates for JS to reuse when needed -->
|
||||
<div id="character_world_template" class="template_element">
|
||||
<div class="character_world range-block flexFlowColumn flex-container">
|
||||
@@ -6612,7 +6755,7 @@
|
||||
<small class="chat_file_size select_chat_block_filename_item"></small>
|
||||
<small class="chat_messages_num select_chat_block_filename_item"></small>
|
||||
</div>
|
||||
<div class="flex-container gap10px">
|
||||
<div class="select_chat_actions flex-container gap10px">
|
||||
<div title="Export JSONL chat file" data-format="jsonl" class="exportRawChatButton opacity50p hoverglow fa-solid fa-file-export" data-i18n="[title]Export JSONL chat file"></div>
|
||||
<div title="Download chat as plain text document" data-format="txt" class="exportChatButton opacity50p hoverglow fa-solid fa-file-lines" data-i18n="[title]Download chat as plain text document"></div>
|
||||
<div title="Delete chat file" file_name="" class="PastChat_cross opacity50p hoverglow fa-solid fa-skull" data-i18n="[title]Delete chat file"></div>
|
||||
@@ -7245,6 +7388,7 @@
|
||||
<div title="Toggle media display style" class="mes_button mes_media_gallery fa-solid fa-photo-film" data-i18n="[title]Toggle media display style"></div>
|
||||
<div title="Toggle media display style" class="mes_button mes_media_list fa-solid fa-table-cells-large" data-i18n="[title]Toggle media display style"></div>
|
||||
<div title="Embed file or image" class="mes_button mes_embed fa-solid fa-paperclip" data-i18n="[title]Embed file or image"></div>
|
||||
<div title="Jump to swipe history" class="mes_button mes_swipe_picker fa-solid fa-bookmark" data-i18n="[title]Jump to swipe history" style="display: none;"></div>
|
||||
<div title="Create checkpoint" class="mes_button mes_create_bookmark fa-regular fa-solid fa-flag-checkered" data-i18n="[title]Create checkpoint"></div>
|
||||
<div title="Create branch" class="mes_button mes_create_branch fa-regular fa-code-branch" data-i18n="[title]Create Branch"></div>
|
||||
<div title="Copy" class="mes_button mes_copy fa-solid fa-copy " data-i18n="[title]Copy"></div>
|
||||
|
||||
@@ -23,6 +23,7 @@ import { toggle as slideToggle } from 'slidetoggle';
|
||||
import chalk from 'chalk';
|
||||
import yaml from 'yaml';
|
||||
import * as chevrotain from 'chevrotain';
|
||||
import { gzipSync, gzip } from 'fflate';
|
||||
|
||||
/**
|
||||
* Expose the libraries to the 'window' object.
|
||||
@@ -102,6 +103,8 @@ export default {
|
||||
chalk,
|
||||
yaml,
|
||||
chevrotain,
|
||||
gzipSync,
|
||||
gzip,
|
||||
};
|
||||
|
||||
export {
|
||||
@@ -127,4 +130,6 @@ export {
|
||||
chalk,
|
||||
yaml,
|
||||
chevrotain,
|
||||
gzipSync,
|
||||
gzip,
|
||||
};
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "مفتاح koboldcpp API (اختياري)",
|
||||
"Example: http://127.0.0.1:5001": "مثال: http://127.0.0.1:5001",
|
||||
"Authorize": "تفويض",
|
||||
"OpenRouter API key already exists": "مفتاح API OpenRouter موجود بالفعل",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "هل تريد حقاً إنشاء مفتاح OpenRouter جديد؟ لن يتم حذف مفتاحك الموجود.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "احصل على رمز واجهة برمجة التطبيقات الخاص بك لموزع الاتصالات باستخدام تدفق OAuth. سيتم توجيهك إلى openrouter.ai",
|
||||
"Bypass status check": "تجاوز فحص الحالة",
|
||||
"Chat Completion Source": "مصدر استكمال الدردشة",
|
||||
@@ -1438,5 +1440,19 @@
|
||||
"Still have questions?": "هل ما زالت لديك اسئلة؟",
|
||||
"Join the SillyTavern Discord": "انضم إلى ديسكورد SillyTavern",
|
||||
"Post a GitHub issue": "نشر مشكلة على GitHub",
|
||||
"Contact the developers": "الاتصال بالمطورين"
|
||||
"Contact the developers": "الاتصال بالمطورين",
|
||||
"Interleaved Thinking": "التفكير المتداخل",
|
||||
"Since Last User Message": "منذ آخر رسالة من المستخدم",
|
||||
"Active Tool Chain": "سلسلة الأدوات النشطة",
|
||||
"openrouter_interleaved_thinking_hint": "يرسل الاستدلال من رسائل المساعد السابقة مع طلبات استدعاء الأدوات للحفاظ على سياق التفكير المتداخل.",
|
||||
"SillyTavern Logo": "شعار SillyTavern",
|
||||
"Initializing…": "جارٍ التهيئة…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "الاسم غير مقبول، لأنه نفسه كما كان من قبل (تجاهل حالة الأحرف والنبرات).",
|
||||
"Rename Chat": "إعادة تسمية المحادثة",
|
||||
"Renaming chat…": "جارٍ إعادة تسمية المحادثة…",
|
||||
"Delete Chat": "حذف المحادثة",
|
||||
"Deleting chat…": "جارٍ حذف المحادثة…",
|
||||
"Loading chat…": "جارٍ تحميل المحادثة…",
|
||||
"Bulk Delete": "حذف جماعي",
|
||||
"Deleting ${0} character(s)…": "جارٍ حذف ${0} شخصية (شخصيات)…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API-Schlüssel (optional)",
|
||||
"Example: http://127.0.0.1:5001": "Beispiel: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorisieren",
|
||||
"OpenRouter API key already exists": "OpenRouter API-Schlüssel existiert bereits",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Möchten Sie wirklich einen neuen OpenRouter API-Schlüssel erstellen? Ihr vorhandener Schlüssel wird nicht gelöscht.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Hole dein OpenRouter-API-Token mit OAuth-Fluss. Du wirst zu openrouter.ai weitergeleitet",
|
||||
"Bypass status check": "Umgehe Statusüberprüfung",
|
||||
"Chat Completion Source": "Quelle für Chat-Vervollständigung",
|
||||
@@ -1438,5 +1440,19 @@
|
||||
"Still have questions?": "Hast du immer noch Fragen?",
|
||||
"Join the SillyTavern Discord": "Trete dem SillyTavern Discord bei",
|
||||
"Post a GitHub issue": "Veröffentliche ein GitHub-Problem",
|
||||
"Contact the developers": "Kontaktiere die Entwickler"
|
||||
"Contact the developers": "Kontaktiere die Entwickler",
|
||||
"Interleaved Thinking": "Verschränktes Denken",
|
||||
"Since Last User Message": "Seit letzter Nutzernachricht",
|
||||
"Active Tool Chain": "Aktive Tool-Kette",
|
||||
"openrouter_interleaved_thinking_hint": "Sendet Begründungen aus vorherigen Assistentennachrichten mit Tool-Aufrufen, um den Kontext für verschränktes Denken zu erhalten.",
|
||||
"SillyTavern Logo": "SillyTavern-Logo",
|
||||
"Initializing…": "Initialisierung…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Name nicht akzeptiert, da er derselbe wie zuvor ist (Groß-/Kleinschreibung und Akzente ignoriert).",
|
||||
"Rename Chat": "Chat umbenennen",
|
||||
"Renaming chat…": "Chat wird umbenannt…",
|
||||
"Delete Chat": "Chat löschen",
|
||||
"Deleting chat…": "Chat wird gelöscht…",
|
||||
"Loading chat…": "Chat wird geladen…",
|
||||
"Bulk Delete": "Massenlöschung",
|
||||
"Deleting ${0} character(s)…": "${0} Charakter(e) werden gelöscht…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "Clave API de koboldcpp (opcional)",
|
||||
"Example: http://127.0.0.1:5001": "Ejemplo: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorizar",
|
||||
"OpenRouter API key already exists": "La clave de API de OpenRouter ya existe",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "¿Realmente deseas crear una nueva clave de API de OpenRouter? Tu clave existente no será eliminada.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Obtenga su token de API de OpenRouter utilizando el flujo OAuth. Será redirigido a openrouter.ai",
|
||||
"Bypass status check": "Saltar la verificación del estado",
|
||||
"Chat Completion Source": "Fuente de Completado de Chat",
|
||||
@@ -1545,5 +1547,19 @@
|
||||
"Toggles sharing world tint with character sprites (This will override Character Tint)": "Alterna el tinte mundial compartido con los sprites de personajes (esto anulará el tinte de personajes)",
|
||||
"Sets the expression of the user sprite": "Establece la expresión del sprite de usuario",
|
||||
"Sets the user sprite set to use for the user sprite": "Establece el conjunto de sprites de usuario para usar en el sprite de usuario",
|
||||
"Toggles the user sprite on the VN UI": "Alterna el sprite de usuario en la interfaz VN"
|
||||
"Toggles the user sprite on the VN UI": "Alterna el sprite de usuario en la interfaz VN",
|
||||
"Interleaved Thinking": "Razonamiento intercalado",
|
||||
"Since Last User Message": "Desde el último mensaje del usuario",
|
||||
"Active Tool Chain": "Cadena de herramientas activa",
|
||||
"openrouter_interleaved_thinking_hint": "Envía razonamiento de turnos anteriores del asistente junto con solicitudes de herramientas para mantener el contexto del razonamiento intercalado.",
|
||||
"SillyTavern Logo": "Logo de SillyTavern",
|
||||
"Initializing…": "Inicializando…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nombre no aceptado, ya que es el mismo que antes (ignorando mayúsculas y acentos).",
|
||||
"Rename Chat": "Renombrar chat",
|
||||
"Renaming chat…": "Renombrando chat…",
|
||||
"Delete Chat": "Eliminar chat",
|
||||
"Deleting chat…": "Eliminando chat…",
|
||||
"Loading chat…": "Cargando chat…",
|
||||
"Bulk Delete": "Eliminación masiva",
|
||||
"Deleting ${0} character(s)…": "Eliminando ${0} personaje(s)…"
|
||||
}
|
||||
|
||||
@@ -320,6 +320,8 @@
|
||||
"koboldcpp API key (optional)": "Clé API koboldcpp (facultatif)",
|
||||
"Example: http://127.0.0.1:5001": "Exemple : http://127.0.0.1:5001",
|
||||
"Authorize": "Autoriser",
|
||||
"OpenRouter API key already exists": "La clé API OpenRouter existe déjà",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Voulez-vous vraiment créer une nouvelle clé OpenRouter ? Votre clé existante ne sera pas supprimée.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Obtenez votre jeton API OpenRouter en utilisant le flux OAuth. Vous serez redirigé vers openrouter.ai",
|
||||
"Bypass status check": "Contourner la vérification de l'état",
|
||||
"Chat Completion Source": "Source de complétion de chat",
|
||||
@@ -1516,10 +1518,10 @@
|
||||
"Contain": "Contenir",
|
||||
"Stretch": "Étirer",
|
||||
"Center": "Centrer",
|
||||
"Persona Lore Alt+Click to open the lorebook": "Lore de persona\nAlt+Click pour ouvrir le lorebook",
|
||||
"persona_lore_button_title": "Lore de persona\n\nCliquer pour charger\nMajuscule/Alt-clic ou appui long pour ouvrir la fenêtre contextuelle « Lien vers le Lorebook de persona ».",
|
||||
"None (disabled)": "Aucun (désactivé)",
|
||||
"world_button_title": "Lore de personnage\n\nCliquer pour charger\nMajuscule-clic pour ouvrir la fenêtre contextuelle « Lien vers le Wold Info ».",
|
||||
"Chat Lore Alt+Click to open the lorebook": "Lore du chat\nAlt+Click pour ouvrir le lorebook",
|
||||
"world_button_title": "Lore de personnage\n\nCliquer pour charger\nMajuscule/Alt-clic ou appui long pour ouvrir la fenêtre contextuelle « Lien vers le World Info ».",
|
||||
"chat_lorebook_button_title": "Lore du chat\n\nCliquer pour charger\nMajuscule/Alt-clic ou appui long pour ouvrir la fenêtre contextuelle « Lien vers le Lorebook du chat ».",
|
||||
"Manual": "Manuel",
|
||||
"Duplicate persona": "Dupliquer la persona",
|
||||
"popup-button-crop": "Recadrer",
|
||||
@@ -2012,7 +2014,7 @@
|
||||
"Downloader Options": "Options de téléchargement",
|
||||
"Extra parameters for downloading/HuggingFace API": "Paramètres supplémentaires pour le téléchargement/HuggingFace API.\rSi vous n'êtes pas sûr, laissez ces paramètres vides.",
|
||||
"Revision": "Révision",
|
||||
"Folder Name": "Nom du dossier de sortie",
|
||||
"Output Folder Name": "Nom du dossier de sortie",
|
||||
"HF Token": "Token HF",
|
||||
"Include Patterns": "Inclure les patterns",
|
||||
"Glob patterns of files to include in the download.": "Patterns globaux de fichiers à inclure dans le téléchargement.\rSéparer chaque pattern par une nouvelle ligne.",
|
||||
@@ -2046,5 +2048,19 @@
|
||||
"System Prompt Name": "Nom du prompt système:",
|
||||
"Instruct Mode": "Mode Instruction:",
|
||||
"Save and Update": "Sauvegarder et mettre à jour",
|
||||
"Don't ask again for this URL": "Ne plus demander pour cette URL"
|
||||
"Don't ask again for this URL": "Ne plus demander pour cette URL",
|
||||
"Interleaved Thinking": "Raisonnement intercalé",
|
||||
"Since Last User Message": "Depuis le dernier message utilisateur",
|
||||
"Active Tool Chain": "Chaîne d'outils active",
|
||||
"openrouter_interleaved_thinking_hint": "Envoie le raisonnement des tours précédents de l'assistant avec les requêtes d'outils pour conserver le contexte du raisonnement intercalé.",
|
||||
"SillyTavern Logo": "Logo SillyTavern",
|
||||
"Initializing…": "Initialisation…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nom non accepté, car il est identique à l'ancien (en ignorant la casse et les accents).",
|
||||
"Rename Chat": "Renommer la discussion",
|
||||
"Renaming chat…": "Renommage de la discussion…",
|
||||
"Delete Chat": "Supprimer la discussion",
|
||||
"Deleting chat…": "Suppression de la discussion…",
|
||||
"Loading chat…": "Chargement de la discussion…",
|
||||
"Bulk Delete": "Suppression groupée",
|
||||
"Deleting ${0} character(s)…": "Suppression de ${0} personnage(s)…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API lykill (valfrjálst)",
|
||||
"Example: http://127.0.0.1:5001": "Dæmi: http://127.0.0.1:5001",
|
||||
"Authorize": "Heimild",
|
||||
"OpenRouter API key already exists": "OpenRouter API lykill er þegar til",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Viltu virkilega búa til nýjan OpenRouter lykil? Núverandi lykill þinn verður ekki eytt.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Fáðu API lykilinn þinn fyrir OpenRouter með því að nota OAuth strauminn. Þú verður endurvísað(ð/ur) á openrouter.ai",
|
||||
"Bypass status check": "Hlaupa framhjá stöðutík",
|
||||
"Chat Completion Source": "Heimild að fullvirkni spjalls",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Ertu enn með spurningar?",
|
||||
"Join the SillyTavern Discord": "Skráðu þig í SillyTavern Discord",
|
||||
"Post a GitHub issue": "Senda inn GitHub málefni",
|
||||
"Contact the developers": "Hafa samband við þróunaraðila"
|
||||
"Contact the developers": "Hafa samband við þróunaraðila",
|
||||
"Interleaved Thinking": "Fléttuð hugsun",
|
||||
"Since Last User Message": "Frá síðustu notandaskilaboðum",
|
||||
"Active Tool Chain": "Virk verkfærakeðja",
|
||||
"openrouter_interleaved_thinking_hint": "Sendir röksemdir úr fyrri aðstoðarskilaboðum með verkfæraköllum til að viðhalda samhengi fléttaðrar hugsunar.",
|
||||
"SillyTavern Logo": "SillyTavern merki",
|
||||
"Initializing…": "Ræsir…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nafn ekki samþykkt, því það er það sama og áður (hunsar há-/lágstafi og brottmerki).",
|
||||
"Rename Chat": "Endurnefna spjall",
|
||||
"Renaming chat…": "Endurnefni spjall…",
|
||||
"Delete Chat": "Eyða spjalli",
|
||||
"Deleting chat…": "Eyði spjalli…",
|
||||
"Loading chat…": "Hleð spjalli…",
|
||||
"Bulk Delete": "Fjöldaeyðing",
|
||||
"Deleting ${0} character(s)…": "Eyði ${0} persónu(m)…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "Chiave API koboldcpp (opzionale)",
|
||||
"Example: http://127.0.0.1:5001": "Esempio: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorizzare",
|
||||
"OpenRouter API key already exists": "La chiave API di OpenRouter esiste già",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Desideri veramente creare una nuova chiave API di OpenRouter? La tua chiave esistente non verrà eliminata.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Ottieni il tuo token API di OpenRouter utilizzando il flusso OAuth. Sarai reindirizzato su openrouter.ai",
|
||||
"Bypass status check": "Ignora controllo stato",
|
||||
"Chat Completion Source": "Fonte di Completamento della Chat",
|
||||
@@ -1438,5 +1440,19 @@
|
||||
"Still have questions?": "Hai ancora domande?",
|
||||
"Join the SillyTavern Discord": "Unisciti al SillyTavern Discord",
|
||||
"Post a GitHub issue": "Pubblica un problema su GitHub",
|
||||
"Contact the developers": "Contatta gli sviluppatori"
|
||||
"Contact the developers": "Contatta gli sviluppatori",
|
||||
"Interleaved Thinking": "Ragionamento intercalato",
|
||||
"Since Last User Message": "Dall'ultimo messaggio utente",
|
||||
"Active Tool Chain": "Catena di strumenti attiva",
|
||||
"openrouter_interleaved_thinking_hint": "Invia il ragionamento dai turni precedenti dell'assistente con le richieste di strumenti per mantenere il contesto del ragionamento intercalato.",
|
||||
"SillyTavern Logo": "Logo SillyTavern",
|
||||
"Initializing…": "Inizializzazione…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nome non accettato, poiché è lo stesso di prima (ignorando maiuscole e accenti).",
|
||||
"Rename Chat": "Rinomina chat",
|
||||
"Renaming chat…": "Rinominazione chat…",
|
||||
"Delete Chat": "Elimina chat",
|
||||
"Deleting chat…": "Eliminazione chat…",
|
||||
"Loading chat…": "Caricamento chat…",
|
||||
"Bulk Delete": "Eliminazione multipla",
|
||||
"Deleting ${0} character(s)…": "Eliminazione di ${0} personaggio/i…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API キー (オプション)",
|
||||
"Example: http://127.0.0.1:5001": "例: http://127.0.0.1:5001",
|
||||
"Authorize": "承認",
|
||||
"OpenRouter API key already exists": "OpenRouter API キーは既に存在します",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "新しい OpenRouter キーを作成してもよろしいですか?既存のキーは削除されません。",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "OAuthフローを使用してOpenRouter APIトークンを取得します。 openrouter.aiにリダイレクトされます",
|
||||
"Bypass status check": "ステータスのチェックをバイパスする",
|
||||
"Chat Completion Source": "チャット補完ソース",
|
||||
@@ -1443,5 +1445,19 @@
|
||||
"Contact the developers": "開発者に連絡",
|
||||
"Stop Inspecting": "検査を停止",
|
||||
"Inspect Prompts": "プロンプトを検査",
|
||||
"Toggle prompt inspection": "プロンプト検査の切り替え"
|
||||
"Toggle prompt inspection": "プロンプト検査の切り替え",
|
||||
"Interleaved Thinking": "インターリーブ思考",
|
||||
"Since Last User Message": "直前のユーザーメッセージ以降",
|
||||
"Active Tool Chain": "アクティブなツールチェーン",
|
||||
"openrouter_interleaved_thinking_hint": "インターリーブ思考の文脈を維持するため、直前のアシスタントターンの推論をツール呼び出しリクエストとともに送信します。",
|
||||
"SillyTavern Logo": "SillyTavernロゴ",
|
||||
"Initializing…": "初期化中…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "名前が受け入れられませんでした。以前と同じです(大文字小文字とアクセントを無視)。",
|
||||
"Rename Chat": "チャット名を変更",
|
||||
"Renaming chat…": "チャット名を変更中…",
|
||||
"Delete Chat": "チャットを削除",
|
||||
"Deleting chat…": "チャットを削除中…",
|
||||
"Loading chat…": "チャットを読み込み中…",
|
||||
"Bulk Delete": "一括削除",
|
||||
"Deleting ${0} character(s)…": "${0}人のキャラクターを削除中…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API 키(선택사항)",
|
||||
"Example: http://127.0.0.1:5001": "예: http://127.0.0.1:5001",
|
||||
"Authorize": "승인하기",
|
||||
"OpenRouter API key already exists": "OpenRouter API 키가 이미 존재합니다",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "정말 새로운 OpenRouter 키를 만들기를 원하십니까? 기존 키는 삭제되지 않습니다.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "OAuth 플로우를 사용하여 OpenRouter API 토큰을 가져옵니다. openrouter.ai로 리디렉션됩니다.",
|
||||
"Legacy API (pre-OAI, no streaming)": "레거시 API (OAI 이전, 스트리밍 없음)",
|
||||
"Bypass status check": "상태 확인 우회",
|
||||
@@ -1533,7 +1535,7 @@
|
||||
"Only apply color as accent": "색상은 오직 강조로써만 적용됩니다",
|
||||
"qr--colorClear": "색상 지우기",
|
||||
"Color": "색상",
|
||||
"world_button_title": "캐릭터 로어. 클릭하여 로드하세요. Shift를 클릭하면 '월드 인포 링크' 팝업이 열립니다.",
|
||||
"world_button_title": "캐릭터 로어. 클릭하여 로드하세요. Shift/Alt+클릭 또는 길게 누르면 '월드 인포 링크' 팝업이 열립니다.",
|
||||
"Select TTS Provider": "TTS 공급자 선택",
|
||||
"tts_enabled": "활성화",
|
||||
"Narrate user messages": "사용자 메시지 나레이션",
|
||||
@@ -1617,5 +1619,19 @@
|
||||
"to install additional features.": "으로 가세요.",
|
||||
"Master Import": "마스터 불러오기",
|
||||
"Master Export": "마스터 내보내기",
|
||||
"Chat Quick Reply Sets": "채팅 빠른 답장 세트들"
|
||||
"Chat Quick Reply Sets": "채팅 빠른 답장 세트들",
|
||||
"Interleaved Thinking": "인터리브드 사고",
|
||||
"Since Last User Message": "마지막 사용자 메시지 이후",
|
||||
"Active Tool Chain": "활성 도구 체인",
|
||||
"openrouter_interleaved_thinking_hint": "인터리브드 사고 컨텍스트를 유지하기 위해 이전 어시스턴트 턴의 추론을 도구 호출 요청과 함께 전송합니다.",
|
||||
"SillyTavern Logo": "SillyTavern 로고",
|
||||
"Initializing…": "초기화 중…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "이름이 승인되지 않았습니다. 이전과 동일합니다(대소문자 및 악센트 무시).",
|
||||
"Rename Chat": "채팅 이름 변경",
|
||||
"Renaming chat…": "채팅 이름 변경 중…",
|
||||
"Delete Chat": "채팅 삭제",
|
||||
"Deleting chat…": "채팅 삭제 중…",
|
||||
"Loading chat…": "채팅 불러오는 중…",
|
||||
"Bulk Delete": "대량 삭제",
|
||||
"Deleting ${0} character(s)…": "${0}개 캐릭터 삭제 중…"
|
||||
}
|
||||
|
||||
@@ -333,6 +333,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API-sleutel (optioneel)",
|
||||
"Example: http://127.0.0.1:5001": "Voorbeeld: http://127.0.0.1:5001",
|
||||
"Authorize": "Toestemming geven",
|
||||
"OpenRouter API key already exists": "OpenRouter API-sleutel bestaat al",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Wilt u echt een nieuwe OpenRouter API-sleutel maken? Uw bestaande sleutel wordt niet verwijderd.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Haal uw OpenRouter API-token op met behulp van OAuth-flow. U wordt doorgestuurd naar openrouter.ai",
|
||||
"Bypass status check": "Omzeil statuscontrole",
|
||||
"Chat Completion Source": "Bron voor Chatvoltooiing",
|
||||
@@ -1434,5 +1436,19 @@
|
||||
"Still have questions?": "Heb je nog vragen?",
|
||||
"Join the SillyTavern Discord": "Word lid van de SillyTavern Discord",
|
||||
"Post a GitHub issue": "Plaats een GitHub-probleem",
|
||||
"Contact the developers": "Neem contact op met de ontwikkelaars"
|
||||
"Contact the developers": "Neem contact op met de ontwikkelaars",
|
||||
"Interleaved Thinking": "Verweven redenering",
|
||||
"Since Last User Message": "Sinds laatste gebruikersbericht",
|
||||
"Active Tool Chain": "Actieve toolketen",
|
||||
"openrouter_interleaved_thinking_hint": "Verstuurt redenering uit eerdere assistentbeurten met tool-aanvragen om de context van verweven redenering te behouden.",
|
||||
"SillyTavern Logo": "SillyTavern-logo",
|
||||
"Initializing…": "Initialiseren…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Naam niet geaccepteerd, omdat deze hetzelfde is als voorheen (hoofdletters en accenten genegeerd).",
|
||||
"Rename Chat": "Chat hernoemen",
|
||||
"Renaming chat…": "Chat hernoemen…",
|
||||
"Delete Chat": "Chat verwijderen",
|
||||
"Deleting chat…": "Chat verwijderen…",
|
||||
"Loading chat…": "Chat laden…",
|
||||
"Bulk Delete": "Bulkverwijdering",
|
||||
"Deleting ${0} character(s)…": "${0} personage(s) verwijderen…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "Chave API koboldcpp (opcional)",
|
||||
"Example: http://127.0.0.1:5001": "Exemplo: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorizar",
|
||||
"OpenRouter API key already exists": "A chave de API do OpenRouter já existe",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Você realmente deseja criar uma nova chave OpenRouter? Sua chave existente não será excluída.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Obtenha seu token da API do OpenRouter usando o fluxo OAuth. Você será redirecionado para openrouter.ai",
|
||||
"Bypass status check": "Ignorar verificação de status",
|
||||
"Chat Completion Source": "Fonte de conclusão de chat",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Ainda tem perguntas?",
|
||||
"Join the SillyTavern Discord": "Junte-se ao Discord do SillyTavern",
|
||||
"Post a GitHub issue": "Publicar um problema no GitHub",
|
||||
"Contact the developers": "Contatar os desenvolvedores"
|
||||
"Contact the developers": "Contatar os desenvolvedores",
|
||||
"Interleaved Thinking": "Raciocínio intercalado",
|
||||
"Since Last User Message": "Desde a última mensagem do utilizador",
|
||||
"Active Tool Chain": "Cadeia de ferramentas ativa",
|
||||
"openrouter_interleaved_thinking_hint": "Envia o raciocínio de turnos anteriores do assistente com pedidos de ferramentas para manter o contexto de raciocínio intercalado.",
|
||||
"SillyTavern Logo": "Logótipo do SillyTavern",
|
||||
"Initializing…": "A inicializar…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nome não aceite, pois é o mesmo que antes (ignorando maiúsculas e acentos).",
|
||||
"Rename Chat": "Renomear chat",
|
||||
"Renaming chat…": "A renomear chat…",
|
||||
"Delete Chat": "Eliminar chat",
|
||||
"Deleting chat…": "A eliminar chat…",
|
||||
"Loading chat…": "A carregar chat…",
|
||||
"Bulk Delete": "Eliminação em massa",
|
||||
"Deleting ${0} character(s)…": "A eliminar ${0} personagem(ns)…"
|
||||
}
|
||||
|
||||
@@ -758,6 +758,8 @@
|
||||
"Doesn't work? Try adding": "Не работает? Попробуйте добавить в конце",
|
||||
"at the end!": "!",
|
||||
"Authorize": "Авторизоваться",
|
||||
"OpenRouter API key already exists": "Ключ API OpenRouter уже существует",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Вы действительно хотите создать новый ключ OpenRouter? Ваш существующий ключ не будет удален.",
|
||||
"No persona description": "[Нет описания]",
|
||||
"Not connected to API!": "Нет соединения с API!",
|
||||
"Type a message, or /? for help": "Введите сообщение, или /? для получения справки",
|
||||
@@ -1902,7 +1904,7 @@
|
||||
"Save": "Сохранить",
|
||||
"Chat Lorebook": "Лорбук для чата",
|
||||
"chat_world_template_txt": "Выбранный мир будет привязан к этому чату. Будет работать наряду с глобальным лорбуком и лором персонажа.",
|
||||
"world_button_title": "Лор персонажа\n\nНажмите, чтобы загрузить\nShift + ЛКМ, чтобы открыть диалог привязки мира",
|
||||
"world_button_title": "Лор персонажа\n\nНажмите, чтобы загрузить\nShift / Alt + ЛКМ или долгое нажатие, чтобы открыть диалог привязки мира",
|
||||
"No auxillary Lorebooks set. Click here to select.": "Вспомогательный лорбук не выбран. Нажмите, чтобы выбрать.",
|
||||
"ext_regex_user_input_desc": "Отправленные вами сообщения.",
|
||||
"ext_regex_ai_input_desc": "Полученные от API ответы.",
|
||||
@@ -2128,7 +2130,7 @@
|
||||
"openai_reasoning_effort_low": "Поверхностные",
|
||||
"openai_reasoning_effort_medium": "Обычные",
|
||||
"openai_reasoning_effort_high": "Подробные",
|
||||
"Persona Lore Alt+Click to open the lorebook": "Лорбук данной персоны\nAlt + ЛКМ чтобы открыть лорбук",
|
||||
"persona_lore_button_title": "Лорбук данной персоны\n\nНажмите, чтобы открыть\nShift / Alt + ЛКМ или долгое нажатие, чтобы открыть диалог привязки лорбука",
|
||||
"Persona Lorebook for": "Лорбук для персоны",
|
||||
"persona_world_template_txt": "Выбранный мир будет привязан к этой персоне. Будет работать вместе с глобальным лорбуком и лорбуками персонажа и чата.",
|
||||
"Global list": "Глобальный список",
|
||||
@@ -2143,7 +2145,7 @@
|
||||
"Enter a valid API URL": "Введите корректный адрес API",
|
||||
"No Ollama model selected.": "Не выбрана модель Ollama",
|
||||
"Background Fitting": "Способ подгонки фона под разрешение",
|
||||
"Chat Lore Alt+Click to open the lorebook": "Лорбук данного чата\nAlt + ЛКМ чтобы открыть лорбук",
|
||||
"chat_lorebook_button_title": "Лорбук данного чата\n\nНажмите, чтобы открыть\nShift / Alt + ЛКМ или долгое нажатие, чтобы открыть диалог привязки лорбука",
|
||||
"Token Counter": "Подсчитать токены",
|
||||
"Type / paste in the box below to see the number of tokens in the text.": "Введите или вставьте текст в окошко ниже, чтобы подсчитать количество токенов в нём.",
|
||||
"Selected tokenizer:": "Выбранный токенайзер:",
|
||||
@@ -2738,5 +2740,19 @@
|
||||
"Uses the voices provided by your operating system": "Используем стандартные голоса вашей ОС",
|
||||
"Your browser or operating system doesn't support speech synthesis": "Ваш браузер либо ОС не поддерживают синтез речи",
|
||||
"Works best when: Pass Asterisks to TTS Engine is enabled, and both Only narrate quotes and Ignore *text, even 'quotes', inside asterisks* are disabled.": "Работает лучше всего, когда: одновременно включена опция \"Передавать звёздочки TTS-движку\", а также отключены обе опции: \"Не озвучивать *текст, даже \"в кавычках\", если он внутри звёздочек*\", и \"Озвучивать только текст \"в кавычках\"\"",
|
||||
"Available voices": "Доступные голоса"
|
||||
"Available voices": "Доступные голоса",
|
||||
"Interleaved Thinking": "Чередующееся рассуждение",
|
||||
"Since Last User Message": "С момента последнего сообщения пользователя",
|
||||
"Active Tool Chain": "Активная цепочка инструментов",
|
||||
"openrouter_interleaved_thinking_hint": "Отправляет рассуждение из предыдущих ходов ассистента вместе с запросами вызова инструментов, чтобы сохранять контекст чередующегося рассуждения.",
|
||||
"SillyTavern Logo": "Логотип SillyTavern",
|
||||
"Initializing…": "Инициализация…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Имя не принято, так как оно совпадает с предыдущим (игнорируя регистр и акценты).",
|
||||
"Rename Chat": "Переименовать чат",
|
||||
"Renaming chat…": "Переименование чата…",
|
||||
"Delete Chat": "Удалить чат",
|
||||
"Deleting chat…": "Удаление чата…",
|
||||
"Loading chat…": "Загрузка чата…",
|
||||
"Bulk Delete": "Массовое удаление",
|
||||
"Deleting ${0} character(s)…": "Удаление ${0} персонажа(ей)…"
|
||||
}
|
||||
|
||||
@@ -339,6 +339,8 @@
|
||||
"koboldcpp API key (optional)": "คีย์ API ของ koboldcpp (เพิ่มเติม)",
|
||||
"Example: http://127.0.0.1:5001": "ตัวอย่าง: http://127.0.0.1:5001",
|
||||
"Authorize": "อนุญาต",
|
||||
"OpenRouter API key already exists": "คีย์ API ของ OpenRouter มีอยู่แล้ว",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "คุณต้องการสร้างคีย์ OpenRouter ใหม่จริง ๆ หรือไม่ คีย์ที่มีอยู่ของคุณจะไม่ถูกลบ",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "โปรดเข้าสู่ระบบเพื่อรับ OpenRouter API Token โดยใช้ OAuth Flow จากนั้นคุณจะถูกเปลี่ยนเส้นทางไปยังเว็บไซต์ของ openrouter.ai",
|
||||
"Bypass status check": "ข้ามการตรวจสอบสถานะ",
|
||||
"Chat Completion Source": "แหล่งที่มาของ Chat Completion",
|
||||
@@ -1455,5 +1457,19 @@
|
||||
"Contact the developers": "ติดต่อผู้พัฒนา",
|
||||
"Stop Inspecting": "Stop Inspecting",
|
||||
"Inspect Prompts": "ตรวจสอบ Prompt",
|
||||
"Toggle prompt inspection": "สลับการตรวจสอบ Prompt"
|
||||
"Toggle prompt inspection": "สลับการตรวจสอบ Prompt",
|
||||
"Interleaved Thinking": "การคิดแบบสลับขั้น",
|
||||
"Since Last User Message": "ตั้งแต่ข้อความล่าสุดของผู้ใช้",
|
||||
"Active Tool Chain": "สายโซ่เครื่องมือที่ใช้งานอยู่",
|
||||
"openrouter_interleaved_thinking_hint": "ส่งเหตุผลจากเทิร์นก่อนหน้าของผู้ช่วยไปพร้อมกับคำขอเรียกใช้เครื่องมือ เพื่อคงบริบทการคิดแบบสลับขั้นไว้",
|
||||
"SillyTavern Logo": "โลโก้ SillyTavern",
|
||||
"Initializing…": "กำลังเริ่มต้น…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "ชื่อไม่ได้รับการยอมรับ เนื่องจากเหมือนกับก่อนหน้านี้ (ไม่สนใจตัวพิมพ์ใหญ่เล็กและเครื่องหมายเสียง)",
|
||||
"Rename Chat": "เปลี่ยนชื่อแชท",
|
||||
"Renaming chat…": "กำลังเปลี่ยนชื่อแชท…",
|
||||
"Delete Chat": "ลบแชท",
|
||||
"Deleting chat…": "กำลังลบแชท…",
|
||||
"Loading chat…": "กำลังโหลดแชท…",
|
||||
"Bulk Delete": "ลบจำนวนมาก",
|
||||
"Deleting ${0} character(s)…": "กำลังลบ ${0} ตัวละคร…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "API-ключ koboldcpp (необов’язково)",
|
||||
"Example: http://127.0.0.1:5001": "Приклад: http://127.0.0.1:5001",
|
||||
"Authorize": "Авторизувати",
|
||||
"OpenRouter API key already exists": "API ключ OpenRouter вже існує",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Ви дійсно бажаєте створити новий ключ OpenRouter API? Ваш існуючий ключ не буде видалено.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Отримайте свій токен API OpenRouter за допомогою OAuth. Вас буде перенаправлено на openrouter.ai",
|
||||
"Bypass status check": "Обійти перевірку статусу",
|
||||
"Chat Completion Source": "Джерело Chat Completion",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Все ще є питання?",
|
||||
"Join the SillyTavern Discord": "Приєднуйтесь до SillyTavern Discord",
|
||||
"Post a GitHub issue": "Опублікуйте проблему на GitHub",
|
||||
"Contact the developers": "Зв'яжіться з розробниками"
|
||||
"Contact the developers": "Зв'яжіться з розробниками",
|
||||
"Interleaved Thinking": "Черговане мислення",
|
||||
"Since Last User Message": "Від останнього повідомлення користувача",
|
||||
"Active Tool Chain": "Активний ланцюжок інструментів",
|
||||
"openrouter_interleaved_thinking_hint": "Надсилає міркування з попередніх ходів асистента разом із запитами виклику інструментів, щоб зберегти контекст чергованого мислення.",
|
||||
"SillyTavern Logo": "Логотип SillyTavern",
|
||||
"Initializing…": "Ініціалізація…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Ім'я не прийнято, оскільки воно збігається з попереднім (ігноруючи регістр та акценти).",
|
||||
"Rename Chat": "Перейменувати чат",
|
||||
"Renaming chat…": "Перейменування чату…",
|
||||
"Delete Chat": "Видалити чат",
|
||||
"Deleting chat…": "Видалення чату…",
|
||||
"Loading chat…": "Завантаження чату…",
|
||||
"Bulk Delete": "Масове видалення",
|
||||
"Deleting ${0} character(s)…": "Видалення ${0} персонажа(ів)…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "Key API koboldcpp (tùy chọn)",
|
||||
"Example: http://127.0.0.1:5001": "Ví dụ: http://127.0.0.1:5001",
|
||||
"Cho phép": "Ủy quyền",
|
||||
"OpenRouter API key already exists": "Key API OpenRouter đã tồn tại",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Bạn có thực sự muốn tạo khóa OpenRouter mới không? Khóa hiện có của bạn sẽ không bị xóa.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Nhận mã thông báo API OpenRouter của bạn bằng cách sử dụng luồng OAuth. Bạn sẽ được chuyển hướng đến openrouter.ai",
|
||||
"Bypass status check": "Bỏ qua check trạng thái",
|
||||
"Chat Completion Source": "Nguồn cho Chat Completion",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Bạn còn thắc mắc?",
|
||||
"Join the SillyTavern Discord": "Tham gia Kênh Discord của SillyTavern",
|
||||
"Post a GitHub issue": "Đăng một vấn đề trên GitHub",
|
||||
"Contact the developers": "Liên hệ với Devs"
|
||||
"Contact the developers": "Liên hệ với Devs",
|
||||
"Interleaved Thinking": "Lập luận xen kẽ",
|
||||
"Since Last User Message": "Kể từ tin nhắn người dùng gần nhất",
|
||||
"Active Tool Chain": "Chuỗi công cụ đang hoạt động",
|
||||
"openrouter_interleaved_thinking_hint": "Gửi lập luận từ các lượt trợ lý trước đó cùng với yêu cầu gọi công cụ để duy trì ngữ cảnh lập luận xen kẽ.",
|
||||
"SillyTavern Logo": "Logo SillyTavern",
|
||||
"Initializing…": "Đang khởi tạo…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Tên không được chấp nhận vì giống như trước đó (bỏ qua chữ hoa/thường và dấu).",
|
||||
"Rename Chat": "Đổi tên cuộc trò chuyện",
|
||||
"Renaming chat…": "Đang đổi tên cuộc trò chuyện…",
|
||||
"Delete Chat": "Xóa cuộc trò chuyện",
|
||||
"Deleting chat…": "Đang xóa cuộc trò chuyện…",
|
||||
"Loading chat…": "Đang tải cuộc trò chuyện…",
|
||||
"Bulk Delete": "Xóa hàng loạt",
|
||||
"Deleting ${0} character(s)…": "Đang xóa ${0} nhân vật…"
|
||||
}
|
||||
|
||||
+1813
-482
File diff suppressed because it is too large
Load Diff
@@ -334,6 +334,8 @@
|
||||
"koboldcpp API key (optional)": "KoboldCpp API 金鑰(可選)",
|
||||
"Example: http://127.0.0.1:5001": "範例:http://127.0.0.1:5001",
|
||||
"Authorize": "授權",
|
||||
"OpenRouter API key already exists": "OpenRouter API 密鑰已存在",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "您確定要建立新的 OpenRouter API 金鑰嗎?您現有的金鑰不會被刪除。",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "使用 OAuth 流程取得您的 OpenRouter API 符元。您將被重新導向到 openrouter.ai",
|
||||
"Bypass status check": "繞過狀態檢查",
|
||||
"Chat Completion Source": "聊天補全來源",
|
||||
@@ -1541,7 +1543,7 @@
|
||||
"When enabled, nodes that have swipes splitting off of them will appear subtly larger, in addition to having the double border.": "啟用後,具分支滑動的節點將顯示雙重邊框,還會略微放大。",
|
||||
"WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized": "世界資訊條目狀態:\\r🔵 恆定\\r🟢 正常\\r🔗 向量化",
|
||||
"Width of a node, in pixels at zoom level 1.0.": "縮放等級為 1.0 時,節點的像素寬度。",
|
||||
"world_button_title": "角色背景設定\n「Shift+點選」可開啟「連結至世界資訊」彈窗",
|
||||
"world_button_title": "角色背景設定\n「Shift/Alt+點選」或長按可開啟「連結至世界資訊」彈窗",
|
||||
"# of Beams": "# of Beams",
|
||||
"Additional Parameters": "其他參數",
|
||||
"All": "全部",
|
||||
@@ -2093,7 +2095,7 @@
|
||||
"Downloader Options": "下載選項",
|
||||
"Extra parameters for downloading/HuggingFace API": "下載/使用 HuggingFace API 的額外參數。\r若不確定,請留空。",
|
||||
"Revision": "修訂",
|
||||
"Folder Name": "輸出資料夾名稱",
|
||||
"Output Folder Name": "輸出資料夾名稱",
|
||||
"HF Token": "HF 符元",
|
||||
"Include Patterns": "包含模式",
|
||||
"Glob patterns of files to include in the download.": "要包含於下載中文件的全域模式。\r每行輸入一個模式。",
|
||||
@@ -2365,8 +2367,8 @@
|
||||
"Contain": "自適應",
|
||||
"Stretch": "拉伸",
|
||||
"Center": "置中",
|
||||
"Persona Lore Alt+Click to open the lorebook": "「Alt+點選」可開啟角色知識書",
|
||||
"Chat Lore Alt+Click to open the lorebook": "「Alt+點選」可開啟聊天知識書",
|
||||
"persona_lore_button_title": "人設知識書\n\n點選以載入\nShift/Alt+點選或長按開啟「連結人設知識書」彈窗",
|
||||
"chat_lorebook_button_title": "聊天知識書\n\n點選以載入\nShift/Alt+點選或長按開啟「連結聊天知識書」彈窗",
|
||||
"Function Tool": "功能工具",
|
||||
"Functions in this category are for advanced users only. Don't click anything if you're not sure about the consequences.": "此類功能僅供高階使用者使用。若不確定後果,請勿點選任何內容。",
|
||||
"Are you sure you want to delete this user?": "確定要刪除該使用者嗎?",
|
||||
@@ -2758,5 +2760,19 @@
|
||||
"[title]Create a new": "新增",
|
||||
"[title]Delete a ": "刪除 ",
|
||||
"[title]Rename a ": "重新命名 ",
|
||||
"completions note prefix": "完成提示前綴"
|
||||
"completions note prefix": "完成提示前綴",
|
||||
"Interleaved Thinking": "交錯思維",
|
||||
"Since Last User Message": "自上一則使用者訊息起",
|
||||
"Active Tool Chain": "使用中的工具鏈",
|
||||
"openrouter_interleaved_thinking_hint": "會在工具呼叫請求中附帶先前助理回合的推理,以維持交錯思維的上下文。",
|
||||
"SillyTavern Logo": "SillyTavern 標誌",
|
||||
"Initializing…": "正在初始化…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "名稱不被接受,因為它與之前相同(忽略大小寫和重音)。",
|
||||
"Rename Chat": "重新命名聊天",
|
||||
"Renaming chat…": "正在重新命名聊天…",
|
||||
"Delete Chat": "刪除聊天",
|
||||
"Deleting chat…": "正在刪除聊天…",
|
||||
"Loading chat…": "正在載入聊天…",
|
||||
"Bulk Delete": "批次刪除",
|
||||
"Deleting ${0} character(s)…": "正在刪除 ${0} 個角色…"
|
||||
}
|
||||
|
||||
+445
-283
File diff suppressed because it is too large
Load Diff
@@ -14,10 +14,11 @@ import {
|
||||
} from '../script.js';
|
||||
|
||||
import { favsToHotswap } from './RossAscends-mods.js';
|
||||
import { hideLoader, showLoader } from './loader.js';
|
||||
import { loader } from './action-loader.js';
|
||||
import { convertCharacterToPersona } from './personas.js';
|
||||
import { callGenericPopup, POPUP_TYPE } from './popup.js';
|
||||
import { createTagInput, getTagKeyForEntity, getTagsList, printTagList, tag_map, compareTagsForSort, removeTagFromMap, importTags, tag_import_setting } from './tags.js';
|
||||
import { t } from './i18n.js';
|
||||
|
||||
/**
|
||||
* Static object representing the actions of the
|
||||
@@ -101,7 +102,7 @@ class CharacterContextMenu {
|
||||
* @param {number} characterId
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
static persona = async (characterId) => void(await convertCharacterToPersona(characterId));
|
||||
static persona = async (characterId) => void (await convertCharacterToPersona(characterId));
|
||||
|
||||
/**
|
||||
* Delete one or more characters,
|
||||
@@ -754,7 +755,7 @@ class BulkEditOverlay {
|
||||
|
||||
handleContextMenuShow = (event) => {
|
||||
event.preventDefault();
|
||||
const [x,y] = this.#getContextMenuPosition(event);
|
||||
const [x, y] = this.#getContextMenuPosition(event);
|
||||
CharacterContextMenu.show(x, y);
|
||||
this.#contextMenuOpen = true;
|
||||
};
|
||||
@@ -846,15 +847,15 @@ class BulkEditOverlay {
|
||||
|
||||
const deleteChats = checkbox.prop('checked') ?? false;
|
||||
|
||||
showLoader();
|
||||
const toast = toastr.info('We\'re deleting your characters, please wait...', 'Working on it');
|
||||
const loaderHandle = loader.show({
|
||||
title: t`Bulk Delete`,
|
||||
message: t`Deleting ${characterIds.length} character(s)…`,
|
||||
toastMode: loader.ToastMode.STATIC,
|
||||
});
|
||||
const avatarList = characterIds.map(id => characters[id]?.avatar).filter(a => a);
|
||||
return CharacterContextMenu.delete(avatarList, deleteChats)
|
||||
.then(() => this.browseState())
|
||||
.finally(() => {
|
||||
toastr.clear(toast);
|
||||
hideLoader();
|
||||
});
|
||||
.finally(() => loaderHandle.hide());
|
||||
});
|
||||
|
||||
// At this moment the popup is already changed in the dom, but not yet closed/resolved. We build the avatar list here
|
||||
|
||||
@@ -986,7 +986,6 @@ class PromptManager {
|
||||
* @returns {void}
|
||||
*/
|
||||
addPrompt(prompt, identifier) {
|
||||
|
||||
if (typeof prompt !== 'object' || prompt === null) throw new Error('Object is not a prompt');
|
||||
|
||||
const newPrompt = {
|
||||
@@ -1301,7 +1300,7 @@ class PromptManager {
|
||||
const prompt = this.getPromptById(identifier);
|
||||
const textareaIdentifier = `${identifier}_prompt_quick_edit_textarea`;
|
||||
const html = `<div class="range-block m-t-1">
|
||||
<div class="justifyLeft" data-i18n="${title}">${title}</div>
|
||||
<div class="justifyLeft">${title}</div>
|
||||
<div class="wide100p">
|
||||
<textarea id="${textareaIdentifier}" class="text_pole textarea_compact" rows="6" placeholder="">${prompt.content}</textarea>
|
||||
</div>
|
||||
@@ -1318,7 +1317,6 @@ class PromptManager {
|
||||
this.updatePromptByIdentifier(identifier, prompt);
|
||||
debouncedSaveServiceSettings().then(() => this.render());
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -101,7 +101,6 @@ observer.observe(document.documentElement, observerConfig);
|
||||
* @returns {string} - A human-readable string that represents the time spent generating characters.
|
||||
*/
|
||||
export function humanizeGenTime(total_gen_time) {
|
||||
|
||||
//convert time_spent to humanized format of "_ Hours, _ Minutes, _ Seconds" from milliseconds
|
||||
let time_spent = total_gen_time || 0;
|
||||
time_spent = Math.floor(time_spent / 1000);
|
||||
@@ -380,8 +379,7 @@ function RA_autoconnect(PrevApi) {
|
||||
|| (textgen_settings.type === textgen_types.FEATHERLESS && secret_state[SECRET_KEYS.FEATHERLESS])
|
||||
) {
|
||||
$('#api_button_textgenerationwebui').trigger('click');
|
||||
}
|
||||
else if (isValidUrl(getTextGenServer())) {
|
||||
} else if (isValidUrl(getTextGenServer())) {
|
||||
$('#api_button_textgenerationwebui').trigger('click');
|
||||
}
|
||||
break;
|
||||
@@ -409,6 +407,7 @@ function RA_autoconnect(PrevApi) {
|
||||
|| (secret_state[SECRET_KEYS.COMETAPI] && oai_settings.chat_completion_source == chat_completion_sources.COMETAPI)
|
||||
|| (secret_state[SECRET_KEYS.ZAI] && oai_settings.chat_completion_source == chat_completion_sources.ZAI)
|
||||
|| (secret_state[SECRET_KEYS.POLLINATIONS] && oai_settings.chat_completion_source === chat_completion_sources.POLLINATIONS)
|
||||
|| (secret_state[SECRET_KEYS.WORKERS_AI] && oai_settings.chat_completion_source == chat_completion_sources.WORKERS_AI)
|
||||
|| (isValidUrl(oai_settings.custom_url) && oai_settings.chat_completion_source == chat_completion_sources.CUSTOM)
|
||||
|| (secret_state[SECRET_KEYS.AZURE_OPENAI] && oai_settings.chat_completion_source == chat_completion_sources.AZURE_OPENAI)
|
||||
) {
|
||||
@@ -1054,8 +1053,7 @@ export function initRossMods() {
|
||||
$('#send_textarea').trigger('focus');
|
||||
reasoningMesDone.trigger('click');
|
||||
return;
|
||||
}
|
||||
else if (is_send_press == false) {
|
||||
} else if (is_send_press == false) {
|
||||
const skipConfirmKey = 'RegenerateWithCtrlEnter';
|
||||
const skipConfirm = accountStorage.getItem(skipConfirmKey) === 'true';
|
||||
function doRegenerate() {
|
||||
@@ -1228,6 +1226,16 @@ export function initRossMods() {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#logprobsViewer').is(':visible')) {
|
||||
$('#logprobsViewerClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#cfgConfig').is(':visible')) {
|
||||
$('#CFGClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#floatingPrompt').is(':visible')) {
|
||||
$('#ANClose').trigger('click');
|
||||
return;
|
||||
@@ -1238,22 +1246,13 @@ export function initRossMods() {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#cfgConfig').is(':visible')) {
|
||||
$('#CFGClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#logprobsViewer').is(':visible')) {
|
||||
$('#logprobsViewerClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
$('#movingDivs > div').each(function () {
|
||||
if ($(this).is(':visible')) {
|
||||
$('#movingDivs > div .floating_panel_close').trigger('click');
|
||||
const movingDivs = $('#movingDivs > div').toArray().reverse();
|
||||
for (const div of movingDivs) {
|
||||
if ($(div).is(':visible')) {
|
||||
$(div).find('.floating_panel_close, .dragClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if ($('#left-nav-panel').is(':visible') &&
|
||||
$(LPanelPin).prop('checked') === false) {
|
||||
@@ -1274,8 +1273,6 @@ export function initRossMods() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (event.ctrlKey && /^[1-9]$/.test(event.key)) {
|
||||
// This will eventually be to trigger quick replies
|
||||
// event.preventDefault();
|
||||
|
||||
@@ -0,0 +1,355 @@
|
||||
import { ActionLoaderToastMode, getActiveLoaderHandles, getLoaderHandleById, hideActionLoader, showActionLoader } from './action-loader.js';
|
||||
import { t } from './i18n.js';
|
||||
import { SlashCommand } from './slash-commands/SlashCommand.js';
|
||||
import { SlashCommandNamedArgument, ARGUMENT_TYPE, SlashCommandArgument } from './slash-commands/SlashCommandArgument.js';
|
||||
import { SlashCommandClosure } from './slash-commands/SlashCommandClosure.js';
|
||||
import { commonEnumProviders, enumIcons } from './slash-commands/SlashCommandCommonEnumsProvider.js';
|
||||
import { SlashCommandEnumValue, enumTypes } from './slash-commands/SlashCommandEnumValue.js';
|
||||
import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
|
||||
import { isFalseBoolean } from './utils.js';
|
||||
|
||||
/**
|
||||
* Registers slash commands for the action loader module.
|
||||
*/
|
||||
export function registerActionLoaderSlashCommands() {
|
||||
/**
|
||||
* Helper to create a closure-based handler from a SlashCommandClosure argument.
|
||||
* Allows all possible slash command arg types to be passed in, but only closure is accepted.
|
||||
* @param {string | SlashCommandClosure | (string | SlashCommandClosure)[]} closure - The closure argument
|
||||
* @param {Object} options - Configuration options
|
||||
* @param {string} [options.argName='onStop'] - Name of the argument for error messages
|
||||
* @param {boolean} [options.throwInvalid=true] - Whether to throw an error for invalid input
|
||||
* @returns {(() => Promise<void>)|null} The handler function, or null if no closure
|
||||
*/
|
||||
function createClosureHandler(closure, { argName = 'onStop', throwInvalid = true } = {}) {
|
||||
if (!(closure instanceof SlashCommandClosure)) {
|
||||
if (closure && throwInvalid) {
|
||||
// Throw error on purpose. This is defined as a syntax error.
|
||||
throw new Error(t`Invalid argument for ${argName} provided. This is not a closure.`);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return async () => {
|
||||
try {
|
||||
const localClosure = closure.getCopy();
|
||||
localClosure.onProgress = () => { };
|
||||
await localClosure.execute();
|
||||
} catch (e) {
|
||||
console.error('Error executing closure handler', e);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Shared loader enum providers
|
||||
const loaderEnumProviders = {
|
||||
toastModeEnumProvider: () => [
|
||||
new SlashCommandEnumValue(ActionLoaderToastMode.NONE, 'No toast displayed', enumTypes.enum, enumIcons.disabled),
|
||||
new SlashCommandEnumValue(ActionLoaderToastMode.STATIC, 'Static toast without stop button', enumTypes.enum, enumIcons.spinner),
|
||||
new SlashCommandEnumValue(ActionLoaderToastMode.STOPPABLE, 'Toast with stop button (default)', enumTypes.enum, enumIcons.stop),
|
||||
],
|
||||
loaderHandleProvider: () => getActiveLoaderHandles().map(
|
||||
handle => new SlashCommandEnumValue(handle.id, `Active loader: ${handle.id}`, enumTypes.enum, enumIcons.spinner),
|
||||
).concat(
|
||||
new SlashCommandEnumValue('Temporary loader handle', 'Any loader handle saved in variables or similar', 'enum', '📄', () => true, () => ''),
|
||||
),
|
||||
};
|
||||
|
||||
// /loader-wrap command - wraps a closure with loader display
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-wrap',
|
||||
returns: 'result of the closure execution',
|
||||
helpString: `
|
||||
<div>
|
||||
Wraps a closure execution with an action loader overlay and optional toast notification.
|
||||
By default, the loader blocks UI interaction until the closure completes.
|
||||
Multiple loaders can be stacked - each gets its own toast, but the overlay stays single.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Toast modes:</strong>
|
||||
<ul>
|
||||
<li><code>stoppable</code> - Shows toast with a stop button (default)</li>
|
||||
<li><code>static</code> - Shows toast without stop button</li>
|
||||
<li><code>none</code> - No toast, only loader overlay</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
Set <code>blocking=false</code> to show only a toast without blocking the UI.
|
||||
Useful for background operations like image captioning or generation.
|
||||
</div>
|
||||
<div>
|
||||
The default stop behavior is calling <code>stopGeneration()</code>.
|
||||
If the wrapped action is doing something different than generating, a custom stop closure can be provided.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Examples:</strong>
|
||||
<ul>
|
||||
<li><pre><code class="language-stscript">/loader-wrap message="Generating summary..." {: /gen Summary of the last message | /echo Done :}</code></pre></li>
|
||||
<li><pre><code class="language-stscript">/loader-wrap blocking=false message="Captioning..." {: /caption :}</code></pre></li>
|
||||
<li><pre><code class="language-stscript">/loader-wrap toast=stoppable onStop={: /echo "Stopped by user" :} {: /delay 10000 :}</code></pre></li>
|
||||
</ul>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'blocking',
|
||||
description: 'Whether to show blocking overlay. Set to false for non-blocking toast-only loaders.',
|
||||
typeList: [ARGUMENT_TYPE.BOOLEAN],
|
||||
defaultValue: 'true',
|
||||
enumList: commonEnumProviders.boolean()(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'toast',
|
||||
description: 'Toast display mode: stoppable (with stop button), static (no stop button), or none',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: ActionLoaderToastMode.STOPPABLE,
|
||||
enumList: loaderEnumProviders.toastModeEnumProvider(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'message',
|
||||
description: 'Message to display in the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Generating...',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'title',
|
||||
description: 'Optional title for the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'stopTooltip',
|
||||
description: 'Tooltip text for the stop button (only used when toast=stoppable)',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Stop',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'onStop',
|
||||
description: 'Closure to execute when the stop button is clicked. If not provided, uses default stop behavior.',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
}),
|
||||
],
|
||||
unnamedArgumentList: [
|
||||
SlashCommandArgument.fromProps({
|
||||
description: 'Closure to execute while the loader is displayed',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
isRequired: true,
|
||||
}),
|
||||
],
|
||||
callback: async (args, value) => {
|
||||
if (!(value instanceof SlashCommandClosure)) {
|
||||
// Throw error on purpose. This is defined as a syntax error.
|
||||
throw new Error(t`Invalid argument for unnamed argument provided. This is not a closure.`);
|
||||
}
|
||||
|
||||
const blocking = !isFalseBoolean(String(args.blocking));
|
||||
const toastMode = Object.values(ActionLoaderToastMode).includes(String(args.toast))
|
||||
? String(args.toast)
|
||||
: ActionLoaderToastMode.STOPPABLE;
|
||||
const message = String(args.message ?? t`Generating...`);
|
||||
const title = args.title ? String(args.title) : '';
|
||||
const stopTooltip = String(args.stopTooltip ?? t`Stop`);
|
||||
|
||||
const loader = showActionLoader({
|
||||
blocking,
|
||||
toastMode,
|
||||
message,
|
||||
title,
|
||||
stopTooltip,
|
||||
onStop: createClosureHandler(args.onStop),
|
||||
});
|
||||
|
||||
try {
|
||||
const closureCopy = value.getCopy();
|
||||
const result = await closureCopy.execute();
|
||||
return result.pipe;
|
||||
} finally {
|
||||
await loader.hide();
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
// /loader-show command - manually show a loader, returns handle ID
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-show',
|
||||
returns: 'loader handle ID (use with /loader-hide)',
|
||||
helpString: `
|
||||
<div>
|
||||
Manually shows an action loader. Returns a handle ID that can be used with <code>/loader-hide</code> to hide it.
|
||||
Use this for fine-grained control when you need to show/hide the loader at specific points.
|
||||
Multiple loaders can be stacked - each gets its own toast, but the overlay stays single.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Toast modes:</strong>
|
||||
<ul>
|
||||
<li><code>stoppable</code> - Shows toast with a stop button (default)</li>
|
||||
<li><code>static</code> - Shows toast without stop button</li>
|
||||
<li><code>none</code> - No toast, only loader overlay</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
Set <code>blocking=false</code> to show only a toast without blocking the UI.
|
||||
Useful for background operations like image captioning or generation.
|
||||
</div>
|
||||
<div>
|
||||
The default stop behavior is calling <code>stopGeneration()</code>.
|
||||
If the wrapped action is doing something different than generating, a custom stop closure can be provided.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<pre>
|
||||
<code class="language-stscript">
|
||||
/loader-show message="Loading..." |
|
||||
/setvar key=myLoader |
|
||||
/some-operation |
|
||||
/loader-hide handle={{getvar::myLoader}}
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'blocking',
|
||||
description: 'Whether to show blocking overlay. Set to false for non-blocking toast-only loaders.',
|
||||
typeList: [ARGUMENT_TYPE.BOOLEAN],
|
||||
defaultValue: 'true',
|
||||
enumList: commonEnumProviders.boolean()(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'toast',
|
||||
description: 'Toast display mode: stoppable (with stop button), static (no stop button), or none',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: ActionLoaderToastMode.STOPPABLE,
|
||||
enumList: loaderEnumProviders.toastModeEnumProvider(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'message',
|
||||
description: 'Message to display in the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Generating...',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'title',
|
||||
description: 'Optional title for the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'stopTooltip',
|
||||
description: 'Tooltip text for the stop button (only used when toast=stoppable)',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Stop',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'onStop',
|
||||
description: 'Closure to execute when the stop button is clicked',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'onHide',
|
||||
description: 'Closure to execute when the loader is hidden (not stopped)',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
}),
|
||||
],
|
||||
unnamedArgumentList: [],
|
||||
callback: async (args) => {
|
||||
const blocking = !isFalseBoolean(String(args.blocking));
|
||||
const toastMode = Object.values(ActionLoaderToastMode).includes(String(args.toast))
|
||||
? String(args.toast)
|
||||
: ActionLoaderToastMode.STOPPABLE;
|
||||
const message = String(args.message ?? t`Generating...`);
|
||||
const title = args.title ? String(args.title) : '';
|
||||
const stopTooltip = String(args.stopTooltip ?? t`Stop`);
|
||||
|
||||
const handle = showActionLoader({
|
||||
blocking,
|
||||
toastMode,
|
||||
message,
|
||||
title,
|
||||
stopTooltip,
|
||||
onStop: createClosureHandler(args.onStop),
|
||||
onHide: createClosureHandler(args.onHide, { argName: 'onHide' }),
|
||||
});
|
||||
|
||||
return handle.id;
|
||||
},
|
||||
}));
|
||||
|
||||
// /loader-hide command - manually hide a loader by handle ID
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-hide',
|
||||
returns: 'true if an active loader was hidden, otherwise false',
|
||||
helpString: `
|
||||
<div>
|
||||
Hides an action loader that was shown with <code>/loader-show</code>.
|
||||
If no handle is provided, hides <strong>all</strong> active loaders.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<pre><code class="language-stscript">/loader-hide handle={{getvar::myLoader}}</code></pre>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'handle',
|
||||
description: 'Loader handle ID returned by /loader-show. If not provided, hides all active loaders.',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
enumProvider: loaderEnumProviders.loaderHandleProvider,
|
||||
}),
|
||||
],
|
||||
callback: async (args) => {
|
||||
const handleId = args.handle ? String(args.handle) : null;
|
||||
|
||||
if (handleId) {
|
||||
const handle = getLoaderHandleById(handleId);
|
||||
if (handle && handle.isActive) {
|
||||
await handle.hide();
|
||||
return 'true';
|
||||
}
|
||||
return 'false';
|
||||
}
|
||||
|
||||
// No handle provided - hide all active loaders
|
||||
const result = await hideActionLoader();
|
||||
return result ? 'true' : 'false';
|
||||
},
|
||||
}));
|
||||
|
||||
// /loader-stop command - trigger the stop action on a loader
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-stop',
|
||||
returns: 'true if an active loader was stopped, otherwise false',
|
||||
helpString: `
|
||||
<div>
|
||||
Triggers the stop action on a specific action loader, as if the user clicked the stop button.
|
||||
Unlike <code>/loader-hide</code>, this command requires a handle - you must specify which loader to stop.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<pre><code class="language-stscript">/loader-stop handle={{getvar::myLoader}}</code></pre>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'handle',
|
||||
description: 'Loader handle ID returned by /loader-show.',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
isRequired: true,
|
||||
enumProvider: loaderEnumProviders.loaderHandleProvider,
|
||||
}),
|
||||
],
|
||||
callback: async (args) => {
|
||||
const handleId = args.handle ? String(args.handle) : null;
|
||||
|
||||
if (!handleId) {
|
||||
toastr.warning(t`No handle provided. You must specify which loader to stop.`);
|
||||
return 'false';
|
||||
}
|
||||
|
||||
const handle = getLoaderHandleById(handleId);
|
||||
if (handle && handle.isActive) {
|
||||
await handle.stop();
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return 'false';
|
||||
},
|
||||
}));
|
||||
}
|
||||
@@ -0,0 +1,572 @@
|
||||
/**
|
||||
* Unified action loader system - shows loader overlay with optional toast notifications.
|
||||
* Designed to be flexible and reusable for various long-running operations.
|
||||
*
|
||||
* Features:
|
||||
* - Stacking multiple loaders - overlay stays single, but toasts can stack
|
||||
* - Blocking and non-blocking modes
|
||||
* - Stoppable or static toasts
|
||||
* - Class-based handle system for fine-grained control
|
||||
*
|
||||
* @module action-loader
|
||||
*/
|
||||
|
||||
import { t } from './i18n.js';
|
||||
import { stopGeneration } from '../script.js';
|
||||
import { Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
|
||||
|
||||
/**
|
||||
* Enum representing the toast display mode for the action loader.
|
||||
* @readonly
|
||||
* @enum {string}
|
||||
*/
|
||||
export const ActionLoaderToastMode = {
|
||||
/** No toast is displayed */
|
||||
NONE: 'none',
|
||||
/** Toast is displayed without stop button (non-interactable) */
|
||||
STATIC: 'static',
|
||||
/** Toast is displayed with stop button (default) */
|
||||
STOPPABLE: 'stoppable',
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {object} ActionLoaderOptions
|
||||
* @property {boolean} [blocking=true] - Whether to show the blocking overlay. Set to false for non-blocking toast-only loaders.
|
||||
* @property {ActionLoaderToastMode} [toastMode='stoppable'] - Toast display mode
|
||||
* @property {string} [message='Generating...'] - The message to display in the toast
|
||||
* @property {string} [title] - Optional title for the toast notification
|
||||
* @property {string} [stopTooltip='Stop'] - Tooltip text for the stop button
|
||||
* @property {HTMLElement|string|null} [overlayContent=null] - Custom content for the overlay (replaces default spinner)
|
||||
* @property {(() => void)|null} [onStop=null] - Custom stop handler. If null, calls `stopGeneration()`
|
||||
* @property {(() => void)|null} [onHide=null] - Custom hide handler. Called when the loader is hidden (not stopped).
|
||||
*/
|
||||
|
||||
/** Counter for generating unique loader IDs */
|
||||
let loaderIdCounter = 0;
|
||||
|
||||
/** @type {Set<ActionLoaderHandle>} Set of all active loader handles */
|
||||
const activeHandles = new Set();
|
||||
|
||||
/**
|
||||
* Generates a unique loader ID.
|
||||
* @returns {string} Unique loader ID
|
||||
*/
|
||||
function generateLoaderId() {
|
||||
return `loader_${++loaderIdCounter}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if there are any active blocking loaders.
|
||||
* @returns {boolean} True if at least one blocking loader is active
|
||||
*/
|
||||
function hasBlockingLoaders() {
|
||||
for (const handle of activeHandles) {
|
||||
if (handle.isBlocking && handle.isActive) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class representing an action loader handle.
|
||||
* Manages its own toast, stop handler, and lifecycle.
|
||||
*/
|
||||
export class ActionLoaderHandle {
|
||||
/** @type {string} Unique identifier for this handle */
|
||||
id;
|
||||
|
||||
/** @type {JQuery<HTMLElement>|null} The toast element for this loader */
|
||||
#toast = null;
|
||||
|
||||
/** @type {(() => void)|null} Custom stop handler */
|
||||
#onStop = null;
|
||||
|
||||
/** @type {(() => void)|null} Custom hide handler */
|
||||
#onHide = null;
|
||||
|
||||
/** @type {boolean} Whether this loader blocks the UI with an overlay */
|
||||
#blocking = true;
|
||||
|
||||
/** @type {boolean} Whether this handle has been disposed */
|
||||
#disposed = false;
|
||||
|
||||
/**
|
||||
* Creates a new ActionLoaderHandle.
|
||||
* @param {object} options - Configuration options
|
||||
* @param {boolean} [options.blocking=true] - Whether to show blocking overlay
|
||||
* @param {ActionLoaderToastMode} [options.toastMode] - Toast display mode
|
||||
* @param {string} [options.message='Generating...'] - Message to display in the toast
|
||||
* @param {string} [options.title] - Title for the toast notification
|
||||
* @param {string} [options.stopTooltip='Stop'] - Tooltip for the stop button
|
||||
* @param {HTMLElement|string|null} [options.overlayContent] - Custom content for the overlay (replaces default spinner)
|
||||
* @param {(() => void)|null} [options.onStop] - Custom stop handler
|
||||
* @param {(() => void)|null} [options.onHide] - Custom hide handler
|
||||
*/
|
||||
constructor({
|
||||
blocking = true,
|
||||
toastMode = ActionLoaderToastMode.STOPPABLE,
|
||||
message = t`Generating...`,
|
||||
title = '',
|
||||
stopTooltip = t`Stop`,
|
||||
overlayContent = null,
|
||||
onStop = null,
|
||||
onHide = null,
|
||||
} = {}) {
|
||||
this.id = generateLoaderId();
|
||||
this.#blocking = blocking;
|
||||
this.#onStop = onStop;
|
||||
this.#onHide = onHide;
|
||||
|
||||
// Warn if non-blocking loader has no toast - it won't be visible to the user
|
||||
if (!blocking && toastMode === ActionLoaderToastMode.NONE && !overlayContent) {
|
||||
console.warn('[ActionLoader] Non-blocking loader created without a toast. This loader will not be visible to the user.');
|
||||
}
|
||||
|
||||
// Show the blocking loader overlay if this is the first blocking handle
|
||||
if (blocking && !hasBlockingLoaders() && !isOverlayDisplayed()) {
|
||||
showOverlay(overlayContent);
|
||||
}
|
||||
|
||||
// Register this handle
|
||||
activeHandles.add(this);
|
||||
|
||||
// Create toast if needed
|
||||
if (toastMode !== ActionLoaderToastMode.NONE) {
|
||||
this.#createToast(message, title, toastMode, stopTooltip);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the toast element for this loader.
|
||||
* @param {string} message - Message to display
|
||||
* @param {string} title - Title for the toast
|
||||
* @param {ActionLoaderToastMode} toastMode - Toast mode
|
||||
* @param {string} stopTooltip - Tooltip for stop button
|
||||
*/
|
||||
#createToast(message, title, toastMode, stopTooltip) {
|
||||
const toastContent = document.createElement('div');
|
||||
toastContent.className = 'action-loader-toast';
|
||||
|
||||
const messageSpan = document.createElement('span');
|
||||
messageSpan.className = 'action-loader-message';
|
||||
messageSpan.textContent = message;
|
||||
toastContent.appendChild(messageSpan);
|
||||
|
||||
// Add stop button if mode is STOPPABLE
|
||||
if (toastMode === ActionLoaderToastMode.STOPPABLE) {
|
||||
const stopButton = document.createElement('i');
|
||||
stopButton.className = 'fa-solid fa-stop-circle action-loader-stop interactable';
|
||||
stopButton.title = stopTooltip;
|
||||
stopButton.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.stop();
|
||||
});
|
||||
toastContent.appendChild(stopButton);
|
||||
}
|
||||
|
||||
// Show toast with no timeout (sticky)
|
||||
this.#toast = toastr.info($(toastContent), title, {
|
||||
timeOut: 0,
|
||||
extendedTimeOut: 0,
|
||||
tapToDismiss: false,
|
||||
escapeHtml: false,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the toast element for this loader.
|
||||
*/
|
||||
#clearToast() {
|
||||
if (this.#toast) {
|
||||
toastr.clear(this.#toast, { force: true }); // Need to force as the toast might have focus/hover
|
||||
this.#toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Disposes this handle, removing it from active handles and hiding overlay if last.
|
||||
*/
|
||||
async #dispose() {
|
||||
if (this.#disposed) return;
|
||||
this.#disposed = true;
|
||||
|
||||
this.#clearToast();
|
||||
activeHandles.delete(this);
|
||||
|
||||
// Hide the overlay if this was the last blocking handle
|
||||
if (this.#blocking && !hasBlockingLoaders()) {
|
||||
await hideOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this handle is still active (not disposed).
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isActive() {
|
||||
return !this.#disposed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this loader blocks the UI with an overlay.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isBlocking() {
|
||||
return this.#blocking;
|
||||
}
|
||||
|
||||
/**
|
||||
* Triggers the stop action on this loader.
|
||||
* Calls the custom onStop handler if provided, otherwise calls stopGeneration().
|
||||
* Then hides this loader.
|
||||
*/
|
||||
async stop() {
|
||||
if (this.#disposed) return;
|
||||
|
||||
// Call custom stop handler or default
|
||||
if (this.#onStop) {
|
||||
try {
|
||||
await this.#onStop();
|
||||
} catch (e) {
|
||||
console.error('Error executing onStop handler', e);
|
||||
}
|
||||
} else {
|
||||
stopGeneration();
|
||||
}
|
||||
|
||||
// Dispose without calling onHide (stop is different from hide)
|
||||
await this.#dispose();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides this loader and clears its toast.
|
||||
* Calls the custom onHide handler if provided.
|
||||
*/
|
||||
async hide() {
|
||||
if (this.#disposed) return;
|
||||
|
||||
// Call custom hide handler if provided
|
||||
if (this.#onHide) {
|
||||
try {
|
||||
await this.#onHide();
|
||||
} catch (e) {
|
||||
console.error('Error executing onHide handler', e);
|
||||
}
|
||||
}
|
||||
|
||||
await this.#dispose();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Action loader utility API.
|
||||
* Provides a convenient interface for showing and managing loading indicators.
|
||||
*
|
||||
* Read the functions documentation for more details.
|
||||
*
|
||||
* @example
|
||||
* // Basic usage
|
||||
* const handle = loader.show({ message: 'Loading...' });
|
||||
* await someOperation();
|
||||
* handle.hide();
|
||||
*
|
||||
* @example
|
||||
* // Non-blocking background task
|
||||
* const handle = loader.show({ blocking: false, message: 'Processing...' });
|
||||
*
|
||||
* @example
|
||||
* // Hide all active loaders
|
||||
* loader.hide();
|
||||
*/
|
||||
export const loader = {
|
||||
/**
|
||||
* Shows an action loader with optional toast notification.
|
||||
* Returns a handle to control the loader.
|
||||
* @type {typeof showActionLoader}
|
||||
*/
|
||||
show: showActionLoader,
|
||||
|
||||
/**
|
||||
* Hides a specific loader by handle, or all loaders if no handle provided.
|
||||
* @type {typeof hideActionLoader}
|
||||
*/
|
||||
hide: hideActionLoader,
|
||||
|
||||
/**
|
||||
* Gets all currently active loader handles.
|
||||
* @type {typeof getActiveLoaderHandles}
|
||||
*/
|
||||
active: getActiveLoaderHandles,
|
||||
|
||||
/**
|
||||
* Gets a loader handle by its ID.
|
||||
* @type {typeof getLoaderHandleById}
|
||||
*/
|
||||
get: getLoaderHandleById,
|
||||
|
||||
/**
|
||||
* Checks if any blocking loader overlay is currently displayed.
|
||||
* @returns {boolean} True if a blocking overlay is shown
|
||||
*/
|
||||
isBlocking: isOverlayDisplayed,
|
||||
|
||||
/**
|
||||
* Toast display mode constants.
|
||||
* @type {typeof ActionLoaderToastMode}
|
||||
*/
|
||||
ToastMode: ActionLoaderToastMode,
|
||||
|
||||
/**
|
||||
* The ActionLoaderHandle class.
|
||||
* @type {typeof ActionLoaderHandle}
|
||||
*/
|
||||
Handle: ActionLoaderHandle,
|
||||
|
||||
/**
|
||||
* Creates a fresh default loader overlay element.
|
||||
* @type {typeof createDefaultLoaderOverlay}
|
||||
*/
|
||||
createOverlay: createDefaultLoaderOverlay,
|
||||
};
|
||||
|
||||
/**
|
||||
* Shows an action loader with an optional stoppable toast notification.
|
||||
* Multiple loaders can be stacked - the overlay stays single, but each gets its own toast.
|
||||
* When the last loader is hidden, the overlay is removed.
|
||||
*
|
||||
* With default arguments, will function as a generation loader / wrapper.
|
||||
*
|
||||
* @param {ActionLoaderOptions} [options={}] - Configuration options
|
||||
* @returns {ActionLoaderHandle} Handle to control the loader
|
||||
*
|
||||
* @example
|
||||
* // Basic usage
|
||||
* const loader = showActionLoader({ message: 'Generating title...' });
|
||||
* try {
|
||||
* const result = await generateRaw({ prompt });
|
||||
* // process result
|
||||
* } finally {
|
||||
* await loader.hide();
|
||||
* }
|
||||
*
|
||||
* @example
|
||||
* // With custom stop and hide handlers
|
||||
* const loader = showActionLoader({
|
||||
* message: 'Downloading...',
|
||||
* stopTooltip: 'Cancel download',
|
||||
* onStop: () => myCustomCancelFunction(),
|
||||
* onHide: () => console.log('Loader hidden'),
|
||||
* });
|
||||
*
|
||||
* @example
|
||||
* // Stacking multiple loaders
|
||||
* const loader1 = showActionLoader({ message: 'Task 1...' });
|
||||
* const loader2 = showActionLoader({ message: 'Task 2...' });
|
||||
* await loader1.hide(); // Overlay stays, loader2 still active
|
||||
* await loader2.hide(); // Now overlay hides
|
||||
*
|
||||
* @example
|
||||
* // Non-blocking loader (toast only, no overlay)
|
||||
* const loader = showActionLoader({
|
||||
* message: 'Captioning image...',
|
||||
* blocking: false,
|
||||
* onStop: () => abortCaptioning(),
|
||||
* });
|
||||
*/
|
||||
export function showActionLoader(options = {}) {
|
||||
return new ActionLoaderHandle(options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides a specific action loader by handle, or all active loaders if no handle provided.
|
||||
* @param {ActionLoaderHandle|null} [handle=null] - Specific handle to hide, or undefined to hide all
|
||||
* @returns {Promise<boolean>} Whether any loader was hidden
|
||||
*/
|
||||
export async function hideActionLoader(handle = null) {
|
||||
if (handle instanceof ActionLoaderHandle) {
|
||||
if (handle.isActive) {
|
||||
await handle.hide();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// No handle provided - hide all active loaders
|
||||
const handles = getActiveLoaderHandles();
|
||||
for (const h of handles) {
|
||||
await h.hide();
|
||||
}
|
||||
return handles.length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all currently active loader handles.
|
||||
* @returns {ActionLoaderHandle[]} Array of active handles
|
||||
*/
|
||||
export function getActiveLoaderHandles() {
|
||||
return Array.from(activeHandles);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a loader handle by its ID.
|
||||
* @param {string} id - The handle ID
|
||||
* @returns {ActionLoaderHandle|undefined} The handle, or undefined if not found
|
||||
*/
|
||||
export function getLoaderHandleById(id) {
|
||||
for (const handle of activeHandles) {
|
||||
if (handle.id === id) {
|
||||
return handle;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Internal overlay management
|
||||
// ============================================================================
|
||||
|
||||
/** @type {Popup|null} The current loader overlay popup */
|
||||
let loaderPopup = null;
|
||||
|
||||
/** Whether the initial HTML preloader has been removed */
|
||||
let preloaderYoinked = false;
|
||||
|
||||
/**
|
||||
* Creates the default loader overlay element.
|
||||
* Always returns a fresh element instance.
|
||||
*
|
||||
* @returns {HTMLDivElement} A new loader overlay element
|
||||
*/
|
||||
export function createDefaultLoaderOverlay() {
|
||||
const loaderElement = document.createElement('div');
|
||||
loaderElement.id = 'loader';
|
||||
|
||||
const spinnerElement = document.createElement('div');
|
||||
spinnerElement.id = 'load-spinner';
|
||||
spinnerElement.className = 'fa-solid fa-gear fa-spin fa-3x';
|
||||
|
||||
loaderElement.appendChild(spinnerElement);
|
||||
|
||||
return loaderElement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes custom overlay content into a value supported by Popup.
|
||||
* @param {string|HTMLElement|null} customContent - Custom overlay content
|
||||
* @returns {string|HTMLElement} Content for Popup
|
||||
*/
|
||||
function getOverlayContent(customContent) {
|
||||
if (typeof customContent === 'string') {
|
||||
return customContent;
|
||||
}
|
||||
|
||||
if (customContent instanceof HTMLElement) {
|
||||
return customContent;
|
||||
}
|
||||
|
||||
return createDefaultLoaderOverlay();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the loader overlay is currently displayed.
|
||||
* @returns {boolean} True if overlay is shown
|
||||
*/
|
||||
function isOverlayDisplayed() {
|
||||
return !!loaderPopup;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the blocking loader overlay.
|
||||
* Internal function - use showActionLoader() instead.
|
||||
* @param {HTMLElement|string|null} [customContent] - Custom content for the overlay
|
||||
*/
|
||||
function showOverlay(customContent = null) {
|
||||
// Two loaders don't make sense. Don't await, we can overlay the old loader while it closes
|
||||
if (loaderPopup) loaderPopup.complete(POPUP_RESULT.CANCELLED);
|
||||
|
||||
const content = getOverlayContent(customContent);
|
||||
|
||||
loaderPopup = new Popup(content, POPUP_TYPE.DISPLAY, null, {
|
||||
allowEscapeClose: false,
|
||||
transparent: true,
|
||||
animation: 'none',
|
||||
wide: true,
|
||||
large: true,
|
||||
});
|
||||
|
||||
// No close button, loaders are not closable
|
||||
loaderPopup.closeButton.style.display = 'none';
|
||||
|
||||
loaderPopup.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the blocking loader overlay with animation.
|
||||
* Internal function - use hideActionLoader() instead.
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function hideOverlay() {
|
||||
if (!loaderPopup) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return new Promise((resolve) => {
|
||||
const loaderElement = $('#loader');
|
||||
const spinner = $('#load-spinner');
|
||||
|
||||
if (!loaderElement.length) {
|
||||
console.warn('Loader element not found, skipping animation');
|
||||
cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if transitions are enabled on spinner (which has the transition property)
|
||||
const transitionDuration = spinner.length && spinner[0] ? getComputedStyle(spinner[0]).transitionDuration : '0s';
|
||||
const hasTransitions = parseFloat(transitionDuration) > 0;
|
||||
|
||||
if (hasTransitions) {
|
||||
Promise.race([
|
||||
new Promise((r) => setTimeout(r, 500)), // Fallback timeout
|
||||
new Promise((r) => loaderElement.one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', r)),
|
||||
]).finally(cleanup);
|
||||
} else {
|
||||
cleanup();
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
loaderElement.remove();
|
||||
// Yoink preloader entirely; it only exists to cover up unstyled content while loading JS
|
||||
// If it's present, we remove it once and then it's gone.
|
||||
yoinkPreloader();
|
||||
|
||||
loaderPopup.complete(POPUP_RESULT.AFFIRMATIVE)
|
||||
.catch((err) => console.error('Error completing loaderPopup:', err))
|
||||
.finally(() => {
|
||||
loaderPopup = null;
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
// Apply the blur styles to the entire loader element
|
||||
loaderElement.css({
|
||||
'filter': 'blur(15px)',
|
||||
'opacity': '0',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the initial HTML preloader element.
|
||||
* Called once after the first loader hide.
|
||||
*/
|
||||
function yoinkPreloader() {
|
||||
if (preloaderYoinked) return;
|
||||
document.getElementById('preloader')?.remove();
|
||||
preloaderYoinked = true;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// End internal overlay management
|
||||
// ============================================================================
|
||||
@@ -231,11 +231,9 @@ function onExtensionFloatingCharaPromptInput() {
|
||||
!existingCharaNote.useChara
|
||||
) {
|
||||
extension_settings.note.chara.splice(existingCharaNoteIndex, 1);
|
||||
}
|
||||
else if (extension_settings.note.chara && existingCharaNote) {
|
||||
} else if (extension_settings.note.chara && existingCharaNote) {
|
||||
Object.assign(existingCharaNote, tempCharaNote);
|
||||
}
|
||||
else if (avatarName && tempPrompt.length > 0) {
|
||||
} else if (avatarName && tempPrompt.length > 0) {
|
||||
if (!extension_settings.note.chara) {
|
||||
extension_settings.note.chara = [];
|
||||
}
|
||||
|
||||
@@ -80,8 +80,6 @@ export class AutoComplete {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param {HTMLTextAreaElement|HTMLInputElement} textarea The textarea to receive autocomplete.
|
||||
* @param {() => boolean} checkIfActivate Function should return true only if under the current conditions, autocomplete should display (e.g., for slash commands: autoComplete.text[0] == '/')
|
||||
@@ -414,7 +412,6 @@ export class AutoComplete {
|
||||
});
|
||||
|
||||
|
||||
|
||||
if (this.isForceHidden) {
|
||||
// hidden with escape
|
||||
return this.hide();
|
||||
@@ -465,7 +462,6 @@ export class AutoComplete {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create updated DOM.
|
||||
*/
|
||||
@@ -514,7 +510,6 @@ export class AutoComplete {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Update position of DOM.
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteFuzzyScore {
|
||||
/**@type {number}*/ start;
|
||||
/**@type {number}*/ longestConsecutive;
|
||||
|
||||
@@ -2,7 +2,6 @@ import { AutoCompleteNameResultBase } from './AutoCompleteNameResultBase.js';
|
||||
import { AutoCompleteSecondaryNameResult } from './AutoCompleteSecondaryNameResult.js';
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteNameResult extends AutoCompleteNameResultBase {
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { AutoCompleteOption } from './AutoCompleteOption.js';
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteNameResultBase {
|
||||
/**@type {string} */ name;
|
||||
/**@type {number} */ start;
|
||||
/**@type {AutoCompleteOption[]} */ optionList = [];
|
||||
/**@type {boolean} */ canBeQuoted = false;
|
||||
/**@type {()=>string} */ makeNoMatchText = ()=>`No matches found for "${this.name}"`;
|
||||
/**@type {()=>string} */ makeNoOptionsText = ()=>'No options';
|
||||
/**@type {()=>string} */ makeNoMatchText = () => `No matches found for "${this.name}"`;
|
||||
/**@type {()=>string} */ makeNoOptionsText = () => 'No options';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { AutoCompleteFuzzyScore } from './AutoCompleteFuzzyScore.js';
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteOption {
|
||||
/** @type {string} */ name;
|
||||
/** @type {string} */ typeIcon;
|
||||
@@ -72,7 +71,7 @@ export class AutoCompleteOption {
|
||||
name.classList.add('name');
|
||||
name.classList.add('monospace');
|
||||
name.textContent = noSlash ? '' : '/';
|
||||
key.split('').forEach(char=>{
|
||||
key.split('').forEach(char => {
|
||||
const span = document.createElement('span'); {
|
||||
span.textContent = char;
|
||||
name.append(span);
|
||||
|
||||
+799
-33
File diff suppressed because it is too large
Load Diff
+58
-16
@@ -2,6 +2,7 @@ import {
|
||||
characters,
|
||||
saveChat,
|
||||
system_message_types,
|
||||
syncSwipeToMes,
|
||||
this_chid,
|
||||
openCharacterChat,
|
||||
chat_metadata,
|
||||
@@ -25,7 +26,7 @@ import {
|
||||
saveGroupBookmarkChat,
|
||||
selected_group,
|
||||
} from './group-chats.js';
|
||||
import { hideLoader, showLoader } from './loader.js';
|
||||
import { loader } from './action-loader.js';
|
||||
import { getLastMessageId } from './macros.js';
|
||||
import { Popup } from './popup.js';
|
||||
import { SlashCommand } from './slash-commands/SlashCommand.js';
|
||||
@@ -34,6 +35,7 @@ import { commonEnumProviders } from './slash-commands/SlashCommandCommonEnumsPro
|
||||
import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
|
||||
import { createTagMapFromList } from './tags.js';
|
||||
import { renderTemplateAsync } from './templates.js';
|
||||
import { compressRequest } from './request-compression.js';
|
||||
import { t } from './i18n.js';
|
||||
|
||||
import {
|
||||
@@ -111,12 +113,10 @@ function getMainChatName() {
|
||||
if (chat_metadata) {
|
||||
if (chat_metadata.main_chat) {
|
||||
return chat_metadata.main_chat;
|
||||
}
|
||||
// groups didn't support bookmarks before chat metadata was introduced
|
||||
else if (selected_group) {
|
||||
} else if (selected_group) {
|
||||
// groups didn't support bookmarks before chat metadata was introduced
|
||||
return null;
|
||||
}
|
||||
else if (characters[this_chid].chat && characters[this_chid].chat.includes(bookmarkNameToken)) {
|
||||
} else if (characters[this_chid].chat && characters[this_chid].chat.includes(bookmarkNameToken)) {
|
||||
const tokenIndex = characters[this_chid].chat.lastIndexOf(bookmarkNameToken);
|
||||
chat_metadata.main_chat = characters[this_chid].chat.substring(0, tokenIndex).trim();
|
||||
return chat_metadata.main_chat;
|
||||
@@ -146,8 +146,7 @@ export function showBookmarksButtons() {
|
||||
$('#option_back_to_main').hide();
|
||||
$('#option_new_bookmark').show();
|
||||
}
|
||||
}
|
||||
catch {
|
||||
} catch {
|
||||
$('#option_back_to_main').hide();
|
||||
$('#option_new_bookmark').hide();
|
||||
$('#option_convert_to_group').hide();
|
||||
@@ -163,8 +162,28 @@ async function saveBookmarkMenu() {
|
||||
return await createNewBookmark(chat.length - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the branch chat snapshot, optionally selecting a specific swipe for the target message.
|
||||
* @param {number} mesId
|
||||
* @param {{swipeId?: number|null}} [options={}]
|
||||
* @returns {ChatMessage[]|null}
|
||||
*/
|
||||
function getBranchChatSnapshot(mesId, { swipeId = null } = {}) {
|
||||
const snapshot = structuredClone(chat.slice(0, Number(mesId) + 1));
|
||||
|
||||
if (swipeId === null) {
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
if (!syncSwipeToMes(null, swipeId, snapshot[mesId])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
// Export is used by Timelines extension. Do not remove.
|
||||
export async function createBranch(mesId) {
|
||||
export async function createBranch(mesId, { swipeId = null } = {}) {
|
||||
if (!chat.length) {
|
||||
toastr.warning('The chat is empty.', 'Branch creation failed');
|
||||
return;
|
||||
@@ -178,6 +197,12 @@ export async function createBranch(mesId) {
|
||||
const lastMes = chat[mesId];
|
||||
const mainChatName = (getCurrentChatDetails()).sessionName;
|
||||
const newMetadata = { main_chat: mainChatName };
|
||||
const selectedSwipeId = swipeId === null ? null : Number(swipeId);
|
||||
|
||||
if (selectedSwipeId !== null && (!Number.isInteger(selectedSwipeId) || selectedSwipeId < 0 || selectedSwipeId >= (lastMes?.swipes?.length ?? 0))) {
|
||||
toastr.warning('Invalid swipe ID.', 'Branch creation failed');
|
||||
return;
|
||||
}
|
||||
|
||||
function buildBranchName(name, i) {
|
||||
// Strip off existing suffixes, then build new name
|
||||
@@ -194,10 +219,16 @@ export async function createBranch(mesId) {
|
||||
return;
|
||||
}
|
||||
|
||||
const branchChatSnapshot = getBranchChatSnapshot(mesId, { swipeId: selectedSwipeId });
|
||||
if (!branchChatSnapshot) {
|
||||
toastr.warning('Could not prepare the selected swipe for branching.', 'Branch creation failed');
|
||||
return;
|
||||
}
|
||||
|
||||
if (selected_group) {
|
||||
await saveGroupBookmarkChat(selected_group, name, newMetadata, mesId);
|
||||
await saveGroupBookmarkChat(selected_group, name, newMetadata, mesId, branchChatSnapshot);
|
||||
} else {
|
||||
await saveChat({ chatName: name, withMetadata: newMetadata, mesId });
|
||||
await saveChat({ chatName: name, withMetadata: newMetadata, mesId, chatData: branchChatSnapshot });
|
||||
}
|
||||
// append to branches list if it exists
|
||||
// otherwise create it
|
||||
@@ -389,11 +420,12 @@ export async function convertSoloToGroupChat() {
|
||||
}
|
||||
|
||||
// Save group chat
|
||||
const createChatResponse = await fetch('/api/chats/group/save', {
|
||||
const createChatRequest = await compressRequest({
|
||||
method: 'POST',
|
||||
headers: getRequestHeaders(),
|
||||
body: JSON.stringify({ id: chatName, chat: [chatHeader, ...groupChat] }),
|
||||
});
|
||||
const createChatResponse = await fetch('/api/chats/group/save', createChatRequest);
|
||||
|
||||
if (!createChatResponse.ok) {
|
||||
console.error('Group chat creation unsuccessful');
|
||||
@@ -411,15 +443,20 @@ export async function convertSoloToGroupChat() {
|
||||
/**
|
||||
* Creates a new branch from the message with the given ID
|
||||
* @param {number} mesId Message ID
|
||||
* @param {{swipeId?: number|null}} [options={}] Branch options
|
||||
* @returns {Promise<string?>} Branch file name
|
||||
*/
|
||||
export async function branchChat(mesId) {
|
||||
export async function branchChat(mesId, { swipeId = null } = {}) {
|
||||
if (this_chid === undefined && !selected_group) {
|
||||
toastr.info('No character selected.', 'Create Branch');
|
||||
return null;
|
||||
}
|
||||
|
||||
const fileName = await createBranch(mesId);
|
||||
const fileName = await createBranch(mesId, { swipeId });
|
||||
if (!fileName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
await saveItemizedPrompts(fileName);
|
||||
|
||||
if (selected_group) {
|
||||
@@ -662,15 +699,20 @@ export function initBookmarks() {
|
||||
return;
|
||||
}
|
||||
|
||||
const loaderHandle = loader.show({
|
||||
title: t`Chat History`,
|
||||
message: t`Loading chat…`,
|
||||
toastMode: loader.ToastMode.STATIC,
|
||||
});
|
||||
|
||||
try {
|
||||
showLoader();
|
||||
if (selected_group) {
|
||||
await openGroupChat(selected_group, fileName);
|
||||
} else {
|
||||
await openCharacterChat(fileName);
|
||||
}
|
||||
} finally {
|
||||
await hideLoader();
|
||||
await loaderHandle.hide();
|
||||
}
|
||||
|
||||
$('#shadow_select_chat_popup').css('display', 'none');
|
||||
|
||||
@@ -55,7 +55,7 @@ function onSelectAllButtonClick() {
|
||||
|
||||
if (!atLeastOneSelected) {
|
||||
// If none was selected, trigger click on all to deselect all of them
|
||||
for(const character of characters) {
|
||||
for (const character of characters) {
|
||||
const checked = $(character).find('.bulk_select_checkbox:checked') ?? false;
|
||||
if (checked && character instanceof HTMLElement) {
|
||||
characterGroupOverlay.toggleSingleCharacter(character);
|
||||
|
||||
@@ -150,7 +150,6 @@ function onCfgMenuItemClick() {
|
||||
setTimeout(function () {
|
||||
$('#cfgConfig').hide();
|
||||
}, animation_duration);
|
||||
|
||||
}
|
||||
//duplicate options menu close handler from script.js
|
||||
//because this listener takes priority
|
||||
|
||||
@@ -199,7 +199,7 @@ class BackupsBrowser {
|
||||
const deleteButton = document.createElement('div');
|
||||
deleteButton.classList.add('right_menu_button', 'fa-solid', 'fa-trash');
|
||||
deleteButton.title = t`Delete backup`;
|
||||
deleteButton.addEventListener('click',async () => {
|
||||
deleteButton.addEventListener('click', async () => {
|
||||
const isDeleted = await this.deleteBackup(backup.file_name);
|
||||
if (isDeleted) {
|
||||
listItem.remove();
|
||||
|
||||
@@ -832,11 +832,9 @@ async function openExternalMediaOverridesDialog() {
|
||||
|
||||
if (power_user.external_media_allowed_overrides.includes(entityId)) {
|
||||
template.find('#forbid_media_override_allowed').prop('checked', true);
|
||||
}
|
||||
else if (power_user.external_media_forbidden_overrides.includes(entityId)) {
|
||||
} else if (power_user.external_media_forbidden_overrides.includes(entityId)) {
|
||||
template.find('#forbid_media_override_forbidden').prop('checked', true);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
template.find('#forbid_media_override_global').prop('checked', true);
|
||||
}
|
||||
|
||||
@@ -1678,8 +1676,7 @@ async function runScraper(scraperId, target, callback) {
|
||||
|
||||
toastr.success(t`Scraped ${files.length} files from ${scraperId} to ${target}.`, t`Data Bank`);
|
||||
callback();
|
||||
}
|
||||
catch (error) {
|
||||
} catch (error) {
|
||||
console.error('Scraping failed', error);
|
||||
toastr.error(t`Check browser console for details.`, t`Scraping failed`);
|
||||
}
|
||||
|
||||
@@ -175,6 +175,8 @@ export const SWIPE_SOURCE = {
|
||||
KEYBOARD: 'keyboard',
|
||||
BACK: 'back',
|
||||
AUTO_SWIPE: 'auto_swipe',
|
||||
SLASH_COMMAND: 'slash_command',
|
||||
SWIPE_PICKER: 'swipe_picker',
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -505,7 +505,7 @@ export class ChatCompletionService {
|
||||
return async function* streamData() {
|
||||
let text = '';
|
||||
const swipes = [];
|
||||
const state = { reasoning: '', image: '' };
|
||||
const state = { reasoning: '', images: [], signature: '', toolSignatures: {} };
|
||||
while (true) {
|
||||
const { done, value } = await reader.read();
|
||||
if (done) return;
|
||||
@@ -591,7 +591,7 @@ export class ChatCompletionService {
|
||||
}
|
||||
|
||||
// Ensure api-url is properly applied for all sources that accept it
|
||||
['custom_url', 'vertexai_region', 'zai_endpoint'].forEach(field => {
|
||||
['custom_url', 'vertexai_region', 'zai_endpoint', 'siliconflow_endpoint'].forEach(field => {
|
||||
// The order is: connection profile => CC preset => CC settings
|
||||
overridePayload[field] = overridePayload[field] || settings[field] || oai_settings[field];
|
||||
});
|
||||
|
||||
@@ -251,7 +251,6 @@ class DataMaidDialog {
|
||||
categoryElement.remove();
|
||||
this.displayEmptyPlaceholder();
|
||||
});
|
||||
|
||||
});
|
||||
categoryElement.querySelectorAll('.dataMaidItemDelete').forEach(button => {
|
||||
button.addEventListener('click', async () => {
|
||||
|
||||
@@ -73,8 +73,7 @@ function applyDynamicFocusStyles(styleSheet, { fromExtension = false } = {}) {
|
||||
const isHover = selector.includes(':hover'), isFocus = selector.includes(':focus');
|
||||
if (isHover && isFocus) {
|
||||
// We currently do nothing here. Rules containing both hover and focus are very specific and should never be automatically touched
|
||||
}
|
||||
else if (isHover) {
|
||||
} else if (isHover) {
|
||||
const baseSelector = selector.replace(/:hover/g, PLACEHOLDER).trim();
|
||||
hoverRules.push({ baseSelector, rule, wrappers: [...wrappers] });
|
||||
} else if (isFocus) {
|
||||
@@ -127,6 +126,12 @@ function applyDynamicFocusStyles(styleSheet, { fromExtension = false } = {}) {
|
||||
// If something like :focus-within or a more specific selector like `.blah:has(:focus-visible)` for elements inside,
|
||||
// it should be manually defined in CSS.
|
||||
const focusSelector = rule.selectorText.replace(/:hover/g, ':focus-visible');
|
||||
|
||||
// Skip pseudo-elements (::before, ::after, ::-webkit-scrollbar, etc.)
|
||||
// as they cannot have :focus-visible appended (invalid CSS syntax)
|
||||
if (focusSelector.includes('::')) {
|
||||
return;
|
||||
}
|
||||
let focusRule = `${focusSelector} { ${rule.style.cssText} }`;
|
||||
|
||||
// Wrap the generated rule into the same @media/@supports/@container chain (if any)
|
||||
|
||||
@@ -50,6 +50,7 @@ export const event_types = {
|
||||
FORCE_SET_BACKGROUND: 'force_set_background',
|
||||
CHAT_DELETED: 'chat_deleted',
|
||||
CHAT_CREATED: 'chat_created',
|
||||
CHAT_RENAMED: 'chat_renamed',
|
||||
GROUP_CHAT_DELETED: 'group_chat_deleted',
|
||||
GROUP_CHAT_CREATED: 'group_chat_created',
|
||||
GENERATE_BEFORE_COMBINE_PROMPTS: 'generate_before_combine_prompts',
|
||||
@@ -96,6 +97,14 @@ export const event_types = {
|
||||
WORLDINFO_ENTRIES_LOADED: 'worldinfo_entries_loaded',
|
||||
WORLDINFO_SCAN_DONE: 'worldinfo_scan_done',
|
||||
MEDIA_ATTACHMENT_DELETED: 'media_attachment_deleted',
|
||||
PERSONA_CHANGED: 'persona_changed',
|
||||
PERSONA_CREATED: 'persona_created',
|
||||
PERSONA_UPDATED: 'persona_updated',
|
||||
PERSONA_RENAMED: 'persona_renamed',
|
||||
PERSONA_DELETED: 'persona_deleted',
|
||||
TTS_JOB_STARTED: 'tts_job_started',
|
||||
TTS_AUDIO_READY: 'tts_audio_ready',
|
||||
TTS_JOB_COMPLETE: 'tts_job_complete',
|
||||
};
|
||||
|
||||
export const eventSource = new EventEmitter([event_types.APP_READY, event_types.APP_INITIALIZED]);
|
||||
|
||||
+176
-15
@@ -1,8 +1,7 @@
|
||||
import { DOMPurify, Popper } from '../lib.js';
|
||||
|
||||
import { eventSource, event_types, saveSettings, saveSettingsDebounced, getRequestHeaders, animation_duration, CLIENT_VERSION } from '../script.js';
|
||||
import { showLoader } from './loader.js';
|
||||
import { POPUP_RESULT, POPUP_TYPE, Popup, callGenericPopup } from './popup.js';
|
||||
import { POPUP_RESULT, POPUP_TYPE, Popup } from './popup.js';
|
||||
import { renderTemplate, renderTemplateAsync } from './templates.js';
|
||||
import { delay, equalsIgnoreCaseAndAccents, isSubsetOf, sanitizeSelector, setValueByPath, versionCompare } from './utils.js';
|
||||
import { getContext } from './st-context.js';
|
||||
@@ -278,12 +277,10 @@ async function discoverExtensions() {
|
||||
if (response.ok) {
|
||||
const extensions = await response.json();
|
||||
return extensions;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
return [];
|
||||
}
|
||||
@@ -357,12 +354,99 @@ function onToggleAllExtensions(extensionsToToggle, toggleContainer) {
|
||||
return extensionsToToggle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether an extension has a specific hook defined in its manifest.
|
||||
* @param {string} name Extension name (with or without 'third-party' prefix)
|
||||
* @param {'install' | 'update' | 'delete' | 'clean' | 'enable' | 'disable' | 'activate'} hookName The hook to check
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function hasExtensionHook(name, hookName) {
|
||||
const fullName = name.startsWith('third-party') ? name : `third-party${name}`;
|
||||
const manifest = manifests[fullName];
|
||||
if (!manifest || !manifest.hooks || typeof manifest.hooks !== 'object') {
|
||||
return false;
|
||||
}
|
||||
const hookFunctionName = manifest.hooks[hookName];
|
||||
return typeof hookFunctionName === 'string' && hookFunctionName.length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls a manifest hook for an extension.
|
||||
* Hooks are optional function names exported from the extension's JS entry point module.
|
||||
* The hook function can optionally return a Promise that will be awaited.
|
||||
* @param {string} name Extension name
|
||||
* @param {'install' | 'update' | 'delete' | 'clean' | 'enable' | 'disable' | 'activate'} hookName The hook to call
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function callExtensionHook(name, hookName) {
|
||||
const manifest = manifests[name];
|
||||
|
||||
if (!manifest) {
|
||||
console.debug(`callExtensionHook: Extension "${name}" has no manifest, skipping hook "${hookName}"`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!manifest.hooks || typeof manifest.hooks !== 'object') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Object.hasOwn(manifest.hooks, hookName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const hookFunctionName = manifest.hooks[hookName];
|
||||
|
||||
if (typeof hookFunctionName !== 'string' || !hookFunctionName) {
|
||||
console.warn(`callExtensionHook: Extension "${name}" hook "${hookName}" is not a valid string`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!manifest.js) {
|
||||
console.warn(`callExtensionHook: Extension "${name}" has hook "${hookName}" but no JS entry point defined in manifest`);
|
||||
return;
|
||||
}
|
||||
|
||||
const url = `/scripts/extensions/${name}/${manifest.js}`;
|
||||
console.debug(`callExtensionHook: Calling hook "${hookName}" (function "${hookFunctionName}") for extension "${name}"`);
|
||||
|
||||
try {
|
||||
const module = await import(url);
|
||||
|
||||
if (typeof module[hookFunctionName] !== 'function') {
|
||||
console.warn(`callExtensionHook: Extension "${name}" hook "${hookName}" references "${hookFunctionName}" which is not an exported function`);
|
||||
return;
|
||||
}
|
||||
|
||||
const hookCallResult = module[hookFunctionName]();
|
||||
|
||||
const HOOK_TIMEOUT = 5000;
|
||||
const HOOK_RESULT = {
|
||||
OK: 'ok',
|
||||
TIMEOUT: 'timeout',
|
||||
};
|
||||
|
||||
const result = await Promise.race([
|
||||
(hookCallResult instanceof Promise ? hookCallResult : Promise.resolve(hookCallResult)).then(() => HOOK_RESULT.OK),
|
||||
delay(HOOK_TIMEOUT).then(() => HOOK_RESULT.TIMEOUT),
|
||||
]);
|
||||
|
||||
if (result === HOOK_RESULT.TIMEOUT) {
|
||||
console.warn(`callExtensionHook: Hook "${hookName}" for extension "${name}" timed out after ${HOOK_TIMEOUT}ms`);
|
||||
} else {
|
||||
console.debug(`callExtensionHook: Hook "${hookName}" completed for extension "${name}"`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`callExtensionHook: Error calling hook "${hookName}" for extension "${name}":`, error);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables an extension by name.
|
||||
* @param {string} name Extension name
|
||||
* @param {boolean} [reload=true] If true, reload the page after enabling the extension
|
||||
*/
|
||||
export async function enableExtension(name, reload = true) {
|
||||
await callExtensionHook(name, 'enable');
|
||||
extension_settings.disabledExtensions = extension_settings.disabledExtensions.filter(x => x !== name);
|
||||
stateChanged = true;
|
||||
await saveSettings();
|
||||
@@ -379,6 +463,7 @@ export async function enableExtension(name, reload = true) {
|
||||
* @param {boolean} [reload=true] If true, reload the page after disabling the extension
|
||||
*/
|
||||
export async function disableExtension(name, reload = true) {
|
||||
await callExtensionHook(name, 'disable');
|
||||
extension_settings.disabledExtensions.push(name);
|
||||
stateChanged = true;
|
||||
await saveSettings();
|
||||
@@ -404,6 +489,21 @@ export function findExtension(name) {
|
||||
return { name: internalExtensionName, enabled: isEnabled };
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a deep clone of the manifest for the given extension name.
|
||||
* Accepts either the short name (e.g. `SillyTavern-MyExtension`) or the full internal key
|
||||
* (e.g. `third-party/SillyTavern-MyExtension`). Returns null if the extension is not found.
|
||||
* @param {string} name - Extension name or internal key
|
||||
* @returns {object|null} Cloned manifest object, or null if not found
|
||||
*/
|
||||
export function getExtensionManifest(name) {
|
||||
const found = extensionNames.find(extName =>
|
||||
equalsIgnoreCaseAndAccents(extName, name) || equalsIgnoreCaseAndAccents(extName, `third-party/${name}`),
|
||||
);
|
||||
const manifest = found ? manifests[found] : null;
|
||||
return manifest ? structuredClone(manifest) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads manifest.json files for extensions.
|
||||
* @param {string[]} names Array of extension names
|
||||
@@ -507,7 +607,10 @@ async function activateExtensions() {
|
||||
Promise.all([addExtensionScript(name, manifest), addExtensionStyle(name, manifest)]),
|
||||
);
|
||||
await promise
|
||||
.then(() => activeExtensions.add(name))
|
||||
.then(() => {
|
||||
activeExtensions.add(name);
|
||||
return callExtensionHook(name, 'activate');
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('Could not activate extension', name, err);
|
||||
extensionLoadErrors.add(t`Extension "${displayName}" failed to load: ${err}`);
|
||||
@@ -627,8 +730,7 @@ async function connectToApi(baseUrl) {
|
||||
}
|
||||
|
||||
updateStatus(getExtensionsResult.ok);
|
||||
}
|
||||
catch {
|
||||
} catch {
|
||||
updateStatus(false);
|
||||
}
|
||||
}
|
||||
@@ -793,6 +895,7 @@ function generateExtensionHtml(name, manifest, isActive, isDisabled, isExternal,
|
||||
let updateButton = isExternal ? `<button class="btn_update menu_button displayNone" data-name="${externalId}" title="Update available"><i class="fa-solid fa-download fa-fw"></i></button>` : '';
|
||||
let moveButton = isExternal && isUserAdmin ? `<button class="btn_move menu_button" data-name="${externalId}" data-i18n="[title]Move" title="Move"><i class="fa-solid fa-folder-tree fa-fw"></i></button>` : '';
|
||||
let branchButton = isExternal && isUserAdmin ? `<button class="btn_branch menu_button" data-name="${externalId}" data-i18n="[title]Switch branch" title="Switch branch"><i class="fa-solid fa-code-branch fa-fw"></i></button>` : '';
|
||||
let cleanButton = isExternal && hasExtensionHook(externalId, 'clean') ? `<button class="btn_clean menu_button" data-name="${externalId}" data-i18n="[title]Clean extension data" title="Clean extension data"><i class="fa-fw fa-solid fa-broom"></i></button>` : '';
|
||||
let modulesInfo = '';
|
||||
|
||||
if (isActive && Array.isArray(manifest.optional)) {
|
||||
@@ -833,6 +936,7 @@ function generateExtensionHtml(name, manifest, isActive, isDisabled, isExternal,
|
||||
|
||||
<div class="extension_actions flex-container alignItemsCenter">
|
||||
${updateButton}
|
||||
${cleanButton}
|
||||
${branchButton}
|
||||
${moveButton}
|
||||
${deleteButton}
|
||||
@@ -1086,7 +1190,6 @@ async function showExtensionsDetails() {
|
||||
abortController.abort();
|
||||
}
|
||||
if (requiresReload) {
|
||||
showLoader();
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
@@ -1150,6 +1253,8 @@ async function updateExtension(extensionName, quiet, timeout = null) {
|
||||
toastr.success('Extension is already up to date');
|
||||
}
|
||||
} else {
|
||||
const fullExtensionName = extensionName.startsWith('third-party') ? extensionName : `third-party${extensionName}`;
|
||||
await callExtensionHook(fullExtensionName, 'update');
|
||||
toastr.success(t`Extension ${extensionName} updated to ${data.shortCommitHash}`, t`Reload the page to apply updates`);
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -1162,6 +1267,7 @@ async function updateExtension(extensionName, quiet, timeout = null) {
|
||||
* This function makes a POST request to '/api/extensions/delete' with the extension's name.
|
||||
* If the extension is deleted, it displays a success message.
|
||||
* Creates a popup for the user to confirm before delete.
|
||||
* If the extension has a 'clean' hook, an optional checkbox to also run the cleanup is shown.
|
||||
*/
|
||||
async function onDeleteClick() {
|
||||
const extensionName = $(this).data('name');
|
||||
@@ -1172,13 +1278,50 @@ async function onDeleteClick() {
|
||||
return;
|
||||
}
|
||||
|
||||
// use callPopup to create a popup for the user to confirm before delete
|
||||
const confirmation = await callGenericPopup(t`Are you sure you want to delete ${extensionName}?`, POPUP_TYPE.CONFIRM, '', {});
|
||||
const hasCleanHook = hasExtensionHook(extensionName, 'clean');
|
||||
|
||||
/** @type {import('./popup.js').CustomPopupInput[]} */
|
||||
const customInputs = hasCleanHook ? [{ id: 'extension_delete_cleanup', label: t`Also clean up extension data`, defaultState: false }] : null;
|
||||
|
||||
const popup = new Popup(t`Are you sure you want to delete ${extensionName}?`, POPUP_TYPE.CONFIRM, '', { customInputs });
|
||||
const confirmation = await popup.show();
|
||||
if (confirmation === POPUP_RESULT.AFFIRMATIVE) {
|
||||
await deleteExtension(extensionName);
|
||||
const shouldClean = hasCleanHook && Boolean(popup.inputResults?.get('extension_delete_cleanup'));
|
||||
await deleteExtension(extensionName, shouldClean);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles the click event for the clean button of an extension.
|
||||
* Runs the extension's 'clean' hook after user confirmation, then reloads the page.
|
||||
*/
|
||||
async function onCleanClick() {
|
||||
const extensionName = $(this).data('name');
|
||||
|
||||
const confirmation = await Popup.show.confirm(t`Clean extension data`, t`Are you sure you want to clean up data for ${extensionName}? This action cannot be undone.`);
|
||||
if (!confirmation) {
|
||||
return;
|
||||
}
|
||||
|
||||
await cleanExtension(extensionName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the 'clean' hook for an extension and reloads the page.
|
||||
* @param {string} extensionName Extension name (without 'third-party' prefix)
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function cleanExtension(extensionName) {
|
||||
const fullExtensionName = extensionName.startsWith('third-party') ? extensionName : `third-party${extensionName}`;
|
||||
await callExtensionHook(fullExtensionName, 'clean');
|
||||
|
||||
// Clean might have updated settings, which could race with the page reload, so we'll force save here
|
||||
await saveSettings();
|
||||
|
||||
toastr.success(t`Extension ${extensionName} data cleaned`);
|
||||
delay(1000).then(() => location.reload());
|
||||
}
|
||||
|
||||
async function onBranchClick() {
|
||||
const extensionName = $(this).data('name');
|
||||
const isCurrentUserAdmin = isAdmin();
|
||||
@@ -1281,8 +1424,17 @@ async function moveExtension(extensionName, source, destination) {
|
||||
/**
|
||||
* Deletes an extension via the API.
|
||||
* @param {string} extensionName Extension name to delete
|
||||
* @param {boolean} [shouldClean=false] Whether to also run the 'clean' hook before deleting
|
||||
*/
|
||||
export async function deleteExtension(extensionName) {
|
||||
export async function deleteExtension(extensionName, shouldClean = false) {
|
||||
const fullExtensionName = extensionName.startsWith('third-party') ? extensionName : `third-party${extensionName}`;
|
||||
|
||||
if (shouldClean) {
|
||||
await callExtensionHook(fullExtensionName, 'clean');
|
||||
}
|
||||
|
||||
await callExtensionHook(fullExtensionName, 'delete');
|
||||
|
||||
try {
|
||||
await fetch('/api/extensions/delete', {
|
||||
method: 'POST',
|
||||
@@ -1296,6 +1448,9 @@ export async function deleteExtension(extensionName) {
|
||||
console.error('Error:', error);
|
||||
}
|
||||
|
||||
// Delete or clean might have updated settings, which could race with the page reload, so we'll force save here
|
||||
await saveSettings();
|
||||
|
||||
toastr.success(t`Extension ${extensionName} deleted`);
|
||||
delay(1000).then(() => location.reload());
|
||||
}
|
||||
@@ -1390,7 +1545,7 @@ async function switchExtensionBranch(extensionName, isGlobal, branch) {
|
||||
return;
|
||||
}
|
||||
|
||||
toastr.success(t`Extension ${extensionName} switched to ${branch}`);
|
||||
toastr.success(t`Extension ${extensionName} switched to ${branch}`, t`Reload the page to apply updates`);
|
||||
await loadExtensionSettings({}, false, false);
|
||||
void showExtensionsDetails();
|
||||
} catch (error) {
|
||||
@@ -1431,6 +1586,11 @@ export async function installExtension(url, global, branch = '') {
|
||||
console.debug(`Extension "${response.display_name}" has been installed successfully at ${response.extensionPath}`);
|
||||
await loadExtensionSettings({}, false, false);
|
||||
await eventSource.emit(event_types.EXTENSION_SETTINGS_LOADED, response);
|
||||
|
||||
if (response.folderName) {
|
||||
const extensionName = `third-party/${response.folderName}`;
|
||||
await callExtensionHook(extensionName, 'install');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1786,6 +1946,7 @@ export async function initExtensions() {
|
||||
$(document).on('click', '.extensions_info .extension_block .toggle_enable', onEnableExtensionClick);
|
||||
$(document).on('click', '.extensions_info .extension_block .btn_update', onUpdateClick);
|
||||
$(document).on('click', '.extensions_info .extension_block .btn_delete', onDeleteClick);
|
||||
$(document).on('click', '.extensions_info .extension_block .btn_clean', onCleanClick);
|
||||
$(document).on('click', '.extensions_info .extension_block .btn_move', onMoveClick);
|
||||
$(document).on('click', '.extensions_info .extension_block .btn_branch', onBranchClick);
|
||||
|
||||
|
||||
@@ -82,8 +82,7 @@ function getAuthorFromUrl(url) {
|
||||
result.name = pathSegments[0];
|
||||
result.url = `${parsedUrl.protocol}//${parsedUrl.hostname}/${result.name}`;
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
} catch (error) {
|
||||
console.debug(DEBUG_PREFIX, 'Error parsing URL:', error);
|
||||
}
|
||||
|
||||
@@ -94,8 +93,7 @@ async function downloadAssetsList(url) {
|
||||
updateCurrentAssets().then(async function () {
|
||||
fetch(url, { cache: 'no-cache' })
|
||||
.then(response => response.json())
|
||||
.then(async function(json) {
|
||||
|
||||
.then(async function (json) {
|
||||
availableAssets = {};
|
||||
$('#assets_menu').empty();
|
||||
|
||||
@@ -200,8 +198,7 @@ async function downloadAssetsList(url) {
|
||||
label.removeClass('fa-trash');
|
||||
label.removeClass('redOverlayGlow');
|
||||
});
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
console.debug(DEBUG_PREFIX, 'not installed, unchecked');
|
||||
element.prop('checked', false);
|
||||
element.on('click', assetInstall);
|
||||
@@ -347,8 +344,7 @@ async function installAsset(url, assetType, filename) {
|
||||
console.debug(DEBUG_PREFIX, 'Character downloaded.');
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
return [];
|
||||
}
|
||||
@@ -374,8 +370,7 @@ async function deleteAsset(assetType, filename) {
|
||||
if (result.ok) {
|
||||
console.debug(DEBUG_PREFIX, 'Deletion success.');
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
return [];
|
||||
}
|
||||
@@ -428,8 +423,7 @@ async function updateCurrentAssets() {
|
||||
headers: getRequestHeaders({ omitContentType: true }),
|
||||
});
|
||||
currentAssets = result.ok ? (await result.json()) : {};
|
||||
}
|
||||
catch (err) {
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
console.debug(DEBUG_PREFIX, 'Current assets found:', currentAssets);
|
||||
@@ -441,7 +435,7 @@ async function updateCurrentAssets() {
|
||||
//#############################//
|
||||
|
||||
// This function is called when the extension is loaded
|
||||
jQuery(async () => {
|
||||
export async function init() {
|
||||
// This is an example of loading HTML from a file
|
||||
const windowTemplate = await renderExtensionTemplateAsync(MODULE_NAME, 'window', {});
|
||||
const windowHtml = $(windowTemplate);
|
||||
@@ -491,8 +485,7 @@ jQuery(async () => {
|
||||
connectButton.addClass('fa-plug-circle-exclamation');
|
||||
connectButton.removeClass('redOverlayGlow');
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
console.debug(DEBUG_PREFIX, 'Connection refused by user');
|
||||
}
|
||||
});
|
||||
@@ -503,4 +496,4 @@ jQuery(async () => {
|
||||
eventSource.on(event_types.OPEN_CHARACTER_LIBRARY, async (forceDefault) => {
|
||||
openCharacterBrowser(forceDefault);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -7,5 +7,8 @@
|
||||
"css": "style.css",
|
||||
"author": "Keij#6799",
|
||||
"version": "0.1.0",
|
||||
"homePage": "https://github.com/SillyTavern/SillyTavern"
|
||||
"homePage": "https://github.com/SillyTavern/SillyTavern",
|
||||
"hooks": {
|
||||
"activate": "init"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ function handleCharacterRename(oldAvatar, newAvatar) {
|
||||
}
|
||||
}
|
||||
|
||||
jQuery(async () => {
|
||||
export async function init() {
|
||||
eventSource.on(event_types.APP_READY, cleanUpAttachments);
|
||||
eventSource.on(event_types.CHARACTER_DELETED, cleanUpCharacterAttachments);
|
||||
eventSource.on(event_types.CHARACTER_RENAMED, handleCharacterRename);
|
||||
@@ -407,4 +407,4 @@ jQuery(async () => {
|
||||
}),
|
||||
],
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user