@2kw/ai 8.3.0-dev.3 → 8.3.0-dev.4
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
CHANGED
|
@@ -30,7 +30,7 @@ export function makeAgentsCommand() {
|
|
|
30
30
|
});
|
|
31
31
|
cmd.addCommand(list);
|
|
32
32
|
// The chat-facing read (#814): published agents, {id, name, description} only, and the
|
|
33
|
-
// one agent endpoint a chat-only USER key may call. `list` needs
|
|
33
|
+
// one agent endpoint a chat-only USER key may call. `list` needs MEMBER or higher.
|
|
34
34
|
const catalog = new Command("catalog").description("List published agents (id, name, description)");
|
|
35
35
|
addPaginationOptions(catalog);
|
|
36
36
|
catalog.option("-s, --search <term>", "Filter by name");
|
package/dist/commands/skills.js
CHANGED
|
@@ -21,7 +21,7 @@ async function checkResponse(res) {
|
|
|
21
21
|
timestamp: body.timestamp ?? new Date().toISOString(),
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
const MIN_ROLES = ["user", "
|
|
24
|
+
const MIN_ROLES = ["user", "member", "admin", "owner"];
|
|
25
25
|
/** A role word as the API's `Role`, or null for `none` (#785). */
|
|
26
26
|
function parseMinRole(word) {
|
|
27
27
|
const lower = word.trim().toLowerCase();
|
|
@@ -90,7 +90,7 @@ export function makeSkillsCommand() {
|
|
|
90
90
|
.command("min-role")
|
|
91
91
|
.description("Set the minimum organization role that sees this skill in agent runs (admin only); none removes it")
|
|
92
92
|
.argument("<id>", "Skill ID")
|
|
93
|
-
.argument("<role>", "user,
|
|
93
|
+
.argument("<role>", "user, member, admin, owner or none")
|
|
94
94
|
.action(async (id, role, _opts, command) => {
|
|
95
95
|
await runAction(command, async () => {
|
|
96
96
|
const minRole = parseMinRole(role);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "8.3.0-dev.
|
|
3
|
+
"version": "8.3.0-dev.4",
|
|
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",
|