forked from ericc-ch/copilot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
28 lines (23 loc) · 735 Bytes
/
main.ts
File metadata and controls
28 lines (23 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env node
import { defineCommand, runMain } from "citty"
import { auth } from "./auth"
import { checkUsage } from "./check-usage"
import { adminRecover } from "./cli/admin-recover"
import { debug } from "./debug"
import { start } from "./start"
const admin = defineCommand({
meta: {
name: "admin",
description: "Admin management commands",
},
subCommands: { recover: adminRecover },
})
const main = defineCommand({
meta: {
name: "copilot-api-pro",
description:
"GitHub Copilot proxy with an admin WebUI, per-key debug capture, telemetry, and audit logging. Fork of ericc-ch/copilot-api.",
},
subCommands: { auth, start, "check-usage": checkUsage, debug, admin },
})
await runMain(main)