@velaro/cli 1.4.239 → 1.4.240

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,23 +1,31 @@
1
- import { get, post } from '../api.js';
1
+ import { get, post, del } from '../api.js';
2
2
  import { runCommand } from '../run.js';
3
3
 
4
4
  // velaro conversation-action: REST actions on a conversation. Mirrors the conversation_action_send_message,
5
5
  // conversation_action_resolve, conversation_action_assign and conversation_action_notes MCP tools.
6
6
  export const conversationActionCommand = {
7
7
  command: 'conversation-action <action> <id>',
8
- describe: 'send | resolve | assign | notes on a conversation',
8
+ describe: 'send | resolve | assign | notes | transfer | tags | tag-add | tag-remove | transcript on a conversation',
9
9
  builder: y => y
10
- .positional('action', { choices: ['send', 'resolve', 'assign', 'notes'] })
10
+ .positional('action', { choices: ['send', 'resolve', 'assign', 'notes', 'transfer', 'tags', 'tag-add', 'tag-remove', 'transcript'] })
11
11
  .positional('id', { type: 'number' })
12
12
  .option('text', { type: 'string', describe: 'Message text (send)' })
13
13
  .option('agent-id', { type: 'number', describe: 'Agent id (assign, optional for send/resolve)' })
14
- .option('topic', { type: 'string', describe: 'Topic (resolve)' }),
14
+ .option('topic', { type: 'string', describe: 'Topic (resolve)' })
15
+ .option('team-id', { type: 'number', describe: 'Team id (transfer)' })
16
+ .option('tag-id', { type: 'number', describe: 'Tag id (tag-add by id, tag-remove)' })
17
+ .option('name', { type: 'string', describe: 'Tag name (tag-add; created when new)' }),
15
18
  handler: runCommand(async argv => {
16
19
  const base = `/api/v1/conversations/${argv.id}`;
17
20
  let d;
18
21
  if (argv.action === 'send') d = await post(`${base}/messages`, { text: argv.text, agentId: argv.agentId });
19
22
  else if (argv.action === 'resolve') d = await post(`${base}/resolve`, { topic: argv.topic, agentId: argv.agentId });
20
23
  else if (argv.action === 'assign') d = await post(`${base}/assign`, { agentId: argv.agentId });
24
+ else if (argv.action === 'transfer') d = await post(`${base}/transfer`, { teamId: argv.teamId, agentId: argv.agentId });
25
+ else if (argv.action === 'tags') d = await get(`${base}/tags`);
26
+ else if (argv.action === 'tag-add') d = await post(`${base}/tags`, { tagId: argv.tagId, name: argv.name });
27
+ else if (argv.action === 'tag-remove') d = await del(`${base}/tags/${argv.tagId}`);
28
+ else if (argv.action === 'transcript') d = await get(`${base}/transcript`);
21
29
  else d = await get(`${base}/notes`);
22
30
  console.log(JSON.stringify(d, null, 2));
23
31
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.239",
3
+ "version": "1.4.240",
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": {