MCPcopy Create free account
hub / github.com/anthropics/claude-code / read

Function read

mods/diff/tests/register.test.ts:2901–2912  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2899 },
2900 )
2901
2902 on('command.run', { command: 'clear' }, () => ({}))
2903 on('prompt.submit', ($, e) => ({ text: e.text, context: e.context }))
2904
2905 async function read() {
2906 await world.clock.advance(Fixtures.SETTLE_MS)
2907
2908 const pane = Fixtures.jsonOf(await $.ui.render(Fixtures.PANE))
2909
2910 await $.ui.press({ plugin: 'diff', key: 'ask:app.ts' })
2911 await world.clock.settle()
2912
2913 const sent = await $.prompt.submit(Fixtures.typedPromptOf('why?'))
2914
2915 return { pane, sent: Fixtures.jsonOf(sent), runs: world.runs.length }

Callers 2

register.test.tsFile · 0.70
identityOfFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected