Enable LLMs to handle webhooks with plaintext files
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

specify watch handler option

+8
+8
README.md
··· 76 76 `config` frontmatter value. 77 77 - `maxAttempts`: How many times to attempt the `callback` before giving up. 78 78 Defaults to `1` (no retries). If all attempts fail, the webhook is dropped. 79 + - `watch`: If `true`, Lure watches `luresDir` for changes and reloads lures as 80 + they are added, modified, or removed. Defaults to `false`. 79 81 80 82 ## Generating lures 81 83 ··· 154 156 2. Lure traverses the specified directory and discovers any `.lure` files. 155 157 3. Each `.lure` file has their frontmatter validated. The parsed config and 156 158 template content are cached. 159 + 4. If `watch` is enabled, a filesystem watcher is started on `luresDir`. When 160 + a `.lure` file is added or modified, it is re-validated and its cache entry 161 + updated. If validation fails, the previous cached version is retained and an 162 + error is logged. When a `.lure` file is removed, its cache entry is 163 + discarded. Changes take effect immediately — queue processing always uses the 164 + current cache, so a reload applies to any items already in the queue as well. 157 165 158 166 ### Per Request 159 167