Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: onStepStart callback #3859

Open
grabbou opened this issue Nov 24, 2024 · 0 comments
Open

feat: onStepStart callback #3859

grabbou opened this issue Nov 24, 2024 · 0 comments
Labels
ai/core enhancement New feature or request

Comments

@grabbou
Copy link

grabbou commented Nov 24, 2024

Feature Description

Similar to onStepFinished, but called before the actual step is executed.

Use Cases

I would like to perform a side-effect before tools are executed in every step, not after. I would like to show a spinner that says "Executing [arrayOfTools]..." on each step for better DX.

Additional context

I have this already running via patch-package https://github.com/callstackincubator/cali/blob/8167760be2547dbf5302ab654e172672f8962082/src/cli.ts#L116.

Would be happy to send a PR if this gets accepted.

@grabbou grabbou added the enhancement New feature or request label Nov 24, 2024
@grabbou grabbou changed the title onStepStart feat: onStepStart callback Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants