mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
feat(skills): add bundled /review skill for out-of-the-box code review (#2348)
feat(skills): add bundled /review skill for out-of-the-box code review
This commit is contained in:
parent
f1ee4638b7
commit
1359563f45
11 changed files with 525 additions and 27 deletions
|
|
@ -51,6 +51,27 @@ if (existsSync(coreVendorDir)) {
|
|||
console.warn(`Warning: Vendor directory not found at ${coreVendorDir}`);
|
||||
}
|
||||
|
||||
// Copy bundled skills (e.g. /review) so they are available at runtime.
|
||||
// In the esbuild bundle, import.meta.url resolves to dist/cli.js, so
|
||||
// SkillManager looks for bundled skills at dist/bundled/.
|
||||
const bundledSkillsDir = join(
|
||||
root,
|
||||
'packages',
|
||||
'core',
|
||||
'src',
|
||||
'skills',
|
||||
'bundled',
|
||||
);
|
||||
if (existsSync(bundledSkillsDir)) {
|
||||
const destBundledDir = join(distDir, 'bundled');
|
||||
copyRecursiveSync(bundledSkillsDir, destBundledDir);
|
||||
console.log('Copied bundled skills to dist/bundled/');
|
||||
} else {
|
||||
console.warn(
|
||||
`Warning: Bundled skills directory not found at ${bundledSkillsDir}`,
|
||||
);
|
||||
}
|
||||
|
||||
console.log('\n✅ All bundle assets copied to dist/');
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue