SuperAPI AI 工具集

package-walter-green

编程与开发

查看项目

更新于 10-16 02:38

技能介绍

用途:在用户当前目录初始化或操作 walter 项目,创建并管理一台远程开发机。

主要能力:provision 一台机器并写入 ssh 配置块,使 ssh <profile> 可直达;支持关机与开机(start 会等待运行态并刷新地址)。create 会无条件安装 nix、Ghostty terminfo 条目及面向非特权 cloudflared 的内核网络设置。设置 github-account 后,create 会用设备流登录机器自身 gh 并配置 git 提交身份;设置 emacs-config-repo 后会安装 Emacs(从固定 nixpkgs 构建)并以机器自身 token 经 https 克隆配置。converge-nix 与 converge-asdf 只作用于已存在且运行的机器,通过 ssh 别名操作,不使用 OpenTofu 状态;可加 --dry-run,任务可重复运行。

必要用法:将 green 载荷复制到项目根目录并 chmod +x,编写 colors.yml,使用 ./green build(仅渲染,不联网)、./green create --dry-run(打印图,不触碰资源)、./green create、./green stop、./green start、./green converge-nix、./green converge-asdf、./green delete。-f/--file 可覆盖 colors.yml。凭据一律通过 COLORS_PAR_* 环境变量传入,建议使用 gitignore 的 .envrc.private。

限制:默认使用 build 与 create --dry-run,真实 create/delete 需用户确认。COLORS_PAR_PROFILE 设置时拒绝运行。不可编辑 .colors/。删除前须提醒机器上有未提交工作且启动卷一并消失;compute-prevent-destroy 默认 true。nix 与 emacs 通过登录 shell 的 /etc/profile.d/nix.sh 进入 PATH,一次性 ssh 命令看不到。首次启动 Emacs 会拉取 ELPA/MELPA 并原编译,耗时属预期。当前版本为 v2;v1 说明已过时,应以仓库 README 与 AGENTS.md 为准。