fix: repair rebase fallout

This commit is contained in:
Peter Steinberger
2026-05-26 13:52:31 +01:00
parent 9a7dead795
commit 71b5c7488d
2 changed files with 5 additions and 11 deletions

View File

@@ -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;

View File

@@ -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:");