diff --git a/CLAUDE.md b/CLAUDE.md index c2ea441..cc67581 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -142,8 +142,14 @@ Works: config.json sets `remToPxRate` (16), `workHoursPerDay` (8) and `clockFormat` (`auto` follows the Qt locale, or `12h` / `24h`). ↵ copies the answer (HUD), Ctrl+↵ pastes it through `omarchy-clipboard-paste-text`, Ctrl+Shift+C copies "question = answer". Each one saves to **Calculator History** (`db/calculator.json`, 4096 rows / 90 days): a built-in command and pushed view, searchable, Ctrl+D deletes an entry, Ctrl+Shift+D deletes all. RPC: `calculator.calculate|historyGetAll|historyDelete|historyDeleteAll|refreshCurrencies|getCurrencies`. A bare number, word or quantity (`42`, `firefox`, `5 kg`) never produces a row, because the section takes ↵. +- **Script Commands** (SPEC §9.9, ref 03 §5): `core/ScriptCommands.js` (header parsing, arguments, output handling) and `services/ScriptCommandsSource.qml` (scan, runs, inline refresh). + - Folders: `~/.config/oma-cast/script-commands` plus config.json `scriptCommandDirectories` (absolute or `~/`). A bash scan skips dirs, non-executables, empty files, `.template.` files, files over 2 MB and files with no `@raycast.` line. It runs on every open and on Reload Script Commands. Files whose header is broken are listed under "Invalid Scripts" in Search Script Commands. + - Scripts run as `bash -lc 'cd ; exec