feat(selfHosted): add self-hosted worker runtime - #9
Merged
Conversation
## 简述 为 Ark Runtime Java SDK 增加 Managed Agents Self-Hosted worker 能力,使客户可以在自有运行环境中 poll work、维护 lease、执行 session tool call 并安装 skill。 ## 改动 - 增加 SelfHostedClient、WorkPoller、EnvironmentWorker、SessionToolRunner 和默认本地工具。 - 对齐 Go SDK 与 MA 的 poll/ack/heartbeat/stop、event stream、idle 生命周期和 skill 语义。 - 加固 ACK 所有权、lease lost、工具取消、环境变量隔离、路径及压缩包安全。 - 增加同构单测和 Self-Hosted worker example。 - 增加 THIRD_PARTY_NOTICES.md,保留所参考 Anthropic MIT 实现的归属声明,项目主许可证仍为 Apache-2.0。 ## 验证 - mvn test -q:29 passed。 - mvn checkstyle:check -q 通过。 - mvn package -q -DskipTests 通过。 - STG Java worker 命令执行、SkillHub 和私有 skill E2E 通过。 - test/run.sh --all 通过。 See merge request: !86 Sync-Source-Commit: 0ddb2d1b45a5c1c836b288c4a5dd9878a924b6ce Ark-APIs-Commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185 Hand-Written-Reason: Self-hosted worker runtime implementation based on ark-apis self-hosted 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.feat(selfHosted): add self-hosted worker runtime1ae6acad4ff5d332748b13c47c120ecb01f1f185Sync-Source-Commit: 0ddb2d1b45a5c1c836b288c4a5dd9878a924b6ce
Ark-APIs-Commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185
Hand-Written-Reason: Self-hosted worker runtime implementation based on ark-apis self-hosted contracts through 1ae6acad.
Release-Version: 0.4.0
Created by ark-hand.