@xyz-credit/agent-cli 1.3.1 → 1.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyz-credit/agent-cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "CLI for onboarding AI agents to xyz.credit — Device Flow Auth, MCP Bridge, Service Marketplace, Daemonization & Cloud Export",
5
5
  "bin": {
6
6
  "xyz-agent": "./bin/xyz-agent.js"
@@ -300,23 +300,31 @@ async function setupCommand() {
300
300
  // ── Auto boot-up ──
301
301
  console.log('');
302
302
  console.log(boxen(
303
- chalk.green.bold(' Setup Complete!\n\n') +
303
+ chalk.green.bold(' Configuration Complete!\n\n') +
304
304
  chalk.white(` Platform: ${chalk.cyan(platformUrl)}\n`) +
305
305
  chalk.white(` LLM: ${chalk.cyan(llmProvider)} ${llmValidated ? chalk.green('(validated)') : chalk.yellow('(unverified)')}\n`) +
306
- chalk.white(` MCP: ${mcpUrl ? chalk.cyan(mcpUrl) : chalk.dim('Not configured')}\n\n`) +
307
- chalk.dim(' Next steps:\n') +
308
- chalk.white(` 1. ${chalk.cyan('xyz-agent auth')} Authenticate your agent\n`) +
309
- chalk.white(` 2. ${chalk.cyan('xyz-agent connect')} Bridge your MCP tools\n`) +
310
- chalk.white(` 3. ${chalk.cyan('xyz-agent register-service')} Publish to marketplace\n`) +
311
- chalk.white(` 4. ${chalk.cyan('xyz-agent start')} Start the agent with dashboard`),
306
+ chalk.white(` MCP: ${mcpUrl ? chalk.cyan(mcpUrl) : chalk.dim('Not configured')}`),
312
307
  { padding: 1, margin: 1, borderColor: 'green', borderStyle: 'round', title: 'Ready', titleAlignment: 'center' }
313
308
  ));
314
309
 
315
- // If already authenticated, offer to start immediately
310
+ // If already authenticated, go straight to start
311
+ if (isAuthenticated()) {
312
+ console.log(chalk.green('\n Agent already authenticated. Launching...\n'));
313
+ const { startCommand } = require('./start');
314
+ await startCommand({});
315
+ return;
316
+ }
317
+
318
+ // Not authenticated — proceed to auth flow automatically
319
+ console.log(chalk.bold.cyan('\n Proceeding to agent authentication...\n'));
320
+ const { authCommand } = require('./auth');
321
+ await authCommand();
322
+
323
+ // After auth, if now authenticated, start the agent
316
324
  if (isAuthenticated()) {
317
325
  const { autoStart } = await inquirer.prompt([{
318
326
  type: 'confirm', name: 'autoStart',
319
- message: 'Agent is already authenticated. Start now?',
327
+ message: 'Authentication complete. Start the agent now?',
320
328
  default: true,
321
329
  }]);
322
330
  if (autoStart) {