- Extract named GeminiMcpServer type (eliminates NonNullable indexing) - Deep-merge mcpServers in settings.json (preserves existing entries) - Warn when existing settings.json cannot be parsed - Add test for uniqueName dedup (agent/skill name collision) - Add test for TOML triple-quote escaping Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
661 B
TypeScript
30 lines
661 B
TypeScript
export type GeminiSkill = {
|
|
name: string
|
|
content: string // Full SKILL.md with YAML frontmatter
|
|
}
|
|
|
|
export type GeminiSkillDir = {
|
|
name: string
|
|
sourceDir: string
|
|
}
|
|
|
|
export type GeminiCommand = {
|
|
name: string // e.g. "plan" or "workflows/plan"
|
|
content: string // Full TOML content
|
|
}
|
|
|
|
export type GeminiMcpServer = {
|
|
command?: string
|
|
args?: string[]
|
|
env?: Record<string, string>
|
|
url?: string
|
|
headers?: Record<string, string>
|
|
}
|
|
|
|
export type GeminiBundle = {
|
|
generatedSkills: GeminiSkill[] // From agents
|
|
skillDirs: GeminiSkillDir[] // From skills (pass-through)
|
|
commands: GeminiCommand[]
|
|
mcpServers?: Record<string, GeminiMcpServer>
|
|
}
|