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

+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.