- 后端: coworker 智能体框架, WS API, 文件上传, 附件处理 - 前端: Open WebUI, 文件全量走 upload API (含 MD/TXT/JSON 等文本类) - 技能: md-to-office (pandoc + wkhtmltopdf) - 修复: 上传文件路径丢失, Agent 搜索浪费, 输出文件跑到 uploads/ - 打包: PyInstaller one-dir, 预打包 pandoc/wkhtmltopdf/chromium
19 lines
898 B
Python
19 lines
898 B
Python
"""Experimental connectors — use-at-your-own-risk integrations, excluded from release builds.
|
|
|
|
Connectors in this package are hidden behind the experimental-connectors setting, require an
|
|
explicit per-connector risk acknowledgment to connect, and are stripped from official desktop
|
|
builds by packaging/openworker-server.spec (set COWORKER_EXPERIMENTAL=1 at build time to include
|
|
them in a self-built binary).
|
|
|
|
To add one: define a `ConnectorDescriptor` with a `risk_notice` that states the concrete
|
|
downside in plain language, append it to `EXPERIMENTAL_DESCRIPTORS`, and register its tools or
|
|
adapter the same way first-party connectors do. The `experimental` flag is forced on by the
|
|
loader in descriptors.py regardless of what the descriptor sets.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from ..descriptors import ConnectorDescriptor
|
|
|
|
EXPERIMENTAL_DESCRIPTORS: list[ConnectorDescriptor] = []
|