@erdoai/cli 0.52.0 → 0.53.0

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2463,15 +2463,22 @@ agentCmd.command("threads").description("List your threads").action(async () =>
2463
2463
  fail(e);
2464
2464
  }
2465
2465
  });
2466
- agentCmd.command("messages <threadId>").description("Show a thread's messages (role + text)").action(async (threadId) => {
2466
+ agentCmd.command("messages <threadId>").description("Show a thread's messages (role + text)").option("-v, --verbose", "print full content for non-text entries (tool calls, results, etc.) instead of a placeholder").action(async (threadId, opts) => {
2467
2467
  try {
2468
2468
  const { messages } = await new ErdoClient().getThreadMessages(threadId);
2469
+ if (messages.length === 0) {
2470
+ console.log("No visible messages in this thread.");
2471
+ return;
2472
+ }
2469
2473
  for (const m of messages) {
2470
2474
  const role = m.message.author_entity_type === "app" ? "agent" : m.message.author_name || m.message.author_id || m.message.author_entity_type;
2471
2475
  console.log(`\u2014 ${role} \xB7 ${m.message.created_at} \u2014`);
2472
2476
  for (const c of m.contents) {
2473
2477
  if (c.content_type === "text") {
2474
2478
  console.log(c.content);
2479
+ } else if (opts.verbose) {
2480
+ console.log(`\x1B[2m[${c.content_type}]\x1B[0m`);
2481
+ console.log(typeof c.content === "string" ? c.content : JSON.stringify(c.content, null, 2));
2475
2482
  } else {
2476
2483
  console.log(`\x1B[2m[${c.content_type}]\x1B[0m`);
2477
2484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Erdo CLI — drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {