MCPcopy Create free account
hub / github.com/echoVic/blade-code / ensureReady

Method ensureReady

src/agent/ContextComponent.ts:397–405  ·  view source on GitHub ↗

* 确保组件已准备就绪

()

Source from the content-addressed store, hash-verified

395 * 确保组件已准备就绪
396 */
397 private ensureReady(): void {
398 if (!this.isReady || !this.contextManager) {
399 throw new Error('上下文组件未初始化或已被禁用');
400 }
401
402 if (!this.currentSessionId) {
403 throw new Error('没有活动会话,请先创建或加载会话');
404 }
405 }
406
407 /**
408 * 记录日志

Callers 12

addUserMessageMethod · 0.95
addAssistantMessageMethod · 0.95
addSystemMessageMethod · 0.95
addToolCallMethod · 0.95
updateToolStateMethod · 0.95
updateWorkspaceMethod · 0.95
getFormattedContextMethod · 0.95
getContextForPromptMethod · 0.95
searchSessionsMethod · 0.95
getCachedToolResultMethod · 0.95
getStatsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected