Skip to content

refactor: add marketplace bridge and gateway market APIs#323

Merged
h1177h merged 4 commits into1024XEngineer:mainfrom
h1177h:pr/marketplace-bridge
May 8, 2026
Merged

refactor: add marketplace bridge and gateway market APIs#323
h1177h merged 4 commits into1024XEngineer:mainfrom
h1177h:pr/marketplace-bridge

Conversation

@h1177h
Copy link
Copy Markdown
Contributor

@h1177h h1177h commented May 8, 2026

背景

本次调整将云端市场相关逻辑收敛到 marketplace bridge,避免 gateway、runtime、agent 工具层分别直接处理 registry、安装策略、绑定和 job 状态。

主要改动

  • 新增 marketplace bridge,统一封装搜索、详情、版本、安装计划、安装、升级、卸载、绑定、jobs、events。
  • markettools 改为通过 bridge 调用,不再直接创建 policy/install use case。
  • runtime 只保留安装/绑定/卸载后的本地集成与刷新 hook。
  • gateway 市场读写 API 统一走 bridge,包括 artifacts、install、upgrade、uninstall、jobs、bindings、events、refresh。
  • agent 增加轻量 capability planner,用于在缺少本地能力时暴露 marketplace 搜索工具,并在确认场景暴露安装/绑定工具。
  • 补充 bridge、gateway market API、capability planner、prompt 相关测试。

验证

  • go test ./...

Copy link
Copy Markdown

@fennoai fennoai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found 2 issues in the refactor: uninstall leaves runtime-integrated artifacts behind, and binding normalization can panic when the runtime is unavailable.

Comment thread pkg/gateway/gateway_market_store.go
Comment thread pkg/gateway/gateway_market_bindings_api.go
@h1177h h1177h merged commit 559b19a into 1024XEngineer:main May 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants