import orchestrateNotice from "../prompts/system/orchestrate-notice.md" with { type: "text" }; import { createGradientHighlighter, type KeywordHighlighter } from "./gradient-highlight"; import { keywordInProse } from "./markdown-prose"; /** * "orchestrate" keyword support. * * Typing the standalone word in the input editor paints it with a cool * teal→violet gradient ({@link highlightOrchestrate}); submitting a message that * mentions it appends a hidden {@link ORCHESTRATE_NOTICE} that switches the model * into multi-agent orchestration mode. Matching is whitespace-delimited and * case-sensitive (lowercase only), so "orchestrated", "Orchestrate", or a path * like "orchestrate.ts" never trigger either behavior. Replaces the former * `/orchestrate` slash command. */ // Detection: lowercase keyword flanked by whitespace or a string edge. Non-global so `.test` stays stateless. const ORCHESTRATE_WORD = /(? 150 + t * 130, });