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
@@ -7,33 +7,33 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/sandbox"
|
||||
"academy/internal/sandbox"
|
||||
)
|
||||
|
||||
// artifactOutputEnvVar is the name of the environment variable that WeKnora
|
||||
// artifactOutputEnvVar is the name of the environment variable that Academy
|
||||
// injects into every skill script execution. The value points to the
|
||||
// convention-driven directory where the script should drop artifacts the user
|
||||
// will be able to download after the turn completes.
|
||||
//
|
||||
// The name is stable across releases; skills reference it via os.getenv(...)
|
||||
// so they never hard-code the path.
|
||||
const artifactOutputEnvVar = "WEKNORA_SKILL_OUTPUT_DIR"
|
||||
const artifactOutputEnvVar = "ACADEMY_SKILL_OUTPUT_DIR"
|
||||
|
||||
// sessionInputEnvVar points skill scripts at user-uploaded files restored into
|
||||
// the current session's Cube. Inputs are separate from generated artifacts.
|
||||
const sessionInputEnvVar = "WEKNORA_SESSION_INPUT_DIR"
|
||||
const sessionInputEnvVar = "ACADEMY_SESSION_INPUT_DIR"
|
||||
|
||||
// artifactHistoryEnvVar is the name of the environment variable that points
|
||||
// to the root artifact output directory (/workspace/output). Skill scripts
|
||||
// can use this to self-discover artifacts from prior runs when they need to
|
||||
// chain without LLM mediation.
|
||||
const artifactHistoryEnvVar = "WEKNORA_SKILL_HISTORY_ROOT"
|
||||
const artifactHistoryEnvVar = "ACADEMY_SKILL_HISTORY_ROOT"
|
||||
|
||||
// skillDirEnvVar points a script at its own directory inside the sandbox
|
||||
// image. Installed skills run with /workspace as WorkDir, so this is how a
|
||||
// script reaches the data and helpers that were installed beside it. The
|
||||
// install-time verification pass exports the same name.
|
||||
const skillDirEnvVar = "WEKNORA_SKILL_DIR"
|
||||
const skillDirEnvVar = "ACADEMY_SKILL_DIR"
|
||||
|
||||
// nodePathEnvVar carries the skill's own node_modules. pythonPathEnvVar is
|
||||
// never injected — a skill's Python packages arrive through its venv
|
||||
@@ -45,7 +45,7 @@ const nodePathEnvVar = "NODE_PATH"
|
||||
// InjectedSandboxEnvVars is every name skill environment preparation writes into the sandbox
|
||||
// environment. The skill-env declaration blacklist must reject these so a
|
||||
// stored value cannot redirect artifacts, the skill directory, or the session
|
||||
// input tree. Credential names such as WEKNORA_API_KEY are not in this list.
|
||||
// input tree. Credential names such as ACADEMY_API_KEY are not in this list.
|
||||
func InjectedSandboxEnvVars() []string {
|
||||
return []string{
|
||||
artifactOutputEnvVar,
|
||||
@@ -58,7 +58,7 @@ func InjectedSandboxEnvVars() []string {
|
||||
}
|
||||
|
||||
// defaultArtifactOutputDir is used when neither the environment variable
|
||||
// (WEKNORA_SKILL_OUTPUT_DIR) nor the ExecuteConfig.Env has an override.
|
||||
// (ACADEMY_SKILL_OUTPUT_DIR) nor the ExecuteConfig.Env has an override.
|
||||
// /workspace/output sits inside the base sandbox image's writable tree and
|
||||
// is guaranteed to survive across Execute calls for the same session (Cube
|
||||
// SessionBoundManager keeps the MicroVM alive between calls).
|
||||
@@ -70,7 +70,7 @@ const defaultArtifactOutputDir = "/workspace/output"
|
||||
// draining artifacts after Execute returns.
|
||||
//
|
||||
// Resolution order (first usable wins):
|
||||
// 1. WEKNORA_SKILL_OUTPUT_DIR from the host environment (ops override), when
|
||||
// 1. ACADEMY_SKILL_OUTPUT_DIR from the host environment (ops override), when
|
||||
// it names a directory inside the session workspace.
|
||||
// 2. defaultArtifactOutputDir.
|
||||
//
|
||||
@@ -310,7 +310,7 @@ func (m *Manager) ListSkillFiles(ctx context.Context, skillName string) ([]strin
|
||||
// SandboxSkillDir reports where a skill lives inside the sandbox image, and
|
||||
// whether that path means anything to say out loud.
|
||||
//
|
||||
// Only an installed skill has one. A host skill is uploaded from the WeKnora
|
||||
// Only an installed skill has one. A host skill is uploaded from the Academy
|
||||
// machine for the session, so its original base path names a directory that no
|
||||
// sandbox shell command can reach — telling the model about it would be worse
|
||||
// than saying nothing.
|
||||
|
||||
Reference in new issue
Block a user