refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s

- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名)
- 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块)
- docreader proto 描述符采用等长替换,保持序列化字节布局有效
- Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像
- 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
runny committed 2026-11-13 20:52:51 +08:00
1 parent 9097ee699d
commit 9058149576
3136 files changed
+18018 -18004

No files matched your search

+9 -9
View File
@@ -1,4 +1,4 @@
# WeKnora Sandbox Image
# Academy Sandbox Image
# Pre-built environment for executing agent skill scripts in Docker sandbox
# Multi-stage build, minimal dependencies
#
@@ -70,7 +70,7 @@ RUN npm install -g pnpm
# curl is not optional: the sandbox connectivity check probes egress with it,
# and skills that fetch a URL expect it to be there. The compression tools are
# here because skill bundles and their assets arrive archived. git backs
# per-turn workspace checkpoints (object store at /var/lib/weknora/workspace.git,
# per-turn workspace checkpoints (object store at /var/lib/academy/workspace.git,
# work tree /workspace) that session fork and rewind roll back to.
RUN apt-get update && apt-get install -y --no-install-recommends \
jq \
@@ -107,10 +107,10 @@ RUN mkdir -p /workspace/input /workspace/output && \
# Classic user@host:path prompt (colored). E2B's provisioner later appends
# `PS1='\w $ '`; the script reapplies this prompt via PROMPT_COMMAND so
# Cube, Docker, and E2B all show the same Debian-style line.
COPY docker/sandbox-pty-prompt.sh /etc/weknora/pty-prompt.sh
RUN echo '. /etc/weknora/pty-prompt.sh' > /etc/profile.d/zz-weknora-prompt.sh && \
echo '. /etc/weknora/pty-prompt.sh' >> /root/.bashrc && \
echo '. /etc/weknora/pty-prompt.sh' >> /home/user/.bashrc
COPY docker/sandbox-pty-prompt.sh /etc/academy/pty-prompt.sh
RUN echo '. /etc/academy/pty-prompt.sh' > /etc/profile.d/zz-academy-prompt.sh && \
echo '. /etc/academy/pty-prompt.sh' >> /root/.bashrc && \
echo '. /etc/academy/pty-prompt.sh' >> /home/user/.bashrc
WORKDIR /workspace
USER root
@@ -119,7 +119,7 @@ USER root
#
# envd is what Cube talks to for everything — the readiness probe that decides
# whether a template build succeeds, plus every later exec and file call. It
# runs as root and selects the account named in each request. WeKnora names
# runs as root and selects the account named in each request. Academy names
# root by default, matching the runtime stage.
#
# Built for amd64 and arm64: cubesandbox-base ships both, and Cube runs on
@@ -151,7 +151,7 @@ ENTRYPOINT ["/usr/local/bin/cube-entrypoint.sh"]
#
# Debian package names (runtime is python:3.12-slim, not Ubuntu). Do not run
# `yes | unminimize` — Debian has no such command. Do not clone noVNC; the
# WeKnora frontend uses @novnc/novnc and the sandbox only needs websockify.
# Academy frontend uses @novnc/novnc and the sandbox only needs websockify.
# procps supplies pgrep for the start script; util-linux supplies flock.
FROM runtime AS desktop-runtime
@@ -163,7 +163,7 @@ USER root
ENV DEBIAN_FRONTEND=noninteractive
# XFCE apps (mousepad, xfce4-terminal) decode files with the process locale.
# python:slim defaults to POSIX/C, which is why the desktop shows mojibake
# while the WeKnora terminal tab does not: that tab is xterm.js in the
# while the Academy terminal tab does not: that tab is xterm.js in the
# browser, and Cube/E2B already stamp LANG/LC_ALL on the envd PTY.
# C.UTF-8 is built into glibc; do not pull locales-all.
ENV LANG=C.UTF-8