diff --git a/src/flows/doctor-tool-result-cap-advice.ts b/src/flows/doctor-tool-result-cap-advice.ts index d768a1fac4c..c4a4c871846 100644 --- a/src/flows/doctor-tool-result-cap-advice.ts +++ b/src/flows/doctor-tool-result-cap-advice.ts @@ -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; diff --git a/test/scripts/package-mac-app.test.ts b/test/scripts/package-mac-app.test.ts index 035454e379a..62db6f11e59 100644 --- a/test/scripts/package-mac-app.test.ts +++ b/test/scripts/package-mac-app.test.ts @@ -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:");