Function
createBashProgressMessage
({
parentToolUseID,
toolUseID,
elapsedTimeSeconds = 12,
taskId = 'task-1',
}: {
parentToolUseID: string
toolUseID: string
elapsedTimeSeconds?: number
taskId?: string
})
Source from the content-addressed store, hash-verified
| 11 | } from './queryHelpers.js' |
| 12 | |
| 13 | function createBashProgressMessage({ |
| 14 | parentToolUseID, |
| 15 | toolUseID, |
| 16 | elapsedTimeSeconds = 12, |
| 17 | taskId = 'task-1', |
| 18 | }: { |
| 19 | parentToolUseID: string |
| 20 | toolUseID: string |
| 21 | elapsedTimeSeconds?: number |
| 22 | taskId?: string |
| 23 | }) { |
| 24 | return { |
| 25 | type: 'progress' as const, |
| 26 | data: { |
| 27 | type: 'bash_progress' as const, |
| 28 | elapsedTimeSeconds, |
| 29 | taskId, |
| 30 | }, |
| 31 | toolUseID, |
| 32 | parentToolUseID, |
| 33 | uuid: `uuid-${toolUseID}`, |
| 34 | timestamp: new Date().toISOString(), |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | beforeEach(() => { |
| 39 | delete process.env.CLAUDE_CODE_REMOTE |
Tested by
no test coverage detected