<target> can be a button or a drawer. If the target is a button, Buttons can create a hidden one-step drawer wrapper internally. If the target is already a drawer, the trigger attaches directly to that drawer.
Trigger kinds
| Kind | Cause | Example |
|---|---|---|
webhook | A remote service sends an HTTP POST. | GitHub, Stripe, Apify, Linear |
cron | A schedule fires. | nightly sync, hourly digest |
hook | A local event fires. | file changed, Git commit, button completed |
Commands
Target resolution
If a button and drawer share a name, use an explicit target prefix:Current implementation
The current CLI already supports webhook-triggered drawers:buttons trigger ... command is the intended unified surface. It should compile down to the drawer trigger model so existing drawer workflows keep working.