@2kw/ai 6.2.0-dev.30 → 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")
|
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",
|