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

Function R65

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

Source from the content-addressed store, hash-verified

8260Now that this skill is invoked, you have access to Chrome browser automation tools. You can now use the mcp__claude-in-chrome__* tools to interact with web pages.
8261
8262IMPORTANT: Start by calling mcp__claude-in-chrome__tabs_context_mcp to get information about the user's current browser tabs.
8263`;var L65=y(()=>{zm6();WJ6();WT();yiY=pc.map((q)=>`mcp__claude-in-chrome__${q.name}`)});import{open as LiY,stat as RiY}from"fs/promises";function R65(){rO({name:"debug",description:"Enable debug logging for this session and help diagnose issues",allowedTools:["Read","Grep","Glob"],argumentHint:"[issue description]",disableModelInvocation:!0,userInvocable:!0,async getPromptForCommand(q){let K=UJ7(),_=j96(),z;try{let A=await RiY(_),O=Math.min(A.size,hiY),w=A.size-O,j=await LiY(_,"r");try{let{buffer:H,bytesRead:J}=await j.read({buffer:Buffer.alloc(O),position:w}),M=H.toString("utf-8",0,J).split(`
8264`).slice(-Wl8).join(`
8265`);z=`Log size: ${m4(A.size)}
8266
8267### Last ${Wl8} lines
8268
8269\`\`\`
8270${M}
8271\`\`\``}finally{await j.close()}}catch(A){z=_7(A)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${Wl8} lines of debug log: ${d6(A)}`}return[{type:"text",text:`# Debug Skill
8272
8273Help the user debug an issue they're encountering in this current Claude Code session.
8274${K?"":`
8275## Debug Logging Just Enabled
8276
8277Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
8278
8279Tell the user that debug logging is now active at \`${_}\`, ask them to reproduce the issue, then re-read the log. If they can't reproduce, they can also restart with \`claude --debug\` to capture logs from startup.
8280`}
8281## Session Debug Log
8282
8283The debug log for the current session is at: \`${_}\`
8284
8285${z}
8286
8287For additional context, grep for [ERROR] and [WARN] lines across the full file.
8288
8289## Issue Description
8290
8291${q||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
8292
8293## Settings
8294
8295Remember that settings are in:
8296* user - ${Hj("userSettings")}
8297* project - ${Hj("projectSettings")}
8298* local - ${Hj("localSettings")}
8299
8300## Instructions
8301
83021. Review the user's issue description
83032. The last ${Wl8} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
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

G15Function · 0.85

Calls 1

rOFunction · 0.85

Tested by

no test coverage detected