@velaro/cli 1.4.160 → 1.4.161

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/README.md CHANGED
@@ -167,7 +167,7 @@ Feature access is gated by your subscription plan:
167
167
  - Login uses OAuth 2.0 device authorization (RFC 8628) — no password is ever stored
168
168
  - Credentials are saved to `~/.velaro/config.json` with owner-only permissions (`0600`)
169
169
  - Your Velaro JWT expires after 1 hour and is silently refreshed using a secure refresh token
170
- - All API calls go over HTTPS to `velaro-messaging-api.azurewebsites.net`
170
+ - All API calls go over HTTPS to `api-messaging-us-east.velaro.com`
171
171
 
172
172
  ## Publishing (internal)
173
173
 
@@ -23,6 +23,8 @@ export const aiConfigCommand = {
23
23
  .command(aiConfigCreateCommand)
24
24
  .command(aiConfigSetChannelOverrideCommand)
25
25
  .command(aiConfigListChannelOverridesCommand)
26
+ .command(aiConfigSetReplyFormatCommand)
27
+ .command(aiConfigSetMessageSpeedCommand)
26
28
  .command(aiConfigResolvedModelCommand)
27
29
  .command(aiConfigModelCallsCommand)
28
30
  .demandCommand(1, 'Specify a subcommand: list, get, create, set-channel-override, list-channel-overrides, staff-list, resolved-model, model-calls'),
@@ -196,6 +198,28 @@ const aiConfigSetReplyFormatCommand = {
196
198
  }),
197
199
  };
198
200
 
201
+ const aiConfigSetMessageSpeedCommand = {
202
+ command: 'set-message-speed <id>',
203
+ describe: 'Set bot Message Speed: instant | fixed | human (minimum time to reply on typed chat channels; voice and email are never paced)',
204
+ builder: (y) =>
205
+ y
206
+ .positional('id', { type: 'number', describe: 'AI configuration ID' })
207
+ .option('mode', { type: 'string', choices: ['instant', 'fixed', 'human'], demandOption: true, describe: 'instant = no pause, fixed = set delay, human = random 0.5-2.5s' })
208
+ .option('seconds', { type: 'number', describe: 'Fixed-mode delay in seconds (0-5)' }),
209
+ handler: runCommand(async (argv) => {
210
+ if (argv.seconds !== undefined && (argv.seconds < 0 || argv.seconds > 5)) {
211
+ console.error('--seconds must be between 0 and 5.'); process.exitCode = 1; return;
212
+ }
213
+ const all = (await get('/AIConfiguration/list')) ?? [];
214
+ const bot = all.find((x) => x.id === argv.id);
215
+ if (!bot) { console.error(`AI configuration ${argv.id} not found.`); process.exitCode = 1; return; }
216
+ const body = { ...bot, messageSpeedMode: argv.mode };
217
+ if (argv.seconds !== undefined) body.messageSpeedSeconds = argv.seconds;
218
+ const r = await messagingPost('/AIConfiguration', body);
219
+ console.log(`Message speed set: ai-config=${argv.id} mode=${r?.messageSpeedMode ?? argv.mode} seconds=${r?.messageSpeedSeconds ?? '-'}`);
220
+ }),
221
+ };
222
+
199
223
  // ── resolved-model ────────────────────────────────────────────────────────────
200
224
  // Voice preview (GET avatar/voices/{voiceId}/preview) is intentionally UI-only: it streams binary
201
225
  // audio for a browser <audio> element and has no useful CLI/MCP shape.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.160",
3
+ "version": "1.4.161",
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": {