Skip to content

The open source coding agent.

TypeScript

add diagnostics meta

Dax Raad59d43fa5da06
diff --git a/js/example/ink.tsx b/js/example/ink.tsx
index 5eaab4d3be8..2cd4aaa0cde 100644
--- a/js/example/ink.tsx
+++ b/js/example/ink.tsx
@@ -38,6 +38,7 @@ function App() {
const [state, setState] = useState(initial)
const [input, setInput] = useState("")
+
useEffect(() => {
fetch("http://localhost:16713/event")
.then(stream => {
diff --git a/js/src/tool/edit.ts b/js/src/tool/edit.ts
index 56f31ad2e6c..96d8e0c54ef 100644
--- a/js/src/tool/edit.ts
+++ b/js/src/tool/edit.ts
@@ -132,6 +132,9 @@ export const edit = Tool.define({
}
return {
+ metadata: {
+ diagnostics,
+ },
output,
};
},