MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getPromptForCommand

Function getPromptForCommand

source code/commands/commit.ts:67–91  ·  view source on GitHub ↗
(_args, context)

Source from the content-addressed store, hash-verified

65 progressMessage: 'creating commit',
66 source: 'builtin',
67 async getPromptForCommand(_args, context) {
68 const promptContent = getPromptContent()
69 const finalContent = await executeShellCommandsInPrompt(
70 promptContent,
71 {
72 ...context,
73 getAppState() {
74 const appState = context.getAppState()
75 return {
76 ...appState,
77 toolPermissionContext: {
78 ...appState.toolPermissionContext,
79 alwaysAllowRules: {
80 ...appState.toolPermissionContext.alwaysAllowRules,
81 command: ALLOWED_TOOLS,
82 },
83 },
84 }
85 },
86 },
87 '/commit',
88 )
89
90 return [{ type: 'text', text: finalContent }]
91 },
92} satisfies Command
93
94export default command

Callers

nothing calls this directly

Calls 2

getPromptContentFunction · 0.70

Tested by

no test coverage detected