deploy
This commit is contained in:
17
frontend/app.js
Normal file
17
frontend/app.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { agent } from "/a2a-client.js";
|
||||
|
||||
const button = document.querySelector("#trigger");
|
||||
const result = document.querySelector("#result");
|
||||
|
||||
button.addEventListener("click", async () => {
|
||||
button.disabled = true;
|
||||
result.textContent = "Calling run(scenario=controlled-failure)…";
|
||||
try {
|
||||
const response = await agent.call("run", { scenario: "controlled-failure" });
|
||||
result.textContent = JSON.stringify(response, null, 2);
|
||||
} catch (error) {
|
||||
result.textContent = `Failure observed. The bounded repair should now be queued.\n\n${error.message}`;
|
||||
} finally {
|
||||
button.disabled = false;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user