/** * Web Dashboard — 轻量级内置 HTTP API + 静态页面 * * 提供 Agent 管理界面的后端 API: * - GET /api/status — Agent 状态概览 * - GET /api/skills — Skill 列表 * - POST /api/skills/:name/toggle — 启用/禁用 Skill * - GET /api/tools — 工具列表 * - GET /api/tasks — 任务历史 * - GET /api/memory — 记忆摘要 * - GET /api/marketplace — Marketplace 搜索 * - POST /api/marketplace/install — 安装 Skill * - GET /api/workflow/pipelines — 管道列表 * - GET /api/orchestrator — 编排器状态 * - GET / — Dashboard HTML 页面 * * 零依赖:仅使用 Node.js 内置 http 模块 */ import type { AgentCore } from "../agent.js"; import type { SkillRegistry } from "../marketplace/registry.js"; import type { Orchestrator } from "../multi-agent/orchestrator.js"; import type { WorkflowEngine } from "../workflow/engine.js"; export interface DashboardConfig { port: number; host?: string; } export declare class DashboardServer { private agent; private registry?; private orchestrator?; private workflow?; private config; private server?; constructor(agent: AgentCore, config?: Partial, options?: { registry?: SkillRegistry; orchestrator?: Orchestrator; workflow?: WorkflowEngine; }); /** 启动 Dashboard 服务器 */ start(): Promise; /** 停止服务器 */ stop(): Promise; private handleRequest; private apiStatus; private apiSkills; private apiToggleSkill; private apiTools; private apiTasks; private apiMemory; private apiMarketplace; private apiInstall; private apiPipelines; private apiOrchestrator; private serveDashboard; private generateDashboardHTML; private json; private readBody; } //# sourceMappingURL=server.d.ts.map