Repository navigation
feat: move AI workflows to Worker with durable bot relay - #68
Draft
Yuna-Celisse wants to merge 13 commits into
Draft
Yuna-Celisse wants to merge 13 commits into
Yuna-Celisse wants to merge 13 commits into
Conversation
| port = endpoint.port or (443 if endpoint.scheme == "wss" else 80) | ||
| connection = socket.create_connection((endpoint.hostname, port), timeout=10) | ||
| if endpoint.scheme == "wss": | ||
| connection = ssl.create_default_context().wrap_socket(connection, server_hostname=endpoint.hostname) |
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.
HuaJiBot hosts platform adapters while the independent Worker now runs chat, vision, MCP search and daily summaries. This adds signed HTTPS forwarding, a durable SQLite ingress outbox, reply-thread mapping, Cloudflare HTTP pull delivery, retries and a persistent delivery ledger. Ordinary group messages archive without invoking a model; image URLs accompany prompted turns. Scheduled summary replies use validated date anchors without a fake platform reply target.
The selected deployment is enabled for robot 3623498320/group 466691612. Local AIChat and DailySummary are disabled. The Worker owns D1 chat retention, a durable summary Workflow, authenticated WebSearch MCP and native image conversations. The separate Worker source is in the local huaji-agent repository and is not yet published on GitHub.
Deployment preserves adapter credentials and other services, backs up original config/data, and provides automatic startup rollback. 494 LiteDB records were exported read-only/imported idempotently; authenticated platform history covered the maintenance window and replayed 50 records with deduplication. Bot image: huajibot-local:worker-features-v4.
Validation:
Real QQ group acceptance and platform failure/restart/DLQ testing remain pending. Adapter acceptance before receipt persistence retains the documented duplicate-delivery crash window. Forwarding cannot recover platform events never delivered while offline; the migration maintenance window was backfilled from authenticated platform history. Old AIChat data is retained but old image threads are not automatically recreated.
Refs #64.