feat: add Copilot host configuration and update .gitignore

This commit is contained in:
suryakandukuri 2026-05-19 08:34:53 +05:30
parent 026751ea20
commit 807926b320
2 changed files with 47 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@ bin/gstack-global-discover
.opencode/
.slate/
.cursor/
.copilot/
.openclaw/
.hermes/
.gbrain/

46
hosts/copilot.ts Normal file
View File

@ -0,0 +1,46 @@
import type { HostConfig } from '../scripts/host-config';
const copilot: HostConfig = {
name: 'copilot',
displayName: 'GitHub Copilot',
cliCommand: 'copilot',
cliAliases: ['gh-copilot', 'copilot-cli'],
globalRoot: '.copilot/skills/gstack',
localSkillRoot: '.copilot/skills/gstack',
hostSubdir: '.copilot',
usesEnvVars: true,
frontmatter: {
mode: 'allowlist',
keepFields: ['name', 'description', 'triggers', 'platforms'],
descriptionLimit: 1024,
descriptionLimitBehavior: 'truncate',
},
generation: {
generateMetadata: false,
metadataFormat: null,
skipSkills: ['codex'],
},
pathRewrites: [
{ from: '~/.claude/skills/gstack', to: '~/.copilot/skills/gstack' },
{ from: '.claude/skills/gstack', to: '.copilot/skills/gstack' },
{ from: '.claude/skills', to: '.copilot/skills' },
],
runtimeRoot: {
globalSymlinks: ['bin', 'browse/dist', 'browse/bin', 'gstack-upgrade', 'ETHOS.md'],
globalFiles: { 'review': ['checklist.md', 'TODOS-format.md'] },
},
install: {
prefixable: false,
linkingStrategy: 'symlink-generated',
},
learningsMode: 'basic',
};
export default copilot;