@erdoai/cli 0.40.0 → 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.
- package/dist/index.js +8 -6
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -508,9 +508,9 @@ var ErdoClient = class {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
// --- activity feed ---
|
|
511
|
-
// The unified, ranked, read-only feed
|
|
512
|
-
//
|
|
513
|
-
// respondAttentionItem / decideApproval — this is a view only.
|
|
511
|
+
// The unified, ranked, read-only feed. It defaults to attention items,
|
|
512
|
+
// approvals, and workstream events; catalog and execution history are opt-in.
|
|
513
|
+
// Respond via respondAttentionItem / decideApproval — this is a view only.
|
|
514
514
|
listActivityFeed(params) {
|
|
515
515
|
const q = new URLSearchParams();
|
|
516
516
|
if (params?.limit) q.set("limit", String(params.limit));
|
|
@@ -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)
|
|
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") {
|
|
@@ -2418,7 +2420,7 @@ program.command("activity").alias("feed").description(
|
|
|
2418
2420
|
"The unified activity feed \u2014 needs-you items first, then urgent cause-clusters, then recent activity. Read-only: respond with `erdo attention respond` / `erdo approvals decide`."
|
|
2419
2421
|
).option("-n, --limit <n>", "max items (default 20, max 100)", (v) => parseInt(v, 10)).option("--offset <n>", "pagination offset", (v) => parseInt(v, 10)).option(
|
|
2420
2422
|
"--categories <list>",
|
|
2421
|
-
"comma-separated: attention,approval,workstream,catalog,job,heartbeat (default
|
|
2423
|
+
"comma-separated: attention,approval,workstream,catalog,job,heartbeat (default: attention,approval,workstream)"
|
|
2422
2424
|
).option("--scope <scope>", "following | all (default all)").option("--json", "raw JSON response").action(
|
|
2423
2425
|
async (opts) => {
|
|
2424
2426
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erdoai/cli",
|
|
3
|
-
"version": "0.40.
|
|
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": {
|
|
@@ -48,5 +48,8 @@
|
|
|
48
48
|
"tsup": "^8.0.0",
|
|
49
49
|
"tsx": "^4.0.0",
|
|
50
50
|
"typescript": "^5.7.0"
|
|
51
|
+
},
|
|
52
|
+
"overrides": {
|
|
53
|
+
"esbuild": "^0.28.1"
|
|
51
54
|
}
|
|
52
55
|
}
|