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
@@ -8,16 +8,16 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/localsandbox"
|
||||
"github.com/Tencent/WeKnora/internal/logger"
|
||||
"github.com/Tencent/WeKnora/internal/sandbox"
|
||||
"academy/internal/localsandbox"
|
||||
"academy/internal/logger"
|
||||
"academy/internal/sandbox"
|
||||
)
|
||||
|
||||
// Adapter presents the local sandbox through the session-scoped capability
|
||||
// interfaces the agent already consumes. It *is* the session shell, file
|
||||
// store, and layout provider — not a wrapper around a second remote path.
|
||||
//
|
||||
// File operations do NOT go through the OS sandbox: WeKnora itself is trusted
|
||||
// File operations do NOT go through the OS sandbox: Academy itself is trusted
|
||||
// and already holds the user's privileges, so putting it inside Seatbelt would
|
||||
// only stop it reading its own database. They are bounded by PathGuard, which
|
||||
// is derived from the same Policy the backend compiles.
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/localsandbox"
|
||||
"github.com/Tencent/WeKnora/internal/sandbox"
|
||||
"academy/internal/localsandbox"
|
||||
"academy/internal/sandbox"
|
||||
)
|
||||
|
||||
func TestAdapterSatisfiesCapabilityInterfaces(t *testing.T) {
|
||||
@@ -100,9 +100,9 @@ func TestLayoutForHintIsTheWorkspaceRoot(t *testing.T) {
|
||||
func TestLayoutForSessionWorkspaceHasNoInputOrOutput(t *testing.T) {
|
||||
l := LayoutFor(localsandbox.Workspace{
|
||||
Kind: localsandbox.WorkspaceSession,
|
||||
Root: "/Users/dev/Documents/WeKnora/s1",
|
||||
Root: "/Users/dev/Documents/Academy/s1",
|
||||
})
|
||||
require.Equal(t, []string{"/Users/dev/Documents/WeKnora/s1"}, l.WriteRoots)
|
||||
require.Equal(t, []string{"/Users/dev/Documents/Academy/s1"}, l.WriteRoots)
|
||||
require.Empty(t, l.InputDir)
|
||||
require.Empty(t, l.OutputDir)
|
||||
}
|
||||
@@ -240,10 +240,10 @@ func testService(t *testing.T, backend localsandbox.Backend) *localsandbox.Servi
|
||||
t.Helper()
|
||||
base := t.TempDir()
|
||||
home := filepath.Join(base, "home")
|
||||
appData := filepath.Join(home, "App Support", "WeKnora Lite")
|
||||
appData := filepath.Join(home, "App Support", "Academy Lite")
|
||||
require.NoError(t, os.MkdirAll(home, 0o755))
|
||||
resolver := localsandbox.NewWorkspaceResolver(localsandbox.DirLayout{
|
||||
SessionRoot: filepath.Join(home, "Documents", "WeKnora"),
|
||||
SessionRoot: filepath.Join(home, "Documents", "Academy"),
|
||||
}, stubProjects{})
|
||||
return localsandbox.NewService(backend, resolver, localsandbox.NewPolicyBuilder(home, appData), nil)
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/localsandbox"
|
||||
"github.com/Tencent/WeKnora/internal/logger"
|
||||
"github.com/Tencent/WeKnora/internal/sandbox"
|
||||
"academy/internal/localsandbox"
|
||||
"academy/internal/logger"
|
||||
"academy/internal/sandbox"
|
||||
)
|
||||
|
||||
// InstallRunner is the slice of localsandbox.Service an install needs.
|
||||
@@ -127,7 +127,7 @@ func (m *InstallManager) ExecShellCommandWithOptions(
|
||||
// installEnv points package caches inside dir: the default cache locations
|
||||
// under the home directory are not writable to the install policy.
|
||||
func installEnv(dir string, extra map[string]string) map[string]string {
|
||||
cache := filepath.Join(dir, ".weknora", "cache")
|
||||
cache := filepath.Join(dir, ".academy", "cache")
|
||||
env := make(map[string]string, len(extra)+4)
|
||||
for k, v := range extra {
|
||||
env[k] = v
|
||||
@@ -135,7 +135,7 @@ func installEnv(dir string, extra map[string]string) map[string]string {
|
||||
env["UV_CACHE_DIR"] = filepath.Join(cache, "uv")
|
||||
env["PIP_CACHE_DIR"] = filepath.Join(cache, "pip")
|
||||
env["npm_config_cache"] = filepath.Join(cache, "npm")
|
||||
env["WEKNORA_SKILL_DIR"] = dir
|
||||
env["ACADEMY_SKILL_DIR"] = dir
|
||||
return env
|
||||
}
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/localsandbox"
|
||||
"github.com/Tencent/WeKnora/internal/sandbox"
|
||||
"academy/internal/localsandbox"
|
||||
"academy/internal/sandbox"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -58,10 +58,10 @@ func TestInstallManagerRunsInBoundVersionDir(t *testing.T) {
|
||||
require.Equal(t, "ok", res.Stdout)
|
||||
require.Equal(t, dir, runner.policy.Cwd)
|
||||
require.Empty(t, runner.req.WorkDir, "/workspace means the version dir on host")
|
||||
require.Equal(t, filepath.Join(dir, ".weknora", "cache", "uv"), runner.req.Env["UV_CACHE_DIR"])
|
||||
require.Equal(t, filepath.Join(dir, ".weknora", "cache", "pip"), runner.req.Env["PIP_CACHE_DIR"])
|
||||
require.Equal(t, filepath.Join(dir, ".weknora", "cache", "npm"), runner.req.Env["npm_config_cache"])
|
||||
require.Equal(t, dir, runner.req.Env["WEKNORA_SKILL_DIR"])
|
||||
require.Equal(t, filepath.Join(dir, ".academy", "cache", "uv"), runner.req.Env["UV_CACHE_DIR"])
|
||||
require.Equal(t, filepath.Join(dir, ".academy", "cache", "pip"), runner.req.Env["PIP_CACHE_DIR"])
|
||||
require.Equal(t, filepath.Join(dir, ".academy", "cache", "npm"), runner.req.Env["npm_config_cache"])
|
||||
require.Equal(t, dir, runner.req.Env["ACADEMY_SKILL_DIR"])
|
||||
require.Equal(t, "1", runner.req.Env["X"])
|
||||
|
||||
release()
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
package adapter
|
||||
|
||||
import (
|
||||
"github.com/Tencent/WeKnora/internal/localsandbox"
|
||||
"github.com/Tencent/WeKnora/internal/sandbox"
|
||||
"academy/internal/localsandbox"
|
||||
"academy/internal/sandbox"
|
||||
)
|
||||
|
||||
// LayoutFor maps a resolved workspace onto the layout the agent tools consume.
|
||||
|
||||
Reference in new issue
Block a user