yao/sandbox/v2
Max 83ebe49036 refactor: unify server lifecycle, migrate gRPC client, and clean up sandbox v2
Server lifecycle:
- Introduce service.Service to manage HTTP + gRPC startup/shutdown
- Fix gRPC mutex deadlock in StartServer when port is occupied
- Add GracefulStop with 5s timeout before forced Stop in grpc.go
- Pre-check HTTP and gRPC port availability in cmd/start.go
- Print gRPC server address in startup access-points block

gRPC client refactor:
- Move token manager and client from tai/grpc/ to grpc/client/
- Add backward-compatible aliases in tai/yao.go and tai/token.go
- Update cmd/run.go to import grpc/client directly (no tai dependency)

Sandbox v2 docker migration:
- Delete sandbox/v2/docker/ (moved to tai repo)
- Update sandbox/docker/build.sh hint to point to tai repo
- Clean up .gitignore entries for removed docker directory
- Temporarily disable SandboxV2Test and BenchmarkSandboxV2 in CI
  (docker images need rebuild after tai repo migration)

Tai integration:
- Add direct-mode registration API handlers in tai/api/
- Add heartbeat handler and token management wrappers
- Update tai/registry and tai/tunnel for latest protocol
- Replace yao-grpc references with tai call in docs

Made-with: Cursor
2026-03-07 17:19:19 +08:00
..
jsapi Add kubeconfig generation for Tai K8s in CI workflows 2026-03-05 23:32:09 +08:00
bench_test.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
box.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
box_attach_test.go refactor: unify server lifecycle, migrate gRPC client, and clean up sandbox v2 2026-03-07 17:19:19 +08:00
box_image_test.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
box_test.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
box_workspace_test.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
config.go Implement Sandbox V2 support in the Yao SDK 2026-03-05 13:21:09 +08:00
DESIGN.md refactor: unify server lifecycle, migrate gRPC client, and clean up sandbox v2 2026-03-07 17:19:19 +08:00
errors.go Implement Sandbox V2 support in the Yao SDK 2026-03-05 13:21:09 +08:00
export_test.go Implement Sandbox V2 support in the Yao SDK 2026-03-05 13:21:09 +08:00
grpc.go Implement tunnel mode support in Tai service 2026-03-06 17:12:36 +08:00
grpc_test.go Implement Sandbox V2 support in the Yao SDK 2026-03-05 13:21:09 +08:00
IMPL.md Refactor CI workflows for Tai service and update health checks 2026-03-05 21:58:04 +08:00
Makefile refactor: unify server lifecycle, migrate gRPC client, and clean up sandbox v2 2026-03-07 17:19:19 +08:00
manager.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
manager_lifecycle_test.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
manager_test.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00
sandbox.go Implement Sandbox V2 support in the Yao SDK 2026-03-05 13:21:09 +08:00
sandbox_test.go Implement Sandbox V2 support in the Yao SDK 2026-03-05 13:21:09 +08:00
TEST.md refactor: unify server lifecycle, migrate gRPC client, and clean up sandbox v2 2026-03-07 17:19:19 +08:00
testutils_test.go Enhance test utility for multi-mode configurations 2026-03-05 22:42:48 +08:00
types.go Enhance Sandbox V2 testing and integration with Workspace 2026-03-05 21:00:50 +08:00