Skip to content

迁移项目资源目录:从 .opencode 切换到 .Aether #137

@Spin-Particle

Description

@Spin-Particle

背景

为了进一步与上游 OpenCode 解耦,项目计划将仓库内和项目级资源目录从 .opencode 迁移为 .Aether

本次迁移聚焦于项目资源目录本身,不涉及高风险的全局安装路径、数据库路径、环境变量命名或包作用域调整,以尽量减少对现有功能的影响。

本次改动

  • 将仓库内默认资源目录从 .opencode 迁移到 .Aether
  • 运行时配置查找改为优先读取 .Aether,同时兼容旧的 .opencode
  • 项目级写入路径切换到 .Aether
    • agent
    • plans
  • 打包输入切换到 .Aether
    • CLI 打包
    • 桌面端打包
  • 更新少量与目录相关的提示文案
  • 补充测试,覆盖 .Aether 默认路径与 .opencode 兼容路径

不在本次范围内

  • packages/opencode 目录名
  • @opencode-ai/* 包作用域
  • OPENCODE_* 环境变量
  • ~/.config/opencode
  • ~/.local/share/opencode
  • ~/.opencode/bin
  • opencode.db 等持久化文件
  • x-opencode-* 协议或请求头

验证

已完成:

  • packages/opencode 类型检查通过
  • 重点测试通过:
    • test/config/config.test.ts
    • test/config/tui.test.ts
    • test/agent/agent.test.ts
    • test/file/ripgrep.test.ts

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions