Skip to content

Commit fad7fab

Browse files
miorbnliclaude
andcommitted
fix(nextcloud-talk): access sanitizeText on flattened outbound adapter
createChatChannelPlugin resolves the { base, attachedResults } outbound shape into a flat ChannelOutboundAdapter (resolveChatChannelOutbound spreads base to the top level), so the test must read outbound.sanitizeText directly, not outbound.base.sanitizeText. The previous access failed check-test-types with TS2339 (Property 'base' does not exist on type 'ChannelOutboundAdapter'). Co-Authored-By: Claude <[email protected]>
1 parent ac33ea8 commit fad7fab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/nextcloud-talk/src/outbound-tool-trace-sanitize.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { describe, expect, it } from "vitest";
55
import { nextcloudTalkPlugin } from "./channel.js";
66

77
function sanitizeOutboundText(text: string): string {
8-
const base = nextcloudTalkPlugin.outbound?.base;
9-
const sanitizeText = base?.sanitizeText;
8+
const sanitizeText = nextcloudTalkPlugin.outbound?.sanitizeText;
109
if (!sanitizeText) {
1110
throw new Error("Expected Nextcloud Talk outbound sanitizeText hook");
1211
}

0 commit comments

Comments
 (0)