debugWorkspacePlugin.ts 528 B

1234567891011121314151617181920212223
  1. import type { Plugin } from "@opencode-ai/plugin"
  2. export const DebugWorkspacePlugin: Plugin = async ({ experimental_workspace }) => {
  3. experimental_workspace.register("debug", {
  4. name: "Debug",
  5. description: "Create a debugging server",
  6. configure(config) {
  7. return config
  8. },
  9. async create(_config) {},
  10. async remove(_config) {},
  11. target(_config) {
  12. return {
  13. type: "remote",
  14. url: "http://localhost:5096/",
  15. }
  16. },
  17. })
  18. return {}
  19. }
  20. export default DebugWorkspacePlugin