/** * createJarvis() — 一键启动 Jarvis Agent 完整运行时 * * 串联所有模块为一个统一的 AI 分身实例: * Agent Core → VectorMemory → KnowledgeBase → AutonomousPlanner * → ConversationManager → NotificationCenter → EventBus * → WebChatServer → DashboardServer → SafetyEngine * * 用法: * ```ts * const jarvis = await createJarvis(); * // 或自定义配置 * const jarvis = await createJarvis({ web: { port: 3900 } }); * ``` */ import { AgentCore } from "./agent.js"; import { VectorMemory } from "./memory/vector-store.js"; import { KnowledgeBase } from "./knowledge/base.js"; import { AutonomousPlanner } from "./autonomous/planner.js"; import { ConversationManager } from "./conversation/manager.js"; import { NotificationCenter } from "./notification/center.js"; import { EventBus } from "./events/bus.js"; import { SafetyEngine } from "./safety/engine.js"; import { AnalyticsEngine } from "./analytics/engine.js"; import { QualityEngine } from "./quality/engine.js"; import { CronMaestro } from "./scheduler/cron-maestro.js"; import { WebChatServer } from "./web/chat-server.js"; import { LLMClient } from "./providers/llm.js"; import type { AgentConfig } from "./types.js"; export interface JarvisInstance { /** Agent 核心 */ agent: AgentCore; /** 向量记忆 */ memory: VectorMemory; /** 知识库 */ knowledge: KnowledgeBase; /** 自主决策 */ planner: AutonomousPlanner; /** 对话管理 */ conversations: ConversationManager; /** 通知中心 */ notifications: NotificationCenter; /** 事件总线 */ events: EventBus; /** 风控系统 */ safety: SafetyEngine; /** 数据分析 */ analytics: AnalyticsEngine; /** 质量引擎 */ quality: QualityEngine; /** 定时调度 */ scheduler: CronMaestro; /** Web Chat 服务 */ web: WebChatServer; /** LLM 客户端 */ llm: LLMClient | null; /** 启动 Web 服务 */ startWeb(): Promise; /** 关闭所有服务 */ shutdown(): Promise; /** 发消息(带 RAG + 知识库 + 安全检查 + 对话记录) */ chat(message: string, conversationId?: string): Promise; /** 获取全局状态 */ getFullStatus(): JarvisStatus; } export interface JarvisStatus { version: string; uptime: number; agent: { skills: number; tools: number; }; memory: { entries: number; vocabulary: number; }; knowledge: { documents: number; chunks: number; }; conversations: { total: number; messages: number; }; notifications: { unread: number; }; scheduler: { tasks: number; }; } export interface JarvisOptions { /** Agent 配置 */ agent?: AgentConfig; /** 数据目录 */ dataDir?: string; /** Web 配置 */ web?: { port?: number; host?: string; title?: string; }; /** 自动启动 Web */ autoStartWeb?: boolean; /** 安全等级 */ safetyLevel?: "strict" | "moderate" | "loose"; } export declare function createJarvis(options?: JarvisOptions): Promise; //# sourceMappingURL=bootstrap.d.ts.map