Add Hermit-managed thread length monitoring#6
Open
julianengel wants to merge 10 commits intoopenclaw:mainfrom
Open
Add Hermit-managed thread length monitoring#6julianengel wants to merge 10 commits intoopenclaw:mainfrom
julianengel wants to merge 10 commits intoopenclaw:mainfrom
Conversation
- 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
- 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 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 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
Author
|
@thewilloftheshadow Should be good to go! |
Author
|
Since #5: Migrated the old external logging functionality directly into Hermit and moved it onto the existing Bun + SQLite stack. What changed:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What changed
Structure
Hermit now owns the thread-length policy end to end:
The Cloudflare worker remains a persistence layer for:
This keeps the behavior portable if tracked thread storage later moves away from Cloudflare D1.
Configuration
Validation