chore: bump deps

This commit is contained in:
Neko Ayaka
2025-02-03 15:37:12 +07:00
parent 946cbb4c9d
commit 0a7e1b9bf4
8 changed files with 19 additions and 13 deletions
@@ -1,10 +1,11 @@
import type { Neuri } from 'neuri'
import type { Action } from '../../libs/mineflayer/action'
import type { ActionAgent, AgentConfig, MemoryAgent, Plan, PlanningAgent } from '../../libs/mineflayer/base-agent'
import type { PlanStep } from './llm-handler'
import { AbstractAgent } from '../../libs/mineflayer/base-agent'
import { ActionAgentImpl } from '../action'
import { PlanningLLMHandler, type PlanStep } from './llm-handler'
import { PlanningLLMHandler } from './llm-handler'
interface PlanContext {
goal: string
+3 -1
View File
@@ -1,4 +1,6 @@
import { Mineflayer, type MineflayerOptions } from '../libs/mineflayer'
import type { MineflayerOptions } from '../libs/mineflayer'
import { Mineflayer } from '../libs/mineflayer'
// Singleton instance of the Mineflayer bot
let botInstance: Mineflayer | null = null
@@ -1,6 +1,7 @@
import type { Logg } from '@guiiai/logg'
import type { Handler } from './types'
import { type Logg, useLogg } from '@guiiai/logg'
import { useLogg } from '@guiiai/logg'
export class Components {
private components: Map<string, Handler> = new Map()
@@ -1,8 +1,10 @@
import type { Logg } from '@guiiai/logg'
import type { Bot, BotOptions } from 'mineflayer'
import type { MineflayerPlugin } from './plugin'
import type { TickEvents, TickEventsHandler } from './ticker'
import type { EventHandlers, EventsHandler } from './types'
import { type Logg, useLogg } from '@guiiai/logg'
import { useLogg } from '@guiiai/logg'
import EventEmitter from 'eventemitter3'
import mineflayer from 'mineflayer'
@@ -12,7 +14,7 @@ import { Health } from './health'
import { Memory } from './memory'
import { ChatMessageHandler } from './message'
import { Status } from './status'
import { Ticker, type TickEvents, type TickEventsHandler } from './ticker'
import { Ticker } from './ticker'
export interface MineflayerOptions {
botConfig: BotOptions
@@ -1,8 +1,9 @@
import type { useLogg } from '@guiiai/logg'
import type { NeuriContext } from 'neuri'
import type { ChatCompletion } from 'neuri/openai'
import type { MineflayerWithAgents } from './type'
import { assistant, type ChatCompletion } from 'neuri/openai'
import { assistant } from 'neuri/openai'
import { openaiConfig } from '../../composables/config'
@@ -1,3 +1,4 @@
import type { MineflayerPlugin } from '../../libs/mineflayer'
import type { LLMAgentOptions, MineflayerWithAgents } from './type'
import { useLogg } from '@guiiai/logg'
@@ -6,7 +7,7 @@ import { system } from 'neuri/openai'
import { generateActionAgentPrompt } from '../../agents/prompt/llm-agent.plugin'
import { openaiConfig } from '../../composables/config'
import { createAppContainer } from '../../container'
import { ChatMessageHandler, type MineflayerPlugin } from '../../libs/mineflayer'
import { ChatMessageHandler } from '../../libs/mineflayer'
import { handleChatMessage } from './chat'
import { handleVoiceInput } from './voice'
+2 -1
View File
@@ -1,7 +1,8 @@
import type { SafeBlock } from 'mineflayer-pathfinder'
import type { Mineflayer } from '../libs/mineflayer'
import type { BlockFace } from './base'
import pathfinderModel, { type SafeBlock } from 'mineflayer-pathfinder'
import pathfinderModel from 'mineflayer-pathfinder'
import { Vec3 } from 'vec3'
import { getBlockId, makeItem } from '../utils/mcdata'
+2 -5
View File
@@ -1,11 +1,8 @@
import type { Biome, ShapedRecipe, ShapelessRecipe } from 'minecraft-data'
import type { Bot } from 'mineflayer'
import type { Entity } from 'prismarine-entity'
import minecraftData, {
type Biome,
type ShapedRecipe,
type ShapelessRecipe,
} from 'minecraft-data'
import minecraftData from 'minecraft-data'
import prismarineItem from 'prismarine-item'
const GAME_VERSION = '1.20'