|
75 | 75 | npx aiox-core@latest info # Show system info |
76 | 76 | npx aiox-core@latest doctor # Run diagnostics |
77 | 77 | aiox-delegate codex -t <slug> # Delegate implementation to external executor |
| 78 | + npx aiox-core@latest enterprise upgrade --target . --dry-run --enterprise-source <path> |
| 79 | + # Plan Pro to Enterprise upgrade |
78 | 80 | npx aiox-core@latest --version # Show version |
79 | 81 | npx aiox-core@latest --version -d # Show detailed version info |
80 | 82 | npx aiox-core@latest --help # Show this help |
@@ -110,6 +112,10 @@ EXTERNAL EXECUTION: |
110 | 112 | aiox-delegate codex -t story-4.3 -f prompt.md |
111 | 113 | aiox-delegate codex -t story-4.3 -p "Implement AC1" --dry-run |
112 | 114 |
|
| 115 | +ENTERPRISE: |
| 116 | + aiox enterprise upgrade --target . --enterprise-source /path/to/AIOX-enterprise --dry-run |
| 117 | + aiox enterprise upgrade --target . --enterprise-source /path/to/AIOX-enterprise --dry-run --plan outputs/enterprise-upgrade-plan.yaml |
| 118 | +
|
113 | 119 | EXAMPLES: |
114 | 120 | # Install in current directory |
115 | 121 | npx aiox-core@latest |
@@ -415,6 +421,35 @@ async function runDoctor(options = {}) { |
415 | 421 | } |
416 | 422 | } |
417 | 423 |
|
| 424 | +// Helper: Run Enterprise commands |
| 425 | +async function runEnterprise() { |
| 426 | + const enterpriseArgs = args.slice(1); |
| 427 | + const enterprisePath = path.join( |
| 428 | + __dirname, |
| 429 | + '..', |
| 430 | + 'packages', |
| 431 | + 'installer', |
| 432 | + 'src', |
| 433 | + 'enterprise', |
| 434 | + 'enterprise-upgrade-plan.js', |
| 435 | + ); |
| 436 | + |
| 437 | + try { |
| 438 | + const { runEnterpriseUpgradeCli } = require(enterprisePath); |
| 439 | + const exitCode = await runEnterpriseUpgradeCli(enterpriseArgs, { |
| 440 | + stdout: process.stdout, |
| 441 | + stderr: process.stderr, |
| 442 | + }); |
| 443 | + |
| 444 | + if (exitCode !== 0) { |
| 445 | + process.exit(exitCode); |
| 446 | + } |
| 447 | + } catch (error) { |
| 448 | + console.error(`❌ Enterprise command error: ${error.message}`); |
| 449 | + process.exit(1); |
| 450 | + } |
| 451 | +} |
| 452 | + |
418 | 453 | // Helper: Format bytes to human readable |
419 | 454 | function formatBytes(bytes) { |
420 | 455 | if (bytes === 0) return '0 Bytes'; |
@@ -884,6 +919,11 @@ async function main() { |
884 | 919 | } |
885 | 920 | break; |
886 | 921 |
|
| 922 | + case 'enterprise': |
| 923 | + // AIOX Enterprise Upgrade Planning - Story PEM.1 |
| 924 | + await runEnterprise(); |
| 925 | + break; |
| 926 | + |
887 | 927 | case 'install': { |
888 | 928 | // Install in current project with flag support |
889 | 929 | const installArgs = args.slice(1); |
|
0 commit comments