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

-14
View File
@@ -128,20 +128,6 @@ async function main(): Promise<void> {
export class WebContentsView {}
`
}))
pluginBuild.onResolve({ filter: /^(?:\.\/|\.\.\/)omp$/ }, () => ({ path: 'omp', namespace: 'mock-omp' }))
pluginBuild.onLoad({ filter: /.*/, namespace: 'mock-omp' }, () => ({
loader: 'js',
contents: `
export class OmpKernel {
constructor() {}
prompt() { return Promise.resolve({ type: 'response', success: true }); }
abort() { return Promise.resolve({ type: 'response', success: true }); }
dispose() {}
}
export const detectOmpPath = () => null;
export const getOmpInfo = () => ({ available: false, exePath: null, profile: 'ycode', model: null });
`
}))
}
}
]