(args)
| 298 | userInvocable: false, |
| 299 | isEnabled: isKeybindingCustomizationEnabled, |
| 300 | async getPromptForCommand(args) { |
| 301 | // Generate reference tables dynamically from source-of-truth arrays |
| 302 | const contextsTable = generateContextsTable() |
| 303 | const actionsTable = generateActionsTable() |
| 304 | const reservedShortcuts = generateReservedShortcuts() |
| 305 | |
| 306 | const sections = [ |
| 307 | SECTION_INTRO, |
| 308 | SECTION_FILE_FORMAT, |
| 309 | SECTION_KEYSTROKE_SYNTAX, |
| 310 | SECTION_UNBINDING, |
| 311 | SECTION_INTERACTION, |
| 312 | SECTION_COMMON_PATTERNS, |
| 313 | SECTION_BEHAVIORAL_RULES, |
| 314 | SECTION_DOCTOR, |
| 315 | `## Reserved Shortcuts\n\n${reservedShortcuts}`, |
| 316 | `## Available Contexts\n\n${contextsTable}`, |
| 317 | `## Available Actions\n\n${actionsTable}`, |
| 318 | ] |
| 319 | |
| 320 | if (args) { |
| 321 | sections.push(`## User Request\n\n${args}`) |
| 322 | } |
| 323 | |
| 324 | return [{ type: 'text', text: sections.join('\n\n') }] |
| 325 | }, |
| 326 | }) |
| 327 | } |
| 328 |
nothing calls this directly
no test coverage detected