mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-21 15:55:50 +00:00
chore: 移除 packages/ 下多处未引用的导出
涉及 11 个 workspace 包文件,每处均为独立的 unreferenced export 删除或 export 关键字冗余移除: - @ant/ink/core/termio/csi.ts(eraseLine) - acp-link/manager/types.ts、acp-link/ws-message.ts - builtin-tools/AgentTool/agentMemory.ts、BashTool/bashSecurity.ts、BashTool/sedEditParser.ts - builtin-tools/ConfigTool/supportedSettings.ts、FileEditTool/utils.ts - remote-control-server/store.ts、transport/event-bus.ts、types/messages.ts Co-Authored-By: glm-5.2 <zai-org@claude-code-best.win>
This commit is contained in:
@@ -405,13 +405,6 @@ export function storeListAcpAgentsByChannelGroup(
|
||||
)
|
||||
}
|
||||
|
||||
/** List online ACP agents */
|
||||
export function storeListOnlineAcpAgents(): EnvironmentRecord[] {
|
||||
return [...environments.values()].filter(
|
||||
e => e.workerType === 'acp' && e.status === 'active',
|
||||
)
|
||||
}
|
||||
|
||||
/** Mark an ACP agent as offline */
|
||||
export function storeMarkAcpAgentOffline(id: string): boolean {
|
||||
const rec = environments.get(id)
|
||||
|
||||
@@ -106,11 +106,3 @@ export function getAcpEventBus(channelGroupId: string): EventBus {
|
||||
}
|
||||
return bus
|
||||
}
|
||||
|
||||
export function removeAcpEventBus(channelGroupId: string) {
|
||||
const bus = acpBuses.get(channelGroupId)
|
||||
if (bus) {
|
||||
bus.close()
|
||||
acpBuses.delete(channelGroupId)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,18 +33,6 @@ export interface ControlRequest extends SDKMessage {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
export type SessionEventType =
|
||||
| 'user'
|
||||
| 'assistant'
|
||||
| 'automation_state'
|
||||
| 'permission_request'
|
||||
| 'permission_response'
|
||||
| 'control_request'
|
||||
| 'tool_use'
|
||||
| 'tool_result'
|
||||
| 'status'
|
||||
| 'error'
|
||||
|
||||
// --- Normalized Event Payloads (SSE contract) ---
|
||||
|
||||
export interface NormalizedEventPayload {
|
||||
|
||||
Reference in New Issue
Block a user