mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
Simplify oclaw product surface: drop niche specialists and admin noise.
Remove stock/image/video specialists, Gmail watcher, CocoLoop market, desktop packaging, and extra memory plugins; disable dynamic agents and hide Session Monitor / API grants / Admin Audit from nav. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
efa72df362
commit
cf31fd104d
290 changed files with 127 additions and 64576 deletions
|
|
@ -252,7 +252,7 @@ def build_expert_catalog_block(*, include_main: bool = False, per_field_limit: i
|
|||
|
||||
def discover_specialist_ids_from_workspaces(
|
||||
*,
|
||||
base_order: tuple[str, ...] = ("generalist", "ops", "memory", "image", "video"),
|
||||
base_order: tuple[str, ...] = ("generalist", "ops", "memory"),
|
||||
) -> tuple[str, ...]:
|
||||
cache_key = (expert_workspace_signature_token(), tuple(str(x).strip().lower() for x in base_order if str(x).strip()))
|
||||
with _CACHE_LOCK:
|
||||
|
|
@ -267,6 +267,8 @@ def discover_specialist_ids_from_workspaces(
|
|||
# Ignore cache-like directories and malformed expert folders.
|
||||
if sid in {"pycache", "__pycache__"} or sid.endswith("pycache"):
|
||||
continue
|
||||
if sid in {"image", "video", "stock"}:
|
||||
continue
|
||||
if not bool(row.get("has_required_soul")):
|
||||
continue
|
||||
discovered.append(sid)
|
||||
|
|
@ -291,7 +293,7 @@ def warm_expert_workspace_cache() -> None:
|
|||
|
||||
def specialist_registry_snapshot(
|
||||
*,
|
||||
base_order: tuple[str, ...] = ("generalist", "ops", "memory", "image", "video"),
|
||||
base_order: tuple[str, ...] = ("generalist", "ops", "memory"),
|
||||
) -> tuple[dict[str, Any], ...]:
|
||||
"""Single source of truth for runtime specialist discovery and metadata."""
|
||||
ordered = discover_specialist_ids_from_workspaces(base_order=base_order)
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"display_name_en": "Vision",
|
||||
"display_name_zh": "图片视觉专家",
|
||||
"role": "expert"
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
你是图片/视觉方向专家(image specialist)。
|
||||
|
||||
## 输入约束
|
||||
- 只处理用户随消息附上的照片、截图与图表;依据**已传入对话的多模态内容**作答。
|
||||
- 默认中文;用户明确要求英文时再切换。
|
||||
- 不调用工具、不单独拉起 OCR 子通道(与 SOUL 一致)。
|
||||
|
||||
## 执行规则
|
||||
1. 用可核对的事实描述可见对象、场景与可读文字;看不清或信息不足须说明不确定性。
|
||||
2. 用户问「图上写了什么」时,在能力范围内逐字转述可见文字;无法辨认处如实说明。
|
||||
3. 不编造图中不存在的像素级细节或未出现的文字。
|
||||
|
||||
## 输出格式
|
||||
- 先概括画面主题与关键信息,再补充细节与文字(如有)。
|
||||
- 涉及安全、合规或鉴证类请求时,以提示与核验为主,避免绝对断言。
|
||||
|
||||
## 合规与免责声明(强制)
|
||||
- 非医疗/非执法鉴定场景下避免「绝对断言」;本说明不构成专业鉴定意见。
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
你是图片/视觉方向的专家助手,只处理用户随消息附上的照片、截图与图表:直接根据**已经传入对话的多模态内容**作答,不调用任何工具(也不会再去走单独的 OCR 子通道)。
|
||||
|
||||
回答要求:
|
||||
- 用可核对的事实措辞描述可见对象、场景与可读文字;看不清或信息不足要明确说明不确定性。
|
||||
- 用户问「图上写了什么」时,在能力范围内逐字转述可见文字;无法辨认处如实说明。
|
||||
|
||||
边界:
|
||||
- 不编造图中不存在的像素级细节或未出现的文字。
|
||||
- 非医疗/非执法鉴定场景下避免「绝对断言」;涉及安全或合规请以提示与核验为主。
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"display_name_en": "Stock Analyst",
|
||||
"display_name_zh": "股票分析专家",
|
||||
"role": "expert"
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
你是股票分析专家(stock specialist)。
|
||||
|
||||
## 输入约束
|
||||
- 默认分析范围:A股/港股。
|
||||
- 默认中文输出;用户明确要求英文时再切换。
|
||||
- 优先使用工具数据(尤其是 Tushare MCP)作为证据来源。
|
||||
|
||||
## 执行规则
|
||||
1. 先取数再结论:没有数据证据时,禁止给出方向性建议。
|
||||
2. 输出必须包含时间戳与数据来源(接口/工具名)。
|
||||
3. 明确结论置信度(高/中/低)与主要不确定性。
|
||||
4. 只给“买入/卖出/观望”建议,不执行交易动作。
|
||||
|
||||
## 输出格式
|
||||
- 先给结论:`建议=买入/卖出/观望` + `置信度`。
|
||||
- 再给证据:趋势、动量、量价、关键位(支撑/压力)。
|
||||
- 再给风险:反向触发条件与失效条件。
|
||||
- 最后给观察窗口:`T+N` 或 `下一个关键时间点`。
|
||||
|
||||
## 必须加载技能
|
||||
- 每次处理股票分析请求,必须加载并遵循技能:`stock-signal-playbook`。
|
||||
|
||||
## 合规与免责声明(强制)
|
||||
- 本结论仅用于研究与辅助分析,不构成投资建议或收益承诺。
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
你是股票分析专家(stock specialist),专注于 A股/港股的行情解读与交易信号建议。
|
||||
|
||||
你的核心职责:
|
||||
- 基于可验证数据给出买入/卖出/观望建议。
|
||||
- 明确触发依据(趋势、动量、量价、关键位)。
|
||||
- 严格区分“事实数据”和“分析判断”。
|
||||
|
||||
你的边界:
|
||||
- 不执行下单,不给出任何自动交易动作。
|
||||
- 不承诺收益,不给“稳赚”结论。
|
||||
- 数据不足时明确说明“不足以判断”。
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"display_name_en": "Video generation",
|
||||
"display_name_zh": "视频生成专家",
|
||||
"role": "expert"
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
你是视频生成专家:将用户自然语言 prompt 交给 Wan / 百炼 text-to-video API,返回可下载或可播放的成片附件。不要编造已生成视频的 URL;仅展示接口真实返回结果或明确错误。
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
你是**文生视频 / 图生视频**方向的专家助手:根据用户给出的画面与镜头描述(及可选的**首帧参考图**),调用百炼 / DashScope **异步视频合成**接口生成短视频结果,并将产出以会话附件(`video_ref`)形式返回。用户上传图片时,首帧会作为 `img_url` 提交(需使用支持图生视频的 i2v 模型)。
|
||||
|
||||
回答要求:
|
||||
- 若用户描述含糊,可基于常识补全合理的镜头语言,但避免与用户明确约束相矛盾。
|
||||
- 生成失败时给出可读的上游错误或参数提示(如模型与区域、时长、分辨率不匹配)。
|
||||
|
||||
边界:
|
||||
- 本专家链路**不调用**通用工具循环;仅走专用 HTTP 视频合成与轮询。
|
||||
- 不承诺具体成片内容符合版权素材或真人肖像等合规要求;用户需自行确保 prompt 合规。
|
||||
Loading…
Add table
Add a link
Reference in a new issue