This commit is contained in:
ADAMOU ABUBAKR 2026-07-14 18:33:12 -05:00 committed by GitHub
commit 74d0d6dc02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 74 additions and 2 deletions

BIN
.gitignore vendored

Binary file not shown.

51
hosts/grok-build.ts Normal file
View File

@ -0,0 +1,51 @@
import type { HostConfig } from '../scripts/host-config';
const grokBuild: HostConfig = {
name: 'grok-build',
displayName: 'Grok Build',
cliCommand: 'grok',
cliAliases: ['grok-build'],
globalRoot: '.grok/skills/gstack',
localSkillRoot: '.grok/skills/gstack',
hostSubdir: '.grok',
usesEnvVars: true,
frontmatter: {
mode: 'allowlist',
keepFields: ['name', 'description', 'triggers'],
descriptionLimit: null,
},
generation: {
generateMetadata: false,
skipSkills: ['codex'],
},
pathRewrites: [
{ from: '~/.claude/skills/gstack', to: '~/.grok/skills/gstack' },
{ from: '.claude/skills/gstack', to: '.grok/skills/gstack' },
{ from: '.claude/skills', to: '.grok/skills' },
{ from: '~/.claude/skills', to: '~/.grok/skills' },
],
toolRewrites: [
{ from: 'browser tool', to: 'subagent browser tool' },
{ from: 'Playwright', to: 'Grok subagent browser' },
],
runtimeRoot: {
globalSymlinks: ['bin', 'browse/dist', 'gstack-upgrade'],
globalFiles: {},
},
install: {
prefixable: false,
linkingStrategy: 'symlink-generated',
},
learningsMode: 'basic',
};
export default grokBuild;

View File

@ -15,10 +15,11 @@ import slate from './slate';
import cursor from './cursor';
import openclaw from './openclaw';
import hermes from './hermes';
import grokBuild from './grok-build';
import gbrain from './gbrain';
/** 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, grokBuild];
/** 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, grokBuild };

View File

@ -0,0 +1,20 @@
\---
name: grok-build-ship
description: Ship changes for grok-build host
triggers: \[]
\---
\# Ship for Grok Build
Golden fixture for the grok-build host.
This file confirms the host is properly registered.