Files
ruflo/packages/coflow/bin/coflow.js
T
rUvandClaude Opus 4.5 1af4fbd5cc Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/codex-integration
- Timestamp: 2026-02-07T16:32:41Z
- Changes: 4 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-07 16:32:41 +00:00

21 lines
552 B
JavaScript
Executable File

#!/usr/bin/env node
/**
* coflow - Shorthand CLI for Claude Flow
*
* Delegates all commands to @claude-flow/cli.
* Usage: npx coflow <command> [options]
*
* Auto-detects MCP mode when stdin is piped and no args provided.
*/
import { createRequire } from 'module';
import { fileURLToPath } from 'url';
import { dirname, resolve } from 'path';
// Find @claude-flow/cli's entry point
const require = createRequire(import.meta.url);
const cliPath = require.resolve('@claude-flow/cli/bin/cli.js');
// Import and run the CLI
await import(cliPath);