MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / CiY

Function CiY

package/cli.js:8306–8306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83043. Consider launching the ${Gx1} subagent to understand the relevant Claude Code features
83054. Explain what you found in plain language
83065. Suggest concrete fixes or next steps
8307`}]}})}var Wl8=20,hiY=65536;var h65=y(()=>{Tx1();U1();_8();y8();U7();WT()});var xA7,S65,IA7,SiY,Wnj;var C65=y(()=>{x7();xA7=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],S65={Global:"Active everywhere, regardless of focus",Chat:"When the chat input is focused",Autocomplete:"When autocomplete menu is visible",Confirmation:"When a confirmation/permission dialog is shown",Help:"When the help overlay is open",Transcript:"When viewing the transcript",HistorySearch:"When searching command history (ctrl+r)",Task:"When a task/agent is running in the foreground",ThemePicker:"When the theme picker is open",Settings:"When the settings menu is open",Tabs:"When tab navigation is active",Attachments:"When navigating image attachments in a select dialog",Footer:"When footer indicators are focused",MessageSelector:"When the message selector (rewind) is open",DiffDialog:"When the diff dialog is open",ModelPicker:"When the model picker is open",Select:"When a select/list component is focused",Plugin:"When the plugin dialog is open"},IA7=["app:interrupt","app:exit","app:toggleTodos","app:toggleTranscript","app:toggleBrief","app:toggleTeammatePreview","app:toggleTerminal","app:redraw","app:globalSearch","app:quickOpen","history:search","history:previous","history:next","chat:cancel","chat:killAgents","chat:cycleMode","chat:modelPicker","chat:fastMode","chat:thinkingToggle","chat:submit","chat:newline","chat:undo","chat:externalEditor","chat:stash","chat:imagePaste","chat:messageActions","autocomplete:accept","autocomplete:dismiss","autocomplete:previous","autocomplete:next","confirm:yes","confirm:no","confirm:previous","confirm:next","confirm:nextField","confirm:previousField","confirm:cycleMode","confirm:toggle","confirm:toggleExplanation","tabs:next","tabs:previous","transcript:toggleShowAll","transcript:exit","historySearch:next","historySearch:accept","historySearch:cancel","historySearch:execute","task:background","theme:toggleSyntaxHighlighting","help:dismiss","attachments:next","attachments:previous","attachments:remove","attachments:exit","footer:up","footer:down","footer:next","footer:previous","footer:openSelected","footer:clearSelection","footer:close","messageSelector:up","messageSelector:down","messageSelector:top","messageSelector:bottom","messageSelector:select","diff:dismiss","diff:previousSource","diff:nextSource","diff:back","diff:viewDetails","diff:previousFile","diff:nextFile","modelPicker:decreaseEffort","modelPicker:increaseEffort","select:next","select:previous","select:accept","select:cancel","plugin:toggle","plugin:install","permission:toggleDebug","settings:search","settings:retry","settings:close","voice:pushToTalk"],SiY=B6(()=>L.object({context:L.enum(xA7).describe("UI context where these bindings apply. Global bindings work everywhere."),bindings:L.record(L.string().describe('Keystroke pattern (e.g., "ctrl+k", "shift+tab")'),L.union([L.enum(IA7),L.string().regex(/^command:[a-zA-Z0-9:\-_]+$/).describe('Command binding (e.g., "command:help", "command:compact"). Executes the slash command as if typed.'),L.null().describe("Set to null to unbind a default shortcut")]).describe("Action to trigger, command to invoke, or null to unbind")).describe("Map of keystroke patterns to actions")}).describe("A block of keybindings for a specific context")),Wnj=B6(()=>L.object({$schema:L.string().optional().describe("JSON Schema URL for editor validation"),$docs:L.string().optional().describe("Documentation URL"),bindings:L.array(SiY()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."))});function CiY(){return uA7(["Context","Description"],xA7.map((q)=>[`\`${q}\``,S65[q]]))}function biY(){let q={};for(let K of tV6)for(let[_,z]of Object.entries(K.bindings))if(z){if(!q[z])q[z]={keys:[],context:K.context};q[z].keys.push(_)}return uA7(["Action","Default Key(s)","Context"],IA7.map((K)=>{let _=q[K],z=_?_.keys.map(($)=>`\`${$}\``).join(", "):"(none)",Y=_?_.context:xiY(K);return[`\`${K}\``,z,Y]}))}function xiY(q){let K=q.split(":")[0];return{app:"Global",history:"Global or Chat",chat:"Chat",autocomplete:"Autocomplete",confirm:"Confirmation",tabs:"Tabs",transcript:"Transcript",historySearch:"HistorySearch",task:"Task",theme:"ThemePicker",help:"Help",attachments:"Attachments",footer:"Footer",messageSelector:"MessageSelector",diff:"DiffDialog",modelPicker:"ModelPicker",select:"Select",permission:"Confirmation"}[K??""]??"Unknown"}function IiY(){let q=[];q.push("### Non-rebindable (errors)");for(let K of Uo6)q.push(`- \`${K.key}\` — ${K.reason}`);q.push(""),q.push("### Terminal reserved (errors/warnings)");for(let K of tp1)q.push(`- \`${K.key}\` — ${K.reason} (${K.severity==="error"?"will not work":"may conflict"})`);q.push(""),q.push("### macOS reserved (errors)");for(let K of ep1)q.push(`- \`${K.key}\` — ${K.reason}`);return q.join(`
8308`)}function b65(){rO({name:"keybindings-help",description:'Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claude/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".',allowedTools:["Read"],userInvocable:!1,isEnabled:IL,async getPromptForCommand(q){let K=CiY(),_=biY(),z=IiY(),Y=[giY,FiY,UiY,QiY,diY,ciY,liY,niY,`## Reserved Shortcuts
8309

Callers 1

getPromptForCommandFunction · 0.85

Calls 1

uA7Function · 0.85

Tested by

no test coverage detected