feat(selfHosted): add self-hosted worker runtime - #16
Merged
Conversation
## 简述 为 Ark Runtime Go SDK 增加 Managed Agents Self-Hosted worker 能力,使客户可以在自有运行环境中 poll work、维护 lease、执行 session tool call 并安装 skill。 ## 改动 - 增加 self-hosted work API、WorkPoller、EnvironmentWorker 和 HandleItem。 - 增加 SessionToolRunner、bash/file/search 工具和 skill 初始化。 - 对齐 MA poll/ack/heartbeat/stop 与 event 契约。 - 加固 ACK 所有权、heartbeat lease、idle 退出、SSE 恢复、进程取消、路径隔离和压缩包安全。 - 增加 THIRD_PARTY_NOTICES.md,保留所参考 Anthropic MIT 实现的归属声明,项目主许可证仍为 Apache-2.0。 ## 验证 - test/run.sh --all 通过。 - test/run.sh --contract 通过。 - test/run.sh --docker 通过,覆盖宿主 poll/ack + Docker HandleItem、kill/SIGTERM、idle、stop_requested、skill 和凭证隔离。 - Go/Python/Java STG 命令执行与 SkillHub/私有 skill E2E 通过。 See merge request: !84 Sync-Source-Commit: 74391730e0fdc8a21a6fc0519c5fe372d3d6fbb1 Ark-APIs-Commit: 644ae285bd16f965668c33400bf6dcce54261f62 Hand-Written-Reason: Manual self-hosted worker implementation; no ark-apis regeneration involved. 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 runtime644ae285bd16f965668c33400bf6dcce54261f62Sync-Source-Commit: 74391730e0fdc8a21a6fc0519c5fe372d3d6fbb1
Ark-APIs-Commit: 644ae285bd16f965668c33400bf6dcce54261f62
Hand-Written-Reason: Manual self-hosted worker implementation; no ark-apis regeneration involved.
Release-Version: 0.4.0
Created by ark-hand.