@2kw/ai 8.2.0 → 8.3.0-dev.3
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/tracing.js +5 -1
- package/package.json +1 -1
package/dist/commands/tracing.js
CHANGED
|
@@ -40,6 +40,8 @@ export function makeTracingCommand() {
|
|
|
40
40
|
list.option("--source-service <name>", "Filter by source_service");
|
|
41
41
|
list.option("--status <code>", "Filter by status (OK, ERROR, UNSET — comma-separated for multiple)");
|
|
42
42
|
list.option("--search <query>", "Free-text search across trace id, span name, service, operation");
|
|
43
|
+
list.option("--from <iso>", "Start of time range (ISO-8601). Default: the 7 days before --to, or before now");
|
|
44
|
+
list.option("--to <iso>", "End of time range (ISO-8601)");
|
|
43
45
|
list.option("--page <n>", "Page index (0-based)", "0");
|
|
44
46
|
list.option("--size <n>", "Page size", "20");
|
|
45
47
|
list.action(async (opts, command) => {
|
|
@@ -51,6 +53,8 @@ export function makeTracingCommand() {
|
|
|
51
53
|
sourceService: opts.sourceService,
|
|
52
54
|
statusCode: opts.status,
|
|
53
55
|
search: opts.search,
|
|
56
|
+
from: opts.from,
|
|
57
|
+
to: opts.to,
|
|
54
58
|
page: parseInt(opts.page, 10),
|
|
55
59
|
size: parseInt(opts.size, 10),
|
|
56
60
|
},
|
|
@@ -78,7 +82,7 @@ export function makeTracingCommand() {
|
|
|
78
82
|
const sessionsList = new Command("list").description("List trace sessions");
|
|
79
83
|
sessionsList.option("--search <query>", "Free-text search across session id and name");
|
|
80
84
|
sessionsList.option("--session-id <sessionId>", "Exact match on the session.id the exporter stamped (slashes allowed)");
|
|
81
|
-
sessionsList.option("--from <iso>", "Start of time range (ISO-8601)");
|
|
85
|
+
sessionsList.option("--from <iso>", "Start of time range (ISO-8601). Default: the 7 days before --to, or before now");
|
|
82
86
|
sessionsList.option("--to <iso>", "End of time range (ISO-8601)");
|
|
83
87
|
sessionsList.option("--page <n>", "Page index (0-based)", "0");
|
|
84
88
|
sessionsList.option("--size <n>", "Page size", "20");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0-dev.3",
|
|
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",
|