mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-07 05:56:41 +02:00
ae7dd311f2
Extract all hardcoded host-specific values from gen-skill-docs.ts, types.ts, preamble.ts, review.ts, and setup into typed HostConfig objects. Each host is a single file in hosts/ with its paths, frontmatter rules, path/tool rewrites, runtime root manifest, and install behavior. hosts/index.ts exports all configs, derives the Host type, and provides resolveHostArg() for CLI alias handling (e.g., 'agents' -> 'codex', 'droid' -> 'factory'). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import type { HostConfig } from '../scripts/host-config';
|
|
|
|
const kiro: HostConfig = {
|
|
name: 'kiro',
|
|
displayName: 'Kiro',
|
|
cliCommand: 'kiro-cli',
|
|
cliAliases: [],
|
|
|
|
globalRoot: '.kiro/skills/gstack',
|
|
localSkillRoot: '.kiro/skills/gstack',
|
|
hostSubdir: '.kiro',
|
|
usesEnvVars: true,
|
|
|
|
frontmatter: {
|
|
mode: 'allowlist',
|
|
keepFields: ['name', 'description'],
|
|
descriptionLimit: null,
|
|
},
|
|
|
|
generation: {
|
|
generateMetadata: false,
|
|
skipSkills: ['codex'],
|
|
},
|
|
|
|
pathRewrites: [
|
|
{ from: '~/.claude/skills/gstack', to: '~/.kiro/skills/gstack' },
|
|
{ from: '.claude/skills/gstack', to: '.kiro/skills/gstack' },
|
|
{ from: '.claude/skills', to: '.kiro/skills' },
|
|
{ from: '~/.codex/skills/gstack', to: '~/.kiro/skills/gstack' },
|
|
{ from: '.codex/skills', to: '.kiro/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 kiro;
|