@claude-flow/codex 3.0.0-alpha.7 → 3.0.0-alpha.8

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/README.md +55 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -632,6 +632,61 @@ Both platforms share the same `.claude-flow/` runtime:
632
632
  | **Best of Both** | Interactive + batch processing |
633
633
  | **Unified Learning** | Patterns learned by both platforms |
634
634
 
635
+ ### CLI Commands (NEW in v3.0.0-alpha.7)
636
+
637
+ The `@claude-flow/codex` package now includes built-in dual-mode orchestration:
638
+
639
+ ```bash
640
+ # List available collaboration templates
641
+ npx claude-flow-codex dual templates
642
+
643
+ # Run a feature development swarm
644
+ npx claude-flow-codex dual run --template feature --task "Add user authentication"
645
+
646
+ # Run a security audit swarm
647
+ npx claude-flow-codex dual run --template security --task "src/auth/"
648
+
649
+ # Run a refactoring swarm
650
+ npx claude-flow-codex dual run --template refactor --task "src/legacy/"
651
+
652
+ # Check collaboration status
653
+ npx claude-flow-codex dual status
654
+ ```
655
+
656
+ ### Pre-Built Templates
657
+
658
+ | Template | Pipeline | Platforms |
659
+ |----------|----------|-----------|
660
+ | **feature** | architect → coder → tester → reviewer | Claude (architect, reviewer) + Codex (coder, tester) |
661
+ | **security** | scanner → analyzer → fixer | Codex (scanner, fixer) + Claude (analyzer) |
662
+ | **refactor** | analyzer → planner → refactorer → validator | Claude (analyzer, planner) + Codex (refactorer, validator) |
663
+
664
+ ### Programmatic API
665
+
666
+ ```typescript
667
+ import { DualModeOrchestrator, CollaborationTemplates } from '@claude-flow/codex';
668
+
669
+ // Create orchestrator
670
+ const orchestrator = new DualModeOrchestrator({
671
+ projectPath: process.cwd(),
672
+ maxConcurrent: 4,
673
+ sharedNamespace: 'collaboration',
674
+ timeout: 300000,
675
+ });
676
+
677
+ // Listen to events
678
+ orchestrator.on('worker:started', ({ id, role }) => console.log(`Started: ${role}`));
679
+ orchestrator.on('worker:completed', ({ id }) => console.log(`Completed: ${id}`));
680
+
681
+ // Run collaboration with a template
682
+ const workers = CollaborationTemplates.featureDevelopment('Add OAuth2 login');
683
+ const result = await orchestrator.runCollaboration(workers, 'Feature: OAuth2');
684
+
685
+ console.log(`Success: ${result.success}`);
686
+ console.log(`Duration: ${result.totalDuration}ms`);
687
+ console.log(`Workers: ${result.workers.length}`);
688
+ ```
689
+
635
690
  </details>
636
691
 
637
692
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/codex",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "Codex CLI integration for Claude Flow - OpenAI Codex platform adapter",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",