@wayai/cli 0.3.110 → 0.3.111
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 +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18111,7 +18111,12 @@ async function deleteHistoryCommand(args2) {
|
|
|
18111
18111
|
}
|
|
18112
18112
|
}
|
|
18113
18113
|
const result = await (conversationId ? client.deleteHistory(hubId, { userId, mode: "current", conversationId }) : client.deleteHistory(hubId, { userId, mode: "all" }));
|
|
18114
|
-
|
|
18114
|
+
let summary = `Deleted ${result.deleted_count} conversation(s).`;
|
|
18115
|
+
if (!conversationId && result.cleared_state_count > 0) {
|
|
18116
|
+
const n = result.cleared_state_count;
|
|
18117
|
+
summary += ` Cleared ${n} user-scoped state entr${n === 1 ? "y" : "ies"}.`;
|
|
18118
|
+
}
|
|
18119
|
+
console.log(summary);
|
|
18115
18120
|
}
|
|
18116
18121
|
var init_delete_history = __esm({
|
|
18117
18122
|
"src/commands/delete-history.ts"() {
|
|
@@ -23431,7 +23436,7 @@ Commands:
|
|
|
23431
23436
|
conversations List or inspect conversations
|
|
23432
23437
|
alerts Show a hub's active connection/credential alerts (run this FIRST when a hub misbehaves)
|
|
23433
23438
|
analytics Show analytics summary and metrics (use \`analytics query\` for structured ClickHouse queries)
|
|
23434
|
-
delete-history Delete your conversations on a hub (--conversation-id <id>
|
|
23439
|
+
delete-history Delete your conversations on a hub; full history also clears your user-scoped state (--conversation-id <id> deletes just one, keeps state)
|
|
23435
23440
|
evals List evaluation scenarios for the current hub (use \`evals sql\` for read-only SQL on eval results)
|
|
23436
23441
|
run-eval Run all enabled evals and show results
|
|
23437
23442
|
eval-results View results from a completed eval session
|