Fixed types
This commit is contained in:
parent
f66a4c2a6c
commit
13b5c06780
9
.opencode/package.json
Normal file
9
.opencode/package.json
Normal file
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -16,9 +16,17 @@ const axios = new Axios({
|
||||||
});
|
});
|
||||||
|
|
||||||
const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => {
|
const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => {
|
||||||
await axios.put("/", {
|
await axios.put(
|
||||||
status,
|
"/",
|
||||||
});
|
JSON.stringify({
|
||||||
|
status,
|
||||||
|
}),
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {
|
export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user