@mrrlin-dev/external-agents 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +7 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// that need to reach the registry from bash without speaking MCP JSON-RPC.
|
|
5
5
|
//
|
|
6
6
|
// Subcommands:
|
|
7
|
-
// pick [--tier T] [--n N] [--min-distinct-providers M] [--exclude ID,ID]
|
|
7
|
+
// pick [--tier T] [--n N] [--min-distinct-providers M] [--exclude ID,ID] [--exclude-providers P,P]
|
|
8
8
|
// → prints one agent id per line (up to N), or exits 3 if no candidates
|
|
9
9
|
// dispatch <agent-id> [--pro] "<prompt>"
|
|
10
10
|
// → runs the agent, prints stdout of the child, exits with:
|
|
@@ -69,6 +69,11 @@ function cmdPick(flags) {
|
|
|
69
69
|
if (flags.tier) filter.tier = flags.tier;
|
|
70
70
|
if (flags.tags) filter.tags = String(flags.tags).split(",").filter(Boolean);
|
|
71
71
|
if (flags.exclude) filter.exclude_ids = String(flags.exclude).split(",").filter(Boolean);
|
|
72
|
+
if (flags["exclude-providers"]) {
|
|
73
|
+
const providers = new Set(String(flags["exclude-providers"]).split(",").filter(Boolean));
|
|
74
|
+
const ids = REGISTRY.agents.filter((a) => providers.has(a.provider)).map((a) => a.id);
|
|
75
|
+
filter.exclude_ids = [...(filter.exclude_ids || []), ...ids];
|
|
76
|
+
}
|
|
72
77
|
if (flags.transport) filter.transport = flags.transport;
|
|
73
78
|
const picked = pickAgents(REGISTRY, readState(), {
|
|
74
79
|
n,
|
|
@@ -193,7 +198,7 @@ switch (subcmd) {
|
|
|
193
198
|
case "--help":
|
|
194
199
|
case undefined:
|
|
195
200
|
console.error(`external-agents CLI — subcommands:
|
|
196
|
-
pick [--tier T] [--n N] [--min-distinct-providers M] [--exclude id,id] [--tags a,b] [--transport generate_new|edit_exists]
|
|
201
|
+
pick [--tier T] [--n N] [--min-distinct-providers M] [--exclude id,id] [--exclude-providers p,p] [--tags a,b] [--transport generate_new|edit_exists]
|
|
197
202
|
dispatch <agent-id> [--pro] [--transport generate_new|edit_exists] "<prompt>"
|
|
198
203
|
status [--json]
|
|
199
204
|
probe <agent-id>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrrlin-dev/external-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "One MCP server for every LLM you talk to — direct-API dispatcher across Gemini, DeepSeek, Groq, OpenRouter, Cerebras, and more. Part of mrrlin.com.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.js",
|