Auto-Commit: 2026-10-29 01:51:44
This commit is contained in:
1 parent
68bb73ce83
commit
0b2bcb34af
5 files changed
+1017
-1438
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import js from '@eslint/js';
|
||||
import globals from 'globals';
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
'node_modules/**',
|
||||
'uploads/**',
|
||||
'dist/**',
|
||||
'.wrangler/**',
|
||||
'public/**',
|
||||
],
|
||||
},
|
||||
js.configs.recommended,
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: 'module',
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'no-undef': 'off',
|
||||
'no-console': 'off',
|
||||
eqeqeq: ['error', 'smart'],
|
||||
'no-empty': ['error', { allowEmptyCatch: true }],
|
||||
},
|
||||
},
|
||||
];
|
||||
Generated
+972
-1434
File diff suppressed because it is too large.
Load diff
+12
-2
@@ -4,7 +4,12 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "node src/server.js",
|
||||
"dev": "node src/server.js"
|
||||
"dev": "node src/server.js",
|
||||
"test": "node --test tests/",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/node-server": "^2.1.5",
|
||||
@@ -12,6 +17,11 @@
|
||||
"hono": "^4.13.13",
|
||||
"pg": "^8.23.1"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.33.0",
|
||||
"eslint": "^9.33.0",
|
||||
"globals": "^16.4.0",
|
||||
"prettier": "^3.6.2"
|
||||
},
|
||||
"description": "Solus – das Social Media, in dem du der einzige Mensch bist (KI-only Social Network mit PostgreSQL)"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// Multi-provider AI engine for Solus.
|
||||
// Supports: MiniMax (default), OpenAI, OpenRouter, Gemini, Anthropic, LiteLLM, Mistral, Ollama.
|
||||
import { uid, getAllSettings } from './db.js';
|
||||
import { getAllSettings } from './db.js';
|
||||
import { saveImageBuffer } from './images.js';
|
||||
|
||||
function getEnv(env) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { bodyLimit } from 'hono/body-limit';
|
||||
import { adminGuard } from './auth.js';
|
||||
import { rateLimit } from './rateLimit.js';
|
||||
import { pool, initDb, uid, getChars, safeJson, getState, setState, updateUserActivity, getUserActivityStatus, isUserActive, banCharacter, getAllSettings, saveSettings, updateCharacter, getBudgetStatus } from './db.js';
|
||||
import { SEED_CHARACTERS, personaSystemPrompt, buildDefaultSystemPrompt, pickDailyChar, seedCharacters } from './personas.js';
|
||||
import { SEED_CHARACTERS, personaSystemPrompt, buildDefaultSystemPrompt, pickDailyChar } from './personas.js';
|
||||
import { chatText, genImage, enhanceCharacterPrompt, getEffectiveAIConfig } from './ai.js';
|
||||
import { reactToUserPost, charactersEngageEachOther, charsReplyToUserComment, genCharPost, sendProactiveDM, updateBotAvatarAutonomously, triggerCharPhotoPost } from './engagement.js';
|
||||
import { getImageFile, saveImageBuffer } from './images.js';
|
||||
|
||||
Reference in new issue
Block a user