/** * Config.toml generator/merger for roblox-ai-os-creator-skills * Merges RCS MCP server entries and feature flags into existing config.toml * * TOML structure reminder: bare key=value pairs after a [table] header belong * to that table. Top-level (root-table) keys MUST appear before the first * [table] header. This generator therefore splits its output into: * 1. Top-level keys (notify, model_reasoning_effort, developer_instructions) * 2. [features] flags * 3. [table] sections (shell_environment_policy.set, mcp_servers, tui) */ import type { UnifiedMcpRegistryServer } from "./mcp-registry.js"; import type { HudPreset } from "../hud/types.js"; interface MergeOptions { includeTui?: boolean; modelOverride?: string; sharedMcpServers?: UnifiedMcpRegistryServer[]; sharedMcpRegistrySource?: string; verbose?: boolean; statusLinePreset?: HudPreset; forceStatusLinePreset?: boolean; } export interface ModelContextRecommendation { model: string; modelContextWindow: number; modelAutoCompactTokenLimit: number; } export declare const DEFAULT_SETUP_MODEL = "gpt-5.5"; export declare const DEFAULT_SETUP_MODEL_CONTEXT_WINDOW = 250000; export declare const DEFAULT_SETUP_MODEL_AUTO_COMPACT_TOKEN_LIMIT = 200000; export declare function getModelContextRecommendation(model: string): ModelContextRecommendation | null; export declare const RCS_DEVELOPER_INSTRUCTIONS = "You have RCS installed for Roblox AI OS (Creator) Skills. AGENTS.md is the orchestration brain and main control surface. Follow AGENTS.md for creator workflow routing, $name workflow invocation, and role-specialized subagents. The canonical creator workflows are $brief, $blueprint, $forge, $crew, and $autoforge. Lower-level runtime modes may still exist internally, but public execution should stay creator-facing, Roblox-native, disciplined, and evidence-first. Native subagents live in .codex/agents and may handle independent parallel subtasks within one Codex session or team pane. Skills load from .codex/skills, not native-agent TOMLs. Treat installed prompts as narrower execution surfaces under AGENTS.md authority."; export declare const STATUS_LINE_PRESETS: Record; export declare const DEFAULT_STATUS_LINE_PRESET: HudPreset; export declare function statusLineForPreset(preset?: HudPreset): string; export declare function stripCodexModelAvailabilityNux(config: string): string; export declare function cleanCodexModelAvailabilityNuxIfNeeded(configPath: string): Promise; export declare function hasLegacyRcsTeamRunTable(config: string): boolean; export declare function getRootModelName(config: string): string | undefined; export declare function stripRcsSeededBehavioralDefaults(config: string): string; /** * Remove any existing RCS-owned top-level keys so we can re-insert them * cleanly. Also removes the comment line that precedes them. */ export declare function stripRcsSeededTopLevelKeys(config: string): string; export declare function upsertCodexHooksFeatureFlag(config: string): string; /** * Remove RCS-owned feature flags from the [features] section. * If the section becomes empty after removal, remove the section header too. */ export declare function stripRcsSeededFeatureFlags(config: string): string; export declare function stripRcsSeededEnvSettings(config: string): string; export declare function stripExistingRcsSeededBlocks(config: string): { cleaned: string; removed: number; }; export declare function stripExistingSharedMcpRegistryBlock(config: string): { cleaned: string; removed: number; }; /** * Merge RCS config into existing config.toml * Preserves existing user settings, appends RCS block if not present. * * Layout: * 1. RCS top-level keys (notify, model_reasoning_effort, developer_instructions) * 2. [features] with multi_agent + child_agents_md * 3. [shell_environment_policy.set] with defaulted explore-routing opt-in * 4. … user sections … * 5. RCS [table] sections (mcp_servers, tui) */ export declare function buildMergedConfig(existingConfig: string, pkgRoot: string, options?: MergeOptions): string; /** * Detect and repair upgrade-era managed config incompatibilities in config.toml. * * After an rcs version upgrade the OLD setup code (still loaded in memory) * may leave a config with duplicate [tui] sections or the retired * [mcp_servers.rcs_team_run] table. Codex rejects duplicate tables and newer * RCS builds no longer ship the team MCP entrypoint, so we repair both before * the CLI is spawned. * * Returns `true` if a repair was performed. */ export declare function repairConfigIfNeeded(configPath: string, pkgRoot: string, options?: MergeOptions): Promise; export declare function mergeConfig(configPath: string, pkgRoot: string, options?: MergeOptions): Promise; export {}; //# sourceMappingURL=generator.d.ts.map