With `enableDecisionProvider: true` the plugin now gives a keyless `auth` hook for provider `agentcompass` beside its config entry. magpie's host lists, signs in and serves only a provider an auth hook names, and posts System One to `<loader baseURL>/systemone` through the loader's fetch. 0.1.0 had the config entry only, so with the option on there was no Classifier option, `magpie plugin login agentcompass` failed, and `/v1/systemone` returned 404 (akiiwa-games/magpie-agentcompass-router#1). The loader's fetch answers `/systemone` only and gives 404 for every other path. With the option off nothing is registered. Mode A is unchanged. The README gives the model names for each install source and the order: option, restart, login. Version 0.1.1. The capability-curve sync from the first push was taken out to go in its own PR. The README's CR bytes went with it. What was run at b3cbc52dd (WSL magpie-desktop, Bun 1.4.2, Node 22): - `bun test` in packages/agentcompass: 34 pass. `node --test test/router.test.mjs`: 34/34. - `bun scripts/check.mjs`: every package and registry.json pass. - Broken by hand: 0.1.0's src/index.js with this head's tests fails 4 and 4d ("magpie plugin list must show the agentcompass provider"). - The diff since review 496773a47: allocator.js, catalog.js and profiler-core.js are byte-equal to origin/main; index.js and package.json are byte-equal to the reviewed 496773a47; `grep -c $'\r' README.md` gives 0. - A real magpie (origin/main 1826c4bd9, `go build -tags gtk3`) in a sandbox HOME/XDG on port 3511, using plugin add <dir>, options, login, list, serve, then POST /v1/systemone: - 0.1.0 with the option on: "no plugin signs in to agentcompass", then 404 "magpie has no Jev provider". - 0.1.1 with the option off: no provider and a 404. - 0.1.1 with the option on: "signed in to AgentCompass", then "agentcompass (AgentCompass, 1 models) signed in", then a 200 with work_kind debug_review. - PR CI: test and on-npm pass. Not tried: the market (npm) install, since the package is not on npm yet. A Routing Group in the GUI.
47 lines
1.8 KiB
JSON
47 lines
1.8 KiB
JSON
{
|
|
"name": "@magpie-community/gateway-agentcompass",
|
|
"version": "0.1.1",
|
|
"description": "Intent, multi-dimensional capability, Model DNA, subscription quota opportunity-cost, and session-affinity routing plugin for Magpie, powered by AgentCompass.",
|
|
"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"
|
|
},
|
|
"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"
|
|
}
|