fix: repair ci contract and whatsapp test stubs

This commit is contained in:
Peter Steinberger
2026-04-07 08:09:21 +01:00
parent 087eb621ff
commit 58744f3d87
4 changed files with 8 additions and 0 deletions

View File

@@ -1 +1,4 @@
// iMessage does not expose secret-contract surfaces.
export const secretTargetRegistryEntries: readonly [] = [];
export function collectRuntimeConfigAssignments(): void {}

View File

@@ -1 +1,4 @@
// WhatsApp does not expose secret-contract surfaces.
export const secretTargetRegistryEntries: readonly [] = [];
export function collectRuntimeConfigAssignments(): void {}

View File

@@ -392,6 +392,7 @@ vi.mock("./auto-reply/monitor/runtime-api.js", () => ({
vi.mock("./auto-reply/monitor/group-gating.runtime.js", () => ({
hasControlCommand: (body: string) => body.trim().startsWith("/"),
implicitMentionKindWhen: (kind: string, enabled: boolean) => (enabled ? [kind] : []),
normalizeE164: (value: string) => {
const digits = String(value).replace(/\D+/g, "");
return digits ? `+${digits}` : null;

View File

@@ -7,6 +7,7 @@ const SRC_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
const REPO_ROOT = resolve(SRC_ROOT, "..");
const ALLOWED_BUNDLED_CAPABILITY_METADATA_CONSUMERS = new Set([
"src/media-generation/provider-capabilities.contract.test.ts",
"src/plugins/bundled-capability-metadata.test.ts",
"src/plugins/contracts/boundary-invariants.test.ts",
]);