mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
bee70690bb
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).
18 lines
446 B
JavaScript
Executable File
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()
|