Files
openclaw/packages/gateway-protocol/src/plugin-approvals-validators.test.ts
Peter Steinberger f53103de72 fix(skills): make Skill Workshop lifecycle approvals decidable and non-wedging (#91266, #94249, #93173) (#100498)
Approval wait now fits inside the Codex dynamic-tool watchdog (70s +10s
gateway grace under the 90s kill), approval cards carry proposal id,
skill name, description, file count, and body size (spoof-safe
rendering), and timeouts return a structured pending-not-failed outcome
instead of a bare error. Expired requests cannot execute late; no
auto-apply; generic plugin approvals unchanged.
2026-07-06 04:54:48 +01:00

17 lines
558 B
TypeScript

import { describe, expect, it } from "vitest";
import { validatePluginApprovalRequestParams } from "./index.js";
describe("plugin approval protocol validators", () => {
it("accepts enriched approval descriptions up to 512 characters", () => {
const request = {
title: "Apply workspace skill proposal",
description: "d".repeat(512),
};
expect(validatePluginApprovalRequestParams(request)).toBe(true);
expect(validatePluginApprovalRequestParams({ ...request, description: "d".repeat(513) })).toBe(
false,
);
});
});