eve-manifest-authoring
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEve Manifest Authoring
Eve 清单编写指南
Keep the manifest as the single source of truth for build and deploy behavior.
将清单作为构建和部署行为的唯一可信来源。
Minimal skeleton (v2)
最小骨架(v2版本)
yaml
schema: eve/compose/v2
project: my-project
registry: "eve" # Use managed registry by default for Eve apps
services:
api:
build:
context: ./apps/api # Build context directory
dockerfile: Dockerfile # Optional, defaults to context/Dockerfile
# image omitted by default; when build is present, Eve derives image name from service key
ports: [3000]
environment:
NODE_ENV: production
x-eve:
ingress:
public: true
port: 3000
environments:
staging:
pipeline: deploy
pipeline_inputs:
some_key: default_value
pipelines:
deploy:
steps:
- name: build
action:
type: build # Builds all services with build: config
- name: release
depends_on: [build]
action:
type: release
- name: deploy
depends_on: [release]
action:
type: deployyaml
schema: eve/compose/v2
project: my-project
registry: "eve" # Use managed registry by default for Eve apps
services:
api:
build:
context: ./apps/api # Build context directory
dockerfile: Dockerfile # Optional, defaults to context/Dockerfile
# image omitted by default; when build is present, Eve derives image name from service key
ports: [3000]
environment:
NODE_ENV: production
x-eve:
ingress:
public: true
port: 3000
environments:
staging:
pipeline: deploy
pipeline_inputs:
some_key: default_value
pipelines:
deploy:
steps:
- name: build
action:
type: build # Builds all services with build: config
- name: release
depends_on: [build]
action:
type: release
- name: deploy
depends_on: [release]
action:
type: deployRegistry Image Labels
镜像仓库镜像标签
Some registries require package metadata for permission and ownership inheritance.
Add these labels to your Dockerfiles when supported by your registry:
dockerfile
LABEL org.opencontainers.image.source="https://github.com/YOUR_ORG/YOUR_REPO"
LABEL org.opencontainers.image.description="Service description"Why this matters: Metadata helps preserve repository ownership and improves traceability. The Eve builder injects these labels automatically, but including them in your Dockerfile is still recommended.
For multi-stage Dockerfiles, add the labels to the final stage (the production image).
部分镜像仓库需要包元数据来实现权限和所有权继承。当你的镜像仓库支持时,在Dockerfile中添加以下标签:
dockerfile
LABEL org.opencontainers.image.source="https://github.com/YOUR_ORG/YOUR_REPO"
LABEL org.opencontainers.image.description="Service description"重要性说明:元数据有助于保留代码仓库所有权并提高可追溯性。Eve构建器会自动注入这些标签,但仍建议在Dockerfile中手动添加。
对于多阶段Dockerfile,请将标签添加到最终阶段(生产镜像阶段)。
Registry Modes
镜像仓库模式
yaml
registry: "eve" # Eve-native registry (internal JWT auth)
registry: "none" # Disable registry handling (public images)
registry: # BYO registry (full object — see section below)
host: public.ecr.aws/w7c4v0w3
namespace: myorg
auth: { username_secret: REGISTRY_USERNAME, token_secret: REGISTRY_PASSWORD }For BYO/private registries, provide:
yaml
registry:
host: public.ecr.aws/w7c4v0w3
namespace: myorg
auth:
username_secret: REGISTRY_USERNAME
token_secret: REGISTRY_PASSWORDyaml
registry: "eve" # Eve-native registry (internal JWT auth)
registry: "none" # Disable registry handling (public images)
registry: # BYO registry (full object — see section below)
host: public.ecr.aws/w7c4v0w3
namespace: myorg
auth: { username_secret: REGISTRY_USERNAME, token_secret: REGISTRY_PASSWORD }对于自定义/私有镜像仓库,请提供:
yaml
registry:
host: public.ecr.aws/w7c4v0w3
namespace: myorg
auth:
username_secret: REGISTRY_USERNAME
token_secret: REGISTRY_PASSWORDManaged Databases
托管数据库
Declare platform-provisioned databases with :
x-eve.role: managed_dbyaml
services:
db:
x-eve:
role: managed_db
managed:
class: db.p1
engine: postgres
engine_version: "16"Not deployed to K8s — provisioned by the orchestrator on first deploy.
Reference managed values elsewhere: .
${managed.db.url}使用声明由平台提供的数据库:
x-eve.role: managed_dbyaml
services:
db:
x-eve:
role: managed_db
managed:
class: db.p1
engine: postgres
engine_version: "16"该服务不会部署到K8s中——会在首次部署时由编排器自动配置。在其他地方引用托管数据库的值:。
${managed.db.url}Eve-Migrate for Database Migrations
使用Eve-Migrate进行数据库迁移
Use the platform's migration runner instead of Flyway, TypeORM, or Knex. It uses plain SQL files with timestamp prefixes, tracked in :
schema_migrationsyaml
services:
migrate:
image: public.ecr.aws/w7c4v0w3/eve-horizon/migrate:latest
environment:
DATABASE_URL: ${managed.db.url}
MIGRATIONS_DIR: /migrations
x-eve:
role: job
files:
- source: db/migrations
target: /migrationsMigration files: . The directive mounts them into the container at .
db/migrations/20260312000000_initial_schema.sqlx-eve.files/migrationsIn the pipeline, the migrate step must run after deploy (managed DB needs provisioning):
yaml
pipelines:
deploy:
steps:
- name: build
action: { type: build }
- name: release
depends_on: [build]
action: { type: release }
- name: deploy
depends_on: [release]
action: { type: deploy }
- name: migrate
depends_on: [deploy]
action: { type: job, service: migrate }For local dev, use the same image via Docker Compose for parity:
yaml
undefined使用平台提供的迁移运行器替代Flyway、TypeORM或Knex。它使用带时间戳前缀的纯SQL文件,记录在表中:
schema_migrationsyaml
services:
migrate:
image: public.ecr.aws/w7c4v0w3/eve-horizon/migrate:latest
environment:
DATABASE_URL: ${managed.db.url}
MIGRATIONS_DIR: /migrations
x-eve:
role: job
files:
- source: db/migrations
target: /migrations迁移文件示例:。指令会将这些文件挂载到容器的目录下。
db/migrations/20260312000000_initial_schema.sqlx-eve.files/migrations在流水线中,迁移步骤必须在部署完成后运行(托管数据库需要先完成配置):
yaml
pipelines:
deploy:
steps:
- name: build
action: { type: build }
- name: release
depends_on: [build]
action: { type: release }
- name: deploy
depends_on: [release]
action: { type: deploy }
- name: migrate
depends_on: [deploy]
action: { type: job, service: migrate }在本地开发环境中,使用相同的镜像通过Docker Compose保持一致性:
yaml
undefineddocker-compose.yml
docker-compose.yml
services:
migrate:
image: public.ecr.aws/w7c4v0w3/eve-horizon/migrate:latest
environment:
DATABASE_URL: postgres://app:app@db:5432/myapp
volumes:
- ./db/migrations:/migrations:ro
depends_on:
db: { condition: service_healthy }
undefinedservices:
migrate:
image: public.ecr.aws/w7c4v0w3/eve-horizon/migrate:latest
environment:
DATABASE_URL: postgres://app:app@db:5432/myapp
volumes:
- ./db/migrations:/migrations:ro
depends_on:
db: { condition: service_healthy }
undefinedLegacy manifests
旧版清单
If the repo still uses from older manifests, migrate to
and add . Keep ports and env keys the same.
components:services:schema: eve/compose/v2如果代码仓库仍使用旧版清单中的字段,请迁移到并添加。保持端口和环境变量键不变。
components:services:schema: eve/compose/v2Services
服务配置
- Provide and optionally
image(context and dockerfile).build - Use ,
ports,environment,healthcheckas needed.depends_on - Use and
x-eve.external: truefor externally hosted services.x-eve.connection_url - Use for one-off services (migrations, seeds). For database migrations, prefer Eve's
x-eve.role: jobimage (see below).eve-migrate
- 提供字段,可选提供
image配置(上下文目录和dockerfile)。build - 根据需要使用、
ports、environment、healthcheck字段。depends_on - 对于外部托管的服务,使用和
x-eve.external: true字段。x-eve.connection_url - 对于一次性服务(如迁移、数据初始化),使用。对于数据库迁移,优先使用Eve的
x-eve.role: job镜像(见上文)。eve-migrate
Build configuration
构建配置
Services with Docker images should define their build configuration:
yaml
services:
api:
build:
context: ./apps/api # Build context directory
dockerfile: Dockerfile # Optional, defaults to context/Dockerfile
# image: api # optional if using build; managed registry derives this
ports: [3000]Note: Every deploy pipeline should include a step before . The build step creates tracked BuildSpec/BuildRun records and produces image digests that releases use for deterministic deployments.
buildrelease带有Docker镜像的服务应定义其构建配置:
yaml
services:
api:
build:
context: ./apps/api # Build context directory
dockerfile: Dockerfile # Optional, defaults to context/Dockerfile
# image: api # optional if using build; managed registry derives this
ports: [3000]注意:每个部署流水线应在步骤之前包含步骤。构建步骤会创建可追踪的BuildSpec/BuildRun记录,并生成镜像摘要,供发布步骤用于确定性部署。
releasebuildLocal dev alignment
本地开发对齐
- Keep service names and ports aligned with Docker Compose.
- Prefer and use
${secret.KEY}for local values..eve/dev-secrets.yaml
- 保持服务名称和端口与Docker Compose一致。
- 优先使用,并在
${secret.KEY}中设置本地开发值。.eve/dev-secrets.yaml
Environments, pipelines, workflows
环境、流水线与工作流
- Link each environment to a pipeline via .
environments.<env>.pipeline - When is set,
pipelinetriggers that pipeline instead of direct deploy.eve env deploy <env> - Use to provide default inputs for pipeline runs.
environments.<env>.pipeline_inputs - Override inputs at runtime with .
eve env deploy <env> --ref <sha> --inputs '{"key":"value"}' --repo-dir ./my-app - Use flag to bypass pipeline and do direct deploy:
--direct.eve env deploy <env> --ref <sha> --direct --repo-dir ./my-app - Pipeline steps can be ,
action, orscript.agent - Use for PR automation when configured.
action.type: create-pr - Workflows live under and are invoked via CLI;
workflowsis honored.db_access - Workflow steps support ,
harness, andharness_profileper step (overrides agent-resolved values),harness_optionsfor skip-if-false gating against upstream step status, andconditioncontrols (now correctly materialized at dispatch). Seegitfor the full step shape.references/manifest.md - Workflow- and step-level blocks narrow the step job token and org filesystem mount. Supported axes:
scope,orgfs,orgdocs,envdb. Step scope intersects workflow scope — invocation scope may narrow but not widen. Use it to grant a step exactly the paths/tables/mounts it needs, default-deny everything else.cloud_fs
yaml
workflows:
create-design:
scope:
orgfs: { allow_prefixes: [/groups/projects/proj-a/**] }
steps:
- name: publish
scope:
cloud_fs: { allow_mount_ids: [mount_a] }
agent: { name: publisher }Request-supplied (workflow invoke API body) requires . No CLI flag yet.
scopejobs:harness_override--scope-*- 通过将每个环境与流水线关联。
environments.<env>.pipeline - 设置字段后,
pipeline会触发该流水线而非直接部署。eve env deploy <env> - 使用为流水线运行提供默认输入参数。
environments.<env>.pipeline_inputs - 在运行时通过覆盖输入参数。
eve env deploy <env> --ref <sha> --inputs '{"key":"value"}' --repo-dir ./my-app - 使用标志绕过流水线直接部署:
--direct。eve env deploy <env> --ref <sha> --direct --repo-dir ./my-app - 流水线步骤可以是、
action或script类型。agent - 配置完成后,使用实现PR自动化。
action.type: create-pr - 工作流定义在字段下,可通过CLI调用;
workflows权限会被生效。db_access - 工作流步骤支持每个步骤设置、
harness和harness_profile(覆盖代理解析的值),支持harness_options用于根据上游步骤状态判断是否跳过,还支持condition控制(现在会在调度时正确实例化)。完整的步骤定义请参考git。references/manifest.md - 工作流和步骤级别的块可缩小步骤作业令牌和组织文件系统挂载范围。支持的维度包括:
scope、orgfs、orgdocs、envdb。步骤范围与工作流范围相交——调用范围可以缩小但不能扩大。使用它为步骤授予恰好需要的路径/表/挂载权限,默认拒绝所有其他权限。cloud_fs
yaml
workflows:
create-design:
scope:
orgfs: { allow_prefixes: [/groups/projects/proj-a/**] }
steps:
- name: publish
scope:
cloud_fs: { allow_mount_ids: [mount_a] }
agent: { name: publisher }请求提供的(工作流调用API请求体)需要权限。目前尚未支持 CLI标志。
scopejobs:harness_override--scope-*Custom Domains and Stable Egress
自定义域名与稳定出口
Bring-your-own hostnames and opt-in network shape are declared per service:
yaml
services:
api:
x-eve:
ingress:
public: true
port: 3000
domains: ["app.example.com", "www.example.com"] # max 10
networking:
egress: stable # default 'nat'; opt in only when a vendor needs allowlisted source IPs- are bound on first deploy: the first env to deploy with a hostname owns it; other envs that reference the same hostname log
ingress.domainsand skip rendering. Operate ownership withowned by environment "<A>"(seeeve domain list|verify|status|transfer|unbind|remove).eve-deploy-debugging - schedules the pod on the stable-egress node group with
networking.egress: stable. It bypasses NAT and constrains scheduling — only opt in when needed.hostNetwork: true
See for the full field shape (validation rules, max counts, per-env overrides).
references/manifest.md每个服务可声明自定义主机名和可选的网络形态:
yaml
services:
api:
x-eve:
ingress:
public: true
port: 3000
domains: ["app.example.com", "www.example.com"] # max 10
networking:
egress: stable # default 'nat'; opt in only when a vendor needs allowlisted source IPs- 会在首次部署时绑定:第一个部署该主机名的环境将拥有其所有权;其他引用同一主机名的环境会记录
ingress.domains并跳过渲染。使用owned by environment "<A>"管理所有权(参考eve domain list|verify|status|transfer|unbind|remove)。eve-deploy-debugging - 会将Pod调度到带有
networking.egress: stable的稳定出口节点组。它会绕过NAT并限制调度——仅在必要时启用。hostNetwork: true
完整的字段定义(验证规则、最大数量、环境级覆盖)请参考。
references/manifest.mdProject Branding And Auth
项目品牌与认证
App-facing login, invite emails, and magic-link emails are project-scoped and declared in / . writes both onto the project record; the SSO broker and Eve API mailer read from there.
x-eve.brandingx-eve.autheve project sync面向应用的登录、邀请邮件和魔法链接邮件是项目级别的,可在 / 中声明。会将这些配置写入项目记录;SSO代理和Eve API邮件服务会读取这些配置。
x-eve.brandingx-eve.autheve project syncx-eve.branding
— invite + magic-link email branding
x-eve.brandingx-eve.branding
— 邀请邮件与魔法链接邮件品牌配置
x-eve.brandingyaml
x-eve:
branding:
app_name: "ACME Portal" # required, <=60 chars
app_logo_url: "https://app.example.com/logo.svg" # https only on emitted mail
primary_color: "#1f6feb" # six-digit hex
email_from_name: "ACME Portal" # From-name header
reply_to_email: "support@example.com"
support_email: "support@example.com"
support_url: "https://example.com/help"email_from_namereply_to_emailsupport_emailyaml
x-eve:
branding:
app_name: "ACME Portal" # required, <=60 chars
app_logo_url: "https://app.example.com/logo.svg" # https only on emitted mail
primary_color: "#1f6feb" # six-digit hex
email_from_name: "ACME Portal" # From-name header
reply_to_email: "support@example.com"
support_email: "support@example.com"
support_url: "https://example.com/help"email_from_namereply_to_emailsupport_emailx-eve.auth.login_method: magic_link
— passwordless apps
x-eve.auth.login_method: magic_linkx-eve.auth.login_method: magic_link
— 无密码应用
x-eve.auth.login_method: magic_linkyaml
x-eve:
auth:
login_method: magic_link # password_or_magic_link | password | magic_link
self_signup: false
invite_requires_password: falseOpt in per project. With , the SSO login page hides password and signup, and Eve API sends branded magic-link mail via (not GoTrue direct), so unknown emails get generic success without creating a GoTrue user when . With , invite acceptance establishes the session and skips . Use to keep password login plus a secondary branded magic-link control.
magic_linkPOST /auth/magic-linkself_signup: falseinvite_requires_password: false/set-passwordpassword_or_magic_linkyaml
x-eve:
auth:
login_method: magic_link # password_or_magic_link | password | magic_link
self_signup: false
invite_requires_password: false按项目启用该配置。设置为时,SSO登录页面会隐藏密码和注册选项,Eve API会通过发送品牌化的魔法链接邮件(而非直接调用GoTrue),因此当时,未知邮箱会收到通用成功提示,不会创建GoTrue用户。设置时,接受邀请会直接建立会话并跳过步骤。使用可同时保留密码登录和品牌化魔法链接登录选项。
magic_linkPOST /auth/magic-linkself_signup: falseinvite_requires_password: false/set-passwordpassword_or_magic_linkx-eve.auth.org_access.domain_signup
— pre-approved email domains
x-eve.auth.org_access.domain_signupx-eve.auth.org_access.domain_signup
— 预批准邮箱域名
x-eve.auth.org_access.domain_signupyaml
x-eve:
auth:
org_access:
mode: allowlist
allowed_orgs: [org_acme, org_partner]
domain_signup:
enabled: true
domains:
- { domain: acme.com, target_org: org_acme, role: member }
- { domain: partner.example, target_org: org_partner }
- { domain: "*.acme.com", target_org: org_acme } # wildcard; apex needs its own rulev2 shape (2026-05-12). Each entry is an object with its own required ; the legacy list-of-strings + block-level is no longer accepted. Each must already appear in . Matching is first-rule-in-declaration-order; declare more-specific patterns first. Invalid with . Free-email domains (, , ...) emit a coherence warning — declaring them lets anyone on Earth join.
domains[]target_orgtarget_orgtarget_orgallowed_orgslogin_method: passwordfree-mail.exampleoutlook.comyaml
x-eve:
auth:
org_access:
mode: allowlist
allowed_orgs: [org_acme, org_partner]
domain_signup:
enabled: true
domains:
- { domain: acme.com, target_org: org_acme, role: member }
- { domain: partner.example, target_org: org_partner }
- { domain: "*.acme.com", target_org: org_acme } # wildcard; apex needs its own rulev2版本格式(2026-05-12)。每个条目是一个对象,必须包含;不再接受旧版的字符串列表+块级格式。每个必须已在中存在。匹配规则按声明顺序优先;请先声明更具体的模式。该配置与不兼容。免费邮箱域名(如、等)会发出一致性警告——声明这些域名会允许任何人加入。
domains[]target_orgtarget_orgtarget_orgallowed_orgslogin_method: passwordfree-mail.exampleoutlook.comx-eve.auth.allowed_redirect_origins
— custom-domain apps
x-eve.auth.allowed_redirect_originsx-eve.auth.allowed_redirect_origins
— 自定义域名应用
x-eve.auth.allowed_redirect_originsyaml
x-eve:
auth:
allowed_redirect_origins:
- https://app.example.com
- https://www.example.comOrigins only — . Paths, queries, fragments, and userinfo are rejected at sync. permitted only for , loopback IPs, and . The SSO broker also auto-includes the project's eligible rows and (in mode) custom domains owned by siblings, so a project with a registered custom domain does not need to repeat it here. Confirm the resolved list with .
scheme://host[:port]http://localhost*.lvh.mecustom_domainsallowlistallowed_orgseve project auth-context <project_id>See for full validation rules (email-domain grammar, IDN normalization, duplicate detection, redirect-origin normalization).
references/manifest.mdyaml
x-eve:
auth:
allowed_redirect_origins:
- https://app.example.com
- https://www.example.com仅允许源地址格式——。路径、查询参数、片段和用户信息会在同步时被拒绝。仅允许、环回IP和使用。SSO代理还会自动包含项目的合格条目,以及(在模式下)关联的自定义域名,因此已注册自定义域名的项目无需在此重复声明。使用确认最终的允许列表。
scheme://host[:port]localhost*.lvh.mehttp://custom_domainsallowlistallowed_orgseve project auth-context <project_id>完整的验证规则(邮箱域名语法、IDN规范化、重复检测、重定向源规范化)请参考。
references/manifest.mdService Token Permissions
服务令牌权限
Every deployed service receives an auto-injected with read-only defaults. Declare any write scopes you need explicitly — anything not declared is denied:
EVE_SERVICE_TOKENyaml
services:
api:
x-eve:
permissions: [jobs:write, events:write, threads:write]Declared permissions are merged with the read-only defaults; you only list what you add. Default to declaring nothing and grant write scopes one at a time as the service actually needs them. See for the full permission catalog.
references/manifest.md每个已部署的服务会自动注入一个,默认仅拥有只读权限。请明确声明所需的任何写入权限——未声明的权限都会被拒绝:
EVE_SERVICE_TOKENyaml
services:
api:
x-eve:
permissions: [jobs:write, events:write, threads:write]声明的权限会与默认只读权限合并;你只需列出需要添加的权限。默认情况下无需声明任何权限,仅在服务实际需要时逐个授予写入权限。完整的权限列表请参考。
references/manifest.mdPlatform-Injected Environment Variables
平台注入的环境变量
Eve automatically injects these into all deployed service containers:
| Variable | Description |
|---|---|
| Internal cluster URL for server-to-server calls |
| Public ingress URL for browser-facing apps |
| The project ID |
| The organization ID |
| The environment name |
Use for backend calls from your container. Use for
browser/client-side code. Services can override these in their section.
EVE_API_URLEVE_PUBLIC_API_URLenvironmentEve会自动将以下环境变量注入所有已部署的服务容器:
| 变量名 | 描述 |
|---|---|
| 用于服务器间调用的集群内部URL |
| 面向浏览器应用的公开入口URL |
| 项目ID |
| 组织ID |
| 环境名称 |
在容器内的后端调用中使用。在浏览器/客户端代码中使用。服务可在自身的部分覆盖这些变量。
EVE_API_URLEVE_PUBLIC_API_URLenvironmentInterpolation and secrets
插值与密钥
- Env interpolation: ,
${ENV_NAME},${PROJECT_ID},${ORG_ID},${ORG_SLUG}.${COMPONENT_NAME} - Secret interpolation: pulls from Eve secrets or
${secret.KEY}..eve/dev-secrets.yaml - Managed DB interpolation: resolves at deploy time.
${managed.<service>.<field>} - Use for local overrides; set real secrets via the API for production.
.eve/dev-secrets.yaml
- 环境变量插值:、
${ENV_NAME}、${PROJECT_ID}、${ORG_ID}、${ORG_SLUG}。${COMPONENT_NAME} - 密钥插值:会从Eve密钥或
${secret.KEY}中获取值。.eve/dev-secrets.yaml - 托管数据库插值:会在部署时解析。
${managed.<service>.<field>} - 使用进行本地开发覆盖;生产环境的真实密钥通过API设置。
.eve/dev-secrets.yaml
Eve extensions
Eve扩展
- Top-level defaults via (env, harness, harness_profile, harness_options, hints, git, workspace).
x-eve.defaults - Top-level agent policy via (profiles, councils, availability rules).
x-eve.agents - Agent packs via with optional
x-eve.packsdefaults.x-eve.install_agents - Agent config paths via and
x-eve.agents.config_path.x-eve.agents.teams_path - Chat routing config via .
x-eve.chat.config_path - Service extensions under (ingress, role, api specs, worker pools, cli, object_store, networking, permissions).
x-eve - API specs: or
x-eve.api_spec(spec URL relative to service by default).x-eve.api_specs - App CLI: declares an agent-friendly CLI for the service (see below).
x-eve.cli - Toolchains: agent-level declarations inject on-demand runtimes (see below).
toolchains - Cloud FS mounts: configured via integrations, not the manifest (see ).
references/integrations.md - Per-org OAuth: each org registers its own OAuth app credentials via (see
eve integrations configure).eve-auth-and-secrets
Example:
yaml
x-eve:
agents:
version: 1
config_path: agents/agents.yaml
teams_path: agents/teams.yaml
chat:
config_path: agents/chat.yaml
install_agents: [claude-code, codex]
packs:
- source: ./skillpacks/my-pack- 通过设置顶层默认值(环境、harness、harness_profile、harness_options、提示、git、工作区)。
x-eve.defaults - 通过设置顶层代理策略(配置文件、委员会、可用性规则)。
x-eve.agents - 通过设置代理包,可选择设置
x-eve.packs默认值。x-eve.install_agents - 通过和
x-eve.agents.config_path设置代理配置路径。x-eve.agents.teams_path - 通过设置聊天路由配置。
x-eve.chat.config_path - 服务级扩展在下定义(入口、角色、API规范、工作池、CLI、对象存储、网络、权限)。
x-eve - API规范:或
x-eve.api_spec(默认相对于服务的规范URL)。x-eve.api_specs - 应用CLI:声明面向代理的服务CLI(见下文)。
x-eve.cli - 工具链:代理级别的声明会注入按需运行时(见下文)。
toolchains - 云文件系统挂载:通过集成系统配置,而非清单(参考)。
references/integrations.md - 按组织OAuth:每个组织通过注册自己的OAuth应用凭证(参考
eve integrations configure)。eve-auth-and-secrets
示例:
yaml
x-eve:
agents:
version: 1
config_path: agents/agents.yaml
teams_path: agents/teams.yaml
chat:
config_path: agents/chat.yaml
install_agents: [claude-code, codex]
packs:
- source: ./skillpacks/my-packApp CLI Framework
应用CLI框架
Recommended for every app with an API. Wrap your service API in a CLI and register it here. Agents strongly prefer CLI commands over raw REST — CLIs handle auth, URL construction, and error formatting transparently. This is the Eve way: coding agents should build a CLI in the repo and register it in the manifest rather than having agents call APIs directly.
The platform auto-discovers services with or from the manifest and makes them available on for all agent jobs in the project — no explicit needed. Just declare the CLI here and all agents get it.
x-eve.clix-eve.api_spec$PATHwith_apisyaml
services:
api:
x-eve:
api_spec:
type: openapi
cli:
name: myapp # Binary name (goes on $PATH)
bin: cli/bin/myapp # Path relative to repo root (pre-bundled)For compiled CLIs, use an image-based distribution:
yaml
services:
api:
x-eve:
cli:
name: myapp
image: ghcr.io/org/myapp-cli:latest # Pre-built image推荐所有带API的应用使用。将服务API包装为CLI并在此处注册。代理更倾向于使用CLI命令而非原始REST接口——CLI会透明处理认证、URL构造和错误格式化。这是Eve的最佳实践:编码代理应在代码仓库中构建CLI并在清单中注册,而非直接调用API。
平台会自动从清单中发现带有或的服务,并将其添加到项目中所有代理作业的中——无需显式设置。只需在此处声明CLI,所有代理即可使用。
x-eve.clix-eve.api_spec$PATHwith_apisyaml
services:
api:
x-eve:
api_spec:
type: openapi
cli:
name: myapp # Binary name (goes on $PATH)
bin: cli/bin/myapp # Path relative to repo root (pre-bundled)对于编译后的CLI,使用基于镜像的分发方式:
yaml
services:
api:
x-eve:
cli:
name: myapp
image: ghcr.io/org/myapp-cli:latest # Pre-built imageHow It Works
工作原理
- Manifest sync stores CLI metadata alongside .
api_spec - Job workspace setup (after clone) runs and symlinks the binary to
chmod +x./usr/local/bin/ - For image-based CLIs, an init container copies the binary from the image.
- The CLI reads and
EVE_APP_API_URL_{SERVICE}(already injected) -- no manual auth or URL configuration.EVE_JOB_TOKEN
- 清单同步会将CLI元数据与一起存储。
api_spec - 作业工作区设置(克隆后)会执行并将二进制文件链接到
chmod +x。/usr/local/bin/ - 对于基于镜像的CLI,初始化容器会从镜像中复制二进制文件。
- CLI会读取已注入的和
EVE_APP_API_URL_{SERVICE}——无需手动配置认证或URL。EVE_JOB_TOKEN
CLI naming rules
CLI命名规则
- Lowercase alphanumeric with hyphens:
[a-z][a-z0-9-]* - Must be unique per project
- The name becomes the command agents invoke (e.g., )
eden projects list
- 小写字母数字加连字符:
[a-z][a-z0-9-]* - 每个项目内必须唯一
- 名称即为代理调用的命令(例如:)
eden projects list
Worker Toolchain Declarations
工作者工具链声明
Agents declare which runtime toolchains they need. The platform injects them as init containers -- no fat worker image required.
yaml
undefined代理会声明所需的运行时工具链。平台会将其作为初始化容器注入——无需使用臃肿的工作者镜像。
yaml
undefinedIn agents.yaml
In agents.yaml
agents:
data-analyst:
name: Data Analyst
skill: analyze-data
harness_profile: claude-sonnet
toolchains: [python] # Needs python + uv
doc-processor:
name: Document Processor
skill: process-documents
harness_profile: claude-sonnet
toolchains: [media] # Needs ffmpeg + whisper
Available toolchains: `python`, `media`, `rust`, `java`, `kotlin`.
Workflows can override agent defaults:
```yaml
workflows:
process-document:
steps:
- name: process
agent: doc-processor
toolchains: [media, python] # Override: needs bothToolchains are mounted at with binaries on . The default worker image is (~800MB); toolchains add only what each job needs.
/opt/eve/toolchains/{name}/$PATHbaseagents:
data-analyst:
name: Data Analyst
skill: analyze-data
harness_profile: claude-sonnet
toolchains: [python] # Needs python + uv
doc-processor:
name: Document Processor
skill: process-documents
harness_profile: claude-sonnet
toolchains: [media] # Needs ffmpeg + whisper
可用工具链:`python`、`media`、`rust`、`java`、`kotlin`。
工作流可覆盖代理默认配置:
```yaml
workflows:
process-document:
steps:
- name: process
agent: doc-processor
toolchains: [media, python] # Override: needs both工具链会挂载到,二进制文件会添加到。默认工作者镜像为(约800MB);工具链仅会添加每个作业所需的内容。
/opt/eve/toolchains/{name}/$PATHbaseCloud FS Mounts
云文件系统挂载
Google Drive folders can be mounted into the org filesystem via cloud FS integrations. Configuration is through the integrations system, not the manifest.
bash
undefined可通过云文件系统集成将Google Drive文件夹挂载到组织文件系统。配置通过集成系统完成,而非清单。
bash
undefinedOrg admin registers Google Drive OAuth app credentials (BYOA)
Org admin registers Google Drive OAuth app credentials (BYOA)
eve integrations configure google-drive
--client-id "xxx.apps.googleusercontent.com"
--client-secret "GOCSPX-xxx"
--client-id "xxx.apps.googleusercontent.com"
--client-secret "GOCSPX-xxx"
eve integrations configure google-drive
--client-id "xxx.apps.googleusercontent.com"
--client-secret "GOCSPX-xxx"
--client-id "xxx.apps.googleusercontent.com"
--client-secret "GOCSPX-xxx"
Connect and mount a Drive folder
Connect and mount a Drive folder
eve integrations connect google-drive
eve cloud-fs mount --org org_xxx
--provider google-drive
--folder-id <drive-folder-id>
--label "Shared Drive"
--provider google-drive
--folder-id <drive-folder-id>
--label "Shared Drive"
Developers browse mounted content with `eve cloud-fs ls` and search it with `eve cloud-fs search`. The mount stores the provider folder ID plus an optional human-readable root-folder path hint; there is no separate CLI `--mount-path` setting.eve integrations connect google-drive
eve cloud-fs mount --org org_xxx
--provider google-drive
--folder-id <drive-folder-id>
--label "Shared Drive"
--provider google-drive
--folder-id <drive-folder-id>
--label "Shared Drive"
开发者可使用`eve cloud-fs ls`浏览挂载内容,使用`eve cloud-fs search`搜索内容。挂载会存储提供商文件夹ID和可选的人类可读根文件夹路径提示;目前没有单独的CLI `--mount-path`设置。App Object Store
应用对象存储
Declare app-scoped object storage buckets in the manifest. Each bucket is
provisioned per environment during deploy, tracked in , and
credentials are injected as environment variables.
eve env diagnoseyaml
services:
api:
x-eve:
object_store:
buckets:
- name: uploads
visibility: private
- name: avatars
visibility: public
cors:
origins: ["*"]
methods: [GET, PUT, HEAD]
max_age_seconds: 3600在清单中声明应用级对象存储桶。每个桶会在部署时按环境配置,可通过追踪,凭证会作为环境变量注入。
eve env diagnoseyaml
services:
api:
x-eve:
object_store:
buckets:
- name: uploads
visibility: private
- name: avatars
visibility: public
cors:
origins: ["*"]
methods: [GET, PUT, HEAD]
max_age_seconds: 3600Auto-Injected Storage Environment Variables
自动注入的存储环境变量
When object store buckets are provisioned, these env vars are injected into the service container:
| Variable | Description |
|---|---|
| S3-compatible endpoint URL |
| Storage region |
| App-facing access key |
| App-facing secret key |
| Physical bucket name for each logical bucket |
| |
On AWS staging, apps currently share one app-bucket IAM principal scoped to
. It cannot access platform internal buckets or org filesystem
buckets, but it does not isolate app buckets from each other. Per-app IRSA is
the production follow-up.
demo-eve-app-*当对象存储桶配置完成后,以下环境变量会注入到服务容器:
| 变量名 | 描述 |
|---|---|
| 兼容S3的端点URL |
| 存储区域 |
| 应用级访问密钥 |
| 应用级密钥 |
| 每个逻辑桶对应的物理桶名称 |
| MinIO本地开发环境设置为 |
在AWS预发布环境中,应用目前共享一个范围为的应用桶IAM主体。它无法访问平台内部桶或组织文件系统桶,但不会隔离不同应用的桶。生产环境会跟进实现按应用IRSA。
demo-eve-app-*Design Rules
设计规则
- One bucket per concern. Separate from
uploadsfromavatars.exports - Set visibility intentionally. Only buckets serving public assets should be .
visibility: public - Use CORS for browser uploads. Set and
cors.originswhen the frontend uploads directly via presigned URLs.cors.methods - Bucket names must be unique within a service. The platform derives the physical bucket name from the project, environment, and logical name.
For detailed storage layer documentation, see the skill: .
eve-read-eve-docsreferences/object-store-filesystem.md- 按用途划分桶:将、
uploads、avatars分开。exports - 明确设置可见性:仅服务于公开资源的桶才设置为。
visibility: public - 浏览器上传需配置CORS:当前端通过预签名URL直接上传时,设置和
cors.origins。cors.methods - 桶名在服务内必须唯一:平台会根据项目、环境和逻辑名称生成物理桶名称。
详细的存储层文档请参考技能:。
eve-read-eve-docsreferences/object-store-filesystem.md