Commit Graph

7 Commits

Author SHA1 Message Date
Shadow
1175fd90b0
convert to cf worker 2026-04-27 18:43:18 -05:00
Shadow
f9d9e58a4c
build(deps): update @buape/carbon to 0.16.0 2026-04-17 14:54:54 -05:00
Shadow
a037e0bd43
update carbon 2026-04-07 23:54:57 -05:00
Julian Engel
f6d15fe2aa
Add Hermit-managed thread length monitoring (#6)
* Add /helper thread moderation commands with webhook tracking

- add new /helper root command with guild-only subcommands: warn-new-thread and close-thread

- implement warn-new-thread optional user mention support (matching prior /say new-thread mention behavior)

- implement close-thread thread-only guard, then post close message and archive/lock thread

- remove /say new-thread subcommand and route this workflow to /helper

- add shared command webhook utility posting to HELPER_COMMAND_WEBHOOK_URL

- include webhook payload fields: threadId, messageCount, time, command, invokedBy

- wire helper command registration in src/index.ts and extend env typings

- document HELPER_COMMAND_WEBHOOK_URL and helper command usage in README/.env.example

- fix TS typing issues uncovered during validation: interaction.user nullability, thread type guard, github option literal types

Validation: npx tsc --noEmit passes

* Add shared secret header for helper webhook delivery

- read HELPER_COMMAND_WEBHOOK_SECRET from env

- include x-helper-webhook-secret header on helper webhook POST when configured

- document new env var in README and .env.example

- extend ProcessEnv typing with HELPER_COMMAND_WEBHOOK_SECRET

* Add helper-thread welcome message on thread creation

- add ThreadCreate listener to post onboarding guidance for new helper threads

- target one configured helper parent channel via HELPER_THREAD_WELCOME_PARENT_ID

- set default in-file helper welcome template (overrideable via HELPER_THREAD_WELCOME_TEMPLATE)

- register listener in src/index.ts and update env/docs typing and examples

* Add /helper close command for thread lock+archive

- add /helper close subcommand that posts close message then archives and locks thread

- keep /helper close-thread as compatibility alias using shared close flow

- update README command list

* Updated to mention Krill by ID and compact welcome message

* Add moderated Answer Overflow solution marking

* Send worker event for welcome threads

* Add Hermit-managed thread length monitoring

* Migrate helper logs into Hermit

* Improve Hermit README

* fix: harden thread monitoring and helper log limits

---------

Co-authored-by: Shadow <hi@shadowing.dev>
2026-04-07 23:54:41 -05:00
Shadow
b22733c252
feat: rename hermit and add drizzle setup 2026-03-03 23:35:48 -06:00
Shadow
c16f6203f6
chore: update carbon 2026-02-18 09:35:33 -06:00
Shadow
cb061ee3a2
Initial barnacle setup 2026-01-23 18:00:53 -06:00