fraim-framework 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.js +19 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim-framework",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "FRAIM: Framework for Rigor-based AI Management - Where humans become AI managers through rigorous methodology",
5
5
  "main": "index.js",
6
6
  "bin": {
package/setup.js CHANGED
@@ -38,12 +38,12 @@ function logError(message) {
38
38
  }
39
39
 
40
40
  function logHeader(message) {
41
- log(`\n${colors.bright}${colors.cyan}${message}${colors.reset}`);
41
+ log(`\n${colors[bright]}${colors[cyan]}${message}${colors[reset]}`);
42
42
  log('─'.repeat(message.length));
43
43
  }
44
44
 
45
45
  function logStep(message) {
46
- log(`\n${colors.bright}${colors.magenta}${message}${colors.reset}`);
46
+ log(`\n${colors[bright]}${colors[magenta]}${message}${colors[reset]}`);
47
47
  }
48
48
 
49
49
  function ensureDirectory(dirPath) {
@@ -418,7 +418,7 @@ async function runWizard() {
418
418
  }
419
419
  }
420
420
 
421
- function runSetup() {
421
+ async function runSetup() {
422
422
  logHeader('🚀 FRAIM Quick Setup');
423
423
  log('Setting up FRAIM in current repository...\n');
424
424
 
@@ -437,7 +437,22 @@ function runSetup() {
437
437
  ensureDirectory('.github/workflows');
438
438
  createAgentFolders();
439
439
  createGitHubWorkflows();
440
- createLabelsConfigFile();
440
+
441
+ // Check GitHub CLI availability for labels
442
+ try {
443
+ execSync('gh --version', { stdio: 'pipe' });
444
+ try {
445
+ execSync('gh auth status', { stdio: 'pipe' });
446
+ logInfo('GitHub CLI available and authenticated - creating labels automatically');
447
+ createGitHubLabels();
448
+ } catch (error) {
449
+ logWarning('GitHub CLI not authenticated - creating labels configuration file instead');
450
+ createLabelsConfigFile();
451
+ }
452
+ } catch (error) {
453
+ logInfo('GitHub CLI not available - creating labels configuration file instead');
454
+ createLabelsConfigFile();
455
+ }
441
456
 
442
457
  logHeader('🎉 Setup Complete!');
443
458
  logSuccess('FRAIM has been successfully set up in your repository!');