Files
copilotkit__copilotkit/packages/v1/cli/bin/run.js
Jordan Ritter bee70690bb feat: move CLI package from CopilotCloud into monorepo
Migrate the copilotkit CLI (npx copilotkit create/init/dev) from
CopilotCloud into packages/v1/cli. TEMPLATE_REPOS updated to use
monorepo subdirectory sparse checkout for all CopilotKit-owned
templates, with tarball fallback for external repos (ag2).
2026-03-12 13:06:03 -07:00

18 lines
446 B
JavaScript
Executable File

#!/usr/bin/env node
import {execute} from '@oclif/core'
const main = async () => {
try {
await execute({dir: import.meta.url})
} catch (error) {
// Rely on command-level error handling to surface friendly messages.
// If we reach here it means something happened before oclif handed off to the command.
const message = error?.message || 'Unknown error'
console.error(message)
process.exitCode = 1
}
}
void main()