api.ts 393 B

123456789101112
  1. import { CliApi } from "./cli-api"
  2. export const Api = CliApi.make("opencode", {
  3. description: "OpenCode command line interface",
  4. commands: [
  5. CliApi.make("debug", {
  6. description: "Debugging and troubleshooting tools",
  7. commands: [CliApi.make("agents", { description: "List all agents" })],
  8. }),
  9. CliApi.make("migrate", { description: "Migrate v1 data to v2" }),
  10. ],
  11. })