refactor(agent): replace OMP with Claude Code kernel

This commit is contained in:
xiaohan.yuan committed 2026-10-20 14:47:56 +08:00
1 parent 0fb2226f8c
commit 9a1f182397
232 files changed
+2561 -25564

No files matched your search

+1 -5
View File
@@ -64,14 +64,10 @@ try {
export const contextBridge = {exposeInMainWorld:(_name,api)=>state.api=api};
export const dialog = {showOpenDialog:async()=>{state.dialogCalls++;return state.nextDialog()}};
export const shell = {openPath:async()=>''};
export const powerSaveBlocker = {isStarted:()=>false,start:()=>1,stop:()=>{}};
export class BrowserWindow { static getAllWindows(){return [{webContents:{send:()=>state.changes++}}]} }
export class WebContentsView {}
` }))
plugin.onResolve({ filter: /^(?:\.\/|\.\.\/)omp$/ }, () => ({ path: 'omp', namespace: 'attach-omp' }))
plugin.onLoad({ filter: /.*/, namespace: 'attach-omp' }, () => ({ loader: 'js', contents: `
export class OmpKernel {}
export const detectOmpPath=()=>null,getOmpInfo=()=>({available:false,exePath:null,profile:'ycode',model:null});
` }))
} }]
})
const fixture = await import(pathToFileURL(outfile).href) as {