feat(ai): add PixelRAG marketplace embedding signature guard replay
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
This commit is contained in:
@@ -1090,6 +1090,43 @@ def ai_automation_pixelrag_marketplace_promotion_gate_replay_api():
|
||||
))
|
||||
|
||||
|
||||
@system_public_bp.route('/api/ai-automation/pixelrag-marketplace-embedding-signature-guard-replay')
|
||||
@login_required
|
||||
def ai_automation_pixelrag_marketplace_embedding_signature_guard_replay_api():
|
||||
"""Controlled PixelRAG marketplace embedding signature guard readback."""
|
||||
from services.pixelrag_marketplace_embedding_signature_guard_replay_service import (
|
||||
run_pixelrag_marketplace_embedding_signature_guard_replay,
|
||||
)
|
||||
|
||||
platforms = tuple(
|
||||
str(item or '').strip()
|
||||
for item in request.args.getlist('platform')
|
||||
if str(item or '').strip()
|
||||
)
|
||||
execute = str(request.args.get('execute') or '').strip().lower() in {
|
||||
'1',
|
||||
'true',
|
||||
'yes',
|
||||
}
|
||||
write_receipt = str(request.args.get('write_receipt') or '').strip().lower() in {
|
||||
'1',
|
||||
'true',
|
||||
'yes',
|
||||
}
|
||||
max_age_hours = request.args.get('max_age_hours', 168, type=int)
|
||||
limit = request.args.get('limit', 25, type=int)
|
||||
return jsonify(run_pixelrag_marketplace_embedding_signature_guard_replay(
|
||||
promotion_gate_receipt_root=str(
|
||||
request.args.get('promotion_gate_receipt_root') or ''
|
||||
).strip() or None,
|
||||
platform=platforms,
|
||||
max_age_hours=max(1, min(max_age_hours or 168, 720)),
|
||||
limit=max(1, min(limit or 25, 250)),
|
||||
execute=execute,
|
||||
write_receipt=bool(execute and write_receipt),
|
||||
))
|
||||
|
||||
|
||||
@system_public_bp.route('/api/ai-automation/external-mcp-rag-integration')
|
||||
@login_required
|
||||
def ai_automation_external_mcp_rag_integration_api():
|
||||
|
||||
Reference in New Issue
Block a user