Directories
¶
| Path | Synopsis |
|---|---|
|
backend
|
|
|
agent/runtime/claude
Package claude adapts Claude Code to the agent Runtime contract.
|
Package claude adapts Claude Code to the agent Runtime contract. |
|
agent/runtime/codex
Package codex adapts the Codex CLI to the agent Runtime contract.
|
Package codex adapts the Codex CLI to the agent Runtime contract. |
|
agent/runtime/internal/cli
Package cli provides shared CLI process infrastructure for external agent runtimes.
|
Package cli provides shared CLI process infrastructure for external agent runtimes. |
|
agent/runtime/native
Package native implements the built-in Eino-backed Leros runtime.
|
Package native implements the built-in Eino-backed Leros runtime. |
|
agent/runtime/opencode
Package opencode adapts the OpenCode CLI to the agent Runtime contract.
|
Package opencode adapts the OpenCode CLI to the agent Runtime contract. |
|
cmd/leros
command
@title Leros API @version 1.0 @description Leros 数字助手平台 API,提供数字助手管理、技能调用、事件处理等功能 @host localhost:8080 @BasePath /v1 @schemes http https
|
@title Leros API @version 1.0 @description Leros 数字助手平台 API,提供数字助手管理、技能调用、事件处理等功能 @host localhost:8080 @BasePath /v1 @schemes http https |
|
config
config 包提供 Leros 的配置加载和配置类型定义
|
config 包提供 Leros 的配置加载和配置类型定义 |
|
internal/api
api 包提供 Leros 的 HTTP API 层
|
api 包提供 Leros 的 HTTP API 层 |
|
internal/api/connectors
connectors 包提供不同交互渠道的连接器接口定义和路由管理
|
connectors 包提供不同交互渠道的连接器接口定义和路由管理 |
|
internal/api/connectors/github
github 包提供 GitHub 平台的连接器实现
|
github 包提供 GitHub 平台的连接器实现 |
|
internal/api/connectors/gitlab
gitlab 包提供 GitLab 平台的连接器实现
|
gitlab 包提供 GitLab 平台的连接器实现 |
|
internal/api/connectors/wework
wework 包提供企业微信(WeWork)平台的连接器实现
|
wework 包提供企业微信(WeWork)平台的连接器实现 |
|
internal/infra/db
db 包提供 Leros 的数据库初始化和管理功能
|
db 包提供 Leros 的数据库初始化和管理功能 |
|
internal/infra/git
Package git 封装通过 Gitea API 操作远端 Git 仓库的基础设施能力。
|
Package git 封装通过 Gitea API 操作远端 Git 仓库的基础设施能力。 |
|
internal/infra/mq
mq 包提供消息队列的抽象和实现
|
mq 包提供消息队列的抽象和实现 |
|
internal/infra/providers/github
githubprovider 包提供 GitHub provider client 工厂。
|
githubprovider 包提供 GitHub provider client 工厂。 |
|
internal/memory/local
Package local implements Leros built-in file-backed memory.
|
Package local implements Leros built-in file-backed memory. |
|
internal/runnable
Package runnable provides background task runners with recover and keep-alive.
|
Package runnable provides background task runners with recover and keep-alive. |
|
internal/skill/builtin
Package builtin 提供外部 CLI 引擎的编排服务。
|
Package builtin 提供外部 CLI 引擎的编排服务。 |
|
internal/skill/cache
Package cache 提供 Skill 包的 storage-go 缓存能力。
|
Package cache 提供 Skill 包的 storage-go 缓存能力。 |
|
internal/skill/fetch
Package fetch 提供从远程源发现和下载 Skill 的能力。
|
Package fetch 提供从远程源发现和下载 Skill 的能力。 |
|
internal/skill/store
Package store persists user-managed skills under the Leros workspace.
|
Package store persists user-managed skills under the Leros workspace. |
|
internal/worker/command
Package command 提供统一的 Worker Command 分发器。
|
Package command 提供统一的 Worker Command 分发器。 |
|
internal/worker/command/interaction
Package interaction 处理 cmd.interaction lane 的交互式命令 (approval.resolve 和 question.answer),通过 Resolver 接口转发。
|
Package interaction 处理 cmd.interaction lane 的交互式命令 (approval.resolve 和 question.answer),通过 Resolver 接口转发。 |
|
internal/worker/command/run
Package run 提供 worker agent run 命令的 cmd.run lane handler。
|
Package run 提供 worker agent run 命令的 cmd.run lane handler。 |
|
internal/worker/command/run/inbox
Package inbox provides a strongly-typed durable inbox for worker run commands.
|
Package inbox provides a strongly-typed durable inbox for worker run commands. |
|
internal/worker/command/skill
Package skill handles cmd.skill lane commands (install, list, detail, uninstall, import).
|
Package skill handles cmd.skill lane commands (install, list, detail, uninstall, import). |
|
internal/worker/eventpub
Package eventpub publishes fully constructed Worker business events.
|
Package eventpub publishes fully constructed Worker business events. |
|
internal/worker/mcp
Package mcp 通过 Model Context Protocol 暴露 Leros 运行时能力。
|
Package mcp 通过 Model Context Protocol 暴露 Leros 运行时能力。 |
|
internal/worker/router
Package router 提供 Worker HTTP 服务的 Gin 路由组装。
|
Package router 提供 Worker HTTP 服务的 Gin 路由组装。 |
|
internal/worker/run
Package run provides the Worker-side RunCoordinator.
|
Package run provides the Worker-side RunCoordinator. |
|
internal/worker/runtimehost
Package runtimehost provides Worker-specific implementations of agent ports.
|
Package runtimehost provides Worker-specific implementations of agent ports. |
|
internal/workspace
Package workspace 提供 Agent 任务运行所需的共享文件系统约定。
|
Package workspace 提供 Agent 任务运行所需的共享文件系统约定。 |
|
pkg/event
event 包提供事件定义的共享类型
|
event 包提供事件定义的共享类型 |
|
pkg/leros
Package leros provides shared Leros filesystem conventions.
|
Package leros provides shared Leros filesystem conventions. |
|
pkg/llmprotocol
Package llmprotocol provides provider protocol conversion for LLM requests and responses.
|
Package llmprotocol provides provider protocol conversion for LLM requests and responses. |
|
pkg/messaging
Package messaging 是 server、worker 共同依赖的消息契约层。
|
Package messaging 是 server、worker 共同依赖的消息契约层。 |
|
pkg/seqtracker
Package seqtracker tracks NATS JetStream message sequence numbers in SQLite for crash recovery.
|
Package seqtracker tracks NATS JetStream message sequence numbers in SQLite for crash recovery. |
|
pkg/utils
Package utils provides small shared helpers for common value handling.
|
Package utils provides small shared helpers for common value handling. |
|
pkg/workerpool
Package workerpool provides a fixed-size goroutine pool with blocking submit.
|
Package workerpool provides a fixed-size goroutine pool with blocking submit. |
|
tools
tools 包定义 Leros 的最小 Tool 抽象。
|
tools 包定义 Leros 的最小 Tool 抽象。 |
|
tools/artifact_declare
Package artifact_declare provides a tool for declaring project artifacts produced during a task execution.
|
Package artifact_declare provides a tool for declaring project artifacts produced during a task execution. |
|
tools/memory
Package memory exposes Leros built-in memory as a runtime tool.
|
Package memory exposes Leros built-in memory as a runtime tool. |
|
tools/node
Package nodetools provides worker-local tools for operating an assistant node.
|
Package nodetools provides worker-local tools for operating an assistant node. |
|
tools/skill_manage
Package skillmanage exposes SkillStore mutations as a runtime tool.
|
Package skillmanage exposes SkillStore mutations as a runtime tool. |
|
tools/skill_use
Package skilluse provides the runtime tool for loading Leros skill documents.
|
Package skilluse provides the runtime tool for loading Leros skill documents. |
|
tools/todo
Package todo exposes the run-scoped runtime todo list as a Leros tool.
|
Package todo exposes the run-scoped runtime todo list as a Leros tool. |
|
types
types 包提供 Leros 的核心数据类型定义
|
types 包提供 Leros 的核心数据类型定义 |
|
docs
|
|
|
swagger
Package swagger Code generated by swaggo/swag.
|
Package swagger Code generated by swaggo/swag. |
Click to show internal directories.
Click to hide internal directories.