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

Function createStopHookProgress

src/screens/replMessageSignals.test.ts:54–74  ·  view source on GitHub ↗
(
  uuid: string,
  toolUseID: string,
  command: string,
  overrides: Partial<HookProgress> = {},
)

Source from the content-addressed store, hash-verified

52}
53
54function createStopHookProgress(
55 uuid: string,
56 toolUseID: string,
57 command: string,
58 overrides: Partial<HookProgress> = {},
59): Message {
60 return {
61 type: 'progress',
62 uuid,
63 toolUseID,
64 parentToolUseID: 'parent-tool-use',
65 timestamp: '2026-04-13T00:00:00.000Z',
66 data: {
67 type: 'hook_progress',
68 hookEvent: 'Stop',
69 hookName: `stop-hook-${uuid}`,
70 command,
71 ...overrides,
72 },
73 } as unknown as Message
74}
75
76function createStopHookAttachment(uuid: string, toolUseID: string): Message {
77 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected