mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-13 00:19:03 +02:00
feat: model taxonomy gains gpt-5.6-sol + per-host generation defaults
Adds 'gpt-5.6-sol' to the model taxonomy with exact-match-only resolution (Terra/Luna/suffixed IDs deliberately fall back to generic gpt) and replaces the hardcoded 'claude' generation default with a validated HostConfig.defaultModel: codex renders the gpt profile when --model is absent, every other host keeps claude. Codex ship golden regenerated accordingly; ADDING_A_HOST documents the new field.
This commit is contained in:
@@ -60,6 +60,7 @@ That expands to the full `HostConfig` with these defaults:
|
||||
|
||||
- `cliCommand: 'myhost'` (the name; binary for `command -v` detection)
|
||||
- `cliAliases: []`
|
||||
- `defaultModel: 'claude'` (model overlay used when generation gets no explicit `--model`; codex overrides to `'gpt'`)
|
||||
- `globalRoot` / `localSkillRoot`: `.myhost/skills/gstack`, `hostSubdir`: `.myhost`
|
||||
- `usesEnvVars: true` (false only for Claude, which uses literal `~` paths)
|
||||
- `frontmatter`: allowlist keeping `name` + `description`, no description limit
|
||||
@@ -173,6 +174,7 @@ Key fields:
|
||||
The `validateHostConfig()` function in `scripts/host-config.ts` checks:
|
||||
- Name: lowercase alphanumeric with hyphens
|
||||
- CLI command: alphanumeric with hyphens/underscores
|
||||
- `defaultModel`: must be a known model family from `scripts/models.ts` `ALL_MODEL_NAMES`
|
||||
- Paths: safe characters only (alphanumeric, `.`, `/`, `$`, `{}`, `~`, `-`, `_`)
|
||||
- No duplicate names, hostSubdirs, or globalRoots across configs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user