mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
add diagnostics meta
This commit is contained in:
@@ -38,6 +38,7 @@ function App() {
|
|||||||
const [state, setState] = useState(initial)
|
const [state, setState] = useState(initial)
|
||||||
const [input, setInput] = useState("")
|
const [input, setInput] = useState("")
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch("http://localhost:16713/event")
|
fetch("http://localhost:16713/event")
|
||||||
.then(stream => {
|
.then(stream => {
|
||||||
|
|||||||
@@ -132,6 +132,9 @@ export const edit = Tool.define({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
metadata: {
|
||||||
|
diagnostics,
|
||||||
|
},
|
||||||
output,
|
output,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user