mirror of https://github.com/garrytan/gstack.git
Merge dfad0f1fe5 into 2beb636f7c
This commit is contained in:
commit
6e2fc8ae69
|
|
@ -38,6 +38,7 @@ extension/lib/xterm-addon-fit.js
|
|||
.env.*
|
||||
!.env.example
|
||||
supabase/.temp/
|
||||
.copilot/
|
||||
|
||||
# Throughput analysis — local-only, regenerate via scripts/garry-output-comparison.ts
|
||||
docs/throughput-*.json
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ These are conversational skills. Your OpenClaw agent runs them directly via chat
|
|||
|
||||
### Other AI Agents
|
||||
|
||||
gstack works on 10 AI coding agents, not just Claude. Setup auto-detects which
|
||||
gstack works on 11 AI coding agents, not just Claude. Setup auto-detects which
|
||||
agents you have installed:
|
||||
|
||||
```bash
|
||||
|
|
@ -120,6 +120,7 @@ Or target a specific agent with `./setup --host <name>`:
|
|||
| Slate | `--host slate` | `~/.slate/skills/gstack-*/` |
|
||||
| Kiro | `--host kiro` | `~/.kiro/skills/gstack-*/` |
|
||||
| Hermes | `--host hermes` | `~/.hermes/skills/gstack-*/` |
|
||||
| GitHub Copilot | `--host copilot` | `~/.copilot/skills/gstack-*/` |
|
||||
| GBrain (mod) | `--host gbrain` | `~/.gbrain/skills/gstack-*/` |
|
||||
|
||||
**Want to add support for another agent?** See [docs/ADDING_A_HOST.md](docs/ADDING_A_HOST.md).
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -16,9 +16,10 @@ import cursor from './cursor';
|
|||
import openclaw from './openclaw';
|
||||
import hermes from './hermes';
|
||||
import gbrain from './gbrain';
|
||||
import copilot from './copilot';
|
||||
|
||||
/** All registered host configs. Add new hosts here. */
|
||||
export const ALL_HOST_CONFIGS: HostConfig[] = [claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain];
|
||||
export const ALL_HOST_CONFIGS: HostConfig[] = [claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain, copilot];
|
||||
|
||||
/** Map from host name to config. */
|
||||
export const HOST_CONFIG_MAP: Record<string, HostConfig> = Object.fromEntries(
|
||||
|
|
@ -65,4 +66,4 @@ export function getExternalHosts(): HostConfig[] {
|
|||
}
|
||||
|
||||
// Re-export individual configs for direct import
|
||||
export { claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain };
|
||||
export { claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain, copilot };
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const ROOT = path.resolve(import.meta.dir, '..');
|
|||
|
||||
describe('hosts/index.ts', () => {
|
||||
test('ALL_HOST_CONFIGS has 10 hosts', () => {
|
||||
expect(ALL_HOST_CONFIGS.length).toBe(10);
|
||||
expect(ALL_HOST_CONFIGS.length).toBe(11);
|
||||
});
|
||||
|
||||
test('ALL_HOST_NAMES matches config names', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue