feat: 完成第二版类型清理

This commit is contained in:
claude-code-best
2026-03-31 23:03:47 +08:00
parent 4c0a655a1c
commit d7a729ca68
604 changed files with 595 additions and 953 deletions

View File

@@ -1,12 +1,37 @@
// Auto-generated stub — replace with real implementation
export {};
export const isCachedMicrocompactEnabled: any = (() => {}) as any;
export const isModelSupportedForCacheEditing: any = (() => {}) as any;
export const getCachedMCConfig: any = (() => {}) as any;
export const createCachedMCState: any = (() => {}) as any;
export const markToolsSentToAPI: any = (() => {}) as any;
export const resetCachedMCState: any = (() => {}) as any;
export const registerToolResult: any = (() => {}) as any;
export const registerToolMessage: any = (() => {}) as any;
export const getToolResultsToDelete: any = (() => {}) as any;
export const createCacheEditsBlock: any = (() => {}) as any;
export type CachedMCState = {
registeredTools: Set<string>
toolOrder: string[]
deletedRefs: Set<string>
pinnedEdits: PinnedCacheEdits[]
toolsSentToAPI: boolean
}
export type CacheEditsBlock = {
type: 'cache_edits'
edits: Array<{ type: string; tool_use_id: string }>
}
export type PinnedCacheEdits = {
userMessageIndex: number
block: CacheEditsBlock
}
export const isCachedMicrocompactEnabled: () => boolean = () => false;
export const isModelSupportedForCacheEditing: (model: string) => boolean = () => false;
export const getCachedMCConfig: () => { triggerThreshold: number; keepRecent: number } = () => ({ triggerThreshold: 0, keepRecent: 0 });
export const createCachedMCState: () => CachedMCState = () => ({
registeredTools: new Set(),
toolOrder: [],
deletedRefs: new Set(),
pinnedEdits: [],
toolsSentToAPI: false,
});
export const markToolsSentToAPI: (state: CachedMCState) => void = () => {};
export const resetCachedMCState: (state: CachedMCState) => void = () => {};
export const registerToolResult: (state: CachedMCState, toolId: string) => void = () => {};
export const registerToolMessage: (state: CachedMCState, groupIds: string[]) => void = () => {};
export const getToolResultsToDelete: (state: CachedMCState) => string[] = () => [];
export const createCacheEditsBlock: (state: CachedMCState, toolIds: string[]) => CacheEditsBlock | null = () => null;