@2kw/ai 8.2.0-dev.9 → 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.
@@ -33,7 +33,7 @@ export function makeProvidersCommand() {
33
33
  });
34
34
  cmd
35
35
  .command("create")
36
- .description("Create a new provider")
36
+ .description("Create a new provider (admin)")
37
37
  .requiredOption("-n, --name <name>", "Provider name")
38
38
  .requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral, ollama)")
39
39
  .option("--provider-api-key <key>", "API key for the AI provider (not needed for ollama)")
@@ -50,7 +50,7 @@ export function makeProvidersCommand() {
50
50
  });
51
51
  cmd
52
52
  .command("update")
53
- .description("Update a provider")
53
+ .description("Update a provider (admin)")
54
54
  .argument("<id>", "Provider ID")
55
55
  .option("-n, --name <name>", "New name")
56
56
  .option("--type <type>", "New type")
@@ -74,7 +74,7 @@ export function makeProvidersCommand() {
74
74
  });
75
75
  cmd
76
76
  .command("delete")
77
- .description("Delete a provider")
77
+ .description("Delete a provider (admin)")
78
78
  .argument("<id>", "Provider ID")
79
79
  .action(async (id, _opts, command) => {
80
80
  await runAction(command, async () => {
@@ -97,7 +97,7 @@ export function makeProvidersCommand() {
97
97
  });
98
98
  cmd
99
99
  .command("test")
100
- .description("Test connection to an AI provider using given or stored credentials")
100
+ .description("Test connection to an AI provider using given or stored credentials (admin)")
101
101
  .requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral, ollama)")
102
102
  .option("--provider-api-key <key>", "API key to test (omit to use --provider-id's stored key)")
103
103
  .option("--provider-id <id>", "Existing provider ID whose stored credentials should be used")
@@ -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.2.0-dev.9",
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",