@2kw/ai 6.3.0-dev.13 → 6.3.0-dev.14
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/dist/commands/agents.js +15 -1
- package/package.json +1 -1
package/dist/commands/agents.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import { getClient, runAction } from "../lib/client.js";
|
|
3
|
-
import { formatPage, formatDetail, formatSuccess } from "../lib/output.js";
|
|
3
|
+
import { formatPage, formatDetail, formatList, formatSuccess } from "../lib/output.js";
|
|
4
4
|
import { addPaginationOptions, paginationParams } from "../lib/pagination.js";
|
|
5
5
|
import { makeAgentVersionsCommand } from "./agent-versions.js";
|
|
6
6
|
import { makeAgentLabelsCommand } from "./agent-labels.js";
|
|
@@ -172,6 +172,20 @@ export function makeAgentsCommand() {
|
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
cmd.addCommand(toolCatalogs);
|
|
175
|
+
// The skills the latest published version binds (#827) -- readable by a chat-only USER key,
|
|
176
|
+
// which cannot read the version itself. No published version answers [] rather than 404.
|
|
177
|
+
const skills = new Command("skills").description("List the skills an agent's latest published version binds");
|
|
178
|
+
skills.requiredOption("--agent <id>", "Agent ID");
|
|
179
|
+
skills.action(async (opts, command) => {
|
|
180
|
+
await runAction(command, async () => {
|
|
181
|
+
const client = getClient(command);
|
|
182
|
+
const { data } = await client.GET("/v1/agents/{agentId}/skills", {
|
|
183
|
+
params: { path: { agentId: opts.agent } },
|
|
184
|
+
});
|
|
185
|
+
formatList(data, command, ["name", "description", "versionNumber", "ref", "pluginName"]);
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
cmd.addCommand(skills);
|
|
175
189
|
cmd.addCommand(makeAgentRunCommand());
|
|
176
190
|
cmd.addCommand(makeAgentDecideCommand());
|
|
177
191
|
cmd.addCommand(makeAgentApplyCommand());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "6.3.0-dev.
|
|
3
|
+
"version": "6.3.0-dev.14",
|
|
4
4
|
"description": "CLI for 2kw.ai — schema-driven document extraction, an OpenAI-compatible EU LLM gateway, transcription, prompts, datasets, and experiments from your terminal or agentic workflows. Ships as 2kw, backbone, and bb.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|