refactor(selfHosted): use generated work models - #10
Merged
Conversation
## 简述 让 self-hosted worker 直接复用 ark-apis 生成的 WorkItem、WorkData 和 HeartbeatWorkResponse,移除重复协议结构。 ## 改动 - 删除 selfhosted 下重复的 WorkItem、WorkData、HeartbeatResponse - SelfHostedClient、WorkPoller 改用 generated environment model - EnvironmentWorker 使用私有 ClaimedWork 运行上下文,不伪造 generated WorkItem - SessionSnapshot/Event/SkillRef 继续作为 runner 的归一化运行时视图 ## 验证 - mvn -q clean test(40 passed) - mvn -q checkstyle:check - STG Java SkillHub + private skill E2E,通过 Python/Java 命令交互 See merge request: !87 Sync-Source-Commit: 3d729e63c5df1d7d26146e7657001fdc476afbd0 Ark-APIs-Commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185 Hand-Written-Reason: Self-hosted worker model consolidation using generated work contracts through 1ae6acad. Release-Version: 0.4.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hand-written change from the internal SDK repository — not produced by
make vendor.refactor(selfHosted): use generated work models1ae6acad4ff5d332748b13c47c120ecb01f1f185Sync-Source-Commit: 3d729e63c5df1d7d26146e7657001fdc476afbd0
Ark-APIs-Commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185
Hand-Written-Reason: Self-hosted worker model consolidation using generated work contracts through 1ae6acad.
Release-Version: 0.4.0
Created by ark-hand.