refactor(agent): replace OMP with Claude Code kernel
This commit is contained in:
1 parent
0fb2226f8c
commit
9a1f182397
232 files changed
+2561
-25564
No files matched your search
@@ -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 });
|
||||
`
|
||||
}))
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user