docs(skills): defaultActions bundles five of the eight generators

This commit is contained in:
pj committed 2026-08-16 01:08:47 +05:30
1 parent 7c085c8c9d
commit 9dbc8f7c9a
1 file changed
+5 -2
+5 -2
View File
@@ -171,8 +171,11 @@ on. If you cannot, it is decoration.
picker chooses one. The verbs are `Tap`, `DoubleTap`, `LongPress`, `InputText`, picker chooses one. The verbs are `Tap`, `DoubleTap`, `LongPress`, `InputText`,
`Scroll`, `Swipe`, `PressKey`, and `Wait`. The built-in generators are `taps`, `Scroll`, `Swipe`, `PressKey`, and `Wait`. The built-in generators are `taps`,
`doubleTaps`, `longPresses`, `typing`, `scrolls`, `swipes`, `pressKeys`, and `doubleTaps`, `longPresses`, `typing`, `scrolls`, `swipes`, `pressKeys`, and
`waitOnce`; `defaultActions` bundles them at taps and typing 100, scrolls 50, `waitOnce`. `defaultActions` bundles five of them: taps and typing at 100,
swipes 25, double taps 10. scrolls 50, swipes 25, double taps 10. `longPresses`, `pressKeys` and `waitOnce`
are not in it, so a spec that only exports `defaultActions` never presses android
back, never long-presses, and never waits. Weight those in yourself if the app
has behaviour behind them.
`weighted([n, generator], ...)` composes them with relative weights. `weighted([n, generator], ...)` composes them with relative weights.
`whenRoute(routeExtractor, routes, body)` runs `body` only on the named screens. `whenRoute(routeExtractor, routes, body)` runs `body` only on the named screens.