@2kw/ai 8.2.0 → 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.
@@ -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 VIEWER or higher.
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");
@@ -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", "viewer", "member", "admin", "owner"];
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, viewer, member, admin, owner or none")
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);
@@ -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",
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",