Commit graph

21 commits

Author SHA1 Message Date
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
Max
787954f0af Enhance OpenAPI Integration and API Routing
- Introduced support for OpenAPI mode, allowing dynamic routing and OAuth guards for API endpoints.
- Updated API root path handling to accommodate OpenAPI configurations, ensuring consistent URL structures.
- Added well-known routes for Yao metadata and OAuth discovery, improving API discoverability.
- Refactored middleware and guards to streamline OpenAPI integration, enhancing overall service functionality.
- Removed deprecated agent TypeScript file, simplifying the codebase and improving maintainability.
2026-01-04 15:46:09 +08:00
Max
9faf8f802f chore: Update engine.Load calls with additional options 2024-05-05 17:54:32 +08:00
Max
01d4b49c33 [add] server rewrite support and fix api reload 2023-11-22 18:10:17 +08:00
Max
d2c1f034a6 [tidy] remove unused code 2023-04-01 11:52:12 +08:00
Max
5f2b8fbf63 [add] migrate watch 2023-04-01 11:19:09 +08:00
Max
75ee709c23 [change] refactor the yao service 2023-03-26 17:12:02 +08:00
Max
a807899f95 [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
Max
63f9e6574d [optimize] watchReload close the DB connections 2023-01-16 16:13:11 +08:00
Max
93ba063cb4 [add] setup 2022-10-28 11:58:05 +08:00
Max
9d19d32fef [fix] watch the script file changes 2022-08-20 22:10:49 +08:00
Max
c0402149ce [fix] spelling 2022-08-20 21:29:00 +08:00
Max
7517e4652a [change] Refactoring Watch 2022-08-20 21:25:32 +08:00
Max
b6326c9144 Ign session on watch 2022-02-14 23:40:21 +08:00
Max
3f7deb9a25 + Watch 2022-02-14 23:34:56 +08:00
Max
34f4382c19 更新命名空间 2022-02-09 09:17:23 +08:00
Max
ea72f26d5e 调整环境变量 2022-02-09 00:49:57 +08:00
Max
362e788157 + Load API 2021-11-27 20:32:57 +08:00
Max
31ad7524f9 + kanban & screen 大屏支持 2021-10-27 20:19:11 +08:00
Max
9d423245dd + page 2021-10-20 19:23:16 +08:00
Max
490a1c999f 优化热加载逻辑 2021-10-20 15:26:19 +08:00