实现AgentBus自动分发SuperAgent链路

This commit is contained in:
andy
2026-07-12 23:53:50 +08:00
parent c3dad8eae9
commit 53b530d0b3
42 changed files with 2512 additions and 135 deletions

View File

@@ -267,6 +267,19 @@ public class MybatisSourceMessageInboxRepository implements SourceMessageInboxRe
return inbox.getId();
}
/**
* 读取指定 SourceMessage 的原始 payload JSON。该方法只供内部 AI 分发和排查使用,不向普通前端查询暴露。
*/
@Override
public Optional<String> findPayloadJson(Long id) {
if (id == null) {
return Optional.empty();
}
SourceMessagePayloadEntity payload = payloadMapper.selectOne(Wrappers.<SourceMessagePayloadEntity>lambdaQuery()
.eq(SourceMessagePayloadEntity::getInboxId, id));
return Optional.ofNullable(payload).map(SourceMessagePayloadEntity::getPayloadJson);
}
/**
* 记录重复投递 payload 差异,不覆盖第一次保存的原始 payload。
*/

View File

@@ -78,6 +78,11 @@ public interface SourceMessageInboxRepository {
*/
Long insert(SourceMessageInboxDraft draft);
/**
* 按内部 SourceMessage ID 读取原始 payload JSON仅供受控内部重放或 AI 分发链路使用。
*/
Optional<String> findPayloadJson(Long id);
/**
* 幂等命中但 payload 变化时,标记差异并保存安全排查摘要。
*/