Skip to content

Repository files navigation

evoke-build/reflexes

The first-party reflexes for evoke: what a Mac does at a word. The word is decided by Jev, TypeSafe AI's classifier. Each reflex is one directory, with reflex.toml and the file it runs, where it runs one. There is nothing to build. Eleven of the thirteen run a file and need Node 24 or newer on your PATH; open and trash run a program the Mac has.

evoke add evoke-build/reflexes
Reflex Does Effect Yours to set
awake Keeps the laptop awake for a duration, or until pkill caffeinate write
download Saves a URL's file to ~/Downloads, or to a place you name write places
lock Locks the screen write
mail Starts an email in your mail app write
note Appends a dated line to your notes file write file
open Opens one of your folders read places
power Sleeps, restarts or shuts down destructive
screenshot Captures the screen, a window or a selection write
timer Counts down, then rings write
trash Empties the trash destructive
visit Opens one of your sites, in a private window on request read sites
volume Sets the output volume write
wifi Turns Wi-Fi on or off write

Yours to set

A reflex that needs your words or a setting for a required argument stays inactive until it has them. evoke says which line gives it what it needs. places names your folders, and each word's value is its full path. sites names your sites, and each value is its URL. download runs without places; with it, a place you name.

evoke vocab places add desktop "The desktop." --value /Users/you/Desktop
evoke vocab sites add github "GitHub." --value https://github.com
evoke config note file ~/notes.txt

Writing one

evoke new <name> writes a working reflex to start from. evoke check reads the manifest, loads the body, and writes reflex.d.ts, the one file a body imports. The whole craft is in the manual. Here, npm ci then npm run check and npm test type-check every body and run the tests. Licence: MIT. Issues and changes: evoke-build/evoke.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages