seeds: merge calendar and productivity_management into nextcloud

Consolidate the calendar and productivity_management seed categories into one
nextcloud category: create_event/next_event move from calendar, and
create_nextcloud_task becomes create_task (dropping the redundant prefix).
Replace the two CATEGORY_DESCRIPTIONS entries with a single nextcloud
description and update every reference across the repo (docs, bridge comments,
tests, navigation tuning labels, seed docstrings).
This commit is contained in:
gabby committed 2026-10-09 00:23:32 +00:00
1 parent e434b9fbe5
commit b8f86849ea
26 files changed
+134 -131

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ There is no service daemon: Nextcloud is plain HTTPS, so the bridge is stdlib-on
(`urllib` + `xml.etree`) and starts instantly. The connection comes from
`bridges.nextcloud` (url/username/app_password/default_calendar/default_addressbook),
falling back to the top-level `nextcloud_url`/`nextcloud_username`/
`nextcloud_app_password`/`nextcloud_default_calendar` values the calendar seeds
`nextcloud_app_password`/`nextcloud_default_calendar` values the nextcloud seeds
already use, so the same account is configured in one place.
The actual DAV/OCS work lives in `nextcloud_client.py`; the routes here validate
+1 -1
View File
@@ -112,7 +112,7 @@ def build_bridge(
`llm` is the scheduler's configured language-model client, handed to the LLM
bridge so it reuses the top-level `llm` endpoint/model instead of duplicating
that config. The Nextcloud bridge gets the top-level `nextcloud_*` values as a
fallback, so the same account the calendar seeds use is configured once. Other
fallback, so the same account the nextcloud seeds use is configured once. Other
bridges ignore both.
"""
bridge_class = _class_for(name)
+7 -10
View File
@@ -656,9 +656,10 @@ CATEGORY_DESCRIPTIONS: dict[str, str] = {
"Anything that is not a request to perform an action or produce a result: "
"greetings, thanks, acknowledgements, chit-chat, and off-topic statements."
),
"calendar": (
"Calendar and scheduling: reading or changing the user's calendar "
"events and reminders."
"nextcloud": (
"Nextcloud productivity: the user's calendar events and scheduling "
"(reading or changing events and reminders) and the user's to-do tasks "
"and task lists."
),
"simplex": (
"SimpleX messaging: reading incoming messages, sending messages to "
@@ -668,10 +669,6 @@ CATEGORY_DESCRIPTIONS: dict[str, str] = {
"Time and date utilities: telling the current time or date, setting "
"countdown timers, and setting alarms."
),
"productivity_management": (
"Personal productivity: creating and managing the user's to-do tasks "
"and task lists."
),
"housekeeping": (
"Agent self-maintenance: deleting, reconfiguring, regenerating, and "
"cancelling the agent's own skills."
@@ -724,7 +721,7 @@ _TARGET_QUESTION = (
# Explicit housekeeping command forms. They are routed deterministically to the
# housekeeping skill (see parse_meta_command) because the generic SemIf guards
# read a task-like skill name in the request as the task itself (e.g.
# "regen skill calendar.create_event" scores as a calendar task). The skill name
# "regen skill nextcloud.create_event" scores as a nextcloud task). The skill name
# is just a variable the skill resolves — or asks for.
_META_PATTERNS: list[tuple[str, "re.Pattern[str]"]] = [
(
@@ -785,10 +782,10 @@ def parse_meta_command(text: str) -> str | None:
def _resolve_target(admin, request: Request):
"""Resolve the skill a housekeeping request targets.
The target may be named in the request ("delete skill calendar.foo") or
The target may be named in the request ("delete skill nextcloud.foo") or
supplied as an input variable when the request is name-free ("delete
skill") — in which case the skill asks for it. Keeping the name out of the
routed request is deliberate: a skill name like `calendar.create_event`
routed request is deliberate: a skill name like `nextcloud.create_event`
reads as a task and pulls navigation to the wrong category. Returns a
`(category, name)` tuple, or an `ActionResult` (needs_input / not-found /
ambiguous) to return as-is.