6d658b4f4d
- 工具系统从 kilostar/plugin/tool_plugin/ 迁移到 data/toolset/(manifest.json 声明式) - 新增 plugin_runtime 模块:BaseOrganization / GlobalPluginManager / loader / tool_bridge - 新增 org_task + org_task_event 表及 DAO(alembic 0009) - 新增 /api/v1/plugin 路由(submit/status/stream/install/reload) - 新增 data/plugin/example_dept 示例重型插件 - regulatory_node 支持聊天历史上下文注入 - send_file 改为 artifact 存盘 + SSE 推送下载链接 - 前端 WorkflowFileCard 组件 + ToolSettings README 渲染 - utils 整理:合并 access/role_check、standalone_proxy→ray_compat、删除废弃模块 - 项目结构文档移至 docs/STRUCTURE.md 并详细展开 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
30 lines
831 B
Python
30 lines
831 B
Python
"""KiloStar 重型插件(Organization)运行时。
|
|
|
|
每个重型插件 = 一个组织/部门:
|
|
- ``data/plugin/<org_name>/`` 目录约定
|
|
- 内部多个平级专家 agent,通过 ``consult`` 工具互通
|
|
- 单机模式下是普通对象,分布式模式下是 ray actor
|
|
- 对外两条边:cabinet tool(阻塞)+ 用户 API(射后不管)
|
|
"""
|
|
|
|
from kilostar.plugin_runtime.event import OrgEvent, OrgEventType, TaskState
|
|
from kilostar.plugin_runtime.manifest import OrgManifest, OrgDependencies
|
|
from kilostar.plugin_runtime.agents_config import (
|
|
AgentsConfig,
|
|
AgentDef,
|
|
AgentModelRef,
|
|
OrchestrationConfig,
|
|
)
|
|
|
|
__all__ = [
|
|
"OrgEvent",
|
|
"OrgEventType",
|
|
"TaskState",
|
|
"OrgManifest",
|
|
"OrgDependencies",
|
|
"AgentsConfig",
|
|
"AgentDef",
|
|
"AgentModelRef",
|
|
"OrchestrationConfig",
|
|
]
|