mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 17:43:56 +08:00
feat(scheduler): add scheduled jobs with channel-aware delivery
Introduce persisted cron/interval jobs, gateway scheduler loop, worker turns, and admin CRUD/edit UI. Route proactive reminders via the originating chat channel (WhatsApp vs WeChat), harden Weixin outbound with durable queue and PG-compatible polling, and fix chat UI to show each scheduled reminder separately. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5336f8835f
commit
47813f6a94
45 changed files with 4956 additions and 43 deletions
|
|
@ -5,6 +5,7 @@ from typing import Any
|
|||
from runtime.skill_installer import install_skill_from_registry_archive
|
||||
from runtime.tools.skills.clawhub_client import get_skill_detail as clawhub_get_skill_detail
|
||||
from runtime.tools.skills.clawhub_client import search_skills as clawhub_search_skills
|
||||
from runtime.scheduler.cron_service import CronService
|
||||
|
||||
|
||||
def build_common_gateway_context(*, store: Any) -> dict[str, Any]:
|
||||
|
|
@ -80,6 +81,7 @@ def build_common_gateway_context(*, store: Any) -> dict[str, Any]:
|
|||
|
||||
return {
|
||||
"store": store,
|
||||
"cron": CronService(store=store),
|
||||
"search_clawhub_skills": _search_clawhub_skills,
|
||||
"fetch_clawhub_skill_detail": _fetch_clawhub_skill_detail,
|
||||
"install_skill_from_clawhub": _install_skill_from_clawhub,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue