No description
  • Rust 82.5%
  • Python 7.5%
  • JavaScript 3.2%
  • Slint 3%
  • HTML 1.3%
  • Other 2.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
gjz010's OpenCode agent eb0f9f27e0
All checks were successful
Documentation CI / Documentation check/build/publish (push) Successful in 3m25s
Nix Packaging CI / Flake checks and package builds (push) Successful in 10m34s
fix(deps): fetch pinned protocol source over HTTPS
2026-11-05 17:01:22 +08:00
.agents/skills docs(workspace): simplify docs and remove local identity config 2026-11-01 01:31:55 +08:00
.cargo fix(deps): fetch pinned protocol source over HTTPS 2026-11-05 17:01:22 +08:00
.config feat(workspace): deliver cross-platform audio and browser recording 2026-11-03 02:53:01 +08:00
.forgejo/workflows feat(workspace): add desktop packages with pinned protocol source 2026-11-05 00:41:19 +08:00
apps/docs docs(docs): refresh product guides and project standards 2026-11-05 00:41:31 +08:00
assets feat(workspace): add branded macOS disk volume icon 2026-11-05 15:50:53 +08:00
crates fix(deps): fetch pinned protocol source over HTTPS 2026-11-05 17:01:22 +08:00
docs feat(workspace): add branded macOS disk volume icon 2026-11-05 15:50:53 +08:00
nix feat(client): apply project branding to desktop bundles 2026-11-05 12:53:32 +08:00
patches test(e2e): harden mumble gui journey 2026-09-06 12:11:29 +08:00
tools feat(workspace): add branded macOS disk volume icon 2026-11-05 15:50:53 +08:00
.envrc docs(workspace): simplify docs and remove local identity config 2026-11-01 01:31:55 +08:00
.gitignore chore(workspace): ignore local distribution artifacts 2026-11-05 17:01:22 +08:00
AGENTS.md docs(docs): refresh product guides and project standards 2026-11-05 00:41:31 +08:00
Cargo.lock fix(deps): fetch pinned protocol source over HTTPS 2026-11-05 17:01:22 +08:00
Cargo.toml fix(deps): fetch pinned protocol source over HTTPS 2026-11-05 17:01:22 +08:00
CONTEXT.md feat(client): improve server connections and voice setup 2026-11-05 00:40:57 +08:00
devenv.lock feat(workspace): deliver verified browser client integration 2026-11-01 23:13:24 +08:00
devenv.nix feat(workspace): add flake deployment packages and Nix packaging CI 2026-11-03 15:45:31 +08:00
devenv.yaml feat(workspace): deliver verified browser client integration 2026-11-01 23:13:24 +08:00
flake.lock feat(workspace): add flake deployment packages and Nix packaging CI 2026-11-03 15:45:31 +08:00
flake.nix feat(workspace): publish branded macOS disk images 2026-11-05 14:31:51 +08:00
LICENSE chore(workspace): reserve project rights and document license audit 2026-11-01 00:54:32 +08:00
opencode.json chore(workspace): defer agent configuration to harness 2026-09-21 20:30:07 +08:00
README.md docs(docs): refresh product guides and project standards 2026-11-05 00:41:31 +08:00
server-config.example.json docs(server): add security review operational docs and release matrix 2026-09-22 17:44:37 +08:00
skills-lock.json chore(workspace): adopt gjz010 harness 2026-09-21 20:15:24 +08:00

Calliope 图标:戴耳机的侧面人像与语音波形

Calliope

Rust 编写的 Mumble 兼容语音通信套件。

Calliope 提供 Rust + Slint 原生桌面客户端、CLI 调试客户端、自托管 calliope-server、独立 WebTransport Gateway,以及经 Gateway 接入的浏览器/WASM 客户端。原生与浏览器共用同一 Runtime 音频管线:Opus 编解码统一使用 rusty-opus,发送端语音处理统一使用 sonora。

原生客户端直接连接 Mumble 的 TCP/TLS 与语音通道。浏览器客户端通过受信任的 Gateway 接入:浏览器验证 Gateway 的 HTTPS 连接,Gateway 负责上游 Murmur 的证书验证,mTLS 客户端身份通过远程签名完成,私钥留在浏览器(ADR 0009)。

当前完成范围、待推进工作和最新验证记录统一见 docs/long-term-roadmap.md。

环境

必须使用 Nix + devenv。首次克隆后:

direnv allow

每个 shell 自动获得 Rust nightly 与 alsa、opus、wayland、mesa、dbus、murmur、openssl、pipewire 等系统库。LD_LIBRARY_PATH 与 SLINT_FONT_DIR 由 devenv.nix 设置,不要覆盖。

构建与运行

# 桌面 GUI(主应用)
cargo run -p calliope-client

# CLI 调试 REPL
cargo run -p calliope-cli

# 自托管服务器(默认读取 CWD 的 server-config.json)
cargo run -p calliope-server -- server-config.json

# 通用 WebTransport ↔ TCP/UDP Gateway(默认读取 gateway-config.json)
cargo run -p calliope-gateway

# WASM 构建(手动脚本,非 Trunk)
./crates/calliope-client/build-wasm.sh

服务器配置见 docs/server-operations.md 与 server-config.example.json;Gateway 配置以 -c/--config 覆盖。

Nix 部署产物

仓库提供 flake 部署入口,同时保留 devenv 作为开发入口。二者共用 nix/rust-toolchain.nix 中的 Rust nightly 与 wasm32 target;部署包携带运行时闭包,开发工具链仅在开发 shell 中使用:

nix build .#calliope          # 桌面客户端(bin: calliope-client)
nix run   .#calliope          # 需要图形会话

nix build .#calliope-gateway  # WebTransport Gateway
nix run   .#calliope-gateway -- -c /etc/calliope/gateway-config.json

nix build .#calliope-web      # 静态浏览器客户端(index.html、icon.svg、pkg/)
nix build .#default           # 等同 .#calliope

.#calliope-web 与 apps/docs/scripts/assemble.sh 的客户端目录使用相同布局:index.html 引用 ./pkg/calliope_client.js 与 ./icon.svg,可部署到站点根目录或子目录(文档站使用 /app/)。Gateway 的 NixOS 模块为 nixosModules.default(别名 nixosModules.calliope-gateway),使用方式和证书/私钥路径约束见 Gateway 部署。

Linux 部署包面向 x86_64-linux;桌面分发另提供 Windows x64 交叉构建与 Apple Silicon macOS 应用包,命令见桌面构建与分发。flake.lock 与 devenv.lock 共同锁定构建环境,更新时需同时维护;nix build .#checks.x86_64-linux.lock-sync 检查 nixpkgs、rust-overlay 与上游 nixpkgs-src 的版本一致性。

.forgejo/workflows/nix.yaml 在每次 push 与 pull request 构建 flake checks、Linux 部署包和 Windows ZIP,并求值 macOS 应用包配置。

测试

统一使用 cargo nextest,配置在 .config/nextest.toml。完整测试通过 devenv 提供的 Hakoniwa 运行,缺少 Hakoniwa 会明确失败;项目无需安装 harness。

# 单元测试(包括需要显示后端的 GUI 测试)
devenv shell -- tools/check.sh lib-tests

# 集成测试(私有显示、D-Bus 与音频环境)
devenv shell -- tools/check.sh integration

# 真实 Murmur mTLS 聊天与 fixture 生命周期
devenv shell -- python3 tools/hakoniwa-test-world.py --timeout 1200 \
  cargo nextest run --profile integration -E 'binary(=mtls_chat) | binary(=murmur_fixture)'

# 串行 CLI PTY 旅程
devenv shell -- python3 tools/hakoniwa-test-world.py --timeout 1200 \
  cargo nextest run --profile integration -E 'binary(=cli_mtls_chat_pty)'

真实 Murmur 测试使用 Nix 提供的 mumble-server 与 OpenSSL 进程 fixture。Murmur fixture 最多两个并发;PTY 旅程串行。音频验收的隔离要求与命令见 docs/audio-verification.md。

本地门禁

完整门禁由单一本地入口串行执行,必须在 devenv shell 内运行:

devenv shell -- tools/check.sh            # 全部阶段
devenv shell -- tools/check.sh fmt
devenv shell -- tools/check.sh lib-tests
devenv shell -- tools/check.sh integration
devenv shell -- tools/check.sh gui-acceptance
devenv shell -- tools/check.sh spa-checks
devenv shell -- tools/check.sh rustdoc
devenv shell -- tools/check.sh wasm-build

tools/check.sh --help 列出选择器;任一阶段失败立即以非零状态退出。行为测试为 bash tools/test-support/test-check.sh。

文档导航

参与开发

本仓库由人类与 AI agent 协作开发。修改代码前必须阅读 AGENTS.md。提交遵循 Conventional Commits(type(scope): message)。

License

项目自有内容暂时采用 All rights reserved(保留所有权利),详见 LICENSE。第三方代码、依赖及素材继续遵循各自许可证。 此次变更不追溯撤销此前按 Apache-2.0 授出的权利。

依赖许可证审计、证据及尚待处理的分发义务见 docs/research/dependency-license-audit.md。