fix: lint & incorrect deps

This commit is contained in:
Neko Ayaka
2025-02-14 17:30:41 +08:00
parent 9810d3403d
commit ff2255b736
4 changed files with 13 additions and 40 deletions
+6 -27
View File
@@ -924,9 +924,6 @@ importers:
services/minecraft:
dependencies:
'@dotenvx/dotenvx':
specifier: ^1.34.0
version: 1.35.0
'@guiiai/logg':
specifier: ^1.0.7
version: 1.0.7
@@ -939,9 +936,6 @@ importers:
awilix:
specifier: ^12.0.4
version: 12.0.4
dotenv:
specifier: ^16.4.7
version: 16.4.7
es-toolkit:
specifier: ^1.32.0
version: 1.32.0
@@ -1003,27 +997,12 @@ importers:
specifier: ^3.24.1
version: 3.24.1(zod@3.24.1)
devDependencies:
'@antfu/eslint-config':
specifier: ^4.1.1
version: 4.1.1(@typescript-eslint/utils@8.22.0(eslint@9.20.0(jiti@2.4.2))(typescript@5.7.3))(@unocss/eslint-plugin@65.4.3(eslint@9.20.0(jiti@2.4.2))(typescript@5.7.3))(@vue/compiler-sfc@3.5.13)(eslint-plugin-format@1.0.1(eslint@9.20.0(jiti@2.4.2)))(eslint@9.20.0(jiti@2.4.2))(typescript@5.7.3)(vitest@3.0.5(@types/debug@4.1.12)(@types/node@22.13.1)(jiti@2.4.2)(jsdom@25.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(less@4.2.1)(terser@5.17.6)(tsx@4.19.2)(yaml@2.7.0))
eslint:
specifier: ^9.19.0
version: 9.20.0(jiti@2.4.2)
lint-staged:
specifier: ^15.4.3
version: 15.4.3
simple-git-hooks:
specifier: ^2.11.1
version: 2.11.1
tsx:
specifier: ^4.19.2
version: 4.19.2
typescript:
specifier: ^5.7.3
version: 5.7.3
vitest:
specifier: ^3.0.4
version: 3.0.5(@types/debug@4.1.12)(@types/node@22.13.1)(jiti@2.4.2)(jsdom@25.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(less@4.2.1)(terser@5.17.6)(tsx@4.19.2)(yaml@2.7.0)
'@dotenvx/dotenvx':
specifier: ^1.34.0
version: 1.35.0
dotenv:
specifier: ^16.4.7
version: 16.4.7
services/telegram-bot:
dependencies:
+3 -11
View File
@@ -2,9 +2,8 @@
"name": "@proj-airi/minecraft-bot",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@9.15.5",
"private": true,
"description": "An intelligent Minecraft bot powered by LLM. AIRI can understand natural language commands, interact with the world, and assist players in various tasks.",
"main": "src/main.ts",
"scripts": {
"dev": "dotenvx run -f .env -f .env.local --overload --debug --ignore=MISSING_ENV_FILE -- tsx src/main.ts",
"start": "dotenvx run -f .env -f .env.local --overload --ignore=MISSING_ENV_FILE -- tsx src/main.ts",
@@ -14,12 +13,10 @@
"test": "vitest"
},
"dependencies": {
"@dotenvx/dotenvx": "^1.34.0",
"@guiiai/logg": "^1.0.7",
"@proj-airi/server-sdk": "^0.1.4",
"@typeschema/zod": "^0.14.0",
"awilix": "^12.0.4",
"dotenv": "^16.4.7",
"es-toolkit": "^1.32.0",
"eventemitter3": "^5.0.1",
"minecraft-data": "^3.83.1",
@@ -42,12 +39,7 @@
"zod-to-json-schema": "^3.24.1"
},
"devDependencies": {
"@antfu/eslint-config": "^4.1.1",
"eslint": "^9.19.0",
"lint-staged": "^15.4.3",
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vitest": "^3.0.4"
"@dotenvx/dotenvx": "^1.34.0",
"dotenv": "^16.4.7"
}
}
@@ -1,9 +1,10 @@
import type { Message } from 'neuri/openai'
import type { Action } from '../../libs/mineflayer'
import type { AgentConfig, MemoryAgent } from '../../libs/mineflayer/base-agent'
import type { Logger } from '../../utils/logger'
import { Memory } from '../../libs/mineflayer/memory'
import { type Logger, useLogger } from '../../utils/logger'
import { useLogger } from '../../utils/logger'
export class MemoryAgentImpl implements MemoryAgent {
public readonly type = 'memory' as const
@@ -1,10 +1,11 @@
import type { NeuriContext } from 'neuri'
import type { ChatCompletion, Message } from 'neuri/openai'
import type { Logger } from '../../utils/logger'
import type { LLMConfig, LLMResponse } from './types'
import { config } from '../../composables/config'
import { toRetriable } from '../../utils/helper'
import { type Logger, useLogger } from '../../utils/logger'
import { useLogger } from '../../utils/logger'
export abstract class BaseLLMHandler {
protected logger: Logger