@erdoai/cli 0.40.1 → 0.40.2

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2222,7 +2222,9 @@ agentCmd.command("thread").description("Create a thread; prints its id").option(
2222
2222
  agentCmd.command("threads").description("List your threads").action(async () => {
2223
2223
  try {
2224
2224
  const { threads } = await new ErdoClient().listThreads();
2225
- for (const t of threads) console.log(`${t.id} ${t.name}`);
2225
+ for (const t of threads) {
2226
+ console.log(`${t.id} ${t.name} ${t.created_by_user_name || t.created_by_user_id} ${t.source || "unrecorded"}`);
2227
+ }
2226
2228
  } catch (e) {
2227
2229
  fail(e);
2228
2230
  }
@@ -2231,7 +2233,7 @@ agentCmd.command("messages <threadId>").description("Show a thread's messages (r
2231
2233
  try {
2232
2234
  const { messages } = await new ErdoClient().getThreadMessages(threadId);
2233
2235
  for (const m of messages) {
2234
- const role = m.message.author_entity_type === "app" ? "agent" : m.message.author_entity_type;
2236
+ const role = m.message.author_entity_type === "app" ? "agent" : m.message.author_name || m.message.author_id || m.message.author_entity_type;
2235
2237
  console.log(`\u2014 ${role} \xB7 ${m.message.created_at} \u2014`);
2236
2238
  for (const c of m.contents) {
2237
2239
  if (c.content_type === "text") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {