feat(FN-3747): add even realities glasses plugin integration
Adds a changeset for the new Even Realities glasses plugin integration (`@runfusion/fusion` minor bump), accompanied by a test stabilization for the research wait extension. Fusion-Task-Id: FN-3747
This commit is contained in:
5
.changeset/fn-3747-even-realities-glasses-plugin.md
Normal file
5
.changeset/fn-3747-even-realities-glasses-plugin.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Add support for the standalone Even Realities glasses plugin, including on-device task cards, quick capture, polling notifications, and agent actions for local/self-hosted Fusion deployments. This expands user-facing plugin capabilities in the published CLI/runtime stack.
|
||||||
@@ -1473,13 +1473,17 @@ describe("fn pi extension (runnable structured-output regression slice)", () =>
|
|||||||
const tool = api.tools.get("fn_research_run")!;
|
const tool = api.tools.get("fn_research_run")!;
|
||||||
const researchStore = store.getResearchStore();
|
const researchStore = store.getResearchStore();
|
||||||
|
|
||||||
const promoteRun = () => {
|
const settleRunToCompleted = () => {
|
||||||
const queuedRun = researchStore.listRuns({ limit: 1 })[0];
|
const queuedRun = researchStore.listRuns({ limit: 1 })[0];
|
||||||
if (!queuedRun) {
|
if (!queuedRun) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (queuedRun.status === "completed") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (queuedRun.status === "queued") {
|
||||||
researchStore.updateRun(queuedRun.id, { status: "running" });
|
researchStore.updateRun(queuedRun.id, { status: "running" });
|
||||||
|
}
|
||||||
researchStore.updateRun(queuedRun.id, {
|
researchStore.updateRun(queuedRun.id, {
|
||||||
status: "completed",
|
status: "completed",
|
||||||
results: { summary: "done", findings: [{ heading: "h1", content: "f1", sources: [] }], citations: [] },
|
results: { summary: "done", findings: [{ heading: "h1", content: "f1", sources: [] }], citations: [] },
|
||||||
@@ -1487,20 +1491,14 @@ describe("fn pi extension (runnable structured-output regression slice)", () =>
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
setTimeout(() => {
|
if (!settleRunToCompleted()) {
|
||||||
if (promoteRun()) {
|
const interval = setInterval(() => {
|
||||||
return;
|
if (settleRunToCompleted()) {
|
||||||
|
clearInterval(interval);
|
||||||
}
|
}
|
||||||
|
}, 25);
|
||||||
const retryTimer = setInterval(() => {
|
setTimeout(() => clearInterval(interval), 500);
|
||||||
if (!promoteRun()) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
clearInterval(retryTimer);
|
|
||||||
}, 25);
|
|
||||||
|
|
||||||
setTimeout(() => clearInterval(retryTimer), 500);
|
|
||||||
}, 25);
|
|
||||||
|
|
||||||
const result = await tool.execute(
|
const result = await tool.execute(
|
||||||
"research-run-wait",
|
"research-run-wait",
|
||||||
|
|||||||
Reference in New Issue
Block a user