@velaro/cli 1.4.143 → 1.4.144

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.
@@ -1,4 +1,4 @@
1
- import { request } from '../api.js';
1
+ import { request, messagingRequest } from '../api.js';
2
2
  import { runCommand } from '../run.js';
3
3
 
4
4
  // -- velaro contacts ----------------------------------------------------------
@@ -71,8 +71,8 @@ async function addNoteHandler(argv) {
71
71
 
72
72
  // GET Contacts/{id}/Timeline -> ContactsController.GetTimeline
73
73
  async function timelineHandler(argv) {
74
- const events = await request('GET', `Contacts/${argv.id}/Timeline`);
75
- const list = Array.isArray(events) ? events : (events?.items ?? []);
74
+ const events = await messagingRequest('GET', `/Contacts/${argv.id}/Timeline`); // timeline lives in velaro-messaging; the admin API answers an empty list
75
+ const list = Array.isArray(events) ? events : (events?.events ?? events?.items ?? []); // API answers { events: [...] }
76
76
  if (!list.length) {
77
77
  console.log('\nNo timeline activity for this contact.\n');
78
78
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.143",
3
+ "version": "1.4.144",
4
4
  "description": "Velaro Workspace v20 — command-line interface for managing bots, knowledge base ingestion, MCP API keys, search indexes, and ops health.",
5
5
  "type": "module",
6
6
  "bin": {