diff --git a/.opencode/package.json b/.opencode/package.json new file mode 100644 index 0000000..b6a3987 --- /dev/null +++ b/.opencode/package.json @@ -0,0 +1,9 @@ +{ + "dependencies": { + "@opencode-ai/plugin": "1.0.126", + "@types/micromatch": "^4.0.10", + "axios": "^1.13.2", + "micromatch": "^4.0.8", + "zod": "^4.1.13" + } +} \ No newline at end of file diff --git a/.opencode/plugin/dev-server-hmr.ts b/.opencode/plugin/dev-server-hmr.ts index 9b0933b..d8d1786 100644 --- a/.opencode/plugin/dev-server-hmr.ts +++ b/.opencode/plugin/dev-server-hmr.ts @@ -16,9 +16,17 @@ const axios = new Axios({ }); const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => { - await axios.put("/", { - status, - }); + await axios.put( + "/", + JSON.stringify({ + status, + }), + { + headers: { + "Content-Type": "application/json", + }, + } + ); }; export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {