Initial deploy with custom mobile UI
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .dockerignore +21 -0
- .editorconfig +14 -0
- .eslintrc.cjs +106 -0
- .gemini/config.yaml +10 -0
- .gitattributes +6 -0
- .github/ISSUE_TEMPLATE/bug-report.yml +93 -0
- .github/ISSUE_TEMPLATE/feature-request.yml +92 -0
- .github/issues-auto-comments.yml +69 -0
- .github/issues-auto-labels.yml +20 -0
- .github/pr-auto-comments.yml +61 -0
- .github/pr-auto-labels-by-branch.yml +83 -0
- .github/pr-auto-labels-by-files.yml +46 -0
- .github/pull_request_template.md +5 -0
- .github/readme-de_de.md +94 -0
- .github/readme-ja_jp.md +94 -0
- .github/readme-ko_kr.md +94 -0
- .github/readme-ru_ru.md +94 -0
- .github/readme-zh_cn.md +94 -0
- .github/readme-zh_tw.md +94 -0
- .github/readme.md +95 -0
- .github/workflows/docker-publish.yml +94 -0
- .github/workflows/issues-auto-manager.yml +161 -0
- .github/workflows/issues-updates-on-merge.yml +56 -0
- .github/workflows/job-close-stale.yml +133 -0
- .github/workflows/npm-publish.yml +32 -0
- .github/workflows/on-close-handler.yml +39 -0
- .github/workflows/on-open-handler.yml +39 -0
- .github/workflows/pr-auto-manager.yml +374 -0
- .github/workflows/pr-check-merge-conflicts.yaml +39 -0
- .github/workflows/update-i18n.yaml +32 -0
- .gitignore +59 -0
- .nomedia +0 -0
- .npmignore +16 -0
- .replit +81 -0
- .vscode/extensions.json +12 -0
- CONTRIBUTING.md +54 -0
- Dockerfile +49 -0
- LICENSE +661 -0
- README.md +8 -6
- README_HF.md +12 -0
- Remote-Link.cmd +18 -0
- SECURITY.md +25 -0
- Start.bat +7 -0
- Update-Instructions.txt +75 -0
- UpdateAndStart.bat +27 -0
- UpdateForkAndStart.bat +110 -0
- colab/GPU.ipynb +193 -0
- default/!DO-NOT-EDIT-THESE-FILES.txt +13 -0
- default/config.yaml +303 -0
- default/content/Char_Avatar_Comfy_Workflow.json +137 -0
.dockerignore
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.git
|
| 2 |
+
.github
|
| 3 |
+
.vscode
|
| 4 |
+
node_modules
|
| 5 |
+
npm-debug.log
|
| 6 |
+
readme*
|
| 7 |
+
Start.bat
|
| 8 |
+
/dist
|
| 9 |
+
/backups
|
| 10 |
+
cloudflared.exe
|
| 11 |
+
access.log
|
| 12 |
+
/data
|
| 13 |
+
/cache
|
| 14 |
+
.DS_Store
|
| 15 |
+
/public/scripts/extensions/third-party
|
| 16 |
+
/colab
|
| 17 |
+
.gemini
|
| 18 |
+
/docker/config
|
| 19 |
+
/docker/extensions
|
| 20 |
+
/docker/data
|
| 21 |
+
/docker/plugins
|
.editorconfig
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
end_of_line = lf
|
| 5 |
+
insert_final_newline = true
|
| 6 |
+
trim_trailing_whitespace = true
|
| 7 |
+
|
| 8 |
+
[*.{js,conf,json,css,less,html}]
|
| 9 |
+
charset = utf-8
|
| 10 |
+
indent_style = space
|
| 11 |
+
indent_size = 4
|
| 12 |
+
|
| 13 |
+
[*.md]
|
| 14 |
+
trim_trailing_whitespace = false
|
.eslintrc.cjs
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = {
|
| 2 |
+
root: true,
|
| 3 |
+
extends: [
|
| 4 |
+
'eslint:recommended',
|
| 5 |
+
],
|
| 6 |
+
plugins: [
|
| 7 |
+
'jsdoc',
|
| 8 |
+
],
|
| 9 |
+
env: {
|
| 10 |
+
es6: true,
|
| 11 |
+
},
|
| 12 |
+
parserOptions: {
|
| 13 |
+
ecmaVersion: 'latest',
|
| 14 |
+
},
|
| 15 |
+
overrides: [
|
| 16 |
+
{
|
| 17 |
+
// Server-side files (plus this configuration file)
|
| 18 |
+
files: ['src/**/*.js', './*.js', 'plugins/**/*.js'],
|
| 19 |
+
env: {
|
| 20 |
+
node: true,
|
| 21 |
+
},
|
| 22 |
+
parserOptions: {
|
| 23 |
+
sourceType: 'module',
|
| 24 |
+
},
|
| 25 |
+
globals: {
|
| 26 |
+
globalThis: 'readonly',
|
| 27 |
+
Deno: 'readonly',
|
| 28 |
+
},
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
files: ['*.cjs'],
|
| 32 |
+
parserOptions: {
|
| 33 |
+
sourceType: 'commonjs',
|
| 34 |
+
},
|
| 35 |
+
env: {
|
| 36 |
+
node: true,
|
| 37 |
+
},
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
files: ['src/**/*.mjs'],
|
| 41 |
+
parserOptions: {
|
| 42 |
+
sourceType: 'module',
|
| 43 |
+
},
|
| 44 |
+
env: {
|
| 45 |
+
node: true,
|
| 46 |
+
},
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
// Browser-side files
|
| 50 |
+
files: ['public/**/*.js'],
|
| 51 |
+
env: {
|
| 52 |
+
browser: true,
|
| 53 |
+
jquery: true,
|
| 54 |
+
},
|
| 55 |
+
parserOptions: {
|
| 56 |
+
sourceType: 'module',
|
| 57 |
+
},
|
| 58 |
+
// These scripts are loaded in HTML; tell ESLint not to complain about them being undefined
|
| 59 |
+
globals: {
|
| 60 |
+
globalThis: 'readonly',
|
| 61 |
+
ePub: 'readonly',
|
| 62 |
+
pdfjsLib: 'readonly',
|
| 63 |
+
toastr: 'readonly',
|
| 64 |
+
SillyTavern: 'readonly',
|
| 65 |
+
},
|
| 66 |
+
},
|
| 67 |
+
],
|
| 68 |
+
ignorePatterns: [
|
| 69 |
+
'**/node_modules/**',
|
| 70 |
+
'**/dist/**',
|
| 71 |
+
'**/.git/**',
|
| 72 |
+
'public/lib/**',
|
| 73 |
+
'backups/**',
|
| 74 |
+
'data/**',
|
| 75 |
+
'cache/**',
|
| 76 |
+
'src/tokenizers/**',
|
| 77 |
+
'docker/**',
|
| 78 |
+
'plugins/**',
|
| 79 |
+
'**/*.min.js',
|
| 80 |
+
'public/scripts/extensions/quick-reply/lib/**',
|
| 81 |
+
'public/scripts/extensions/tts/lib/**',
|
| 82 |
+
],
|
| 83 |
+
rules: {
|
| 84 |
+
'jsdoc/no-undefined-types': ['warn', { disableReporting: true, markVariablesAsUsed: true }],
|
| 85 |
+
'no-unused-vars': ['error', { args: 'none' }],
|
| 86 |
+
'no-control-regex': 'off',
|
| 87 |
+
'no-constant-condition': ['error', { checkLoops: false }],
|
| 88 |
+
'require-yield': 'off',
|
| 89 |
+
'quotes': ['error', 'single'],
|
| 90 |
+
'semi': ['error', 'always'],
|
| 91 |
+
'indent': ['error', 4, { SwitchCase: 1, FunctionDeclaration: { parameters: 'first' } }],
|
| 92 |
+
'comma-dangle': ['error', 'always-multiline'],
|
| 93 |
+
'eol-last': ['error', 'always'],
|
| 94 |
+
'no-trailing-spaces': 'error',
|
| 95 |
+
'object-curly-spacing': ['error', 'always'],
|
| 96 |
+
'space-infix-ops': 'error',
|
| 97 |
+
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
|
| 98 |
+
'no-cond-assign': 'error',
|
| 99 |
+
'no-unneeded-ternary': 'error',
|
| 100 |
+
'no-irregular-whitespace': ['error', { skipStrings: true, skipTemplates: true }],
|
| 101 |
+
|
| 102 |
+
// These rules should eventually be enabled.
|
| 103 |
+
'no-async-promise-executor': 'off',
|
| 104 |
+
'no-inner-declarations': 'off',
|
| 105 |
+
},
|
| 106 |
+
};
|
.gemini/config.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
have_fun: true
|
| 2 |
+
code_review:
|
| 3 |
+
disable: false
|
| 4 |
+
comment_severity_threshold: HIGH
|
| 5 |
+
max_review_comments: -1
|
| 6 |
+
pull_request_opened:
|
| 7 |
+
help: false
|
| 8 |
+
summary: false
|
| 9 |
+
code_review: false
|
| 10 |
+
ignore_patterns: []
|
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*.ico filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.woff filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.ttf filter=lfs diff=lfs merge=lfs -text
|
.github/ISSUE_TEMPLATE/bug-report.yml
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Bug Report 🐛
|
| 2 |
+
type: Bug
|
| 3 |
+
description: Report something that's not working the intended way. Support requests for external programs (reverse proxies, 3rd party servers, other peoples' forks) will be refused! Please use English only.
|
| 4 |
+
title: '[BUG] <title>'
|
| 5 |
+
labels: ['🐛 Bug']
|
| 6 |
+
body:
|
| 7 |
+
- type: dropdown
|
| 8 |
+
id: environment
|
| 9 |
+
attributes:
|
| 10 |
+
label: Environment
|
| 11 |
+
description: Where are you running SillyTavern?
|
| 12 |
+
options:
|
| 13 |
+
- 🪟 Windows
|
| 14 |
+
- 🐧 Linux
|
| 15 |
+
- 📱 Termux
|
| 16 |
+
- 🐋 Docker
|
| 17 |
+
- 🍎 Mac
|
| 18 |
+
validations:
|
| 19 |
+
required: true
|
| 20 |
+
|
| 21 |
+
- type: input
|
| 22 |
+
id: system
|
| 23 |
+
attributes:
|
| 24 |
+
label: System
|
| 25 |
+
description: >-
|
| 26 |
+
For deployment issues, specify your [distro or OS](https://whatsmyos.com/) and/ or Docker version.
|
| 27 |
+
For client-side issues, include your [browser version](https://www.whatsmybrowser.org/)
|
| 28 |
+
placeholder: e.g. Firefox 101, Manjaro Linux 21.3.0, Docker 20.10.16
|
| 29 |
+
validations:
|
| 30 |
+
required: true
|
| 31 |
+
|
| 32 |
+
- type: input
|
| 33 |
+
id: version
|
| 34 |
+
attributes:
|
| 35 |
+
label: Version
|
| 36 |
+
description: What version of SillyTavern are you running?
|
| 37 |
+
placeholder: (check User Settings to see the version)
|
| 38 |
+
validations:
|
| 39 |
+
required: true
|
| 40 |
+
|
| 41 |
+
- type: textarea
|
| 42 |
+
id: desktop
|
| 43 |
+
attributes:
|
| 44 |
+
label: Desktop Information
|
| 45 |
+
description: Please provide details about your desktop environment.
|
| 46 |
+
placeholder: |
|
| 47 |
+
- Node.js version (if applicable): [run `node --version` in cmd]
|
| 48 |
+
- Generation API [e.g. KoboldAI, OpenAI]
|
| 49 |
+
- Branch [staging, release]
|
| 50 |
+
- Model [e.g. Pygmalion 6b, LLaMa 13b]
|
| 51 |
+
validations:
|
| 52 |
+
required: false
|
| 53 |
+
|
| 54 |
+
- type: textarea
|
| 55 |
+
id: repro
|
| 56 |
+
attributes:
|
| 57 |
+
label: Describe the problem
|
| 58 |
+
description: Please describe exactly what is not working, include the steps to reproduce, actual result and expected result
|
| 59 |
+
placeholder: When doing ABC then DEF, I expect to see XYZ, but I actually see ZYX
|
| 60 |
+
validations:
|
| 61 |
+
required: true
|
| 62 |
+
|
| 63 |
+
- type: textarea
|
| 64 |
+
id: logs
|
| 65 |
+
attributes:
|
| 66 |
+
label: Additional info
|
| 67 |
+
description: Logs? Screenshots? Yes, please.
|
| 68 |
+
placeholder: If the issue happens during build-time, include terminal logs. For run-time errors, include browser logs which you can view in the Dev Tools (F12), under the Console tab. Take care to blank out any personal info.
|
| 69 |
+
validations:
|
| 70 |
+
required: false
|
| 71 |
+
|
| 72 |
+
- type: checkboxes
|
| 73 |
+
id: user-check
|
| 74 |
+
attributes:
|
| 75 |
+
label: Please tick the boxes
|
| 76 |
+
description: Before submitting, please ensure that you have completed the following checklist
|
| 77 |
+
options:
|
| 78 |
+
- label: I have explained the issue clearly, and I included all relevant info
|
| 79 |
+
required: true
|
| 80 |
+
- label: I have checked that this [issue hasn't already been raised](https://github.com/SillyTavern/SillyTavern/issues?q=is%3Aissue)
|
| 81 |
+
required: true
|
| 82 |
+
- label: I have checked the [docs](https://docs.sillytavern.app/) 
|
| 83 |
+
required: true
|
| 84 |
+
- label: I confirm that my issue is not related to third-party content, unofficial extension or patch. If in doubt, check with a new [user account](https://docs.sillytavern.app/administration/multi-user/) and with extensions disabled
|
| 85 |
+
required: true
|
| 86 |
+
|
| 87 |
+
- type: markdown
|
| 88 |
+
attributes:
|
| 89 |
+
value: |-
|
| 90 |
+
## Thanks 🙏
|
| 91 |
+
Thank you for raising this ticket - in doing so you are helping to make SillyTavern better for everyone.
|
| 92 |
+
validations:
|
| 93 |
+
required: false
|
.github/ISSUE_TEMPLATE/feature-request.yml
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Feature Request ✨
|
| 2 |
+
type: Feature
|
| 3 |
+
description: Suggest an idea for future development of this project. Please use English only.
|
| 4 |
+
title: '[FEATURE_REQUEST] <title>'
|
| 5 |
+
labels: ['🦄 Feature Request']
|
| 6 |
+
|
| 7 |
+
body:
|
| 8 |
+
|
| 9 |
+
# Field 1 - Did the user searched for similar requests
|
| 10 |
+
- type: dropdown
|
| 11 |
+
id: similarRequest
|
| 12 |
+
attributes:
|
| 13 |
+
label: Have you searched for similar requests?
|
| 14 |
+
description:
|
| 15 |
+
options:
|
| 16 |
+
- 'No'
|
| 17 |
+
- 'Yes'
|
| 18 |
+
validations:
|
| 19 |
+
required: true
|
| 20 |
+
|
| 21 |
+
# Field 2 - Is it bug-related
|
| 22 |
+
- type: textarea
|
| 23 |
+
id: issue
|
| 24 |
+
attributes:
|
| 25 |
+
label: Is your feature request related to a problem? If so, please describe.
|
| 26 |
+
description:
|
| 27 |
+
placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
| 28 |
+
validations:
|
| 29 |
+
required: false
|
| 30 |
+
|
| 31 |
+
# Field 3 - Describe feature
|
| 32 |
+
- type: textarea
|
| 33 |
+
id: solution
|
| 34 |
+
attributes:
|
| 35 |
+
label: Describe the solution you'd like
|
| 36 |
+
placeholder: An outline of how you would like this to be implemented, include as much details as possible
|
| 37 |
+
validations:
|
| 38 |
+
required: true
|
| 39 |
+
|
| 40 |
+
# Field 4 - Describe alternatives
|
| 41 |
+
- type: textarea
|
| 42 |
+
id: alternatives
|
| 43 |
+
attributes:
|
| 44 |
+
label: Describe alternatives you've considered
|
| 45 |
+
placeholder: A clear and concise description of any alternative solutions or features you've considered.
|
| 46 |
+
validations:
|
| 47 |
+
required: false
|
| 48 |
+
|
| 49 |
+
# Field 5 - Additional context
|
| 50 |
+
- type: textarea
|
| 51 |
+
id: addcontext
|
| 52 |
+
attributes:
|
| 53 |
+
label: Additional context
|
| 54 |
+
placeholder: Add any other context or screenshots about the feature request here.
|
| 55 |
+
validations:
|
| 56 |
+
required: false
|
| 57 |
+
|
| 58 |
+
# Field 6 - Priority
|
| 59 |
+
- type: dropdown
|
| 60 |
+
id: priority
|
| 61 |
+
attributes:
|
| 62 |
+
label: Priority
|
| 63 |
+
description: How urgent is the development of this feature
|
| 64 |
+
options:
|
| 65 |
+
- Low (Nice-to-have)
|
| 66 |
+
- Medium (Would be very useful)
|
| 67 |
+
- High (The app does not function without it)
|
| 68 |
+
validations:
|
| 69 |
+
required: true
|
| 70 |
+
|
| 71 |
+
# Field 7 - Can the user user test in staging
|
| 72 |
+
- type: dropdown
|
| 73 |
+
id: canTestStaging
|
| 74 |
+
attributes:
|
| 75 |
+
label: Are you willing to test this on staging/unstable branch if this is implemented?
|
| 76 |
+
description: Otherwise you'll need to wait until the next stable release after the feature is developed.
|
| 77 |
+
options:
|
| 78 |
+
- 'No'
|
| 79 |
+
- 'Maybe'
|
| 80 |
+
- 'Yes'
|
| 81 |
+
validations:
|
| 82 |
+
required: false
|
| 83 |
+
|
| 84 |
+
# Final text
|
| 85 |
+
- type: markdown
|
| 86 |
+
attributes:
|
| 87 |
+
value: |-
|
| 88 |
+
## Thanks 🙏
|
| 89 |
+
Thank you for your feature suggestion.
|
| 90 |
+
Please note that there is no guarantee that your idea will be implemented.
|
| 91 |
+
validations:
|
| 92 |
+
required: false
|
.github/issues-auto-comments.yml
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
labels:
|
| 2 |
+
- name: ✖️ Invalid
|
| 3 |
+
labeled:
|
| 4 |
+
issue:
|
| 5 |
+
action: close
|
| 6 |
+
body: >
|
| 7 |
+
Hey @{{ issue.user.login }}, this issue has been marked as invalid.
|
| 8 |
+
|
| 9 |
+
Please double-check that you've followed the issue template, included all necessary details, and reviewed the docs & previous issues before submitting.
|
| 10 |
+
If provided, follow the instructions given by maintainers.
|
| 11 |
+
|
| 12 |
+
- name: 👩💻 Good First Issue
|
| 13 |
+
labeled:
|
| 14 |
+
issue:
|
| 15 |
+
body: >
|
| 16 |
+
🏆 This issue has been marked as a good first issue for contributors to implement!
|
| 17 |
+
This is a great way to support the project. While also improving your skills, you'll also be credited as a contributor once your PR is merged.
|
| 18 |
+
|
| 19 |
+
If you're new to SillyTavern [here is the official documentation](https://docs.sillytavern.app/). The official contribution guide can be found [here](https://github.com/SillyTavern/SillyTavern/blob/release/CONTRIBUTING.md).
|
| 20 |
+
If you need any support, feel free to reach out via [Discord](https://discord.gg/sillytavern), or let us know in this issue or via [discussions](https://github.com/SillyTavern/SillyTavern/discussions).
|
| 21 |
+
|
| 22 |
+
- name: ❌ wontfix
|
| 23 |
+
labeled:
|
| 24 |
+
issue:
|
| 25 |
+
action: close
|
| 26 |
+
body: >
|
| 27 |
+
❌ This issue has been marked as 'wontfix', which usually means it is out-of-scope, not feasible at this time or will not be implemented for various reasons.
|
| 28 |
+
If you have any questions about this, feel free to reach out.
|
| 29 |
+
|
| 30 |
+
- name: 🛑 Out of Scope
|
| 31 |
+
labeled:
|
| 32 |
+
issue:
|
| 33 |
+
action: close
|
| 34 |
+
body: >
|
| 35 |
+
🛑 This issue has been marked as 'out of scope', as this can't or won't be implemented.
|
| 36 |
+
If you have any questions about this, feel free to reach out.
|
| 37 |
+
|
| 38 |
+
- name: ✅ Done (staging)
|
| 39 |
+
labeled:
|
| 40 |
+
issue:
|
| 41 |
+
body: >
|
| 42 |
+
✅ It looks like all or part of this issue has now been implemented as part of the `staging` branch.
|
| 43 |
+
If you currently are on the `release` branch, you can switch to `staging` to test this right away.
|
| 44 |
+
|
| 45 |
+
Note that `staging` is considered less stable than the official releases. To switch, follow existing instructions,
|
| 46 |
+
or simply enter the following command: `git switch staging`
|
| 47 |
+
|
| 48 |
+
- name: ✅ Done
|
| 49 |
+
labeled:
|
| 50 |
+
issue:
|
| 51 |
+
body: >
|
| 52 |
+
✅ It looks like all or part of this issue has now been implemented as part of the latest release.
|
| 53 |
+
|
| 54 |
+
- name: ‼️ High Priority
|
| 55 |
+
labeled:
|
| 56 |
+
issue:
|
| 57 |
+
body: >
|
| 58 |
+
🚨 This issue has been marked high priority, meaning it's important to the maintainers or community.
|
| 59 |
+
While we can't promise immediate changes, it is on our radar and will be addressed whenever possible. Thanks for your patience!
|
| 60 |
+
|
| 61 |
+
- name: 💀 Spam
|
| 62 |
+
labeled:
|
| 63 |
+
issue:
|
| 64 |
+
action: close
|
| 65 |
+
locking: lock
|
| 66 |
+
lock_reason: spam
|
| 67 |
+
body: >
|
| 68 |
+
💀 This issue has been flagged as spam and is now locked.
|
| 69 |
+
Please avoid posting spam - it disrupts the community and wastes everyone's time.
|
.github/issues-auto-labels.yml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
🪟 Windows:
|
| 2 |
+
- '(🪟 Windows)'
|
| 3 |
+
|
| 4 |
+
🍎 Mac:
|
| 5 |
+
- '(🍎 Mac)'
|
| 6 |
+
|
| 7 |
+
🐋 Docker:
|
| 8 |
+
- '(🐋 Docker)'
|
| 9 |
+
|
| 10 |
+
📱 Termux:
|
| 11 |
+
- '(📱 Termux)'
|
| 12 |
+
|
| 13 |
+
🐧 Linux:
|
| 14 |
+
- '(🐧 Linux)'
|
| 15 |
+
|
| 16 |
+
🦊 Firefox:
|
| 17 |
+
- '\b(firefox|mozilla)\b'
|
| 18 |
+
|
| 19 |
+
📱 Mobile:
|
| 20 |
+
- '\b(iphone|ios|android|📱 Termux)\b'
|
.github/pr-auto-comments.yml
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
labels:
|
| 2 |
+
- name: ✖️ Invalid
|
| 3 |
+
labeled:
|
| 4 |
+
pr:
|
| 5 |
+
action: close
|
| 6 |
+
body: >
|
| 7 |
+
Hey @{{ pull_request.user.login }}, thanks for your contribution!
|
| 8 |
+
Unfortunately, this PR has been marked as invalid.
|
| 9 |
+
|
| 10 |
+
Please check that you've followed the PR template, included all relevant details, and are targeting the correct branch (`staging` for regular contributions, `release` only for hotfixes).
|
| 11 |
+
|
| 12 |
+
If you need help, feel free to ask!
|
| 13 |
+
|
| 14 |
+
- name: ⛔ Don't Merge
|
| 15 |
+
labeled:
|
| 16 |
+
pr:
|
| 17 |
+
body: >
|
| 18 |
+
🚨 This PR has been temporarily blocked from merging.
|
| 19 |
+
|
| 20 |
+
- name: 💥💣 Breaking Changes
|
| 21 |
+
labeled:
|
| 22 |
+
pr:
|
| 23 |
+
body: >
|
| 24 |
+
⚠️ Heads up! This PR introduces breaking changes.
|
| 25 |
+
|
| 26 |
+
Make sure these changes are well-documented and that users will be properly informed when this is released.
|
| 27 |
+
|
| 28 |
+
- name: ⛔ Waiting For External/Upstream
|
| 29 |
+
labeled:
|
| 30 |
+
pr:
|
| 31 |
+
body: >
|
| 32 |
+
⛔ This PR is awaiting external or upstream changes or approval.
|
| 33 |
+
It can only be merged once those changes have been implemented and approved.
|
| 34 |
+
|
| 35 |
+
Please inform us of any progress on the upstream changes or approval.
|
| 36 |
+
|
| 37 |
+
- name: 🔬 Needs Testing
|
| 38 |
+
labeled:
|
| 39 |
+
pr:
|
| 40 |
+
body: >
|
| 41 |
+
🔬 This PR needs testing!
|
| 42 |
+
Any contributor can test and leave reviews, so feel free to help us out!
|
| 43 |
+
|
| 44 |
+
- name: ❗ Against Release Branch
|
| 45 |
+
labeled:
|
| 46 |
+
pr:
|
| 47 |
+
body: >
|
| 48 |
+
❗ This PR is against the `release` branch.
|
| 49 |
+
|
| 50 |
+
Please make sure this was intended, and you did not want to target the `staging` branch. Only hotfixes, readme changes and similar should be made against `release`.
|
| 51 |
+
|
| 52 |
+
You can change the target branch **without recreating the PR** by clicking "Edit" at the top of the page.
|
| 53 |
+
|
| 54 |
+
- name: 🟥 ⬤⬤⬤⬤⬤
|
| 55 |
+
labeled:
|
| 56 |
+
pr:
|
| 57 |
+
body: >
|
| 58 |
+
⚠️ This PR is over 1000 lines, which is larger than recommended.
|
| 59 |
+
|
| 60 |
+
Please make sure that it only addresses a single issue - PRs this large are hard to test and may be rejected.
|
| 61 |
+
|
.github/pr-auto-labels-by-branch.yml
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
####################################
|
| 2 |
+
# Label PRs against 'release' #
|
| 3 |
+
####################################
|
| 4 |
+
❗ Against Release Branch:
|
| 5 |
+
- base-branch: 'release'
|
| 6 |
+
|
| 7 |
+
####################################
|
| 8 |
+
# Labels based on PR branch name #
|
| 9 |
+
####################################
|
| 10 |
+
🦋 Bug Fix:
|
| 11 |
+
- head-branch: ['^fix[/-]', '\bfixes\b']
|
| 12 |
+
|
| 13 |
+
🚑 Hot Fix:
|
| 14 |
+
- head-branch: ['^hotfix[/-]']
|
| 15 |
+
|
| 16 |
+
✨ New Feature:
|
| 17 |
+
- head-branch: ['^feat(ure)?[/-].*?\badd', '^add-']
|
| 18 |
+
|
| 19 |
+
✨ Feature Changes:
|
| 20 |
+
- head-branch: ['^feat(ure)?[/-](?!.*\badd\b)', '\bchanges?\b']
|
| 21 |
+
|
| 22 |
+
🤖 API / Model:
|
| 23 |
+
- head-branch: ['\bapi\b', '\bmodels?\b']
|
| 24 |
+
|
| 25 |
+
🏭 Backend Changes:
|
| 26 |
+
- head-branch: ['\bbackend\b', '\bendpoints?\b']
|
| 27 |
+
|
| 28 |
+
🐋 Docker:
|
| 29 |
+
- head-branch: ['\bdocker\b']
|
| 30 |
+
|
| 31 |
+
➕ Extension:
|
| 32 |
+
- head-branch: ['\bextension\b', '\bext\b']
|
| 33 |
+
|
| 34 |
+
🦊 Firefox:
|
| 35 |
+
- head-branch: ['\bfirefox\b']
|
| 36 |
+
|
| 37 |
+
🧑🤝🧑 Group Chat:
|
| 38 |
+
- head-branch: ['\bgroups?\b']
|
| 39 |
+
|
| 40 |
+
🖼️ Image Gen:
|
| 41 |
+
- head-branch: ['\bimage-gen\b']
|
| 42 |
+
|
| 43 |
+
🌐 Language:
|
| 44 |
+
- head-branch: ['\btranslations?\b', '\blanguages?\b']
|
| 45 |
+
|
| 46 |
+
🐧 Linux:
|
| 47 |
+
- head-branch: ['\blinux\b']
|
| 48 |
+
|
| 49 |
+
🧩 Macros:
|
| 50 |
+
- head-branch: ['\bmacros?\b']
|
| 51 |
+
|
| 52 |
+
📱 Mobile:
|
| 53 |
+
- head-branch: ['\bmobile\b', '\bios\b', '\bandroid\b']
|
| 54 |
+
|
| 55 |
+
🚄 Performance:
|
| 56 |
+
- head-branch: ['\bperformance\b']
|
| 57 |
+
|
| 58 |
+
⚙️ Preset:
|
| 59 |
+
- head-branch: ['\bpresets?\b']
|
| 60 |
+
|
| 61 |
+
📜 Prompt:
|
| 62 |
+
- head-branch: ['\bprompt\b']
|
| 63 |
+
|
| 64 |
+
🧠 Reasoning:
|
| 65 |
+
- head-branch: ['\breasoning\b', '\breason\b', '\bthinking\b']
|
| 66 |
+
|
| 67 |
+
🚚 Refactor:
|
| 68 |
+
- head-branch: ['\brefactor(s|ed)?\b']
|
| 69 |
+
|
| 70 |
+
📜 STscript:
|
| 71 |
+
- head-branch: ['\bstscript\b', '\bslash-commands\b']
|
| 72 |
+
|
| 73 |
+
🏷️ Tags / Folders:
|
| 74 |
+
- head-branch: ['\btags\b']
|
| 75 |
+
|
| 76 |
+
🎙️ TTS / Voice:
|
| 77 |
+
- head-branch: ['\btts\b', '\bvoice\b']
|
| 78 |
+
|
| 79 |
+
🌟 UX:
|
| 80 |
+
- head-branch: ['\bux\b']
|
| 81 |
+
|
| 82 |
+
🗺️ World Info:
|
| 83 |
+
- head-branch: ['\bworld-info\b', '\bwi\b']
|
.github/pr-auto-labels-by-files.yml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
####################################
|
| 2 |
+
# Labels based on changed files #
|
| 3 |
+
####################################
|
| 4 |
+
🏭 Backend Changes:
|
| 5 |
+
- changed-files:
|
| 6 |
+
- any-glob-to-any-file:
|
| 7 |
+
- "src/**"
|
| 8 |
+
- "default/config.yaml"
|
| 9 |
+
- "server.js"
|
| 10 |
+
- "plugins.js"
|
| 11 |
+
- "recover.js"
|
| 12 |
+
- "webpack.config.js"
|
| 13 |
+
- "Start.bat"
|
| 14 |
+
- "start.sh"
|
| 15 |
+
- "UpdateAndStart.bat"
|
| 16 |
+
- "UpdateForkAndStart.bat"
|
| 17 |
+
|
| 18 |
+
⚙️ config.yaml:
|
| 19 |
+
- changed-files:
|
| 20 |
+
- any-glob-to-any-file:
|
| 21 |
+
- "default/config.yaml"
|
| 22 |
+
|
| 23 |
+
🛠️ Build Changes:
|
| 24 |
+
- changed-files:
|
| 25 |
+
- any-glob-to-any-file:
|
| 26 |
+
- ".github/workflows/**"
|
| 27 |
+
- "docker/**"
|
| 28 |
+
- ".dockerignore"
|
| 29 |
+
- "Dockerfile"
|
| 30 |
+
- "webpack.config.js"
|
| 31 |
+
|
| 32 |
+
🌐 Language:
|
| 33 |
+
- changed-files:
|
| 34 |
+
- any-glob-to-any-file:
|
| 35 |
+
- "public/locales/**"
|
| 36 |
+
|
| 37 |
+
📥 Dependencies:
|
| 38 |
+
- changed-files:
|
| 39 |
+
- any-glob-to-any-file:
|
| 40 |
+
- "public/lib/**" # Every frontend lib counts as a dependency as well
|
| 41 |
+
- "package.json"
|
| 42 |
+
- "package-lock.json"
|
| 43 |
+
- "tests/package.json"
|
| 44 |
+
- "tests/package-lock.json"
|
| 45 |
+
- "src/electron/package.json"
|
| 46 |
+
- "src/electron/package-lock.json"
|
.github/pull_request_template.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Put X in the box below to confirm -->
|
| 2 |
+
|
| 3 |
+
## Checklist:
|
| 4 |
+
|
| 5 |
+
- [ ] I have read the [Contribution guidelines](https://github.com/SillyTavern/SillyTavern/blob/release/CONTRIBUTING.md).
|
.github/readme-de_de.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> [!IMPORTANT]
|
| 2 |
+
> Die hier veröffentlichten Informationen sind möglicherweise veraltet oder unvollständig. Für aktuelle Informationen nutzen Sie bitte die englische Version.
|
| 3 |
+
|
| 4 |
+
<a name="readme-top"></a>
|
| 5 |
+
|
| 6 |
+
![][cover]
|
| 7 |
+
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
[English](readme.md) | German | [中文](readme-zh_cn.md) | [繁體中文](readme-zh_tw.md) | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md) | [한국어](readme-ko_kr.md)
|
| 11 |
+
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 13 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 14 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 15 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 16 |
+
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
SillyTavern bietet eine einheitliche Benutzeroberfläche für viele LLM-APIs (KoboldAI/CPP, Horde, NovelAI, Ooba, Tabby, OpenAI, OpenRouter, Claude, Mistral und mehr), ein mobilfreundliches Layout, einen Visual-Novel-Modus, die Integration von Automatic1111 & ComfyUI API zur Bilderzeugung, TTS, WorldInfo (Lorebooks), anpassbare UI, automatische Übersetzung, mehr Eingabeaufforderungsoptionen, als du jemals wolltest oder brauchst, und unendliches Wachstumspotenzial durch Drittanbietererweiterungen.
|
| 22 |
+
|
| 23 |
+
Wir haben eine [Dokumentationswebsite](https://docs.sillytavern.app/), um die meisten deiner Fragen zu beantworten und dir den Einstieg zu erleichtern.
|
| 24 |
+
|
| 25 |
+
## Was ist SillyTavern?
|
| 26 |
+
|
| 27 |
+
SillyTavern (oder ST abgekürtz) ist eine lokal installierte Benutzeroberfläche, die es dir ermöglicht, mit Textgenerations-LLMs, Bildgenerierungsmaschinen und TTS-Sprachmodellen zu interagieren.
|
| 28 |
+
|
| 29 |
+
Angefangen im Februar 2023 als Fork von TavernAI 1.2.8 hat SillyTavern nun über 200 Mitwirkende und 2 Jahre unabhängiger Entwicklung hinter sich und dient weiterhin als führende Software für versierte KI-Hobbyisten.
|
| 30 |
+
|
| 31 |
+
## Unsere Vision
|
| 32 |
+
|
| 33 |
+
1. Wir möchten die Nutzer mit so viel Nutzen und Kontrolle über ihre LLM-Prompts wie möglich ausstatten. Die steile Lernkurve ist Teil des Spaßes!
|
| 34 |
+
2. Wir bieten weder Online- oder gehosteten Dienste an, noch verfolgen wir programmgesteuert Benutzerdaten.
|
| 35 |
+
3. SillyTavern ist ein Herzensprojekt, das von einer engagierten Community von LLM-Enthusiasten unterstützt wird, und wird immer kostenlos und Open Source sein.
|
| 36 |
+
|
| 37 |
+
## Brauche ich einen leistungsstarken PC, um SillyTavern auszuführen?
|
| 38 |
+
|
| 39 |
+
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.
|
| 40 |
+
|
| 41 |
+
## Fragen oder Vorschläge?
|
| 42 |
+
|
| 43 |
+
### Discord-Server
|
| 44 |
+
|
| 45 |
+
| [![][discord-shield-badge]][discord-link] | [Tritt unserer Discord-Community bei!](https://discord.gg/sillytavern) Erhalte Unterstützung, teile deine Lieblingscharaktere und Prompts. |
|
| 46 |
+
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
|
| 47 |
+
|
| 48 |
+
Oder nimm direkt Kontakt mit den Entwicklern auf:
|
| 49 |
+
|
| 50 |
+
* Discord: cohee, rossascends, wolfsblvt
|
| 51 |
+
* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 52 |
+
* [Erstelle ein GitHub-Issue](https://github.com/SillyTavern/SillyTavern/issues)
|
| 53 |
+
|
| 54 |
+
### Ich mag dieses Projekt! Wie kann ich beitragen?
|
| 55 |
+
|
| 56 |
+
1. Sende Pull-Requests. Lerne, wie du beitragen kannst: [CONTRIBUTING.md](../CONTRIBUTING.md)
|
| 57 |
+
2. Sende Feature Requests und Issues unter Verwendung der bereitgestellten Vorlagen.
|
| 58 |
+
3. Lies diese gesamte README-Datei und überprüfe zuerst die Dokumentationswebsite, um doppelte Issues zu vermeiden.
|
| 59 |
+
|
| 60 |
+
## Screenshots
|
| 61 |
+
|
| 62 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 63 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 64 |
+
|
| 65 |
+
## Installation
|
| 66 |
+
|
| 67 |
+
Für detaillierte Installationsanweisungen besuche bitte unsere Dokumentation:
|
| 68 |
+
|
| 69 |
+
* **[Windows Installationsanleitung](https://docs.sillytavern.app/installation/windows/)**
|
| 70 |
+
* **[MacOS/Linux Installationsanleitung](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 71 |
+
* **[Android (Termux) Installationsanleitung](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 72 |
+
* **[Docker Installationsanleitung](https://docs.sillytavern.app/installation/docker/)**
|
| 73 |
+
|
| 74 |
+
## Lizenz und Danksagungen
|
| 75 |
+
|
| 76 |
+
**Dieses Programm wird in der Hoffnung verbreitet, dass es nützlich ist, aber OHNE JEGLICHE GARANTIE; nicht einmal die stillschweigende Garantie der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die GNU Affero General Public License für weitere Details.**
|
| 77 |
+
|
| 78 |
+
* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 von Humi: MIT-Lizenz
|
| 79 |
+
* Teile von CncAnons TavernAITurbo-Mod werden mit Genehmigung verwendet
|
| 80 |
+
* Visual Novel-Modus inspiriert von der Arbeit von PepperTaco (<https://github.com/peppertaco/Tavern/>)
|
| 81 |
+
* Noto Sans-Schriftart von Google (OFL-Lizenz)
|
| 82 |
+
* Symboldesign von Font Awesome <https://fontawesome.com> (Symbole: CC BY 4.0, Schriftarten: SIL OFL 1.1, Code: MIT-Lizenz)
|
| 83 |
+
* Standardinhalt von @OtisAlejandro (Seraphina-Charakter und Lorebook) und @kallmeflocc (10.000 Discord-Benutzer-Feierhintergrund)
|
| 84 |
+
* Docker-Anleitung von [@mrguymiah](https://github.com/mrguymiah) und [@Bronya-Rand](https://github.com/Bronya-Rand)
|
| 85 |
+
* kokoro-js library by [@hexgrad](https://github.com/hexgrad) (Apache-2.0 License)
|
| 86 |
+
|
| 87 |
+
## Top Contributors
|
| 88 |
+
|
| 89 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 90 |
+
|
| 91 |
+
<!-- LINK GROUP -->
|
| 92 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 93 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 94 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/readme-ja_jp.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> [!IMPORTANT]
|
| 2 |
+
> ここに掲載されている情報は、古かったり不完全であったりする可能性があります。最新の情報は英語版をご利用ください。
|
| 3 |
+
|
| 4 |
+
<a name="readme-top"></a>
|
| 5 |
+
|
| 6 |
+
![][cover]
|
| 7 |
+
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
[English](readme.md) | [German](readme-de_de.md) | [中文](readme-zh_cn.md) | [繁體中文](readme-zh_tw.md) | 日本語 | [Русский](readme-ru_ru.md) | [한국어](readme-ko_kr.md)
|
| 11 |
+
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 13 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 14 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 15 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 16 |
+
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
SillyTavernは、多くのLLM API(KoboldAI/CPP、Horde、NovelAI、Ooba、Tabby、OpenAI、OpenRouter、Claude、Mistralなど)に対応した統一インターフェース、モバイルフレンドリーなレイアウト、ビジュアルノベルモード、Automatic1111 & ComfyUI API画像生成連携、TTS、WorldInfo(伝承本)、カスタマイズ可能なUI、自動翻訳、必要以上に豊富なプロンプトオプション、そしてサードパーティ製拡張機能による無限の成長可能性を提供します。
|
| 22 |
+
|
| 23 |
+
私たちは[ドキュメントウェブサイト](https://docs.sillytavern.app/)を用意しており、ほとんどの質問に答え、入門の手助けをします。
|
| 24 |
+
|
| 25 |
+
## SillyTavernとは?
|
| 26 |
+
|
| 27 |
+
SillyTavern(略してST)は、テキスト生成LLM、画像生成エンジン、TTS音声モデルと対話するための、ローカルにインストールされるユーザーインターフェースです。
|
| 28 |
+
|
| 29 |
+
2023年2月にTavernAI 1.2.8のフォークとして始まり、SillyTavernは現在200人以上の貢献者と2年間の独立した開発を経て、知識豊富なAI愛好家のための主要なソフトウェアとして機能し続けています。
|
| 30 |
+
|
| 31 |
+
## 私たちのビジョン
|
| 32 |
+
|
| 33 |
+
1. 私たちは、ユーザーにできるだけ多くの実用性とLLMプロンプトの制御権限を与えることを目指しています。急な学習曲線も楽しみの一部です!
|
| 34 |
+
2. 私たちはオンラインサービスやホストされたサービスを提供せず、プログラム的にユーザーデータを追跡することもありません。
|
| 35 |
+
3. SillyTavernは、熱心なLLM愛好家のコミュニティによってもたらされた情熱的なプロジェクトであり、常に無料でオープンソースです。
|
| 36 |
+
|
| 37 |
+
## SillyTavernを実行するには強力なPCが必要ですか?
|
| 38 |
+
|
| 39 |
+
ハードウェア要件は最小限です。NodeJS 18以上を実行できるものであれば何でも動作します。ローカルマシンでLLM推論を行う場合は、少なくとも6GBのVRAMを搭載した3000シリーズのNVIDIAグラフィックスカードを推奨しますが、実際の要件は使用するモデルやバックエンドによって異なる場合があります。
|
| 40 |
+
|
| 41 |
+
## 質問や提案はありますか?
|
| 42 |
+
|
| 43 |
+
### Discordサーバー
|
| 44 |
+
|
| 45 |
+
| [![][discord-shield-badge]][discord-link] | [私たちのDiscordコミュニティに参加してください!](https://discord.gg/sillytavern) サポートを受けたり、お気に入りのキャラクターやプロンプトを共有したりできます。 |
|
| 46 |
+
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
|
| 47 |
+
|
| 48 |
+
または、開発者に直接連絡してください:
|
| 49 |
+
|
| 50 |
+
* Discord: cohee, rossascends, wolfsblvt
|
| 51 |
+
* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 52 |
+
* [GitHub issueを投稿](https://github.com/SillyTavern/SillyTavern/issues)
|
| 53 |
+
|
| 54 |
+
### このプロジェクトが気に入りました!どうすれば貢献できますか?
|
| 55 |
+
|
| 56 |
+
1. プルリクエストを送ってください。貢献する方法については、[CONTRIBUTING.md](../CONTRIBUTING.md)をご覧ください。
|
| 57 |
+
2. 提供されたテンプレートを使用して、機能の提案や問題の報告を送ってください。
|
| 58 |
+
3. 重複した問題を避けるために、まずこのreadmeファイル全体とドキュメントウェブサイトを確認してください。
|
| 59 |
+
|
| 60 |
+
## スクリーンショット
|
| 61 |
+
|
| 62 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 63 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 64 |
+
|
| 65 |
+
## インストール
|
| 66 |
+
|
| 67 |
+
詳細なインストール手順については、私たちのドキュメントをご��ください:
|
| 68 |
+
|
| 69 |
+
* **[Windowsインストールガイド](https://docs.sillytavern.app/installation/windows/)**
|
| 70 |
+
* **[MacOS/Linuxインストールガイド](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 71 |
+
* **[Android (Termux)インストールガイド](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 72 |
+
* **[Dockerインストールガイド](https://docs.sillytavern.app/installation/docker/)**
|
| 73 |
+
|
| 74 |
+
## ライセンスとクレジット
|
| 75 |
+
|
| 76 |
+
**このプログラムは有用であることを期待して配布されていますが、いかなる保証もありません。商品性または特定目的への適合性の黙示の保証さえもありません。詳細はGNU Affero General Public Licenseをご覧ください。**
|
| 77 |
+
|
| 78 |
+
* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 by Humi: MITライセンス
|
| 79 |
+
* CncAnonのTavernAITurbo modの一部を許可を得て使用
|
| 80 |
+
* PepperTacoの作品に触発されたビジュアルノベルモード (<https://github.com/peppertaco/Tavern/>)
|
| 81 |
+
* GoogleによるNoto Sansフォント (OFLライセンス)
|
| 82 |
+
* Font Awesomeによるアイコンテーマ <https://fontawesome.com> (アイコン: CC BY 4.0, フォント: SIL OFL 1.1, コード: MITライセンス)
|
| 83 |
+
* @OtisAlejandroによるデフォルトコンテンツ(Seraphinaキャラクターと伝承本)と@kallmefloccによる10K Discordユーザー記念背景
|
| 84 |
+
* [@mrguymiah](https://github.com/mrguymiah)と[@Bronya-Rand](https://github.com/Bronya-Rand)によるDockerガイド
|
| 85 |
+
* [@hexgrad](https://github.com/hexgrad)によるkokoro-jsライブラリ (Apache-2.0ライセンス)
|
| 86 |
+
|
| 87 |
+
## トップコントリビューター
|
| 88 |
+
|
| 89 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 90 |
+
|
| 91 |
+
<!-- LINK GROUP -->
|
| 92 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 93 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 94 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/readme-ko_kr.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> [!IMPORTANT]
|
| 2 |
+
> 이곳에 게재된 정보는 오래되거나 불완전할 수 있습니다. 최신 정보는 영어 버전을 이용하십시오.
|
| 3 |
+
|
| 4 |
+
<a name="readme-top"></a>
|
| 5 |
+
|
| 6 |
+
![][cover]
|
| 7 |
+
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
[English](readme.md) | [German](readme-de_de.md) | [中文](readme-zh_cn.md) | [繁體中文](readme-zh_tw.md) | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md) | 한국어
|
| 11 |
+
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 13 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 14 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 15 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 16 |
+
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
SillyTavern은 많은 LLM API(KoboldAI/CPP, Horde, NovelAI, Ooba, Tabby, OpenAI, OpenRouter, Claude, Mistral 등)에 대한 단일 통합 인터페이스, 모바일 친화적 레이아웃, 비주얼 노벨 모드, Automatic1111 & ComfyUI API 이미지 생성 통합, TTS, 월드 인포 (로어북), 커스텀 가능한 UI, 자동 번역, 필요 이상의 프롬프트 옵션, 그리고 서드파티 확장을 통한 무궁무진한 성장 가능성을 제공합니다.
|
| 22 |
+
|
| 23 |
+
또한, 자주 묻는 질문에 대한 답변과, 시작하는 데 도움을 주기 위한 [문서 웹사이트](https://docs.sillytavern.app/)가 있습니다.
|
| 24 |
+
|
| 25 |
+
## SillyTavern이 무엇인가요?
|
| 26 |
+
|
| 27 |
+
SillyTavern(짧게는 ST)은 텍스트 생성 LLM, 이미지 생성 엔진, TTS 음성 모델 등과 상호작할 수 있는 로컬 설치형 UI 입니다.
|
| 28 |
+
|
| 29 |
+
2023년 2월, TavernAI 1.2.8의 포크로 시작한 SillyTavern은 현재 200명이 넘는 기여자를 보유하고 있으며, 2년간의 독자적인 개발을 거쳐 숙련된 AI 애호가들을 위한 선도적인 소프트웨어로 자리매김하고 있습니다.
|
| 30 |
+
|
| 31 |
+
## 우리의 비전
|
| 32 |
+
|
| 33 |
+
1. 저희는 사용자가 LLM 프롬프트에 대한 최대한의 유용성과 제어 능력을 갖도록 하는 것을 목표로 합니다. 빠르게 배우는 것 역시 재미의 일부입니다!
|
| 34 |
+
2. 저희는 어떠한 온라인 및 호스팅 서브시도 제공하지 않으며, 프로그래밍으로 사용자의 데이터를 추적하지 않습니다.
|
| 35 |
+
3. SillyTavern은 헌신적인 LLM 커뮤니티가 여러분에게 제공하는 열정적인 프로젝트이며, 언제나 무료이며 오픈소스로 제공될 것입니다.
|
| 36 |
+
|
| 37 |
+
## SillyTavern을 위해서 좋은 성능의 PC가 필요한가요?
|
| 38 |
+
|
| 39 |
+
하드웨어 요구 사항은 거의 없습니다: NodeJS 18 이상을 실행할 수 있는 모든 환경에서 작동합니다. 다만 로컬 LLM 모델을 사용할 경우, 최소 6GB VRAM 이상의 3000번대 NVIDIA 그래픽 카드를 권장하지만, 실제 요구 사항은 사용하는 모델과 백엔드에 따라 달라질 수 있습니다.
|
| 40 |
+
|
| 41 |
+
## 질문이나 제안이 있으신가요?
|
| 42 |
+
|
| 43 |
+
### 디스코드 서버
|
| 44 |
+
|
| 45 |
+
| [![][discord-shield-badge]][discord-link] | [저희의 디스코드에 참여하세요!](https://discord.gg/sillytavern) 지원을 받고, 좋아하는 캐릭터와 프롬프트를 공유하세요. |
|
| 46 |
+
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
|
| 47 |
+
|
| 48 |
+
혹은 저희의 개발자들과 직접 연락할 수 있습니다:
|
| 49 |
+
|
| 50 |
+
* 디스코드: cohee, rossascends, wolfsblvt
|
| 51 |
+
* 레딧: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 52 |
+
* [GitHub issue를 작성하세요](https://github.com/SillyTavern/SillyTavern/issues)
|
| 53 |
+
|
| 54 |
+
### 이 프로젝트가 마음에 들어요! 어떻게 기여할 수 있을까요?
|
| 55 |
+
|
| 56 |
+
1. PULL REQUEST를 생성하세요. 기여 방법에 대해서는 [CONTRIBUTING.md](../CONTRIBUTING.md)를 참고하세요.
|
| 57 |
+
2. 제공된 탬플릿에 따라 기능 제안이나 이슈 리포트를 생성하세요.
|
| 58 |
+
3. 중복된 이슈를 생성하지 않도록 이 README 파일 전체를 읽고 문서 웹사이트를 먼저 확인하세요.
|
| 59 |
+
|
| 60 |
+
## 스크린샷
|
| 61 |
+
|
| 62 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 63 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 64 |
+
|
| 65 |
+
## 설치
|
| 66 |
+
|
| 67 |
+
자세한 설치 방법은 저희의 문서를 확인하세요:
|
| 68 |
+
|
| 69 |
+
* **[Windows 설치 가이드](https://docs.sillytavern.app/installation/windows/)**
|
| 70 |
+
* **[MacOS/Linux 설치 가이드](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 71 |
+
* **[Android (Termux) 설치 가이드](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 72 |
+
* **[Docker 설치 가이드](https://docs.sillytavern.app/installation/docker/)**
|
| 73 |
+
|
| 74 |
+
## 라이센스 및 크레딧
|
| 75 |
+
|
| 76 |
+
**이 프로그램��� 유용할 것이라는 희망으로 배포되지만, 어떠한 보증도 제공하지 않습니다. 상품성 또는 특정 목적에의 적합성에 대한 묵시적인 보증조차도 제공하지 않습니다. 자세한 내용은 GNU Affero 일반 공중 사용 허가서를 참조하십시오.**
|
| 77 |
+
|
| 78 |
+
* Humi의 [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8: MIT 라이선스
|
| 79 |
+
* CncAnon의 TavernAITurbo 모드의 일부는 허가를 받아 사용됨
|
| 80 |
+
* PepperTaco의 작업(<https://github.com/peppertaco/Tavern/>)에 영감을 받은 비주얼 노벨 모드
|
| 81 |
+
* Noto Sans Font by Google (OFL 라이선스)
|
| 82 |
+
* Font Awesome의 아이콘 테마 <https://fontawesome.com> (아이콘: CC BY 4.0, 폰트: SIL OFL 1.1, 코드: MIT 라이선스)
|
| 83 |
+
* 기본 콘텐츠는 @OtisAlejandro (Seraphina 캐릭터 및 로어북)와 @kallmeflocc (10K 디스코드 사용자 축전 배경화면)가 제공함
|
| 84 |
+
* [@mrguymiah](https://github.com/mrguymiah)와 [@Bronya-Rand](https://github.com/Bronya-Rand)의 Docker 가이드
|
| 85 |
+
* [@hexgrad](https://github.com/hexgrad)의 kokoro-js 라이브러리 (Apache-2.0 라이선스)
|
| 86 |
+
|
| 87 |
+
## 상위 기여자
|
| 88 |
+
|
| 89 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 90 |
+
|
| 91 |
+
<!-- LINK GROUP -->
|
| 92 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 93 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 94 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/readme-ru_ru.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> [!IMPORTANT]
|
| 2 |
+
> Приведенная здесь информация может быть устаревшей или неполной и предоставляется только для вашего удобства. Пожалуйста, используйте английскую версию для получения наиболее актуальной информации.
|
| 3 |
+
|
| 4 |
+
<a name="readme-top"></a>
|
| 5 |
+
|
| 6 |
+
![][cover]
|
| 7 |
+
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
[English](readme.md) | [German](readme-de_de.md) | [中文](readme-zh_cn.md) | [繁體中文](readme-zh_tw.md) | [日本語](readme-ja_jp.md) | Русский | [한국어](readme-ko_kr.md)
|
| 11 |
+
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 13 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 14 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 15 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 16 |
+
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
SillyTavern предоставляет единый интерфейс для многих LLM API (KoboldAI/CPP, Horde, NovelAI, Ooba, Tabby, OpenAI, OpenRouter, Claude, Mistral и других), мобайл-френдли макет, режим визуальной новеллы, интеграцию с генерацией изображений через API Automatic1111 и ComfyUI, TTS, WorldInfo (лорбуки), кастомизируемый UI, автоперевод, тончайшую настройку промптов, и возможность устанавливать расширения.
|
| 22 |
+
|
| 23 |
+
Чтобы помочь вам быстрее разобраться в SillyTavern, мы создали [сайт с документацией](https://docs.sillytavern.app/). Ответы на большинство вопросов можно найти там.
|
| 24 |
+
|
| 25 |
+
## Что такое SillyTavern?
|
| 26 |
+
|
| 27 |
+
SillyTavern (или сокращенно ST) - это локально устанавливаемый пользовательский интерфейс, который позволяет вам взаимодействовать с LLM для генерации текста, движками для генерации изображений и моделями голоса TTS.
|
| 28 |
+
|
| 29 |
+
Начавшись в феврале 2023 года как форк TavernAI 1.2.8, SillyTavern теперь насчитывает более 200 контрибьюторов и 2 года независимой разработки, и продолжает служить ведущим программным обеспечением для опытных энтузиастов ИИ.
|
| 30 |
+
|
| 31 |
+
## Наше видение
|
| 32 |
+
|
| 33 |
+
1. Мы стремимся предоставить пользователям как можно больше полезности и контроля над их промптами LLM. Крутая кривая обучения - это часть веселья!
|
| 34 |
+
2. Мы не предоставляем никаких онлайн или хостинговых услуг, а также программно не отслеживаем данные пользователей.
|
| 35 |
+
3. SillyTavern - это проект, созданный преданным сообществом энтузиастов LLM, и он всегда будет бесплатным и с открытым исходным кодом.
|
| 36 |
+
|
| 37 |
+
## Нужен ли мне мощный компьютер для запуска SillyTavern?
|
| 38 |
+
|
| 39 |
+
Требования к оборудованию минимальны: он будет работать на всем, что может запустить NodeJS 18 или выше. Если вы собираетесь выполнять инференс LLM на своем локальном компьютере, мы рекомендуем видеокарту NVIDIA 3000-й серии с не менее чем 6 ГБ видеопамяти, но фактические требования могут варьироваться в зависимости от модели и используемого вами бэкенда.
|
| 40 |
+
|
| 41 |
+
## Вопросы или предложения?
|
| 42 |
+
|
| 43 |
+
### Сервер в Discord
|
| 44 |
+
|
| 45 |
+
| [![][discord-shield-badge]][discord-link] | [Вступайте в наше Discord-сообщество!](https://discord.gg/sillytavern) Получайте поддержку, делитесь любимыми персонажами и промптами. |
|
| 46 |
+
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- |
|
| 47 |
+
|
| 48 |
+
Или свяжитесь с разработчиками напрямую:
|
| 49 |
+
|
| 50 |
+
* Discord: cohee, rossascends, wolfsblvt
|
| 51 |
+
* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 52 |
+
* [Опубликовать issue на GitHub](https://github.com/SillyTavern/SillyTavern/issues)
|
| 53 |
+
|
| 54 |
+
### Мне нравится ваш проект! Как я могу внести свой вклад?
|
| 55 |
+
|
| 56 |
+
1. Отправляйте пулл-реквесты. Узнайте, как внести свой вклад: [CONTRIBUTING.md](../CONTRIBUTING.md)
|
| 57 |
+
2. Отправляйте предложения по функциям и отчеты о проблемах, используя предоставленные шаблоны.
|
| 58 |
+
3. Прочтите весь этот файл readme и сайт документации, чтобы избежать отправки дублирующихся проблем.
|
| 59 |
+
|
| 60 |
+
## Скриншоты
|
| 61 |
+
|
| 62 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 63 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 64 |
+
|
| 65 |
+
## Установка
|
| 66 |
+
|
| 67 |
+
Для получения подробных инструкций по установке, пожалуйста, посетите нашу документацию:
|
| 68 |
+
|
| 69 |
+
* **[Руководство по установке для Windows](https://docs.sillytavern.app/installation/windows/)**
|
| 70 |
+
* **[Руководство по установке для MacOS/Linux](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 71 |
+
* **[Руководство по установке для Android (Termux)](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 72 |
+
* **[Руководство по установке Docker](https://docs.sillytavern.app/installation/docker/)**
|
| 73 |
+
|
| 74 |
+
## Лицензия и благодарности
|
| 75 |
+
|
| 76 |
+
**Эта программа распространяется в надежде, что она будет полезна, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ; даже без подразумеваемой гарантии ТОВАРНОЙ ПРИГОДНОСТИ или ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЕННОЙ ЦЕЛИ. Смотрите GNU Affero General Public License для получения более подробной информации.**
|
| 77 |
+
|
| 78 |
+
* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 от Humi: лицензия MIT
|
| 79 |
+
* Части мода CncAnon TavernAITurbo используются с разрешения
|
| 80 |
+
* Режим визуальной новеллы вдохновлен работой PepperTaco (<https://github.com/peppertaco/Tavern/>)
|
| 81 |
+
* Шрифт Noto Sans от Google (лицензия OFL)
|
| 82 |
+
* Тема иконок от Font Awesome <https://fontawesome.com> (Иконки: CC BY 4.0, Шрифты: SIL OFL 1.1, Код: лицензия MIT)
|
| 83 |
+
* Стандартный контент от @OtisAlejandro (персонаж Seraphina и лорбук) и @kallmeflocc (фон в честь 10 тысяч пользователей Discord)
|
| 84 |
+
* Руководство по Docker от [@mrguymiah](https://github.com/mrguymiah) и [@Bronya-Rand](https://github.com/Bronya-Rand)
|
| 85 |
+
* Библиотека kokoro-js от [@hexgrad](https://github.com/hexgrad) (лицензия Apache-2.0)
|
| 86 |
+
|
| 87 |
+
## Ведущие контрибьюторы
|
| 88 |
+
|
| 89 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 90 |
+
|
| 91 |
+
<!-- LINK GROUP -->
|
| 92 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 93 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 94 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/readme-zh_cn.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> [!IMPORTANT]
|
| 2 |
+
> 这里的信息可能已经过时或不完整,仅供您参考。请使用英文版本获取最新信息。
|
| 3 |
+
|
| 4 |
+
<a name="readme-top"></a>
|
| 5 |
+
|
| 6 |
+
![][cover]
|
| 7 |
+
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
[English](readme.md) | [German](readme-de_de.md) | 中文 | [繁體中文](readme-zh_tw.md) | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md) | [한국어](readme-ko_kr.md)
|
| 11 |
+
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 13 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 14 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 15 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 16 |
+
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
SillyTavern 为众多 LLM API(KoboldAI/CPP、Horde、NovelAI、Ooba、Tabby、OpenAI、OpenRouter、Claude、Mistral 等)提供统一界面,拥有移动设备友好的布局、视觉小说模式、Automatic1111 & ComfyUI API 图像生成集成、TTS、世界书(lorebooks)、可自定义的 UI、自动翻译、超乎您想象的丰富 Prompt 选项,以及通过第三方扩展实现的无限增长潜力。
|
| 22 |
+
|
| 23 |
+
我们有一个[文档网站](https://docs.sillytavern.app/)来回答您的大部分问题并帮助您入门。
|
| 24 |
+
|
| 25 |
+
## SillyTavern 是什么?
|
| 26 |
+
|
| 27 |
+
SillyTavern(简称 ST)是一个本地安装的用户界面,允许您与文本生成 LLM、图像生成引擎和 TTS 语音模型进行交互。
|
| 28 |
+
|
| 29 |
+
SillyTavern 于 2023 年 2 月作为 TavernAI 1.2.8 的一个分支开始,如今已拥有超过 200 名贡献者和 2 年的独立开发经验,并继续作为资深 AI 爱好者领先的软件。
|
| 30 |
+
|
| 31 |
+
## 我们的愿景
|
| 32 |
+
|
| 33 |
+
1. 我们的目标是尽可能为用户提供 LLM Prompt 的最大效用和控制权。陡峭的学习曲线是乐趣的一部分!
|
| 34 |
+
2. 我们不提供任何在线或托管服务,也不会以编程方式跟踪任何用户数据。
|
| 35 |
+
3. SillyTavern 是一个由专注的 LLM 爱好者社区为您带来的充满激情的项目,并且将永远是免费和开源的。
|
| 36 |
+
|
| 37 |
+
## 我需要一台性能强大的电脑来运行 SillyTavern 吗?
|
| 38 |
+
|
| 39 |
+
硬件要求很低:任何可以运行 NodeJS 18 或更高版本的设备都可以运行它。如果您打算在本地计算机上进行 LLM 推理,我们建议使用至少具有 6GB VRAM 的 3000 系列 NVIDIA 显卡,但实际要求可能会根据模型和您使用的后端而有所不同。
|
| 40 |
+
|
| 41 |
+
## 有问题或建议?
|
| 42 |
+
|
| 43 |
+
### Discord 服务器
|
| 44 |
+
|
| 45 |
+
| [![][discord-shield-badge]][discord-link] | [加入我们的 Discord 社区!](https://discord.gg/sillytavern) 获取支持,分享喜爱的角色和 Prompt。 |
|
| 46 |
+
| :---------------------------------------- | :---------------------------------------------------------------------------------------------- |
|
| 47 |
+
|
| 48 |
+
或者直接与开发人员联系:
|
| 49 |
+
|
| 50 |
+
* Discord: cohee, rossascends, wolfsblvt
|
| 51 |
+
* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 52 |
+
* [提交 GitHub 问题](https://github.com/SillyTavern/SillyTavern/issues)
|
| 53 |
+
|
| 54 |
+
### 我喜欢你的项目!我该如何贡献自己的力量?
|
| 55 |
+
|
| 56 |
+
1. 发送 Pull Request。学习如何贡献:[CONTRIBUTING.md](../CONTRIBUTING.md)
|
| 57 |
+
2. 使用提供的模板发送功能建议和问题报告。
|
| 58 |
+
3. 请先阅读整个 readme 文件并查看文档网站,以避免提交重复的问题。
|
| 59 |
+
|
| 60 |
+
## 屏幕截图
|
| 61 |
+
|
| 62 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 63 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 64 |
+
|
| 65 |
+
## 安装
|
| 66 |
+
|
| 67 |
+
有关详细的安装说明,请访问我们的文档:
|
| 68 |
+
|
| 69 |
+
* **[Windows 安装指南](https://docs.sillytavern.app/installation/windows/)**
|
| 70 |
+
* **[MacOS/Linux 安装指南](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 71 |
+
* **[Android (Termux) 安装指南](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 72 |
+
* **[Docker 安装指南](https://docs.sillytavern.app/installation/docker/)**
|
| 73 |
+
|
| 74 |
+
## 许可证和致谢
|
| 75 |
+
|
| 76 |
+
**本程序的分发是希望它能有用,但不提供任何保证;甚至没有对适销性或特定用途适用性的默示保证。有关更多详细信息,请参阅 GNU Affero 通用公共许可证。**
|
| 77 |
+
|
| 78 |
+
* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 by Humi: MIT 许可证
|
| 79 |
+
* CncAnon 的 TavernAITurbo mod 的部分内容经许可使用
|
| 80 |
+
* 视觉小说模式的灵感来自 PepperTaco 的工作 (<https://github.com/peppertaco/Tavern/>)
|
| 81 |
+
* Noto Sans 字体 by Google (OFL 许可证)
|
| 82 |
+
* 图标主题 by Font Awesome <https://fontawesome.com> (图标: CC BY 4.0, 字体: SIL OFL 1.1, 代码: MIT 许可证)
|
| 83 |
+
* 默认内容由 @OtisAlejandro (Seraphina 角色和世界书) 和 @kallmeflocc (10K Discord 用户庆祝背景) 提供
|
| 84 |
+
* Docker 指南由 [@mrguymiah](https://github.com/mrguymiah) 和 [@Bronya-Rand](https://github.com/Bronya-Rand) 提供
|
| 85 |
+
* kokoro-js 库由 [@hexgrad](https://github.com/hexgrad) 提供 (Apache-2.0 许可证)
|
| 86 |
+
|
| 87 |
+
## 主要贡献者
|
| 88 |
+
|
| 89 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 90 |
+
|
| 91 |
+
<!-- LINK GROUP -->
|
| 92 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 93 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 94 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/readme-zh_tw.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> [!IMPORTANT]
|
| 2 |
+
> 此處資訊可能已經過時或不完整,僅供您參考。請使用英文版本以取得最新資訊。
|
| 3 |
+
|
| 4 |
+
<a name="readme-top"></a>
|
| 5 |
+
|
| 6 |
+
![][cover]
|
| 7 |
+
|
| 8 |
+
<div align="center">
|
| 9 |
+
|
| 10 |
+
[English](readme.md) | [German](readme-de_de.md) | [中文](readme-zh_cn.md) | 繁體中文 | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md) | [한국어](readme-ko_kr.md)
|
| 11 |
+
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 13 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 14 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 15 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 16 |
+
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
SillyTavern 提供一個統一的前端介面,整合多種大型語言模型的 API(包括:KoboldAI/CPP、Horde、NovelAI、Ooba、Tabby、OpenAI、OpenRouter、Claude、Mistral 等)。同時具備對行動裝置友善的佈局、視覺小說模式(Visual Novel Mode)、Automatic1111 與 ComfyUI 的影像生成 API 整合、TTS(語音合成)、世界資訊(Lorebook)、可自訂 UI、自動翻譯功能,以及強大的提示詞(prompt)設定選項和無限的第三方擴充潛力。
|
| 22 |
+
|
| 23 |
+
我們擁有一個 [官方文件網站](https://docs.sillytavern.app/) 可以幫助解答絕大多數的使用問題,並幫助您順利入門。
|
| 24 |
+
|
| 25 |
+
## SillyTavern 是什麼?
|
| 26 |
+
|
| 27 |
+
SillyTavern(簡稱 ST)是一款本地安裝的使用者介面,讓您能與大型語言模型(LLM)、影像生成引擎以及語音合成模型互動的前端。
|
| 28 |
+
|
| 29 |
+
SillyTavern 起源於 2023 年 2 月,作為 TavernAI 1.2.8 的分支版本發展至今。目前已有超過 200 位貢獻者,並擁有超過兩年的獨立開發歷史。如今,它已成為 AI 愛好者中備受推崇的軟體之一。
|
| 30 |
+
|
| 31 |
+
## 我們的願景
|
| 32 |
+
|
| 33 |
+
1. 我們致力於賦予使用者對 LLM 提示詞的最大控制權與實用性,並認為學習過程中的挑戰是樂趣的一部分。
|
| 34 |
+
2. 我們不提供任何線上或託管服務,也不會程式化追蹤任何使用者數據。
|
| 35 |
+
3. SillyTavern 是由一群熱衷於 LLM 的開發者社群所打造的專案,並將永遠保持免費與開源。
|
| 36 |
+
|
| 37 |
+
## 我需要高效能電腦才能運行 SillyTavern 嗎?
|
| 38 |
+
|
| 39 |
+
SillyTavern 的硬體需求相當低。任何能夠運行 NodeJS 18 或更高版本的設備都可以執行。若您打算在本地機器上進行 LLM 推理,我們建議使用擁有至少 6GB VRAM 的 3000 系列 NVIDIA 顯示卡,但實際需求可能因模型和您使用的後端而異。
|
| 40 |
+
|
| 41 |
+
## 有任何問題或建議?
|
| 42 |
+
|
| 43 |
+
### 歡迎加入我們的 Discord 伺服器
|
| 44 |
+
|
| 45 |
+
| [![][discord-shield-badge]][discord-link] | [加入我們的 Disocrd 伺服器](https://discord.gg/sillytavern) 以獲得技術支援、分享您喜愛的角色與提示詞。 |
|
| 46 |
+
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
|
| 47 |
+
|
| 48 |
+
或直接聯繫開發者:
|
| 49 |
+
|
| 50 |
+
* Discord: cohee, rossascends, wolfsblvt
|
| 51 |
+
* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 52 |
+
* [提交 GitHub 問題](https://github.com/SillyTavern/SillyTavern/issues)
|
| 53 |
+
|
| 54 |
+
### 我喜歡這個專案,我該如何貢獻呢?
|
| 55 |
+
|
| 56 |
+
1. **提交拉取要求(Pull Request)**:想了解如何貢獻,請參閱 [CONTRIBUTING.md](../CONTRIBUTING.md)。
|
| 57 |
+
2. **提供功能建議與問題報告**:使用本專案所提供的模板提交建議或問題報告。
|
| 58 |
+
3. **仔細閱讀此 README 文件及相關文檔**:請避免提出重複問題或建議。
|
| 59 |
+
|
| 60 |
+
## 螢幕截圖
|
| 61 |
+
|
| 62 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 63 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 64 |
+
|
| 65 |
+
## 安裝指南
|
| 66 |
+
|
| 67 |
+
有關詳細的安裝說明,請訪問我們的文檔:
|
| 68 |
+
|
| 69 |
+
* **[Windows 安裝指南](https://docs.sillytavern.app/installation/windows/)**
|
| 70 |
+
* **[MacOS/Linux 安裝指南](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 71 |
+
* **[Android (Termux) 安裝指南](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 72 |
+
* **[Docker 安裝指南](https://docs.sillytavern.app/installation/docker/)**
|
| 73 |
+
|
| 74 |
+
## 授權與致謝
|
| 75 |
+
|
| 76 |
+
**本程式(SillyTavern)的發布是基於其可能對使用者有所幫助的期許,但不提供任何形式的保證;包括但不限於對可銷售性(marketability)或特定用途適用性的隱含保證。如需更多詳情,請參閱 GNU Affero 通用公共許可證。**
|
| 77 |
+
|
| 78 |
+
* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 由 Humi 提供:MIT 許可
|
| 79 |
+
* 經授權使用部分來自 CncAnon ��� TavernAITurbo 模組
|
| 80 |
+
* 視覺小說模式(Visual Novel Mode)的靈感,來源於 PepperTaco 的貢獻(<https://github.com/peppertaco/Tavern/>)
|
| 81 |
+
* Noto Sans 字體由 Google 提供(OFL 許可)
|
| 82 |
+
* 主題圖示由 Font Awesome <https://fontawesome.com> 提供(圖示:CC BY 4.0,字體:SIL OFL 1.1,程式碼:MIT 許可)
|
| 83 |
+
* 預設資源來源於 @OtisAlejandro(包含角色 Seraphina 與知識書)與 @kallmeflocc(SillyTavern 官方 Discord 伺服器成員突破 10K 的慶祝背景)
|
| 84 |
+
* Docker 安裝指南由 [@mrguymiah](https://github.com/mrguymiah) 和 [@Bronya-Rand](https://github.com/Bronya-Rand) 編寫
|
| 85 |
+
* kokoro-js 函式庫由 [@hexgrad](https://github.com/hexgrad) 提供 (Apache-2.0 許可)
|
| 86 |
+
|
| 87 |
+
## 主要貢獻者
|
| 88 |
+
|
| 89 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 90 |
+
|
| 91 |
+
<!-- LINK GROUP -->
|
| 92 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 93 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 94 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/readme.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<a name="readme-top"></a>
|
| 2 |
+
|
| 3 |
+
![][cover]
|
| 4 |
+
|
| 5 |
+
<div align="center">
|
| 6 |
+
|
| 7 |
+
English | [German](readme-de_de.md) | [中文](readme-zh_cn.md) | [繁體中文](readme-zh_tw.md) | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md) | [한국어](readme-ko_kr.md)
|
| 8 |
+
|
| 9 |
+
[](https://github.com/SillyTavern/SillyTavern/stargazers)
|
| 10 |
+
[](https://github.com/SillyTavern/SillyTavern/forks)
|
| 11 |
+
[](https://github.com/SillyTavern/SillyTavern/issues)
|
| 12 |
+
[](https://github.com/SillyTavern/SillyTavern/pulls)
|
| 13 |
+
|
| 14 |
+
</div>
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
SillyTavern provides a single unified interface for many LLM APIs (KoboldAI/CPP, Horde, NovelAI, Ooba, Tabby, OpenAI, OpenRouter, Claude, Mistral and more), a mobile-friendly layout, Visual Novel Mode, Automatic1111 & ComfyUI API image generation integration, TTS, WorldInfo (lorebooks), customizable UI, auto-translate, more prompt options than you'd ever want or need, and endless growth potential via third-party extensions.
|
| 19 |
+
|
| 20 |
+
We have a [Documentation website](https://docs.sillytavern.app/) to answer most of your questions and help you get started.
|
| 21 |
+
|
| 22 |
+
## What is SillyTavern?
|
| 23 |
+
|
| 24 |
+
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.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Our Vision
|
| 29 |
+
|
| 30 |
+
1. We aim to empower users with as much utility and control over their LLM prompts as possible. The steep learning curve is part of the fun!
|
| 31 |
+
2. We do not provide any online or hosted services, nor programmatically track any user data.
|
| 32 |
+
3. SillyTavern is a passion project brought to you by a dedicated community of LLM enthusiasts, and will always be free and open sourced.
|
| 33 |
+
|
| 34 |
+
## Do I need a powerful PC to run SillyTavern?
|
| 35 |
+
|
| 36 |
+
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.
|
| 37 |
+
|
| 38 |
+
## Questions or suggestions?
|
| 39 |
+
|
| 40 |
+
### Discord server
|
| 41 |
+
|
| 42 |
+
| [![][discord-shield-badge]][discord-link] | [Join our Discord community!](https://discord.gg/sillytavern) Get support, share favorite characters and prompts. |
|
| 43 |
+
| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
|
| 44 |
+
|
| 45 |
+
Or get in touch with the developers directly:
|
| 46 |
+
|
| 47 |
+
* Discord: cohee, rossascends, wolfsblvt
|
| 48 |
+
* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/), [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
|
| 49 |
+
* [Post a GitHub issue](https://github.com/SillyTavern/SillyTavern/issues)
|
| 50 |
+
|
| 51 |
+
### I like your project! How do I contribute?
|
| 52 |
+
|
| 53 |
+
1. Send pull requests. Learn how to contribute: [CONTRIBUTING.md](../CONTRIBUTING.md)
|
| 54 |
+
2. Send feature suggestions and issue reports using the provided templates.
|
| 55 |
+
3. Read this entire readme file and check the documentation website first, to avoid sending duplicate issues.
|
| 56 |
+
|
| 57 |
+
## Screenshots
|
| 58 |
+
|
| 59 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
|
| 60 |
+
<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
|
| 61 |
+
|
| 62 |
+
## Installation
|
| 63 |
+
|
| 64 |
+
For detailed installation instructions, please visit our documentation:
|
| 65 |
+
|
| 66 |
+
* **[Windows Installation Guide](https://docs.sillytavern.app/installation/windows/)**
|
| 67 |
+
* **[MacOS/Linux Installation Guide](https://docs.sillytavern.app/installation/linuxmacos/)**
|
| 68 |
+
* **[Android (Termux) Installation Guide](https://docs.sillytavern.app/installation/android-(termux)/)**
|
| 69 |
+
* **[Docker Installation Guide](https://docs.sillytavern.app/installation/docker/)**
|
| 70 |
+
|
| 71 |
+
## License and credits
|
| 72 |
+
|
| 73 |
+
**This program is distributed in the hope that it will be useful,
|
| 74 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 75 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 76 |
+
GNU Affero General Public License for more details.**
|
| 77 |
+
|
| 78 |
+
* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 by Humi: MIT License
|
| 79 |
+
* Portions of CncAnon's TavernAITurbo mod used with permission
|
| 80 |
+
* Visual Novel Mode inspired by the work of PepperTaco (<https://github.com/peppertaco/Tavern/>)
|
| 81 |
+
* Noto Sans font by Google (OFL license)
|
| 82 |
+
* Lexer/Parser by Chevrotain (Apache-2.0 license) <https://github.com/chevrotain/chevrotain>
|
| 83 |
+
* Icon theme by Font Awesome <https://fontawesome.com> (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
| 84 |
+
* Default content by @OtisAlejandro (Seraphina character and lorebook) and @kallmeflocc (10K Discord Users Celebratory Background)
|
| 85 |
+
* Docker guide by [@mrguymiah](https://github.com/mrguymiah) and [@Bronya-Rand](https://github.com/Bronya-Rand)
|
| 86 |
+
* kokoro-js library by [@hexgrad](https://github.com/hexgrad) (Apache-2.0 License)
|
| 87 |
+
|
| 88 |
+
## Top Contributors
|
| 89 |
+
|
| 90 |
+
[](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
|
| 91 |
+
|
| 92 |
+
<!-- LINK GROUP -->
|
| 93 |
+
[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
|
| 94 |
+
[discord-link]: https://discord.gg/sillytavern
|
| 95 |
+
[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
.github/workflows/docker-publish.yml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This workflow will publish a docker image for every full release to the GitHub package repository
|
| 2 |
+
|
| 3 |
+
name: Create Docker Image (Release and Staging)
|
| 4 |
+
|
| 5 |
+
on:
|
| 6 |
+
release:
|
| 7 |
+
# Allow pre-releases
|
| 8 |
+
types: [published]
|
| 9 |
+
schedule:
|
| 10 |
+
# Build the staging image everyday at 00:00 UTC
|
| 11 |
+
- cron: "0 0 * * *"
|
| 12 |
+
push:
|
| 13 |
+
# Temporary workaround
|
| 14 |
+
branches:
|
| 15 |
+
- release
|
| 16 |
+
|
| 17 |
+
env:
|
| 18 |
+
# This should allow creation of docker images even in forked repositories
|
| 19 |
+
REPO: ${{ github.repository }}
|
| 20 |
+
REGISTRY: ghcr.io
|
| 21 |
+
|
| 22 |
+
jobs:
|
| 23 |
+
build:
|
| 24 |
+
if: github.repository == 'SillyTavern/SillyTavern'
|
| 25 |
+
runs-on: ubuntu-latest
|
| 26 |
+
|
| 27 |
+
steps:
|
| 28 |
+
# Workaround for GitHub repo names containing uppercase characters
|
| 29 |
+
- name: Set lowercase repo name
|
| 30 |
+
run: |
|
| 31 |
+
echo "IMAGE_NAME=${REPO,,}" >> ${GITHUB_ENV}
|
| 32 |
+
|
| 33 |
+
# Using the following workaround because currently GitHub Actions
|
| 34 |
+
# does not support logical AND/OR operations on triggers
|
| 35 |
+
# It's currently not possible to have `branches` under the `schedule` trigger
|
| 36 |
+
- name: Checkout the release branch (on release)
|
| 37 |
+
if: ${{ github.event_name == 'release' || github.event_name == 'push' }}
|
| 38 |
+
uses: actions/checkout@v4.1.2
|
| 39 |
+
with:
|
| 40 |
+
ref: "release"
|
| 41 |
+
|
| 42 |
+
- name: Checkout the staging branch
|
| 43 |
+
if: ${{ github.event_name == 'schedule' }}
|
| 44 |
+
uses: actions/checkout@v4.1.2
|
| 45 |
+
with:
|
| 46 |
+
ref: "staging"
|
| 47 |
+
|
| 48 |
+
# Get current branch name
|
| 49 |
+
# This is also part of the workaround for Actions not allowing logical
|
| 50 |
+
# AND/OR operators on triggers
|
| 51 |
+
# Otherwise the action triggered by schedule always has ref_name = release
|
| 52 |
+
- name: Get the current branch name
|
| 53 |
+
run: |
|
| 54 |
+
echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> ${GITHUB_ENV}
|
| 55 |
+
|
| 56 |
+
# Setting up QEMU for multi-arch image build
|
| 57 |
+
- name: Set up QEMU
|
| 58 |
+
uses: docker/setup-qemu-action@v3
|
| 59 |
+
|
| 60 |
+
- name: Set up Docker Buildx
|
| 61 |
+
uses: docker/setup-buildx-action@v3
|
| 62 |
+
|
| 63 |
+
- name: Extract metadata (tags, labels) for the image
|
| 64 |
+
uses: docker/metadata-action@v5.5.1
|
| 65 |
+
id: metadata
|
| 66 |
+
with:
|
| 67 |
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
| 68 |
+
# Release version tag if the workflow is triggered by a release
|
| 69 |
+
# Branch name tag if the workflow is triggered by a push
|
| 70 |
+
# Latest tag if the branch is release and the workflow is triggered by a push
|
| 71 |
+
tags: |
|
| 72 |
+
${{ github.event_name == 'release' && github.ref_name || env.BRANCH_NAME }}
|
| 73 |
+
${{ github.event_name == 'push' && env.BRANCH_NAME == 'release' && 'latest' || '' }}
|
| 74 |
+
|
| 75 |
+
# Login into package repository as the person who created the release
|
| 76 |
+
- name: Log in to the Container registry
|
| 77 |
+
uses: docker/login-action@v3
|
| 78 |
+
with:
|
| 79 |
+
registry: ${{ env.REGISTRY }}
|
| 80 |
+
username: ${{ github.actor }}
|
| 81 |
+
password: ${{ secrets.GITHUB_TOKEN }}
|
| 82 |
+
|
| 83 |
+
# Build docker image using dockerfile for amd64 and arm64
|
| 84 |
+
# Tag it with branch name
|
| 85 |
+
# Assumes branch name is the version number
|
| 86 |
+
- name: Build and push
|
| 87 |
+
uses: docker/build-push-action@v5.3.0
|
| 88 |
+
with:
|
| 89 |
+
context: .
|
| 90 |
+
platforms: linux/amd64,linux/arm64
|
| 91 |
+
file: Dockerfile
|
| 92 |
+
push: true
|
| 93 |
+
tags: ${{ steps.metadata.outputs.tags }}
|
| 94 |
+
labels: ${{ steps.metadata.outputs.labels }}
|
.github/workflows/issues-auto-manager.yml
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: 🛠️ Issues Manager
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
issues:
|
| 5 |
+
types: [opened, edited, labeled, unlabeled]
|
| 6 |
+
# Re also listen to comments, to remove stale labels right away
|
| 7 |
+
issue_comment:
|
| 8 |
+
types: [created]
|
| 9 |
+
|
| 10 |
+
permissions:
|
| 11 |
+
contents: read
|
| 12 |
+
issues: write
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
label-on-content:
|
| 16 |
+
name: 🏷️ Label Issues by Content
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
if: always()
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- name: Mint App Token
|
| 22 |
+
id: app
|
| 23 |
+
# Create a GitHub App token
|
| 24 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 25 |
+
uses: actions/create-github-app-token@v2
|
| 26 |
+
with:
|
| 27 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 28 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 29 |
+
owner: ${{ github.repository_owner }}
|
| 30 |
+
|
| 31 |
+
- name: Checkout Repository
|
| 32 |
+
# Checkout
|
| 33 |
+
# https://github.com/marketplace/actions/checkout
|
| 34 |
+
uses: actions/checkout@v4.2.2
|
| 35 |
+
|
| 36 |
+
- name: Auto-Label Issues (Based on Issue Content)
|
| 37 |
+
# only auto label based on issue content once, on open (to prevent re-labeling removed labels)
|
| 38 |
+
if: github.event.action == 'opened'
|
| 39 |
+
|
| 40 |
+
# Issue Labeler
|
| 41 |
+
# https://github.com/marketplace/actions/regex-issue-labeler
|
| 42 |
+
uses: github/issue-labeler@v3.4
|
| 43 |
+
with:
|
| 44 |
+
configuration-path: .github/issues-auto-labels.yml
|
| 45 |
+
enable-versioned-regex: 0
|
| 46 |
+
repo-token: ${{ steps.app.outputs.token }}
|
| 47 |
+
|
| 48 |
+
label-on-labels:
|
| 49 |
+
name: 🏷️ Label Issues by Labels
|
| 50 |
+
needs: [label-on-content]
|
| 51 |
+
runs-on: ubuntu-latest
|
| 52 |
+
if: always()
|
| 53 |
+
|
| 54 |
+
steps:
|
| 55 |
+
- name: Mint App Token
|
| 56 |
+
id: app
|
| 57 |
+
# Create a GitHub App token
|
| 58 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 59 |
+
uses: actions/create-github-app-token@v2
|
| 60 |
+
with:
|
| 61 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 62 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 63 |
+
owner: ${{ github.repository_owner }}
|
| 64 |
+
|
| 65 |
+
- name: ✅ Add "👍 Approved" for relevant labels
|
| 66 |
+
if: contains(fromJSON('["👩💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name)
|
| 67 |
+
# 🤖 Issues Helper
|
| 68 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 69 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 70 |
+
with:
|
| 71 |
+
actions: 'add-labels'
|
| 72 |
+
token: ${{ steps.app.outputs.token }}
|
| 73 |
+
labels: '👍 Approved'
|
| 74 |
+
|
| 75 |
+
- name: ❌ Remove progress labels when issue is marked done or stale
|
| 76 |
+
if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
|
| 77 |
+
# 🤖 Issues Helper
|
| 78 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 79 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 80 |
+
with:
|
| 81 |
+
actions: 'remove-labels'
|
| 82 |
+
token: ${{ steps.app.outputs.token }}
|
| 83 |
+
labels: '🧑💻 In Progress,🤔 Unsure,🤔 Under Consideration'
|
| 84 |
+
|
| 85 |
+
- name: ❌ Remove temporary labels when confirmed labels are added
|
| 86 |
+
if: contains(fromJSON('["❌ wontfix","👍 Approved","👩💻 Good First Issue"]'), github.event.label.name)
|
| 87 |
+
# 🤖 Issues Helper
|
| 88 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 89 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 90 |
+
with:
|
| 91 |
+
actions: 'remove-labels'
|
| 92 |
+
token: ${{ steps.app.outputs.token }}
|
| 93 |
+
labels: '🤔 Unsure,🤔 Under Consideration'
|
| 94 |
+
|
| 95 |
+
- name: ❌ Remove no bug labels when "🪲 Confirmed" is added
|
| 96 |
+
if: github.event.label.name == '🪲 Confirmed'
|
| 97 |
+
# 🤖 Issues Helper
|
| 98 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 99 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 100 |
+
with:
|
| 101 |
+
actions: 'remove-labels'
|
| 102 |
+
token: ${{ steps.app.outputs.token }}
|
| 103 |
+
labels: '✖️ Not Reproducible,✖️ Not A Bug'
|
| 104 |
+
|
| 105 |
+
remove-stale-label:
|
| 106 |
+
name: 🗑️ Remove Stale Label on Comment
|
| 107 |
+
needs: [label-on-content, label-on-labels]
|
| 108 |
+
runs-on: ubuntu-latest
|
| 109 |
+
# Only run this on new comments, to automatically remove the stale label
|
| 110 |
+
if: always() && (github.event_name == 'issue_comment' && github.event.sender.type != 'Bot')
|
| 111 |
+
|
| 112 |
+
steps:
|
| 113 |
+
- name: Mint App Token
|
| 114 |
+
id: app
|
| 115 |
+
# Create a GitHub App token
|
| 116 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 117 |
+
uses: actions/create-github-app-token@v2
|
| 118 |
+
with:
|
| 119 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 120 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 121 |
+
owner: ${{ github.repository_owner }}
|
| 122 |
+
|
| 123 |
+
- name: Remove Stale Label
|
| 124 |
+
# 🤖 Issues Helper
|
| 125 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 126 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 127 |
+
with:
|
| 128 |
+
actions: 'remove-labels'
|
| 129 |
+
token: ${{ steps.app.outputs.token }}
|
| 130 |
+
issue-number: ${{ github.event.issue.number }}
|
| 131 |
+
labels: '⚰️ Stale,🕸️ Inactive,🚏 Awaiting User Response,🛑 No Response'
|
| 132 |
+
|
| 133 |
+
write-auto-comments:
|
| 134 |
+
name: 💬 Post Issue Comments Based on Labels
|
| 135 |
+
needs: [label-on-content, label-on-labels, remove-stale-label]
|
| 136 |
+
runs-on: ubuntu-latest
|
| 137 |
+
if: always()
|
| 138 |
+
|
| 139 |
+
steps:
|
| 140 |
+
- name: Mint App Token
|
| 141 |
+
id: app
|
| 142 |
+
# Create a GitHub App token
|
| 143 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 144 |
+
uses: actions/create-github-app-token@v2
|
| 145 |
+
with:
|
| 146 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 147 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 148 |
+
owner: ${{ github.repository_owner }}
|
| 149 |
+
|
| 150 |
+
- name: Checkout Repository
|
| 151 |
+
# Checkout
|
| 152 |
+
# https://github.com/marketplace/actions/checkout
|
| 153 |
+
uses: actions/checkout@v4.2.2
|
| 154 |
+
|
| 155 |
+
- name: Post Issue Comments Based on Labels
|
| 156 |
+
# Label Commenter
|
| 157 |
+
# https://github.com/marketplace/actions/label-commenter
|
| 158 |
+
uses: peaceiris/actions-label-commenter@v1.10.0
|
| 159 |
+
with:
|
| 160 |
+
config_file: .github/issues-auto-comments.yml
|
| 161 |
+
github_token: ${{ steps.app.outputs.token }}
|
.github/workflows/issues-updates-on-merge.yml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: 🔄 Update Issues on Push
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- staging
|
| 7 |
+
- release
|
| 8 |
+
|
| 9 |
+
permissions:
|
| 10 |
+
contents: read
|
| 11 |
+
issues: write
|
| 12 |
+
|
| 13 |
+
jobs:
|
| 14 |
+
# This runs commits to staging/release, reading the commit messages. Check `pr-auto-manager.yml`:`update-linked-issues` for PR-linked updates.
|
| 15 |
+
update-linked-issues:
|
| 16 |
+
name: 🔗 Mark Linked Issues Done on Push
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
if: always()
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- name: Mint App Token
|
| 22 |
+
id: app
|
| 23 |
+
# Create a GitHub App token
|
| 24 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 25 |
+
uses: actions/create-github-app-token@v2
|
| 26 |
+
with:
|
| 27 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 28 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 29 |
+
owner: ${{ github.repository_owner }}
|
| 30 |
+
|
| 31 |
+
- name: Checkout Repository
|
| 32 |
+
# Checkout
|
| 33 |
+
# https://github.com/marketplace/actions/checkout
|
| 34 |
+
uses: actions/checkout@v4.2.2
|
| 35 |
+
|
| 36 |
+
- name: Extract Linked Issues from Commit Message
|
| 37 |
+
id: extract_issues
|
| 38 |
+
run: |
|
| 39 |
+
ISSUES=$(git log ${{ github.event.before }}..${{ github.event.after }} --pretty=%B | grep -oiE '(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #([0-9]+)' | awk '{print $2}' | tr -d '#' | jq -R -s -c 'split("\n")[:-1]')
|
| 40 |
+
echo "issues=$ISSUES" >> $GITHUB_ENV
|
| 41 |
+
|
| 42 |
+
- name: Label Linked Issues
|
| 43 |
+
id: label_linked_issues
|
| 44 |
+
env:
|
| 45 |
+
GH_TOKEN: ${{ steps.app.outputs.token }}
|
| 46 |
+
run: |
|
| 47 |
+
for ISSUE in $(echo $issues | jq -r '.[]'); do
|
| 48 |
+
if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
| 49 |
+
LABEL="✅ Done (staging)"
|
| 50 |
+
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" --remove-label "🧑💻 In Progress"
|
| 51 |
+
elif [ "${{ github.ref }}" == "refs/heads/release" ]; then
|
| 52 |
+
LABEL="✅ Done"
|
| 53 |
+
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" --remove-label "🧑💻 In Progress"
|
| 54 |
+
fi
|
| 55 |
+
echo "Added label '$LABEL' (and removed '🧑💻 In Progress' if present) in issue #$ISSUE"
|
| 56 |
+
done
|
.github/workflows/job-close-stale.yml
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: 🕒 Close Stale Issues/PRs Workflow
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
# Run the workflow every day
|
| 5 |
+
workflow_dispatch:
|
| 6 |
+
schedule:
|
| 7 |
+
- cron: '0 0 * * *' # Runs every day at midnight UTC
|
| 8 |
+
|
| 9 |
+
permissions:
|
| 10 |
+
contents: read
|
| 11 |
+
issues: write
|
| 12 |
+
pull-requests: write
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
mark-inactivity:
|
| 16 |
+
name: ⏳ Mark Issues/PRs without Activity
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
if: always()
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- name: Mint App Token
|
| 22 |
+
id: app
|
| 23 |
+
# Create a GitHub App token
|
| 24 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 25 |
+
uses: actions/create-github-app-token@v2
|
| 26 |
+
with:
|
| 27 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 28 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 29 |
+
owner: ${{ github.repository_owner }}
|
| 30 |
+
|
| 31 |
+
- name: Mark Issues/PRs without Activity
|
| 32 |
+
# Close Stale Issues and PRs
|
| 33 |
+
# https://github.com/marketplace/actions/close-stale-issues
|
| 34 |
+
uses: actions/stale@v9.1.0
|
| 35 |
+
with:
|
| 36 |
+
repo-token: ${{ steps.app.outputs.token }}
|
| 37 |
+
days-before-stale: 183
|
| 38 |
+
days-before-close: 7
|
| 39 |
+
operations-per-run: 30
|
| 40 |
+
remove-stale-when-updated: true
|
| 41 |
+
enable-statistics: true
|
| 42 |
+
stale-issue-message: >
|
| 43 |
+
⏳ This issue has been inactive for 6 months. If it's still relevant, drop a comment below to keep it open.
|
| 44 |
+
Otherwise, it will be auto-closed in 7 days.
|
| 45 |
+
stale-pr-message: >
|
| 46 |
+
⏳ This PR has been inactive for 6 months. If it's still relevant, update it or remove the stale label.
|
| 47 |
+
Otherwise, it will be auto-closed in 7 days.
|
| 48 |
+
close-issue-message: >
|
| 49 |
+
🔒 This issue was auto-closed due to inactivity for over 6 months.
|
| 50 |
+
close-pr-message: >
|
| 51 |
+
🔒 This PR was auto-closed due to inactivity for over 6 months.
|
| 52 |
+
stale-issue-label: '⚰️ Stale'
|
| 53 |
+
close-issue-label: '🕸️ Inactive'
|
| 54 |
+
stale-pr-label: '⚰️ Stale'
|
| 55 |
+
close-pr-label: '🕸️ Inactive'
|
| 56 |
+
exempt-issue-labels: '📌 Keep Open'
|
| 57 |
+
exempt-pr-labels: '📌 Keep Open'
|
| 58 |
+
|
| 59 |
+
await-user-response:
|
| 60 |
+
name: ⚠️ Mark Issues/PRs Awaiting User Response
|
| 61 |
+
needs: [mark-inactivity]
|
| 62 |
+
runs-on: ubuntu-latest
|
| 63 |
+
if: always()
|
| 64 |
+
|
| 65 |
+
steps:
|
| 66 |
+
- name: Mint App Token
|
| 67 |
+
id: app
|
| 68 |
+
# Create a GitHub App token
|
| 69 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 70 |
+
uses: actions/create-github-app-token@v2
|
| 71 |
+
with:
|
| 72 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 73 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 74 |
+
owner: ${{ github.repository_owner }}
|
| 75 |
+
|
| 76 |
+
- name: Mark Issues/PRs Awaiting User Response
|
| 77 |
+
# Close Stale Issues and PRs
|
| 78 |
+
# https://github.com/marketplace/actions/close-stale-issues
|
| 79 |
+
uses: actions/stale@v9.1.0
|
| 80 |
+
with:
|
| 81 |
+
repo-token: ${{ steps.app.outputs.token }}
|
| 82 |
+
days-before-stale: 7
|
| 83 |
+
days-before-close: 7
|
| 84 |
+
operations-per-run: 30
|
| 85 |
+
remove-stale-when-updated: true
|
| 86 |
+
stale-issue-message: >
|
| 87 |
+
⚠️ Hey! We need some more info to move forward with this issue.
|
| 88 |
+
Please provide the requested details in the next few days to keep this ticket open.
|
| 89 |
+
close-issue-message: >
|
| 90 |
+
🔒 This issue was auto-closed due to no response from user.
|
| 91 |
+
only-labels: '🚏 Awaiting User Response'
|
| 92 |
+
labels-to-remove-when-unstale: '🚏 Awaiting User Response'
|
| 93 |
+
stale-issue-label: '🛑 No Response'
|
| 94 |
+
close-issue-label: '🕸️ Inactive'
|
| 95 |
+
exempt-issue-labels: '🚧 Alternative Exists'
|
| 96 |
+
|
| 97 |
+
alternative-exists:
|
| 98 |
+
name: 🔄 Mark Issues with Alternative Exists
|
| 99 |
+
needs: [mark-inactivity, await-user-response]
|
| 100 |
+
runs-on: ubuntu-latest
|
| 101 |
+
if: always()
|
| 102 |
+
|
| 103 |
+
steps:
|
| 104 |
+
- name: Mint App Token
|
| 105 |
+
id: app
|
| 106 |
+
# Create a GitHub App token
|
| 107 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 108 |
+
uses: actions/create-github-app-token@v2
|
| 109 |
+
with:
|
| 110 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 111 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 112 |
+
owner: ${{ github.repository_owner }}
|
| 113 |
+
|
| 114 |
+
- name: Mark Issues with Alternative Exists
|
| 115 |
+
# Close Stale Issues and PRs
|
| 116 |
+
# https://github.com/marketplace/actions/close-stale-issues
|
| 117 |
+
uses: actions/stale@v9.1.0
|
| 118 |
+
with:
|
| 119 |
+
repo-token: ${{ steps.app.outputs.token }}
|
| 120 |
+
days-before-stale: 7
|
| 121 |
+
days-before-close: 7
|
| 122 |
+
operations-per-run: 30
|
| 123 |
+
remove-stale-when-updated: true
|
| 124 |
+
stale-issue-message: >
|
| 125 |
+
🔄 An alternative solution has been provided for this issue.
|
| 126 |
+
Did this solve your problem? If so, we'll go ahead and close it.
|
| 127 |
+
If you still need help, drop a comment within the next 7 days to keep this open.
|
| 128 |
+
close-issue-message: >
|
| 129 |
+
✅ Closing this issue due to no confirmation on the alternative solution.
|
| 130 |
+
only-labels: '🚧 Alternative Exists'
|
| 131 |
+
stale-issue-label: '🚏 Awaiting User Response'
|
| 132 |
+
close-issue-label: '🕸️ Inactive'
|
| 133 |
+
exempt-issue-labels: '📌 Keep Open'
|
.github/workflows/npm-publish.yml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
| 2 |
+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
| 3 |
+
|
| 4 |
+
name: Node.js Package
|
| 5 |
+
|
| 6 |
+
on:
|
| 7 |
+
release:
|
| 8 |
+
types: [created]
|
| 9 |
+
|
| 10 |
+
jobs:
|
| 11 |
+
build:
|
| 12 |
+
runs-on: ubuntu-latest
|
| 13 |
+
steps:
|
| 14 |
+
- uses: actions/checkout@v3
|
| 15 |
+
- uses: actions/setup-node@v3
|
| 16 |
+
with:
|
| 17 |
+
node-version: 22
|
| 18 |
+
- run: npm ci
|
| 19 |
+
|
| 20 |
+
publish-npm:
|
| 21 |
+
needs: build
|
| 22 |
+
runs-on: ubuntu-latest
|
| 23 |
+
steps:
|
| 24 |
+
- uses: actions/checkout@v3
|
| 25 |
+
- uses: actions/setup-node@v3
|
| 26 |
+
with:
|
| 27 |
+
node-version: 22
|
| 28 |
+
registry-url: https://registry.npmjs.org/
|
| 29 |
+
- run: npm ci
|
| 30 |
+
- run: npm publish
|
| 31 |
+
env:
|
| 32 |
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
.github/workflows/on-close-handler.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: 🚪 Issues/PRs On Close Handler
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
issues:
|
| 5 |
+
types: [closed]
|
| 6 |
+
pull_request_target:
|
| 7 |
+
types: [closed]
|
| 8 |
+
|
| 9 |
+
permissions:
|
| 10 |
+
contents: read
|
| 11 |
+
issues: write
|
| 12 |
+
pull-requests: write
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
remove-labels:
|
| 16 |
+
name: 🗑️ Remove Pending Labels on Close
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
if: always()
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- name: Mint App Token
|
| 22 |
+
id: app
|
| 23 |
+
# Create a GitHub App token
|
| 24 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 25 |
+
uses: actions/create-github-app-token@v2
|
| 26 |
+
with:
|
| 27 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 28 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 29 |
+
owner: ${{ github.repository_owner }}
|
| 30 |
+
|
| 31 |
+
- name: Remove Pending Labels on Close
|
| 32 |
+
# 🤖 Issues Helper
|
| 33 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 34 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 35 |
+
with:
|
| 36 |
+
actions: remove-labels
|
| 37 |
+
token: ${{ steps.app.outputs.token }}
|
| 38 |
+
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
| 39 |
+
labels: '🚏 Awaiting User Response,🧑💻 In Progress,📌 Keep Open,🚫 Merge Conflicts,🔬 Needs Testing,🔨 Needs Work,⚰️ Stale,⛔ Waiting For External/Upstream'
|
.github/workflows/on-open-handler.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: 📨 Issues/PRs Open Handler
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
issues:
|
| 5 |
+
types: [opened]
|
| 6 |
+
pull_request_target:
|
| 7 |
+
types: [opened]
|
| 8 |
+
|
| 9 |
+
permissions:
|
| 10 |
+
contents: read
|
| 11 |
+
issues: write
|
| 12 |
+
pull-requests: write
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
label-maintainer:
|
| 16 |
+
name: 🏷️ Label if Author is a Repo Maintainer
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
if: always() && contains(fromJson('["Cohee1207", "RossAscends", "Wolfsblvt"]'), github.actor)
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- name: Mint App Token
|
| 22 |
+
id: app
|
| 23 |
+
# Create a GitHub App token
|
| 24 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 25 |
+
uses: actions/create-github-app-token@v2
|
| 26 |
+
with:
|
| 27 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 28 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 29 |
+
owner: ${{ github.repository_owner }}
|
| 30 |
+
|
| 31 |
+
- name: Label if Author is a Repo Maintainer
|
| 32 |
+
# 🤖 Issues Helper
|
| 33 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 34 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 35 |
+
with:
|
| 36 |
+
actions: 'add-labels'
|
| 37 |
+
token: ${{ steps.app.outputs.token }}
|
| 38 |
+
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
| 39 |
+
labels: '👷 Maintainer'
|
.github/workflows/pr-auto-manager.yml
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: 🔀 Pull Request Manager
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
workflow_dispatch: # Allow to manually call this workflow
|
| 5 |
+
pull_request_target:
|
| 6 |
+
types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed]
|
| 7 |
+
pull_request_review_comment:
|
| 8 |
+
types: [created]
|
| 9 |
+
|
| 10 |
+
permissions:
|
| 11 |
+
contents: read
|
| 12 |
+
pull-requests: write
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
run-eslint:
|
| 16 |
+
name: ✅ Check ESLint on PR
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
# Only needs to run when code is changed
|
| 19 |
+
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
| 20 |
+
|
| 21 |
+
# Override permissions, linter likely needs write access to issues
|
| 22 |
+
permissions:
|
| 23 |
+
contents: read
|
| 24 |
+
issues: write
|
| 25 |
+
pull-requests: write
|
| 26 |
+
|
| 27 |
+
steps:
|
| 28 |
+
- name: Checkout Repository
|
| 29 |
+
# Checkout
|
| 30 |
+
# https://github.com/marketplace/actions/checkout
|
| 31 |
+
uses: actions/checkout@v4.2.2
|
| 32 |
+
with:
|
| 33 |
+
ref: ${{ github.event.pull_request.head.sha }}
|
| 34 |
+
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
| 35 |
+
|
| 36 |
+
- name: Setup Node.js
|
| 37 |
+
# Setup Node.js environment
|
| 38 |
+
# https://github.com/marketplace/actions/setup-node-js-environment
|
| 39 |
+
uses: actions/setup-node@v4.3.0
|
| 40 |
+
with:
|
| 41 |
+
node-version: 20
|
| 42 |
+
|
| 43 |
+
- name: Run npm install
|
| 44 |
+
run: npm ci
|
| 45 |
+
|
| 46 |
+
- name: Run ESLint
|
| 47 |
+
# Action ESLint
|
| 48 |
+
# https://github.com/marketplace/actions/action-eslint
|
| 49 |
+
uses: sibiraj-s/action-eslint@v3.0.1
|
| 50 |
+
with:
|
| 51 |
+
token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
|
| 52 |
+
eslint-args: '--ignore-path=.gitignore --quiet'
|
| 53 |
+
extensions: 'js'
|
| 54 |
+
annotations: true
|
| 55 |
+
ignore-patterns: |
|
| 56 |
+
dist/
|
| 57 |
+
lib/
|
| 58 |
+
|
| 59 |
+
run-tests:
|
| 60 |
+
name: ✅ Run Unit Tests on PR
|
| 61 |
+
runs-on: ubuntu-latest
|
| 62 |
+
# Only needs to run when code is changed
|
| 63 |
+
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
| 64 |
+
|
| 65 |
+
steps:
|
| 66 |
+
- name: Checkout Repository
|
| 67 |
+
# Checkout
|
| 68 |
+
# https://github.com/marketplace/actions/checkout
|
| 69 |
+
uses: actions/checkout@v4.2.2
|
| 70 |
+
with:
|
| 71 |
+
ref: ${{ github.event.pull_request.head.sha }}
|
| 72 |
+
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
| 73 |
+
|
| 74 |
+
- name: Setup Node.js
|
| 75 |
+
# Setup Node.js environment
|
| 76 |
+
# https://github.com/marketplace/actions/setup-node-js-environment
|
| 77 |
+
uses: actions/setup-node@v4.3.0
|
| 78 |
+
with:
|
| 79 |
+
node-version: 20
|
| 80 |
+
cache: 'npm'
|
| 81 |
+
|
| 82 |
+
- name: Install root dependencies
|
| 83 |
+
run: npm ci
|
| 84 |
+
|
| 85 |
+
- name: Install test dependencies
|
| 86 |
+
run: npm ci --prefix tests
|
| 87 |
+
|
| 88 |
+
- name: Run unit tests
|
| 89 |
+
run: npm run test:unit --prefix tests
|
| 90 |
+
|
| 91 |
+
label-by-size:
|
| 92 |
+
name: 🏷️ Label PR by Size
|
| 93 |
+
# This job should run after all others, to prevent possible concurrency issues
|
| 94 |
+
needs: [label-by-branches, label-by-files, remove-stale-label, check-merge-blocking-labels, write-auto-comments]
|
| 95 |
+
runs-on: ubuntu-latest
|
| 96 |
+
# Only needs to run when code is changed
|
| 97 |
+
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
| 98 |
+
|
| 99 |
+
# Override permissions, the labeler needs issues write access
|
| 100 |
+
permissions:
|
| 101 |
+
contents: read
|
| 102 |
+
issues: write
|
| 103 |
+
pull-requests: write
|
| 104 |
+
|
| 105 |
+
steps:
|
| 106 |
+
- name: Mint App Token
|
| 107 |
+
id: app
|
| 108 |
+
# Create a GitHub App token
|
| 109 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 110 |
+
uses: actions/create-github-app-token@v2
|
| 111 |
+
with:
|
| 112 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 113 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 114 |
+
owner: ${{ github.repository_owner }}
|
| 115 |
+
|
| 116 |
+
- name: Label PR Size
|
| 117 |
+
# Pull Request Size Labeler
|
| 118 |
+
# https://github.com/marketplace/actions/pull-request-size-labeler
|
| 119 |
+
uses: codelytv/pr-size-labeler@v1.10.2
|
| 120 |
+
with:
|
| 121 |
+
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
|
| 122 |
+
xs_label: '🟩 ⬤○○○○'
|
| 123 |
+
xs_max_size: '20'
|
| 124 |
+
s_label: '🟩 ⬤⬤○○○'
|
| 125 |
+
s_max_size: '100'
|
| 126 |
+
m_label: '🟨 ⬤⬤⬤○○'
|
| 127 |
+
m_max_size: '500'
|
| 128 |
+
l_label: '🟧 ⬤⬤⬤⬤○'
|
| 129 |
+
l_max_size: '1000'
|
| 130 |
+
xl_label: '🟥 ⬤⬤⬤⬤⬤'
|
| 131 |
+
fail_if_xl: 'false'
|
| 132 |
+
files_to_ignore: |
|
| 133 |
+
"package-lock.json"
|
| 134 |
+
"public/lib/*"
|
| 135 |
+
|
| 136 |
+
label-by-branches:
|
| 137 |
+
name: 🏷️ Label PR by Branches
|
| 138 |
+
runs-on: ubuntu-latest
|
| 139 |
+
# Only label once when PR is created or when base branch is changed, to allow manual label removal
|
| 140 |
+
if: always() && (github.event.action == 'opened' || (github.event.action == 'synchronize' && github.event.changes.base))
|
| 141 |
+
|
| 142 |
+
steps:
|
| 143 |
+
- name: Mint App Token
|
| 144 |
+
id: app
|
| 145 |
+
# Create a GitHub App token
|
| 146 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 147 |
+
uses: actions/create-github-app-token@v2
|
| 148 |
+
with:
|
| 149 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 150 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 151 |
+
owner: ${{ github.repository_owner }}
|
| 152 |
+
|
| 153 |
+
- name: Checkout Repository
|
| 154 |
+
# Checkout
|
| 155 |
+
# https://github.com/marketplace/actions/checkout
|
| 156 |
+
uses: actions/checkout@v4.2.2
|
| 157 |
+
|
| 158 |
+
- name: Apply Labels Based on Branch Name and Target Branch
|
| 159 |
+
# Pull Request Labeler
|
| 160 |
+
# https://github.com/marketplace/actions/labeler
|
| 161 |
+
uses: actions/labeler@v5.0.0
|
| 162 |
+
with:
|
| 163 |
+
configuration-path: .github/pr-auto-labels-by-branch.yml
|
| 164 |
+
repo-token: ${{ steps.app.outputs.token }}
|
| 165 |
+
|
| 166 |
+
label-by-files:
|
| 167 |
+
name: 🏷️ Label PR by Files
|
| 168 |
+
needs: [label-by-branches]
|
| 169 |
+
runs-on: ubuntu-latest
|
| 170 |
+
# Only needs to run when code is changed
|
| 171 |
+
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
| 172 |
+
|
| 173 |
+
steps:
|
| 174 |
+
- name: Mint App Token
|
| 175 |
+
id: app
|
| 176 |
+
# Create a GitHub App token
|
| 177 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 178 |
+
uses: actions/create-github-app-token@v2
|
| 179 |
+
with:
|
| 180 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 181 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 182 |
+
owner: ${{ github.repository_owner }}
|
| 183 |
+
|
| 184 |
+
- name: Checkout Repository
|
| 185 |
+
# Checkout
|
| 186 |
+
# https://github.com/marketplace/actions/checkout
|
| 187 |
+
uses: actions/checkout@v4.2.2
|
| 188 |
+
|
| 189 |
+
- name: Apply Labels Based on Changed Files
|
| 190 |
+
# Pull Request Labeler
|
| 191 |
+
# https://github.com/marketplace/actions/labeler
|
| 192 |
+
uses: actions/labeler@v5.0.0
|
| 193 |
+
env:
|
| 194 |
+
GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding
|
| 195 |
+
with:
|
| 196 |
+
configuration-path: .github/pr-auto-labels-by-files.yml
|
| 197 |
+
repo-token: ${{ steps.app.outputs.token }}
|
| 198 |
+
|
| 199 |
+
remove-stale-label:
|
| 200 |
+
name: 🗑️ Remove Stale Label on Comment
|
| 201 |
+
needs: [label-by-branches, label-by-files]
|
| 202 |
+
runs-on: ubuntu-latest
|
| 203 |
+
# Only runs on comments not done by the github actions bot
|
| 204 |
+
if: always() && (github.event_name == 'pull_request_review_comment' && github.event.sender.type != 'Bot')
|
| 205 |
+
|
| 206 |
+
# Override permissions, issue labeler needs issues write access
|
| 207 |
+
permissions:
|
| 208 |
+
contents: read
|
| 209 |
+
issues: write
|
| 210 |
+
pull-requests: write
|
| 211 |
+
|
| 212 |
+
steps:
|
| 213 |
+
- name: Mint App Token
|
| 214 |
+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
| 215 |
+
id: app
|
| 216 |
+
# Only run if the PR is from the same repository
|
| 217 |
+
# This action runs on comments, which will not receive the env vars for this
|
| 218 |
+
# Create a GitHub App token
|
| 219 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 220 |
+
uses: actions/create-github-app-token@v2
|
| 221 |
+
with:
|
| 222 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 223 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 224 |
+
owner: ${{ github.repository_owner }}
|
| 225 |
+
|
| 226 |
+
- name: Remove Stale Label
|
| 227 |
+
if: always()
|
| 228 |
+
# 🤖 Issues Helper
|
| 229 |
+
# https://github.com/marketplace/actions/issues-helper
|
| 230 |
+
uses: actions-cool/issues-helper@v3.6.0
|
| 231 |
+
with:
|
| 232 |
+
actions: 'remove-labels'
|
| 233 |
+
token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available
|
| 234 |
+
issue-number: ${{ github.event.pull_request.number }}
|
| 235 |
+
labels: '⚰️ Stale'
|
| 236 |
+
|
| 237 |
+
check-merge-blocking-labels:
|
| 238 |
+
name: 🚫 Check Merge Blocking Labels
|
| 239 |
+
needs: [label-by-branches, label-by-files, remove-stale-label]
|
| 240 |
+
runs-on: ubuntu-latest
|
| 241 |
+
# Run, even if the previous jobs were skipped/failed
|
| 242 |
+
if: always()
|
| 243 |
+
|
| 244 |
+
# Override permissions, as this needs to write a check
|
| 245 |
+
permissions:
|
| 246 |
+
checks: write
|
| 247 |
+
contents: read
|
| 248 |
+
pull-requests: read
|
| 249 |
+
|
| 250 |
+
steps:
|
| 251 |
+
- name: Check Merge Blocking
|
| 252 |
+
# GitHub Script
|
| 253 |
+
# https://github.com/marketplace/actions/github-script
|
| 254 |
+
id: label-check
|
| 255 |
+
uses: actions/github-script@v7.0.1
|
| 256 |
+
with:
|
| 257 |
+
script: |
|
| 258 |
+
const prLabels = context.payload.pull_request.labels.map(label => label.name);
|
| 259 |
+
const blockingLabels = [
|
| 260 |
+
"⛔ Don't Merge",
|
| 261 |
+
"🔨 Needs Work",
|
| 262 |
+
"🔬 Needs Testing",
|
| 263 |
+
"⛔ Waiting For External/Upstream",
|
| 264 |
+
"❗ Against Release Branch",
|
| 265 |
+
"💥💣 Breaking Changes"
|
| 266 |
+
];
|
| 267 |
+
const hasBlockingLabel = prLabels.some(label => blockingLabels.includes(label));
|
| 268 |
+
|
| 269 |
+
if (hasBlockingLabel) {
|
| 270 |
+
console.log("Blocking label detected. Setting warning status.");
|
| 271 |
+
await github.rest.checks.create({
|
| 272 |
+
owner: context.repo.owner,
|
| 273 |
+
repo: context.repo.repo,
|
| 274 |
+
name: "PR Label Warning",
|
| 275 |
+
head_sha: context.payload.pull_request.head.sha,
|
| 276 |
+
status: "completed",
|
| 277 |
+
conclusion: "neutral",
|
| 278 |
+
output: {
|
| 279 |
+
title: "Potential Merge Issue",
|
| 280 |
+
summary: "This PR has a merge-blocking label. Proceed with caution."
|
| 281 |
+
}
|
| 282 |
+
});
|
| 283 |
+
} else {
|
| 284 |
+
console.log("No merge-blocking labels found.");
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
write-auto-comments:
|
| 288 |
+
name: 💬 Post PR Comments Based on Labels
|
| 289 |
+
needs: [label-by-branches, label-by-files, remove-stale-label, check-merge-blocking-labels]
|
| 290 |
+
runs-on: ubuntu-latest
|
| 291 |
+
# Run, even if the previous jobs were skipped/failed
|
| 292 |
+
if: always() && (github.event_name == 'pull_request_target')
|
| 293 |
+
|
| 294 |
+
steps:
|
| 295 |
+
- name: Mint App Token
|
| 296 |
+
id: app
|
| 297 |
+
# Create a GitHub App token
|
| 298 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 299 |
+
uses: actions/create-github-app-token@v2
|
| 300 |
+
with:
|
| 301 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 302 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 303 |
+
owner: ${{ github.repository_owner }}
|
| 304 |
+
|
| 305 |
+
- name: Checkout Repository
|
| 306 |
+
# Checkout
|
| 307 |
+
# https://github.com/marketplace/actions/checkout
|
| 308 |
+
uses: actions/checkout@v4.2.2
|
| 309 |
+
|
| 310 |
+
- name: Post PR Comments Based on Labels
|
| 311 |
+
# Label Commenter for PRs
|
| 312 |
+
# https://github.com/marketplace/actions/label-commenter
|
| 313 |
+
uses: peaceiris/actions-label-commenter@v1.10.0
|
| 314 |
+
with:
|
| 315 |
+
config_file: .github/pr-auto-comments.yml
|
| 316 |
+
github_token: ${{ steps.app.outputs.token }}
|
| 317 |
+
|
| 318 |
+
# This runs on merged PRs to staging, reading the PR body and directly linked issues. Check `issues-updates-on-merge.yml`:`update-linked-issues` for commit-based updates.
|
| 319 |
+
update-linked-issues:
|
| 320 |
+
name: 🔗 Mark Linked Issues Done on Staging Merge
|
| 321 |
+
runs-on: ubuntu-latest
|
| 322 |
+
if: >
|
| 323 |
+
always() &&
|
| 324 |
+
github.event_name == 'pull_request_target' &&
|
| 325 |
+
github.event.pull_request.merged == true &&
|
| 326 |
+
github.event.pull_request.base.ref == 'staging'
|
| 327 |
+
|
| 328 |
+
# Override permissions, We need to be able to write to issues
|
| 329 |
+
permissions:
|
| 330 |
+
contents: read
|
| 331 |
+
issues: write
|
| 332 |
+
pull-requests: write
|
| 333 |
+
|
| 334 |
+
steps:
|
| 335 |
+
- name: Mint App Token
|
| 336 |
+
id: app
|
| 337 |
+
# Create a GitHub App token
|
| 338 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 339 |
+
uses: actions/create-github-app-token@v2
|
| 340 |
+
with:
|
| 341 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 342 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 343 |
+
owner: ${{ github.repository_owner }}
|
| 344 |
+
|
| 345 |
+
- name: Extract Linked Issues From PR Description
|
| 346 |
+
id: extract_issues
|
| 347 |
+
run: |
|
| 348 |
+
ISSUES=$(jq -r '.pull_request.body' "$GITHUB_EVENT_PATH" | grep -oiE '(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #([0-9]+)' | awk '{print $2}' | tr -d '#' | jq -R -s -c 'split("\n")[:-1]')
|
| 349 |
+
echo "issues=$ISSUES" >> $GITHUB_ENV
|
| 350 |
+
|
| 351 |
+
- name: Fetch Directly Linked Issues
|
| 352 |
+
id: fetch_linked_issues
|
| 353 |
+
run: |
|
| 354 |
+
PR_NUMBER=${{ github.event.pull_request.number }}
|
| 355 |
+
REPO=${{ github.repository }}
|
| 356 |
+
API_URL="https://api.github.com/repos/$REPO/pulls/$PR_NUMBER/issues"
|
| 357 |
+
ISSUES=$(curl -s -H "Authorization: token ${{ steps.app.outputs.token }}" "$API_URL" | jq -r '.[].number' | jq -R -s -c 'split("\n")[:-1]')
|
| 358 |
+
echo "linked_issues=$ISSUES" >> $GITHUB_ENV
|
| 359 |
+
|
| 360 |
+
- name: Merge Issue Lists
|
| 361 |
+
id: merge_issues
|
| 362 |
+
run: |
|
| 363 |
+
ISSUES=$(jq -c -n --argjson a "$issues" --argjson b "$linked_issues" '$a + $b | unique')
|
| 364 |
+
echo "final_issues=$ISSUES" >> $GITHUB_ENV
|
| 365 |
+
|
| 366 |
+
- name: Label Linked Issues
|
| 367 |
+
id: label_linked_issues
|
| 368 |
+
env:
|
| 369 |
+
GH_TOKEN: ${{ steps.app.outputs.token }}
|
| 370 |
+
run: |
|
| 371 |
+
for ISSUE in $(echo $final_issues | jq -r '.[]'); do
|
| 372 |
+
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)" --remove-label "🧑💻 In Progress"
|
| 373 |
+
echo "Added label '✅ Done (staging)' (and removed '🧑💻 In Progress' if present) in issue #$ISSUE"
|
| 374 |
+
done
|
.github/workflows/pr-check-merge-conflicts.yaml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: ⚔️ Check Merge Conflicts
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
# So that PRs touching the same files as the push are updated
|
| 5 |
+
push:
|
| 6 |
+
# So that the `dirtyLabel` is removed if conflicts are resolved
|
| 7 |
+
pull_request_target:
|
| 8 |
+
types: [synchronize]
|
| 9 |
+
|
| 10 |
+
permissions:
|
| 11 |
+
contents: read
|
| 12 |
+
pull-requests: write
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
check-merge-conflicts:
|
| 16 |
+
name: ⚔️ Check Merge Conflicts
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
if: always()
|
| 19 |
+
|
| 20 |
+
steps:
|
| 21 |
+
- name: Mint App Token
|
| 22 |
+
id: app
|
| 23 |
+
# Create a GitHub App token
|
| 24 |
+
# https://github.com/marketplace/actions/create-github-app-token
|
| 25 |
+
uses: actions/create-github-app-token@v2
|
| 26 |
+
with:
|
| 27 |
+
app-id: ${{ vars.ST_BOT_APP_ID }}
|
| 28 |
+
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
| 29 |
+
owner: ${{ github.repository_owner }}
|
| 30 |
+
|
| 31 |
+
- name: Check Merge Conflicts
|
| 32 |
+
# Label Conflicting Pull Requests
|
| 33 |
+
# https://github.com/marketplace/actions/label-conflicting-pull-requests
|
| 34 |
+
uses: eps1lon/actions-label-merge-conflict@v3.0.3
|
| 35 |
+
with:
|
| 36 |
+
dirtyLabel: '🚫 Merge Conflicts'
|
| 37 |
+
repoToken: ${{ steps.app.outputs.token }}
|
| 38 |
+
commentOnDirty: >
|
| 39 |
+
⚠️ This PR has conflicts that need to be resolved before it can be merged.
|
.github/workflows/update-i18n.yaml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Update i18n data
|
| 2 |
+
|
| 3 |
+
on: workflow_dispatch
|
| 4 |
+
|
| 5 |
+
jobs:
|
| 6 |
+
build:
|
| 7 |
+
runs-on: ubuntu-latest
|
| 8 |
+
permissions: # Job-level permissions configuration starts here
|
| 9 |
+
contents: write # 'write' access to repository contents
|
| 10 |
+
steps:
|
| 11 |
+
- name: disable auto crlf
|
| 12 |
+
uses: steve02081504/disable-autocrlf@v1
|
| 13 |
+
- uses: actions/checkout@v4
|
| 14 |
+
with:
|
| 15 |
+
ref: ${{ github.head_ref }}
|
| 16 |
+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
| 17 |
+
- name: Create local changes
|
| 18 |
+
run: |
|
| 19 |
+
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
|
| 20 |
+
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
|
| 21 |
+
pip install -r ./requirements.txt
|
| 22 |
+
python ./generate.py "" --sort-keys
|
| 23 |
+
rm -f ./generate.py ./requirements.txt
|
| 24 |
+
- name: add all
|
| 25 |
+
run: git add -A
|
| 26 |
+
- name: push
|
| 27 |
+
uses: actions-go/push@master
|
| 28 |
+
with:
|
| 29 |
+
author-email: 41898282+github-actions[bot]@users.noreply.github.com
|
| 30 |
+
author-name: github-actions[bot]
|
| 31 |
+
commit-message: 'i18n changes'
|
| 32 |
+
remote: origin
|
.gitignore
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules/
|
| 2 |
+
public/chats/
|
| 3 |
+
public/characters/
|
| 4 |
+
public/User Avatars/
|
| 5 |
+
public/backgrounds/
|
| 6 |
+
public/groups/
|
| 7 |
+
public/group chats/
|
| 8 |
+
public/worlds/
|
| 9 |
+
public/user/
|
| 10 |
+
public/css/bg_load.css
|
| 11 |
+
public/themes/
|
| 12 |
+
public/OpenAI Settings/
|
| 13 |
+
public/KoboldAI Settings/
|
| 14 |
+
public/NovelAI Settings/
|
| 15 |
+
public/TextGen Settings/
|
| 16 |
+
public/instruct/
|
| 17 |
+
public/context/
|
| 18 |
+
public/scripts/extensions/third-party/
|
| 19 |
+
public/stats.json
|
| 20 |
+
/uploads/
|
| 21 |
+
*.jsonl
|
| 22 |
+
/config.conf
|
| 23 |
+
/config.yaml
|
| 24 |
+
/config.conf.bak
|
| 25 |
+
/docker/config
|
| 26 |
+
/docker/user
|
| 27 |
+
/docker/extensions
|
| 28 |
+
/docker/data
|
| 29 |
+
.DS_Store
|
| 30 |
+
public/settings.json
|
| 31 |
+
/thumbnails
|
| 32 |
+
whitelist.txt
|
| 33 |
+
.vscode/**
|
| 34 |
+
!.vscode/extensions.json
|
| 35 |
+
.idea/
|
| 36 |
+
secrets.json
|
| 37 |
+
/dist
|
| 38 |
+
/backups/
|
| 39 |
+
public/movingUI/
|
| 40 |
+
public/QuickReplies/
|
| 41 |
+
content.log
|
| 42 |
+
cloudflared.exe
|
| 43 |
+
public/assets/
|
| 44 |
+
access.log
|
| 45 |
+
/vectors/
|
| 46 |
+
/cache/
|
| 47 |
+
public/css/user.css
|
| 48 |
+
public/error/
|
| 49 |
+
/plugins/
|
| 50 |
+
/data
|
| 51 |
+
/default/scaffold
|
| 52 |
+
public/scripts/extensions/third-party
|
| 53 |
+
/certs
|
| 54 |
+
.aider*
|
| 55 |
+
.env
|
| 56 |
+
/StartDev.bat
|
| 57 |
+
yarn.lock
|
| 58 |
+
*.code-workspace
|
| 59 |
+
test-results/
|
.nomedia
ADDED
|
File without changes
|
.npmignore
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules/
|
| 2 |
+
/uploads/
|
| 3 |
+
.DS_Store
|
| 4 |
+
/thumbnails
|
| 5 |
+
secrets.json
|
| 6 |
+
/dist
|
| 7 |
+
/backups/
|
| 8 |
+
/data
|
| 9 |
+
/cache
|
| 10 |
+
access.log
|
| 11 |
+
.github
|
| 12 |
+
.vscode
|
| 13 |
+
.git
|
| 14 |
+
/public/scripts/extensions/third-party
|
| 15 |
+
/colab
|
| 16 |
+
.gemini
|
.replit
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
hidden = [".config", "package-lock.json"]
|
| 3 |
+
run = "chmod 755 ./start.sh && ./start.sh"
|
| 4 |
+
entrypoint = "server.js"
|
| 5 |
+
|
| 6 |
+
[[hints]]
|
| 7 |
+
regex = "Error \\[ERR_REQUIRE_ESM\\]"
|
| 8 |
+
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
|
| 9 |
+
|
| 10 |
+
[nix]
|
| 11 |
+
channel = "stable-22_11"
|
| 12 |
+
|
| 13 |
+
[env]
|
| 14 |
+
XDG_CONFIG_HOME = "/home/runner/$REPL_SLUG/.config"
|
| 15 |
+
PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
|
| 16 |
+
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
|
| 17 |
+
|
| 18 |
+
[gitHubImport]
|
| 19 |
+
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
|
| 20 |
+
|
| 21 |
+
[packager]
|
| 22 |
+
language = "nodejs"
|
| 23 |
+
|
| 24 |
+
[packager.features]
|
| 25 |
+
packageSearch = true
|
| 26 |
+
guessImports = true
|
| 27 |
+
enabledForHosting = false
|
| 28 |
+
|
| 29 |
+
[unitTest]
|
| 30 |
+
language = "nodejs"
|
| 31 |
+
|
| 32 |
+
[debugger]
|
| 33 |
+
support = true
|
| 34 |
+
|
| 35 |
+
[debugger.interactive]
|
| 36 |
+
transport = "localhost:0"
|
| 37 |
+
startCommand = [ "dap-node" ]
|
| 38 |
+
|
| 39 |
+
[debugger.interactive.initializeMessage]
|
| 40 |
+
command = "initialize"
|
| 41 |
+
type = "request"
|
| 42 |
+
|
| 43 |
+
[debugger.interactive.initializeMessage.arguments]
|
| 44 |
+
clientID = "replit"
|
| 45 |
+
clientName = "replit.com"
|
| 46 |
+
columnsStartAt1 = true
|
| 47 |
+
linesStartAt1 = true
|
| 48 |
+
locale = "en-us"
|
| 49 |
+
pathFormat = "path"
|
| 50 |
+
supportsInvalidatedEvent = true
|
| 51 |
+
supportsProgressReporting = true
|
| 52 |
+
supportsRunInTerminalRequest = true
|
| 53 |
+
supportsVariablePaging = true
|
| 54 |
+
supportsVariableType = true
|
| 55 |
+
|
| 56 |
+
[debugger.interactive.launchMessage]
|
| 57 |
+
command = "launch"
|
| 58 |
+
type = "request"
|
| 59 |
+
|
| 60 |
+
[debugger.interactive.launchMessage.arguments]
|
| 61 |
+
args = []
|
| 62 |
+
console = "externalTerminal"
|
| 63 |
+
cwd = "."
|
| 64 |
+
environment = []
|
| 65 |
+
pauseForSourceMap = false
|
| 66 |
+
program = "./server.js"
|
| 67 |
+
request = "launch"
|
| 68 |
+
sourceMaps = true
|
| 69 |
+
stopOnEntry = false
|
| 70 |
+
type = "pwa-node"
|
| 71 |
+
|
| 72 |
+
[languages]
|
| 73 |
+
|
| 74 |
+
[languages.javascript]
|
| 75 |
+
pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.json}"
|
| 76 |
+
|
| 77 |
+
[languages.javascript.languageServer]
|
| 78 |
+
start = "typescript-language-server --stdio"
|
| 79 |
+
|
| 80 |
+
[deployment]
|
| 81 |
+
run = ["sh", "-c", "./start.sh"]
|
.vscode/extensions.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
|
| 3 |
+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
| 4 |
+
// List of extensions which should be recommended for users of this workspace.
|
| 5 |
+
"recommendations": [
|
| 6 |
+
"dbaeumer.vscode-eslint",
|
| 7 |
+
"EditorConfig.EditorConfig",
|
| 8 |
+
"mrcrowl.easy-less"
|
| 9 |
+
],
|
| 10 |
+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
| 11 |
+
"unwantedRecommendations": []
|
| 12 |
+
}
|
CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# How to contribute to SillyTavern
|
| 2 |
+
|
| 3 |
+
## Setting up the dev environment
|
| 4 |
+
|
| 5 |
+
1. Required software: git and node.
|
| 6 |
+
2. Recommended editor: Visual Studio Code.
|
| 7 |
+
3. You can also use GitHub Codespaces which sets up everything for you.
|
| 8 |
+
|
| 9 |
+
## Getting the code ready
|
| 10 |
+
|
| 11 |
+
1. Register a GitHub account.
|
| 12 |
+
2. Fork this repository under your account.
|
| 13 |
+
3. Clone the fork onto your machine.
|
| 14 |
+
4. Open the cloned repository in the code editor.
|
| 15 |
+
5. Create a git branch (recommended).
|
| 16 |
+
6. Make your changes and test them locally.
|
| 17 |
+
7. Commit the changes and push the branch to the remote repo.
|
| 18 |
+
8. Go to GitHub, and open a pull request, targeting the upstream branch.
|
| 19 |
+
|
| 20 |
+
## Contribution guidelines
|
| 21 |
+
|
| 22 |
+
1. Our standards are pretty low, but make sure the code is not too ugly:
|
| 23 |
+
- Run VS Code's autoformat when you're done.
|
| 24 |
+
- Check with ESLint by running `npm run lint`, then fix the errors.
|
| 25 |
+
- Use common sense and follow existing naming conventions.
|
| 26 |
+
2. Create pull requests for the staging branch, 99% of contributions should go there. That way people could test your code before the next stable release.
|
| 27 |
+
3. You can still send a pull request for release in the following scenarios:
|
| 28 |
+
- Updating README.
|
| 29 |
+
- Updating GitHub Actions.
|
| 30 |
+
- Hotfixing a critical bug.
|
| 31 |
+
4. Project maintainers will test and can change your code before merging. To keep our workflow smooth, please ensure the following:
|
| 32 |
+
- The "Allow edits from maintainers" option is checked.
|
| 33 |
+
- Avoid force-pushing your branch once the PR is out of draft state.
|
| 34 |
+
5. To make sure that your contribution remains testable and reviewable, try not to exceed a soft limit of **200 lines of code** (both additions and deletions) per pull request. If you have more to contribute, split it into multiple pull requests. We can also consider creating a separate feature branch for more substantial changes, but please discuss it with the maintainers first.
|
| 35 |
+
6. Write at least somewhat meaningful PR descriptions and commit messages. There's no "right" way to do it, but the following may help with outlining a general structure:
|
| 36 |
+
- What is the reason for a change?
|
| 37 |
+
- What did you do to achieve this?
|
| 38 |
+
- How would a reviewer test the change?
|
| 39 |
+
7. English is the primary language of communication in this project. Please use only English when writing commit messages, PR descriptions, comments and other text. This does not apply to contributions to localization files.
|
| 40 |
+
8. Mind the license. Your contributions will be licensed under the GNU Affero General Public License. If you don't know what that implies, consult your lawyer.
|
| 41 |
+
|
| 42 |
+
## Use of AI coding assistance tools ("Vibe Coding")
|
| 43 |
+
|
| 44 |
+
We do not prohibit nor encourage the use of AI tools for coding assistance to help you write code, documentation, etc. This includes specialized IDEs, plugins and add-ons, chat interfaces, etc. However, please keep in mind the following:
|
| 45 |
+
|
| 46 |
+
- No matter who (or what) wrote the code, you are responsible for it. Make sure to carefully review and test everything before committing, and be ready to discuss and fix any issues that may arise during the review.
|
| 47 |
+
- Maintainers can reject reviewing and accepting PRs of very low quality, i.e. if the time to fix the issues exceeds the time to write the code from scratch.
|
| 48 |
+
- Avoid common mistakes attributed to AI tools, such as: adding/removing unrelated comments, excessive logging, unawareness of the project context and conventions, etc.
|
| 49 |
+
- You are allowed, but not required, to trigger AI tools that are added to the project by maintainers (Gemini, Copilot, Codex). Keep in mind that any feedback (comments, suggestions) that these tools generate is not a call to action; make sure to properly assess it before applying.
|
| 50 |
+
|
| 51 |
+
## Further reading
|
| 52 |
+
|
| 53 |
+
1. [How to write UI extensions](https://docs.sillytavern.app/for-contributors/writing-extensions/)
|
| 54 |
+
2. [How to write server plugins](https://docs.sillytavern.app/for-contributors/server-plugins)
|
Dockerfile
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:lts-alpine3.22
|
| 2 |
+
|
| 3 |
+
# Arguments
|
| 4 |
+
ARG APP_HOME=/home/node/app
|
| 5 |
+
|
| 6 |
+
# Install system dependencies
|
| 7 |
+
RUN apk add --no-cache gcompat tini git git-lfs
|
| 8 |
+
|
| 9 |
+
# Create app directory
|
| 10 |
+
WORKDIR ${APP_HOME}
|
| 11 |
+
|
| 12 |
+
# Set NODE_ENV to production
|
| 13 |
+
ENV NODE_ENV=production
|
| 14 |
+
|
| 15 |
+
# Bundle app source
|
| 16 |
+
COPY . ./
|
| 17 |
+
|
| 18 |
+
RUN \
|
| 19 |
+
echo "*** Install npm packages ***" && \
|
| 20 |
+
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
|
| 21 |
+
|
| 22 |
+
# Create config directory and link config.yaml
|
| 23 |
+
RUN \
|
| 24 |
+
rm -f "config.yaml" || true && \
|
| 25 |
+
ln -s "./config/config.yaml" "config.yaml" || true && \
|
| 26 |
+
mkdir "config" || true
|
| 27 |
+
|
| 28 |
+
# Pre-compile public libraries
|
| 29 |
+
RUN \
|
| 30 |
+
echo "*** Run Webpack ***" && \
|
| 31 |
+
node "./docker/build-lib.js"
|
| 32 |
+
|
| 33 |
+
# Set the entrypoint script
|
| 34 |
+
RUN \
|
| 35 |
+
echo "*** Cleanup ***" && \
|
| 36 |
+
mv "./docker/docker-entrypoint.sh" "./" && \
|
| 37 |
+
rm -rf "./docker" && \
|
| 38 |
+
echo "*** Make docker-entrypoint.sh executable ***" && \
|
| 39 |
+
chmod +x "./docker-entrypoint.sh" && \
|
| 40 |
+
echo "*** Convert line endings to Unix format ***" && \
|
| 41 |
+
dos2unix "./docker-entrypoint.sh"
|
| 42 |
+
|
| 43 |
+
# Fix extension repos permissions
|
| 44 |
+
RUN git config --global --add safe.directory "*"
|
| 45 |
+
|
| 46 |
+
EXPOSE 8000
|
| 47 |
+
|
| 48 |
+
# Ensure proper handling of kernel signals
|
| 49 |
+
ENTRYPOINT ["tini", "--", "./docker-entrypoint.sh"]
|
LICENSE
ADDED
|
@@ -0,0 +1,661 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU AFFERO GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 3, 19 November 2007
|
| 3 |
+
|
| 4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
| 5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 6 |
+
of this license document, but changing it is not allowed.
|
| 7 |
+
|
| 8 |
+
Preamble
|
| 9 |
+
|
| 10 |
+
The GNU Affero General Public License is a free, copyleft license for
|
| 11 |
+
software and other kinds of works, specifically designed to ensure
|
| 12 |
+
cooperation with the community in the case of network server software.
|
| 13 |
+
|
| 14 |
+
The licenses for most software and other practical works are designed
|
| 15 |
+
to take away your freedom to share and change the works. By contrast,
|
| 16 |
+
our General Public Licenses are intended to guarantee your freedom to
|
| 17 |
+
share and change all versions of a program--to make sure it remains free
|
| 18 |
+
software for all its users.
|
| 19 |
+
|
| 20 |
+
When we speak of free software, we are referring to freedom, not
|
| 21 |
+
price. Our General Public Licenses are designed to make sure that you
|
| 22 |
+
have the freedom to distribute copies of free software (and charge for
|
| 23 |
+
them if you wish), that you receive source code or can get it if you
|
| 24 |
+
want it, that you can change the software or use pieces of it in new
|
| 25 |
+
free programs, and that you know you can do these things.
|
| 26 |
+
|
| 27 |
+
Developers that use our General Public Licenses protect your rights
|
| 28 |
+
with two steps: (1) assert copyright on the software, and (2) offer
|
| 29 |
+
you this License which gives you legal permission to copy, distribute
|
| 30 |
+
and/or modify the software.
|
| 31 |
+
|
| 32 |
+
A secondary benefit of defending all users' freedom is that
|
| 33 |
+
improvements made in alternate versions of the program, if they
|
| 34 |
+
receive widespread use, become available for other developers to
|
| 35 |
+
incorporate. Many developers of free software are heartened and
|
| 36 |
+
encouraged by the resulting cooperation. However, in the case of
|
| 37 |
+
software used on network servers, this result may fail to come about.
|
| 38 |
+
The GNU General Public License permits making a modified version and
|
| 39 |
+
letting the public access it on a server without ever releasing its
|
| 40 |
+
source code to the public.
|
| 41 |
+
|
| 42 |
+
The GNU Affero General Public License is designed specifically to
|
| 43 |
+
ensure that, in such cases, the modified source code becomes available
|
| 44 |
+
to the community. It requires the operator of a network server to
|
| 45 |
+
provide the source code of the modified version running there to the
|
| 46 |
+
users of that server. Therefore, public use of a modified version, on
|
| 47 |
+
a publicly accessible server, gives the public access to the source
|
| 48 |
+
code of the modified version.
|
| 49 |
+
|
| 50 |
+
An older license, called the Affero General Public License and
|
| 51 |
+
published by Affero, was designed to accomplish similar goals. This is
|
| 52 |
+
a different license, not a version of the Affero GPL, but Affero has
|
| 53 |
+
released a new version of the Affero GPL which permits relicensing under
|
| 54 |
+
this license.
|
| 55 |
+
|
| 56 |
+
The precise terms and conditions for copying, distribution and
|
| 57 |
+
modification follow.
|
| 58 |
+
|
| 59 |
+
TERMS AND CONDITIONS
|
| 60 |
+
|
| 61 |
+
0. Definitions.
|
| 62 |
+
|
| 63 |
+
"This License" refers to version 3 of the GNU Affero General Public License.
|
| 64 |
+
|
| 65 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
| 66 |
+
works, such as semiconductor masks.
|
| 67 |
+
|
| 68 |
+
"The Program" refers to any copyrightable work licensed under this
|
| 69 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
| 70 |
+
"recipients" may be individuals or organizations.
|
| 71 |
+
|
| 72 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
| 73 |
+
in a fashion requiring copyright permission, other than the making of an
|
| 74 |
+
exact copy. The resulting work is called a "modified version" of the
|
| 75 |
+
earlier work or a work "based on" the earlier work.
|
| 76 |
+
|
| 77 |
+
A "covered work" means either the unmodified Program or a work based
|
| 78 |
+
on the Program.
|
| 79 |
+
|
| 80 |
+
To "propagate" a work means to do anything with it that, without
|
| 81 |
+
permission, would make you directly or secondarily liable for
|
| 82 |
+
infringement under applicable copyright law, except executing it on a
|
| 83 |
+
computer or modifying a private copy. Propagation includes copying,
|
| 84 |
+
distribution (with or without modification), making available to the
|
| 85 |
+
public, and in some countries other activities as well.
|
| 86 |
+
|
| 87 |
+
To "convey" a work means any kind of propagation that enables other
|
| 88 |
+
parties to make or receive copies. Mere interaction with a user through
|
| 89 |
+
a computer network, with no transfer of a copy, is not conveying.
|
| 90 |
+
|
| 91 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
| 92 |
+
to the extent that it includes a convenient and prominently visible
|
| 93 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
| 94 |
+
tells the user that there is no warranty for the work (except to the
|
| 95 |
+
extent that warranties are provided), that licensees may convey the
|
| 96 |
+
work under this License, and how to view a copy of this License. If
|
| 97 |
+
the interface presents a list of user commands or options, such as a
|
| 98 |
+
menu, a prominent item in the list meets this criterion.
|
| 99 |
+
|
| 100 |
+
1. Source Code.
|
| 101 |
+
|
| 102 |
+
The "source code" for a work means the preferred form of the work
|
| 103 |
+
for making modifications to it. "Object code" means any non-source
|
| 104 |
+
form of a work.
|
| 105 |
+
|
| 106 |
+
A "Standard Interface" means an interface that either is an official
|
| 107 |
+
standard defined by a recognized standards body, or, in the case of
|
| 108 |
+
interfaces specified for a particular programming language, one that
|
| 109 |
+
is widely used among developers working in that language.
|
| 110 |
+
|
| 111 |
+
The "System Libraries" of an executable work include anything, other
|
| 112 |
+
than the work as a whole, that (a) is included in the normal form of
|
| 113 |
+
packaging a Major Component, but which is not part of that Major
|
| 114 |
+
Component, and (b) serves only to enable use of the work with that
|
| 115 |
+
Major Component, or to implement a Standard Interface for which an
|
| 116 |
+
implementation is available to the public in source code form. A
|
| 117 |
+
"Major Component", in this context, means a major essential component
|
| 118 |
+
(kernel, window system, and so on) of the specific operating system
|
| 119 |
+
(if any) on which the executable work runs, or a compiler used to
|
| 120 |
+
produce the work, or an object code interpreter used to run it.
|
| 121 |
+
|
| 122 |
+
The "Corresponding Source" for a work in object code form means all
|
| 123 |
+
the source code needed to generate, install, and (for an executable
|
| 124 |
+
work) run the object code and to modify the work, including scripts to
|
| 125 |
+
control those activities. However, it does not include the work's
|
| 126 |
+
System Libraries, or general-purpose tools or generally available free
|
| 127 |
+
programs which are used unmodified in performing those activities but
|
| 128 |
+
which are not part of the work. For example, Corresponding Source
|
| 129 |
+
includes interface definition files associated with source files for
|
| 130 |
+
the work, and the source code for shared libraries and dynamically
|
| 131 |
+
linked subprograms that the work is specifically designed to require,
|
| 132 |
+
such as by intimate data communication or control flow between those
|
| 133 |
+
subprograms and other parts of the work.
|
| 134 |
+
|
| 135 |
+
The Corresponding Source need not include anything that users
|
| 136 |
+
can regenerate automatically from other parts of the Corresponding
|
| 137 |
+
Source.
|
| 138 |
+
|
| 139 |
+
The Corresponding Source for a work in source code form is that
|
| 140 |
+
same work.
|
| 141 |
+
|
| 142 |
+
2. Basic Permissions.
|
| 143 |
+
|
| 144 |
+
All rights granted under this License are granted for the term of
|
| 145 |
+
copyright on the Program, and are irrevocable provided the stated
|
| 146 |
+
conditions are met. This License explicitly affirms your unlimited
|
| 147 |
+
permission to run the unmodified Program. The output from running a
|
| 148 |
+
covered work is covered by this License only if the output, given its
|
| 149 |
+
content, constitutes a covered work. This License acknowledges your
|
| 150 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
| 151 |
+
|
| 152 |
+
You may make, run and propagate covered works that you do not
|
| 153 |
+
convey, without conditions so long as your license otherwise remains
|
| 154 |
+
in force. You may convey covered works to others for the sole purpose
|
| 155 |
+
of having them make modifications exclusively for you, or provide you
|
| 156 |
+
with facilities for running those works, provided that you comply with
|
| 157 |
+
the terms of this License in conveying all material for which you do
|
| 158 |
+
not control copyright. Those thus making or running the covered works
|
| 159 |
+
for you must do so exclusively on your behalf, under your direction
|
| 160 |
+
and control, on terms that prohibit them from making any copies of
|
| 161 |
+
your copyrighted material outside their relationship with you.
|
| 162 |
+
|
| 163 |
+
Conveying under any other circumstances is permitted solely under
|
| 164 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
| 165 |
+
makes it unnecessary.
|
| 166 |
+
|
| 167 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
| 168 |
+
|
| 169 |
+
No covered work shall be deemed part of an effective technological
|
| 170 |
+
measure under any applicable law fulfilling obligations under article
|
| 171 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
| 172 |
+
similar laws prohibiting or restricting circumvention of such
|
| 173 |
+
measures.
|
| 174 |
+
|
| 175 |
+
When you convey a covered work, you waive any legal power to forbid
|
| 176 |
+
circumvention of technological measures to the extent such circumvention
|
| 177 |
+
is effected by exercising rights under this License with respect to
|
| 178 |
+
the covered work, and you disclaim any intention to limit operation or
|
| 179 |
+
modification of the work as a means of enforcing, against the work's
|
| 180 |
+
users, your or third parties' legal rights to forbid circumvention of
|
| 181 |
+
technological measures.
|
| 182 |
+
|
| 183 |
+
4. Conveying Verbatim Copies.
|
| 184 |
+
|
| 185 |
+
You may convey verbatim copies of the Program's source code as you
|
| 186 |
+
receive it, in any medium, provided that you conspicuously and
|
| 187 |
+
appropriately publish on each copy an appropriate copyright notice;
|
| 188 |
+
keep intact all notices stating that this License and any
|
| 189 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
| 190 |
+
keep intact all notices of the absence of any warranty; and give all
|
| 191 |
+
recipients a copy of this License along with the Program.
|
| 192 |
+
|
| 193 |
+
You may charge any price or no price for each copy that you convey,
|
| 194 |
+
and you may offer support or warranty protection for a fee.
|
| 195 |
+
|
| 196 |
+
5. Conveying Modified Source Versions.
|
| 197 |
+
|
| 198 |
+
You may convey a work based on the Program, or the modifications to
|
| 199 |
+
produce it from the Program, in the form of source code under the
|
| 200 |
+
terms of section 4, provided that you also meet all of these conditions:
|
| 201 |
+
|
| 202 |
+
a) The work must carry prominent notices stating that you modified
|
| 203 |
+
it, and giving a relevant date.
|
| 204 |
+
|
| 205 |
+
b) The work must carry prominent notices stating that it is
|
| 206 |
+
released under this License and any conditions added under section
|
| 207 |
+
7. This requirement modifies the requirement in section 4 to
|
| 208 |
+
"keep intact all notices".
|
| 209 |
+
|
| 210 |
+
c) You must license the entire work, as a whole, under this
|
| 211 |
+
License to anyone who comes into possession of a copy. This
|
| 212 |
+
License will therefore apply, along with any applicable section 7
|
| 213 |
+
additional terms, to the whole of the work, and all its parts,
|
| 214 |
+
regardless of how they are packaged. This License gives no
|
| 215 |
+
permission to license the work in any other way, but it does not
|
| 216 |
+
invalidate such permission if you have separately received it.
|
| 217 |
+
|
| 218 |
+
d) If the work has interactive user interfaces, each must display
|
| 219 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
| 220 |
+
interfaces that do not display Appropriate Legal Notices, your
|
| 221 |
+
work need not make them do so.
|
| 222 |
+
|
| 223 |
+
A compilation of a covered work with other separate and independent
|
| 224 |
+
works, which are not by their nature extensions of the covered work,
|
| 225 |
+
and which are not combined with it such as to form a larger program,
|
| 226 |
+
in or on a volume of a storage or distribution medium, is called an
|
| 227 |
+
"aggregate" if the compilation and its resulting copyright are not
|
| 228 |
+
used to limit the access or legal rights of the compilation's users
|
| 229 |
+
beyond what the individual works permit. Inclusion of a covered work
|
| 230 |
+
in an aggregate does not cause this License to apply to the other
|
| 231 |
+
parts of the aggregate.
|
| 232 |
+
|
| 233 |
+
6. Conveying Non-Source Forms.
|
| 234 |
+
|
| 235 |
+
You may convey a covered work in object code form under the terms
|
| 236 |
+
of sections 4 and 5, provided that you also convey the
|
| 237 |
+
machine-readable Corresponding Source under the terms of this License,
|
| 238 |
+
in one of these ways:
|
| 239 |
+
|
| 240 |
+
a) Convey the object code in, or embodied in, a physical product
|
| 241 |
+
(including a physical distribution medium), accompanied by the
|
| 242 |
+
Corresponding Source fixed on a durable physical medium
|
| 243 |
+
customarily used for software interchange.
|
| 244 |
+
|
| 245 |
+
b) Convey the object code in, or embodied in, a physical product
|
| 246 |
+
(including a physical distribution medium), accompanied by a
|
| 247 |
+
written offer, valid for at least three years and valid for as
|
| 248 |
+
long as you offer spare parts or customer support for that product
|
| 249 |
+
model, to give anyone who possesses the object code either (1) a
|
| 250 |
+
copy of the Corresponding Source for all the software in the
|
| 251 |
+
product that is covered by this License, on a durable physical
|
| 252 |
+
medium customarily used for software interchange, for a price no
|
| 253 |
+
more than your reasonable cost of physically performing this
|
| 254 |
+
conveying of source, or (2) access to copy the
|
| 255 |
+
Corresponding Source from a network server at no charge.
|
| 256 |
+
|
| 257 |
+
c) Convey individual copies of the object code with a copy of the
|
| 258 |
+
written offer to provide the Corresponding Source. This
|
| 259 |
+
alternative is allowed only occasionally and noncommercially, and
|
| 260 |
+
only if you received the object code with such an offer, in accord
|
| 261 |
+
with subsection 6b.
|
| 262 |
+
|
| 263 |
+
d) Convey the object code by offering access from a designated
|
| 264 |
+
place (gratis or for a charge), and offer equivalent access to the
|
| 265 |
+
Corresponding Source in the same way through the same place at no
|
| 266 |
+
further charge. You need not require recipients to copy the
|
| 267 |
+
Corresponding Source along with the object code. If the place to
|
| 268 |
+
copy the object code is a network server, the Corresponding Source
|
| 269 |
+
may be on a different server (operated by you or a third party)
|
| 270 |
+
that supports equivalent copying facilities, provided you maintain
|
| 271 |
+
clear directions next to the object code saying where to find the
|
| 272 |
+
Corresponding Source. Regardless of what server hosts the
|
| 273 |
+
Corresponding Source, you remain obligated to ensure that it is
|
| 274 |
+
available for as long as needed to satisfy these requirements.
|
| 275 |
+
|
| 276 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
| 277 |
+
you inform other peers where the object code and Corresponding
|
| 278 |
+
Source of the work are being offered to the general public at no
|
| 279 |
+
charge under subsection 6d.
|
| 280 |
+
|
| 281 |
+
A separable portion of the object code, whose source code is excluded
|
| 282 |
+
from the Corresponding Source as a System Library, need not be
|
| 283 |
+
included in conveying the object code work.
|
| 284 |
+
|
| 285 |
+
A "User Product" is either (1) a "consumer product", which means any
|
| 286 |
+
tangible personal property which is normally used for personal, family,
|
| 287 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
| 288 |
+
into a dwelling. In determining whether a product is a consumer product,
|
| 289 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
| 290 |
+
product received by a particular user, "normally used" refers to a
|
| 291 |
+
typical or common use of that class of product, regardless of the status
|
| 292 |
+
of the particular user or of the way in which the particular user
|
| 293 |
+
actually uses, or expects or is expected to use, the product. A product
|
| 294 |
+
is a consumer product regardless of whether the product has substantial
|
| 295 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
| 296 |
+
the only significant mode of use of the product.
|
| 297 |
+
|
| 298 |
+
"Installation Information" for a User Product means any methods,
|
| 299 |
+
procedures, authorization keys, or other information required to install
|
| 300 |
+
and execute modified versions of a covered work in that User Product from
|
| 301 |
+
a modified version of its Corresponding Source. The information must
|
| 302 |
+
suffice to ensure that the continued functioning of the modified object
|
| 303 |
+
code is in no case prevented or interfered with solely because
|
| 304 |
+
modification has been made.
|
| 305 |
+
|
| 306 |
+
If you convey an object code work under this section in, or with, or
|
| 307 |
+
specifically for use in, a User Product, and the conveying occurs as
|
| 308 |
+
part of a transaction in which the right of possession and use of the
|
| 309 |
+
User Product is transferred to the recipient in perpetuity or for a
|
| 310 |
+
fixed term (regardless of how the transaction is characterized), the
|
| 311 |
+
Corresponding Source conveyed under this section must be accompanied
|
| 312 |
+
by the Installation Information. But this requirement does not apply
|
| 313 |
+
if neither you nor any third party retains the ability to install
|
| 314 |
+
modified object code on the User Product (for example, the work has
|
| 315 |
+
been installed in ROM).
|
| 316 |
+
|
| 317 |
+
The requirement to provide Installation Information does not include a
|
| 318 |
+
requirement to continue to provide support service, warranty, or updates
|
| 319 |
+
for a work that has been modified or installed by the recipient, or for
|
| 320 |
+
the User Product in which it has been modified or installed. Access to a
|
| 321 |
+
network may be denied when the modification itself materially and
|
| 322 |
+
adversely affects the operation of the network or violates the rules and
|
| 323 |
+
protocols for communication across the network.
|
| 324 |
+
|
| 325 |
+
Corresponding Source conveyed, and Installation Information provided,
|
| 326 |
+
in accord with this section must be in a format that is publicly
|
| 327 |
+
documented (and with an implementation available to the public in
|
| 328 |
+
source code form), and must require no special password or key for
|
| 329 |
+
unpacking, reading or copying.
|
| 330 |
+
|
| 331 |
+
7. Additional Terms.
|
| 332 |
+
|
| 333 |
+
"Additional permissions" are terms that supplement the terms of this
|
| 334 |
+
License by making exceptions from one or more of its conditions.
|
| 335 |
+
Additional permissions that are applicable to the entire Program shall
|
| 336 |
+
be treated as though they were included in this License, to the extent
|
| 337 |
+
that they are valid under applicable law. If additional permissions
|
| 338 |
+
apply only to part of the Program, that part may be used separately
|
| 339 |
+
under those permissions, but the entire Program remains governed by
|
| 340 |
+
this License without regard to the additional permissions.
|
| 341 |
+
|
| 342 |
+
When you convey a copy of a covered work, you may at your option
|
| 343 |
+
remove any additional permissions from that copy, or from any part of
|
| 344 |
+
it. (Additional permissions may be written to require their own
|
| 345 |
+
removal in certain cases when you modify the work.) You may place
|
| 346 |
+
additional permissions on material, added by you to a covered work,
|
| 347 |
+
for which you have or can give appropriate copyright permission.
|
| 348 |
+
|
| 349 |
+
Notwithstanding any other provision of this License, for material you
|
| 350 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
| 351 |
+
that material) supplement the terms of this License with terms:
|
| 352 |
+
|
| 353 |
+
a) Disclaiming warranty or limiting liability differently from the
|
| 354 |
+
terms of sections 15 and 16 of this License; or
|
| 355 |
+
|
| 356 |
+
b) Requiring preservation of specified reasonable legal notices or
|
| 357 |
+
author attributions in that material or in the Appropriate Legal
|
| 358 |
+
Notices displayed by works containing it; or
|
| 359 |
+
|
| 360 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
| 361 |
+
requiring that modified versions of such material be marked in
|
| 362 |
+
reasonable ways as different from the original version; or
|
| 363 |
+
|
| 364 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
| 365 |
+
authors of the material; or
|
| 366 |
+
|
| 367 |
+
e) Declining to grant rights under trademark law for use of some
|
| 368 |
+
trade names, trademarks, or service marks; or
|
| 369 |
+
|
| 370 |
+
f) Requiring indemnification of licensors and authors of that
|
| 371 |
+
material by anyone who conveys the material (or modified versions of
|
| 372 |
+
it) with contractual assumptions of liability to the recipient, for
|
| 373 |
+
any liability that these contractual assumptions directly impose on
|
| 374 |
+
those licensors and authors.
|
| 375 |
+
|
| 376 |
+
All other non-permissive additional terms are considered "further
|
| 377 |
+
restrictions" within the meaning of section 10. If the Program as you
|
| 378 |
+
received it, or any part of it, contains a notice stating that it is
|
| 379 |
+
governed by this License along with a term that is a further
|
| 380 |
+
restriction, you may remove that term. If a license document contains
|
| 381 |
+
a further restriction but permits relicensing or conveying under this
|
| 382 |
+
License, you may add to a covered work material governed by the terms
|
| 383 |
+
of that license document, provided that the further restriction does
|
| 384 |
+
not survive such relicensing or conveying.
|
| 385 |
+
|
| 386 |
+
If you add terms to a covered work in accord with this section, you
|
| 387 |
+
must place, in the relevant source files, a statement of the
|
| 388 |
+
additional terms that apply to those files, or a notice indicating
|
| 389 |
+
where to find the applicable terms.
|
| 390 |
+
|
| 391 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
| 392 |
+
form of a separately written license, or stated as exceptions;
|
| 393 |
+
the above requirements apply either way.
|
| 394 |
+
|
| 395 |
+
8. Termination.
|
| 396 |
+
|
| 397 |
+
You may not propagate or modify a covered work except as expressly
|
| 398 |
+
provided under this License. Any attempt otherwise to propagate or
|
| 399 |
+
modify it is void, and will automatically terminate your rights under
|
| 400 |
+
this License (including any patent licenses granted under the third
|
| 401 |
+
paragraph of section 11).
|
| 402 |
+
|
| 403 |
+
However, if you cease all violation of this License, then your
|
| 404 |
+
license from a particular copyright holder is reinstated (a)
|
| 405 |
+
provisionally, unless and until the copyright holder explicitly and
|
| 406 |
+
finally terminates your license, and (b) permanently, if the copyright
|
| 407 |
+
holder fails to notify you of the violation by some reasonable means
|
| 408 |
+
prior to 60 days after the cessation.
|
| 409 |
+
|
| 410 |
+
Moreover, your license from a particular copyright holder is
|
| 411 |
+
reinstated permanently if the copyright holder notifies you of the
|
| 412 |
+
violation by some reasonable means, this is the first time you have
|
| 413 |
+
received notice of violation of this License (for any work) from that
|
| 414 |
+
copyright holder, and you cure the violation prior to 30 days after
|
| 415 |
+
your receipt of the notice.
|
| 416 |
+
|
| 417 |
+
Termination of your rights under this section does not terminate the
|
| 418 |
+
licenses of parties who have received copies or rights from you under
|
| 419 |
+
this License. If your rights have been terminated and not permanently
|
| 420 |
+
reinstated, you do not qualify to receive new licenses for the same
|
| 421 |
+
material under section 10.
|
| 422 |
+
|
| 423 |
+
9. Acceptance Not Required for Having Copies.
|
| 424 |
+
|
| 425 |
+
You are not required to accept this License in order to receive or
|
| 426 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
| 427 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
| 428 |
+
to receive a copy likewise does not require acceptance. However,
|
| 429 |
+
nothing other than this License grants you permission to propagate or
|
| 430 |
+
modify any covered work. These actions infringe copyright if you do
|
| 431 |
+
not accept this License. Therefore, by modifying or propagating a
|
| 432 |
+
covered work, you indicate your acceptance of this License to do so.
|
| 433 |
+
|
| 434 |
+
10. Automatic Licensing of Downstream Recipients.
|
| 435 |
+
|
| 436 |
+
Each time you convey a covered work, the recipient automatically
|
| 437 |
+
receives a license from the original licensors, to run, modify and
|
| 438 |
+
propagate that work, subject to this License. You are not responsible
|
| 439 |
+
for enforcing compliance by third parties with this License.
|
| 440 |
+
|
| 441 |
+
An "entity transaction" is a transaction transferring control of an
|
| 442 |
+
organization, or substantially all assets of one, or subdividing an
|
| 443 |
+
organization, or merging organizations. If propagation of a covered
|
| 444 |
+
work results from an entity transaction, each party to that
|
| 445 |
+
transaction who receives a copy of the work also receives whatever
|
| 446 |
+
licenses to the work the party's predecessor in interest had or could
|
| 447 |
+
give under the previous paragraph, plus a right to possession of the
|
| 448 |
+
Corresponding Source of the work from the predecessor in interest, if
|
| 449 |
+
the predecessor has it or can get it with reasonable efforts.
|
| 450 |
+
|
| 451 |
+
You may not impose any further restrictions on the exercise of the
|
| 452 |
+
rights granted or affirmed under this License. For example, you may
|
| 453 |
+
not impose a license fee, royalty, or other charge for exercise of
|
| 454 |
+
rights granted under this License, and you may not initiate litigation
|
| 455 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
| 456 |
+
any patent claim is infringed by making, using, selling, offering for
|
| 457 |
+
sale, or importing the Program or any portion of it.
|
| 458 |
+
|
| 459 |
+
11. Patents.
|
| 460 |
+
|
| 461 |
+
A "contributor" is a copyright holder who authorizes use under this
|
| 462 |
+
License of the Program or a work on which the Program is based. The
|
| 463 |
+
work thus licensed is called the contributor's "contributor version".
|
| 464 |
+
|
| 465 |
+
A contributor's "essential patent claims" are all patent claims
|
| 466 |
+
owned or controlled by the contributor, whether already acquired or
|
| 467 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
| 468 |
+
by this License, of making, using, or selling its contributor version,
|
| 469 |
+
but do not include claims that would be infringed only as a
|
| 470 |
+
consequence of further modification of the contributor version. For
|
| 471 |
+
purposes of this definition, "control" includes the right to grant
|
| 472 |
+
patent sublicenses in a manner consistent with the requirements of
|
| 473 |
+
this License.
|
| 474 |
+
|
| 475 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
| 476 |
+
patent license under the contributor's essential patent claims, to
|
| 477 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
| 478 |
+
propagate the contents of its contributor version.
|
| 479 |
+
|
| 480 |
+
In the following three paragraphs, a "patent license" is any express
|
| 481 |
+
agreement or commitment, however denominated, not to enforce a patent
|
| 482 |
+
(such as an express permission to practice a patent or covenant not to
|
| 483 |
+
sue for patent infringement). To "grant" such a patent license to a
|
| 484 |
+
party means to make such an agreement or commitment not to enforce a
|
| 485 |
+
patent against the party.
|
| 486 |
+
|
| 487 |
+
If you convey a covered work, knowingly relying on a patent license,
|
| 488 |
+
and the Corresponding Source of the work is not available for anyone
|
| 489 |
+
to copy, free of charge and under the terms of this License, through a
|
| 490 |
+
publicly available network server or other readily accessible means,
|
| 491 |
+
then you must either (1) cause the Corresponding Source to be so
|
| 492 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
| 493 |
+
patent license for this particular work, or (3) arrange, in a manner
|
| 494 |
+
consistent with the requirements of this License, to extend the patent
|
| 495 |
+
license to downstream recipients. "Knowingly relying" means you have
|
| 496 |
+
actual knowledge that, but for the patent license, your conveying the
|
| 497 |
+
covered work in a country, or your recipient's use of the covered work
|
| 498 |
+
in a country, would infringe one or more identifiable patents in that
|
| 499 |
+
country that you have reason to believe are valid.
|
| 500 |
+
|
| 501 |
+
If, pursuant to or in connection with a single transaction or
|
| 502 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
| 503 |
+
covered work, and grant a patent license to some of the parties
|
| 504 |
+
receiving the covered work authorizing them to use, propagate, modify
|
| 505 |
+
or convey a specific copy of the covered work, then the patent license
|
| 506 |
+
you grant is automatically extended to all recipients of the covered
|
| 507 |
+
work and works based on it.
|
| 508 |
+
|
| 509 |
+
A patent license is "discriminatory" if it does not include within
|
| 510 |
+
the scope of its coverage, prohibits the exercise of, or is
|
| 511 |
+
conditioned on the non-exercise of one or more of the rights that are
|
| 512 |
+
specifically granted under this License. You may not convey a covered
|
| 513 |
+
work if you are a party to an arrangement with a third party that is
|
| 514 |
+
in the business of distributing software, under which you make payment
|
| 515 |
+
to the third party based on the extent of your activity of conveying
|
| 516 |
+
the work, and under which the third party grants, to any of the
|
| 517 |
+
parties who would receive the covered work from you, a discriminatory
|
| 518 |
+
patent license (a) in connection with copies of the covered work
|
| 519 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
| 520 |
+
for and in connection with specific products or compilations that
|
| 521 |
+
contain the covered work, unless you entered into that arrangement,
|
| 522 |
+
or that patent license was granted, prior to 28 March 2007.
|
| 523 |
+
|
| 524 |
+
Nothing in this License shall be construed as excluding or limiting
|
| 525 |
+
any implied license or other defenses to infringement that may
|
| 526 |
+
otherwise be available to you under applicable patent law.
|
| 527 |
+
|
| 528 |
+
12. No Surrender of Others' Freedom.
|
| 529 |
+
|
| 530 |
+
If conditions are imposed on you (whether by court order, agreement or
|
| 531 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 532 |
+
excuse you from the conditions of this License. If you cannot convey a
|
| 533 |
+
covered work so as to satisfy simultaneously your obligations under this
|
| 534 |
+
License and any other pertinent obligations, then as a consequence you may
|
| 535 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
| 536 |
+
to collect a royalty for further conveying from those to whom you convey
|
| 537 |
+
the Program, the only way you could satisfy both those terms and this
|
| 538 |
+
License would be to refrain entirely from conveying the Program.
|
| 539 |
+
|
| 540 |
+
13. Remote Network Interaction; Use with the GNU General Public License.
|
| 541 |
+
|
| 542 |
+
Notwithstanding any other provision of this License, if you modify the
|
| 543 |
+
Program, your modified version must prominently offer all users
|
| 544 |
+
interacting with it remotely through a computer network (if your version
|
| 545 |
+
supports such interaction) an opportunity to receive the Corresponding
|
| 546 |
+
Source of your version by providing access to the Corresponding Source
|
| 547 |
+
from a network server at no charge, through some standard or customary
|
| 548 |
+
means of facilitating copying of software. This Corresponding Source
|
| 549 |
+
shall include the Corresponding Source for any work covered by version 3
|
| 550 |
+
of the GNU General Public License that is incorporated pursuant to the
|
| 551 |
+
following paragraph.
|
| 552 |
+
|
| 553 |
+
Notwithstanding any other provision of this License, you have
|
| 554 |
+
permission to link or combine any covered work with a work licensed
|
| 555 |
+
under version 3 of the GNU General Public License into a single
|
| 556 |
+
combined work, and to convey the resulting work. The terms of this
|
| 557 |
+
License will continue to apply to the part which is the covered work,
|
| 558 |
+
but the work with which it is combined will remain governed by version
|
| 559 |
+
3 of the GNU General Public License.
|
| 560 |
+
|
| 561 |
+
14. Revised Versions of this License.
|
| 562 |
+
|
| 563 |
+
The Free Software Foundation may publish revised and/or new versions of
|
| 564 |
+
the GNU Affero General Public License from time to time. Such new versions
|
| 565 |
+
will be similar in spirit to the present version, but may differ in detail to
|
| 566 |
+
address new problems or concerns.
|
| 567 |
+
|
| 568 |
+
Each version is given a distinguishing version number. If the
|
| 569 |
+
Program specifies that a certain numbered version of the GNU Affero General
|
| 570 |
+
Public License "or any later version" applies to it, you have the
|
| 571 |
+
option of following the terms and conditions either of that numbered
|
| 572 |
+
version or of any later version published by the Free Software
|
| 573 |
+
Foundation. If the Program does not specify a version number of the
|
| 574 |
+
GNU Affero General Public License, you may choose any version ever published
|
| 575 |
+
by the Free Software Foundation.
|
| 576 |
+
|
| 577 |
+
If the Program specifies that a proxy can decide which future
|
| 578 |
+
versions of the GNU Affero General Public License can be used, that proxy's
|
| 579 |
+
public statement of acceptance of a version permanently authorizes you
|
| 580 |
+
to choose that version for the Program.
|
| 581 |
+
|
| 582 |
+
Later license versions may give you additional or different
|
| 583 |
+
permissions. However, no additional obligations are imposed on any
|
| 584 |
+
author or copyright holder as a result of your choosing to follow a
|
| 585 |
+
later version.
|
| 586 |
+
|
| 587 |
+
15. Disclaimer of Warranty.
|
| 588 |
+
|
| 589 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
| 590 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
| 591 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
| 592 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
| 593 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 594 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
| 595 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
| 596 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 597 |
+
|
| 598 |
+
16. Limitation of Liability.
|
| 599 |
+
|
| 600 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
| 601 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
| 602 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
| 603 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
| 604 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
| 605 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
| 606 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
| 607 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
| 608 |
+
SUCH DAMAGES.
|
| 609 |
+
|
| 610 |
+
17. Interpretation of Sections 15 and 16.
|
| 611 |
+
|
| 612 |
+
If the disclaimer of warranty and limitation of liability provided
|
| 613 |
+
above cannot be given local legal effect according to their terms,
|
| 614 |
+
reviewing courts shall apply local law that most closely approximates
|
| 615 |
+
an absolute waiver of all civil liability in connection with the
|
| 616 |
+
Program, unless a warranty or assumption of liability accompanies a
|
| 617 |
+
copy of the Program in return for a fee.
|
| 618 |
+
|
| 619 |
+
END OF TERMS AND CONDITIONS
|
| 620 |
+
|
| 621 |
+
How to Apply These Terms to Your New Programs
|
| 622 |
+
|
| 623 |
+
If you develop a new program, and you want it to be of the greatest
|
| 624 |
+
possible use to the public, the best way to achieve this is to make it
|
| 625 |
+
free software which everyone can redistribute and change under these terms.
|
| 626 |
+
|
| 627 |
+
To do so, attach the following notices to the program. It is safest
|
| 628 |
+
to attach them to the start of each source file to most effectively
|
| 629 |
+
state the exclusion of warranty; and each file should have at least
|
| 630 |
+
the "copyright" line and a pointer to where the full notice is found.
|
| 631 |
+
|
| 632 |
+
<one line to give the program's name and a brief idea of what it does.>
|
| 633 |
+
Copyright (C) <year> <name of author>
|
| 634 |
+
|
| 635 |
+
This program is free software: you can redistribute it and/or modify
|
| 636 |
+
it under the terms of the GNU Affero General Public License as published
|
| 637 |
+
by the Free Software Foundation, either version 3 of the License, or
|
| 638 |
+
(at your option) any later version.
|
| 639 |
+
|
| 640 |
+
This program is distributed in the hope that it will be useful,
|
| 641 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 642 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 643 |
+
GNU Affero General Public License for more details.
|
| 644 |
+
|
| 645 |
+
You should have received a copy of the GNU Affero General Public License
|
| 646 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 647 |
+
|
| 648 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 649 |
+
|
| 650 |
+
If your software can interact with users remotely through a computer
|
| 651 |
+
network, you should also make sure that it provides a way for users to
|
| 652 |
+
get its source. For example, if your program is a web application, its
|
| 653 |
+
interface could display a "Source" link that leads users to an archive
|
| 654 |
+
of the code. There are many ways you could offer source, and different
|
| 655 |
+
solutions will be better for different programs; see section 13 for the
|
| 656 |
+
specific requirements.
|
| 657 |
+
|
| 658 |
+
You should also get your employer (if you work as a programmer) or school,
|
| 659 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
| 660 |
+
For more information on this, and how to apply and follow the GNU AGPL, see
|
| 661 |
+
<https://www.gnu.org/licenses/>.
|
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
-
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ST Mobile
|
| 3 |
+
emoji: 💬
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 8000
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# SillyTavern Mobile
|
| 11 |
+
|
| 12 |
+
A mobile-friendly SillyTavern interface.
|
README_HF.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: ST Mobile
|
| 3 |
+
emoji: 💬
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 8000
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# SillyTavern Mobile
|
| 11 |
+
|
| 12 |
+
A mobile-friendly SillyTavern interface.
|
Remote-Link.cmd
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
echo ========================================================================================================================
|
| 3 |
+
echo WARNING: Cloudflare Tunnel!
|
| 4 |
+
echo ========================================================================================================================
|
| 5 |
+
echo This script downloads and runs the latest cloudflared.exe from Cloudflare to set up an HTTPS tunnel to your SillyTavern!
|
| 6 |
+
echo Using the randomly generated temporary tunnel URL, anyone can access your SillyTavern over the Internet while the tunnel
|
| 7 |
+
echo is active. Keep the URL safe and secure your SillyTavern installation by setting a username and password in config.yaml!
|
| 8 |
+
echo.
|
| 9 |
+
echo See https://docs.sillytavern.app/usage/remoteconnections/ for more details about how to secure your SillyTavern install.
|
| 10 |
+
echo.
|
| 11 |
+
echo By continuing you confirm that you're aware of the potential dangers of having a tunnel open and take all responsibility
|
| 12 |
+
echo to properly use and secure it!
|
| 13 |
+
echo.
|
| 14 |
+
echo To abort, press Ctrl+C or close this window now!
|
| 15 |
+
echo.
|
| 16 |
+
pause
|
| 17 |
+
if not exist cloudflared.exe curl -Lo cloudflared.exe https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe
|
| 18 |
+
cloudflared.exe tunnel --url localhost:8000
|
SECURITY.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Security Policy
|
| 2 |
+
|
| 3 |
+
We take the security of this project seriously. If you discover any security vulnerabilities or have concerns regarding the security of this repository, please reach out to us immediately. We appreciate your efforts in responsibly disclosing the issue and will make every effort to address it promptly.
|
| 4 |
+
|
| 5 |
+
## Reporting a Vulnerability
|
| 6 |
+
|
| 7 |
+
To report a security vulnerability, please follow these steps:
|
| 8 |
+
|
| 9 |
+
1. Go to the **Security** tab of this repository on GitHub.
|
| 10 |
+
2. Click on **"Report a vulnerability"**.
|
| 11 |
+
3. Provide a clear description of the vulnerability and its potential impact. Be as detailed as possible.
|
| 12 |
+
4. If applicable, include steps or a PoC (Proof of Concept) to reproduce the vulnerability.
|
| 13 |
+
5. Submit the report.
|
| 14 |
+
|
| 15 |
+
Once we receive the private report notification, we will promptly investigate and assess the reported vulnerability.
|
| 16 |
+
|
| 17 |
+
Please do not disclose any potential vulnerabilities in public repositories, issue trackers, or forums until we have had a chance to review and address the issue.
|
| 18 |
+
|
| 19 |
+
## Scope
|
| 20 |
+
|
| 21 |
+
This security policy applies to all the code and files within this repository and its dependencies actively maintained by us. If you encounter a security issue in a dependency that is not directly maintained by us, please follow responsible disclosure practices and report it to the respective project.
|
| 22 |
+
|
| 23 |
+
While we strive to ensure the security of this project, please note that there may be limitations on resources, response times, and mitigations.
|
| 24 |
+
|
| 25 |
+
Thank you for your help in making this project more secure.
|
Start.bat
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
pushd %~dp0
|
| 3 |
+
set NODE_ENV=production
|
| 4 |
+
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
| 5 |
+
node server.js %*
|
| 6 |
+
pause
|
| 7 |
+
popd
|
Update-Instructions.txt
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
How to Update SillyTavern
|
| 2 |
+
|
| 3 |
+
The most recent version can be found here: https://docs.sillytavern.app/usage/update/
|
| 4 |
+
|
| 5 |
+
This is not an installation guide. If you need installation instructions, look here:
|
| 6 |
+
https://docs.sillytavern.app/installation/windows/
|
| 7 |
+
|
| 8 |
+
This guide assumes you have already installed SillyTavern once, and know how to run it on your OS.
|
| 9 |
+
|
| 10 |
+
Linux/Termux:
|
| 11 |
+
|
| 12 |
+
You definitely installed via git, so just 'git pull' inside the SillyTavern directory.
|
| 13 |
+
|
| 14 |
+
Windows/MacOS:
|
| 15 |
+
|
| 16 |
+
Method 1 - GIT
|
| 17 |
+
|
| 18 |
+
We always recommend users install using 'git'. Here's why:
|
| 19 |
+
|
| 20 |
+
When you have installed via `git clone`, all you have to do to update is type `git pull` in a command line in the ST folder.
|
| 21 |
+
You can also try running the 'UpdateAndStart.bat' file, which will almost do the same thing. (Windows only)
|
| 22 |
+
Alternatively, if the command prompt gives you problems (and you have GitHub Desktop installed), you can use the 'Repository' menu and select 'Pull'.
|
| 23 |
+
The updates are applied automatically and safely.
|
| 24 |
+
|
| 25 |
+
If you are a developer and use a fork of ST or switch branches regularly, you can use the 'UpdateForkAndStart.bat', which works similarly to 'UpdateAndStart.bat',
|
| 26 |
+
but automatically pulls changes into your fork and handles switched branches gracefully by asking if you want to switch back.
|
| 27 |
+
|
| 28 |
+
Method 2 - ZIP
|
| 29 |
+
|
| 30 |
+
If you insist on installing via a zip, here is the tedious process for doing the update:
|
| 31 |
+
|
| 32 |
+
1. Download the new release zip.
|
| 33 |
+
2. Unzip it into a folder OUTSIDE of your current ST installation.
|
| 34 |
+
3. Do the usual setup procedure for your OS to install the NodeJS requirements.
|
| 35 |
+
|
| 36 |
+
4a. Updating 1.12.0 and above
|
| 37 |
+
|
| 38 |
+
Copy the user data directory from your data root into the data root of the new install.
|
| 39 |
+
|
| 40 |
+
By default: /data/default-user
|
| 41 |
+
|
| 42 |
+
4a. Migrating from <1.12.0 to >=1.20.0
|
| 43 |
+
Copy the following files/folders as necessary(*) from your old ST installation:
|
| 44 |
+
|
| 45 |
+
- Assets
|
| 46 |
+
- Backgrounds
|
| 47 |
+
- Characters
|
| 48 |
+
- Chats
|
| 49 |
+
- Context
|
| 50 |
+
- Groups
|
| 51 |
+
- Group chats
|
| 52 |
+
- Instruct
|
| 53 |
+
- movingUI
|
| 54 |
+
- KoboldAI Settings
|
| 55 |
+
- NovelAI Settings
|
| 56 |
+
- OpenAI Settings (Chat Completion API)
|
| 57 |
+
- TextGen Settings (Text Completion API)
|
| 58 |
+
- QuickReplies
|
| 59 |
+
- Themes
|
| 60 |
+
- User Avatars
|
| 61 |
+
- Worlds
|
| 62 |
+
- User
|
| 63 |
+
- settings.json
|
| 64 |
+
- secrets.json <---- This one is in the base folder, not /public/
|
| 65 |
+
|
| 66 |
+
(*) 'As necessary' = "If you made any custom content related to those folders".
|
| 67 |
+
None of the folders are mandatory, so only copy what you need.
|
| 68 |
+
|
| 69 |
+
**NB: DO NOT COPY THE ENTIRE /PUBLIC/ FOLDER.**
|
| 70 |
+
Doing so could break the new install and prevent new features from being present.
|
| 71 |
+
Paste those items into the /data/default-user folder of the new install.
|
| 72 |
+
|
| 73 |
+
5. Start SillyTavern once again with the method appropriate to your OS, and pray you got it right.
|
| 74 |
+
|
| 75 |
+
6. If everything shows up, you can safely delete the old ST folder.
|
UpdateAndStart.bat
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
pushd %~dp0
|
| 3 |
+
git --version > nul 2>&1
|
| 4 |
+
if %errorlevel% neq 0 (
|
| 5 |
+
echo [91mGit is not installed on this system.[0m
|
| 6 |
+
echo Install it from https://git-scm.com/downloads
|
| 7 |
+
goto end
|
| 8 |
+
) else (
|
| 9 |
+
if not exist .git (
|
| 10 |
+
echo [91mNot running from a Git repository. Reinstall using an officially supported method to get updates.[0m
|
| 11 |
+
echo See: https://docs.sillytavern.app/installation/windows/
|
| 12 |
+
goto end
|
| 13 |
+
)
|
| 14 |
+
call git pull --rebase --autostash
|
| 15 |
+
if %errorlevel% neq 0 (
|
| 16 |
+
REM incase there is still something wrong
|
| 17 |
+
echo [91mThere were errors while updating.[0m
|
| 18 |
+
echo See the update FAQ at https://docs.sillytavern.app/installation/updating/
|
| 19 |
+
goto end
|
| 20 |
+
)
|
| 21 |
+
)
|
| 22 |
+
set NODE_ENV=production
|
| 23 |
+
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
| 24 |
+
node server.js %*
|
| 25 |
+
:end
|
| 26 |
+
pause
|
| 27 |
+
popd
|
UpdateForkAndStart.bat
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
@setlocal enabledelayedexpansion
|
| 3 |
+
pushd %~dp0
|
| 4 |
+
|
| 5 |
+
echo Checking Git installation
|
| 6 |
+
git --version > nul 2>&1
|
| 7 |
+
if %errorlevel% neq 0 (
|
| 8 |
+
echo [91mGit is not installed on this system.[0m
|
| 9 |
+
echo Install it from https://git-scm.com/downloads
|
| 10 |
+
goto end
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
if not exist .git (
|
| 14 |
+
echo [91mNot running from a Git repository. Reinstall using an officially supported method to get updates.[0m
|
| 15 |
+
echo See: https://docs.sillytavern.app/installation/windows/
|
| 16 |
+
goto end
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
REM Checking current branch
|
| 20 |
+
FOR /F "tokens=*" %%i IN ('git rev-parse --abbrev-ref HEAD') DO SET CURRENT_BRANCH=%%i
|
| 21 |
+
echo Current branch: %CURRENT_BRANCH%
|
| 22 |
+
|
| 23 |
+
REM Checking for automatic branch switching configuration
|
| 24 |
+
set AUTO_SWITCH=
|
| 25 |
+
FOR /F "tokens=*" %%j IN ('git config --local script.autoSwitch') DO SET AUTO_SWITCH=%%j
|
| 26 |
+
|
| 27 |
+
SET TARGET_BRANCH=%CURRENT_BRANCH%
|
| 28 |
+
|
| 29 |
+
if NOT "!AUTO_SWITCH!"=="" (
|
| 30 |
+
if "!AUTO_SWITCH!"=="s" (
|
| 31 |
+
goto autoswitch-staging
|
| 32 |
+
)
|
| 33 |
+
if "!AUTO_SWITCH!"=="r" (
|
| 34 |
+
goto autoswitch-release
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
if "!AUTO_SWITCH!"=="staging" (
|
| 38 |
+
:autoswitch-staging
|
| 39 |
+
echo Auto-switching to staging branch
|
| 40 |
+
git checkout staging
|
| 41 |
+
SET TARGET_BRANCH=staging
|
| 42 |
+
goto update
|
| 43 |
+
)
|
| 44 |
+
if "!AUTO_SWITCH!"=="release" (
|
| 45 |
+
:autoswitch-release
|
| 46 |
+
echo Auto-switching to release branch
|
| 47 |
+
git checkout release
|
| 48 |
+
SET TARGET_BRANCH=release
|
| 49 |
+
goto update
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
echo Auto-switching defined to stay on current branch
|
| 53 |
+
goto update
|
| 54 |
+
)
|
| 55 |
+
|
| 56 |
+
if "!CURRENT_BRANCH!"=="staging" (
|
| 57 |
+
echo Staying on the current branch
|
| 58 |
+
goto update
|
| 59 |
+
)
|
| 60 |
+
if "!CURRENT_BRANCH!"=="release" (
|
| 61 |
+
echo Staying on the current branch
|
| 62 |
+
goto update
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
echo You are not on 'staging' or 'release'. You are on '!CURRENT_BRANCH!'.
|
| 66 |
+
set /p "CHOICE=Do you want to switch to 'staging' (s), 'release' (r), or stay (any other key)? "
|
| 67 |
+
if /i "!CHOICE!"=="s" (
|
| 68 |
+
echo Switching to staging branch
|
| 69 |
+
git checkout staging
|
| 70 |
+
SET TARGET_BRANCH=staging
|
| 71 |
+
goto update
|
| 72 |
+
)
|
| 73 |
+
if /i "!CHOICE!"=="r" (
|
| 74 |
+
echo Switching to release branch
|
| 75 |
+
git checkout release
|
| 76 |
+
SET TARGET_BRANCH=release
|
| 77 |
+
goto update
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
echo Staying on the current branch
|
| 81 |
+
|
| 82 |
+
:update
|
| 83 |
+
REM Checking for 'upstream' remote
|
| 84 |
+
git remote | findstr "upstream" > nul
|
| 85 |
+
if %errorlevel% equ 0 (
|
| 86 |
+
echo Updating and rebasing against 'upstream'
|
| 87 |
+
git fetch upstream
|
| 88 |
+
git rebase upstream/%TARGET_BRANCH% --autostash
|
| 89 |
+
goto install
|
| 90 |
+
)
|
| 91 |
+
|
| 92 |
+
echo Updating and rebasing against 'origin'
|
| 93 |
+
git pull --rebase --autostash origin %TARGET_BRANCH%
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
:install
|
| 97 |
+
if %errorlevel% neq 0 (
|
| 98 |
+
echo [91mThere were errors while updating.[0m
|
| 99 |
+
echo See the update FAQ at https://docs.sillytavern.app/usage/update/#common-update-problems
|
| 100 |
+
goto end
|
| 101 |
+
)
|
| 102 |
+
|
| 103 |
+
echo Installing npm packages and starting server
|
| 104 |
+
set NODE_ENV=production
|
| 105 |
+
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
| 106 |
+
node server.js %*
|
| 107 |
+
|
| 108 |
+
:end
|
| 109 |
+
pause
|
| 110 |
+
popd
|
colab/GPU.ipynb
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"attachments": {},
|
| 5 |
+
"cell_type": "markdown",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"**Links**<br>\n",
|
| 9 |
+
"Extensions API GitHub: https://github.com/SillyTavern/SillyTavern-extras/<br>\n",
|
| 10 |
+
"SillyTavern community Discord (support and discussion): https://discord.gg/sillytavern"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"cell_type": "code",
|
| 15 |
+
"execution_count": null,
|
| 16 |
+
"metadata": {},
|
| 17 |
+
"outputs": [],
|
| 18 |
+
"source": [
|
| 19 |
+
"#@title <-- Tap this if you run on Mobile { display-mode: \"form\" }\n",
|
| 20 |
+
"#Taken from KoboldAI colab\n",
|
| 21 |
+
"%%html\n",
|
| 22 |
+
"<b>Press play on the audio player to keep the tab alive. (Uses only 13MB of data)</b><br/>\n",
|
| 23 |
+
"<audio src=\"https://henk.tech/colabkobold/silence.m4a\" controls>"
|
| 24 |
+
]
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"cell_type": "code",
|
| 28 |
+
"execution_count": null,
|
| 29 |
+
"metadata": {
|
| 30 |
+
"cellView": "form",
|
| 31 |
+
"id": "lVftocpwCoYw"
|
| 32 |
+
},
|
| 33 |
+
"outputs": [],
|
| 34 |
+
"source": [
|
| 35 |
+
"#@markdown (RECOMMENDED) Generates an API key for you to use with the API\n",
|
| 36 |
+
"secure = False #@param {type:\"boolean\"}\n",
|
| 37 |
+
"#@markdown Allows to run SillyTavern Extras on CPU (use if you're out of daily GPU allowance)\n",
|
| 38 |
+
"use_cpu = False #@param {type:\"boolean\"}\n",
|
| 39 |
+
"#@markdown Allows to run Stable Diffusion pipeline on CPU (slow!)\n",
|
| 40 |
+
"use_sd_cpu = False #@param {type:\"boolean\"}\n",
|
| 41 |
+
"#@markdown ***\n",
|
| 42 |
+
"#@markdown Enables the WebSearch module\n",
|
| 43 |
+
"extras_enable_websearch = True #@param {type:\"boolean\"}\n",
|
| 44 |
+
"#@markdown ***\n",
|
| 45 |
+
"#@markdown Loads the image captioning module\n",
|
| 46 |
+
"extras_enable_caption = True #@param {type:\"boolean\"}\n",
|
| 47 |
+
"captioning_model = \"Salesforce/blip-image-captioning-large\" #@param [ \"Salesforce/blip-image-captioning-large\", \"Salesforce/blip-image-captioning-base\" ]\n",
|
| 48 |
+
"#@markdown * Salesforce/blip-image-captioning-large - good base model\n",
|
| 49 |
+
"#@markdown * Salesforce/blip-image-captioning-base - slightly faster but less accurate\n",
|
| 50 |
+
"#@markdown ***\n",
|
| 51 |
+
"#@markdown Loads the sentiment classification model\n",
|
| 52 |
+
"extras_enable_classify = True #@param {type:\"boolean\"}\n",
|
| 53 |
+
"classification_model = \"nateraw/bert-base-uncased-emotion\" #@param [\"nateraw/bert-base-uncased-emotion\", \"joeddav/distilbert-base-uncased-go-emotions-student\"]\n",
|
| 54 |
+
"#@markdown * nateraw/bert-base-uncased-emotion = 6 supported emotions<br>\n",
|
| 55 |
+
"#@markdown * joeddav/distilbert-base-uncased-go-emotions-student = 28 supported emotions\n",
|
| 56 |
+
"#@markdown ***\n",
|
| 57 |
+
"#@markdown Loads the story summarization module\n",
|
| 58 |
+
"extras_enable_summarize = True #@param {type:\"boolean\"}\n",
|
| 59 |
+
"summarization_model = \"slauw87/bart_summarisation\" #@param [ \"slauw87/bart_summarisation\", \"Qiliang/bart-large-cnn-samsum-ChatGPT_v3\", \"Qiliang/bart-large-cnn-samsum-ElectrifAi_v10\", \"distilbart-xsum-12-3\" ]\n",
|
| 60 |
+
"#@markdown * slauw87/bart_summarisation - general purpose summarization model\n",
|
| 61 |
+
"#@markdown * Qiliang/bart-large-cnn-samsum-ChatGPT_v3 - summarization model optimized for chats\n",
|
| 62 |
+
"#@markdown * Qiliang/bart-large-cnn-samsum-ElectrifAi_v10 - nice results so far, but still being evaluated\n",
|
| 63 |
+
"#@markdown * distilbart-xsum-12-3 - faster, but pretty basic alternative\n",
|
| 64 |
+
"#@markdown ***\n",
|
| 65 |
+
"#@markdown Enables Silero text-to-speech module\n",
|
| 66 |
+
"extras_enable_silero_tts = True #@param {type:\"boolean\"}\n",
|
| 67 |
+
"#@markdown Enables Microsoft Edge text-to-speech module\n",
|
| 68 |
+
"extras_enable_edge_tts = True #@param {type:\"boolean\"}\n",
|
| 69 |
+
"#@markdown Enables RVC module\n",
|
| 70 |
+
"extras_enable_rvc = False #@param {type:\"boolean\"}\n",
|
| 71 |
+
"#@markdown ***\n",
|
| 72 |
+
"#@markdown Enables Whisper speech recognition module\n",
|
| 73 |
+
"extras_enable_whisper_stt = True #@param {type:\"boolean\"}\n",
|
| 74 |
+
"whisper_model = \"base.en\" #@param [ \"tiny.en\", \"base.en\", \"small.en\", \"medium.en\", \"tiny\", \"base\", \"small\", \"medium\", \"large\" ]\n",
|
| 75 |
+
"#@markdown There are five model sizes, four with English-only versions, offering speed and accuracy tradeoffs.\n",
|
| 76 |
+
"#@markdown The .en models for English-only applications tend to perform better, especially for the tiny.en and base.en models.\n",
|
| 77 |
+
"#@markdown ***\n",
|
| 78 |
+
"#@markdown Enables SD picture generation\n",
|
| 79 |
+
"extras_enable_sd = True #@param {type:\"boolean\"}\n",
|
| 80 |
+
"sd_model = \"ckpt/anything-v4.5-vae-swapped\" #@param [ \"ckpt/anything-v4.5-vae-swapped\", \"hakurei/waifu-diffusion\", \"philz1337/clarity\", \"prompthero/openjourney\", \"ckpt/sd15\", \"stabilityai/stable-diffusion-2-1-base\" ]\n",
|
| 81 |
+
"#@markdown * ckpt/anything-v4.5-vae-swapped - anime style model\n",
|
| 82 |
+
"#@markdown * hakurei/waifu-diffusion - anime style model\n",
|
| 83 |
+
"#@markdown * philz1337/clarity - realistic style model\n",
|
| 84 |
+
"#@markdown * prompthero/openjourney - midjourney style model\n",
|
| 85 |
+
"#@markdown * ckpt/sd15 - base SD 1.5\n",
|
| 86 |
+
"#@markdown * stabilityai/stable-diffusion-2-1-base - base SD 2.1\n",
|
| 87 |
+
"#@markdown ***\n",
|
| 88 |
+
"#@markdown Enables ChromaDB module\n",
|
| 89 |
+
"extras_enable_chromadb = True #@param {type:\"boolean\"}\n",
|
| 90 |
+
"\n",
|
| 91 |
+
"import subprocess\n",
|
| 92 |
+
"import secrets\n",
|
| 93 |
+
"\n",
|
| 94 |
+
"# ---\n",
|
| 95 |
+
"# SillyTavern extras\n",
|
| 96 |
+
"extras_url = '(disabled)'\n",
|
| 97 |
+
"params = []\n",
|
| 98 |
+
"if use_cpu:\n",
|
| 99 |
+
" params.append('--cpu')\n",
|
| 100 |
+
"if use_sd_cpu:\n",
|
| 101 |
+
" params.append('--sd-cpu')\n",
|
| 102 |
+
"if secure:\n",
|
| 103 |
+
" params.append('--secure')\n",
|
| 104 |
+
"params.append('--share')\n",
|
| 105 |
+
"modules = []\n",
|
| 106 |
+
"\n",
|
| 107 |
+
"if extras_enable_caption:\n",
|
| 108 |
+
" modules.append('caption')\n",
|
| 109 |
+
"if extras_enable_summarize:\n",
|
| 110 |
+
" modules.append('summarize')\n",
|
| 111 |
+
"if extras_enable_classify:\n",
|
| 112 |
+
" modules.append('classify')\n",
|
| 113 |
+
"if extras_enable_sd:\n",
|
| 114 |
+
" modules.append('sd')\n",
|
| 115 |
+
"if extras_enable_silero_tts:\n",
|
| 116 |
+
" modules.append('silero-tts')\n",
|
| 117 |
+
"if extras_enable_edge_tts:\n",
|
| 118 |
+
" modules.append('edge-tts')\n",
|
| 119 |
+
"if extras_enable_chromadb:\n",
|
| 120 |
+
" modules.append('chromadb')\n",
|
| 121 |
+
"if extras_enable_whisper_stt:\n",
|
| 122 |
+
" modules.append('whisper-stt')\n",
|
| 123 |
+
" params.append(f'--stt-whisper-model-path={whisper_model}')\n",
|
| 124 |
+
"if extras_enable_rvc:\n",
|
| 125 |
+
" modules.append('rvc')\n",
|
| 126 |
+
" params.append('--max-content-length=2000')\n",
|
| 127 |
+
" params.append('--rvc-save-file')\n",
|
| 128 |
+
"\n",
|
| 129 |
+
"\n",
|
| 130 |
+
"if extras_enable_websearch:\n",
|
| 131 |
+
" print(\"Enabling WebSearch module\")\n",
|
| 132 |
+
" modules.append('websearch')\n",
|
| 133 |
+
" !apt update\n",
|
| 134 |
+
" !apt install -y chromium-chromedriver\n",
|
| 135 |
+
"\n",
|
| 136 |
+
"params.append(f'--classification-model={classification_model}')\n",
|
| 137 |
+
"params.append(f'--summarization-model={summarization_model}')\n",
|
| 138 |
+
"params.append(f'--captioning-model={captioning_model}')\n",
|
| 139 |
+
"params.append(f'--sd-model={sd_model}')\n",
|
| 140 |
+
"params.append(f'--enable-modules={\",\".join(modules)}')\n",
|
| 141 |
+
"\n",
|
| 142 |
+
"\n",
|
| 143 |
+
"%cd /\n",
|
| 144 |
+
"!git clone https://github.com/SillyTavern/SillyTavern-extras\n",
|
| 145 |
+
"%cd /SillyTavern-extras\n",
|
| 146 |
+
"!git clone https://github.com/Cohee1207/tts_samples\n",
|
| 147 |
+
"!npm install -g localtunnel\n",
|
| 148 |
+
"%pip install -r requirements.txt\n",
|
| 149 |
+
"!wget https://github.com/cloudflare/cloudflared/releases/download/2023.5.0/cloudflared-linux-amd64 -O /tmp/cloudflared-linux-amd64\n",
|
| 150 |
+
"!chmod +x /tmp/cloudflared-linux-amd64\n",
|
| 151 |
+
"\n",
|
| 152 |
+
"if extras_enable_rvc:\n",
|
| 153 |
+
" print(\"Installing RVC requirements\")\n",
|
| 154 |
+
" %pip install -r requirements-rvc.txt\n",
|
| 155 |
+
"\n",
|
| 156 |
+
"# Generate a random API key\n",
|
| 157 |
+
"api_key = secrets.token_hex(5)\n",
|
| 158 |
+
"\n",
|
| 159 |
+
"# Write the API key to api_key.txt\n",
|
| 160 |
+
"with open('./api_key.txt', 'w') as f:\n",
|
| 161 |
+
" f.write(api_key)\n",
|
| 162 |
+
"print(f\"API Key generated: {api_key}\")\n",
|
| 163 |
+
"\n",
|
| 164 |
+
"cmd = f\"python server.py {' '.join(params)}\"\n",
|
| 165 |
+
"print(cmd)\n",
|
| 166 |
+
"extras_process = subprocess.Popen(\n",
|
| 167 |
+
" cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd='/SillyTavern-extras', shell=True)\n",
|
| 168 |
+
"print('processId:', extras_process.pid)\n",
|
| 169 |
+
"while True:\n",
|
| 170 |
+
" line = extras_process.stdout.readline().decode().strip()\n",
|
| 171 |
+
" if line != None and line != '':\n",
|
| 172 |
+
" print(line)\n"
|
| 173 |
+
]
|
| 174 |
+
}
|
| 175 |
+
],
|
| 176 |
+
"metadata": {
|
| 177 |
+
"accelerator": "GPU",
|
| 178 |
+
"colab": {
|
| 179 |
+
"private_outputs": true,
|
| 180 |
+
"provenance": []
|
| 181 |
+
},
|
| 182 |
+
"gpuClass": "standard",
|
| 183 |
+
"kernelspec": {
|
| 184 |
+
"display_name": "Python 3",
|
| 185 |
+
"name": "python3"
|
| 186 |
+
},
|
| 187 |
+
"language_info": {
|
| 188 |
+
"name": "python"
|
| 189 |
+
}
|
| 190 |
+
},
|
| 191 |
+
"nbformat": 4,
|
| 192 |
+
"nbformat_minor": 0
|
| 193 |
+
}
|
default/!DO-NOT-EDIT-THESE-FILES.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
These are master copies of the default content files and are managed by SillyTavern.
|
| 2 |
+
|
| 3 |
+
Editing any of these files would not only have no effect, but will also cause merge conflicts during update pulls.
|
| 4 |
+
|
| 5 |
+
You should edit their respective copies instead, for example:
|
| 6 |
+
|
| 7 |
+
1. /default/config.yaml => /config.yaml
|
| 8 |
+
2. /default/public/css/user.css => /public/css/user.css
|
| 9 |
+
etc.
|
| 10 |
+
|
| 11 |
+
Any questions? You're always welcome at our official documentation website:
|
| 12 |
+
|
| 13 |
+
https://docs.sillytavern.app/
|
default/config.yaml
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -- DATA CONFIGURATION --
|
| 2 |
+
# Root directory for user data storage
|
| 3 |
+
dataRoot: ./data
|
| 4 |
+
# -- SERVER CONFIGURATION --
|
| 5 |
+
# Listen for incoming connections
|
| 6 |
+
listen: false
|
| 7 |
+
# Listen on a specific address, supports IPv4 and IPv6
|
| 8 |
+
listenAddress:
|
| 9 |
+
ipv4: 0.0.0.0
|
| 10 |
+
ipv6: '[::]'
|
| 11 |
+
# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
|
| 12 |
+
# - Use option "auto" to automatically detect support
|
| 13 |
+
# - Use true or false (no qoutes) to enable or disable each protocol
|
| 14 |
+
protocol:
|
| 15 |
+
ipv4: true
|
| 16 |
+
ipv6: false
|
| 17 |
+
# Prefers IPv6 for DNS. Enable this on ISPs that don't have issues with IPv6
|
| 18 |
+
dnsPreferIPv6: false
|
| 19 |
+
# -- BROWSER LAUNCH CONFIGURATION --
|
| 20 |
+
browserLaunch:
|
| 21 |
+
# Open the browser automatically on server startup.
|
| 22 |
+
enabled: true
|
| 23 |
+
# Browser to use for opening the URL.
|
| 24 |
+
# NOT SUPPORTED ON ANDROID DEVICES.
|
| 25 |
+
# - Use "default" to use the system default browser
|
| 26 |
+
# - Use "firefox", "chrome", "edge"
|
| 27 |
+
browser: 'default'
|
| 28 |
+
# Overrides the hostname that opens in the browser.
|
| 29 |
+
# - Use "auto" to let the server decide
|
| 30 |
+
# - Use options like 'localhost', 'st.example.com'
|
| 31 |
+
hostname: 'auto'
|
| 32 |
+
# Overrides the port for run in the browser.
|
| 33 |
+
# - Use -1 to use the server port.
|
| 34 |
+
# - Specify a port to override the default.
|
| 35 |
+
port: -1
|
| 36 |
+
# Avoids using 'localhost' as the hostname in auto mode.
|
| 37 |
+
# Use if you don't have 'localhost' in your hosts file
|
| 38 |
+
avoidLocalhost: false
|
| 39 |
+
# Server port
|
| 40 |
+
port: 8000
|
| 41 |
+
# -- SSL options --
|
| 42 |
+
ssl:
|
| 43 |
+
# Enable SSL/TLS encryption
|
| 44 |
+
enabled: false
|
| 45 |
+
# Path to certificate (relative to server root)
|
| 46 |
+
certPath: "./certs/cert.pem"
|
| 47 |
+
# Path to private key (relative to server root)
|
| 48 |
+
keyPath: "./certs/privkey.pem"
|
| 49 |
+
# Private key passphrase (leave empty if not needed)
|
| 50 |
+
# For better security, use a CLI argument or an environment variable (SILLYTAVERN_SSL_KEYPASSPHRASE)
|
| 51 |
+
keyPassphrase: ""
|
| 52 |
+
# -- SECURITY CONFIGURATION --
|
| 53 |
+
# Toggle whitelist mode
|
| 54 |
+
whitelistMode: true
|
| 55 |
+
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
| 56 |
+
enableForwardedWhitelist: true
|
| 57 |
+
# Whitelist of allowed IP addresses
|
| 58 |
+
whitelist:
|
| 59 |
+
- ::1
|
| 60 |
+
- 127.0.0.1
|
| 61 |
+
# Automatically whitelist Docker host and gateway IPs
|
| 62 |
+
whitelistDockerHosts: true
|
| 63 |
+
# Toggle basic authentication for endpoints
|
| 64 |
+
basicAuthMode: false
|
| 65 |
+
# Basic authentication credentials
|
| 66 |
+
basicAuthUser:
|
| 67 |
+
username: "user"
|
| 68 |
+
password: "password"
|
| 69 |
+
# Enables CORS proxy middleware
|
| 70 |
+
enableCorsProxy: false
|
| 71 |
+
# -- REQUEST PROXY CONFIGURATION --
|
| 72 |
+
requestProxy:
|
| 73 |
+
# If a proxy is enabled, all outgoing HTTP/HTTPS requests will be routed through it.
|
| 74 |
+
enabled: false
|
| 75 |
+
# Proxy URL. Possible protocols: http, https, socks, socks5, socks4, pac
|
| 76 |
+
url: "socks5://username:password@example.com:1080"
|
| 77 |
+
# Proxy bypass list. Requests to these hosts won't be routed through the proxy.
|
| 78 |
+
bypass:
|
| 79 |
+
- localhost
|
| 80 |
+
- 127.0.0.1
|
| 81 |
+
# Enable multi-user mode
|
| 82 |
+
enableUserAccounts: false
|
| 83 |
+
# Enable discreet login mode: hides user list on the login screen
|
| 84 |
+
enableDiscreetLogin: false
|
| 85 |
+
# If `basicAuthMode` and this are enabled then
|
| 86 |
+
# the username and passwords for basic auth are the same as those
|
| 87 |
+
# for the individual accounts
|
| 88 |
+
perUserBasicAuth: false
|
| 89 |
+
|
| 90 |
+
# -- SSO LOGIN CONFIGURATION --
|
| 91 |
+
sso:
|
| 92 |
+
# Enable's authlia based auto login. Only enable this if you
|
| 93 |
+
# have setup and installed Authelia as a middle-ware on your
|
| 94 |
+
# reverse proxy
|
| 95 |
+
# https://www.authelia.com/
|
| 96 |
+
# This will use auto login to an account with the same username
|
| 97 |
+
# as that used for authlia. (Ensure the username in authlia
|
| 98 |
+
# is an exact match in lowercase with that in sillytavern)
|
| 99 |
+
autheliaAuth: false
|
| 100 |
+
# Enable's authentik based auto login. Only enable this if you
|
| 101 |
+
# have setup and installed Authentik as a middle-ware on your
|
| 102 |
+
# reverse proxy.
|
| 103 |
+
# https://goauthentik.io/
|
| 104 |
+
# This will use auto login to an account with the same username
|
| 105 |
+
# as that used for authentik. (Ensure the username in authentik
|
| 106 |
+
# is an exact match in lowercase with that in sillytavern).
|
| 107 |
+
authentikAuth: false
|
| 108 |
+
|
| 109 |
+
# Host whitelist configuration. Recommended if you're using a listen mode
|
| 110 |
+
hostWhitelist:
|
| 111 |
+
# Enable or disable host whitelisting
|
| 112 |
+
enabled: false
|
| 113 |
+
# Scan incoming requests for potential host header spoofing
|
| 114 |
+
scan: true
|
| 115 |
+
# List of allowed hosts. Do not include localhost or IPs, these are safe.
|
| 116 |
+
# Use a dot to create subdomain patterns.
|
| 117 |
+
# Examples:
|
| 118 |
+
# - example.com
|
| 119 |
+
# - .trycloudflare.com
|
| 120 |
+
hosts: []
|
| 121 |
+
|
| 122 |
+
# User session timeout *in seconds* (defaults to 24 hours).
|
| 123 |
+
## Set to a positive number to expire session after a certain time of inactivity
|
| 124 |
+
## Set to 0 to expire session when the browser is closed
|
| 125 |
+
## Set to a negative number to disable session expiration
|
| 126 |
+
sessionTimeout: -1
|
| 127 |
+
# Disable CSRF protection - NOT RECOMMENDED
|
| 128 |
+
disableCsrfProtection: false
|
| 129 |
+
# Disable startup security checks - NOT RECOMMENDED
|
| 130 |
+
securityOverride: false
|
| 131 |
+
# -- LOGGING CONFIGURATION --
|
| 132 |
+
logging:
|
| 133 |
+
# Enable access logging to access.log file and console output
|
| 134 |
+
# Records new connections with timestamp, IP address and user agent
|
| 135 |
+
enableAccessLog: true
|
| 136 |
+
# Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
|
| 137 |
+
minLogLevel: 0
|
| 138 |
+
# -- RATE LIMITING CONFIGURATION --
|
| 139 |
+
rateLimiting:
|
| 140 |
+
# Use X-Real-IP header instead of socket IP for rate limiting
|
| 141 |
+
# Only enable this if you are using a properly configured reverse proxy (like Nginx/traefik/Caddy)
|
| 142 |
+
preferRealIpHeader: false
|
| 143 |
+
|
| 144 |
+
## BACKUP CONFIGURATION
|
| 145 |
+
backups:
|
| 146 |
+
# Common settings for all backup types
|
| 147 |
+
common:
|
| 148 |
+
# Number of backups to keep for each chat and settings file
|
| 149 |
+
numberOfBackups: 50
|
| 150 |
+
chat:
|
| 151 |
+
# Enable automatic chat backups
|
| 152 |
+
enabled: true
|
| 153 |
+
# Verify integrity of chat files before saving
|
| 154 |
+
checkIntegrity: true
|
| 155 |
+
# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
|
| 156 |
+
maxTotalBackups: -1
|
| 157 |
+
# Interval in milliseconds to throttle chat backups per user
|
| 158 |
+
throttleInterval: 10000
|
| 159 |
+
|
| 160 |
+
# THUMBNAILING CONFIGURATION
|
| 161 |
+
thumbnails:
|
| 162 |
+
# Enable thumbnail generation
|
| 163 |
+
enabled: true
|
| 164 |
+
# Image format of avatar thumbnails:
|
| 165 |
+
# * "jpg": best compression with adjustable quality, no transparency
|
| 166 |
+
# * "png": preserves transparency but increases filesize by about 100%
|
| 167 |
+
# Changing this only affects new thumbnails. To recreate the old ones, clear out /thumbnails folder in your user data.
|
| 168 |
+
format: "jpg"
|
| 169 |
+
# JPG thumbnail quality (0-100)
|
| 170 |
+
quality: 95
|
| 171 |
+
# Maximum thumbnail dimensions per type [width, height]
|
| 172 |
+
dimensions: { 'bg': [160, 90], 'avatar': [96, 144], 'persona': [96, 144] }
|
| 173 |
+
|
| 174 |
+
# PERFORMANCE-RELATED CONFIGURATION
|
| 175 |
+
performance:
|
| 176 |
+
# Enables lazy loading of character cards. Improves performances with large card libraries.
|
| 177 |
+
# May have compatibility issues with some extensions.
|
| 178 |
+
lazyLoadCharacters: false
|
| 179 |
+
# The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
|
| 180 |
+
memoryCacheCapacity: '100mb'
|
| 181 |
+
# Enables disk caching for character cards. Improves performances with large card libraries.
|
| 182 |
+
useDiskCache: true
|
| 183 |
+
|
| 184 |
+
# CACHE BUSTER CONFIGURATION
|
| 185 |
+
# IMPORTANT: Requires localhost or a domain with HTTPS, otherwise will not work!
|
| 186 |
+
cacheBuster:
|
| 187 |
+
# Clear browser cache on first load or after uploading image files
|
| 188 |
+
enabled: false
|
| 189 |
+
# Only clear cache for the specified user agent regex pattern
|
| 190 |
+
# Example: 'firefox|safari' (case-insensitive)
|
| 191 |
+
userAgentPattern: ''
|
| 192 |
+
|
| 193 |
+
# Allow secret keys exposure via API
|
| 194 |
+
allowKeysExposure: false
|
| 195 |
+
# Skip new default content checks
|
| 196 |
+
skipContentCheck: false
|
| 197 |
+
# Allowed hosts for card downloads
|
| 198 |
+
whitelistImportDomains:
|
| 199 |
+
- localhost
|
| 200 |
+
- cdn.discordapp.com
|
| 201 |
+
- files.catbox.moe
|
| 202 |
+
- raw.githubusercontent.com
|
| 203 |
+
- char-archive.evulid.cc
|
| 204 |
+
# API request overrides (for KoboldAI and Text Completion APIs)
|
| 205 |
+
## Note: host includes the port number if it's not the default (80 or 443)
|
| 206 |
+
## Format is an array of objects:
|
| 207 |
+
## - hosts:
|
| 208 |
+
## - example.com
|
| 209 |
+
## headers:
|
| 210 |
+
## Content-Type: application/json
|
| 211 |
+
## - 127.0.0.1:5001
|
| 212 |
+
## headers:
|
| 213 |
+
## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
|
| 214 |
+
requestOverrides: []
|
| 215 |
+
|
| 216 |
+
# EXTENSIONS CONFIGURATION
|
| 217 |
+
extensions:
|
| 218 |
+
# Enable UI extensions
|
| 219 |
+
enabled: true
|
| 220 |
+
# Automatically update extensions when a release version changes
|
| 221 |
+
autoUpdate: true
|
| 222 |
+
models:
|
| 223 |
+
# Enables automatic model download from HuggingFace
|
| 224 |
+
autoDownload: true
|
| 225 |
+
# Additional models for extensions. Expects model IDs from HuggingFace model hub in ONNX format
|
| 226 |
+
classification: Cohee/distilbert-base-uncased-go-emotions-onnx
|
| 227 |
+
captioning: Xenova/vit-gpt2-image-captioning
|
| 228 |
+
embedding: Cohee/jina-embeddings-v2-base-en
|
| 229 |
+
speechToText: Xenova/whisper-small
|
| 230 |
+
textToSpeech: Xenova/speecht5_tts
|
| 231 |
+
|
| 232 |
+
# Additional model tokenizers can be downloaded on demand.
|
| 233 |
+
# Disabling will fallback to another locally available tokenizer.
|
| 234 |
+
enableDownloadableTokenizers: true
|
| 235 |
+
# -- OPENAI CONFIGURATION --
|
| 236 |
+
# A placeholder message to use in strict prompt post-processing mode when the prompt doesn't start with a user message
|
| 237 |
+
promptPlaceholder: "[Start a new chat]"
|
| 238 |
+
openai:
|
| 239 |
+
# Will send a random user ID to OpenAI completion API
|
| 240 |
+
randomizeUserId: false
|
| 241 |
+
# If not empty, will add this as a system message to the start of every caption completion prompt
|
| 242 |
+
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
|
| 243 |
+
# Not used in image inlining mode
|
| 244 |
+
captionSystemPrompt: ""
|
| 245 |
+
# -- DEEPL TRANSLATION CONFIGURATION --
|
| 246 |
+
deepl:
|
| 247 |
+
# Available options: default, more, less, prefer_more, prefer_less
|
| 248 |
+
formality: default
|
| 249 |
+
# -- MISTRAL API CONFIGURATION --
|
| 250 |
+
mistral:
|
| 251 |
+
# Enables prefilling of the reply with the last assistant message in the prompt
|
| 252 |
+
# CAUTION: The prefix is echoed into the completion. You may want to use regex to trim it out.
|
| 253 |
+
enablePrefix: false
|
| 254 |
+
# -- OLLAMA API CONFIGURATION --
|
| 255 |
+
ollama:
|
| 256 |
+
# Controls how long the model will stay loaded into memory following the request
|
| 257 |
+
# * -1: Keep the model loaded indefinitely
|
| 258 |
+
# * 0: Unload the model immediately after the request
|
| 259 |
+
# * N (any positive number): Keep the model loaded for N seconds after the request.
|
| 260 |
+
keepAlive: -1
|
| 261 |
+
# Controls the "num_batch" (batch size) parameter of the generation request
|
| 262 |
+
# * -1: Use the default value of the model
|
| 263 |
+
# * N (positive number): Use the specified value. Must be a power of 2, e.g. 128, 256, 512, etc.
|
| 264 |
+
batchSize: -1
|
| 265 |
+
# -- ANTHROPIC CLAUDE API CONFIGURATION --
|
| 266 |
+
claude:
|
| 267 |
+
# Enables caching of the system prompt (if supported).
|
| 268 |
+
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
| 269 |
+
# -- IMPORTANT! --
|
| 270 |
+
# Use only when the prompt before the chat history is static and doesn't change between requests
|
| 271 |
+
# (e.g {{random}} macro or lorebooks not as in-chat injections).
|
| 272 |
+
# Otherwise, you'll just waste money on cache misses.
|
| 273 |
+
enableSystemPromptCache: false
|
| 274 |
+
# Enables caching of the message history at depth (if supported).
|
| 275 |
+
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
| 276 |
+
# -- IMPORTANT! --
|
| 277 |
+
# Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
|
| 278 |
+
# Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
|
| 279 |
+
# should be ideal for most use cases.
|
| 280 |
+
# Any value other than a non-negative integer will be ignored and caching at depth will not be enabled.
|
| 281 |
+
cachingAtDepth: -1
|
| 282 |
+
# Use 1h TTL instead of the default 5m.
|
| 283 |
+
## 5m: base price x 1.25
|
| 284 |
+
## 1h: base price x 2
|
| 285 |
+
extendedTTL: false
|
| 286 |
+
# -- GOOGLE GEMINI API CONFIGURATION --
|
| 287 |
+
gemini:
|
| 288 |
+
# API endpoint version ("v1beta" or "v1alpha")
|
| 289 |
+
apiVersion: 'v1beta'
|
| 290 |
+
# Enables caching of the system prompt (if supported). Only for OpenRouter.
|
| 291 |
+
# -- IMPORTANT! --
|
| 292 |
+
# Use only when the prompt before the chat history is static and doesn't change between requests
|
| 293 |
+
# (e.g {{random}} macro or lorebooks not as in-chat injections).
|
| 294 |
+
# Otherwise, you'll just waste money on cache misses.
|
| 295 |
+
enableSystemPromptCache: false
|
| 296 |
+
# https://ai.google.dev/gemini-api/docs/imagen#imagen-configuration
|
| 297 |
+
image:
|
| 298 |
+
# Leave empty to use the API-default value.
|
| 299 |
+
personGeneration: 'allow_adult'
|
| 300 |
+
# -- SERVER PLUGIN CONFIGURATION --
|
| 301 |
+
enableServerPlugins: false
|
| 302 |
+
# Attempt to automatically update server plugins on startup
|
| 303 |
+
enableServerPluginsAutoUpdate: true
|
default/content/Char_Avatar_Comfy_Workflow.json
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"3": {
|
| 3 |
+
"inputs": {
|
| 4 |
+
"seed": "%seed%",
|
| 5 |
+
"steps": "%steps%",
|
| 6 |
+
"cfg": "%scale%",
|
| 7 |
+
"sampler_name": "%sampler%",
|
| 8 |
+
"scheduler": "%scheduler%",
|
| 9 |
+
"denoise": "%denoise%",
|
| 10 |
+
"model": [
|
| 11 |
+
"4",
|
| 12 |
+
0
|
| 13 |
+
],
|
| 14 |
+
"positive": [
|
| 15 |
+
"6",
|
| 16 |
+
0
|
| 17 |
+
],
|
| 18 |
+
"negative": [
|
| 19 |
+
"7",
|
| 20 |
+
0
|
| 21 |
+
],
|
| 22 |
+
"latent_image": [
|
| 23 |
+
"12",
|
| 24 |
+
0
|
| 25 |
+
]
|
| 26 |
+
},
|
| 27 |
+
"class_type": "KSampler",
|
| 28 |
+
"_meta": {
|
| 29 |
+
"title": "KSampler"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"4": {
|
| 33 |
+
"inputs": {
|
| 34 |
+
"ckpt_name": "%model%"
|
| 35 |
+
},
|
| 36 |
+
"class_type": "CheckpointLoaderSimple",
|
| 37 |
+
"_meta": {
|
| 38 |
+
"title": "Load Checkpoint"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"6": {
|
| 42 |
+
"inputs": {
|
| 43 |
+
"text": "%prompt%",
|
| 44 |
+
"clip": [
|
| 45 |
+
"4",
|
| 46 |
+
1
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"class_type": "CLIPTextEncode",
|
| 50 |
+
"_meta": {
|
| 51 |
+
"title": "CLIP Text Encode (Prompt)"
|
| 52 |
+
}
|
| 53 |
+
},
|
| 54 |
+
"7": {
|
| 55 |
+
"inputs": {
|
| 56 |
+
"text": "%negative_prompt%",
|
| 57 |
+
"clip": [
|
| 58 |
+
"4",
|
| 59 |
+
1
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
"class_type": "CLIPTextEncode",
|
| 63 |
+
"_meta": {
|
| 64 |
+
"title": "CLIP Text Encode (Negative Prompt)"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"8": {
|
| 68 |
+
"inputs": {
|
| 69 |
+
"samples": [
|
| 70 |
+
"3",
|
| 71 |
+
0
|
| 72 |
+
],
|
| 73 |
+
"vae": [
|
| 74 |
+
"4",
|
| 75 |
+
2
|
| 76 |
+
]
|
| 77 |
+
},
|
| 78 |
+
"class_type": "VAEDecode",
|
| 79 |
+
"_meta": {
|
| 80 |
+
"title": "VAE Decode"
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"9": {
|
| 84 |
+
"inputs": {
|
| 85 |
+
"filename_prefix": "SillyTavern",
|
| 86 |
+
"images": [
|
| 87 |
+
"8",
|
| 88 |
+
0
|
| 89 |
+
]
|
| 90 |
+
},
|
| 91 |
+
"class_type": "SaveImage",
|
| 92 |
+
"_meta": {
|
| 93 |
+
"title": "Save Image"
|
| 94 |
+
}
|
| 95 |
+
},
|
| 96 |
+
"10": {
|
| 97 |
+
"inputs": {
|
| 98 |
+
"image": "%char_avatar%"
|
| 99 |
+
},
|
| 100 |
+
"class_type": "ETN_LoadImageBase64",
|
| 101 |
+
"_meta": {
|
| 102 |
+
"title": "Load Image (Base64) [https://github.com/Acly/comfyui-tooling-nodes]"
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
"12": {
|
| 106 |
+
"inputs": {
|
| 107 |
+
"pixels": [
|
| 108 |
+
"13",
|
| 109 |
+
0
|
| 110 |
+
],
|
| 111 |
+
"vae": [
|
| 112 |
+
"4",
|
| 113 |
+
2
|
| 114 |
+
]
|
| 115 |
+
},
|
| 116 |
+
"class_type": "VAEEncode",
|
| 117 |
+
"_meta": {
|
| 118 |
+
"title": "VAE Encode"
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
"13": {
|
| 122 |
+
"inputs": {
|
| 123 |
+
"upscale_method": "bicubic",
|
| 124 |
+
"width": "%width%",
|
| 125 |
+
"height": "%height%",
|
| 126 |
+
"crop": "center",
|
| 127 |
+
"image": [
|
| 128 |
+
"10",
|
| 129 |
+
0
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"class_type": "ImageScale",
|
| 133 |
+
"_meta": {
|
| 134 |
+
"title": "Upscale Image"
|
| 135 |
+
}
|
| 136 |
+
}
|
| 137 |
+
}
|