@frockbot/plugin-fly-sprite 0.3.20 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/plugin-fly-sprite",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@cordisjs/plugin-webui": "0.8.2",
28
- "@frockbot/computer-core": "0.3.20",
29
- "@frockbot/computer-host-protocol": "0.3.20",
30
- "@frockbot/computer-host-runtime": "0.3.20",
31
- "@frockbot/kernel-contracts": "0.3.20",
32
- "@frockbot/plugin-computer": "0.3.20",
28
+ "@frockbot/computer-core": "0.3.21",
29
+ "@frockbot/computer-host-protocol": "0.3.21",
30
+ "@frockbot/computer-host-runtime": "0.3.21",
31
+ "@frockbot/kernel-contracts": "0.3.21",
32
+ "@frockbot/plugin-computer": "0.3.21",
33
33
  "cordis": "4.0.0-rc.8"
34
34
  },
35
35
  "devDependencies": {
36
- "@frockbot/plugin-testkit": "0.3.20",
37
- "@frockbot/workspace-store": "0.3.20",
36
+ "@frockbot/plugin-testkit": "0.3.21",
37
+ "@frockbot/workspace-store": "0.3.21",
38
38
  "@types/bun": "1.4.0",
39
39
  "@types/node": "26.2.0",
40
40
  "typescript": "^7.0.2"
package/src/computer.ts CHANGED
@@ -185,8 +185,16 @@ export interface FlySpriteComputerOptions {
185
185
  }
186
186
 
187
187
  export interface BrowserAction {
188
- action: "snapshot" | "navigate" | "click" | "fill" | "press" | "wait";
188
+ action:
189
+ | "snapshot"
190
+ | "navigate"
191
+ | "close-origins"
192
+ | "click"
193
+ | "fill"
194
+ | "press"
195
+ | "wait";
189
196
  url?: string;
197
+ origins?: readonly string[];
190
198
  role?: string;
191
199
  name?: string;
192
200
  label?: string;
@@ -22,10 +22,20 @@ function report(generation: number): string {
22
22
  generation,
23
23
  capturedAt: "2026-09-01T00:00:00Z",
24
24
  checks: [
25
+ {
26
+ name: "watchdog",
27
+ status: "pass",
28
+ detail: "recent actions: none",
29
+ },
30
+ {
31
+ name: "memory-top",
32
+ status: "pass",
33
+ detail: "123 2048 chromium",
34
+ },
25
35
  { name: "disk-root", status: "pass", detail: "12% full" },
26
36
  { name: "dns", status: "fail", detail: "no resolver" },
27
37
  ],
28
- summary: "2 checks, 1 passed, 1 failed",
38
+ summary: "4 checks, 3 passed, 1 failed",
29
39
  })}\n`;
30
40
  }
31
41
 
@@ -52,8 +62,10 @@ describe("doctorForAgent", () => {
52
62
 
53
63
  const decoded = await bot.doctor(signal());
54
64
 
55
- expect(decoded.summary).toBe("2 checks, 1 passed, 1 failed");
65
+ expect(decoded.summary).toBe("4 checks, 3 passed, 1 failed");
56
66
  expect(decoded.checks.map((check) => check.status)).toEqual([
67
+ "pass",
68
+ "pass",
57
69
  "pass",
58
70
  "fail",
59
71
  ]);
package/src/provider.ts CHANGED
@@ -109,6 +109,8 @@ function browserAction(action: ComputerBrowserAction): BrowserAction {
109
109
  return { action: "snapshot" };
110
110
  case "navigate":
111
111
  return { action: "navigate", url: action.url };
112
+ case "close-origins":
113
+ return { action: "close-origins", origins: action.origins };
112
114
  case "click":
113
115
  return {
114
116
  action: "click",