Skip to content

Commit f454a73

Browse files
committed
feat: add agent marketplace repository and pin sub-agent versions at publish
Introduce ag_agent_repository_t with list/status/publish/import APIs for frozen agent snapshots. Pin selected_agent_version_no on agent relations when publishing so sub-agents resolve to a fixed version at runtime. Extend agent export/import to bundle skills in ZIP payloads and add embedding model fallback when no model name is provided.
1 parent 92979ee commit f454a73

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

test/backend/app/test_idata_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,10 @@ def test_router_prefix(self):
517517
def test_routes_registered(self):
518518
"""Test that all routes are registered."""
519519
app = _build_app()
520-
routes = [route.path for route in app.routes]
520+
paths = app.openapi()["paths"]
521521

522-
assert "/idata/knowledge-space" in routes
523-
assert "/idata/datasets" in routes
522+
assert "/idata/knowledge-space" in paths
523+
assert "/idata/datasets" in paths
524524

525525
def test_router_methods(self):
526526
"""Test that routes have correct HTTP methods."""

test/backend/app/test_northbound_base_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ def test_cors_middleware_configuration(self):
274274

275275
def test_router_inclusion(self):
276276
"""The main northbound router should be included."""
277-
routes = [route.path for route in app.routes]
278-
self.assertIn("/dummy", routes)
277+
paths = app.openapi()["paths"]
278+
self.assertIn("/dummy", paths)
279279

280280
def test_a2a_router_inclusion(self):
281281
"""A2A router should be registered under /nb/a2a."""

0 commit comments

Comments
 (0)