oneie 1.2.0 → 1.2.1

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/oneie.js CHANGED
@@ -21,14 +21,16 @@ program
21
21
  .description('šŸ¤ ONE - Personal Collaborative Intelligence')
22
22
  .version('1.1.0');
23
23
 
24
- // Main install command (default)
24
+ // Main install command (default - engineering agents only)
25
25
  program
26
26
  .command('install', { isDefault: true })
27
- .description('Install ONE and create your personal workspace')
27
+ .description('Install ONE and create your personal workspace with engineering team')
28
28
  .option('-a, --auto', 'Skip interactive setup', false)
29
29
  .action(async (options) => {
30
30
  try {
31
31
  const installer = new OneInstaller();
32
+ // Force core-only installation (engineering agents only)
33
+ options.coreOnly = true;
32
34
  await installer.install(options);
33
35
  } catch (error) {
34
36
  console.error(chalk.red('āŒ Installation failed:'), error.message);
@@ -36,6 +38,23 @@ program
36
38
  }
37
39
  });
38
40
 
41
+ // Secret marketing command
42
+ program
43
+ .command('marketing')
44
+ .description('Install marketing team agents')
45
+ .option('-a, --auto', 'Skip interactive setup', false)
46
+ .action(async (options) => {
47
+ try {
48
+ const installer = new OneInstaller();
49
+ // Install all agents including marketing
50
+ options.includeMarketing = true;
51
+ await installer.install(options);
52
+ } catch (error) {
53
+ console.error(chalk.red('āŒ Marketing installation failed:'), error.message);
54
+ process.exit(1);
55
+ }
56
+ });
57
+
39
58
  // Generate content from me.md
40
59
  program
41
60
  .command('generate')
@@ -294,59 +313,129 @@ program
294
313
  }
295
314
  });
296
315
 
297
- // Show personal agents
316
+ // Agent management commands
298
317
  program
299
318
  .command('agents')
300
- .description('View your personalized AI agents')
301
- .action(async () => {
319
+ .description('Agent management and installation')
320
+ .argument('[command]', 'Agent command (install, update, uninstall, status)')
321
+ .option('--backup', 'Create backup before update/uninstall')
322
+ .action(async (command, options) => {
302
323
  try {
303
324
  const installer = new OneInstaller();
325
+ const { AgentInstaller } = await import('../one/tools/agent-installer.js');
326
+ const agentInstaller = new AgentInstaller();
304
327
 
305
- if (!await installer.isInstalled()) {
306
- console.log(chalk.red('āŒ ONE is not installed here.'));
307
- console.log(chalk.gray('Run: npx oneie'));
308
- return;
309
- }
310
-
311
- console.log(chalk.cyan.bold('\\nšŸ¤– Your Personal AI Agents\\n'));
312
-
313
- const agentsDir = path.join(process.cwd(), '.one', 'agents');
314
- if (await fs.pathExists(agentsDir)) {
315
- const agentFiles = await fs.readdir(agentsDir);
316
- const yamlFiles = agentFiles.filter(file => file.endsWith('.yaml'));
328
+ if (!command || command === 'status') {
329
+ // Show agent status
330
+ console.log(chalk.cyan.bold('\\nšŸ¤– Agent Installation Status\\n'));
331
+
332
+ const status = await agentInstaller.getStatus();
333
+
334
+ if (!status.installed) {
335
+ console.log(chalk.yellow('āš ļø Claude Code agents not installed'));
336
+ console.log(chalk.gray('Run: npx oneie agents install'));
337
+ return;
338
+ }
339
+
340
+ console.log(chalk.blue('šŸ“Š Agent Summary:'));
341
+ console.log(` šŸ†“ Free Agents: ${status.agents.free}`);
342
+ console.log(` šŸ’Ž Premium Agents: ${status.agents.premium}`);
343
+ console.log(` šŸ“ Total Agents: ${status.agents.total}`);
344
+ console.log(` āš™ļø Command Files: ${status.commands}`);
345
+
346
+ if (status.license) {
347
+ console.log(`\\nšŸ“„ License Status: ${status.license.status}`);
348
+ if (status.license.licenseType) {
349
+ console.log(` License Type: ${status.license.licenseType}`);
350
+ console.log(` Expires: ${status.license.expiresAt ? new Date(status.license.expiresAt).toLocaleDateString() : 'N/A'}`);
351
+ }
352
+ }
353
+
354
+ console.log(chalk.cyan('\\nšŸ’¬ Try your agents:'));
355
+ console.log(' one:engineering-director "Help me with system design"');
356
+ console.log(' one:content-team-manager "Create a content strategy"');
357
+ if (status.license && status.license.status === 'active') {
358
+ console.log(' one:marketing-director "Develop a marketing campaign"');
359
+ }
360
+
361
+ } else if (command === 'install') {
362
+ console.log(chalk.cyan.bold('\\nšŸ“¦ Installing Claude Code Agents\\n'));
363
+ await agentInstaller.install(options);
364
+
365
+ } else if (command === 'update') {
366
+ console.log(chalk.cyan.bold('\\nšŸ”„ Updating Claude Code Agents\\n'));
367
+ await agentInstaller.update(options);
317
368
 
318
- if (yamlFiles.length === 0) {
319
- console.log(chalk.yellow('No agents found. Run: npx oneie generate'));
369
+ } else if (command === 'uninstall') {
370
+ console.log(chalk.cyan.bold('\\nšŸ—‘ļø Uninstalling Claude Code Agents\\n'));
371
+
372
+ const { confirm } = await import('inquirer').then(m => m.default);
373
+ const { proceed } = await confirm.prompt([{
374
+ type: 'confirm',
375
+ name: 'proceed',
376
+ message: 'Are you sure you want to uninstall all agents?',
377
+ default: false
378
+ }]);
379
+
380
+ if (proceed) {
381
+ await agentInstaller.uninstall(options);
382
+ } else {
383
+ console.log(chalk.gray('Uninstall cancelled'));
384
+ }
385
+
386
+ } else if (command === 'list') {
387
+ // Show personal agents (legacy behavior)
388
+ if (!await installer.isInstalled()) {
389
+ console.log(chalk.red('āŒ ONE is not installed here.'));
390
+ console.log(chalk.gray('Run: npx oneie'));
320
391
  return;
321
392
  }
393
+
394
+ console.log(chalk.cyan.bold('\\nšŸ¤– Your Personal AI Agents\\n'));
322
395
 
323
- for (const file of yamlFiles) {
324
- const agentPath = path.join(agentsDir, file);
325
- const content = await fs.readFile(agentPath, 'utf8');
326
- const frontMatter = content.match(/^---\\n([\\s\\S]*?)\\n---/);
396
+ const agentsDir = path.join(process.cwd(), '.one', 'agents');
397
+ if (await fs.pathExists(agentsDir)) {
398
+ const agentFiles = await fs.readdir(agentsDir);
399
+ const yamlFiles = agentFiles.filter(file => file.endsWith('.yaml'));
327
400
 
328
- if (frontMatter) {
329
- try {
330
- const yaml = await import('js-yaml');
331
- const config = yaml.default.load(frontMatter[1]);
332
-
333
- console.log(chalk.blue(`šŸ¤– ${config.name}`));
334
- console.log(chalk.gray(` ${config.description.split('\\n')[0]}`));
335
- if (config.expertise) {
336
- console.log(chalk.gray(` Expertise: ${JSON.parse(config.expertise).join(', ')}`));
401
+ if (yamlFiles.length === 0) {
402
+ console.log(chalk.yellow('No personal agents found. Run: npx oneie generate'));
403
+ return;
404
+ }
405
+
406
+ for (const file of yamlFiles) {
407
+ const agentPath = path.join(agentsDir, file);
408
+ const content = await fs.readFile(agentPath, 'utf8');
409
+ const frontMatter = content.match(/^---\\n([\\s\\S]*?)\\n---/);
410
+
411
+ if (frontMatter) {
412
+ try {
413
+ const yaml = await import('js-yaml');
414
+ const config = yaml.default.load(frontMatter[1]);
415
+
416
+ console.log(chalk.blue(`šŸ¤– ${config.name}`));
417
+ console.log(chalk.gray(` ${config.description.split('\\n')[0]}`));
418
+ if (config.expertise) {
419
+ console.log(chalk.gray(` Expertise: ${JSON.parse(config.expertise).join(', ')}`));
420
+ }
421
+ console.log('');
422
+ } catch (e) {
423
+ console.log(chalk.gray(`šŸ¤– ${file.replace('.yaml', '')}`));
337
424
  }
338
- console.log('');
339
- } catch (e) {
340
- console.log(chalk.gray(`šŸ¤– ${file.replace('.yaml', '')}`));
341
425
  }
342
426
  }
427
+ } else {
428
+ console.log(chalk.yellow('No agents directory found. Run: npx oneie generate'));
343
429
  }
430
+
344
431
  } else {
345
- console.log(chalk.yellow('No agents directory found. Run: npx oneie generate'));
432
+ console.log(chalk.red(`āŒ Unknown agent command: ${command}`));
433
+ console.log(chalk.gray('Available: install, update, uninstall, status, list'));
346
434
  }
347
435
 
348
436
  } catch (error) {
349
- console.error(chalk.red('āŒ Failed to show agents:'), error.message);
437
+ console.error(chalk.red('āŒ Agent command failed:'), error.message);
438
+ process.exit(1);
350
439
  }
351
440
  });
352
441
 
@@ -358,7 +447,8 @@ program
358
447
  console.log(chalk.cyan.bold('\\nšŸ¤ ONE - Personal Collaborative Intelligence\\n'));
359
448
 
360
449
  console.log(chalk.blue('šŸš€ Getting Started:'));
361
- console.log(' npx oneie # Install and setup your personal workspace');
450
+ console.log(' npx oneie # Install engineering team workspace');
451
+ console.log(' npx oneie marketing # Add marketing team agents');
362
452
  console.log(' npx oneie update-me # Update your me.md profile');
363
453
  console.log(' npx oneie generate # Generate content from your profile');
364
454
  console.log('');
@@ -370,7 +460,9 @@ program
370
460
  console.log('');
371
461
 
372
462
  console.log(chalk.blue('šŸ¤– Your Personalized Workspace:'));
373
- console.log(' npx oneie agents # View your AI agents');
463
+ console.log(' npx oneie agents # Agent management and status');
464
+ console.log(' npx oneie agents install # Install Claude Code agents');
465
+ console.log(' npx oneie agents list # View your personal agents');
374
466
  console.log(' npx oneie mission list # See your missions');
375
467
  console.log(' npx oneie story list # See your stories');
376
468
  console.log(' npx oneie task list # See your tasks');
@@ -386,10 +478,12 @@ program
386
478
  console.log(chalk.gray('Your workspace adapts as you update me.md - try it!'));
387
479
  });
388
480
 
389
- // Handle no command (default to install)
481
+ // Handle no command (default to install with core-only)
390
482
  program.action(async (options) => {
391
483
  try {
392
484
  const installer = new OneInstaller();
485
+ // Default to engineering agents only
486
+ options.coreOnly = true;
393
487
  await installer.install(options);
394
488
  } catch (error) {
395
489
  console.error(chalk.red('āŒ Installation failed:'), error.message);
package/one/tools/cli.js CHANGED
@@ -5,11 +5,15 @@ import { promises as fs } from 'fs';
5
5
  import path from 'path';
6
6
  import { fileURLToPath } from 'url';
7
7
  import process from 'process';
8
+ import { BackgroundAgentLoader } from './background-agent-loader.js';
8
9
 
9
10
  const __filename = fileURLToPath(import.meta.url);
10
11
  const __dirname = path.dirname(__filename);
11
12
  const program = new Command();
12
13
 
14
+ // Initialize Background Agent Loader
15
+ const agentLoader = new BackgroundAgentLoader();
16
+
13
17
  // Responsive Display Functions
14
18
  function getTerminalWidth() {
15
19
  // Check environment variable first, then stdout.columns, then default to 80
@@ -826,17 +830,133 @@ program
826
830
  displayONEInterface();
827
831
  });
828
832
 
829
- // Dynamic agent launch command - matches any agent name
833
+ // Dynamic agent launch command - matches any agent name (includes one:agent-name support)
830
834
  program
831
- .arguments('<agent-name>')
832
- .description('Launch a specific agent')
833
- .action(async (agentName) => {
835
+ .arguments('<agent-name> [args...]')
836
+ .description('Launch a specific agent (supports both legacy and one:agent-name patterns)')
837
+ .action(async (agentName, args) => {
834
838
  // Check if it's the special "/one" command
835
839
  if (agentName === '/one' || agentName === 'one') {
836
840
  displayONEInterface();
837
841
  return;
838
842
  }
839
843
 
844
+ // Check if this is a one:agent-name pattern - handle with BackgroundAgentLoader
845
+ if (agentName.startsWith('one:')) {
846
+ const command = agentName.replace('one:', '');
847
+
848
+ console.log(`šŸ¤– Executing agent command: ${agentName}`);
849
+ console.log('šŸ“ Agent execution via BackgroundAgentLoader...\n');
850
+
851
+ try {
852
+ // Check if agent exists before attempting to load
853
+ const availableAgents = await agentLoader.listAvailableAgents();
854
+ const validAgents = availableAgents.filter(agent => agent !== 'README' && !agent.startsWith('.'));
855
+
856
+ if (!validAgents.includes(command)) {
857
+ console.error(`āŒ Agent '${command}' not found in .claude/agents/`);
858
+ console.error('\nšŸ“‹ Available agents:');
859
+ validAgents.forEach(agent => {
860
+ console.error(` - one:${agent}`);
861
+ });
862
+ process.exit(1);
863
+ }
864
+
865
+ // Load agent using BackgroundAgentLoader
866
+ const agent = await agentLoader.loadAgent(command);
867
+
868
+ if (!agent) {
869
+ console.error(`āŒ Failed to load agent '${command}'`);
870
+ process.exit(1);
871
+ }
872
+
873
+ // Get agent arguments
874
+ const agentArgs = args && args.length > 0 ? args.join(' ') : '';
875
+
876
+ // Execute agent with context and arguments
877
+ const context = {
878
+ command: agentName,
879
+ timestamp: new Date().toISOString(),
880
+ arguments: agentArgs,
881
+ workingDirectory: process.cwd()
882
+ };
883
+
884
+ console.log(`āœ… Agent loaded: ${agent.name || command}`);
885
+ console.log(`šŸ“ Description: ${agent.description || 'No description available'}`);
886
+ console.log(`šŸ¢ Team: ${agent.team || 'Core'}`);
887
+
888
+ if (agentArgs) {
889
+ console.log(`šŸ’¬ Arguments: ${agentArgs}`);
890
+ }
891
+
892
+ // Execute the agent with coordination enabled
893
+ const executionOptions = {
894
+ enableCoordination: true,
895
+ maxSpawn: 2,
896
+ executeSpawnedAgents: false // Don't execute spawned agents immediately
897
+ };
898
+
899
+ const result = await agentLoader.executeAgent(command, context, agentArgs, executionOptions);
900
+
901
+ console.log('\nšŸŽÆ Agent execution completed successfully!');
902
+ console.log(`ā±ļø Execution time: ${result.executionTime || 'N/A'}`);
903
+
904
+ // Display coordination results if available
905
+ if (result.coordination) {
906
+ console.log('\nšŸ¤ Agent Coordination:');
907
+ console.log(` šŸ“” Session ID: ${result.coordination.sessionId}`);
908
+ console.log(` šŸ¤– Spawned Agents: ${result.coordination.spawnedAgents.length}`);
909
+ if (result.coordination.spawnedAgents.length > 0) {
910
+ result.coordination.spawnedAgents.forEach(agent => {
911
+ console.log(` • ${agent.name} (${agent.role})`);
912
+ });
913
+ }
914
+ console.log(` šŸ¤ Coordinated Agents: ${result.coordination.coordinatedAgents.length}`);
915
+ if (result.coordination.coordinatedAgents.length > 0) {
916
+ result.coordination.coordinatedAgents.forEach(agent => {
917
+ console.log(` • ${agent.name} (${agent.role})`);
918
+ });
919
+ }
920
+ console.log(` ā±ļø Coordination Duration: ${result.coordination.duration}ms`);
921
+ }
922
+
923
+ if (result.output) {
924
+ console.log('\nšŸ“¤ Agent output:');
925
+ console.log(result.output);
926
+ }
927
+
928
+ } catch (error) {
929
+ // Handle premium agent access errors specially
930
+ if (error.code === 'PREMIUM_ACCESS_REQUIRED') {
931
+ console.error('šŸ”’ Premium Agent Access Required\n');
932
+
933
+ // Generate and display upgrade prompt
934
+ const upgradePrompt = await agentLoader.generateUpgradePrompt(command);
935
+ console.log(upgradePrompt);
936
+
937
+ process.exit(1);
938
+ }
939
+
940
+ console.error('āŒ Agent execution failed:', error.message);
941
+
942
+ // Provide helpful debugging information
943
+ console.log('\nšŸ” Troubleshooting:');
944
+ console.log(' • Ensure agent exists in .claude/agents/ directory');
945
+ console.log(' • Check agent file format and structure');
946
+ console.log(' • Try: node one/tools/cli.js one:engineering-director');
947
+ console.log(' • View available agents with: one agent --list --claude');
948
+
949
+ if (process.env.NODE_ENV === 'development' && error.stack) {
950
+ console.log('\nšŸ› Stack trace:');
951
+ console.log(error.stack);
952
+ }
953
+
954
+ process.exit(1);
955
+ }
956
+
957
+ return;
958
+ }
959
+
840
960
  const { default: WebBuilder } = await import('./builders/web-builder.js');
841
961
  const builder = new WebBuilder({ rootDir: process.cwd() });
842
962
 
@@ -1494,6 +1614,16 @@ program
1494
1614
  await handleFormatsCommand(options);
1495
1615
  });
1496
1616
 
1617
+ program
1618
+ .command('one:license')
1619
+ .description('Manage premium agent licensing')
1620
+ .option('-s, --status', 'Show license status')
1621
+ .option('-t, --trial [days]', 'Create trial license (default: 7 days)')
1622
+ .option('-l, --list', 'List agents with premium status')
1623
+ .action(async (options) => {
1624
+ await handleLicenseCommand(options);
1625
+ });
1626
+
1497
1627
 
1498
1628
  // ONE Command Handler
1499
1629
  async function handleOneCommand(type, subcommand) {
@@ -1643,6 +1773,167 @@ async function handlePdfCommand(file, options) {
1643
1773
  });
1644
1774
  }
1645
1775
 
1776
+ // Handle license management command
1777
+ async function handleLicenseCommand(options) {
1778
+ console.log('šŸ“„ ONE Framework License Manager\n');
1779
+
1780
+ if (options.status) {
1781
+ const status = await agentLoader.getLicenseStatus();
1782
+
1783
+ console.log(`Status: ${status.status}`);
1784
+ console.log(`Message: ${status.message}`);
1785
+
1786
+ if (status.licenseType) {
1787
+ console.log(`License Type: ${status.licenseType}`);
1788
+ console.log(`Expires: ${status.expiresAt ? new Date(status.expiresAt).toLocaleDateString() : 'N/A'}`);
1789
+ if (status.daysUntilExpiry) {
1790
+ console.log(`Days until expiry: ${status.daysUntilExpiry}`);
1791
+ }
1792
+ }
1793
+
1794
+ console.log(`Free agents: ${status.freeAgents || 0}`);
1795
+ console.log(`Premium agents: ${status.premiumAgents || 0}`);
1796
+
1797
+ if (status.status === 'unlicensed') {
1798
+ console.log('\nšŸ’” To try premium agents:');
1799
+ console.log(' node one/tools/cli.js one:license --trial');
1800
+ console.log('\nšŸ’³ For full access:');
1801
+ console.log(' Visit: https://one.ie/upgrade');
1802
+ }
1803
+
1804
+ return;
1805
+ }
1806
+
1807
+ if (options.trial !== undefined) {
1808
+ const days = parseInt(options.trial) || 7;
1809
+ console.log(`šŸŽÆ Creating ${days}-day trial license...\n`);
1810
+
1811
+ try {
1812
+ const trialLicense = await agentLoader.createTrialLicense(days);
1813
+
1814
+ console.log('āœ… Trial license created successfully!');
1815
+ console.log(`šŸ“… Valid until: ${new Date(trialLicense.expiresAt).toLocaleDateString()}`);
1816
+ console.log(`šŸ”‘ License Key: ${trialLicense.key}`);
1817
+ console.log('\nšŸš€ You now have access to premium agents:');
1818
+ console.log(' • Complete Marketing Team');
1819
+ console.log(' • Crypto Trading Specialists');
1820
+ console.log(' • Viral Growth Engine');
1821
+ console.log('\nTry: node one/tools/cli.js one:marketing-director');
1822
+
1823
+ } catch (error) {
1824
+ console.error('āŒ Failed to create trial license:', error.message);
1825
+ process.exit(1);
1826
+ }
1827
+
1828
+ return;
1829
+ }
1830
+
1831
+ if (options.list) {
1832
+ console.log('šŸ“‹ Agents with Premium Status:\n');
1833
+
1834
+ try {
1835
+ const agentList = await agentLoader.listAgentsWithStatus();
1836
+ const freeAgents = agentList.filter(a => !a.isPremium);
1837
+ const premiumAgents = agentList.filter(a => a.isPremium);
1838
+
1839
+ if (freeAgents.length > 0) {
1840
+ console.log('šŸ†“ Free Agents:');
1841
+ freeAgents.forEach(agent => {
1842
+ const status = agent.hasAccess ? 'āœ…' : 'āŒ';
1843
+ console.log(` ${status} ${agent.name}`);
1844
+ });
1845
+ console.log();
1846
+ }
1847
+
1848
+ if (premiumAgents.length > 0) {
1849
+ console.log('šŸ’Ž Premium Agents:');
1850
+ premiumAgents.forEach(agent => {
1851
+ const status = agent.hasAccess ? 'āœ…' : 'šŸ”’';
1852
+ console.log(` ${status} ${agent.name}`);
1853
+ });
1854
+ console.log();
1855
+ }
1856
+
1857
+ console.log(`Total: ${freeAgents.length} free, ${premiumAgents.length} premium`);
1858
+
1859
+ } catch (error) {
1860
+ console.error('āŒ Failed to list agents:', error.message);
1861
+ process.exit(1);
1862
+ }
1863
+
1864
+ return;
1865
+ }
1866
+
1867
+ // Default: show license status
1868
+ await handleLicenseCommand({ status: true });
1869
+ }
1870
+
1871
+ // Add coordination stats command
1872
+ program
1873
+ .command('one:coordination')
1874
+ .alias('one:coord')
1875
+ .description('šŸ“Š View agent coordination statistics and active sessions')
1876
+ .option('--sessions', 'Show active coordination sessions')
1877
+ .option('--stats', 'Show coordination statistics')
1878
+ .action(async (options) => {
1879
+ const agentLoader = new BackgroundAgentLoader();
1880
+
1881
+ if (options.sessions) {
1882
+ console.log(chalk.cyan('šŸ¤ Active Agent Coordination Sessions:\n'));
1883
+
1884
+ const activeSessions = agentLoader.getActiveCoordinationSessions();
1885
+
1886
+ if (activeSessions.length === 0) {
1887
+ console.log(chalk.yellow('ā³ No active coordination sessions'));
1888
+ return;
1889
+ }
1890
+
1891
+ activeSessions.forEach(session => {
1892
+ console.log(chalk.blue(`šŸ“” Session ${session.id}:`));
1893
+ console.log(` šŸŽÆ Primary Agent: ${session.primaryAgent}`);
1894
+ console.log(` šŸ“ Context: ${session.context.substring(0, 60)}${session.context.length > 60 ? '...' : ''}`);
1895
+ console.log(` ā° Started: ${new Date(session.startTime).toLocaleTimeString()}`);
1896
+ console.log(` šŸ“Š Status: ${session.status}`);
1897
+ if (session.spawnedAgents?.length > 0) {
1898
+ console.log(` šŸ¤– Spawned: ${session.spawnedAgents.map(a => a.name).join(', ')}`);
1899
+ }
1900
+ if (session.coordinatedAgents?.length > 0) {
1901
+ console.log(` šŸ¤ Coordinated: ${session.coordinatedAgents.map(a => a.name).join(', ')}`);
1902
+ }
1903
+ console.log('');
1904
+ });
1905
+ return;
1906
+ }
1907
+
1908
+ if (options.stats || (!options.sessions && !options.stats)) {
1909
+ console.log(chalk.cyan('šŸ“Š Agent Coordination Statistics:\n'));
1910
+
1911
+ const stats = agentLoader.getCoordinationStats();
1912
+
1913
+ if (!stats.enabled) {
1914
+ console.log(chalk.yellow('āš ļø Agent coordination is disabled'));
1915
+ return;
1916
+ }
1917
+
1918
+ console.log(chalk.blue('šŸ“ˆ Overall Statistics:'));
1919
+ console.log(` šŸ“” Total Sessions: ${stats.totalSessions}`);
1920
+ console.log(` āœ… Completed: ${stats.completed}`);
1921
+ console.log(` āŒ Failed: ${stats.failed}`);
1922
+ console.log(` ⚔ Active: ${stats.active}`);
1923
+ console.log(` šŸ“Š Success Rate: ${stats.successRate}%`);
1924
+ console.log(` ā±ļø Average Duration: ${stats.averageDuration}ms`);
1925
+
1926
+ console.log(chalk.blue('\nšŸ¤– Agent Activity:'));
1927
+ console.log(` šŸ“” Total Agents Spawned: ${stats.totalAgentsSpawned}`);
1928
+ console.log(` šŸ¤ Total Agents Coordinated: ${stats.totalAgentsCoordinated}`);
1929
+
1930
+ if (stats.totalSessions === 0) {
1931
+ console.log(chalk.gray('\nšŸ’” Try running an agent with a complex request to see coordination in action:'));
1932
+ console.log(' node one/tools/cli.js one:engineering-director "Design a scalable microservice architecture"');
1933
+ }
1934
+ }
1935
+ });
1936
+
1646
1937
  // Handle multi-format generation command
1647
1938
  async function handleFormatsCommand(options) {
1648
1939
  const { spawn } = await import('child_process');
@@ -2084,29 +2375,41 @@ async function listAgents(teamFilter, claudeOnly) {
2084
2375
 
2085
2376
  if (claudeOnly) {
2086
2377
  console.log('šŸŽ­ \\x1b[1mClaude Code Agents\\x1b[0m (.claude/agents/)\\n');
2087
- displayAgentsByTeam(claudeAgents, teamFilter);
2378
+ await displayAgentsByTeam(claudeAgents, teamFilter, true);
2088
2379
  } else {
2089
2380
  console.log('šŸŽ­ \\x1b[1mAgent Symphony - Beautiful Simplicity\\x1b[0m\\n');
2090
2381
 
2091
2382
  if (claudeAgents.length > 0) {
2092
2383
  console.log('\\x1b[36mšŸŽŖ Claude Code Agents\\x1b[0m (.claude/agents/)');
2093
- displayAgentsByTeam(claudeAgents, teamFilter);
2384
+ await displayAgentsByTeam(claudeAgents, teamFilter, true);
2094
2385
  console.log();
2095
2386
  }
2096
2387
 
2097
2388
  if (oneAgents.length > 0) {
2098
2389
  console.log('\\x1b[33mšŸŽŖ ONE Framework Agents\\x1b[0m (one/agents/)');
2099
- displayAgentsByTeam(oneAgents, teamFilter);
2390
+ await displayAgentsByTeam(oneAgents, teamFilter);
2100
2391
  }
2101
2392
 
2102
2393
  console.log(`\\n\\x1b[32m✨ Total: ${claudeAgents.length + oneAgents.length} specialized agents ready\\x1b[0m`);
2103
- console.log('\\x1b[2mUse: one agent <name> to invoke, one agent -i <name> for details\\x1b[0m');
2394
+ console.log('\\x1b[2mUse: one:agent-name for background execution, one agent <name> for legacy mode\\x1b[0m');
2395
+
2396
+ // Show license status
2397
+ try {
2398
+ const licenseStatus = await agentLoader.getLicenseStatus();
2399
+ console.log(`\\nšŸ“„ License: ${licenseStatus.status} (${licenseStatus.freeAgents || 0} free, ${licenseStatus.premiumAgents || 0} premium)`);
2400
+ if (licenseStatus.status === 'unlicensed') {
2401
+ console.log('\\x1b[33mšŸ’” Tip: Premium agents require upgrade. Try: node one/tools/cli.js one:marketing-director\\x1b[0m');
2402
+ }
2403
+ } catch (error) {
2404
+ // License status is optional, don't fail the listing
2405
+ }
2104
2406
  }
2105
2407
  }
2106
2408
 
2107
- function displayAgentsByTeam(agents, teamFilter) {
2409
+ async function displayAgentsByTeam(agents, teamFilter, showOnePattern = false) {
2108
2410
  const teams = {};
2109
2411
 
2412
+ // Group agents by team
2110
2413
  agents.forEach(agent => {
2111
2414
  const team = extractTeam(agent);
2112
2415
  if (!teamFilter || team.toLowerCase().includes(teamFilter.toLowerCase())) {
@@ -2115,12 +2418,27 @@ function displayAgentsByTeam(agents, teamFilter) {
2115
2418
  }
2116
2419
  });
2117
2420
 
2118
- Object.entries(teams).sort().forEach(([team, teamAgents]) => {
2421
+ // Display agents with premium indicators
2422
+ for (const [team, teamAgents] of Object.entries(teams).sort()) {
2119
2423
  console.log(`\\n \\x1b[1m${team}\\x1b[0m`);
2120
- teamAgents.sort().forEach(agent => {
2121
- console.log(` • ${agent}`);
2122
- });
2123
- });
2424
+
2425
+ for (const agent of teamAgents.sort()) {
2426
+ const isPremium = agentLoader.isPremiumAgent(agent);
2427
+ const premiumIcon = isPremium ? ' šŸ’Ž' : '';
2428
+
2429
+ if (showOnePattern) {
2430
+ console.log(` • one:${agent}${premiumIcon}`);
2431
+ } else {
2432
+ console.log(` • ${agent}${premiumIcon}`);
2433
+ }
2434
+ }
2435
+ }
2436
+
2437
+ // Show legend for premium indicators
2438
+ const hasPremium = agents.some(agent => agentLoader.isPremiumAgent(agent));
2439
+ if (hasPremium) {
2440
+ console.log('\\n \\x1b[2mšŸ’Ž = Premium agent (requires upgrade)\\x1b[0m');
2441
+ }
2124
2442
  }
2125
2443
 
2126
2444
  async function discoverOneAgents() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneie",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "šŸ¤ ONE Personal Collaborative Intelligence - Creates personalized AI workspace from your me.md profile. Simple: npx oneie → edit me.md → generate personalized agents, workflows & missions. From students to enterprises, ONE adapts to your context.",
5
5
  "type": "module",
6
6
  "main": "one/tools/one-cli.js",
@@ -112,7 +112,7 @@
112
112
  "universal-installer",
113
113
  "equal-participation",
114
114
  "mission-driven",
115
- "development",
115
+ "development",
116
116
  "ai-agents",
117
117
  "project-management",
118
118
  "claude-code",
@@ -160,4 +160,4 @@
160
160
  "prettier --write"
161
161
  ]
162
162
  }
163
- }
163
+ }
@@ -1,14 +0,0 @@
1
- bundle:
2
- name: Team All
3
- icon: šŸ‘„
4
- description: Includes every core system agent.
5
- agents:
6
- - one-orchestrator
7
- - '*'
8
- workflows:
9
- - brownfield-fullstack.yaml
10
- - brownfield-service.yaml
11
- - brownfield-ui.yaml
12
- - greenfield-fullstack.yaml
13
- - greenfield-service.yaml
14
- - greenfield-ui.yaml
@@ -1,18 +0,0 @@
1
- bundle:
2
- name: Team Fullstack
3
- icon: šŸš€
4
- description: Team capable of full stack, front end only, or service development.
5
- agents:
6
- - one-orchestrator
7
- - analyst
8
- - pm
9
- - ux-expert
10
- - architect
11
- - po
12
- workflows:
13
- - brownfield-fullstack.yaml
14
- - brownfield-service.yaml
15
- - brownfield-ui.yaml
16
- - greenfield-fullstack.yaml
17
- - greenfield-service.yaml
18
- - greenfield-ui.yaml
@@ -1,10 +0,0 @@
1
- bundle:
2
- name: Team IDE Minimal
3
- icon: ⚔
4
- description: Only the bare minimum for the IDE PO SM dev qa cycle.
5
- agents:
6
- - po
7
- - sm
8
- - dev
9
- - qa
10
- workflows: null
@@ -1,21 +0,0 @@
1
- bundle:
2
- name: Elevate Marketing Team
3
- icon: šŸ“ˆ
4
- description: Complete Elevate Marketing Framework team with specialists for each phase
5
- agents:
6
- - one-orchestrator
7
- - brand-identity-specialist
8
- - market-research-analyst
9
- - customer-journey-designer
10
- - content-hook-specialist
11
- - lead-magnet-creator
12
- - lead-capture-expert
13
- - engagement-specialist
14
- - sales-environment-optimizer
15
- - nurture-campaign-manager
16
- - upsell-strategist
17
- - customer-success-manager
18
- - advocacy-campaign-designer
19
- workflows:
20
- - elevate-greenfield-workflow.yaml
21
- - elevate-brownfield-workflow.yaml
@@ -1,13 +0,0 @@
1
- bundle:
2
- name: Team No UI
3
- icon: šŸ”§
4
- description: Team with no UX or UI Planning.
5
- agents:
6
- - one-orchestrator
7
- - analyst
8
- - pm
9
- - architect
10
- - po
11
- workflows:
12
- - greenfield-service.yaml
13
- - brownfield-service.yaml