mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
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>
21 lines
552 B
JavaScript
Executable File
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);
|