agentcompass routes on the AgentCompass v0.6.0 engine: four capability categories, quota-economy seat ordering and data gates. With no caller profile, a request keeps the model the client asked for. External scoring stays off unless allowExternalScorer and a scorer base URL are both set. The reference ships in the package. This supersedes #791. Run at 52a98632, merged onto main, on WSL (Ubuntu 24.04) with HOME=$(mktemp -d): - npm test in packages/agentcompass: 140 pass, 0 fail - bun scripts/check.mjs agentcompass: ok - Read the diff for new I/O: src/ has no fetch outside the opt-in scorer, and no spawn, env read or disk access. - The docs' scorer example was checked against scorerOptionsOf and resolveClassifier. Not tried: a real Magpie gateway routing live traffic through it. Co-authored-by: akiiwa-games <akiiwa-games@users.noreply.github.com>
47 lines
1.9 KiB
JSON
47 lines
1.9 KiB
JSON
{
|
|
"name": "@magpie-community/gateway-agentcompass",
|
|
"version": "0.2.0",
|
|
"description": "Four-category capability fit, quota-economy and session-affinity routing plugin for Magpie, powered by AgentCompass v0.6.0.",
|
|
"type": "module",
|
|
"main": "./src/index.js",
|
|
"exports": {
|
|
".": "./src/index.js",
|
|
"./server": "./src/index.js",
|
|
"./hooks": "./src/hooks.js",
|
|
"./middleware": "./src/middleware.js",
|
|
"./allocator": "./src/allocator.js",
|
|
"./continuity": "./src/continuity.js",
|
|
"./quota": "./src/quota.js",
|
|
"./profiler": "./src/profiler-core.js",
|
|
"./catalog": "./src/catalog.js"
|
|
},
|
|
"magpie": {
|
|
"name": "AgentCompass",
|
|
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMzIiIGN5PSIzMiIgcj0iMjgiIHN0cm9rZT0iIzNCODJGNiIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSIjMEYxNzJBIi8+PGNpcmNsZSBjeD0iMzIiIGN5PSIzMiIgcj0iMjIiIHN0cm9rZT0iIzYwQTVGQSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1kYXNoYXJyYXk9IjMgMyIvPjxwb2x5Z29uIHBvaW50cz0iMzIsMTIgMzgsMzIgMzIsMjggMjYsMzIiIGZpbGw9IiNFRjQ0NDQiLz48cG9seWdvbiBwb2ludHM9IjMyLDUyIDM4LDMyIDMyLDM2IDI2LDMyIiBmaWxsPSIjRTJFOEYwIi8+PGNpcmNsZSBjeD0iMzIiIGN5PSIzMiIgcj0iMy41IiBmaWxsPSIjRjhGQUZDIi8+PC9zdmc+",
|
|
"middleware": "./src/middleware.js",
|
|
"options": {
|
|
"routeAllModels": false,
|
|
"injectProtocolEffort": true
|
|
}
|
|
},
|
|
"scripts": {
|
|
"test": "node --test test/router.test.mjs test/routing-contract.test.mjs test/no-hardcode.test.mjs test/plan-state.test.mjs test/quotas-load.test.mjs test/plan-align.test.mjs"
|
|
},
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-middleware",
|
|
"magpie-routing",
|
|
"routing",
|
|
"load-balancing",
|
|
"llm-gateway",
|
|
"agentcompass"
|
|
],
|
|
"homepage": "https://github.com/akiiwa-games/AgentCompass",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/agentcompass"
|
|
},
|
|
"license": "MIT"
|
|
}
|