mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-11 11:57:03 -07:00
fix(a2a-server): Implement default policy loading for parity with CLI (#27073)
This commit is contained in:
@@ -54,6 +54,18 @@ for (const file of policyFiles) {
|
||||
|
||||
console.log(`Copied ${policyFiles.length} policy files to bundle/policies/`);
|
||||
|
||||
// Also copy policies to a2a-server dist directory for bundled execution
|
||||
const a2aPolicyDir = join(root, 'packages/a2a-server/dist/policies');
|
||||
if (!existsSync(a2aPolicyDir)) {
|
||||
mkdirSync(a2aPolicyDir, { recursive: true });
|
||||
}
|
||||
for (const file of policyFiles) {
|
||||
copyFileSync(join(root, file), join(a2aPolicyDir, basename(file)));
|
||||
}
|
||||
console.log(
|
||||
`Copied ${policyFiles.length} policy files to packages/a2a-server/dist/policies/`,
|
||||
);
|
||||
|
||||
// 3. Copy Documentation (docs/)
|
||||
const docsSrc = join(root, 'docs');
|
||||
const docsDest = join(bundleDir, 'docs');
|
||||
|
||||
Reference in New Issue
Block a user