mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:23:23 +08:00
Remove Manager/comprehensive mode; route everything expert-only.
Keep WhatsApp/Weixin channels intact—only drop manager dispatch UI and force expert normalization end-to-end.
This commit is contained in:
parent
cf31fd104d
commit
ff9ef7279d
11 changed files with 99 additions and 636 deletions
|
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||
from dataclasses import dataclass, field
|
||||
from typing import Any, Literal
|
||||
|
||||
InteractionMode = Literal["comprehensive", "expert"]
|
||||
InteractionMode = Literal["expert"]
|
||||
SpecialistId = str
|
||||
|
||||
ChannelId = Literal[
|
||||
|
|
@ -34,10 +34,9 @@ class StandardMessage:
|
|||
|
||||
|
||||
def normalize_interaction_mode(raw: Any) -> InteractionMode:
|
||||
mode = str(raw or "").strip().lower()
|
||||
if mode in {"expert", "specialist"}:
|
||||
return "expert"
|
||||
return "comprehensive"
|
||||
"""Product surface is expert-only; Manager/comprehensive mode is removed."""
|
||||
del raw
|
||||
return "expert"
|
||||
|
||||
|
||||
def normalize_requested_specialist(raw: Any) -> SpecialistId:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue