@velaro/cli 1.4.143 → 1.4.145
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/lib/commands/bot.js +1 -1
- package/lib/commands/contacts.js +3 -3
- package/package.json +1 -1
package/lib/commands/bot.js
CHANGED
|
@@ -75,7 +75,7 @@ const botSetupCommand = {
|
|
|
75
75
|
.option('name', { describe: 'Bot name', type: 'string', demandOption: true })
|
|
76
76
|
.option('prompt', { describe: 'System prompt text (inline)', type: 'string' })
|
|
77
77
|
.option('prompt-file', { describe: 'Path to a file containing the system prompt', type: 'string' })
|
|
78
|
-
.option('model', { describe: 'AI model', choices: ['velaro-gpt-4o-mini','velaro-gpt-4o'], type: 'string', default: 'velaro-gpt-4o-mini' })
|
|
78
|
+
.option('model', { describe: 'AI model', choices: ['velaro-gpt-4o-mini','velaro-gpt-4o','claude-haiku-4-5-20251001','claude-sonnet-5','claude-sonnet-5-5'], type: 'string', default: 'velaro-gpt-4o-mini' })
|
|
79
79
|
.option('tone', { describe: 'Response tone', choices: ['Professional','Friendly','Formal','Casual'], default: 'Professional' })
|
|
80
80
|
.option('reply-length', { describe: 'Response length', choices: ['Short','Medium','Long'], default: 'Medium' })
|
|
81
81
|
.option('urls', { describe: 'Comma-separated data source URLs', type: 'string' })
|
package/lib/commands/contacts.js
CHANGED
|
@@ -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
|
|
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