mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 01:13:03 +00:00
fix: repair rebase fallout
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
calculateMaxToolResultCharsWithCap,
|
||||
resolveAutoLiveToolResultMaxChars,
|
||||
} from "../agents/pi-embedded-runner/tool-result-truncation.js";
|
||||
} from "../agents/embedded-agent-runner/tool-result-truncation.js";
|
||||
|
||||
export type ToolResultCapDoctorAdviceParams = {
|
||||
contextWindowTokens: number;
|
||||
|
||||
@@ -153,21 +153,15 @@ describe("package-mac-app plist stamping", () => {
|
||||
expect(macosCi).toContain("test/scripts/create-dmg.test.ts");
|
||||
});
|
||||
|
||||
it("fails closed when required bundled resources are missing", () => {
|
||||
it("fails closed when required Swift resources are missing", () => {
|
||||
const script = readFileSync(scriptPath, "utf8");
|
||||
const modelCatalogBlock = script.slice(
|
||||
script.indexOf('MODEL_CATALOG_SRC="$ROOT_DIR/node_modules/@earendil-works/pi-ai/dist/models.generated.js"'),
|
||||
script.indexOf('echo "📦 Copying Control UI assets"'),
|
||||
);
|
||||
const openClawKitBlock = script.slice(
|
||||
script.indexOf('OPENCLAWKIT_BUNDLE="$(build_path_for_arch "$PRIMARY_ARCH")/$BUILD_CONFIG/OpenClawKit_OpenClawKit.bundle"'),
|
||||
script.indexOf(
|
||||
'OPENCLAWKIT_BUNDLE="$(build_path_for_arch "$PRIMARY_ARCH")/$BUILD_CONFIG/OpenClawKit_OpenClawKit.bundle"',
|
||||
),
|
||||
script.indexOf('echo "📦 Copying Textual resources"'),
|
||||
);
|
||||
|
||||
expect(modelCatalogBlock).toContain("ERROR: model catalog missing");
|
||||
expect(modelCatalogBlock).toContain("exit 1");
|
||||
expect(modelCatalogBlock).not.toContain("WARN:");
|
||||
expect(modelCatalogBlock).not.toContain("continuing");
|
||||
expect(openClawKitBlock).toContain("ERROR: OpenClawKit resource bundle not found");
|
||||
expect(openClawKitBlock).toContain("exit 1");
|
||||
expect(openClawKitBlock).not.toContain("WARN:");
|
||||
|
||||
Reference in New Issue
Block a user