MCPcopy Create free account
hub / github.com/Noumena-Network/code / createPromptCommand

Function createPromptCommand

src/tools/SkillTool/SkillTool.test.ts:155–168  ·  view source on GitHub ↗
(
  overrides: Partial<Extract<Command, { type: 'prompt' }>> = {},
)

Source from the content-addressed store, hash-verified

153const { SkillTool } = await import(import.meta.resolve('./SkillTool.ts'))
154
155function createPromptCommand(
156 overrides: Partial<Extract<Command, { type: 'prompt' }>> = {},
157): Extract<Command, { type: 'prompt' }> {
158 return {
159 type: 'prompt',
160 name: 'review-pr',
161 description: 'Review a pull request',
162 progressMessage: 'Reviewing',
163 contentLength: 16,
164 source: 'skills',
165 getPromptForCommand: async () => [],
166 ...overrides,
167 }
168}
169
170function createToolUseContext(
171 permissionOverrides?: Partial<

Callers 1

SkillTool.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected