fix(ci): repair lint/build checks

This commit is contained in:
Peter Steinberger
2026-02-01 10:20:27 +00:00
parent 9d9378436b
commit e4f7155369
4 changed files with 16 additions and 3 deletions

View File

@@ -104,7 +104,7 @@
"ios:gen": "cd apps/ios && xcodegen generate",
"ios:open": "cd apps/ios && xcodegen generate && open OpenClaw.xcodeproj",
"ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted ai.openclaw.ios'",
"lint": "oxlint --type-aware",
"lint": "oxlint --type-aware --tsconfig tsconfig.oxlint.json",
"lint:all": "pnpm lint && pnpm lint:swift",
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",

View File

@@ -21,6 +21,9 @@ export function resolveExtraParams(params: {
}
type CacheRetention = "none" | "short" | "long";
type CacheRetentionStreamOptions = Partial<SimpleStreamOptions> & {
cacheRetention?: CacheRetention;
};
/**
* Resolve cacheRetention from extraParams, supporting both new `cacheRetention`
@@ -65,7 +68,7 @@ function createStreamFnWithExtraParams(
return undefined;
}
const streamParams: Partial<SimpleStreamOptions> = {};
const streamParams: CacheRetentionStreamOptions = {};
if (typeof extraParams.temperature === "number") {
streamParams.temperature = extraParams.temperature;
}

View File

@@ -1,5 +1,4 @@
import { describe, expect, it } from "vitest";
import { validateConfigObject } from "./config.js";
describe("Telegram webhook config", () => {

11
tsconfig.oxlint.json Normal file
View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"openclaw": ["./src/index.ts"],
"openclaw/*": ["./src/*"]
}
},
"include": ["src/**/*", "extensions/**/*", "packages/**/*"]
}