@2kw/ai 6.2.0-dev.26 → 6.2.0-dev.42
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.
|
@@ -27,6 +27,8 @@ export function makeConversationsCommand() {
|
|
|
27
27
|
.option("--scope <scope>", "mine (default) or org; org needs MEMBER or above", "mine")
|
|
28
28
|
.option("--page <n>", "Page number, starting at 0", "0")
|
|
29
29
|
.option("--size <n>", "Page size, 1 to 100", "30")
|
|
30
|
+
.option("--status <statuses>", "Only these states, comma-separated: idle, working, paused, failed")
|
|
31
|
+
.option("--active-after <timestamp>", "Only conversations active at or after this ISO-8601 date-time")
|
|
30
32
|
.action(async (opts, command) => {
|
|
31
33
|
await runAction(command, async () => {
|
|
32
34
|
const client = getClient(command);
|
|
@@ -37,12 +39,24 @@ export function makeConversationsCommand() {
|
|
|
37
39
|
scope: opts.scope,
|
|
38
40
|
page: Number(opts.page),
|
|
39
41
|
size: Number(opts.size),
|
|
42
|
+
status: opts.status,
|
|
43
|
+
active_after: opts.activeAfter,
|
|
40
44
|
},
|
|
41
45
|
},
|
|
42
46
|
});
|
|
43
47
|
formatDetail(data, command);
|
|
44
48
|
});
|
|
45
49
|
});
|
|
50
|
+
cmd
|
|
51
|
+
.command("summary")
|
|
52
|
+
.description("Count your own conversations that are working, paused or recently failed")
|
|
53
|
+
.action(async (_opts, command) => {
|
|
54
|
+
await runAction(command, async () => {
|
|
55
|
+
const client = getClient(command);
|
|
56
|
+
const { data } = await client.GET("/v1/conversations/summary");
|
|
57
|
+
formatDetail(data, command);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
46
60
|
cmd
|
|
47
61
|
.command("get")
|
|
48
62
|
.description("Retrieve a conversation by id")
|
|
@@ -35,7 +35,7 @@ export function makeProvidersCommand() {
|
|
|
35
35
|
.command("create")
|
|
36
36
|
.description("Create a new provider")
|
|
37
37
|
.requiredOption("-n, --name <name>", "Provider name")
|
|
38
|
-
.requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral,
|
|
38
|
+
.requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral, ollama)")
|
|
39
39
|
.requiredOption("--provider-api-key <key>", "API key for the AI provider")
|
|
40
40
|
.option("-c, --config <json>", "Provider config as JSON")
|
|
41
41
|
.action(async (opts, command) => {
|
|
@@ -107,7 +107,7 @@ export function makeProvidersCommand() {
|
|
|
107
107
|
cmd
|
|
108
108
|
.command("test")
|
|
109
109
|
.description("Test connection to an AI provider using given or stored credentials")
|
|
110
|
-
.requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral,
|
|
110
|
+
.requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral, ollama)")
|
|
111
111
|
.option("--provider-api-key <key>", "API key to test (omit to use --provider-id's stored key)")
|
|
112
112
|
.option("--provider-id <id>", "Existing provider ID whose stored credentials should be used")
|
|
113
113
|
.option("-c, --config <json>", "Provider config as JSON")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "6.2.0-dev.
|
|
3
|
+
"version": "6.2.0-dev.42",
|
|
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",
|