mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-25 10:47:19 -07:00
fix(a2a-server): Implement default policy loading for parity with CLI (#27073)
# Conflicts: # packages/a2a-server/src/config/config.test.ts
This commit is contained in:
committed by
gemini-cli-robot
parent
20495d6007
commit
37b17348ac
@@ -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