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

@@ -0,0 +1,26 @@
import { build } from 'esbuild'
await build({
entryPoints: ['scripts/claude-kernel-integration.ts'],
outfile: '.tmp/claude-kernel-integration.mjs',
bundle: true,
platform: 'node',
format: 'esm',
external: ['@anthropic-ai/claude-agent-sdk'],
logLevel: 'warning',
plugins: [{
name: 'claude-kernel-electron-stub',
setup(plugin) {
plugin.onResolve({ filter: /^electron$/ }, () => ({ path: 'electron', namespace: 'claude-test' }))
plugin.onLoad({ filter: /.*/, namespace: 'claude-test' }, () => ({
loader: 'js',
contents: `
export const app = {
getPath: (name) => name === 'userData' ? process.env.CLAUDE_TEST_USER_DATA : process.cwd(),
getAppPath: () => process.cwd()
};
`
}))
}
}]
})