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
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:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -14,7 +14,7 @@
|
||||
// Get/List → GET /containers/json?filters=label=…
|
||||
// Delete → DELETE /containers/{id}?force=1
|
||||
// Exec → POST /containers/{id}/exec → /exec/{id}/start (hijack)
|
||||
// Snapshot → POST /commit (skill images under weknora-skill/, fork images under weknora-fork/)
|
||||
// Snapshot → POST /commit (skill images under academy-skill/, fork images under academy-fork/)
|
||||
//
|
||||
// Every file operation uses exec with an explicit account (root by default),
|
||||
// timeout and activity tracking. Archive endpoints bypass those exec settings.
|
||||
@@ -23,7 +23,7 @@
|
||||
// See WriteFile for the limits of the file API's path guards.
|
||||
//
|
||||
// ListDir and Stat use `find -printf`, which needs GNU findutils in the image;
|
||||
// the standard WeKnora sandbox image provides it.
|
||||
// the standard Academy sandbox image provides it.
|
||||
//
|
||||
// Two Docker facts shape the rest of this file:
|
||||
//
|
||||
@@ -56,7 +56,7 @@ import (
|
||||
// dockerActivityMarker is touched by every exec and read by the idle sweeper.
|
||||
// It lives outside /workspace so a script cannot mistake it for its own data,
|
||||
// and outside /tmp so a tmpfs mount cannot hide it.
|
||||
const dockerActivityMarker = "/var/lib/weknora-sandbox-activity"
|
||||
const dockerActivityMarker = "/var/lib/academy-sandbox-activity"
|
||||
|
||||
// dockerSandboxEntrypoint keeps the container alive without running anything —
|
||||
// the container is a place to exec into, not a service — and prepares the
|
||||
@@ -213,7 +213,7 @@ func (c *DockerRemoteClient) Provider() RemoteProvider { return SandboxTypeDocke
|
||||
// Capabilities reports what this backend can do.
|
||||
//
|
||||
// SupportsTimeoutRefresh is false because the daemon has no timeout to
|
||||
// refresh: idle reclamation is WeKnora's own sweep, not a provider feature.
|
||||
// refresh: idle reclamation is Academy's own sweep, not a provider feature.
|
||||
// SupportsVolumes is false until the volume-mount surface is mapped onto
|
||||
// Docker named volumes; advertising it early would let a workspace configure
|
||||
// a mount that silently never appears. SupportsDesktop stays false: the
|
||||
@@ -656,7 +656,7 @@ func (c *DockerRemoteClient) removeQuietly(ctx context.Context, id string) {
|
||||
// The command is wrapped so that the container, not the client, enforces the
|
||||
// timeout: cancelling the HTTP request leaves the process running (verified in
|
||||
// docs/poc/docker-sandbox), which would let a runaway script keep burning the
|
||||
// host's CPU long after WeKnora reported a timeout to the user.
|
||||
// host's CPU long after Academy reported a timeout to the user.
|
||||
func (c *DockerRemoteClient) Exec(
|
||||
ctx context.Context,
|
||||
handle RemoteSandboxHandle,
|
||||
@@ -828,13 +828,13 @@ func dockerExecCommand(req RemoteExecRequest, timeout time.Duration) []string {
|
||||
return []string{
|
||||
"/bin/sh", "-c",
|
||||
touch + `exec timeout -s KILL ` + seconds + ` /bin/bash --noprofile --norc -c "$1"`,
|
||||
"weknora-exec", req.Command,
|
||||
"academy-exec", req.Command,
|
||||
}
|
||||
}
|
||||
argv := []string{
|
||||
"/bin/sh", "-c",
|
||||
touch + `exec timeout -s KILL ` + seconds + ` "$@"`,
|
||||
"weknora-exec", req.Command,
|
||||
"academy-exec", req.Command,
|
||||
}
|
||||
return append(argv, req.Args...)
|
||||
}
|
||||
@@ -900,7 +900,7 @@ func (c *DockerRemoteClient) WriteFile(
|
||||
// metacharacters cannot change what the redirect targets.
|
||||
result, err := c.Exec(ctx, &dockerSandboxHandle{id: id}, RemoteExecRequest{
|
||||
Command: "sh",
|
||||
Args: []string{"-c", `cat > "$1"`, "weknora-write", clean},
|
||||
Args: []string{"-c", `cat > "$1"`, "academy-write", clean},
|
||||
Stdin: string(content),
|
||||
User: remoteFileUser(ctx),
|
||||
Timeout: dockerFilesystemOpTimeout,
|
||||
|
||||
Reference in new issue
Block a user