This commit is contained in:
Sergey Yarkov 2026-09-03 12:34:46 +03:00
commit b60ccd6915
7 changed files with 1474 additions and 0 deletions

1
.env.example Normal file
View File

@ -0,0 +1 @@
API_BASE_URL=http://localhost:1234/v1

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
.env

14
eslint.config.js Normal file
View File

@ -0,0 +1,14 @@
import js from "@eslint/js";
import globals from "globals";
import { defineConfig } from "eslint/config";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: { globals: globals.node }
},
eslintPluginPrettierRecommended
]);

0
index.js Normal file
View File

12
jsconfig.json Normal file
View File

@ -0,0 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"ignoreDeprecations": "6.0",
"checkJs": true,
"allowJs": true,
"lib": ["ESNext"],
"strict": true,
"module": "nodenext",
"resolveJsonModule": true
}
}

1419
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

26
package.json Normal file
View File

@ -0,0 +1,26 @@
{
"name": "xmpp-llm-bot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node --env-file=.env index.js",
"dev": "node --env-file=.env --watch index.js",
"lint": "eslint .",
"fix": "eslint . --fix"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"dependencies": {
"@eslint/js": "^10.0.1",
"@xmpp/client": "^0.14.0",
"eslint": "^10.9.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.6",
"globals": "^17.12.0",
"openai": "^7.9.0",
"prettier": "^3.9.6"
}
}