Files
ruflo/v3/@claude-flow/codex/src/index.ts
T
rUvandr 87f612cef1 chore(release): 3.80.0 (#5056)
* chore(release): 3.80.0 (codex 3.0.9)

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(cli): bundled OpenRouter alternates are opt-in (#4957)

#5038 loaded the bundled openrouter-alts.json for every npm install, which
changes which OpenRouter models users are billed for. Its PR asked for a
maintainer decision on that default. Until then, the bundled copy loads only
with CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS=bundled; npm installs keep the
previous behaviour (no per-tier alternate). The file still ships.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(release): pin @metaharness/darwin ~0.16.0; codex VERSION 3.0.9

darwin 0.16.0 is npm latest (it fixes the 0.15.0 bug that could leave SIM
journals unreadable), so the metaharness pin-drift gate flags ~0.14.0 as
stale. Bump the CLI dependency, MH_DARWIN_PIN and the plugin helper pin.
The pnpm lock entry is edited by hand to the 0.16.0 integrity; nothing else
in the lock moves. codex's exported VERSION follows the 3.0.9 bump.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(ruflo-metaharness): 0.5.3 for the darwin ~0.16.0 helper pin

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-20 22:21:35 -05:00

116 lines
2.6 KiB
TypeScript

/**
* @claude-flow/codex
*
* OpenAI Codex platform adapter for Claude Flow
* First step in the coflow rebranding initiative
*
* @packageDocumentation
*/
// Re-export all types
export * from './types.js';
// Re-export generators
export {
generateAgentsMd,
generateSkillMd,
generateConfigToml,
} from './generators/index.js';
// Re-export skill generator helper
export { generateBuiltInSkill } from './generators/skill-md.js';
// Re-export config generator helpers
export { generateMinimalConfigToml, generateCIConfigToml } from './generators/config-toml.js';
// Re-export migrations
export {
migrateFromClaudeCode,
analyzeClaudeMd,
generateMigrationReport,
convertSkillSyntax,
convertSettingsToToml,
FEATURE_MAPPINGS,
} from './migrations/index.js';
// Re-export validators
export {
validateAgentsMd,
validateSkillMd,
validateConfigToml,
} from './validators/index.js';
// Main initializer class and helper function
export { CodexInitializer, initializeCodexProject } from './initializer.js';
// Dual-mode collaborative execution
export {
DualModeOrchestrator,
CollaborationTemplates,
createDualModeCommand,
loadSwarmAutomationConfig,
} from './dual-mode/index.js';
export type {
DualModeConfig,
WorkerConfig,
WorkerResult,
CollaborationResult,
LoadedSwarmAutomationConfig,
WorkerCapabilityEnvelope,
} from './dual-mode/index.js';
export { CodexWorktreeCoordinator } from './worktrees/index.js';
export type { WorktreeAssignment, WorktreeRunRecord } from './worktrees/index.js';
// Repository harness contracts and in-memory reference implementations.
export * from './harness/index.js';
// Codex /loop-compatible runner
export {
buildCodexLoopPrompt,
loadLoopState,
normalizeLoopName,
requestLoopStop,
resolveLoopPaths,
runCodexLoop,
} from './loop/index.js';
export { createLoopCommand } from './loop/cli.js';
export type { LoopCommandResult, LoopEvent, LoopPaths, LoopRunOptions, LoopState } from './loop/index.js';
// Template utilities
export {
getTemplate,
listTemplates,
BUILT_IN_SKILLS,
TEMPLATES,
DEFAULT_SKILLS_BY_TEMPLATE,
DIRECTORY_STRUCTURE,
PLATFORM_MAPPING,
GITIGNORE_ENTRIES,
AGENTS_OVERRIDE_TEMPLATE,
} from './templates/index.js';
/**
* Package version
*/
export const VERSION = '3.0.9';
/**
* Package metadata
*/
export const PACKAGE_INFO = {
name: '@claude-flow/codex',
version: VERSION,
description: 'Codex CLI integration for Claude Flow',
futureUmbrella: 'coflow',
repository: 'https://github.com/ruvnet/ruflo',
} as const;
/**
* Default export for convenient imports
*/
export default {
VERSION,
PACKAGE_INFO,
};