Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractOpenAiCompatibleClient - Class in com.yapcli.llm
- AbstractOpenAiCompatibleClient() - Constructor for class com.yapcli.llm.AbstractOpenAiCompatibleClient
- accept(JsonNode) - Method in class com.yapcli.mcp.notifications.NotificationRouter
- accountId() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
accountIdrecord component. - accountId() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
accountIdrecord component. - accountsDir() - Static method in class com.yapcli.wechat.WechatPaths
- acquire() - Method in class com.yapcli.web.NetworkPolicy
-
申请一次请求配额。返回 null 表示通过,否则返回限流原因。
- action() - Method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
-
Returns the value of the
actionrecord component. - active(String, long, boolean, String) - Static method in record class com.yapcli.render.StatusInfo
- active(String, long, long, boolean, String) - Static method in record class com.yapcli.render.StatusInfo
- addAssistantMessage(String) - Method in class com.yapcli.memory.MemoryManager
-
添加助手回复到短期记忆
- addDependency(String) - Method in class com.yapcli.plan.Task
- addDependent(String) - Method in class com.yapcli.plan.Task
- addTask(Task) - Method in class com.yapcli.plan.ExecutionPlan
-
添加任务
- addToolResult(String, String) - Method in class com.yapcli.memory.MemoryManager
-
添加工具执行结果到短期记忆(截断过长结果,避免快速撑满预算)
- addUserMessage(String) - Method in class com.yapcli.memory.MemoryManager
-
添加用户消息到短期记忆
- aesKey() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns the value of the
aesKeyrecord component. - afterInput() - Method in class com.yapcli.render.inline.InlineRenderer
- afterInput() - Method in interface com.yapcli.render.Renderer
-
用户输入结束后。inline renderer 用它恢复输入周边状态。
- afterInput() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- afterTokens() - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Returns the value of the
afterTokensrecord component. - Agent - Class in com.yapcli.agent
-
Agent 核心类 - 实现 ReAct 循环
- Agent(LlmClient) - Constructor for class com.yapcli.agent.Agent
- Agent(LlmClient, ToolRegistry) - Constructor for class com.yapcli.agent.Agent
- AGENT - Enum constant in enum class com.yapcli.prompt.PromptMode
- Agent.CompactionResult - Record Class in com.yapcli.agent
- AgentBudget - Class in com.yapcli.agent
-
Agent 循环的退出预算。 设计目标是把"是否继续下一轮"的主导权交给 LLM 自己——只要它返回 content 不再调用工具, 循环就退出。本类只承担三种"保险阀"职责,避免模型在异常情况下无限重复同一动作: 1.
- AgentBudget(int, int, int) - Constructor for class com.yapcli.agent.AgentBudget
- AgentBudget.ExitReason - Enum Class in com.yapcli.agent
- AgentMessage - Record Class in com.yapcli.agent
-
Agent 间通信消息 - Multi-Agent 协作的基本通信单元 消息类型说明: - TASK: 主控分配给子代理的任务 - RESULT: 子代理返回的执行结果 - FEEDBACK: 检查者对结果的反馈(可能包含改进建议) - APPROVAL: 检查者认可结果 - REJECTION: 检查者拒绝结果,需要重新执行 - ERROR: 子代理在执行过程中遭遇系统级错误(例如 LLM 调用失败),调用方需识别并优雅处理
- AgentMessage(String, AgentRole, String, AgentMessage.Type) - Constructor for record class com.yapcli.agent.AgentMessage
-
Creates an instance of a
AgentMessagerecord class. - AgentMessage.Type - Enum Class in com.yapcli.agent
- agentOpenedTabs() - Method in class com.yapcli.browser.BrowserSession
- AgentOrchestrator - Class in com.yapcli.agent
-
Agent 编排器 - Multi-Agent 系统的"主" 负责管理团队、分配任务、路由消息、解决冲突。 采用主从架构:编排器是主,子代理是从。 协作流程: 1.
- AgentOrchestrator(LlmClient) - Constructor for class com.yapcli.agent.AgentOrchestrator
- AgentOrchestrator(LlmClient, ToolRegistry) - Constructor for class com.yapcli.agent.AgentOrchestrator
- AgentOrchestrator(LlmClient, ToolRegistry, MemoryManager) - Constructor for class com.yapcli.agent.AgentOrchestrator
- AgentOrchestrator(LlmClient, ToolRegistry, MemoryManager, PrintStream) - Constructor for class com.yapcli.agent.AgentOrchestrator
- AgentRole - Enum Class in com.yapcli.agent
-
Agent 角色定义 - Multi-Agent 系统中的角色分工
- agentTokenBudget() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
agentTokenBudgetrecord component. - AgnesClient - Class in com.yapcli.llm
- AgnesClient(String, String, String) - Constructor for class com.yapcli.llm.AgnesClient
- all() - Method in class com.yapcli.mcp.resources.McpResourceCache
- allow() - Static method in record class com.yapcli.wechat.WechatPolicyDecision
- allow(BrowserAuditMetadata) - Static method in record class com.yapcli.browser.BrowserCheckResult
- allow(String, String, long) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- allow(String, String, long, BrowserAuditMetadata) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- allowByMention(String, String, long) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- allowed() - Method in record class com.yapcli.wechat.WechatPolicyDecision
-
Returns the value of the
allowedrecord component. - allSkills() - Method in class com.yapcli.skill.SkillRegistry
- ANALYSIS - Enum constant in enum class com.yapcli.plan.Task.TaskType
- analyzeFile(Path) - Method in class com.yapcli.rag.CodeAnalyzer
-
分析单个 Java 文件,提取所有代码关系
- AnsiSeq - Class in com.yapcli.render.inline
-
原生 ANSI 控制序列常量与工具方法。
- AnsiStyle - Class in com.yapcli.util
-
终端 ANSI 样式辅助。
- answerMarker() - Static method in class com.yapcli.util.AnsiStyle
- API_IMAGE_MAX_BASE64_SIZE - Static variable in class com.yapcli.image.ImageProcessor
- append(ConversationSnapshot.MessageRecord) - Method in class com.yapcli.tui.history.ConversationSnapshot
-
追加消息。
- append(String) - Method in class com.yapcli.util.TerminalMarkdownRenderer
- append(String) - Method in class com.yapcli.wechat.WechatRenderer
- appendAssistant(String) - Method in class com.yapcli.tui.history.ConversationSnapshot
-
追加 Assistant 消息。
- appendAssistantChunk(String) - Method in class com.yapcli.tui.pane.CenterPane
-
追加 Assistant 流式文本(50ms 节流)。
- appendAssistantContentDelta(String) - Method in interface com.yapcli.render.Renderer
-
追加 assistant 正文 delta。普通终端渲染器忽略;远程通道可用它做正文分片推送。
- appendAssistantContentDelta(String) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- appendAssistantOutput(String) - Method in class com.yapcli.tui.pane.CenterPane
- appendDiff(String, String, String) - Method in class com.yapcli.render.inline.InlineRenderer
- appendDiff(String, String, String) - Method in class com.yapcli.render.PlainRenderer
- appendDiff(String, String, String) - Method in interface com.yapcli.render.Renderer
-
渲染一个文件 diff 块。
- appendDiff(String, String, String) - Method in class com.yapcli.tui.LanternaRenderer
- appendDiff(String, String, String) - Method in class com.yapcli.wechat.WechatRenderer
- appendDiff(String, String, String) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- appendEvent(String, String, String) - Method in class com.yapcli.runtime.api.RuntimeThreadStore
- appendKeyValueBlock(String, Map<String, String>) - Method in class com.yapcli.tui.LanternaRenderer
-
把外部 Map 风格的属性面板(如 /config)一次性渲染到 CenterPane(用于状态展示)。
- appendLine(String) - Method in class com.yapcli.wechat.WechatRenderer
- appendSystemMessage(String) - Method in class com.yapcli.tui.pane.CenterPane
- appendThinking(String) - Method in class com.yapcli.render.inline.InlineRenderer
- appendThinking(String) - Method in interface com.yapcli.render.Renderer
-
追加模型 reasoning delta 到思考面板。
- appendThinking(String) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- appendToolCall(String, String) - Method in class com.yapcli.tui.pane.CenterPane
-
追加工具调用。
- appendToolCalls(List<LlmClient.ToolCall>) - Method in class com.yapcli.render.inline.InlineRenderer
- appendToolCalls(List<LlmClient.ToolCall>) - Method in class com.yapcli.render.PlainRenderer
- appendToolCalls(List<LlmClient.ToolCall>) - Method in interface com.yapcli.render.Renderer
-
渲染一组工具调用的标签和关键参数。
- appendToolCalls(List<LlmClient.ToolCall>) - Method in class com.yapcli.tui.LanternaRenderer
- appendToolCalls(List<LlmClient.ToolCall>) - Method in class com.yapcli.wechat.WechatRenderer
- appendToolCalls(List<LlmClient.ToolCall>) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- appendToolResult(String) - Method in class com.yapcli.tui.pane.CenterPane
-
追加工具结果。
- appendUser(String) - Method in class com.yapcli.tui.history.ConversationSnapshot
-
追加用户消息。
- applyAfterExecution(String, String, String) - Method in class com.yapcli.browser.BrowserGuard
- applyContextProfile(ContextProfile) - Method in class com.yapcli.memory.MemoryManager
- approval(String, String) - Static method in record class com.yapcli.agent.AgentMessage
-
创建审批通过消息
- APPROVAL - Enum constant in enum class com.yapcli.agent.AgentMessage.Type
- approvalMode() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
approvalModerecord component. - approvalMode(String) - Method in class com.yapcli.prompt.PromptContext.Builder
- ApprovalPolicy - Class in com.yapcli.hitl
-
危险操作识别策略 - 基于静态规则判断哪些工具调用需要人工确认 设计原则: - 读取类操作(read_file、list_dir、glob_files、grep_code、search_code)不需要确认,无副作用 - 写入/执行类操作(write_file、execute_command)需要确认,有潜在破坏性 - create_project 属于写入操作,默认需要确认 - revert_turn 会批量回写工作区文件,默认需要确认 - MCP 工具来自外部 server,默认都需要确认
- ApprovalRequest - Record Class in com.yapcli.hitl
-
审批请求 - 描述一次待确认的工具调用 包含工具调用的完整信息,用于向用户展示"即将执行什么操作"。
- ApprovalRequest(String, String, String, String, String, String, String) - Constructor for record class com.yapcli.hitl.ApprovalRequest
-
Creates an instance of a
ApprovalRequestrecord class. - ApprovalResult - Record Class in com.yapcli.hitl
-
审批结果 - 用户对一次工具调用审批的决策 决策类型: - APPROVED: 批准执行,使用原始参数 - APPROVED_ALL: 批准本次会话所有后续同类工具操作(批量模式) - APPROVED_ALL_BY_SERVER: 批准本次会话同一 MCP server 的后续操作 - REJECTED: 拒绝执行,Agent 收到拒绝通知后可重新规划 - MODIFIED: 修改参数后执行(用户可以调整命令或文件内容) - SKIPPED: 跳过本步骤,继续后续操作
- ApprovalResult(ApprovalResult.Decision, String, String) - Constructor for record class com.yapcli.hitl.ApprovalResult
-
Creates an instance of a
ApprovalResultrecord class. - ApprovalResult.Decision - Enum Class in com.yapcli.hitl
- approve() - Static method in record class com.yapcli.hitl.ApprovalResult
- approveAll() - Static method in record class com.yapcli.hitl.ApprovalResult
- approveAllByServer() - Static method in record class com.yapcli.hitl.ApprovalResult
- APPROVED - Enum constant in enum class com.yapcli.hitl.ApprovalResult.Decision
- APPROVED_ALL - Enum constant in enum class com.yapcli.hitl.ApprovalResult.Decision
- APPROVED_ALL_BY_SERVER - Enum constant in enum class com.yapcli.hitl.ApprovalResult.Decision
- approver() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
approverrecord component. - APPROVER_HITL - Static variable in class com.yapcli.policy.AuditLog
- APPROVER_MENTION - Static variable in class com.yapcli.policy.AuditLog
- APPROVER_NONE - Static variable in class com.yapcli.policy.AuditLog
- APPROVER_POLICY - Static variable in class com.yapcli.policy.AuditLog
- args() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
argsrecord component. - arguments() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
argumentsrecord component. - arguments() - Method in record class com.yapcli.llm.LlmClient.ToolCall.Function
-
Returns the value of the
argumentsrecord component. - argumentsJson() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
argumentsJsonrecord component. - argumentsJson() - Method in record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Returns the value of the
argumentsJsonrecord component. - assemble(PromptMode, PromptContext) - Method in class com.yapcli.prompt.PromptAssembler
- assistant(String) - Static method in record class com.yapcli.llm.LlmClient.Message
- assistant(String, String) - Static method in record class com.yapcli.llm.LlmClient.Message
- assistant(String, String, List<LlmClient.ToolCall>) - Static method in record class com.yapcli.llm.LlmClient.Message
- assistant(String, List<LlmClient.ToolCall>) - Static method in record class com.yapcli.llm.LlmClient.Message
- AtMentionCompleter - Class in com.yapcli.mcp.mention
- AtMentionCompleter(Supplier<List<McpResourceDescriptor>>) - Constructor for class com.yapcli.mcp.mention.AtMentionCompleter
- AtMentionExpander - Class in com.yapcli.mcp.mention
- AtMentionExpander(McpServerManager) - Constructor for class com.yapcli.mcp.mention.AtMentionExpander
- AtMentionParser - Class in com.yapcli.mcp.mention
- AtMentionParser.MentionToken - Record Class in com.yapcli.mcp.mention
- AuditEntry(String, String, String, String, String, String, long, BrowserAuditMetadata) - Constructor for record class com.yapcli.policy.AuditLog.AuditEntry
-
Creates an instance of a
AuditEntryrecord class. - AuditLog - Class in com.yapcli.policy
-
危险工具调用的结构化审计日志。 落盘策略: - 一行一条 JSON(JSONL 格式),按天分文件 audit-YYYY-MM-DD.jsonl - 默认目录 ~/.yapcli/audit,可通过 -Dyapcli.audit.dir 或 YAPCLI_AUDIT_DIR 覆盖 - 写入失败只在 stderr 提示,不抛出,避免审计故障影响主流程 设计意图: - 把 Agent 的"实际副作用"变成可回放的事实流 - 行为评估、差错复盘、监控告警的统一数据源 接入点: -
allow:危险工具执行成功 -deny:被 HITL 拒绝 / 跳过,或被策略层拦截 -error:工具执行抛异常或超时 - AuditLog() - Constructor for class com.yapcli.policy.AuditLog
- AuditLog(Path) - Constructor for class com.yapcli.policy.AuditLog
- AuditLog.AuditEntry - Record Class in com.yapcli.policy
- author() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
authorrecord component. - AUTOCOMPACT_BUFFER_TOKENS - Static variable in record class com.yapcli.context.ContextProfile
- awaitCurrent() - Method in class com.yapcli.wechat.WechatAgentSession
- awaitIdle() - Method in class com.yapcli.snapshot.SnapshotService
B
- base64() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
base64record component. - baseUrl() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
baseUrlrecord component. - baseUrl() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
baseUrlrecord component. - beforeInput() - Method in class com.yapcli.render.inline.InlineRenderer
- beforeInput() - Method in interface com.yapcli.render.Renderer
-
进入用户输入前。inline renderer 用它刷新输入周边状态。
- beforeInput() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- beforeTokens() - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Returns the value of the
beforeTokensrecord component. - beginActivity(String, String) - Method in class com.yapcli.render.inline.InlineRenderer
- beginActivity(String, String) - Method in interface com.yapcli.render.Renderer
-
开始显示通用临时活动面板,用于非 Agent 思考的阻塞操作。
- beginActivity(String, String) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- beginIteration() - Method in class com.yapcli.agent.AgentBudget
-
进入新一轮迭代,返回当前轮次(从 1 开始)。
- beginThinking(String) - Method in class com.yapcli.render.inline.InlineRenderer
- beginThinking(String) - Method in interface com.yapcli.render.Renderer
-
开始显示模型思考面板。plain renderer 保持 no-op,继续用正文流式输出。
- beginThinking(String) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- beginTurn() - Method in class com.yapcli.render.inline.InlineRenderer
- beginTurn() - Method in interface com.yapcli.render.Renderer
-
开始一次用户任务输出。默认 no-op;inline renderer 用它重置本轮可重绘 transcript。
- beginTurn() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- bindLineReader(LineReader) - Method in class com.yapcli.render.inline.InlineRenderer
-
绑定当前交互循环使用的 JLine LineReader。
- blob() - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Returns the value of the
blobrecord component. - block(String, BrowserAuditMetadata) - Static method in record class com.yapcli.browser.BrowserCheckResult
- blocked() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns the value of the
blockedrecord component. - blockRegistry() - Method in class com.yapcli.render.inline.InlineRenderer
-
Main.java 用:把 Ctrl+O 绑定到 toggleLast。
- BlockRegistry - Class in com.yapcli.render.inline
-
活动
FoldableBlock注册表。 - BlockRegistry() - Constructor for class com.yapcli.render.inline.BlockRegistry
- body() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
bodyrecord component. - body() - Method in record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Returns the value of the
bodyrecord component. - body() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns the value of the
bodyrecord component. - bodyEmpty() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
bodyEmptyrecord component. - BOLD - Static variable in class com.yapcli.render.inline.AnsiSeq
- BottomStatusBar - Class in com.yapcli.render.inline
-
JLine 托管的底部 dock。
- BottomStatusBar(Terminal) - Constructor for class com.yapcli.render.inline.BottomStatusBar
- boundUserId() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
boundUserIdrecord component. - BrowserAuditMetadata - Record Class in com.yapcli.browser
- BrowserAuditMetadata(String, Boolean, String) - Constructor for record class com.yapcli.browser.BrowserAuditMetadata
-
Creates an instance of a
BrowserAuditMetadatarecord class. - BrowserCheckResult - Record Class in com.yapcli.browser
- BrowserCheckResult(boolean, String, boolean, String, BrowserAuditMetadata) - Constructor for record class com.yapcli.browser.BrowserCheckResult
-
Creates an instance of a
BrowserCheckResultrecord class. - BrowserConnectivityCheck - Class in com.yapcli.browser
- BrowserConnectivityCheck() - Constructor for class com.yapcli.browser.BrowserConnectivityCheck
- BrowserConnectivityCheck.ProbeResult - Record Class in com.yapcli.browser
- BrowserConnector - Interface in com.yapcli.browser
- BrowserGuard - Class in com.yapcli.browser
- BrowserGuard(BrowserSession, SensitivePagePolicy) - Constructor for class com.yapcli.browser.BrowserGuard
- browserLoginFact(String, List<String>) - Static method in class com.yapcli.memory.ExplicitMemoryHints
- browserMode() - Method in record class com.yapcli.browser.BrowserAuditMetadata
-
Returns the value of the
browserModerecord component. - BrowserMode - Enum Class in com.yapcli.browser
- BrowserSession - Class in com.yapcli.browser
-
当前 YapCLI 浏览器会话状态。 由 Main 持有并注入 ToolRegistry,避免做全局单例污染测试与多会话运行。
- BrowserSession() - Constructor for class com.yapcli.browser.BrowserSession
- browserUrl() - Method in record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Returns the value of the
browserUrlrecord component. - browserUrl() - Method in class com.yapcli.browser.BrowserSession
- build() - Method in class com.yapcli.prompt.PromptContext.Builder
- buildContextForQuery(String, int) - Method in class com.yapcli.memory.MemoryManager
-
构建用于 LLM 的记忆上下文
- buildContextForQuery(String, int) - Method in class com.yapcli.memory.MemoryRetriever
-
构建上下文:将相关记忆组装成文本,用于注入到 LLM 的 system prompt 中
- buildContextForQuery(String, int, String) - Method in class com.yapcli.memory.MemoryRetriever
- builder() - Static method in record class com.yapcli.prompt.PromptContext
- Builder() - Constructor for class com.yapcli.prompt.PromptContext.Builder
- BUILTIN - Enum constant in enum class com.yapcli.skill.Skill.Source
- builtinSkillNames() - Method in class com.yapcli.skill.SkillBuiltinExtractor
- bypassQueue() - Method in record class com.yapcli.wechat.WechatCommandParser.Command
-
Returns the value of the
bypassQueuerecord component.
C
- cachedInputTokens() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
cachedInputTokensrecord component. - cachedInputTokens() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
cachedInputTokensrecord component. - cacheRoot() - Method in class com.yapcli.skill.SkillBuiltinExtractor
- callerContext() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
callerContextrecord component. - callTool(String, String) - Method in class com.yapcli.mcp.McpClient
- callToolOutput(String, String) - Method in class com.yapcli.mcp.McpClient
- cancel() - Static method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
- cancel() - Method in class com.yapcli.runtime.CancellationToken
- cancel() - Method in class com.yapcli.wechat.WechatAgentSession
- cancel(String) - Method in class com.yapcli.runtime.task.DurableTaskManager
- CANCEL - Enum constant in enum class com.yapcli.agent.PlanExecuteAgent.PlanReviewAction
- CANCELED - Enum constant in enum class com.yapcli.runtime.task.TaskStatus
- CancellationContext - Class in com.yapcli.runtime
- CancellationToken - Class in com.yapcli.runtime
- CancellationToken() - Constructor for class com.yapcli.runtime.CancellationToken
- CANCELLED - Enum constant in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
- capabilities() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult
-
Returns the value of the
capabilitiesrecord component. - CenterPane - Class in com.yapcli.tui.pane
-
中央对话流面板。
- CenterPane(YapCliConfig, LlmClient) - Constructor for class com.yapcli.tui.pane.CenterPane
-
创建对话流面板。
- charset() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns the value of the
charsetrecord component. - chat(List<LlmClient.Message>, List<LlmClient.Tool>) - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- chat(List<LlmClient.Message>, List<LlmClient.Tool>) - Method in interface com.yapcli.llm.LlmClient
- chat(List<LlmClient.Message>, List<LlmClient.Tool>, LlmClient.StreamListener) - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- chat(List<LlmClient.Message>, List<LlmClient.Tool>, LlmClient.StreamListener) - Method in interface com.yapcli.llm.LlmClient
- ChatResponse(String, String, String, List<LlmClient.ToolCall>, int, int) - Constructor for record class com.yapcli.llm.LlmClient.ChatResponse
- ChatResponse(String, String, String, List<LlmClient.ToolCall>, int, int, int) - Constructor for record class com.yapcli.llm.LlmClient.ChatResponse
-
Creates an instance of a
ChatResponserecord class. - ChatResponse(String, String, List<LlmClient.ToolCall>, int, int) - Constructor for record class com.yapcli.llm.LlmClient.ChatResponse
- check() - Method in class com.yapcli.agent.AgentBudget
- check(String) - Static method in class com.yapcli.policy.CommandGuard
-
校验命令是否安全。
- check(String, String, boolean) - Method in class com.yapcli.browser.BrowserGuard
- checkBrowserTool(String, String, boolean) - Method in class com.yapcli.tool.ToolRegistry
- checkUrl(String) - Method in class com.yapcli.web.NetworkPolicy
-
校验 URL 是否允许访问。返回 null 表示通过,否则返回拒绝原因。
- chunk() - Method in record class com.yapcli.rag.VectorStore.CodeChunkEntry
-
Returns the value of the
chunkrecord component. - chunkCount() - Method in record class com.yapcli.rag.CodeIndex.IndexResult
-
Returns the value of the
chunkCountrecord component. - chunkCount() - Method in record class com.yapcli.rag.VectorStore.IndexStats
-
Returns the value of the
chunkCountrecord component. - chunkFile(Path) - Method in class com.yapcli.rag.CodeChunker
-
对单个文件进行分块
- chunkType() - Method in record class com.yapcli.rag.CodeChunk
-
Returns the value of the
chunkTyperecord component. - chunkType() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns the value of the
chunkTyperecord component. - classChunk(String, String, String, int, int) - Static method in record class com.yapcli.rag.CodeChunk
-
构造一个类级别的代码块
- clean() - Method in class com.yapcli.snapshot.SnapshotService
- cleanSnapshots() - Method in class com.yapcli.snapshot.SideGitManager
- clear() - Method in class com.yapcli.memory.ConversationMemory
- clear() - Method in class com.yapcli.memory.LongTermMemory
- clear() - Method in interface com.yapcli.memory.Memory
-
清空所有记忆
- clear() - Method in class com.yapcli.render.inline.BlockRegistry
-
清空注册表(如 /clear 时)。
- clear() - Method in class com.yapcli.skill.SkillContextBuffer
- clear() - Method in class com.yapcli.tui.pane.CenterPane
-
清空对话流。
- clear() - Method in class com.yapcli.tui.pane.InputBar
-
清空输入框。
- clear() - Method in class com.yapcli.wechat.WechatAgentSession
- clear(CancellationToken) - Static method in class com.yapcli.runtime.CancellationContext
- CLEAR - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- CLEAR_LINE - Static variable in class com.yapcli.render.inline.AnsiSeq
-
清除当前行。
- CLEAR_TO_EOL - Static variable in class com.yapcli.render.inline.AnsiSeq
-
清除从光标到行尾。
- CLEAR_TO_EOS - Static variable in class com.yapcli.render.inline.AnsiSeq
-
清除从光标到屏幕末尾。
- clearAcceptedInput(String) - Method in class com.yapcli.render.inline.InlineRenderer
-
清掉 JLine accept 后留在屏幕上的编辑态输入行。
- clearAgentOpenedTabs() - Method in class com.yapcli.browser.BrowserSession
- clearApprovedAll() - Method in interface com.yapcli.hitl.HitlHandler
- clearApprovedAll() - Method in class com.yapcli.hitl.RendererHitlHandler
- clearApprovedAll() - Method in class com.yapcli.hitl.SwitchableHitlHandler
- clearApprovedAll() - Method in class com.yapcli.hitl.TerminalHitlHandler
-
清除本次会话中积累的"全部放行"记录 在 /clear 或新会话开始时调用
- clearApprovedAll() - Method in class com.yapcli.tui.hitl.TuiHitlHandler
-
清除本次会话中积累的"全部放行"记录。
- clearApprovedAllForServer(String) - Method in interface com.yapcli.hitl.HitlHandler
- clearApprovedAllForServer(String) - Method in class com.yapcli.hitl.RendererHitlHandler
- clearApprovedAllForServer(String) - Method in class com.yapcli.hitl.SwitchableHitlHandler
- clearApprovedAllForServer(String) - Method in class com.yapcli.hitl.TerminalHitlHandler
- clearApprovedAllForServer(String) - Method in class com.yapcli.tui.hitl.TuiHitlHandler
-
清除指定 MCP server 的"全部放行"记录。
- clearHistory() - Method in class com.yapcli.agent.Agent
-
清空对话历史并重建基础系统提示,不影响长期记忆条目
- clearHistory() - Method in class com.yapcli.agent.SubAgent
-
清空对话历史(保留系统提示词),用于处理下一个独立任务
- clearLongTerm() - Method in class com.yapcli.memory.MemoryManager
-
清空长期记忆
- clearProject() - Method in class com.yapcli.rag.VectorStore
-
清空指定项目的索引数据
- clearShortTerm() - Method in class com.yapcli.memory.MemoryManager
-
清空短期记忆(保留长期记忆)
- client() - Method in class com.yapcli.mcp.McpServer
- client(McpClient) - Method in class com.yapcli.mcp.McpServer
- ClipboardImage - Class in com.yapcli.image
- ClipboardImage.GrabResult - Record Class in com.yapcli.image
- close() - Method in class com.yapcli.mcp.jsonrpc.JsonRpcClient
- close() - Method in class com.yapcli.mcp.McpClient
- close() - Method in class com.yapcli.mcp.McpServer
- close() - Method in class com.yapcli.mcp.McpServerManager
- close() - Method in class com.yapcli.mcp.notifications.NotificationRouter
- close() - Method in interface com.yapcli.mcp.transport.McpTransport
- close() - Method in class com.yapcli.mcp.transport.StdioTransport
- close() - Method in class com.yapcli.mcp.transport.StreamableHttpTransport
- close() - Method in class com.yapcli.rag.CodeRetriever
- close() - Method in class com.yapcli.rag.VectorStore
- close() - Method in class com.yapcli.render.inline.BottomStatusBar
- close() - Method in class com.yapcli.render.inline.InlineRenderer
- close() - Method in class com.yapcli.render.PlainRenderer
- close() - Method in interface com.yapcli.render.Renderer
- close() - Method in class com.yapcli.runtime.api.RuntimeApiServer
- close() - Method in class com.yapcli.runtime.api.RuntimeThreadStore
- close() - Method in class com.yapcli.runtime.task.DurableTaskManager
- close() - Method in class com.yapcli.snapshot.SnapshotService
- close() - Method in class com.yapcli.tui.LanternaRenderer
- close() - Method in class com.yapcli.tui.LanternaWindow
-
关闭窗口。
- close() - Method in class com.yapcli.tui.TuiSessionController
- close() - Method in class com.yapcli.wechat.WechatAgentSession
- close() - Method in class com.yapcli.wechat.WechatRenderer
- close() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- code() - Method in exception com.yapcli.mcp.jsonrpc.JsonRpcException
- code() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Returns the value of the
coderecord component. - CodeAnalyzer - Class in com.yapcli.rag
-
代码分析器:基于 JavaParser AST 构建代码关系图谱
- CodeAnalyzer() - Constructor for class com.yapcli.rag.CodeAnalyzer
- CodeChunk - Record Class in com.yapcli.rag
-
代码块数据模型
- CodeChunk(String, String, String, String, int, int) - Constructor for record class com.yapcli.rag.CodeChunk
-
Creates an instance of a
CodeChunkrecord class. - CodeChunkEntry(CodeChunk, float[]) - Constructor for record class com.yapcli.rag.VectorStore.CodeChunkEntry
-
Creates an instance of a
CodeChunkEntryrecord class. - CodeChunker - Class in com.yapcli.rag
-
代码分块器:将代码文件切分为适合 Embedding 的粒度
- CodeChunker() - Constructor for class com.yapcli.rag.CodeChunker
- CodeHighlighter - Class in com.yapcli.tui.highlight
-
代码高亮器(基于正则表达式的轻量级实现)。
- CodeIndex - Class in com.yapcli.rag
-
代码索引管理器:负责将代码库分块、向量化并持久化到 VectorStore
- CodeIndex() - Constructor for class com.yapcli.rag.CodeIndex
- CodeIndex(CodeIndex.ProgressListener) - Constructor for class com.yapcli.rag.CodeIndex
- CodeIndex(EmbeddingClient) - Constructor for class com.yapcli.rag.CodeIndex
- CodeIndex(EmbeddingClient, CodeIndex.ProgressListener) - Constructor for class com.yapcli.rag.CodeIndex
- CodeIndex.IndexResult - Record Class in com.yapcli.rag
- CodeIndex.ProgressListener - Interface in com.yapcli.rag
- codeLabel(String) - Static method in class com.yapcli.util.AnsiStyle
- CodeRelation - Record Class in com.yapcli.rag
-
代码关系数据模型(用于构建代码关系图谱)
- CodeRelation(String, String, String, String, String) - Constructor for record class com.yapcli.rag.CodeRelation
-
Creates an instance of a
CodeRelationrecord class. - CodeRetriever - Class in com.yapcli.rag
-
代码检索器:语义检索 + 图谱检索的统一入口
- CodeRetriever(String) - Constructor for class com.yapcli.rag.CodeRetriever
- CodeRetriever(String, EmbeddingClient) - Constructor for class com.yapcli.rag.CodeRetriever
- column() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns the value of the
columnrecord component. - com.example - package com.example
- com.yapcli.agent - package com.yapcli.agent
- com.yapcli.browser - package com.yapcli.browser
- com.yapcli.cli - package com.yapcli.cli
- com.yapcli.config - package com.yapcli.config
- com.yapcli.context - package com.yapcli.context
- com.yapcli.hitl - package com.yapcli.hitl
- com.yapcli.image - package com.yapcli.image
- com.yapcli.llm - package com.yapcli.llm
- com.yapcli.lsp - package com.yapcli.lsp
- com.yapcli.mcp - package com.yapcli.mcp
- com.yapcli.mcp.config - package com.yapcli.mcp.config
- com.yapcli.mcp.jsonrpc - package com.yapcli.mcp.jsonrpc
- com.yapcli.mcp.mention - package com.yapcli.mcp.mention
- com.yapcli.mcp.notifications - package com.yapcli.mcp.notifications
- com.yapcli.mcp.protocol - package com.yapcli.mcp.protocol
- com.yapcli.mcp.resources - package com.yapcli.mcp.resources
- com.yapcli.mcp.transport - package com.yapcli.mcp.transport
- com.yapcli.memory - package com.yapcli.memory
- com.yapcli.plan - package com.yapcli.plan
- com.yapcli.policy - package com.yapcli.policy
- com.yapcli.prompt - package com.yapcli.prompt
- com.yapcli.rag - package com.yapcli.rag
- com.yapcli.render - package com.yapcli.render
- com.yapcli.render.inline - package com.yapcli.render.inline
- com.yapcli.runtime - package com.yapcli.runtime
- com.yapcli.runtime.api - package com.yapcli.runtime.api
- com.yapcli.runtime.task - package com.yapcli.runtime.task
- com.yapcli.skill - package com.yapcli.skill
- com.yapcli.snapshot - package com.yapcli.snapshot
- com.yapcli.tool - package com.yapcli.tool
- com.yapcli.tui - package com.yapcli.tui
- com.yapcli.tui.config - package com.yapcli.tui.config
- com.yapcli.tui.highlight - package com.yapcli.tui.highlight
- com.yapcli.tui.history - package com.yapcli.tui.history
- com.yapcli.tui.hitl - package com.yapcli.tui.hitl
- com.yapcli.tui.pane - package com.yapcli.tui.pane
- com.yapcli.util - package com.yapcli.util
- com.yapcli.web - package com.yapcli.web
- com.yapcli.wechat - package com.yapcli.wechat
- Command(WechatCommandParser.Type, String, boolean) - Constructor for record class com.yapcli.wechat.WechatCommandParser.Command
-
Creates an instance of a
Commandrecord class. - COMMAND - Enum constant in enum class com.yapcli.plan.Task.TaskType
- commandAllowlist() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns the value of the
commandAllowlistrecord component. - CommandGuard - Class in com.yapcli.policy
-
命令快速拒绝:在 execute_command 进入 HITL 审批 / 真正调用 ProcessBuilder 之前的黑名单 fast-fail。 定位:辅助 HITL 而非主防线。黑名单是出名的反模式(永远列不全),但能拦住 LLM 容易踩的明显破坏性命令, 减少 HITL 弹窗骚扰。真正的安全责任在 HITL 审批和用户判断。 设计取舍: - 不做完整 shell 解析,只做正则模式匹配,够覆盖明显破坏性命令即可 - 命令替换段 $(...) 和反引号内的内容仍以原文存在,正则会一并扫描,不需要单独展开 - curl / git / 网络命令默认放行,只拦真正破坏性的(rm -rf 全盘、sudo、mkfs 等)
- commitId() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns the value of the
commitIdrecord component. - commitId() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns the value of the
commitIdrecord component. - compact() - Method in class com.yapcli.wechat.WechatAgentSession
- COMPACT - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- compacted() - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Returns the value of the
compactedrecord component. - compactHistoryNow() - Method in class com.yapcli.agent.Agent
-
手动压缩当前 ReAct 对话历史,不等待上下文窗口阈值触发。
- compactIfNeeded(List<LlmClient.Message>, int) - Method in class com.yapcli.memory.ConversationHistoryCompactor
-
评估并按需压缩 history,原地修改。
- CompactionResult(boolean, long, long, String) - Constructor for record class com.yapcli.agent.Agent.CompactionResult
-
Creates an instance of a
CompactionResultrecord class. - compactNow(List<LlmClient.Message>) - Method in class com.yapcli.memory.ConversationHistoryCompactor
-
手动压缩 history,跳过 token 阈值判断,但仍保留最近轮次和 user 边界切割保护。
- complete(LineReader, ParsedLine, List<Candidate>) - Method in class com.yapcli.mcp.mention.AtMentionCompleter
- COMPLETED - Enum constant in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
- COMPLETED - Enum constant in enum class com.yapcli.plan.Task.TaskStatus
- COMPLETED - Enum constant in enum class com.yapcli.runtime.task.TaskStatus
- compress(ConversationMemory) - Method in class com.yapcli.memory.ContextCompressor
-
压缩对话记忆
- compressIfNeeded() - Method in class com.yapcli.memory.MemoryManager
-
检查并触发压缩(由 Agent 在 LLM 调用前主动调用)
- compressionTriggerRatio() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
compressionTriggerRatiorecord component. - compressionTriggerTokens() - Method in record class com.yapcli.context.ContextProfile
-
触发压缩的绝对 token 阈值(占用 ≥ 此值即压缩)
- computeExecutionOrder() - Method in class com.yapcli.plan.ExecutionPlan
-
计算拓扑排序执行顺序
- config() - Method in class com.yapcli.mcp.McpServer
- config() - Method in class com.yapcli.snapshot.SideGitManager
- configuredApiKey() - Static method in class com.yapcli.runtime.api.RuntimeApiServer
- connectDefault() - Method in interface com.yapcli.browser.BrowserConnector
- connected() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
connectedrecord component. - consumeSentContentFlag() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- content() - Method in record class com.yapcli.agent.AgentMessage
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.mcp.McpServerManager.ResourceReadResult
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.rag.CodeChunk
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns the value of the
contentrecord component. - content() - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Returns the value of the
contentrecord component. - contentLength() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
contentLengthrecord component. - ContentPart(String, String, String, String, String) - Constructor for record class com.yapcli.llm.LlmClient.ContentPart
-
Creates an instance of a
ContentPartrecord class. - contentParts() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns the value of the
contentPartsrecord component. - contentType() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns the value of the
contentTyperecord component. - ContextCompressor - Class in com.yapcli.memory
-
上下文压缩器 - 当对话过长时,自动压缩旧消息 压缩策略: 1.
- ContextCompressor(LlmClient) - Constructor for class com.yapcli.memory.ContextCompressor
- ContextCompressor(LlmClient, int) - Constructor for class com.yapcli.memory.ContextCompressor
- ContextProfile - Record Class in com.yapcli.context
-
上下文策略配置。 **设计原则**:没有"长 / 短 / 平衡"模式分档。所有参数都是 maxContextWindow 的简单函数, 全模型走同一套行为,只是 window 大小不同导致触发时机和容量不同。 全局常量: - 压缩触发阈值:预留摘要输出空间后,再保留 13k token 自动压缩缓冲 按 window 派生: - 短期记忆预算 = window × 0.45 - 注入到 system prompt 的相关记忆 token 上限 = window × 0.005,封顶 5000 - MCP resource 索引注入:window ≥ 32k 才有意义(再小就挤)
- ContextProfile(int, int, double, int, int, boolean, boolean, String) - Constructor for record class com.yapcli.context.ContextProfile
-
Creates an instance of a
ContextProfilerecord class. - contextToken() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns the value of the
contextTokenrecord component. - contextWindow() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
contextWindowrecord component. - CONVERSATION - Enum constant in enum class com.yapcli.memory.MemoryEntry.MemoryType
- ConversationHistoryCompactor - Class in com.yapcli.memory
-
压缩 ReAct 主循环里的
conversationHistory(即List<LlmClient.Message>)。 与ContextCompressor的区别: -ContextCompressor压的是ConversationMemory(YapCLI 的短期记忆条目) - 本类压的是 Agent 实际发给 LLM 的消息列表 第 3 期 Memory 设计假设"LLM 调用从 shortTermMemory 重建消息",但实际 Agent 直接维护 conversationHistory,与 shortTermMemory 并行。两个度量错位导致旧版压缩从未真正缩短 即将发给 LLM 的 token——本类是在 Agent.run 主循环里"调 LLM 前评估并压缩"的补丁。 算法: 1. - ConversationHistoryCompactor(LlmClient) - Constructor for class com.yapcli.memory.ConversationHistoryCompactor
- ConversationHistoryCompactor(LlmClient, int) - Constructor for class com.yapcli.memory.ConversationHistoryCompactor
- ConversationMemory - Class in com.yapcli.memory
-
短期记忆 - 管理当前对话的上下文 职责: 1.
- ConversationMemory(int) - Constructor for class com.yapcli.memory.ConversationMemory
- ConversationSnapshot - Class in com.yapcli.tui.history
-
对话历史快照(TUI 专用)。
- ConversationSnapshot(String) - Constructor for class com.yapcli.tui.history.ConversationSnapshot
-
创建新会话快照。
- ConversationSnapshot.MessageRecord - Record Class in com.yapcli.tui.history
-
消息记录。
- ConversationSnapshot.SessionMeta - Record Class in com.yapcli.tui.history
-
会话元数据。
- create() - Static method in class com.yapcli.web.SearchProviderFactory
- create(RendererFactory.Mode, Terminal) - Static method in class com.yapcli.render.RendererFactory
-
创建 CLI 循环内使用的渲染器。inline 模式如果终端不支持 ANSI(如 dumb 终端), 回退到 plain。lanterna 模式应在进入 CLI 循环前由 TuiBootstrap 接管;如果走到 这里,说明 TUI 因 NO_TUI、终端尺寸或启动失败被降级。
- create(String, YapCliConfig) - Static method in class com.yapcli.llm.LlmClientFactory
- createAccount(String, String, String, String, String) - Method in class com.yapcli.wechat.WechatAccountStore
- CREATED - Enum constant in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
- createdAt() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
createdAtrecord component. - createDefault() - Static method in class com.yapcli.prompt.PromptAssembler
- createDefault() - Static method in class com.yapcli.prompt.PromptRepository
- createDefault() - Static method in class com.yapcli.wechat.WechatAccountStore
- createDefault(Path) - Static method in class com.yapcli.prompt.ProjectMemoryLoader
- createFromConfig(YapCliConfig) - Static method in class com.yapcli.llm.LlmClientFactory
- createMetadataText(ImageProcessor.ProcessedImage) - Static method in class com.yapcli.image.ImageProcessor
- createPlan(String) - Method in class com.yapcli.plan.Planner
-
为复杂任务创建执行计划
- createSilently() - Static method in class com.yapcli.util.JiebaSegmenterFactory
- createSnapshot(SnapshotPhase, String, String) - Method in class com.yapcli.snapshot.SideGitManager
- createThread() - Method in class com.yapcli.runtime.api.RuntimeThreadStore
- current() - Static method in class com.yapcli.runtime.CancellationContext
- CURRENT_VERSION - Static variable in class com.yapcli.skill.SkillBuiltinExtractor
-
当 web-access 内容有破坏性更新时上调,触发缓存重建。
- currentLines() - Method in class com.yapcli.render.inline.FoldableBlock
-
当前状态下应渲染的完整行。
- currentStatus() - Method in class com.yapcli.render.inline.BottomStatusBar
-
当前 StatusInfo 快照,供 thinking 面板等组件复用同一份格式化结果。
- currentStatus(String) - Method in class com.yapcli.agent.Agent
-
当前状态栏快照:ctx 表示下一轮请求仍会携带的上下文估算,不含累计 in/out 用量。
- custom(int, int) - Static method in record class com.yapcli.context.ContextProfile
- customizeRequest(Request.Builder) - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- customizeRequest(Request.Builder) - Method in class com.yapcli.llm.XfyunMaaSClient
- customizeRequestBody(ObjectNode) - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- customizeRequestBody(ObjectNode) - Method in class com.yapcli.llm.StepClient
- customizeRequestBody(ObjectNode) - Method in class com.yapcli.llm.XfyunMaaSClient
- CWD - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
D
- dailyTurnLimit() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns the value of the
dailyTurnLimitrecord component. - dangerLevel() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
dangerLevelrecord component. - data() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Returns the value of the
datarecord component. - data() - Method in record class com.yapcli.mcp.protocol.McpContent
-
Returns the value of the
datarecord component. - data() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns the value of the
datarecord component. - dbPath() - Method in class com.yapcli.runtime.task.DurableTaskManager
- decide(String, String) - Method in class com.yapcli.wechat.WechatPolicyDecider
- decision() - Method in record class com.yapcli.hitl.ApprovalResult
-
Returns the value of the
decisionrecord component. - DeepSeekClient - Class in com.yapcli.llm
- DeepSeekClient(String) - Constructor for class com.yapcli.llm.DeepSeekClient
- DeepSeekClient(String, String) - Constructor for class com.yapcli.llm.DeepSeekClient
- DEFAULT_BASE_URL - Static variable in class com.yapcli.wechat.IlinkClient
- DEFAULT_MAX_BYTES - Static variable in class com.yapcli.web.WebFetcher
- defaultDbPath() - Static method in class com.yapcli.runtime.api.RuntimeThreadStore
- defaultDbPath() - Static method in class com.yapcli.runtime.task.DurableTaskManager
- delete(String) - Method in class com.yapcli.memory.ConversationMemory
- delete(String) - Method in class com.yapcli.memory.LongTermMemory
- delete(String) - Method in interface com.yapcli.memory.Memory
-
删除指定记忆
- deleteLongTerm(String) - Method in class com.yapcli.memory.MemoryManager
- deleteSession(String) - Static method in class com.yapcli.tui.history.ConversationSnapshot
-
删除会话。
- Demo - Class in com.example
- Demo() - Constructor for class com.example.Demo
- deny(String) - Static method in record class com.yapcli.wechat.WechatPolicyDecision
- denyByHitl(String, String, String, long) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- denyByPolicy(String, String, String, long) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- denyByPolicy(String, String, String, long, BrowserAuditMetadata) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- describe(Path) - Static method in class com.yapcli.image.ClipboardImage
- describeExit(AgentBudget.ExitReason) - Method in class com.yapcli.agent.AgentBudget
- description() - Method in record class com.yapcli.llm.LlmClient.Tool
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Returns the value of the
descriptionrecord component. - descriptors(String) - Static method in class com.yapcli.mcp.resources.McpResourceTool
- DIM - Static variable in class com.yapcli.render.inline.AnsiSeq
- dimensions() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
dimensionsrecord component. - Dimensions(int, int, int, int) - Constructor for record class com.yapcli.image.ImageProcessor.Dimensions
-
Creates an instance of a
Dimensionsrecord class. - disable(String) - Method in class com.yapcli.mcp.McpServerManager
- disable(String) - Method in class com.yapcli.skill.SkillStateStore
- disabled() - Method in class com.yapcli.skill.SkillStateStore
- DISABLED - Enum constant in enum class com.yapcli.mcp.McpServerStatus
- disconnect() - Method in interface com.yapcli.browser.BrowserConnector
- displayHeight() - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Returns the value of the
displayHeightrecord component. - displayName() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
- displaySource() - Method in record class com.yapcli.skill.Skill
- displayText() - Method in record class com.yapcli.lsp.LspDiagnosticReport
-
Returns the value of the
displayTextrecord component. - displayWidth() - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Returns the value of the
displayWidthrecord component. - doExecuteTool(String, String) - Method in class com.yapcli.tool.ToolRegistry
- drain() - Method in class com.yapcli.skill.SkillContextBuffer
-
取出全部已积累 skill body 并清空。返回拼接好的 markdown 段,可直接前置到 user message。
- DurableTask - Record Class in com.yapcli.runtime.task
- DurableTask(String, TaskStatus, String, String, String, Instant, Instant, Instant, long) - Constructor for record class com.yapcli.runtime.task.DurableTask
-
Creates an instance of a
DurableTaskrecord class. - DurableTaskManager - Class in com.yapcli.runtime.task
- DurableTaskManager(Path, TaskRunner, int) - Constructor for class com.yapcli.runtime.task.DurableTaskManager
- durationMs() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
durationMsrecord component. - durationMs() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
durationMsrecord component.
E
- effectiveArguments(String) - Method in record class com.yapcli.hitl.ApprovalResult
-
获取实际执行时使用的参数 如果是 MODIFIED,返回用户修改后的参数;否则返回 null(调用方使用原始参数)
- elapsedMillis() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
elapsedMillisrecord component. - elapsedMillis() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
elapsedMillisrecord component. - embed(String) - Method in class com.yapcli.rag.EmbeddingClient
-
获取文本的向量表示
- embedding() - Method in record class com.yapcli.rag.VectorStore.CodeChunkEntry
-
Returns the value of the
embeddingrecord component. - EmbeddingClient - Class in com.yapcli.rag
-
Embedding 客户端,支持 Ollama 本地模型和 OpenAI 兼容的远程 API
- EmbeddingClient() - Constructor for class com.yapcli.rag.EmbeddingClient
- EmbeddingClient(String, String, String, String) - Constructor for class com.yapcli.rag.EmbeddingClient
- emphasis(String) - Static method in class com.yapcli.util.AnsiStyle
- empty() - Static method in record class com.yapcli.prompt.PromptContext
- EMPTY - Static variable in record class com.yapcli.lsp.LspDiagnosticReport
- enable(String) - Method in class com.yapcli.mcp.McpServerManager
- enable(String) - Method in class com.yapcli.skill.SkillStateStore
- enabled() - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Returns the value of the
enabledrecord component. - enabledSkills() - Method in class com.yapcli.skill.SkillRegistry
- encryptQueryParam() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns the value of the
encryptQueryParamrecord component. - end() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns the value of the
endrecord component. - endActivity() - Method in class com.yapcli.render.inline.InlineRenderer
- endActivity() - Method in interface com.yapcli.render.Renderer
-
结束并清理通用临时活动面板。
- endActivity() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- endLine() - Method in record class com.yapcli.rag.CodeChunk
-
Returns the value of the
endLinerecord component. - endThinking() - Method in class com.yapcli.render.inline.InlineRenderer
- endThinking() - Method in interface com.yapcli.render.Renderer
-
结束并清理模型思考面板。
- endThinking() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- enqueue(String) - Method in class com.yapcli.runtime.task.DurableTaskManager
- ENQUEUED - Enum constant in enum class com.yapcli.runtime.task.TaskStatus
- equals(Object) - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.agent.AgentMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.browser.BrowserAuditMetadata
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.browser.BrowserCheckResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.browser.SensitivePagePolicy.MatchResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.context.ContextProfile
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.hitl.ApprovalRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.hitl.ApprovalResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.image.ClipboardImage.GrabResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.llm.LlmClient.Message
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.llm.LlmClient.Tool
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.llm.LlmClient.ToolCall
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.llm.LlmClient.ToolCall.Function
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.lsp.LspDiagnostic
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.lsp.LspDiagnosticReport
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Notification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.McpServerManager.ResourceReadResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.protocol.McpCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.protocol.McpContent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.protocol.McpInitializeResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.protocol.McpInitializeResult.ServerInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.prompt.PromptContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.rag.CodeChunk
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.rag.CodeIndex.IndexResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.rag.CodeRelation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.rag.VectorStore.CodeChunkEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.rag.VectorStore.IndexStats
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.render.StatusInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.runtime.task.DurableTask
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.skill.Skill
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.snapshot.RestoreResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.tool.ToolOutput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.web.FetchResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.web.HtmlExtractor.Extracted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.web.SearchResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatAccount
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatCommandParser.Command
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatLoginResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatMediaItem
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatPolicyDecision
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatQrLogin
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.yapcli.wechat.WechatUpdate
-
Indicates whether some other object is "equal to" this one.
- errMsg() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns the value of the
errMsgrecord component. - error() - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Returns the value of the
errorrecord component. - error() - Method in record class com.yapcli.image.ClipboardImage.GrabResult
-
Returns the value of the
errorrecord component. - error() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Returns the value of the
errorrecord component. - error() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
errorrecord component. - error(String) - Static method in record class com.yapcli.image.ClipboardImage.GrabResult
- error(String) - Static method in class com.yapcli.util.AnsiStyle
- error(String, AgentRole, String) - Static method in record class com.yapcli.agent.AgentMessage
-
创建错误消息(子代理在执行过程中遇到系统级错误)
- error(String, String, String, long) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- error(String, String, String, long, BrowserAuditMetadata) - Static method in record class com.yapcli.policy.AuditLog.AuditEntry
- Error(int, String, JsonNode) - Constructor for record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Creates an instance of a
Errorrecord class. - ERROR - Enum constant in enum class com.yapcli.agent.AgentMessage.Type
- ERROR - Enum constant in enum class com.yapcli.lsp.LspSeverity
- ERROR - Enum constant in enum class com.yapcli.mcp.McpServerStatus
- errorMessage() - Method in class com.yapcli.mcp.McpServer
- errorMessage(String) - Method in class com.yapcli.mcp.McpServer
- ESC - Static variable in class com.yapcli.render.inline.AnsiSeq
- estimatedCost() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
estimatedCostrecord component. - estimatedCostCny(LlmClient, int, int, int) - Static method in class com.yapcli.context.TokenUsageFormatter
- estimateMessagesTokens(List<LlmClient.Message>) - Static method in class com.yapcli.memory.TokenBudget
-
估算消息列表的 token 总数
- estimateTokens(String) - Static method in class com.yapcli.memory.MemoryEntry
-
粗略估算 token 数(中文约 1.5 字/token,英文约 4 字符/token)
- events(String, long) - Method in class com.yapcli.runtime.api.RuntimeThreadStore
- excludes() - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Returns the value of the
excludesrecord component. - execute() - Static method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
- execute(AgentMessage) - Method in class com.yapcli.agent.SubAgent
-
执行任务,返回结果消息(默认输出到 System.out)
- execute(AgentMessage, PrintStream) - Method in class com.yapcli.agent.SubAgent
-
执行任务并将流式输出写入指定 PrintStream。并发执行时为每个步骤传入独立的 PrintStream, 避免多个 Agent 同时写入 System.out 造成输出交错。
- execute(Map<String, String>) - Method in interface com.yapcli.tool.ToolRegistry.ToolExecutor
- EXECUTE - Enum constant in enum class com.yapcli.agent.PlanExecuteAgent.PlanReviewAction
- executeTool(String, String) - Method in class com.yapcli.hitl.HitlToolRegistry
- executeTool(String, String) - Method in class com.yapcli.tool.ToolRegistry
-
执行工具调用 危险工具(write_file / execute_command / create_project)会写一行审计: - 策略拦截(PathGuard / CommandGuard / 文件大小上限)→ deny - 普通异常 → error - 其他情况 → allow(仅表示工具调用真的发生过,工具内部的业务错误仍以返回字符串呈现给 LLM)
- executeToolOutput(String, String) - Method in class com.yapcli.hitl.HitlToolRegistry
- executeToolOutput(String, String) - Method in class com.yapcli.tool.ToolRegistry
- executeToolOutput(String, String) - Method in class com.yapcli.wechat.WechatToolRegistry
- executeTools(List<ToolRegistry.ToolInvocation>) - Method in class com.yapcli.tool.ToolRegistry
-
并行执行同一轮 LLM 返回的多个工具调用。 结果按传入顺序返回,调用方可以安全地按原 tool_call 顺序回灌消息历史。 如果某个工具超过批次超时仍未返回,会取消任务并返回超时结果;已完成工具不受影响。
- executeWithContext(AgentMessage, String) - Method in class com.yapcli.agent.SubAgent
-
执行任务(带上下文注入),用于 Worker 接收额外上下文
- executeWithContext(AgentMessage, String, PrintStream) - Method in class com.yapcli.agent.SubAgent
- ExecutionPlan - Class in com.yapcli.plan
-
执行计划 - 包含一组有依赖关系的任务
- ExecutionPlan(String, String) - Constructor for class com.yapcli.plan.ExecutionPlan
- ExecutionPlan.PlanStatus - Enum Class in com.yapcli.plan
- executor() - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Returns the value of the
executorrecord component. - exists(String) - Method in class com.yapcli.runtime.api.RuntimeThreadStore
- expand(String) - Method in class com.yapcli.mcp.mention.AtMentionExpander
- expired() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
expiredrecord component. - ExplicitMemoryHints - Class in com.yapcli.memory
- externalContext() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
externalContextrecord component. - externalContext(String) - Method in class com.yapcli.prompt.PromptContext.Builder
- extract(String, String) - Method in class com.yapcli.web.HtmlExtractor
- extractAll() - Method in class com.yapcli.skill.SkillBuiltinExtractor
- Extracted(String, String) - Constructor for record class com.yapcli.web.HtmlExtractor.Extracted
-
Creates an instance of a
Extractedrecord class. - extractFacts(List<MemoryEntry>, LongTermMemory) - Method in class com.yapcli.memory.ContextCompressor
-
从对话中提取关键事实,存入长期记忆
F
- FACT - Enum constant in enum class com.yapcli.memory.MemoryEntry.MemoryType
- FAILED - Enum constant in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
- FAILED - Enum constant in enum class com.yapcli.plan.Task.TaskStatus
- FAILED - Enum constant in enum class com.yapcli.runtime.task.TaskStatus
- failure(String) - Static method in record class com.yapcli.snapshot.RestoreResult
- feedback() - Method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
-
Returns the value of the
feedbackrecord component. - feedback(String, String) - Static method in record class com.yapcli.agent.AgentMessage
-
创建反馈消息(检查者 -> 主控)
- FEEDBACK - Enum constant in enum class com.yapcli.agent.AgentMessage.Type
- fetch(String) - Method in class com.yapcli.web.WebFetcher
- FetchResult - Record Class in com.yapcli.web
-
web_fetch 的结构化结果。
FetchResult.markdown为空 /FetchResult.bodyEmpty= true 时,意味着抓到了 HTML 但提取不出正文, 常见原因是 SPA / 防爬墙。LLM 应该意识到这是已知边界,不要反复重试。FetchResult.truncated= true 表示 markdown 已被截断到调用方指定的最大字符数。 - FetchResult(String, String, String, int, boolean, boolean, String) - Constructor for record class com.yapcli.web.FetchResult
-
Creates an instance of a
FetchResultrecord class. - file() - Method in class com.yapcli.skill.SkillStateStore
- FILE_READ - Enum constant in enum class com.yapcli.plan.Task.TaskType
- FILE_WRITE - Enum constant in enum class com.yapcli.plan.Task.TaskType
- fileChunk(String, String) - Static method in record class com.yapcli.rag.CodeChunk
-
构造一个文件级别的代码块
- fileName() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns the value of the
fileNamerecord component. - filePath() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns the value of the
filePathrecord component. - filePath() - Method in record class com.yapcli.rag.CodeChunk
-
Returns the value of the
filePathrecord component. - filePath() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns the value of the
filePathrecord component. - FileTreePane - Class in com.yapcli.tui.pane
-
左侧文件树面板。
- FileTreePane(YapCliConfig) - Constructor for class com.yapcli.tui.pane.FileTreePane
-
创建文件树面板。
- find(String) - Method in class com.yapcli.runtime.task.DurableTaskManager
- findAnySkill(String) - Method in class com.yapcli.skill.SkillRegistry
- findSkill(String) - Method in class com.yapcli.skill.SkillRegistry
- finish() - Method in class com.yapcli.util.TerminalMarkdownRenderer
- finishAssistantContent() - Method in interface com.yapcli.render.Renderer
-
assistant 正文流结束。普通终端渲染器忽略;远程通道可用它 flush 剩余正文。
- finishAssistantContent() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- finishedAt() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
finishedAtrecord component. - finishInputLine() - Method in class com.yapcli.render.inline.BottomStatusBar
-
输入提交后保留底部 dock;正文继续在 JLine 保留区上方滚动。
- flushBuffer() - Method in class com.yapcli.wechat.WechatRenderer
- flushNow() - Method in class com.yapcli.render.inline.BottomStatusBar
-
立即触发一次重绘(不等节流间隔)。
- flushPendingDiagnostics() - Method in class com.yapcli.lsp.LspManager
- flushPendingLspDiagnostics() - Method in class com.yapcli.tool.ToolRegistry
- FoldableBlock - Class in com.yapcli.render.inline
-
行内可折叠块。
- FoldableBlock(PrintStream, String, List<String>) - Constructor for class com.yapcli.render.inline.FoldableBlock
- FoldableBlock(PrintStream, String, List<String>, String) - Constructor for class com.yapcli.render.inline.FoldableBlock
- format(LlmClient, int, int, int, long) - Static method in class com.yapcli.context.TokenUsageFormatter
- format(List<LspDiagnostic>) - Static method in class com.yapcli.lsp.LspDiagnosticFormatter
- format(List<Skill>) - Static method in class com.yapcli.skill.SkillIndexFormatter
- formatForCli() - Method in record class com.yapcli.snapshot.RestoreResult
- formatForCli(String, List<VectorStore.SearchResult>) - Static method in class com.yapcli.rag.SearchResultFormatter
- formatForLlm() - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
- formatForTool(String, List<VectorStore.SearchResult>) - Static method in class com.yapcli.rag.SearchResultFormatter
- formatList(List<DurableTask>) - Static method in class com.yapcli.runtime.task.TaskCommandFormatter
- formatLog(DurableTask) - Static method in class com.yapcli.runtime.task.TaskCommandFormatter
- formatResourceContents(List<McpResourceContent>) - Static method in class com.yapcli.mcp.McpClient
- formatResources(List<McpResourceDescriptor>) - Static method in class com.yapcli.mcp.McpClient
- formatStatus() - Method in class com.yapcli.mcp.McpServerManager
- formatStatus() - Method in class com.yapcli.snapshot.SideGitManager
- forProject(Path) - Static method in class com.yapcli.snapshot.SnapshotService
- forWorkspace(Path) - Static method in record class com.yapcli.wechat.WechatPolicyConfig
- FreeLlmApiClient - Class in com.yapcli.llm
- FreeLlmApiClient(String, String, String) - Constructor for class com.yapcli.llm.FreeLlmApiClient
- freeze() - Method in class com.yapcli.render.inline.FoldableBlock
- freezeAll() - Method in class com.yapcli.render.inline.BlockRegistry
-
后续普通输出已经出现,所有现存块都不能再做原地覆盖重绘。
- from(LlmClient) - Static method in record class com.yapcli.context.ContextProfile
- from(String) - Static method in enum class com.yapcli.runtime.task.TaskStatus
- fromAgent() - Method in record class com.yapcli.agent.AgentMessage
-
Returns the value of the
fromAgentrecord component. - fromBase64(String, String) - Static method in class com.yapcli.image.ImageProcessor
- fromEnvironment() - Static method in record class com.yapcli.snapshot.SnapshotConfig
- fromFile() - Method in record class com.yapcli.rag.CodeRelation
-
Returns the value of the
fromFilerecord component. - fromJson(JsonNode) - Static method in record class com.yapcli.mcp.resources.McpResourceContent
- fromJson(String, JsonNode) - Static method in record class com.yapcli.mcp.resources.McpResourceDescriptor
- fromLlmClient(LlmClient) - Static method in class com.yapcli.agent.AgentBudget
- fromName() - Method in record class com.yapcli.rag.CodeRelation
-
Returns the value of the
fromNamerecord component. - fromPath(Path, String) - Static method in class com.yapcli.image.ImageProcessor
- fromRole() - Method in record class com.yapcli.agent.AgentMessage
-
Returns the value of the
fromRolerecord component. - fromSystemProperties() - Static method in class com.yapcli.agent.AgentBudget
- fromUserId() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns the value of the
fromUserIdrecord component. - frontmatter() - Method in record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Returns the value of the
frontmatterrecord component. - function() - Method in record class com.yapcli.llm.LlmClient.ToolCall
-
Returns the value of the
functionrecord component. - Function(String, String) - Constructor for record class com.yapcli.llm.LlmClient.ToolCall.Function
-
Creates an instance of a
Functionrecord class.
G
- generateSessionId() - Static method in class com.yapcli.tui.history.ConversationSnapshot
-
获取当前会话 ID(时间戳)。
- get() - Method in interface com.yapcli.snapshot.SnapshotService.ThrowingSupplier
- get(String) - Method in class com.yapcli.mcp.resources.McpResourceCache
- getAll() - Method in class com.yapcli.memory.ConversationMemory
- getAll() - Method in class com.yapcli.memory.LongTermMemory
- getAll() - Method in interface com.yapcli.memory.Memory
-
获取所有记忆
- getAll(String) - Method in class com.yapcli.memory.LongTermMemory
- getAllTasks() - Method in class com.yapcli.plan.ExecutionPlan
-
获取所有任务
- getApiKey() - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- getApiKey() - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- getApiKey() - Method in class com.yapcli.llm.AgnesClient
- getApiKey() - Method in class com.yapcli.llm.DeepSeekClient
- getApiKey() - Method in class com.yapcli.llm.FreeLlmApiClient
- getApiKey() - Method in class com.yapcli.llm.GLMClient
- getApiKey() - Method in class com.yapcli.llm.KimiClient
- getApiKey() - Method in class com.yapcli.llm.StepClient
- getApiKey() - Method in class com.yapcli.llm.XfyunMaaSClient
- getApiKey(String) - Method in class com.yapcli.config.YapCliConfig
- getApiUrl() - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- getApiUrl() - Method in class com.yapcli.llm.AgnesClient
- getApiUrl() - Method in class com.yapcli.llm.DeepSeekClient
- getApiUrl() - Method in class com.yapcli.llm.FreeLlmApiClient
- getApiUrl() - Method in class com.yapcli.llm.GLMClient
- getApiUrl() - Method in class com.yapcli.llm.KimiClient
- getApiUrl() - Method in class com.yapcli.llm.StepClient
- getApiUrl() - Method in class com.yapcli.llm.XfyunMaaSClient
- getArgs() - Method in class com.yapcli.mcp.config.McpServerConfig
- getAuditDir() - Method in class com.yapcli.policy.AuditLog
- getAuditLog() - Method in class com.yapcli.tool.ToolRegistry
- getAvailableForConversation() - Method in class com.yapcli.memory.TokenBudget
-
获取对话历史可用的 token 预算
- getBaseUrl() - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- getBaseUrl(String) - Method in class com.yapcli.config.YapCliConfig
- getBrowserGuard() - Method in class com.yapcli.tool.ToolRegistry
- getByType(MemoryEntry.MemoryType) - Method in class com.yapcli.memory.LongTermMemory
-
按类型筛选记忆
- getCenterPane() - Method in class com.yapcli.tui.RootPane
- getCommand() - Method in class com.yapcli.mcp.config.McpServerConfig
- getCompressedSummaries() - Method in class com.yapcli.memory.ConversationMemory
-
获取已压缩淘汰的记忆摘要
- getConfig() - Method in class com.yapcli.tui.LanternaWindow
- getContent() - Method in class com.yapcli.memory.MemoryEntry
- getContextProfile() - Method in class com.yapcli.memory.MemoryManager
- getContextProfile() - Method in class com.yapcli.tool.ToolRegistry
- getContextStatus() - Method in class com.yapcli.agent.Agent
- getContextWindow() - Method in class com.yapcli.memory.TokenBudget
- getConversationHistory() - Method in class com.yapcli.agent.Agent
-
获取对话历史(用于调试)
- getCurrentProject() - Method in class com.yapcli.memory.MemoryManager
- getDangerLevel(String) - Static method in class com.yapcli.hitl.ApprovalPolicy
-
获取危险等级描述
- getDangerousTools() - Static method in class com.yapcli.hitl.ApprovalPolicy
-
获取所有需要审批的工具名集合(用于测试和展示)
- getDefaultProvider() - Method in class com.yapcli.config.YapCliConfig
- getDelegate() - Method in class com.yapcli.hitl.SwitchableHitlHandler
- getDependencies() - Method in class com.yapcli.plan.Task
- getDependents() - Method in class com.yapcli.plan.Task
- getDescription() - Method in enum class com.yapcli.agent.AgentRole
- getDescription() - Method in class com.yapcli.plan.Task
- getDisplayName() - Method in enum class com.yapcli.agent.AgentRole
- getDuration() - Method in class com.yapcli.plan.ExecutionPlan
-
获取总耗时
- getDuration() - Method in class com.yapcli.plan.Task
-
获取执行耗时(毫秒)
- getEndTime() - Method in class com.yapcli.plan.ExecutionPlan
- getEndTime() - Method in class com.yapcli.plan.Task
- getEnv() - Method in class com.yapcli.mcp.config.McpServerConfig
- getError() - Method in class com.yapcli.plan.Task
- getExecutableTasks() - Method in class com.yapcli.plan.ExecutionPlan
-
获取可执行的任务(依赖都已完成)
- getExecutionBatches() - Method in class com.yapcli.plan.ExecutionPlan
- getExecutionOrder() - Method in class com.yapcli.plan.ExecutionPlan
-
获取执行顺序
- getFileTreePane() - Method in class com.yapcli.tui.RootPane
- getGoal() - Method in class com.yapcli.plan.ExecutionPlan
- getGui() - Method in class com.yapcli.tui.LanternaWindow
- getHeaders() - Method in class com.yapcli.mcp.config.McpServerConfig
- getHitlHandler() - Method in class com.yapcli.hitl.HitlToolRegistry
- getId() - Method in class com.yapcli.memory.MemoryEntry
- getId() - Method in class com.yapcli.plan.ExecutionPlan
- getId() - Method in class com.yapcli.plan.Task
- getInputBar() - Method in class com.yapcli.tui.RootPane
- getLlmCallCount() - Method in class com.yapcli.memory.TokenBudget
- getLlmClient() - Method in class com.yapcli.tui.LanternaWindow
- getLongTermMemory() - Method in class com.yapcli.memory.MemoryManager
- getLoraId() - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- getLoraId(String) - Method in class com.yapcli.config.YapCliConfig
- getMaxTokens() - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- getMaxTokens() - Method in class com.yapcli.memory.ConversationMemory
- getMcpServers() - Method in class com.yapcli.mcp.config.McpConfigFile
- getMemoryManager() - Method in class com.yapcli.agent.Agent
-
获取记忆管理器
- getMemoryManager() - Method in class com.yapcli.agent.AgentOrchestrator
-
获取记忆管理器
- getMessages() - Method in class com.yapcli.tui.history.ConversationSnapshot
-
获取所有消息。
- getMetadata() - Method in class com.yapcli.memory.MemoryEntry
- getModel() - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- getModel() - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- getModel() - Method in class com.yapcli.llm.AgnesClient
- getModel() - Method in class com.yapcli.llm.DeepSeekClient
- getModel() - Method in class com.yapcli.llm.FreeLlmApiClient
- getModel() - Method in class com.yapcli.llm.GLMClient
- getModel() - Method in class com.yapcli.llm.KimiClient
- getModel() - Method in class com.yapcli.llm.StepClient
- getModel() - Method in class com.yapcli.llm.XfyunMaaSClient
- getModel() - Method in class com.yapcli.rag.EmbeddingClient
- getModel(String) - Method in class com.yapcli.config.YapCliConfig
- getModelName() - Method in class com.yapcli.llm.AgnesClient
- getModelName() - Method in class com.yapcli.llm.DeepSeekClient
- getModelName() - Method in class com.yapcli.llm.FreeLlmApiClient
- getModelName() - Method in class com.yapcli.llm.GLMClient
- getModelName() - Method in class com.yapcli.llm.KimiClient
- getModelName() - Method in interface com.yapcli.llm.LlmClient
- getModelName() - Method in class com.yapcli.llm.StepClient
- getModelName() - Method in class com.yapcli.llm.XfyunMaaSClient
- getName() - Method in class com.yapcli.agent.SubAgent
- getOutgoingRelations(String) - Method in class com.yapcli.rag.VectorStore
-
获取指定类/方法的所有 outgoing 关系
- getProgress() - Method in class com.yapcli.plan.ExecutionPlan
-
获取执行进度
- getProjectPath() - Method in class com.yapcli.tool.ToolRegistry
-
获取代码检索的项目路径
- getProvider() - Method in class com.yapcli.rag.EmbeddingClient
- getProviderName() - Method in class com.yapcli.llm.AgnesClient
- getProviderName() - Method in class com.yapcli.llm.DeepSeekClient
- getProviderName() - Method in class com.yapcli.llm.FreeLlmApiClient
- getProviderName() - Method in class com.yapcli.llm.GLMClient
- getProviderName() - Method in class com.yapcli.llm.KimiClient
- getProviderName() - Method in interface com.yapcli.llm.LlmClient
- getProviderName() - Method in class com.yapcli.llm.StepClient
- getProviderName() - Method in class com.yapcli.llm.XfyunMaaSClient
- getProviders() - Method in class com.yapcli.config.YapCliConfig
- getRelationGraph(String) - Method in class com.yapcli.rag.CodeRetriever
-
图谱检索:查询指定类/方法的关系图谱
- getRelations(String) - Method in class com.yapcli.rag.VectorStore
-
图谱检索:查询与指定名称相关的所有关系
- getResult() - Method in class com.yapcli.plan.Task
- getRiskDescription(String) - Static method in class com.yapcli.hitl.ApprovalPolicy
-
获取危险操作的风险说明
- getRole() - Method in class com.yapcli.agent.SubAgent
- getRootPane() - Method in class com.yapcli.tui.LanternaWindow
- getRootPath() - Method in class com.yapcli.policy.PathGuard
- getRootTasks() - Method in class com.yapcli.plan.ExecutionPlan
-
获取根任务(没有依赖的任务)
- getScreen() - Method in class com.yapcli.tui.LanternaWindow
- getSessionId() - Method in class com.yapcli.tui.history.ConversationSnapshot
-
获取会话 ID。
- getShortTermMemory() - Method in class com.yapcli.memory.MemoryManager
- getSkillContextBuffer() - Method in class com.yapcli.tool.ToolRegistry
- getSkillRegistry() - Method in class com.yapcli.tool.ToolRegistry
- getSnapshotService() - Method in class com.yapcli.tool.ToolRegistry
- getStartTime() - Method in class com.yapcli.plan.ExecutionPlan
- getStartTime() - Method in class com.yapcli.plan.Task
- getStats() - Method in class com.yapcli.rag.CodeRetriever
-
获取当前索引统计
- getStats() - Method in class com.yapcli.rag.VectorStore
-
统计当前项目的索引数据量
- getStatus() - Method in class com.yapcli.plan.ExecutionPlan
- getStatus() - Method in class com.yapcli.plan.Task
- getStatusPane() - Method in class com.yapcli.tui.RootPane
- getStatusSummary() - Method in class com.yapcli.memory.ConversationMemory
-
生成记忆状态摘要
- getStatusSummary() - Method in class com.yapcli.memory.LongTermMemory
-
生成记忆状态摘要
- getSummary() - Method in class com.yapcli.plan.ExecutionPlan
- getSystemStatus() - Method in class com.yapcli.memory.MemoryManager
-
获取记忆系统的整体状态
- getTask(String) - Method in class com.yapcli.plan.ExecutionPlan
-
获取任务
- getTemperature() - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- getText() - Method in class com.yapcli.tui.pane.InputBar
-
获取当前输入内容。
- getTimestamp() - Method in class com.yapcli.memory.MemoryEntry
- getTokenBudget() - Method in class com.yapcli.memory.MemoryManager
- getTokenCount() - Method in class com.yapcli.memory.ConversationMemory
- getTokenCount() - Method in class com.yapcli.memory.LongTermMemory
- getTokenCount() - Method in interface com.yapcli.memory.Memory
-
获取当前记忆的 token 总数
- getTokenCount() - Method in class com.yapcli.memory.MemoryEntry
- getToolDefinitions() - Method in class com.yapcli.tool.ToolRegistry
-
获取所有工具定义(用于LLM)
- getToolRegistry() - Method in class com.yapcli.agent.Agent
-
获取工具注册表(用于同步项目路径等配置)
- getToolRegistry() - Method in class com.yapcli.agent.AgentOrchestrator
-
获取工具注册表(用于同步项目路径)
- getTotalCachedInputTokens() - Method in class com.yapcli.memory.TokenBudget
- getTotalInputTokens() - Method in class com.yapcli.memory.TokenBudget
- getTotalOutputTokens() - Method in class com.yapcli.memory.TokenBudget
- getType() - Method in class com.yapcli.memory.MemoryEntry
- getType() - Method in class com.yapcli.plan.Task
- getUpdates(WechatAccount, long) - Method in class com.yapcli.wechat.IlinkClient
- getUrl() - Method in class com.yapcli.mcp.config.McpServerConfig
- getUsageRatio() - Method in class com.yapcli.memory.ConversationMemory
-
获取记忆使用率
- getUsageReport() - Method in class com.yapcli.memory.TokenBudget
-
获取 token 使用统计
- gitDir() - Method in class com.yapcli.snapshot.SideGitManager
- GLMClient - Class in com.yapcli.llm
- GLMClient(String) - Constructor for class com.yapcli.llm.GLMClient
- GLMClient(String, String) - Constructor for class com.yapcli.llm.GLMClient
- grab() - Static method in class com.yapcli.image.ClipboardImage
- GrabResult(boolean, Path, String) - Constructor for record class com.yapcli.image.ClipboardImage.GrabResult
-
Creates an instance of a
GrabResultrecord class.
H
- handle(DurableTaskManager, String) - Static method in class com.yapcli.runtime.task.TaskCommandFormatter
- handleInput(KeyStroke) - Method in class com.yapcli.tui.RootPane
-
处理键盘快捷键(Day 4 实现)。
- HARD_ITERATION_LIMIT - Enum constant in enum class com.yapcli.agent.AgentBudget.ExitReason
- hardMaxIterations() - Method in class com.yapcli.agent.AgentBudget
- hasCompletedRun() - Method in class com.yapcli.wechat.WechatAgentSession
- hasContentParts() - Method in record class com.yapcli.llm.LlmClient.Message
- hasFailed() - Method in class com.yapcli.plan.ExecutionPlan
-
是否有失败任务
- hashCode() - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.agent.AgentMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.browser.BrowserAuditMetadata
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.browser.SensitivePagePolicy.MatchResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.context.ContextProfile
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.hitl.ApprovalResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.image.ClipboardImage.GrabResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.llm.LlmClient.Tool
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.llm.LlmClient.ToolCall.Function
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.llm.LlmClient.ToolCall
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.lsp.LspDiagnosticReport
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Notification
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.McpServerManager.ResourceReadResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.protocol.McpCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.protocol.McpContent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult.ServerInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.prompt.PromptContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.rag.CodeChunk
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.rag.CodeIndex.IndexResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.rag.CodeRelation
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.rag.VectorStore.CodeChunkEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.rag.VectorStore.IndexStats
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.render.StatusInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.skill.Skill
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.tool.ToolOutput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.web.FetchResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.web.HtmlExtractor.Extracted
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.web.SearchResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatCommandParser.Command
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatPolicyDecision
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatQrLogin
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns a hash code value for this object.
- hasImageContent() - Method in record class com.yapcli.llm.LlmClient.Message
- hasImageParts() - Method in record class com.yapcli.tool.ToolOutput
- hasImageParts() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
- hasStatusBar() - Method in class com.yapcli.render.inline.InlineRenderer
-
测试可见:当前实例是否启动了 status bar。
- hasTool(String) - Method in class com.yapcli.tool.ToolRegistry
- hasToolCalls() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
- heading(String) - Static method in class com.yapcli.util.AnsiStyle
- HELP - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- HIDE_CURSOR - Static variable in class com.yapcli.render.inline.AnsiSeq
-
隐藏光标。
- highlight(String, String) - Static method in class com.yapcli.tui.highlight.CodeHighlighter
-
高亮代码块。
- hint() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
hintrecord component. - hitlEnabled() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
hitlEnabledrecord component. - HitlHandler - Interface in com.yapcli.hitl
-
HITL 审批交互接口 - 定义人工审批的交互契约 实现类负责与用户交互,收集用户对危险操作的审批决策。 当前仓库提供基于终端的实现(TerminalHitlHandler)。 设计约定: - 审批是同步阻塞操作,实现类需等待用户输入后才返回 - 实现类不负责判断"是否需要审批",该判断由 ApprovalPolicy 负责 - 实现类只负责"展示请求 + 收集决策"
- HitlToolRegistry - Class in com.yapcli.hitl
-
HITL 工具注册表 - 在危险工具调用前插入人工审批 继承自 ToolRegistry,覆写 executeTool 方法,在执行危险操作之前 通过 HitlHandler 向用户请求审批。 如果 HITL 未启用,行为与父类完全相同,无额外开销。 HITL 拒绝 / 跳过路径会写一行 audit(approver=hitl),HITL 通过后由父类 ToolRegistry 写 allow / policy-deny / error,HITL 审批与策略拦截共用同一份 ~/.yapcli/audit/ 文件。
- HitlToolRegistry(HitlHandler) - Constructor for class com.yapcli.hitl.HitlToolRegistry
- HtmlExtractor - Class in com.yapcli.web
-
极简版 readability:HTML → 主正文 Markdown。 思路(按优先级): 清理噪声标签:script、style、nav、aside、footer、header、form、iframe、广告 class 找主语义容器:<article>、<main>、role="main" 都没有则给所有 block 元素打分(文本长度 - 链接占比惩罚),选最高分 再把选中容器递归转成 Markdown 不追求与 Mozilla Readability 完全对齐,目标是覆盖博客 / 文档 / 官网这类 SSR 页面的常见结构。SPA 渲染后的空 HTML 会得到空字符串,由调用方提示边界。
- HtmlExtractor() - Constructor for class com.yapcli.web.HtmlExtractor
- HtmlExtractor.Extracted - Record Class in com.yapcli.web
- httpClient() - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- httpClient() - Method in class com.yapcli.llm.DeepSeekClient
- hybridSearch(String, int) - Method in class com.yapcli.rag.CodeRetriever
-
混合检索:同时进行语义检索和关键词检索,合并去重
I
- id() - Method in record class com.yapcli.llm.LlmClient.ToolCall
-
Returns the value of the
idrecord component. - id() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Returns the value of the
idrecord component. - id() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Returns the value of the
idrecord component. - id() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns the value of the
idrecord component. - id() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
idrecord component. - id() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
idrecord component. - id() - Method in record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Returns the value of the
idrecord component. - idle(String, long, boolean) - Static method in record class com.yapcli.render.StatusInfo
- idle(String, long, long, boolean) - Static method in record class com.yapcli.render.StatusInfo
- IlinkClient - Class in com.yapcli.wechat
- IlinkClient() - Constructor for class com.yapcli.wechat.IlinkClient
- IMAGE_MAX_HEIGHT - Static variable in class com.yapcli.image.ImageProcessor
- IMAGE_MAX_WIDTH - Static variable in class com.yapcli.image.ImageProcessor
- IMAGE_TARGET_RAW_SIZE - Static variable in class com.yapcli.image.ImageProcessor
- imageBase64() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns the value of the
imageBase64record component. - imageBase64(String, String) - Static method in record class com.yapcli.llm.LlmClient.ContentPart
- imagePartCount() - Method in record class com.yapcli.llm.LlmClient.Message
- imageParts() - Method in record class com.yapcli.tool.ToolOutput
-
Returns the value of the
imagePartsrecord component. - imageParts() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
imagePartsrecord component. - ImageProcessor - Class in com.yapcli.image
- ImageProcessor.Dimensions - Record Class in com.yapcli.image
- ImageProcessor.ProcessedImage - Record Class in com.yapcli.image
- ImageReferenceParser - Class in com.yapcli.image
- imageUrl() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns the value of the
imageUrlrecord component. - imageUrl(String) - Static method in record class com.yapcli.llm.LlmClient.ContentPart
- index(String) - Method in class com.yapcli.rag.CodeIndex
-
索引指定路径的代码库
- IndexResult(int, int, String) - Constructor for record class com.yapcli.rag.CodeIndex.IndexResult
-
Creates an instance of a
IndexResultrecord class. - IndexStats(int, int) - Constructor for record class com.yapcli.rag.VectorStore.IndexStats
-
Creates an instance of a
IndexStatsrecord class. - INFO - Enum constant in enum class com.yapcli.lsp.LspSeverity
- initialize() - Method in class com.yapcli.mcp.McpClient
- injectSummary(MemoryEntry) - Method in class com.yapcli.memory.ConversationMemory
-
将压缩摘要回注到记忆中(上下文压缩后调用)
- INLINE - Enum constant in enum class com.yapcli.render.RendererFactory.Mode
- InlineApprovalPrompter - Class in com.yapcli.render.inline
-
Inline 形态的 HITL 审批提示。
- InlineApprovalPrompter(PrintStream, Terminal) - Constructor for class com.yapcli.render.inline.InlineApprovalPrompter
- InlineDiffRenderer - Class in com.yapcli.render.inline
-
行内 diff 渲染:红减、绿加、青色 hunk header。
- InlineDiffRenderer(PrintStream) - Constructor for class com.yapcli.render.inline.InlineDiffRenderer
- InlineRenderer - Class in com.yapcli.render.inline
-
Inline 流式渲染器:默认形态。
- InlineRenderer(Terminal) - Constructor for class com.yapcli.render.inline.InlineRenderer
- InputBar - Class in com.yapcli.tui.pane
-
底部输入栏。
- InputBar(YapCliConfig, LlmClient, Consumer<String>) - Constructor for class com.yapcli.tui.pane.InputBar
-
创建输入栏。
- inputPrompt() - Method in class com.yapcli.render.inline.InlineRenderer
- inputPrompt() - Method in interface com.yapcli.render.Renderer
-
当前渲染器希望 LineReader 使用的左侧输入提示。
- inputPrompt() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- inputRightPrompt() - Method in class com.yapcli.render.inline.InlineRenderer
- inputRightPrompt() - Method in interface com.yapcli.render.Renderer
-
当前渲染器希望 LineReader 使用的右侧提示;返回 null 表示不显示。
- inputRightPrompt() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- inputSchema() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns the value of the
inputSchemarecord component. - inputTokens() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
inputTokensrecord component. - inputTokens() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
inputTokensrecord component. - insertChunks(List<VectorStore.CodeChunkEntry>) - Method in class com.yapcli.rag.VectorStore
-
批量插入代码块(事务保护)
- insertRelations(List<CodeRelation>) - Method in class com.yapcli.rag.VectorStore
-
批量插入代码关系(事务保护)
- installStartupScreen(List<String>) - Method in class com.yapcli.render.inline.InlineRenderer
-
在 LineReader 第一次进入 readLine 时打印首屏。
- invalidateResource(String, String) - Method in class com.yapcli.mcp.resources.McpResourceCache
- invalidateServer(String) - Method in class com.yapcli.mcp.resources.McpResourceCache
- invoker(McpClient, McpToolDescriptor) - Static method in class com.yapcli.mcp.resources.McpResourceTool
- isAgentOpenedTab(String) - Method in class com.yapcli.browser.BrowserSession
- isAllCompleted() - Method in class com.yapcli.plan.ExecutionPlan
-
是否全部完成
- isApproved() - Method in record class com.yapcli.hitl.ApprovalResult
- isApprovedAll() - Method in record class com.yapcli.hitl.ApprovalResult
- isApprovedAllByServer(String) - Method in interface com.yapcli.hitl.HitlHandler
- isApprovedAllByServer(String) - Method in class com.yapcli.hitl.RendererHitlHandler
- isApprovedAllByServer(String) - Method in class com.yapcli.hitl.SwitchableHitlHandler
- isApprovedAllByServer(String) - Method in class com.yapcli.hitl.TerminalHitlHandler
- isApprovedAllByServer(String) - Method in class com.yapcli.tui.hitl.TuiHitlHandler
- isApprovedAllByTool(String) - Method in interface com.yapcli.hitl.HitlHandler
- isApprovedAllByTool(String) - Method in class com.yapcli.hitl.RendererHitlHandler
- isApprovedAllByTool(String) - Method in class com.yapcli.hitl.SwitchableHitlHandler
- isApprovedAllByTool(String) - Method in class com.yapcli.hitl.TerminalHitlHandler
- isApprovedAllByTool(String) - Method in class com.yapcli.tui.hitl.TuiHitlHandler
- isApprovedAllForServer() - Method in record class com.yapcli.hitl.ApprovalResult
- isApprovedAllForTool() - Method in record class com.yapcli.hitl.ApprovalResult
- isCancelled() - Static method in class com.yapcli.runtime.CancellationContext
- isCancelled() - Method in class com.yapcli.runtime.CancellationToken
- isChromeTool(String) - Static method in class com.yapcli.browser.BrowserGuard
- isDisabled() - Method in class com.yapcli.mcp.config.McpServerConfig
- isEmpty() - Method in record class com.yapcli.lsp.LspDiagnosticReport
- isEmpty() - Method in class com.yapcli.skill.SkillContextBuffer
- isEnabled() - Method in interface com.yapcli.hitl.HitlHandler
-
HITL 是否处于启用状态 如果未启用,调用方可以直接跳过审批流程
- isEnabled() - Method in class com.yapcli.hitl.RendererHitlHandler
- isEnabled() - Method in class com.yapcli.hitl.SwitchableHitlHandler
- isEnabled() - Method in class com.yapcli.hitl.TerminalHitlHandler
- isEnabled() - Method in class com.yapcli.tui.hitl.TuiHitlHandler
- isEnabled() - Static method in class com.yapcli.util.AnsiStyle
- isError() - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
-
Returns the value of the
isErrorrecord component. - isExecutable(Map<String, Task>) - Method in class com.yapcli.plan.Task
-
是否可以执行(所有依赖都已完成)
- isExpanded() - Method in class com.yapcli.render.inline.FoldableBlock
- isFrozen() - Method in class com.yapcli.render.inline.FoldableBlock
- isHttp() - Method in class com.yapcli.mcp.config.McpServerConfig
- isImage() - Method in record class com.yapcli.llm.LlmClient.ContentPart
- isImage() - Method in record class com.yapcli.wechat.WechatMediaItem
- isMcpTool(String) - Static method in class com.yapcli.hitl.ApprovalPolicy
- ISOLATED - Enum constant in enum class com.yapcli.browser.BrowserMode
- isReady() - Method in interface com.yapcli.web.SearchProvider
- isReady() - Method in class com.yapcli.web.SearxngSearchProvider
- isReady() - Method in class com.yapcli.web.SerpApiSearchProvider
- isReady() - Method in class com.yapcli.web.ZhipuSearchProvider
- isRejected() - Method in record class com.yapcli.hitl.ApprovalResult
- isResourceStale(String, String) - Method in class com.yapcli.mcp.resources.McpResourceCache
- isRunning() - Method in class com.yapcli.wechat.WechatAgentSession
- isSensitive(String) - Method in class com.yapcli.browser.SensitivePagePolicy
- isServerStale(String) - Method in class com.yapcli.mcp.resources.McpResourceCache
- isSkipped() - Method in record class com.yapcli.hitl.ApprovalResult
- isStdio() - Method in class com.yapcli.mcp.config.McpServerConfig
- isText() - Method in record class com.yapcli.llm.LlmClient.ContentPart
- isText() - Method in record class com.yapcli.mcp.resources.McpResourceContent
- isTuiMode() - Static method in class com.yapcli.tui.LanternaWindow
-
当前是否处于 TUI 模式。
- isVisibleInProject(MemoryEntry, String) - Static method in class com.yapcli.memory.LongTermMemory
- isWechatCommand(String[]) - Static method in class com.yapcli.wechat.WechatCommandMain
- isWithinBudget(List<LlmClient.Message>) - Method in class com.yapcli.memory.TokenBudget
-
检查给定的消息列表是否在预算内
- iteration() - Method in class com.yapcli.agent.AgentBudget
J
- JiebaSegmenterFactory - Class in com.yapcli.util
-
jieba-analysis 在首次加载词典时会直接向 stdout 打印初始化信息。 这里在构造分词器时临时静默标准输出,避免污染 CLI 用户界面。
- JsonRpcClient - Class in com.yapcli.mcp.jsonrpc
- JsonRpcClient(McpTransport) - Constructor for class com.yapcli.mcp.jsonrpc.JsonRpcClient
- JsonRpcException - Exception in com.yapcli.mcp.jsonrpc
- JsonRpcException(int, String) - Constructor for exception com.yapcli.mcp.jsonrpc.JsonRpcException
- JsonRpcMessage - Class in com.yapcli.mcp.jsonrpc
- JsonRpcMessage.Error - Record Class in com.yapcli.mcp.jsonrpc
- JsonRpcMessage.Notification - Record Class in com.yapcli.mcp.jsonrpc
- JsonRpcMessage.Request - Record Class in com.yapcli.mcp.jsonrpc
- JsonRpcMessage.Response - Record Class in com.yapcli.mcp.jsonrpc
K
- keywordSearch(String) - Method in class com.yapcli.rag.CodeRetriever
-
关键词检索:按类名/方法名/内容精确匹配
- KimiClient - Class in com.yapcli.llm
- KimiClient(String) - Constructor for class com.yapcli.llm.KimiClient
- KimiClient(String, String, String) - Constructor for class com.yapcli.llm.KimiClient
L
- label() - Method in enum class com.yapcli.snapshot.SnapshotPhase
- LANTERNA - Enum constant in enum class com.yapcli.render.RendererFactory.Mode
- LanternaRenderer - Class in com.yapcli.tui
-
Lanterna 全屏 TUI 形态的
Renderer适配器。 - LanternaRenderer(LanternaWindow) - Constructor for class com.yapcli.tui.LanternaRenderer
- LanternaWindow - Class in com.yapcli.tui
-
Lanterna 窗口管理器。
- LanternaWindow(YapCliConfig, LlmClient) - Constructor for class com.yapcli.tui.LanternaWindow
-
创建 Lanterna 窗口。
- lastActiveAt() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns the value of the
lastActiveAtrecord component. - lastNavigatedUrl() - Method in class com.yapcli.browser.BrowserSession
- launch(YapCliConfig, LlmClient, Agent, SwitchableHitlHandler) - Static method in class com.yapcli.tui.TuiBootstrap
-
启动 TUI。
- line() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns the value of the
linerecord component. - list(int) - Method in class com.yapcli.runtime.task.DurableTaskManager
- LIST_RESOURCES - Static variable in class com.yapcli.mcp.resources.McpResourceTool
- listLongTerm() - Method in class com.yapcli.memory.MemoryManager
- listPreTurnSnapshots(int) - Method in class com.yapcli.snapshot.SideGitManager
- listPrompts() - Method in class com.yapcli.mcp.McpClient
- listResources() - Method in class com.yapcli.mcp.McpClient
- listSessions() - Static method in class com.yapcli.tui.history.ConversationSnapshot
-
列出所有会话。
- listSnapshots(int) - Method in class com.yapcli.snapshot.SideGitManager
- listSnapshots(int) - Method in class com.yapcli.snapshot.SnapshotService
- listTools() - Method in class com.yapcli.mcp.McpClient
- LlmClient - Interface in com.yapcli.llm
- LlmClient.ChatResponse - Record Class in com.yapcli.llm
- LlmClient.ContentPart - Record Class in com.yapcli.llm
- LlmClient.Message - Record Class in com.yapcli.llm
- LlmClient.StreamListener - Interface in com.yapcli.llm
- LlmClient.Tool - Record Class in com.yapcli.llm
- LlmClient.ToolCall - Record Class in com.yapcli.llm
- LlmClient.ToolCall.Function - Record Class in com.yapcli.llm
- LlmClientFactory - Class in com.yapcli.llm
- LlmTraceLogger - Class in com.yapcli.llm
-
Diagnostic logging for model-side traces that are otherwise only streamed to the terminal.
- load() - Static method in class com.yapcli.config.YapCliConfig
- load() - Method in class com.yapcli.mcp.config.McpConfigLoader
-
只读取并合并配置,不做
${VAR}展开。展开 / 校验由McpServerManager在启动单个 server 时进行,确保单个 server 配置错误(如缺失环境变量)不会阻塞其他 server。 - load(String) - Static method in class com.yapcli.tui.history.ConversationSnapshot
-
从文件加载会话(Day 5 完整实现)。
- loadConfiguredServers() - Method in class com.yapcli.mcp.McpServerManager
- loadForPrompt() - Method in class com.yapcli.prompt.ProjectMemoryLoader
- loadLatest() - Method in class com.yapcli.wechat.WechatAccountStore
- loadRequired(String) - Method in class com.yapcli.prompt.PromptRepository
- logReasoning(Logger, String, LlmClient, String) - Static method in class com.yapcli.llm.LlmTraceLogger
- logs() - Method in class com.yapcli.mcp.McpServer
- logs(String) - Method in class com.yapcli.mcp.McpServerManager
- logsDir() - Static method in class com.yapcli.wechat.WechatPaths
- LongTermMemory - Class in com.yapcli.memory
-
长期记忆 - 跨对话持久化的关键信息 职责: 1.
- LongTermMemory() - Constructor for class com.yapcli.memory.LongTermMemory
- LongTermMemory(File) - Constructor for class com.yapcli.memory.LongTermMemory
- LspDiagnostic - Record Class in com.yapcli.lsp
- LspDiagnostic(LspSeverity, String, int, int, String, String) - Constructor for record class com.yapcli.lsp.LspDiagnostic
-
Creates an instance of a
LspDiagnosticrecord class. - LspDiagnosticFormatter - Class in com.yapcli.lsp
- LspDiagnosticReport - Record Class in com.yapcli.lsp
- LspDiagnosticReport(String, String) - Constructor for record class com.yapcli.lsp.LspDiagnosticReport
-
Creates an instance of a
LspDiagnosticReportrecord class. - LspManager - Class in com.yapcli.lsp
- LspManager(String) - Constructor for class com.yapcli.lsp.LspManager
- LspSeverity - Enum Class in com.yapcli.lsp
M
- main(String[]) - Static method in class com.example.Demo
- main(String[]) - Static method in class com.yapcli.cli.Main
- Main - Class in com.yapcli.cli
-
YapCLI v16.1.0 - Terminal-First Agent IDE 支持 ReAct、Plan-and-Execute、Memory、RAG、Multi-Agent、HITL、并行工具调用、多模型切换、MCP、CDP 会话复用 第 15 期新增:Skill 系统(三层加载 + load_skill 工具 + SkillContextBuffer 注入)、内置 web-access skill 第 16 期新增:TUI 界面(Lanterna 3)、文件树浏览、代码高亮、对话历史可视化、配置管理面板 第 16.1 期形态修正:抽出 Renderer 接口 + 三个实现(inline/lanterna/plain),默认形态切换为 inline 流式 TUI(Claude Code 风格) - inline 流式:prompt 下方 inline 状态区、行内可折叠工具块、行内 git diff、单字符 HITL 提示、命令 palette - lanterna:保留 phase-16 全屏窗口(向后兼容 YAPCLI_TUI=true) - plain:纯 println 兜底 HITL 增强:路径围栏(PathGuard)、命令快速拒绝(CommandGuard)、操作审计链(AuditLog)—— 见 com.yapcli.policy
- Main() - Constructor for class com.yapcli.cli.Main
- manager() - Method in class com.yapcli.snapshot.SnapshotService
- mapper - Static variable in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- markCompleted() - Method in class com.yapcli.plan.ExecutionPlan
-
标记完成
- markCompleted(String) - Method in class com.yapcli.plan.Task
- markdown() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
markdownrecord component. - markdown() - Method in record class com.yapcli.web.HtmlExtractor.Extracted
-
Returns the value of the
markdownrecord component. - markFailed() - Method in class com.yapcli.plan.ExecutionPlan
-
标记失败
- markFailed(String) - Method in class com.yapcli.plan.Task
- markResourceFresh(String, String) - Method in class com.yapcli.mcp.resources.McpResourceCache
- markSkipped() - Method in class com.yapcli.plan.Task
- markStarted() - Method in class com.yapcli.mcp.McpServer
- markStarted() - Method in class com.yapcli.plan.ExecutionPlan
-
标记开始执行
- markStarted() - Method in class com.yapcli.plan.Task
- match(String) - Method in class com.yapcli.browser.SensitivePagePolicy
- matched() - Method in record class com.yapcli.browser.SensitivePagePolicy.MatchResult
-
Returns the value of the
matchedrecord component. - MatchResult(boolean, String) - Constructor for record class com.yapcli.browser.SensitivePagePolicy.MatchResult
-
Creates an instance of a
MatchResultrecord class. - MAX_DESCRIPTION_CODEPOINTS - Static variable in class com.yapcli.skill.SkillIndexFormatter
- MAX_ENABLED_SKILLS - Static variable in class com.yapcli.skill.SkillIndexFormatter
- MAX_IMAGE_BYTES - Static variable in class com.yapcli.image.ImageReferenceParser
- MAX_INDEX_BYTES - Static variable in class com.yapcli.skill.SkillIndexFormatter
- MAX_SOURCE_IMAGE_BYTES - Static variable in class com.yapcli.image.ImageProcessor
- MAX_SUMMARY_OUTPUT_RESERVE_TOKENS - Static variable in record class com.yapcli.context.ContextProfile
- maxContextWindow() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
maxContextWindowrecord component. - maxContextWindow() - Method in class com.yapcli.llm.AgnesClient
- maxContextWindow() - Method in class com.yapcli.llm.DeepSeekClient
- maxContextWindow() - Method in class com.yapcli.llm.FreeLlmApiClient
- maxContextWindow() - Method in class com.yapcli.llm.GLMClient
- maxContextWindow() - Method in class com.yapcli.llm.KimiClient
- maxContextWindow() - Method in interface com.yapcli.llm.LlmClient
- maxContextWindow() - Method in class com.yapcli.llm.StepClient
- maxContextWindow() - Method in class com.yapcli.llm.XfyunMaaSClient
- maxSnapshots() - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Returns the value of the
maxSnapshotsrecord component. - mcpAllowlist() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns the value of the
mcpAllowlistrecord component. - McpCallToolRequest - Class in com.yapcli.mcp.protocol
- McpCallToolResult - Record Class in com.yapcli.mcp.protocol
- McpCallToolResult(List<McpContent>, boolean) - Constructor for record class com.yapcli.mcp.protocol.McpCallToolResult
-
Creates an instance of a
McpCallToolResultrecord class. - McpCapabilities - Record Class in com.yapcli.mcp.protocol
- McpCapabilities() - Constructor for record class com.yapcli.mcp.protocol.McpCapabilities
-
Creates an instance of a
McpCapabilitiesrecord class. - McpClient - Class in com.yapcli.mcp
- McpClient(String, McpTransport) - Constructor for class com.yapcli.mcp.McpClient
- McpConfigFile - Class in com.yapcli.mcp.config
- McpConfigFile() - Constructor for class com.yapcli.mcp.config.McpConfigFile
- McpConfigLoader - Class in com.yapcli.mcp.config
- McpConfigLoader(Path) - Constructor for class com.yapcli.mcp.config.McpConfigLoader
- McpConfigLoader(Path, Path, Path) - Constructor for class com.yapcli.mcp.config.McpConfigLoader
- McpContent - Record Class in com.yapcli.mcp.protocol
- McpContent(String, String, String, String) - Constructor for record class com.yapcli.mcp.protocol.McpContent
-
Creates an instance of a
McpContentrecord class. - McpInitializeRequest - Class in com.yapcli.mcp.protocol
- McpInitializeResult - Record Class in com.yapcli.mcp.protocol
- McpInitializeResult(String, McpCapabilities, McpInitializeResult.ServerInfo) - Constructor for record class com.yapcli.mcp.protocol.McpInitializeResult
-
Creates an instance of a
McpInitializeResultrecord class. - McpInitializeResult.ServerInfo - Record Class in com.yapcli.mcp.protocol
- McpResourceCache - Class in com.yapcli.mcp.resources
- McpResourceCache() - Constructor for class com.yapcli.mcp.resources.McpResourceCache
- McpResourceContent - Record Class in com.yapcli.mcp.resources
- McpResourceContent(String, String, String, String) - Constructor for record class com.yapcli.mcp.resources.McpResourceContent
-
Creates an instance of a
McpResourceContentrecord class. - McpResourceDescriptor - Record Class in com.yapcli.mcp.resources
- McpResourceDescriptor(String, String, String, String, String, String, Long) - Constructor for record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Creates an instance of a
McpResourceDescriptorrecord class. - mcpResourceIndexEnabled() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
mcpResourceIndexEnabledrecord component. - McpResourceTool - Class in com.yapcli.mcp.resources
- McpSchemaSanitizer - Class in com.yapcli.mcp.protocol
- McpServer - Class in com.yapcli.mcp
- McpServer(String, McpServerConfig) - Constructor for class com.yapcli.mcp.McpServer
- McpServerConfig - Class in com.yapcli.mcp.config
- McpServerConfig() - Constructor for class com.yapcli.mcp.config.McpServerConfig
- McpServerManager - Class in com.yapcli.mcp
- McpServerManager(ToolRegistry, Path) - Constructor for class com.yapcli.mcp.McpServerManager
- McpServerManager(ToolRegistry, Path, McpConfigLoader) - Constructor for class com.yapcli.mcp.McpServerManager
- McpServerManager.ResourceReadResult - Record Class in com.yapcli.mcp
- mcpServerName(String) - Static method in class com.yapcli.hitl.ApprovalPolicy
- McpServerStatus - Enum Class in com.yapcli.mcp
- mcpSummary() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
mcpSummaryrecord component. - McpToolDescriptor - Record Class in com.yapcli.mcp.protocol
- McpToolDescriptor(String, String, String, String, JsonNode) - Constructor for record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Creates an instance of a
McpToolDescriptorrecord class. - McpTransport - Interface in com.yapcli.mcp.transport
- mediaDir() - Method in class com.yapcli.wechat.WechatAccountStore
- mediaDir() - Static method in class com.yapcli.wechat.WechatPaths
- mediaItems() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns the value of the
mediaItemsrecord component. - Memory - Interface in com.yapcli.memory
-
Memory 接口 - 记忆系统的统一抽象 分为短期记忆(ShortTermMemory)和长期记忆(LongTermMemory): - 短期记忆:当前对话的上下文,包括消息历史和工具结果 - 长期记忆:跨对话持久化的关键信息,如用户偏好、项目事实
- memoryContext() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
memoryContextrecord component. - memoryContext(String) - Method in class com.yapcli.prompt.PromptContext.Builder
- memoryContextTokens() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
memoryContextTokensrecord component. - MemoryEntry - Class in com.yapcli.memory
-
记忆条目 - Memory 系统的基础数据单元
- MemoryEntry(String, String, MemoryEntry.MemoryType, Instant, Map<String, String>, int) - Constructor for class com.yapcli.memory.MemoryEntry
- MemoryEntry(String, String, MemoryEntry.MemoryType, Map<String, String>, int) - Constructor for class com.yapcli.memory.MemoryEntry
- MemoryEntry.MemoryType - Enum Class in com.yapcli.memory
- MemoryManager - Class in com.yapcli.memory
-
Memory 管理器 - Memory 系统的门面类 统一管理短期记忆、长期记忆、上下文压缩和检索, 为 Agent 提供简洁的记忆存取接口。
- MemoryManager(LlmClient) - Constructor for class com.yapcli.memory.MemoryManager
- MemoryManager(LlmClient, int, int) - Constructor for class com.yapcli.memory.MemoryManager
- MemoryManager(LlmClient, int, int, LongTermMemory) - Constructor for class com.yapcli.memory.MemoryManager
- MemoryRetriever - Class in com.yapcli.memory
-
记忆检索器 - 根据查询从短期记忆和长期记忆中检索最相关的信息 检索策略: 1.
- MemoryRetriever(ConversationMemory, LongTermMemory) - Constructor for class com.yapcli.memory.MemoryRetriever
- MentionToken(String, String, int, int, String) - Constructor for record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Creates an instance of a
MentionTokenrecord class. - message() - Method in record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Returns the value of the
messagerecord component. - message() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns the value of the
messagerecord component. - message() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Returns the value of the
messagerecord component. - message() - Method in record class com.yapcli.rag.CodeIndex.IndexResult
-
Returns the value of the
messagerecord component. - message() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns the value of the
messagerecord component. - message() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
messagerecord component. - Message(String, String) - Constructor for record class com.yapcli.llm.LlmClient.Message
- Message(String, String, String, List<LlmClient.ToolCall>, String) - Constructor for record class com.yapcli.llm.LlmClient.Message
- Message(String, String, String, List<LlmClient.ToolCall>, String, List<LlmClient.ContentPart>) - Constructor for record class com.yapcli.llm.LlmClient.Message
-
Creates an instance of a
Messagerecord class. - messageCount() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns the value of the
messageCountrecord component. - messageId() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns the value of the
messageIdrecord component. - MessageRecord(String, String, long, Map<String, Object>) - Constructor for record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Creates an instance of a
MessageRecordrecord class. - messages() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns the value of the
messagesrecord component. - metadata() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns the value of the
metadatarecord component. - metadata() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
metadatarecord component. - metadata() - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Returns the value of the
metadatarecord component. - method() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Notification
-
Returns the value of the
methodrecord component. - method() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Returns the value of the
methodrecord component. - methodChunk(String, String, String, int, int) - Static method in record class com.yapcli.rag.CodeChunk
-
构造一个方法级别的代码块
- mimeType() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class com.yapcli.mcp.McpServerManager.ResourceReadResult
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class com.yapcli.mcp.protocol.McpContent
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns the value of the
mimeTyperecord component. - MIN_COMPRESSION_TRIGGER_RATIO - Static variable in record class com.yapcli.context.ContextProfile
- mode() - Method in class com.yapcli.browser.BrowserSession
- model() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
modelrecord component. - MODEL - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- MODIFIED - Enum constant in enum class com.yapcli.hitl.ApprovalResult.Decision
- modifiedArguments() - Method in record class com.yapcli.hitl.ApprovalResult
-
Returns the value of the
modifiedArgumentsrecord component. - modify(String) - Static method in record class com.yapcli.hitl.ApprovalResult
- moveCursor(int, int) - Static method in class com.yapcli.render.inline.AnsiSeq
-
移动光标到 (
row,col)(1-based)。 - moveDown(int) - Static method in class com.yapcli.render.inline.AnsiSeq
-
下移
n行。 - moveUp(int) - Static method in class com.yapcli.render.inline.AnsiSeq
-
上移
n行。
N
- name() - Method in record class com.yapcli.llm.LlmClient.Tool
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.llm.LlmClient.ToolCall.Function
-
Returns the value of the
namerecord component. - name() - Method in class com.yapcli.mcp.McpServer
- name() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult.ServerInfo
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.rag.CodeChunk
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
namerecord component. - name() - Method in record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Returns the value of the
namerecord component. - name() - Method in interface com.yapcli.web.SearchProvider
- name() - Method in class com.yapcli.web.SearxngSearchProvider
- name() - Method in class com.yapcli.web.SerpApiSearchProvider
- name() - Method in class com.yapcli.web.ZhipuSearchProvider
- namespaced(String, String) - Static method in record class com.yapcli.mcp.protocol.McpToolDescriptor
- namespacedName() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns the value of the
namespacedNamerecord component. - needsCompression(ConversationMemory) - Method in class com.yapcli.memory.TokenBudget
-
兼容旧调用方:默认 0.9 触发率。
- needsCompression(ConversationMemory, double) - Method in class com.yapcli.memory.TokenBudget
-
检查是否需要压缩。
- NetworkPolicy - Class in com.yapcli.web
-
网络访问策略。 scheme 白名单:仅允许 http / https 主机黑名单:屏蔽 loopback、site-local、link-local、未指定地址(防 SSRF) 简易 token bucket 限流:每 60 秒最多 30 次请求 当前是基础围栏,覆盖常见 SSRF 场景;面向严苛企业环境时还需补 DNS rebinding 防护、 完整 CIDR 黑白名单、证书校验加固等。
- NetworkPolicy() - Constructor for class com.yapcli.web.NetworkPolicy
- nextLongPollTimeoutMs() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns the value of the
nextLongPollTimeoutMsrecord component. - nextSyncBuf() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns the value of the
nextSyncBufrecord component. - NO_OP - Static variable in interface com.yapcli.llm.LlmClient.StreamListener
- none() - Static method in record class com.yapcli.wechat.WechatCommandParser.Command
- NONE - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- noop() - Static method in interface com.yapcli.rag.CodeIndex.ProgressListener
- Notification(String, JsonNode) - Constructor for record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Notification
-
Creates an instance of a
Notificationrecord class. - NotificationRouter - Class in com.yapcli.mcp.notifications
-
路由 server → client 的通知到注册的 handler。 **关键约束**:handler 在独立 daemon executor 里执行,**不在 transport 的 stdout reader 线程里同步执行**。 否则 handler 内部如果要发 JSON-RPC 请求并等响应,自己等自己的响应,stdout reader 被阻塞读不到响应 → 死锁。 典型场景:server-everything 启动后立即推送 tools/list_changed,handler 调 tools/list 重拉, stdout reader 线程被挂在 handler.apply 里,tools/list 响应进 buffer 但没人读,最终请求超时。
- NotificationRouter() - Constructor for class com.yapcli.mcp.notifications.NotificationRouter
- notifyStart(WechatAccount) - Method in class com.yapcli.wechat.IlinkClient
- notifyStop(WechatAccount) - Method in class com.yapcli.wechat.IlinkClient
O
- of(int, String, String, String) - Static method in record class com.yapcli.web.SearchResult
- of(BrowserMode, boolean, String) - Static method in record class com.yapcli.browser.BrowserAuditMetadata
- of(String, String) - Static method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
- of(String, String, String) - Static method in record class com.yapcli.hitl.ApprovalRequest
- of(String, String, String, String) - Static method in record class com.yapcli.hitl.ApprovalRequest
- of(String, String, String, String, String) - Static method in record class com.yapcli.hitl.ApprovalRequest
- of(String, String, Map<String, Object>) - Static method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
- ok() - Method in record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Returns the value of the
okrecord component. - ok() - Method in record class com.yapcli.image.ClipboardImage.GrabResult
-
Returns the value of the
okrecord component. - ok(String, String, String, int, boolean) - Static method in record class com.yapcli.web.FetchResult
- ok(Path) - Static method in record class com.yapcli.image.ClipboardImage.GrabResult
- on(String, Consumer<JsonNode>) - Method in class com.yapcli.mcp.notifications.NotificationRouter
- onContentDelta(String) - Method in interface com.yapcli.llm.LlmClient.StreamListener
- onNotification(Consumer<JsonNode>) - Method in class com.yapcli.mcp.jsonrpc.JsonRpcClient
- onNotification(Consumer<JsonNode>) - Method in class com.yapcli.mcp.McpClient
- onProgress(String) - Method in interface com.yapcli.rag.CodeIndex.ProgressListener
- onReasoningDelta(String) - Method in interface com.yapcli.llm.LlmClient.StreamListener
- onReceive(Consumer<JsonNode>) - Method in interface com.yapcli.mcp.transport.McpTransport
- onReceive(Consumer<JsonNode>) - Method in class com.yapcli.mcp.transport.StdioTransport
- onReceive(Consumer<JsonNode>) - Method in class com.yapcli.mcp.transport.StreamableHttpTransport
- onResize(TerminalSize) - Method in class com.yapcli.tui.RootPane
-
窗口大小变化时的回调。
- onUserMessage(String) - Method in class com.yapcli.tui.pane.CenterPane
-
用户消息回调(从 RootPane 转发)。
- onUserMessage(String) - Method in class com.yapcli.tui.RootPane
-
用户消息回调(从 InputBar 转发到对话流)。
- open(String, List<String>) - Method in class com.yapcli.render.inline.SlashPalette
-
打开 palette,阻塞等待用户选择。
- openDefault(TaskRunner) - Static method in class com.yapcli.runtime.task.DurableTaskManager
- openPalette(String, List<String>) - Method in class com.yapcli.render.inline.InlineRenderer
- openPalette(String, List<String>) - Method in class com.yapcli.render.PlainRenderer
- openPalette(String, List<String>) - Method in interface com.yapcli.render.Renderer
-
显示一个临时浮起的选择列表,等待用户选定一项或取消。
- openPalette(String, List<String>) - Method in class com.yapcli.tui.LanternaRenderer
- openPalette(String, List<String>) - Method in class com.yapcli.wechat.WechatRenderer
- openPalette(String, List<String>) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- originalBytes() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
originalBytesrecord component. - originalHeight() - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Returns the value of the
originalHeightrecord component. - originalWidth() - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Returns the value of the
originalWidthrecord component. - outcome() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
outcomerecord component. - OUTCOME_ALLOW - Static variable in class com.yapcli.policy.AuditLog
- OUTCOME_DENY - Static variable in class com.yapcli.policy.AuditLog
- OUTCOME_ERROR - Static variable in class com.yapcli.policy.AuditLog
- outputBytes() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
outputBytesrecord component. - outputTokens() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
outputTokensrecord component. - outputTokens() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
outputTokensrecord component.
P
- parameters() - Method in record class com.yapcli.llm.LlmClient.Tool
-
Returns the value of the
parametersrecord component. - parameters() - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Returns the value of the
parametersrecord component. - params() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Notification
-
Returns the value of the
paramsrecord component. - params() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Returns the value of the
paramsrecord component. - parse(String) - Static method in class com.yapcli.mcp.mention.AtMentionParser
- parse(String) - Static method in class com.yapcli.skill.SkillFrontmatterParser
- parse(String) - Static method in class com.yapcli.wechat.WechatCommandParser
- ParseResult(Map<String, Object>, String, List<String>) - Constructor for record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Creates an instance of a
ParseResultrecord class. - path() - Method in record class com.yapcli.image.ClipboardImage.GrabResult
-
Returns the value of the
pathrecord component. - PathGuard - Class in com.yapcli.policy
-
路径围栏:所有文件类工具调用必须先经过它。 定位:HITL 之前的 LLM 输入合法性检查,不是沙箱(不提供进程隔离)。 解决三类越界场景: 1.
- PathGuard(String) - Constructor for class com.yapcli.policy.PathGuard
- pattern() - Method in record class com.yapcli.browser.SensitivePagePolicy.MatchResult
-
Returns the value of the
patternrecord component. - PAUSE - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- payload() - Method in record class com.yapcli.wechat.WechatCommandParser.Command
-
Returns the value of the
payloadrecord component. - PENDING - Enum constant in enum class com.yapcli.plan.Task.TaskStatus
- pendingChars() - Method in class com.yapcli.wechat.WechatRenderer
- pendingText() - Method in class com.yapcli.wechat.WechatRenderer
- phase() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
phaserecord component. - phase() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns the value of the
phaserecord component. - pidFile() - Static method in class com.yapcli.wechat.WechatPaths
- PLAIN - Enum constant in enum class com.yapcli.render.RendererFactory.Mode
- PlainRenderer - Class in com.yapcli.render
-
Plain 渲染器:纯 println 模式,等价 phase-15 行为,无折叠、无状态栏。
- PlainRenderer() - Constructor for class com.yapcli.render.PlainRenderer
- PLAN - Enum constant in enum class com.yapcli.prompt.PromptMode
- PlanExecuteAgent - Class in com.yapcli.agent
-
Plan-and-Execute Agent - 先规划后执行
- PlanExecuteAgent(LlmClient) - Constructor for class com.yapcli.agent.PlanExecuteAgent
- PlanExecuteAgent(LlmClient, PlanExecuteAgent.PlanReviewHandler) - Constructor for class com.yapcli.agent.PlanExecuteAgent
- PlanExecuteAgent(LlmClient, ToolRegistry, MemoryManager, PlanExecuteAgent.PlanReviewHandler) - Constructor for class com.yapcli.agent.PlanExecuteAgent
- PlanExecuteAgent(LlmClient, ToolRegistry, MemoryManager, PlanExecuteAgent.PlanReviewHandler, PrintStream) - Constructor for class com.yapcli.agent.PlanExecuteAgent
- PlanExecuteAgent.PlanReviewAction - Enum Class in com.yapcli.agent
- PlanExecuteAgent.PlanReviewDecision - Record Class in com.yapcli.agent
- PlanExecuteAgent.PlanReviewHandler - Interface in com.yapcli.agent
- Planner - Class in com.yapcli.plan
-
规划器 - 使用LLM将复杂任务分解为执行计划
- Planner(LlmClient) - Constructor for class com.yapcli.plan.Planner
- Planner(LlmClient, PrintStream) - Constructor for class com.yapcli.plan.Planner
- PLANNER - Enum constant in enum class com.yapcli.agent.AgentRole
- PLANNER - Enum constant in enum class com.yapcli.prompt.PromptMode
- PLANNING - Enum constant in enum class com.yapcli.plan.Task.TaskType
- PlanReviewDecision(PlanExecuteAgent.PlanReviewAction, String) - Constructor for record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
-
Creates an instance of a
PlanReviewDecisionrecord class. - PolicyException - Exception in com.yapcli.policy
-
安全策略拦截时抛出。 调用方通常在工具执行体里 catch 后转成用户可见的错误字符串。 策略拦截相当于 LLM 的"硬规则失败",不要让它静默通过,也不要让 LLM 重试同样的违规请求。
- PolicyException(String) - Constructor for exception com.yapcli.policy.PolicyException
- pollQrStatus(String) - Method in class com.yapcli.wechat.IlinkClient
- port() - Method in class com.yapcli.runtime.api.RuntimeApiServer
- position() - Method in record class com.yapcli.web.SearchResult
-
Returns the value of the
positionrecord component. - POST_TURN - Enum constant in enum class com.yapcli.snapshot.SnapshotPhase
- postTurnSnapshot(String, String) - Method in class com.yapcli.snapshot.SideGitManager
- PRE_RESTORE - Enum constant in enum class com.yapcli.snapshot.SnapshotPhase
- PRE_TURN - Enum constant in enum class com.yapcli.snapshot.SnapshotPhase
- prepare(McpServerConfig) - Method in class com.yapcli.mcp.config.McpConfigLoader
-
对单个 server 配置展开
${VAR}并校验 transport 选择。 失败抛IllegalArgumentException,调用方负责把单个失败转成该 server 的 ERROR 状态。 - prepareInputLine() - Method in class com.yapcli.render.inline.BottomStatusBar
-
在即将读取输入时刷新 JLine dock;光标和输入行位置由 LineReader 管理。
- preRestoreSnapshot(String, String) - Method in class com.yapcli.snapshot.SideGitManager
- preTurnSnapshot(String, String) - Method in class com.yapcli.snapshot.SideGitManager
- print(PrintStream, String) - Static method in class com.yapcli.wechat.TerminalQrRenderer
- printSubmittedPrompt(String) - Method in class com.yapcli.render.inline.InlineRenderer
- probe(int) - Method in class com.yapcli.browser.BrowserConnectivityCheck
- ProbeResult(boolean, String, String) - Constructor for record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Creates an instance of a
ProbeResultrecord class. - process(byte[], String, Path) - Static method in class com.yapcli.image.ImageProcessor
- ProcessedImage(String, String, long, long, ImageProcessor.Dimensions, Path, boolean) - Constructor for record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Creates an instance of a
ProcessedImagerecord class. - processId() - Method in class com.yapcli.mcp.McpClient
- processId() - Method in class com.yapcli.mcp.McpServer
- processId() - Method in interface com.yapcli.mcp.transport.McpTransport
- processId() - Method in class com.yapcli.mcp.transport.StdioTransport
- PROJECT - Enum constant in enum class com.yapcli.skill.Skill.Source
- projectMemoryContext() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
projectMemoryContextrecord component. - projectMemoryContext(String) - Method in class com.yapcli.prompt.PromptContext.Builder
- ProjectMemoryLoader - Class in com.yapcli.prompt
-
Loads YapCLI project memory files that are intended to be versioned and injected into the system prompt at session start.
- ProjectMemoryLoader(Path, Path) - Constructor for class com.yapcli.prompt.ProjectMemoryLoader
- projectRoot() - Method in class com.yapcli.snapshot.SideGitManager
- prompt() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
promptrecord component. - prompt(ApprovalRequest) - Method in class com.yapcli.render.inline.InlineApprovalPrompter
- promptApproval(ApprovalRequest) - Method in class com.yapcli.render.inline.InlineRenderer
- promptApproval(ApprovalRequest) - Method in class com.yapcli.render.PlainRenderer
- promptApproval(ApprovalRequest) - Method in interface com.yapcli.render.Renderer
-
同步阻塞地展示 HITL 审批请求并收集决策。
- promptApproval(ApprovalRequest) - Method in class com.yapcli.tui.LanternaRenderer
- promptApproval(ApprovalRequest) - Method in class com.yapcli.wechat.WechatRenderer
- promptApproval(ApprovalRequest) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- PromptAssembler - Class in com.yapcli.prompt
- PromptAssembler(PromptRepository) - Constructor for class com.yapcli.prompt.PromptAssembler
- promptCacheMode() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
promptCacheModerecord component. - promptCacheMode() - Method in class com.yapcli.llm.DeepSeekClient
- promptCacheMode() - Method in class com.yapcli.llm.GLMClient
- promptCacheMode() - Method in class com.yapcli.llm.KimiClient
- promptCacheMode() - Method in interface com.yapcli.llm.LlmClient
- promptCacheMode() - Method in class com.yapcli.llm.StepClient
- promptCachingSupported() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
promptCachingSupportedrecord component. - PromptContext - Record Class in com.yapcli.prompt
- PromptContext(String, String, String, String, String, boolean, Map<String, String>) - Constructor for record class com.yapcli.prompt.PromptContext
-
Creates an instance of a
PromptContextrecord class. - PromptContext.Builder - Class in com.yapcli.prompt
- PromptMode - Enum Class in com.yapcli.prompt
- PromptRepository - Class in com.yapcli.prompt
- PromptRepository(Path, Path) - Constructor for class com.yapcli.prompt.PromptRepository
- prompts(String) - Method in class com.yapcli.mcp.McpServerManager
- promptText() - Method in record class com.yapcli.lsp.LspDiagnosticReport
-
Returns the value of the
promptTextrecord component. - PROTOCOL_VERSION - Static variable in class com.yapcli.mcp.protocol.McpInitializeRequest
- protocolVersion() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult
-
Returns the value of the
protocolVersionrecord component. - ProviderConfig() - Constructor for class com.yapcli.config.YapCliConfig.ProviderConfig
- ProviderConfig(String, String, String) - Constructor for class com.yapcli.config.YapCliConfig.ProviderConfig
- push(String, String) - Method in class com.yapcli.skill.SkillContextBuffer
- put(String, List<McpResourceDescriptor>) - Method in class com.yapcli.mcp.resources.McpResourceCache
Q
- qrcodeId() - Method in record class com.yapcli.wechat.WechatQrLogin
-
Returns the value of the
qrcodeIdrecord component. - qrcodeUrl() - Method in record class com.yapcli.wechat.WechatQrLogin
-
Returns the value of the
qrcodeUrlrecord component. - quotePrefix(String) - Static method in class com.yapcli.util.AnsiStyle
R
- raw() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns the value of the
rawrecord component. - RawResponse(String, String, String, String, boolean) - Constructor for record class com.yapcli.web.WebFetcher.RawResponse
-
Creates an instance of a
RawResponserecord class. - READ_RESOURCE - Static variable in class com.yapcli.mcp.resources.McpResourceTool
- readRecent(int) - Method in class com.yapcli.policy.AuditLog
-
读取今天审计文件最近 n 条记录,按写入顺序返回(最新的在末尾)。
- readResource(String) - Method in class com.yapcli.mcp.McpClient
- readResourceForMention(String, String) - Method in class com.yapcli.mcp.McpServerManager
- READY - Enum constant in enum class com.yapcli.mcp.McpServerStatus
- reason() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns the value of the
reasonrecord component. - reason() - Method in record class com.yapcli.hitl.ApprovalResult
-
Returns the value of the
reasonrecord component. - reason() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
reasonrecord component. - reason() - Method in record class com.yapcli.wechat.WechatPolicyDecision
-
Returns the value of the
reasonrecord component. - reasoningContent() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
reasoningContentrecord component. - reasoningContent() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns the value of the
reasoningContentrecord component. - record(AuditLog.AuditEntry) - Method in class com.yapcli.policy.AuditLog
- recordOpenedTab(String) - Method in class com.yapcli.browser.BrowserSession
- recordTokens(int, int) - Method in class com.yapcli.agent.AgentBudget
- recordTokens(int, int, int) - Method in class com.yapcli.agent.AgentBudget
- recordTokenUsage(int, int) - Method in class com.yapcli.memory.MemoryManager
-
记录 token 使用
- recordTokenUsage(int, int, int) - Method in class com.yapcli.memory.MemoryManager
- recordToolCalls(List<LlmClient.ToolCall>) - Method in class com.yapcli.agent.AgentBudget
-
记录本轮工具调用签名并判断是否进入停滞。 停滞条件:最近 stagnationWindow 轮的"工具名 + 参数"完全相同; 一旦判定为停滞,状态会保持,后续
AgentBudget.check()会返回 STAGNATION_DETECTED。 - recordUsage(int, int) - Method in class com.yapcli.memory.TokenBudget
-
记录一次 LLM 调用的 token 消耗
- recordUsage(int, int, int) - Method in class com.yapcli.memory.TokenBudget
- reencoded() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
reencodedrecord component. - referencesDir() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
referencesDirrecord component. - refresh() - Method in class com.yapcli.tui.pane.FileTreePane
-
刷新文件列表。
- register(FoldableBlock) - Method in class com.yapcli.render.inline.BlockRegistry
-
注册新块;之前的所有块进入 frozen 状态。
- registerMcpTool(McpToolDescriptor, Function<String, String>) - Method in class com.yapcli.tool.ToolRegistry
-
注册一个 MCP 工具到 ToolRegistry。
- registerMcpToolOutput(McpToolDescriptor, Function<String, ToolOutput>) - Method in class com.yapcli.tool.ToolRegistry
- reject(String) - Static method in record class com.yapcli.hitl.ApprovalResult
- REJECTED - Enum constant in enum class com.yapcli.hitl.ApprovalResult.Decision
- rejection(String, String) - Static method in record class com.yapcli.agent.AgentMessage
-
创建拒绝消息(检查者认为结果不合格)
- REJECTION - Enum constant in enum class com.yapcli.agent.AgentMessage.Type
- relationCount() - Method in record class com.yapcli.rag.CodeIndex.IndexResult
-
Returns the value of the
relationCountrecord component. - relationCount() - Method in record class com.yapcli.rag.VectorStore.IndexStats
-
Returns the value of the
relationCountrecord component. - relationType() - Method in record class com.yapcli.rag.CodeRelation
-
Returns the value of the
relationTyperecord component. - reload() - Method in class com.yapcli.skill.SkillRegistry
- rememberNavigation(String) - Method in class com.yapcli.browser.BrowserSession
- removedFiles() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns the value of the
removedFilesrecord component. - render(String) - Static method in class com.yapcli.util.TerminalMarkdownRenderer
- render(String, int) - Static method in class com.yapcli.util.TerminalMarkdownRenderer
- render(String, String, String) - Method in class com.yapcli.render.inline.InlineDiffRenderer
- render(List<LlmClient.ToolCall>) - Method in class com.yapcli.render.inline.ToolCallRenderer
- Renderer - Interface in com.yapcli.render
-
终端渲染器抽象。
- RendererFactory - Class in com.yapcli.render
-
启动时根据环境变量选择渲染器形态。
- RendererFactory.Mode - Enum Class in com.yapcli.render
- RendererHitlHandler - Class in com.yapcli.hitl
-
与
Renderer协作的 HITL 处理器: 状态(启用开关、全部放行集合)由本类维护, 实际审批 UI 委托给Renderer.promptApproval(ApprovalRequest)。 - RendererHitlHandler(Renderer, boolean) - Constructor for class com.yapcli.hitl.RendererHitlHandler
- renderInitial() - Method in class com.yapcli.render.inline.FoldableBlock
-
首次渲染(折叠态),由调用方在 BlockRegistry.register 之前/之后调用。
- rendersReasoning() - Method in interface com.yapcli.render.Renderer
-
当前渲染器是否应该把 reasoning/thinking 内容展示给用户。
- rendersReasoning() - Method in class com.yapcli.wechat.WechatRenderer
- rendersReasoning() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- replaceMcpToolOutputsForServer(String, List<McpToolDescriptor>, Function<McpToolDescriptor, Function<String, ToolOutput>>) - Method in class com.yapcli.tool.ToolRegistry
- replaceMcpToolsForServer(String, List<McpToolDescriptor>, Function<McpToolDescriptor, Function<String, String>>) - Method in class com.yapcli.tool.ToolRegistry
- replan(ExecutionPlan, String) - Method in class com.yapcli.plan.Planner
-
根据执行结果重新规划
- request(String, JsonNode) - Method in class com.yapcli.mcp.jsonrpc.JsonRpcClient
- request(String, JsonNode, long) - Method in class com.yapcli.mcp.jsonrpc.JsonRpcClient
- Request(long, String, JsonNode) - Constructor for record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Creates an instance of a
Requestrecord class. - requestApproval(ApprovalRequest) - Method in interface com.yapcli.hitl.HitlHandler
-
向用户展示审批请求并收集决策
- requestApproval(ApprovalRequest) - Method in class com.yapcli.hitl.RendererHitlHandler
- requestApproval(ApprovalRequest) - Method in class com.yapcli.hitl.SwitchableHitlHandler
- requestApproval(ApprovalRequest) - Method in class com.yapcli.hitl.TerminalHitlHandler
-
展示审批请求并收集决策;整体 synchronized 以便并发 Agent 调用时序列化。
- requestApproval(ApprovalRequest) - Method in class com.yapcli.tui.hitl.TuiHitlHandler
- requireApproval(String, BrowserAuditMetadata) - Static method in record class com.yapcli.browser.BrowserCheckResult
- requiresApproval(String) - Static method in class com.yapcli.hitl.ApprovalPolicy
-
判断该工具调用是否需要人工确认
- requiresPerCallApproval() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns the value of the
requiresPerCallApprovalrecord component. - RESET - Static variable in class com.yapcli.render.inline.AnsiSeq
- RESET_SCROLL_REGION - Static variable in class com.yapcli.render.inline.AnsiSeq
-
重置滚动区域为整个屏幕。
- resetWechatStream() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- resolveMode() - Static method in class com.yapcli.render.RendererFactory
- resolveSafe(String) - Method in class com.yapcli.policy.PathGuard
-
校验路径是否在项目根之内,返回安全的绝对路径。
- resourceCandidates() - Method in class com.yapcli.mcp.McpServerManager
- resourceIndexForPrompt() - Method in class com.yapcli.mcp.McpServerManager
- resourcePath() - Method in enum class com.yapcli.prompt.PromptMode
- ResourceReadResult(String, String) - Constructor for record class com.yapcli.mcp.McpServerManager.ResourceReadResult
-
Creates an instance of a
ResourceReadResultrecord class. - resources(String) - Method in class com.yapcli.mcp.McpServerManager
- Response(long, JsonNode, JsonRpcMessage.Error) - Constructor for record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Creates an instance of a
Responserecord class. - restart(String) - Method in class com.yapcli.mcp.McpServerManager
- restartWithArgs(String, List<String>) - Method in class com.yapcli.mcp.McpServerManager
- RESTORE_CURSOR - Static variable in class com.yapcli.render.inline.AnsiSeq
-
恢复光标位置(DECRC)。
- restoredFiles() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns the value of the
restoredFilesrecord component. - restorePreTurn(int) - Method in class com.yapcli.snapshot.SideGitManager
- restorePreTurn(int) - Method in class com.yapcli.snapshot.SnapshotService
- RestoreResult - Record Class in com.yapcli.snapshot
- RestoreResult(boolean, String, String, List<String>, List<String>) - Constructor for record class com.yapcli.snapshot.RestoreResult
-
Creates an instance of a
RestoreResultrecord class. - result() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Returns the value of the
resultrecord component. - result() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
resultrecord component. - result() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
resultrecord component. - result(String, AgentRole, String) - Static method in record class com.yapcli.agent.AgentMessage
-
创建结果消息(子代理 -> 主控)
- RESULT - Enum constant in enum class com.yapcli.agent.AgentMessage.Type
- RESUME - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- ret() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns the value of the
retrecord component. - retainRecentRounds() - Method in class com.yapcli.memory.ConversationHistoryCompactor
- retrieve(String) - Method in class com.yapcli.memory.ConversationMemory
- retrieve(String) - Method in class com.yapcli.memory.LongTermMemory
- retrieve(String) - Method in interface com.yapcli.memory.Memory
-
根据ID检索记忆
- retrieve(String, int) - Method in class com.yapcli.memory.MemoryRetriever
-
检索与查询最相关的记忆
- retrieveLongTerm(String, int) - Method in class com.yapcli.memory.MemoryRetriever
-
仅从长期记忆中检索稳定事实,用于 system prompt 注入。 当前轮用户输入和短期对话已经在 message history 里,不应再次以"相关记忆"身份 注入给模型,否则容易让模型把当前请求误读成历史事实。
- retrieveLongTerm(String, int, String) - Method in class com.yapcli.memory.MemoryRetriever
- retrieveRelevant(String, int) - Method in class com.yapcli.memory.MemoryManager
-
检索与查询最相关的记忆
- REVERSE_OFF - Static variable in class com.yapcli.render.inline.AnsiSeq
- REVERSE_ON - Static variable in class com.yapcli.render.inline.AnsiSeq
- review(String, ExecutionPlan) - Method in interface com.yapcli.agent.PlanExecuteAgent.PlanReviewHandler
- review(String, String) - Method in class com.yapcli.agent.SubAgent
-
检查结果(Reviewer 专用)
- review(String, String, PrintStream) - Method in class com.yapcli.agent.SubAgent
- REVIEWER - Enum constant in enum class com.yapcli.agent.AgentRole
- riskDescription() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
riskDescriptionrecord component. - role() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
rolerecord component. - role() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns the value of the
rolerecord component. - role() - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Returns the value of the
rolerecord component. - root() - Method in class com.yapcli.wechat.WechatAccountStore
- root() - Static method in class com.yapcli.wechat.WechatPaths
- RootPane - Class in com.yapcli.tui
-
根面板容器,实现三栏布局。
- RootPane(YapCliConfig, LlmClient) - Constructor for class com.yapcli.tui.RootPane
-
创建根面板。
- run() - Method in class com.yapcli.wechat.WechatMessageLoop
- run(String) - Method in class com.yapcli.agent.Agent
-
运行 Agent 循环
- run(String) - Method in class com.yapcli.agent.AgentOrchestrator
-
运行多 Agent 协作任务
- run(String) - Method in class com.yapcli.agent.PlanExecuteAgent
-
运行任务(自动判断是否需要规划)
- run(String) - Method in interface com.yapcli.runtime.task.TaskRunner
- run(String[]) - Static method in class com.yapcli.wechat.WechatCommandMain
- RUNNING - Enum constant in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
- RUNNING - Enum constant in enum class com.yapcli.plan.Task.TaskStatus
- RUNNING - Enum constant in enum class com.yapcli.runtime.task.TaskStatus
- runOnGuiThread(Runnable) - Method in class com.yapcli.tui.LanternaWindow
-
在 GUI 事件线程执行任务(线程安全封装)。
- runPostEditLspHook(String, Path) - Method in class com.yapcli.lsp.LspManager
- RuntimeApiServer - Class in com.yapcli.runtime.api
- RuntimeApiServer(RuntimeThreadStore, TaskRunner, int, String) - Constructor for class com.yapcli.runtime.api.RuntimeApiServer
- RuntimeEvent - Record Class in com.yapcli.runtime.api
- RuntimeEvent(long, String, String, String, Instant) - Constructor for record class com.yapcli.runtime.api.RuntimeEvent
-
Creates an instance of a
RuntimeEventrecord class. - RuntimeThreadStore - Class in com.yapcli.runtime.api
- RuntimeThreadStore(Path) - Constructor for class com.yapcli.runtime.api.RuntimeThreadStore
- runTurn(String, String, SnapshotService.ThrowingSupplier<T>) - Method in class com.yapcli.snapshot.SnapshotService
S
- safeSize(Terminal) - Static method in class com.yapcli.render.inline.TerminalCapabilities
- sanitize(JsonNode) - Static method in class com.yapcli.mcp.protocol.McpSchemaSanitizer
- save() - Method in class com.yapcli.config.YapCliConfig
- save() - Method in class com.yapcli.tui.history.ConversationSnapshot
-
保存到文件(Day 5 完整实现)。
- save(WechatAccount) - Method in class com.yapcli.wechat.WechatAccountStore
- SAVE_CURSOR - Static variable in class com.yapcli.render.inline.AnsiSeq
-
保存光标位置(DECSC)。
- scopeOf(MemoryEntry) - Static method in class com.yapcli.memory.LongTermMemory
- search(float[], int) - Method in class com.yapcli.rag.VectorStore
-
语义检索:根据查询向量返回最相似的 TopK 代码块
- search(String, int) - Method in class com.yapcli.memory.ConversationMemory
- search(String, int) - Method in class com.yapcli.memory.LongTermMemory
- search(String, int) - Method in interface com.yapcli.memory.Memory
-
搜索相关记忆
- search(String, int) - Method in interface com.yapcli.web.SearchProvider
-
执行搜索。
- search(String, int) - Method in class com.yapcli.web.SearxngSearchProvider
- search(String, int) - Method in class com.yapcli.web.SerpApiSearchProvider
- search(String, int) - Method in class com.yapcli.web.ZhipuSearchProvider
- search(String, int, String) - Method in class com.yapcli.memory.LongTermMemory
- searchByKeyword(String) - Method in class com.yapcli.rag.VectorStore
-
根据关键词检索代码块(不经过 Embedding,用于精确匹配类名/方法名)
- searchLongTerm(String, int) - Method in class com.yapcli.memory.MemoryManager
- SearchProvider - Interface in com.yapcli.web
-
搜索引擎抽象。 当前实现: -
SerpApiSearchProvider:商业聚合 API,需 API Key,开箱即用 -SearxngSearchProvider:开源元搜索引擎,需要本地或可访问的 SearXNG 实例,免费 让用户根据成本 / 数据合规 / 离线需求自由切换 provider。 后续如果新增 Brave / Tavily / Exa 等实现,只要继续实现这个接口,无需改动调用方。 - SearchProviderFactory - Class in com.yapcli.web
-
按环境变量 / .env / 系统属性选择 SearchProvider 实现。 自动选择优先级(未显式 SEARCH_PROVIDER 时): 有
GLM_API_KEY→ zhipu(智谱 Web Search,与 GLM 推理共用 Key,国内首选) 有SERPAPI_KEY→ serpapi(国际通用,付费即开即用) 有SEARXNG_URL→ searxng(开源自托管,免费) 都没有 → 占位 zhipu provider,isReady() 为 false,由调用方提示用户 显式SEARCH_PROVIDER(zhipu / serpapi / searxng)会跳过自动判断。 这里不做单例缓存,由调用方按需缓存(如 ToolRegistry 的 webSearchProvider 字段)。 - SearchResult - Record Class in com.yapcli.web
-
一条搜索结果。 字段顺序与位置(
SearchResult.position)从 1 开始,便于 LLM 按编号引用。 source 是从 url 解析出的域名(host),用于快速识别一手来源。 - SearchResult(int, String, String, String, String) - Constructor for record class com.yapcli.web.SearchResult
-
Creates an instance of a
SearchResultrecord class. - SearchResult(String, String, String, String, double) - Constructor for record class com.yapcli.rag.VectorStore.SearchResult
-
Creates an instance of a
SearchResultrecord class. - SearchResultFormatter - Class in com.yapcli.rag
-
检索结果展示格式化。 保持实现简单:不额外调用 LLM,只根据查询和 Top 结果生成简短摘要, 让 /search 更像“可读搜索结果”,而不是只打印原始代码片段。
- SearxngSearchProvider - Class in com.yapcli.web
-
SearXNG 搜索 provider。 SearXNG 是开源的元搜索引擎(github.com/searxng/searxng),自己不爬取互联网, 而是把请求转发到 Google / Bing / DuckDuckGo / Brave 等几十个引擎,再聚合返回。 推荐用法:本地 docker 起一个实例
- SearxngSearchProvider(String) - Constructor for class com.yapcli.web.SearxngSearchProvider
- section(String) - Static method in class com.yapcli.util.AnsiStyle
- semanticSearch(String, int) - Method in class com.yapcli.rag.CodeRetriever
-
语义检索:用自然语言查询最相关的代码块
- send(JsonNode) - Method in interface com.yapcli.mcp.transport.McpTransport
- send(JsonNode) - Method in class com.yapcli.mcp.transport.StdioTransport
- send(JsonNode) - Method in class com.yapcli.mcp.transport.StreamableHttpTransport
- send(String) - Method in interface com.yapcli.wechat.WechatMessageSender
- SEND - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- sendNotification(String, JsonNode) - Method in class com.yapcli.mcp.jsonrpc.JsonRpcClient
- sendText(WechatAccount, String, String, String) - Method in class com.yapcli.wechat.IlinkClient
- sendTyping(WechatAccount, String, String, int) - Method in class com.yapcli.wechat.IlinkClient
- sensitive() - Method in record class com.yapcli.browser.BrowserAuditMetadata
-
Returns the value of the
sensitiverecord component. - sensitiveNotice() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns the value of the
sensitiveNoticerecord component. - sensitiveNotice() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
sensitiveNoticerecord component. - SensitivePagePolicy - Class in com.yapcli.browser
- SensitivePagePolicy() - Constructor for class com.yapcli.browser.SensitivePagePolicy
- SensitivePagePolicy(Path) - Constructor for class com.yapcli.browser.SensitivePagePolicy
- SensitivePagePolicy.MatchResult - Record Class in com.yapcli.browser
- SerpApiSearchProvider - Class in com.yapcli.web
-
SerpAPI 搜索 provider。 商业聚合服务,帮我们绕过 Google 反爬。需在环境变量或 .env 中配置 SERPAPI_KEY。
- SerpApiSearchProvider(String) - Constructor for class com.yapcli.web.SerpApiSearchProvider
- server(String) - Method in class com.yapcli.mcp.McpServerManager
- serverInfo() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult
-
Returns the value of the
serverInforecord component. - ServerInfo(String, String) - Constructor for record class com.yapcli.mcp.protocol.McpInitializeResult.ServerInfo
-
Creates an instance of a
ServerInforecord class. - serverName() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns the value of the
serverNamerecord component. - serverName() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns the value of the
serverNamerecord component. - serverName() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
serverNamerecord component. - servers() - Method in class com.yapcli.mcp.McpServerManager
- sessionId() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns the value of the
sessionIdrecord component. - SessionMeta(String, String, long, long, int) - Constructor for record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Creates an instance of a
SessionMetarecord class. - sessionsDir() - Static method in class com.yapcli.wechat.WechatPaths
- setApiKey(String) - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- setArgs(List<String>) - Method in class com.yapcli.mcp.config.McpServerConfig
- setBaseUrl(String) - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- setBrowserConnector(BrowserConnector) - Method in class com.yapcli.tool.ToolRegistry
- setBrowserGuard(BrowserGuard) - Method in class com.yapcli.tool.ToolRegistry
- setCloseHook(Runnable) - Method in class com.yapcli.tui.LanternaWindow
- setCommand(String) - Method in class com.yapcli.mcp.config.McpServerConfig
- setContextProfile(ContextProfile) - Method in class com.yapcli.tool.ToolRegistry
- setCurrentModel(String, String) - Method in class com.yapcli.tool.ToolRegistry
- setDefaultProvider(String) - Method in class com.yapcli.config.YapCliConfig
- setDelegate(HitlHandler) - Method in class com.yapcli.hitl.SwitchableHitlHandler
- setDisabled(boolean) - Method in class com.yapcli.mcp.config.McpServerConfig
- setEnabled(boolean) - Method in interface com.yapcli.hitl.HitlHandler
-
启用/禁用 HITL 审批
- setEnabled(boolean) - Method in class com.yapcli.hitl.RendererHitlHandler
- setEnabled(boolean) - Method in class com.yapcli.hitl.SwitchableHitlHandler
- setEnabled(boolean) - Method in class com.yapcli.hitl.TerminalHitlHandler
- setEnabled(boolean) - Method in class com.yapcli.tui.hitl.TuiHitlHandler
- setEnv(Map<String, String>) - Method in class com.yapcli.mcp.config.McpServerConfig
- setError(String) - Method in class com.yapcli.plan.Task
- setExternalContextSupplier(Supplier<String>) - Method in class com.yapcli.agent.Agent
- setExternalContextSupplier(Supplier<String>) - Method in class com.yapcli.agent.AgentOrchestrator
- setExternalContextSupplier(Supplier<String>) - Method in class com.yapcli.agent.PlanExecuteAgent
- setExternalContextSupplier(Supplier<String>) - Method in class com.yapcli.agent.SubAgent
- setHeaders(Map<String, String>) - Method in class com.yapcli.mcp.config.McpServerConfig
- setHitlEnabledSupplier(Supplier<Boolean>) - Method in class com.yapcli.agent.Agent
-
注入 HITL 启用状态的快照源,用于状态栏 / StatusInfo 显示。 Main 启动后用
reactAgent.setHitlEnabledSupplier(hitlHandler::isEnabled)接进来。 - setLlmClient(LlmClient) - Method in class com.yapcli.agent.Agent
- setLlmClient(LlmClient) - Method in class com.yapcli.memory.ContextCompressor
- setLlmClient(LlmClient) - Method in class com.yapcli.memory.ConversationHistoryCompactor
- setLlmClient(LlmClient) - Method in class com.yapcli.memory.MemoryManager
- setLoraId(String) - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- setLspManager(LspManager) - Method in class com.yapcli.tool.ToolRegistry
- setMaxTokens(int) - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- setMaxTokens(int) - Method in class com.yapcli.memory.ConversationMemory
- setMcpServers(Map<String, McpServerConfig>) - Method in class com.yapcli.mcp.config.McpConfigFile
- setMemorySaver(Consumer<String>) - Method in class com.yapcli.tool.ToolRegistry
- setMessageHandler(Consumer<String>) - Method in class com.yapcli.tui.RootPane
- setModel(String) - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- setProjectMemorySupplier(Supplier<String>) - Method in class com.yapcli.plan.Planner
- setProjectPath(String) - Method in class com.yapcli.lsp.LspManager
- setProjectPath(String) - Method in class com.yapcli.memory.MemoryManager
- setProjectPath(String) - Method in class com.yapcli.tool.ToolRegistry
-
设置代码检索的项目路径
- setProviders(Map<String, YapCliConfig.ProviderConfig>) - Method in class com.yapcli.config.YapCliConfig
- setRenderer(Renderer) - Method in class com.yapcli.agent.Agent
- setResult(String) - Method in class com.yapcli.plan.Task
- setReturnFinalResponseWhenStreamed(boolean) - Method in class com.yapcli.agent.Agent
- setScopedMemorySaver(BiConsumer<String, String>) - Method in class com.yapcli.tool.ToolRegistry
- setScrollRegion(int, int) - Static method in class com.yapcli.render.inline.AnsiSeq
-
设置滚动区域为第
top..bottom行(1-based,闭区间)。 - setSkillContextBuffer(SkillContextBuffer) - Method in class com.yapcli.agent.Agent
- setSkillContextBuffer(SkillContextBuffer) - Method in class com.yapcli.agent.PlanExecuteAgent
- setSkillContextBuffer(SkillContextBuffer) - Method in class com.yapcli.agent.SubAgent
- setSkillContextBuffer(SkillContextBuffer) - Method in class com.yapcli.tool.ToolRegistry
- setSkillRegistry(SkillRegistry) - Method in class com.yapcli.agent.Agent
- setSkillRegistry(SkillRegistry) - Method in class com.yapcli.agent.PlanExecuteAgent
- setSkillRegistry(SkillRegistry) - Method in class com.yapcli.agent.SubAgent
- setSkillRegistry(SkillRegistry) - Method in class com.yapcli.tool.ToolRegistry
- setSkillSystem(SkillRegistry, SkillContextBuffer) - Method in class com.yapcli.agent.AgentOrchestrator
-
把 Skill 系统下发给所有 SubAgent。Multi-Agent 三个角色共享同一 SkillRegistry(索引一致), 但共享同一 SkillContextBuffer——简化实现,避免角色级 buffer 隔离的工程开销。 任务书 §3.6 描述的"角色独立 buffer"作为可观察的优化项暂未启用。
- setSnapshotService(SnapshotService) - Method in class com.yapcli.tool.ToolRegistry
- setStatus(ExecutionPlan.PlanStatus) - Method in class com.yapcli.plan.ExecutionPlan
- setStatus(Task.TaskStatus) - Method in class com.yapcli.plan.Task
- setSummary(String) - Method in class com.yapcli.plan.ExecutionPlan
- setTemperature(double) - Method in class com.yapcli.config.YapCliConfig.ProviderConfig
- setUrl(String) - Method in class com.yapcli.mcp.config.McpServerConfig
- setWriteFileObserver(BiConsumer<String, String[]>) - Method in class com.yapcli.tool.ToolRegistry
-
注册 write_file 写入观察者:参数 (path, [before, after]), before == null 表示新建文件或读不出原文。 用于把 write_file 接到行内 diff 渲染等只读副作用里; 观察者抛异常不影响 write_file 主路径。
- severity() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns the value of the
severityrecord component. - SHARED - Enum constant in enum class com.yapcli.browser.BrowserMode
- SHARED_HTTP_CLIENT - Static variable in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- shortCommitId() - Method in record class com.yapcli.snapshot.TurnSnapshot
- shortPrompt() - Method in record class com.yapcli.runtime.task.DurableTask
- shortTermMemoryBudget() - Method in record class com.yapcli.context.ContextProfile
-
Returns the value of the
shortTermMemoryBudgetrecord component. - shouldSendReasoningContentInRequestHistory() - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- shouldSendReasoningContentInRequestHistory() - Method in class com.yapcli.llm.DeepSeekClient
- shouldSendReasoningContentInRequestHistory() - Method in class com.yapcli.llm.KimiClient
- shouldUseTui() - Static method in class com.yapcli.tui.TuiBootstrap
-
判断当前环境是否应该启用 TUI。
- shouldUseTui(Terminal) - Static method in class com.yapcli.tui.TuiBootstrap
- SHOW_CURSOR - Static variable in class com.yapcli.render.inline.AnsiSeq
-
显示光标。
- showConfigDialog() - Method in class com.yapcli.tui.config.TuiConfigPanel
- SideGitManager - Class in com.yapcli.snapshot
- SideGitManager(Path) - Constructor for class com.yapcli.snapshot.SideGitManager
- SideGitManager(Path, SnapshotConfig) - Constructor for class com.yapcli.snapshot.SideGitManager
- similarity() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns the value of the
similarityrecord component. - singleTurnTokenBudget() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns the value of the
singleTurnTokenBudgetrecord component. - size() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
sizerecord component. - size() - Method in class com.yapcli.memory.ConversationMemory
- size() - Method in class com.yapcli.memory.LongTermMemory
- size() - Method in interface com.yapcli.memory.Memory
-
获取记忆条数
- size() - Method in class com.yapcli.render.inline.BlockRegistry
-
当前注册数量(含 frozen)。
- size() - Method in class com.yapcli.skill.SkillContextBuffer
- Skill - Record Class in com.yapcli.skill
-
一个 Skill 是 YapCLI 沉淀决策与经验的复用单元。 由 SKILL.md 文件解析得到:frontmatter 决定索引段元数据,body 在 LLM 调用 load_skill 时通过 SkillContextBuffer 注入下一轮 user message。 source 标记加载来源,用于 /skill list 展示与三层覆盖的可观测性。
- Skill(String, String, String, String, List<String>, Skill.Source, String, Path, Path) - Constructor for record class com.yapcli.skill.Skill
-
Creates an instance of a
Skillrecord class. - Skill.Source - Enum Class in com.yapcli.skill
- SkillBuiltinExtractor - Class in com.yapcli.skill
-
把 jar 内 resources/skills/<name>/ 解压到 ~/.yapcli/skills-cache/<name>/。 解压策略:通过 .version 文件标记当前 jar 内置版本。版本一致跳过;不一致或缺失则覆盖整个目录。 内置 skill 文件清单为硬编码(避免 jar 内 resource walk 的跨平台问题), 当前覆盖:web-access skill 的 SKILL.md / cdp-cheatsheet.md / 6 个 site-patterns。
- SkillBuiltinExtractor(Path) - Constructor for class com.yapcli.skill.SkillBuiltinExtractor
- skillCacheDir(String) - Method in class com.yapcli.skill.SkillBuiltinExtractor
- SkillContextBuffer - Class in com.yapcli.skill
-
单 Agent 实例的 skill 注入缓冲区。 生命周期:LLM 调 load_skill → push 到 buffer → 下一轮构造 user message 时 drain → 拼到原内容前。 关键约束: - drain 是一次性消费(防止跨轮重复注入) - 同一会话内最多保留 3 个 skill body(上限 3 个,超出 LRU 淘汰最旧) - 同一 skill 重复 push 会替换旧 body 并刷新到末尾,避免重复 - /clear 命令调 clear() 复位 三个 SubAgent 角色(Planner / Worker / Reviewer)+ 主 Agent 各持一个独立实例, 不共享 buffer,避免角色间提示词污染。
- SkillContextBuffer() - Constructor for class com.yapcli.skill.SkillContextBuffer
- SkillFrontmatterParser - Class in com.yapcli.skill
-
SKILL.md frontmatter 解析器(极简 YAML 子集,不引入 SnakeYAML)。 支持的语法(覆盖 95% 实际写法): - 单行 key: value - 多行 key: |\n line1\n line2(以首行缩进推断) - 行内数组 key: [a, b, c] 不支持(命中即 warnings 报错并跳过该字段,不阻塞整个 skill 加载): - 嵌套对象 key: { nested: ...
- SkillFrontmatterParser.ParseResult - Record Class in com.yapcli.skill
- skillIndex() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
skillIndexrecord component. - skillIndex(String) - Method in class com.yapcli.prompt.PromptContext.Builder
- SkillIndexFormatter - Class in com.yapcli.skill
-
把启用 skill 渲染成 system prompt 索引段。 预算约束(命中即截断 + stderr 警告): - 单条 description ≤ 500 codepoint - 启用 skill 数 ≤ 20(按 name 字典序保留前 20) - 总段大小 ≤ 4096 字符 注入位置:每个 Agent / SubAgent 的 system prompt 末尾,独立段。
- skillMdPath() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
skillMdPathrecord component. - SkillRegistry - Class in com.yapcli.skill
-
Skill 加载与运行时维护。 三层目录扫描顺序(后者整体覆盖前者同名 skill): 1.
- SkillRegistry(Path, Path, Path, SkillStateStore) - Constructor for class com.yapcli.skill.SkillRegistry
- SkillStateStore - Class in com.yapcli.skill
-
Skill 启用状态持久化。 设计:仅持久化 disabled 列表,启用为隐式默认——这样新加的 skill 不会被遗漏。 文件不存在或解析失败一律视为空 disabled,并在 stderr 警告,不阻塞主流程。
- SkillStateStore(Path) - Constructor for class com.yapcli.skill.SkillStateStore
- skillSummary() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
skillSummaryrecord component. - skip() - Static method in record class com.yapcli.hitl.ApprovalResult
- SKIPPED - Enum constant in enum class com.yapcli.hitl.ApprovalResult.Decision
- SKIPPED - Enum constant in enum class com.yapcli.plan.Task.TaskStatus
- SlashPalette - Class in com.yapcli.render.inline
-
临时浮起的命令选择列表。
- SlashPalette(PrintStream, Terminal) - Constructor for class com.yapcli.render.inline.SlashPalette
- snapshotAfterTurnAsync(String, String) - Method in class com.yapcli.snapshot.SnapshotService
- snapshotBeforeTurn(String, String) - Method in class com.yapcli.snapshot.SnapshotService
- SnapshotConfig - Record Class in com.yapcli.snapshot
- SnapshotConfig(boolean, Path, int, List<String>) - Constructor for record class com.yapcli.snapshot.SnapshotConfig
-
Creates an instance of a
SnapshotConfigrecord class. - SnapshotPhase - Enum Class in com.yapcli.snapshot
- SnapshotService - Class in com.yapcli.snapshot
- SnapshotService(SideGitManager) - Constructor for class com.yapcli.snapshot.SnapshotService
- SnapshotService.ThrowingSupplier<T> - Interface in com.yapcli.snapshot
- snapshotsRoot() - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Returns the value of the
snapshotsRootrecord component. - snippet() - Method in record class com.yapcli.web.SearchResult
-
Returns the value of the
snippetrecord component. - source() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns the value of the
sourcerecord component. - source() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
sourcerecord component. - source() - Method in record class com.yapcli.web.SearchResult
-
Returns the value of the
sourcerecord component. - sourcePath() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns the value of the
sourcePathrecord component. - STAGNATION_DETECTED - Enum constant in enum class com.yapcli.agent.AgentBudget.ExitReason
- stagnationWindow() - Method in class com.yapcli.agent.AgentBudget
- start() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns the value of the
startrecord component. - start() - Method in class com.yapcli.render.inline.BottomStatusBar
-
初始化状态栏。重复调用无副作用。
- start() - Method in class com.yapcli.render.inline.InlineRenderer
- start() - Method in class com.yapcli.render.PlainRenderer
- start() - Method in interface com.yapcli.render.Renderer
-
启动渲染器(例如设置滚动区域、启动 GUI 主循环)。Main 必须先调用一次。
- start() - Method in class com.yapcli.runtime.api.RuntimeApiServer
- start() - Method in class com.yapcli.runtime.task.DurableTaskManager
- start() - Method in class com.yapcli.tui.LanternaRenderer
- start() - Method in class com.yapcli.tui.LanternaWindow
-
启动 TUI 主循环(阻塞直到窗口关闭)。
- start() - Method in class com.yapcli.wechat.WechatRenderer
- start() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- startAll() - Method in class com.yapcli.mcp.McpServerManager
- startAll(PrintStream) - Method in class com.yapcli.mcp.McpServerManager
- startAll(PrintStream, Duration) - Method in class com.yapcli.mcp.McpServerManager
-
Start all configured servers.
- startedAt() - Method in class com.yapcli.mcp.McpServer
- startedAt() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
startedAtrecord component. - STARTING - Enum constant in enum class com.yapcli.mcp.McpServerStatus
- startLine() - Method in record class com.yapcli.rag.CodeChunk
-
Returns the value of the
startLinerecord component. - startQrLogin(String) - Method in class com.yapcli.wechat.IlinkClient
- startRun() - Static method in class com.yapcli.runtime.CancellationContext
- startTimer() - Method in class com.yapcli.tui.pane.StatusPane
-
开始计时(任务开始时调用)。
- startupSummary() - Method in class com.yapcli.mcp.McpServerManager
- stateStore() - Method in class com.yapcli.skill.SkillRegistry
- status() - Method in interface com.yapcli.browser.BrowserConnector
- status() - Method in class com.yapcli.mcp.McpServer
- status() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns the value of the
statusrecord component. - status() - Method in class com.yapcli.snapshot.SnapshotService
- status() - Method in class com.yapcli.wechat.WechatAgentSession
- status() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
statusrecord component. - status(McpServerStatus) - Method in class com.yapcli.mcp.McpServer
- STATUS - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- StatusInfo - Record Class in com.yapcli.render
-
渲染器状态栏数据载体。
- StatusInfo(String, long, long, boolean, long) - Constructor for record class com.yapcli.render.StatusInfo
- StatusInfo(String, long, long, long, long, long, String, boolean, long, String) - Constructor for record class com.yapcli.render.StatusInfo
- StatusInfo(String, long, long, long, long, long, String, boolean, long, String, String, String) - Constructor for record class com.yapcli.render.StatusInfo
-
Creates an instance of a
StatusInforecord class. - StatusPane - Class in com.yapcli.tui.pane
-
右侧状态栏面板。
- StatusPane(YapCliConfig, LlmClient) - Constructor for class com.yapcli.tui.pane.StatusPane
-
创建状态栏面板。
- stderrLines() - Method in class com.yapcli.mcp.McpClient
- stderrLines() - Method in interface com.yapcli.mcp.transport.McpTransport
- stderrLines() - Method in class com.yapcli.mcp.transport.StdioTransport
- StdioTransport - Class in com.yapcli.mcp.transport
- StdioTransport(String, List<String>, Map<String, String>, Path) - Constructor for class com.yapcli.mcp.transport.StdioTransport
- StepClient - Class in com.yapcli.llm
- StepClient(String) - Constructor for class com.yapcli.llm.StepClient
- StepClient(String, String, String) - Constructor for class com.yapcli.llm.StepClient
- stop() - Method in class com.yapcli.wechat.WechatMessageLoop
- STOP - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- stopTimer() - Method in class com.yapcli.tui.pane.StatusPane
-
停止计时并更新显示。
- store(MemoryEntry) - Method in class com.yapcli.memory.ConversationMemory
- store(MemoryEntry) - Method in class com.yapcli.memory.LongTermMemory
- store(MemoryEntry) - Method in interface com.yapcli.memory.Memory
-
存储一条记忆
- storeFact(String) - Method in class com.yapcli.memory.MemoryManager
-
存储关键事实到长期记忆
- storeFact(String, String) - Method in class com.yapcli.memory.MemoryManager
- stream() - Method in class com.yapcli.render.inline.InlineRenderer
- stream() - Method in class com.yapcli.render.PlainRenderer
- stream() - Method in interface com.yapcli.render.Renderer
-
流式输出的目标 PrintStream。
- stream() - Method in class com.yapcli.tui.LanternaRenderer
- stream() - Method in class com.yapcli.wechat.WechatRenderer
- stream() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- StreamableHttpTransport - Class in com.yapcli.mcp.transport
- StreamableHttpTransport(String, Map<String, String>) - Constructor for class com.yapcli.mcp.transport.StreamableHttpTransport
- SubAgent - Class in com.yapcli.agent
-
子代理 - 可配置角色的轻量 Agent 每个 SubAgent 有独立的角色、系统提示词和对话历史, 但共享 LLM 客户端和工具注册表。
- SubAgent(String, AgentRole, LlmClient, ToolRegistry) - Constructor for class com.yapcli.agent.SubAgent
- submit(String) - Method in class com.yapcli.tui.TuiSessionController
- submit(String) - Method in class com.yapcli.wechat.WechatAgentSession
- subscribeResource(String) - Method in class com.yapcli.mcp.McpClient
- subtle(String) - Static method in class com.yapcli.util.AnsiStyle
- success() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns the value of the
successrecord component. - success(String, List<String>, List<String>) - Static method in record class com.yapcli.snapshot.RestoreResult
- suggestion() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
suggestionrecord component. - summarize() - Method in class com.yapcli.plan.ExecutionPlan
-
默认折叠展示,避免完整 DAG 占满终端。
- summarize(List<LlmClient.Message>) - Method in class com.yapcli.memory.ConversationHistoryCompactor
-
真正调 LLM 摘要。包可见以便测试通过子类替换。
- summary() - Method in record class com.yapcli.context.ContextProfile
- summary() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns the value of the
summaryrecord component. - SUMMARY - Enum constant in enum class com.yapcli.memory.MemoryEntry.MemoryType
- supplement(String) - Static method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
- SUPPLEMENT - Enum constant in enum class com.yapcli.agent.PlanExecuteAgent.PlanReviewAction
- supportsActivityPanel() - Method in class com.yapcli.render.inline.InlineRenderer
- supportsActivityPanel() - Method in interface com.yapcli.render.Renderer
-
当前渲染器是否支持通用临时活动面板。
- supportsActivityPanel() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- supportsAnsi(Terminal) - Static method in class com.yapcli.render.inline.TerminalCapabilities
-
终端是否能渲染 ANSI 转义序列(颜色、光标控制、inline status 等)。
- supportsImageInput() - Method in class com.yapcli.llm.DeepSeekClient
- supportsImageInput() - Method in interface com.yapcli.llm.LlmClient
- supportsPromptCaching() - Method in class com.yapcli.llm.DeepSeekClient
- supportsPromptCaching() - Method in class com.yapcli.llm.GLMClient
- supportsPromptCaching() - Method in class com.yapcli.llm.KimiClient
- supportsPromptCaching() - Method in interface com.yapcli.llm.LlmClient
- supportsPromptCaching() - Method in class com.yapcli.llm.StepClient
- supportsPrompts() - Method in class com.yapcli.mcp.McpClient
- supportsResources() - Method in class com.yapcli.mcp.McpClient
- supportsScrollRegion(Terminal) - Static method in class com.yapcli.render.inline.TerminalCapabilities
-
终端是否适合启用 inline status 状态区。 同时校验终端尺寸合理(rows ≥ 5)。
- supportsThinkingPanel() - Method in class com.yapcli.render.inline.InlineRenderer
- supportsThinkingPanel() - Method in interface com.yapcli.render.Renderer
-
当前渲染器是否支持独立的模型思考面板。
- supportsThinkingPanel() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- supportsTools() - Method in interface com.yapcli.llm.LlmClient
- supportsTools() - Method in class com.yapcli.llm.XfyunMaaSClient
- supportsTrueColor() - Static method in class com.yapcli.render.inline.TerminalCapabilities
-
终端是否支持 24-bit TrueColor(用于丰富的代码高亮等)。
- SwitchableHitlHandler - Class in com.yapcli.hitl
-
Delegates HITL interaction to the currently active UI implementation.
- SwitchableHitlHandler(HitlHandler) - Constructor for class com.yapcli.hitl.SwitchableHitlHandler
- switchModel(String) - Method in class com.yapcli.tui.config.TuiConfigPanel
- switchToIsolated() - Method in class com.yapcli.browser.BrowserSession
- switchToShared(String) - Method in class com.yapcli.browser.BrowserSession
- syncBuf() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
syncBufrecord component. - system(String) - Static method in record class com.yapcli.llm.LlmClient.Message
T
- tags() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
tagsrecord component. - targetUrl() - Method in record class com.yapcli.browser.BrowserAuditMetadata
-
Returns the value of the
targetUrlrecord component. - task(String, String) - Static method in record class com.yapcli.agent.AgentMessage
-
创建任务消息(主控 -> 子代理)
- Task - Class in com.yapcli.plan
-
任务节点 - 表示一个可执行的任务单元
- Task(String, String, Task.TaskType) - Constructor for class com.yapcli.plan.Task
- Task(String, String, Task.TaskType, List<String>) - Constructor for class com.yapcli.plan.Task
- TASK - Enum constant in enum class com.yapcli.agent.AgentMessage.Type
- Task.TaskStatus - Enum Class in com.yapcli.plan
- Task.TaskType - Enum Class in com.yapcli.plan
- TaskCommandFormatter - Class in com.yapcli.runtime.task
- TaskRunner - Interface in com.yapcli.runtime.task
- TaskStatus - Enum Class in com.yapcli.runtime.task
- TEAM_PLANNER - Enum constant in enum class com.yapcli.prompt.PromptMode
- TEAM_REVIEWER - Enum constant in enum class com.yapcli.prompt.PromptMode
- TEAM_WORKER - Enum constant in enum class com.yapcli.prompt.PromptMode
- terminal() - Method in class com.yapcli.render.inline.InlineRenderer
-
测试 / Main.java 可见:拿到 terminal 用于其它 inline 组件。
- terminal() - Method in record class com.yapcli.runtime.task.DurableTask
- TerminalCapabilities - Class in com.yapcli.render.inline
-
终端能力探测:决定 inline 渲染器的各项特性是否可启用。
- terminalColumns() - Method in class com.yapcli.render.inline.InlineRenderer
- terminalColumns() - Method in interface com.yapcli.render.Renderer
-
当前输出区域可用列数。Markdown 表格等宽布局按这个值做收缩和换行。
- terminalColumns() - Method in class com.yapcli.wechat.WechatTerminalRenderer
- TerminalHitlHandler - Class in com.yapcli.hitl
-
终端 HITL 审批处理器 在终端展示审批请求,等待用户键盘输入后返回决策。 支持的交互选项: y / Enter - 批准本次操作 a - 批准本次会话所有后续同类危险操作(工具维度;MCP 支持 server 维度) n - 拒绝本次操作 s - 跳过本步骤(SKIPPED) m - 修改参数后执行(进入参数输入模式) 并发安全: requestApproval 方法整体 synchronized,确保多 Agent 并行场景下同一时刻只有一个 审批提示活跃,避免 stdout 串扰与 stdin 争抢。
- TerminalHitlHandler(boolean) - Constructor for class com.yapcli.hitl.TerminalHitlHandler
- TerminalMarkdownRenderer - Class in com.yapcli.util
-
轻量终端 Markdown 渲染器。 目标不是完整支持所有 Markdown 语法,而是把常见的标题、列表、表格、引用和代码块 渲染成更适合 CLI 终端阅读的纯文本布局。
- TerminalMarkdownRenderer(PrintStream) - Constructor for class com.yapcli.util.TerminalMarkdownRenderer
- TerminalMarkdownRenderer(PrintStream, int) - Constructor for class com.yapcli.util.TerminalMarkdownRenderer
- TerminalMarkdownRenderer(PrintStream, IntSupplier) - Constructor for class com.yapcli.util.TerminalMarkdownRenderer
- TerminalQrRenderer - Class in com.yapcli.wechat
- text() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns the value of the
textrecord component. - text() - Method in record class com.yapcli.mcp.protocol.McpContent
-
Returns the value of the
textrecord component. - text() - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Returns the value of the
textrecord component. - text() - Method in record class com.yapcli.tool.ToolOutput
-
Returns the value of the
textrecord component. - text() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns the value of the
textrecord component. - text(String) - Static method in record class com.yapcli.llm.LlmClient.ContentPart
- text(String) - Static method in record class com.yapcli.tool.ToolOutput
- thinking(String) - Static method in class com.yapcli.util.AnsiStyle
- threadId() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns the value of the
threadIdrecord component. - timedOut() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns the value of the
timedOutrecord component. - timestamp() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Returns the value of the
timestamprecord component. - title() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
titlerecord component. - title() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns the value of the
titlerecord component. - title() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
titlerecord component. - title() - Method in record class com.yapcli.web.HtmlExtractor.Extracted
-
Returns the value of the
titlerecord component. - title() - Method in record class com.yapcli.web.SearchResult
-
Returns the value of the
titlerecord component. - toContentPart(ImageProcessor.ProcessedImage) - Static method in class com.yapcli.image.ImageProcessor
- toDisplayText() - Method in record class com.yapcli.hitl.ApprovalRequest
-
格式化为可读的展示文本 所有 padding 都按"终端显示列宽"计算(CJK / emoji 占 2 列),不再按字符数 pad, 避免中文和 emoji 把右边框挤歪。
- toEmbeddingText() - Method in record class com.yapcli.rag.CodeChunk
-
生成用于 Embedding 的文本表示
- toFile() - Method in record class com.yapcli.rag.CodeRelation
-
Returns the value of the
toFilerecord component. - toggle() - Method in class com.yapcli.render.inline.FoldableBlock
-
展开/收起切换。frozen 后不再生效。
- toggleFileTree() - Method in class com.yapcli.tui.RootPane
-
切换文件树可见性。
- toggleForRedraw() - Method in class com.yapcli.render.inline.FoldableBlock
-
只切换内存态,不直接写终端;用于 transcript 级重绘。
- toggleLast() - Method in class com.yapcli.render.inline.BlockRegistry
-
Toggle 队尾活跃块(即最近一次 register 的块)。返回是否生效。
- toggleLastBlock() - Method in class com.yapcli.render.inline.InlineRenderer
-
Main.java 用:Ctrl+O 触发内存态切换,然后重绘本轮 transcript。
- toggleLastForRedraw() - Method in class com.yapcli.render.inline.BlockRegistry
-
Toggle 队尾块的内存态,由 transcript 重绘负责真正输出。
- toImageUrl(LlmClient.ContentPart) - Method in class com.yapcli.llm.AbstractOpenAiCompatibleClient
- toImageUrl(LlmClient.ContentPart) - Method in class com.yapcli.llm.GLMClient
- toJson() - Static method in class com.yapcli.mcp.protocol.McpInitializeRequest
- toJson(String, JsonNode) - Static method in class com.yapcli.mcp.protocol.McpCallToolRequest
- token() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
tokenrecord component. - token() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
tokenrecord component. - TOKEN_BUDGET_EXCEEDED - Enum constant in enum class com.yapcli.agent.AgentBudget.ExitReason
- tokenBudget() - Method in class com.yapcli.agent.AgentBudget
- TokenBudget - Class in com.yapcli.memory
-
Token 预算管理器 - 确保对话不会超出模型的上下文窗口 策略: 1.
- TokenBudget(int) - Constructor for class com.yapcli.memory.TokenBudget
- TokenBudget(int, int, int, int) - Constructor for class com.yapcli.memory.TokenBudget
- tokens(String, long, long, long, long, long, String, boolean, long, String) - Static method in record class com.yapcli.render.StatusInfo
- TokenUsageFormatter - Class in com.yapcli.context
- toName() - Method in record class com.yapcli.rag.CodeRelation
-
Returns the value of the
toNamerecord component. - tool() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns the value of the
toolrecord component. - tool(String, String) - Static method in record class com.yapcli.llm.LlmClient.Message
- Tool(String, String, JsonNode) - Constructor for record class com.yapcli.llm.LlmClient.Tool
-
Creates an instance of a
Toolrecord class. - Tool(String, String, JsonNode, ToolRegistry.ToolExecutor) - Constructor for record class com.yapcli.tool.ToolRegistry.Tool
-
Creates an instance of a
Toolrecord class. - TOOL_RESULT - Enum constant in enum class com.yapcli.memory.MemoryEntry.MemoryType
- ToolCall(String, LlmClient.ToolCall.Function) - Constructor for record class com.yapcli.llm.LlmClient.ToolCall
-
Creates an instance of a
ToolCallrecord class. - toolCallId() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns the value of the
toolCallIdrecord component. - ToolCallRenderer - Class in com.yapcli.render.inline
-
把一组工具调用渲染成
FoldableBlock。 - ToolCallRenderer(PrintStream, BlockRegistry) - Constructor for class com.yapcli.render.inline.ToolCallRenderer
- toolCalls() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns the value of the
toolCallsrecord component. - toolCalls() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns the value of the
toolCallsrecord component. - ToolExecutionResult(String, String, String, String, long, boolean, List<LlmClient.ContentPart>) - Constructor for record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Creates an instance of a
ToolExecutionResultrecord class. - ToolInvocation(String, String, String) - Constructor for record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Creates an instance of a
ToolInvocationrecord class. - toolName() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns the value of the
toolNamerecord component. - ToolOutput - Record Class in com.yapcli.tool
- ToolOutput(String, List<LlmClient.ContentPart>) - Constructor for record class com.yapcli.tool.ToolOutput
-
Creates an instance of a
ToolOutputrecord class. - ToolRegistry - Class in com.yapcli.tool
-
工具注册表 - 管理所有可用工具
- ToolRegistry() - Constructor for class com.yapcli.tool.ToolRegistry
- ToolRegistry.Tool - Record Class in com.yapcli.tool
- ToolRegistry.ToolExecutionResult - Record Class in com.yapcli.tool
- ToolRegistry.ToolExecutor - Interface in com.yapcli.tool
- ToolRegistry.ToolInvocation - Record Class in com.yapcli.tool
- tools() - Method in class com.yapcli.mcp.McpServer
- tools(List<McpToolDescriptor>) - Method in class com.yapcli.mcp.McpServer
- toolsEnabled() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
toolsEnabledrecord component. - toolsEnabled(boolean) - Method in class com.yapcli.prompt.PromptContext.Builder
- toString() - Method in record class com.yapcli.agent.Agent.CompactionResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.agent.AgentMessage
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.agent.PlanExecuteAgent.PlanReviewDecision
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.browser.BrowserAuditMetadata
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.browser.BrowserCheckResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.browser.BrowserConnectivityCheck.ProbeResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.browser.SensitivePagePolicy.MatchResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.context.ContextProfile
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.hitl.ApprovalRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.hitl.ApprovalResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.image.ClipboardImage.GrabResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.image.ImageProcessor.Dimensions
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.image.ImageProcessor.ProcessedImage
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.llm.LlmClient.ChatResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.llm.LlmClient.Message
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.llm.LlmClient.Tool
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.llm.LlmClient.ToolCall.Function
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.llm.LlmClient.ToolCall
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.lsp.LspDiagnostic
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.lsp.LspDiagnosticReport
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Error
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Notification
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Request
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.jsonrpc.JsonRpcMessage.Response
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.McpServerManager.ResourceReadResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.protocol.McpCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.protocol.McpContent
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult.ServerInfo
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.protocol.McpToolDescriptor
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns a string representation of this record class.
- toString() - Method in class com.yapcli.memory.MemoryEntry
- toString() - Method in class com.yapcli.plan.ExecutionPlan
- toString() - Method in class com.yapcli.plan.Task
- toString() - Method in record class com.yapcli.policy.AuditLog.AuditEntry
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.prompt.PromptContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.rag.CodeChunk
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.rag.CodeIndex.IndexResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.rag.CodeRelation
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.rag.VectorStore.CodeChunkEntry
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.rag.VectorStore.IndexStats
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.rag.VectorStore.SearchResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.render.StatusInfo
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.runtime.task.DurableTask
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.skill.Skill
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.snapshot.RestoreResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.snapshot.SnapshotConfig
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.tool.ToolOutput
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.tool.ToolRegistry.Tool
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.tool.ToolRegistry.ToolExecutionResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.tool.ToolRegistry.ToolInvocation
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.tui.history.ConversationSnapshot.MessageRecord
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.tui.history.ConversationSnapshot.SessionMeta
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.web.FetchResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.web.HtmlExtractor.Extracted
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.web.SearchResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatCommandParser.Command
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatMessage
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatPolicyDecision
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatQrLogin
-
Returns a string representation of this record class.
- toString() - Method in record class com.yapcli.wechat.WechatUpdate
-
Returns a string representation of this record class.
- totalCachedInputTokens() - Method in class com.yapcli.agent.AgentBudget
- totalInputTokens() - Method in class com.yapcli.agent.AgentBudget
- totalOutputTokens() - Method in class com.yapcli.agent.AgentBudget
- totalTokens() - Method in record class com.yapcli.render.StatusInfo
-
Returns the value of the
totalTokensrecord component. - toToolOutput() - Method in record class com.yapcli.mcp.protocol.McpCallToolResult
- transportName() - Method in class com.yapcli.mcp.config.McpServerConfig
- transportName() - Method in class com.yapcli.mcp.McpClient
- transportName() - Method in class com.yapcli.mcp.McpServer
- transportName() - Method in interface com.yapcli.mcp.transport.McpTransport
- transportName() - Method in class com.yapcli.mcp.transport.StdioTransport
- transportName() - Method in class com.yapcli.mcp.transport.StreamableHttpTransport
- truncated() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
truncatedrecord component. - truncated() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns the value of the
truncatedrecord component. - TuiBootstrap - Class in com.yapcli.tui
-
TUI 入口与降级检测。
- TuiConfigPanel - Class in com.yapcli.tui.config
-
TUI 配置面板。
- TuiConfigPanel(YapCliConfig, WindowBasedTextGUI) - Constructor for class com.yapcli.tui.config.TuiConfigPanel
- TuiHitlHandler - Class in com.yapcli.tui.hitl
-
TUI 模式下的 HITL 审批处理器。
- TuiHitlHandler(WindowBasedTextGUI) - Constructor for class com.yapcli.tui.hitl.TuiHitlHandler
- TuiSessionController - Class in com.yapcli.tui
-
Bridges TUI input to the existing Agent runtime.
- TuiSessionController(YapCliConfig, LlmClient, Agent, HitlHandler, CenterPane, StatusPane, Runnable, Runnable, Consumer<Runnable>) - Constructor for class com.yapcli.tui.TuiSessionController
- turnId() - Method in record class com.yapcli.snapshot.TurnSnapshot
-
Returns the value of the
turnIdrecord component. - TurnSnapshot - Record Class in com.yapcli.snapshot
- TurnSnapshot(String, SnapshotPhase, String, Instant, String) - Constructor for record class com.yapcli.snapshot.TurnSnapshot
-
Creates an instance of a
TurnSnapshotrecord class. - type() - Method in record class com.yapcli.agent.AgentMessage
-
Returns the value of the
typerecord component. - type() - Method in record class com.yapcli.llm.LlmClient.ContentPart
-
Returns the value of the
typerecord component. - type() - Method in record class com.yapcli.mcp.protocol.McpContent
-
Returns the value of the
typerecord component. - type() - Method in record class com.yapcli.runtime.api.RuntimeEvent
-
Returns the value of the
typerecord component. - type() - Method in record class com.yapcli.wechat.WechatCommandParser.Command
-
Returns the value of the
typerecord component. - type() - Method in record class com.yapcli.wechat.WechatMediaItem
-
Returns the value of the
typerecord component.
U
- unavailableHint() - Method in interface com.yapcli.web.SearchProvider
- unavailableHint() - Method in class com.yapcli.web.SearxngSearchProvider
- unavailableHint() - Method in class com.yapcli.web.SerpApiSearchProvider
- unavailableHint() - Method in class com.yapcli.web.ZhipuSearchProvider
- UNKNOWN - Enum constant in enum class com.yapcli.wechat.WechatCommandParser.Type
- unregisterMcpTool(String) - Method in class com.yapcli.tool.ToolRegistry
- update(StatusInfo) - Method in class com.yapcli.render.inline.BottomStatusBar
- updateMode(String) - Method in class com.yapcli.tui.pane.StatusPane
-
更新当前模式。
- updateStatus(StatusInfo) - Method in class com.yapcli.render.inline.InlineRenderer
- updateStatus(StatusInfo) - Method in class com.yapcli.render.PlainRenderer
- updateStatus(StatusInfo) - Method in interface com.yapcli.render.Renderer
-
更新底部状态栏 / StatusPane。允许频繁调用,渲染器内部自行节流。
- updateStatus(StatusInfo) - Method in class com.yapcli.tui.LanternaRenderer
- updateStatus(StatusInfo) - Method in class com.yapcli.wechat.WechatRenderer
- updateStatus(StatusInfo) - Method in class com.yapcli.wechat.WechatTerminalRenderer
- updateTokenUsage(long, long, long) - Method in class com.yapcli.tui.pane.StatusPane
-
更新 Token 使用量。
- uptime() - Method in class com.yapcli.mcp.McpServer
- uri() - Method in record class com.yapcli.mcp.mention.AtMentionParser.MentionToken
-
Returns the value of the
urirecord component. - uri() - Method in record class com.yapcli.mcp.resources.McpResourceContent
-
Returns the value of the
urirecord component. - uri() - Method in record class com.yapcli.mcp.resources.McpResourceDescriptor
-
Returns the value of the
urirecord component. - url() - Method in record class com.yapcli.web.FetchResult
-
Returns the value of the
urlrecord component. - url() - Method in record class com.yapcli.web.SearchResult
-
Returns the value of the
urlrecord component. - url() - Method in record class com.yapcli.web.WebFetcher.RawResponse
-
Returns the value of the
urlrecord component. - user(String) - Static method in record class com.yapcli.llm.LlmClient.Message
- user(List<LlmClient.ContentPart>) - Static method in record class com.yapcli.llm.LlmClient.Message
- USER - Enum constant in enum class com.yapcli.skill.Skill.Source
- userId() - Method in record class com.yapcli.wechat.WechatLoginResult
-
Returns the value of the
userIdrecord component. - userMessage(String, Path) - Static method in class com.yapcli.image.ImageReferenceParser
- userMessageBlock(String, int) - Static method in class com.yapcli.util.AnsiStyle
V
- value() - Method in enum class com.yapcli.runtime.task.TaskStatus
- valueOf(String) - Static method in enum class com.yapcli.agent.AgentBudget.ExitReason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.agent.AgentMessage.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.agent.AgentRole
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.agent.PlanExecuteAgent.PlanReviewAction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.browser.BrowserMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.hitl.ApprovalResult.Decision
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.lsp.LspSeverity
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.mcp.McpServerStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.memory.MemoryEntry.MemoryType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.plan.Task.TaskStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.plan.Task.TaskType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.prompt.PromptMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.render.RendererFactory.Mode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.runtime.task.TaskStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.skill.Skill.Source
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.snapshot.SnapshotPhase
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.yapcli.wechat.WechatCommandParser.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.yapcli.agent.AgentBudget.ExitReason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.agent.AgentMessage.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.agent.AgentRole
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.agent.PlanExecuteAgent.PlanReviewAction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.browser.BrowserMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.hitl.ApprovalResult.Decision
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.lsp.LspSeverity
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.mcp.McpServerStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.memory.MemoryEntry.MemoryType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.plan.ExecutionPlan.PlanStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.plan.Task.TaskStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.plan.Task.TaskType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.prompt.PromptMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.render.RendererFactory.Mode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.runtime.task.TaskStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.skill.Skill.Source
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.snapshot.SnapshotPhase
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.yapcli.wechat.WechatCommandParser.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variable(String) - Method in record class com.yapcli.prompt.PromptContext
- variable(String, Object) - Method in class com.yapcli.prompt.PromptContext.Builder
- variables() - Method in record class com.yapcli.prompt.PromptContext
-
Returns the value of the
variablesrecord component. - VectorStore - Class in com.yapcli.rag
-
SQLite 向量存储 + 代码关系图谱持久化
- VectorStore(String) - Constructor for class com.yapcli.rag.VectorStore
- VectorStore.CodeChunkEntry - Record Class in com.yapcli.rag
-
带向量的代码块条目
- VectorStore.IndexStats - Record Class in com.yapcli.rag
-
索引统计
- VectorStore.SearchResult - Record Class in com.yapcli.rag
-
检索结果
- VERIFICATION - Enum constant in enum class com.yapcli.plan.Task.TaskType
- version() - Method in record class com.yapcli.mcp.protocol.McpInitializeResult.ServerInfo
-
Returns the value of the
versionrecord component. - version() - Method in record class com.yapcli.skill.Skill
-
Returns the value of the
versionrecord component. - visualize() - Method in class com.yapcli.plan.ExecutionPlan
-
可视化计划
W
- WARNING - Enum constant in enum class com.yapcli.lsp.LspSeverity
- warnings() - Method in record class com.yapcli.skill.SkillFrontmatterParser.ParseResult
-
Returns the value of the
warningsrecord component. - warnings() - Method in class com.yapcli.skill.SkillRegistry
- WebFetcher - Class in com.yapcli.web
-
基础 HTTP 抓取器:拿 URL → 字节流 → 字符串。 边界: 5MB 响应体上限,超出截断(流式读,避免 OOM) 30s 整体超时(OkHttp callTimeout) 不处理 JS 渲染、不处理登录态 —— 那是第 13/14 期的事 遇到 4xx/5xx 直接抛 IOException,由调用方决定如何向用户呈现 字符集解析:优先 Content-Type charset,其次 HTML meta(Jsoup 会兜底处理), 全失败用 UTF-8。这里只负责拿到字符串,meta 嗅探在
HtmlExtractor里做。 - WebFetcher() - Constructor for class com.yapcli.web.WebFetcher
- WebFetcher(int) - Constructor for class com.yapcli.web.WebFetcher
- WebFetcher.RawResponse - Record Class in com.yapcli.web
- WechatAccount - Record Class in com.yapcli.wechat
- WechatAccount(String, String, String, String, String, String, String) - Constructor for record class com.yapcli.wechat.WechatAccount
-
Creates an instance of a
WechatAccountrecord class. - WechatAccountStore - Class in com.yapcli.wechat
- WechatAccountStore(Path) - Constructor for class com.yapcli.wechat.WechatAccountStore
- WechatAgentSession - Class in com.yapcli.wechat
- WechatAgentSession(WechatAccount, WechatMessageSender) - Constructor for class com.yapcli.wechat.WechatAgentSession
- WechatAgentSession(WechatAccount, WechatMessageSender, Renderer) - Constructor for class com.yapcli.wechat.WechatAgentSession
- WechatCommandMain - Class in com.yapcli.wechat
- WechatCommandParser - Class in com.yapcli.wechat
- WechatCommandParser.Command - Record Class in com.yapcli.wechat
- WechatCommandParser.Type - Enum Class in com.yapcli.wechat
- WechatLoginResult - Record Class in com.yapcli.wechat
- WechatLoginResult(boolean, boolean, String, String, String, String, String, String) - Constructor for record class com.yapcli.wechat.WechatLoginResult
-
Creates an instance of a
WechatLoginResultrecord class. - WechatMediaItem - Record Class in com.yapcli.wechat
- WechatMediaItem(String, String, String, String, String) - Constructor for record class com.yapcli.wechat.WechatMediaItem
-
Creates an instance of a
WechatMediaItemrecord class. - WechatMessage - Record Class in com.yapcli.wechat
- WechatMessage(String, String, String, String, List<WechatMediaItem>) - Constructor for record class com.yapcli.wechat.WechatMessage
-
Creates an instance of a
WechatMessagerecord class. - WechatMessageLoop - Class in com.yapcli.wechat
- WechatMessageLoop(IlinkClient, WechatAccountStore, WechatAccount) - Constructor for class com.yapcli.wechat.WechatMessageLoop
- WechatMessageLoop(IlinkClient, WechatAccountStore, WechatAccount, Renderer) - Constructor for class com.yapcli.wechat.WechatMessageLoop
- WechatMessageSender - Interface in com.yapcli.wechat
- WechatPaths - Class in com.yapcli.wechat
- WechatPolicyConfig - Record Class in com.yapcli.wechat
- WechatPolicyConfig(Path, List<String>, List<String>, int, int) - Constructor for record class com.yapcli.wechat.WechatPolicyConfig
-
Creates an instance of a
WechatPolicyConfigrecord class. - WechatPolicyDecider - Class in com.yapcli.wechat
- WechatPolicyDecider(WechatPolicyConfig) - Constructor for class com.yapcli.wechat.WechatPolicyDecider
- WechatPolicyDecision - Record Class in com.yapcli.wechat
- WechatPolicyDecision(boolean, String) - Constructor for record class com.yapcli.wechat.WechatPolicyDecision
-
Creates an instance of a
WechatPolicyDecisionrecord class. - WechatQrLogin - Record Class in com.yapcli.wechat
- WechatQrLogin(String, String) - Constructor for record class com.yapcli.wechat.WechatQrLogin
-
Creates an instance of a
WechatQrLoginrecord class. - WechatRenderer - Class in com.yapcli.wechat
- WechatRenderer(WechatMessageSender) - Constructor for class com.yapcli.wechat.WechatRenderer
- WechatTerminalRenderer - Class in com.yapcli.wechat
- WechatTerminalRenderer(Renderer, WechatMessageSender) - Constructor for class com.yapcli.wechat.WechatTerminalRenderer
- WechatToolRegistry - Class in com.yapcli.wechat
- WechatToolRegistry(WechatPolicyDecider) - Constructor for class com.yapcli.wechat.WechatToolRegistry
- WechatUpdate - Record Class in com.yapcli.wechat
- WechatUpdate(int, String, String, Long, List<WechatMessage>) - Constructor for record class com.yapcli.wechat.WechatUpdate
-
Creates an instance of a
WechatUpdaterecord class. - window() - Method in class com.yapcli.tui.LanternaRenderer
-
返回底层 LanternaWindow,方便 Main 启动 GUI 主循环。
- withBoundUserId(String) - Method in record class com.yapcli.wechat.WechatAccount
- withEnabled(boolean) - Method in record class com.yapcli.snapshot.SnapshotConfig
- withEnvironment(String, String) - Method in record class com.yapcli.render.StatusInfo
- WITHIN_BUDGET - Enum constant in enum class com.yapcli.agent.AgentBudget.ExitReason
- withoutImageContent() - Method in record class com.yapcli.llm.LlmClient.Message
- withoutImageContent(String) - Method in record class com.yapcli.llm.LlmClient.Message
- withoutReasoningContent() - Method in record class com.yapcli.llm.LlmClient.Message
- withSyncBuf(String) - Method in record class com.yapcli.wechat.WechatAccount
- withWorkspace(String) - Method in record class com.yapcli.wechat.WechatAccount
- WORKER - Enum constant in enum class com.yapcli.agent.AgentRole
- workspace() - Method in record class com.yapcli.wechat.WechatAccount
-
Returns the value of the
workspacerecord component. - workspaceRoot() - Method in record class com.yapcli.wechat.WechatPolicyConfig
-
Returns the value of the
workspaceRootrecord component.
X
- XfyunMaaSClient - Class in com.yapcli.llm
- XfyunMaaSClient(String, String, String) - Constructor for class com.yapcli.llm.XfyunMaaSClient
- XfyunMaaSClient(String, String, String, String) - Constructor for class com.yapcli.llm.XfyunMaaSClient
Y
- YapCliConfig - Class in com.yapcli.config
- YapCliConfig() - Constructor for class com.yapcli.config.YapCliConfig
- YapCliConfig.ProviderConfig - Class in com.yapcli.config
Z
- ZhipuSearchProvider - Class in com.yapcli.web
-
智谱 Web Search provider。
- ZhipuSearchProvider(String) - Constructor for class com.yapcli.web.ZhipuSearchProvider
- ZhipuSearchProvider(String, String) - Constructor for class com.yapcli.web.ZhipuSearchProvider
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form