fix(ci): repair main checks

This commit is contained in:
Peter Steinberger
2026-05-29 23:05:54 +02:00
parent 5230a23202
commit 8c53d100ca
4 changed files with 13 additions and 20 deletions
@@ -73,13 +73,13 @@ function readIntegerParam(params: Record<string, unknown>, key: string): number
if (value === undefined) {
return undefined;
}
if (!Number.isInteger(value)) {
if (typeof value !== "number" || !Number.isInteger(value)) {
throw new Error(`${key} must be an integer`);
}
if (value < 1 || value > 1000) {
throw new Error(`${key} must be between 1 and 1000`);
}
return value as number;
return value;
}
function readModeParam(params: Record<string, unknown>): CodexSupervisorTurnMode | undefined {
-17
View File
@@ -57,7 +57,6 @@
"quickjs-wasi": "3.0.0",
"rastermill": "0.3.0",
"tar": "7.5.15",
"tokenjuice": "0.8.0",
"tree-sitter-bash": "0.25.1",
"tslog": "4.10.2",
"typebox": "1.1.38",
@@ -3750,22 +3749,6 @@
"url": "https://github.com/sponsors/Borewit"
}
},
"node_modules/tokenjuice": {
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/tokenjuice/-/tokenjuice-0.8.0.tgz",
"integrity": "sha512-8jSOhyW3NzYNx7HbbGDkNVltQPiGaZB10Tty5Ovqpsw1VOBw7y+FikykNZ4+Gp9Ze94UubtcPDak7kkyv6F2cg==",
"license": "MIT",
"bin": {
"tokenjuice": "dist/cli/main.js"
},
"engines": {
"node": ">=20"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/vincentkoc"
}
},
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+6 -1
View File
@@ -16,6 +16,11 @@ type MockAllowlistResult = {
segments: MockAllowlistSegment[];
segmentAllowlistEntries: unknown[];
};
type MockExecApprovalAllowlistEntry = {
pattern: string;
source?: string;
commandText?: string;
};
const INLINE_EVAL_HIT = {
executable: "python3",
@@ -55,7 +60,7 @@ const evaluateShellAllowlistMock = vi.hoisted(() =>
);
const resolveExecApprovalsFromFileMock = vi.hoisted(() =>
vi.fn(() => ({
allowlist: [],
allowlist: [] as MockExecApprovalAllowlistEntry[],
file: { version: 1, agents: {} },
agent: {
security: "full",
@@ -167,6 +167,11 @@ describe("setupOfficialPluginInstalls", () => {
label: "PixVerse",
hint: "OpenClaw PixVerse video generation provider plugin",
},
{
value: "tokenjuice",
label: "Tokenjuice",
hint: "OpenClaw tokenjuice exec output compaction plugin",
},
{
value: "voice-call",
label: "Voice Call",