Wider ranges, an agent guide, patch and effects commands

Every effect's sliders and clamps now reach far (a nudge from a tremor
to an earthquake, a banner that stays minutes). AGENTS.md documents the
file schema, every option and range, the CLI, verification and worked
scenarios for scripts and coding agents; attention-required effects
prints the catalog as JSON, patch merges keys into a rule, docs prints
the guide.
This commit is contained in:
2026-09-08 17:21:44 +01:00
parent bd752d0968
commit e5053de6a7
12 changed files with 259 additions and 40 deletions
+6
View File
@@ -2,6 +2,7 @@ import QtQuick
import Quickshell
import Quickshell.Io
import "Rules.js" as Rules
import "EffectCatalog.js" as Catalog
// Headless service: streams every notification the shell puts on screen,
// runs it past the rules in ~/.config/attention-required/rules.json, and
@@ -602,6 +603,11 @@ Item {
return "reloading " + root.rulesPath
}
// The effect catalog with every option and its range, for scripts and agents.
function effects(): string {
return JSON.stringify(Catalog.EFFECTS)
}
// attention-required toggle | on | off
function toggle(): string {
root.setEnabled(!root.enabled)