Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 为 Traverse Board · 针路簿贡献 / Contributing to Traverse Board
# 为 Universal Code 贡献 / Contributing to Universal Code

感谢你参与针路簿。这个仓库把“可恢复、可审计、默认关闭高权限能力”视为产品合同,而不只是实现细节。请优先提交范围清晰、可以独立验证的纵向切片;涉及执行权、凭证、网络、持久化或信任边界的改动,应先把威胁模型和失败语义写清楚。
感谢你参与 Universal Code。这个仓库把“可恢复、可审计、默认关闭高权限能力”视为产品合同,而不只是实现细节。请优先提交范围清晰、可以独立验证的纵向切片;涉及执行权、凭证、网络、持久化或信任边界的改动,应先把威胁模型和失败语义写清楚。

Thank you for contributing to Traverse Board. Resumability, auditability, and fail-closed authority are product contracts here. Prefer small, independently verifiable vertical slices. Changes involving execution, credentials, networking, persistence, or trust boundaries need an explicit threat model and failure semantics.
Thank you for contributing to Universal Code. Resumability, auditability, and fail-closed authority are product contracts here. Prefer small, independently verifiable vertical slices. Changes involving execution, credentials, networking, persistence, or trust boundaries need an explicit threat model and failure semantics.

## 开始之前 / Before you start

Expand Down Expand Up @@ -71,8 +71,8 @@ open build/desktop/TraverseBoard.app
## 从源码运行 / Run from source

```powershell
git clone https://github.com/CWNU-Open-Source-Community/Traverse-Board.git
cd "Traverse-Board"
git clone https://github.com/CWNU-Open-Source-Community/Universal-Code.git
cd "Universal-Code"

go run ./cmd/cyberagent version
go run ./cmd/cyberagent provider list
Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberagent-desktop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (nativeWorkspaceDirectoryPicker) OpenWorkspaceDirectory(ctx context.Context
return "", errors.New("desktop lifecycle is unavailable")
}
return runtime.OpenDirectoryDialog(ctx, runtime.OpenDialogOptions{
Title: "Select Traverse Board workspace folder",
Title: "Select Universal Code workspace folder",
ShowHiddenFiles: true,
CanCreateDirectories: false,
ResolvesAliases: true,
Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberagent-desktop/main_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func reportDesktopStartupFailure(err error) {
// dialog; only the stable error code is shown.
func desktopStartupFailureMessage(err error) string {
code := apperror.CodeOf(apperror.Normalize(err))
return "Traverse Board could not start.\n\nError code: " + string(code) +
return "Universal Code could not start.\n\nError code: " + string(code) +
"\n\nLocal data was not deleted or reset. Keep it for diagnosis."
}

Expand Down
14 changes: 7 additions & 7 deletions cmd/cyberagent-desktop/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ func reportDesktopStartupFailure(err error) {

func desktopStartupFailureMessage(err error) string {
if errors.Is(err, errWebView2RuntimeRequired) {
return "Traverse Board requires Microsoft Edge WebView2 Runtime " +
return "Universal Code requires Microsoft Edge WebView2 Runtime " +
minimumWebView2RuntimeVersion + " or newer.\r\n\r\n" +
"Install or update it through a trusted Windows software channel, then reopen the app.\r\n\r\n" +
"No download or installation was started."
}
code := apperror.CodeOf(apperror.Normalize(err))
return "Traverse Board could not start.\r\n\r\nError code: " + string(code) +
return "Universal Code could not start.\r\n\r\nError code: " + string(code) +
"\r\n\r\nLocal data was not deleted or reset. Keep it for diagnosis."
}

Expand Down Expand Up @@ -293,16 +293,16 @@ func desktopWindowsOptions() *windows.Options {

func desktopWebView2Messages() *windows.Messages {
return &windows.Messages{
InstallationRequired: "Microsoft Edge WebView2 Runtime is required. Use a trusted Windows software channel, then reopen Traverse Board.",
UpdateRequired: "Microsoft Edge WebView2 Runtime must be updated through a trusted Windows software channel before Traverse Board can start.",
MissingRequirements: "Traverse Board prerequisite",
InstallationRequired: "Microsoft Edge WebView2 Runtime is required. Use a trusted Windows software channel, then reopen Universal Code.",
UpdateRequired: "Microsoft Edge WebView2 Runtime must be updated through a trusted Windows software channel before Universal Code can start.",
MissingRequirements: "Universal Code prerequisite",
Webview2NotInstalled: "Microsoft Edge WebView2 Runtime is unavailable.",
Error: "Traverse Board prerequisite",
Error: "Universal Code prerequisite",
FailedToInstall: "Microsoft Edge WebView2 Runtime remains unavailable.",
DownloadPage: "",
PressOKToInstall: "",
ContactAdmin: "Microsoft Edge WebView2 Runtime is required. Contact your administrator or use a trusted Windows software channel.",
InvalidFixedWebview2: "The configured WebView2 Runtime does not meet the required version.",
WebView2ProcessCrash: "The WebView2 process stopped. Reopen Traverse Board; local data was not reset.",
WebView2ProcessCrash: "The WebView2 process stopped. Reopen Universal Code; local data was not reset.",
}
}
2 changes: 1 addition & 1 deletion cmd/cyberagent-desktop/workspace_launcher_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func confirmWorkspaceOpen(ctx context.Context, candidate workspaceLauncherCandid
Type: runtime.QuestionDialog,
Title: "打开工作区",
Message: fmt.Sprintf("使用 %s 打开 Workspace \"%s\"?\n\n目录:%s\n应用:%s\n\n"+
"针路簿只传递已登记目录,不执行命令。外部应用可能读取该目录内容。",
"Universal Code 只传递已登记目录,不执行命令。外部应用可能读取该目录内容。",
candidate.descriptor.Label, target.Name, target.RootPath, candidate.executable),
Buttons: []string{"打开", "取消"}, DefaultButton: "取消", CancelButton: "取消",
})
Expand Down
4 changes: 3 additions & 1 deletion cmd/releasegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"sort"
"strings"
"time"

"cyberagent-workbench/internal/buildinfo"
)

type module struct {
Expand Down Expand Up @@ -333,7 +335,7 @@ func normalizeNoticeText(text string) string {
func buildNotice(modules []module, bundledNotices []bundledAssetNotice) []byte {
modules = sortedModules(modules)
var builder strings.Builder
builder.WriteString("Traverse Board Desktop — Third-Party Notices\n\n")
builder.WriteString(buildinfo.ProductName + " Desktop — Third-Party Notices\n\n")
builder.WriteString("The Desktop build includes the following third-party Go modules.\n")
builder.WriteString("Licenses were detected from each module's LICENSE file; full texts follow.\n\n")
for _, module := range modules {
Expand Down
2 changes: 1 addition & 1 deletion docs/PROGRESS_BOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ P6 当前已推进到 schema v68:v63 固定阻塞态 start-gate 审查,v64
### Agent 与运行时

- CLI 入口、命令分发、版本命令和 Run-first Bubble Tea TUI;选择器对 Run/Session 各限最近 50 条,Edits 对最近 20 条 FileEdit 提供 metadata/diff-only 只读详情和 128 KiB/4096 行显示上限。
- Task/Event 类型、任务适配与历史事件读取;模型与工具执行循环由 `application.RunSupervisor` 承担。
- Task/Event 类型、任务适配与历史事件读取;模型与工具执行循环由 `application.AgentRunner` 承担。
- schema v19 为每个新 Run 原子创建稳定 root `AgentNode`;旧库可惰性补建。root 的 ready/running/waiting/completed/failed/cancelled、turn/token 用量和 active attempt 与 RunSupervisor/RunService 同事务投影。
- `internal/coordinator` 提供 root register、结构化 inbox send/consume、snapshot/restore;`run graph` 验证当前节点与 pending inbox metadata 是否匹配最新 `agent_graph.v1` 快照。
- 图最多 3 个节点、深度 1、每个 inbox 最多 128 条 pending/4096 条总历史、每批消费 32 条、快照保留 32 份;payload 递归脱敏并以 SHA-256 进入快照完整性校验。默认 Coordinator 无 admission capability,显式内部 policy 才能把 root capacity 提升到最多两个 child;Runner/context/scheduler 均只有 Go 内部显式入口,仍没有公开/model spawn。
Expand Down
Loading
Loading