mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-09 10:18:32 +01:00
Use Claude Code from Codex and Codex from other supported hosts, with shared invocation rendering, positive gate validation and per-phase provenance. Rename /claude to /claude-code, repair managed shared and copied installations safely, and generate native Kiro skills. Add installed-workflow, failure-injection and live cross-harness regression coverage.
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { defineHost } from './define-host';
|
|
|
|
const claude = defineHost({
|
|
name: 'claude',
|
|
displayName: 'Claude Code',
|
|
|
|
usesEnvVars: false, // primary host — literal ~ paths, no $GSTACK_ROOT env vars
|
|
|
|
frontmatter: {
|
|
mode: 'denylist',
|
|
// interactive + benefits-from are gen-time inputs (buildContext reads them
|
|
// from the .tmpl); no runtime or test reader consumes them from the
|
|
// GENERATED file (verified: e2e-harness-audit reads .tmpl; benefits-from
|
|
// tests assert rendered prose; the host reads name/description/
|
|
// allowed-tools/hooks; bin/gstack-brain-context-load reads gbrain: — which
|
|
// is why gbrain and hooks are NOT stripped). Stripping them trims the
|
|
// always-on frontmatter catalog every session loads.
|
|
stripFields: ['sensitive', 'voice-triggers', 'interactive', 'benefits-from'],
|
|
descriptionLimit: null,
|
|
},
|
|
|
|
generation: {
|
|
generateMetadata: false,
|
|
skipSkills: ['claude-code'], // An outside reviewer must use a different harness.
|
|
},
|
|
|
|
pathRewrites: [], // Claude is the primary host — no rewrites needed
|
|
toolRewrites: {},
|
|
|
|
install: {
|
|
linkingStrategy: 'real-dir-symlink',
|
|
},
|
|
|
|
coAuthorTrailer: 'Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>',
|
|
learningsMode: 'full',
|
|
});
|
|
|
|
export default claude;
|