fix(ci): repair lint/build checks
This commit is contained in:
@@ -104,7 +104,7 @@
|
|||||||
"ios:gen": "cd apps/ios && xcodegen generate",
|
"ios:gen": "cd apps/ios && xcodegen generate",
|
||||||
"ios:open": "cd apps/ios && xcodegen generate && open OpenClaw.xcodeproj",
|
"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'",
|
"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:all": "pnpm lint && pnpm lint:swift",
|
||||||
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
|
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
|
||||||
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ export function resolveExtraParams(params: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CacheRetention = "none" | "short" | "long";
|
type CacheRetention = "none" | "short" | "long";
|
||||||
|
type CacheRetentionStreamOptions = Partial<SimpleStreamOptions> & {
|
||||||
|
cacheRetention?: CacheRetention;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolve cacheRetention from extraParams, supporting both new `cacheRetention`
|
* Resolve cacheRetention from extraParams, supporting both new `cacheRetention`
|
||||||
@@ -65,7 +68,7 @@ function createStreamFnWithExtraParams(
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const streamParams: Partial<SimpleStreamOptions> = {};
|
const streamParams: CacheRetentionStreamOptions = {};
|
||||||
if (typeof extraParams.temperature === "number") {
|
if (typeof extraParams.temperature === "number") {
|
||||||
streamParams.temperature = extraParams.temperature;
|
streamParams.temperature = extraParams.temperature;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
|
|
||||||
import { validateConfigObject } from "./config.js";
|
import { validateConfigObject } from "./config.js";
|
||||||
|
|
||||||
describe("Telegram webhook config", () => {
|
describe("Telegram webhook config", () => {
|
||||||
|
|||||||
11
tsconfig.oxlint.json
Normal file
11
tsconfig.oxlint.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"openclaw": ["./src/index.ts"],
|
||||||
|
"openclaw/*": ["./src/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": ["src/**/*", "extensions/**/*", "packages/**/*"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user