@velaro/cli 1.4.218 → 1.4.219

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/bin/velaro.js CHANGED
@@ -149,6 +149,7 @@ import { billingInsightsGroup } from '../lib/commands/billing-insights.js';
149
149
  import { supportTicketsCommand } from '../lib/commands/support-tickets.js';
150
150
  import { aiAckGroup } from '../lib/commands/ai-ack.js';
151
151
  import { afterHoursSupportCommand } from '../lib/commands/after-hours-support.js';
152
+ import { automationAddonCommand } from '../lib/commands/automation-addon.js';
152
153
  import { startUpdateCheck } from '../lib/update-check.js';
153
154
  import { printBanner, printBannerIfFirstRun } from '../lib/banner.js';
154
155
  import { createRequire } from 'module';
@@ -312,6 +313,7 @@ await (registerStaffCommands ? registerStaffCommands(baseYargs) : baseYargs)
312
313
  .command(supportTicketsCommand)
313
314
  .command(aiAckGroup)
314
315
  .command(afterHoursSupportCommand)
316
+ .command(automationAddonCommand)
315
317
  .command(usageCommand)
316
318
  .command(campaignsCommand)
317
319
  .command(senderDomainHealthCommand)
@@ -0,0 +1,27 @@
1
+ // velaro automation-addon: status, limits and usage of the Automation and API add-on, and pause / resume.
2
+ // Site scoping is server-side (token). Pausing needs a site administrator and keeps all keys, webhooks and settings.
3
+ import { request } from '../api.js';
4
+
5
+ function show(r) {
6
+ console.log(`\nAutomation and API: ${r.status}`);
7
+ const l = r.limits || {};
8
+ console.log(`API keys: ${l.maxApiKeys || 'unlimited'}`);
9
+ console.log(`API calls per month: ${l.maxApiCallsPerMonth || 'unlimited'}`);
10
+ console.log(`Webhook subscriptions: ${l.maxWebhookEndpoints || 'unlimited'}`);
11
+ console.log(`Webhook calls / month: ${l.maxWebhookInvocationsPerMonth || 'unlimited'}`);
12
+ console.log(`Workflow triggers / mo: ${l.maxWorkflowTriggersPerMonth || 'unlimited'}`);
13
+ for (const u of r.usage || []) console.log(` ${u.label}: ${u.used}${u.limit ? ' of ' + u.limit : ''}`);
14
+ console.log('');
15
+ }
16
+
17
+ export const automationAddonCommand = {
18
+ command: 'automation-addon <subcommand>',
19
+ describe: 'Automation and API add-on: status, pause, resume',
20
+ builder: (yargs) =>
21
+ yargs
22
+ .command('get', 'Show status, limits and usage', {}, async () => show(await request('GET', 'AutomationAddon')))
23
+ .command('pause', 'Pause the add-on (keeps all configuration)', {}, async () => show(await request('PUT', 'AutomationAddon', { enabled: false })))
24
+ .command('resume', 'Resume the add-on', {}, async () => show(await request('PUT', 'AutomationAddon', { enabled: true })))
25
+ .demandCommand(1, 'Specify a subcommand: get | pause | resume'),
26
+ handler: () => {},
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.218",
3
+ "version": "1.4.219",
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": {