Skip to content

Commit e30d5bd

Browse files
author
Angfr95
committed
fix(ci): resolve boundary and schema snapshot failures from Hyprland PR
Add focused openclaw/plugin-sdk/resolve-system-bin subpath so bundled extensions avoid importing the broad infra-runtime barrel flagged by the newer boundary check. Regenerate schema snapshot with title and description for hyprlandCapture so the config snapshot test stays green.
1 parent 0e54142 commit e30d5bd

8 files changed

Lines changed: 18 additions & 4 deletions

File tree

extensions/browser/src/browser/hyprland-capture.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ vi.mock("node:child_process", () => {
3535
};
3636
});
3737

38-
vi.mock("openclaw/plugin-sdk/infra-runtime", () => ({
38+
vi.mock("openclaw/plugin-sdk/resolve-system-bin", () => ({
3939
resolveSystemBin: mockResolveSystemBin,
4040
}));
4141

extensions/browser/src/browser/hyprland-capture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { execFile, execFileSync, spawn } from "node:child_process";
22
import { promisify } from "node:util";
3-
import { resolveSystemBin } from "openclaw/plugin-sdk/infra-runtime";
3+
import { resolveSystemBin } from "openclaw/plugin-sdk/resolve-system-bin";
44

55
const execFileAsync = promisify(execFile);
66

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@
326326
"types": "./dist/plugin-sdk/infra-runtime.d.ts",
327327
"default": "./dist/plugin-sdk/infra-runtime.js"
328328
},
329+
"./plugin-sdk/resolve-system-bin": {
330+
"types": "./dist/plugin-sdk/resolve-system-bin.d.ts",
331+
"default": "./dist/plugin-sdk/resolve-system-bin.js"
332+
},
329333
"./plugin-sdk/runtime-config-snapshot": {
330334
"types": "./dist/plugin-sdk/runtime-config-snapshot.d.ts",
331335
"default": "./dist/plugin-sdk/runtime-config-snapshot.js"

scripts/lib/plugin-sdk-entrypoints.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"system-event-runtime",
6565
"transport-ready-runtime",
6666
"infra-runtime",
67+
"resolve-system-bin",
6768
"runtime-config-snapshot",
6869
"runtime-group-policy",
6970
"model-session-runtime",

src/config/schema.base.generated.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,9 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {
911911
"Best-effort cleanup policy for browser tabs opened by primary-agent sessions. Keep enabled to avoid stale sandbox or managed-browser tabs accumulating across long-lived gateways.",
912912
},
913913
hyprlandCapture: {
914+
title: "Hyprland Viewport Capture",
915+
description:
916+
"Enables a Hyprland/Wayland fallback for viewport screenshots using grim and a virtual hyprctl output. Only activates when HYPRLAND_INSTANCE_SIGNATURE is set and the browser profile is not headless. Requires grim and hyprctl to be installed.",
914917
type: "boolean",
915918
},
916919
},

src/config/zod-schema.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,13 @@ export const OpenClawSchema = z
472472
})
473473
.strict()
474474
.optional(),
475-
hyprlandCapture: z.boolean().optional(),
475+
hyprlandCapture: z
476+
.boolean()
477+
.optional()
478+
.meta({ title: "Hyprland Viewport Capture" })
479+
.describe(
480+
"Enables a Hyprland/Wayland fallback for viewport screenshots using grim and a virtual hyprctl output. Only activates when HYPRLAND_INSTANCE_SIGNATURE is set and the browser profile is not headless. Requires grim and hyprctl to be installed.",
481+
),
476482
})
477483
.strict()
478484
.optional(),

src/plugin-sdk/infra-runtime.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ export * from "../utils/fetch-timeout.js";
6464
export * from "../utils/run-with-concurrency.js";
6565
export { createRuntimeOutboundDelegates } from "../channels/plugins/runtime-forwarders.js";
6666
export * from "./ssrf-policy.js";
67-
export { resolveSystemBin, type SystemBinTrust } from "../infra/resolve-system-bin.js";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { resolveSystemBin, type SystemBinTrust } from "../infra/resolve-system-bin.js";

0 commit comments

Comments
 (0)