@wayai/cli 0.3.52 → 0.3.53

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/index.js CHANGED
@@ -7994,13 +7994,19 @@ function isNewerVersion(latest, current) {
7994
7994
  }
7995
7995
  return false;
7996
7996
  }
7997
- var UUID_RE, slugify;
7997
+ var UUID_RE, slugify, OWN_HELP_COMMANDS;
7998
7998
  var init_utils = __esm({
7999
7999
  "src/lib/utils.ts"() {
8000
8000
  "use strict";
8001
8001
  init_dist();
8002
8002
  UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
8003
8003
  slugify = slugifySkillName;
8004
+ OWN_HELP_COMMANDS = /* @__PURE__ */ new Set([
8005
+ "eval",
8006
+ "admin",
8007
+ "report",
8008
+ "conversations"
8009
+ ]);
8004
8010
  }
8005
8011
  });
8006
8012
 
@@ -11138,7 +11144,41 @@ var conversations_exports = {};
11138
11144
  __export(conversations_exports, {
11139
11145
  conversationsCommand: () => conversationsCommand
11140
11146
  });
11147
+ function printConversationsHelp() {
11148
+ console.error(`
11149
+ wayai conversations \u2014 list conversations or inspect what an agent received
11150
+
11151
+ Usage:
11152
+ wayai conversations List conversations
11153
+ wayai conversations --status <agent|team|ended> Filter by status
11154
+ wayai conversations --period 7d Analytics-powered list
11155
+ wayai conversations --from <date> --to <date> List within a date range
11156
+ wayai conversations <conversation_id> Show detail + messages
11157
+ wayai conversations <conversation_id> observability List the LLM turns (per-message id, latency, tool_calls)
11158
+ wayai conversations <conversation_id> observability --message-id <id>
11159
+ Full record for one turn:
11160
+ resolved system prompt, the exact
11161
+ messages the model saw (rendered
11162
+ additional_context, injected
11163
+ timestamps, replayed history),
11164
+ completion, tool calls, tokens
11165
+
11166
+ Options:
11167
+ --message-id <id> Expand one turn (only with the \`observability\` subcommand)
11168
+ --limit <n> Max rows (list view)
11169
+ --offset <n> Skip rows (list view)
11170
+ --json Raw JSON output
11171
+
11172
+ The default text list omits message ids \u2014 use \`--json\` or the \`observability\`
11173
+ subcommand to discover them. \`observability\` is the answer to "the agent did X \u2014
11174
+ what did it ACTUALLY see?".
11175
+ `.trim());
11176
+ }
11141
11177
  async function conversationsCommand(args2) {
11178
+ if (wantsHelp(args2)) {
11179
+ printConversationsHelp();
11180
+ return;
11181
+ }
11142
11182
  const hubId = resolveActiveHubId(args2);
11143
11183
  const { config, accessToken } = await requireAuth();
11144
11184
  requireRepoConfig();
@@ -17570,7 +17610,6 @@ var __dirname2 = dirname8(fileURLToPath3(import.meta.url));
17570
17610
  var pkg = JSON.parse(readFileSync15(join21(__dirname2, "..", "package.json"), "utf-8"));
17571
17611
  var [, , command, ...args] = process.argv;
17572
17612
  var isBackgroundRefresh = command === REFRESH_COMMAND;
17573
- var OWN_HELP_COMMANDS = /* @__PURE__ */ new Set(["eval", "admin", "report"]);
17574
17613
  if (!isBackgroundRefresh) initSentry(command);
17575
17614
  async function main() {
17576
17615
  if (shouldInterceptHelp(command, args, OWN_HELP_COMMANDS)) {