Save the current working tree, streaming each stage.
for await (const ev of contribute({ commitMessage: 'Edit post' })) { if (ev.stage === 'done') console.log(ev.prUrl);} Copy
for await (const ev of contribute({ commitMessage: 'Edit post' })) { if (ev.stage === 'done') console.log(ev.prUrl);}
Yields ContributionEvents and returns a ContributionResult. Throws a StreamError (.code) if the host rejects the request — notably forbidden when a contribute:any app asks for mode: 'direct' (T11).
StreamError
.code
forbidden
contribute:any
mode: 'direct'
Save the current working tree, streaming each stage.
Yields ContributionEvents and returns a ContributionResult. Throws a
StreamError(.code) if the host rejects the request — notablyforbiddenwhen acontribute:anyapp asks formode: 'direct'(T11).