Skip to content

Commit d554552

Browse files
committed
refactor(channels): remove group intro hint adapter
maintainer-approved early removal of v2026.7.2-gated compat Plugin SDK surface baseline update is maintainer-approved for this intentional removal.
1 parent 08104b0 commit d554552

5 files changed

Lines changed: 5 additions & 23 deletions

File tree

docs/.generated/plugin-sdk-api-baseline.sha256

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ e7a9eaa7ba6493379c08eabe6547427babce8645c907910fdc7df55cfed27eba module/channel
3232
91425ad75ddb58a3796f7bc88570cb2c81b3db0dd6521a7ce0e55f9148880a47 module/channel-ingress-runtime
3333
c97dd36cdf8f83c2893c33e9430a93cd131a03d855725783ca5b545de0cf84f8 module/channel-lifecycle
3434
159d034b431d113f3a6dc41ec0bcadba2d6664051f158330b0e3dd3da8b5d42f module/channel-logging
35-
40af8b0d826f03a8d0e30213f3ee747a2f54cc8b50934b206d94718ecd10c396 module/channel-message
36-
df96d17b3a2dd65f8def0be14c98831b49aca96b21f1f08a326f5f7c92ac0cda module/channel-outbound
35+
b8a583252a6188a5c6e15b093e08407c691e8714ec51d4adadfac49c1e76a55d module/channel-message
36+
476f0ec01b26c318c5c1be743a64ce4fb2510dcc5ed8085705f941f777ee2024 module/channel-outbound
3737
930beff13ed42a138f65164013c82f4f4c96422292c5fc634a5edee1dce71367 module/channel-pairing
3838
ee4292b069d4d48cce4fc2dc26df5b5c87eb1fa4769f1f6be9a10c3e1221e1a9 module/channel-plugin-common
3939
94ef57c8f6087fcaa56e59e493c391a04377ed03f23c681edd8d8f6e2d64e0da module/channel-policy
@@ -44,7 +44,7 @@ bba5540be7cf9613a163663decdb2affe2af9bbd3ad7914989ab186f9c2abec1 module/channel
4444
7c90157a95bc0523fc66b1f78ce140f7ec7dbf809dfa3a480244efc01f972754 module/channel-send-result
4545
fa58237f4af17c2a3444eb01475e7267d86f37ffc8bab6ce243143a35908bbfd module/channel-setup
4646
47719805c7a1d2623dcecafad50abb6cc674262b250e1f0d7020a79ad41cfd42 module/channel-status
47-
a4918b82b795f086ae71acb43e2b725fda01f6c8bf2333c155a52581bd4cf8aa module/channel-streaming
47+
824858dccff862ba6b83f6a478bea73397972a4584f4a427a794224ac680670a module/channel-streaming
4848
c89ec1b194b76f67a6f4dd108dccf460da6065646cba31374c8aa748f23a39e4 module/collection-runtime
4949
391e6f0c77da2e17a058fc5aea87fd193830b2a14e12fae77c7f63b0226f0bb5 module/command-auth
5050
7dede491d22f7226d955210befca09b32e955c59436c27500f0c7d1971ba07d5 module/command-auth-native

extensions/whatsapp/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export {
6363
normalizeWhatsAppMessagingTarget,
6464
normalizeWhatsAppTarget,
6565
} from "./src/normalize-target.js";
66-
export { resolveWhatsAppGroupIntroHint } from "./src/runtime-api.js";
6766
export { testing as whatsappAccessControlTesting } from "./src/inbound/access-control.js";
6867
export {
6968
startWhatsAppQaDriverSession,

extensions/whatsapp/src/group-intro.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
// Whatsapp plugin module implements group intro behavior.
2-
const WHATSAPP_GROUP_INTRO_HINT =
3-
"WhatsApp IDs: SenderId is the participant JID (group participant id).";
4-
5-
/**
6-
* @deprecated Core never consumed the group intro hint adapter; this export
7-
* remains only for the plugin API surface and is removed after the next
8-
* release train together with ChannelGroupAdapter.resolveGroupIntroHint.
9-
*/
10-
export function resolveWhatsAppGroupIntroHint(): string {
11-
return WHATSAPP_GROUP_INTRO_HINT;
12-
}
13-
1+
// Whatsapp plugin module implements group mention normalization.
142
export function resolveWhatsAppMentionStripRegexes(ctx: { To?: string | null }): RegExp[] {
153
const selfE164 = (ctx.To ?? "").replace(/^whatsapp:/i, "");
164
if (!selfE164) {

extensions/whatsapp/src/runtime-api.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ export {
2424
resolveWhatsAppGroupRequireMention,
2525
resolveWhatsAppGroupToolPolicy,
2626
} from "./group-policy.js";
27-
export {
28-
resolveWhatsAppGroupIntroHint,
29-
resolveWhatsAppMentionStripRegexes,
30-
} from "./group-intro.js";
27+
export { resolveWhatsAppMentionStripRegexes } from "./group-intro.js";
3128
export { createWhatsAppOutboundBase } from "./outbound-base.js";
3229
export {
3330
isWhatsAppGroupJid,

src/channels/plugins/types.adapters.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ export type ChannelSecretsAdapter = {
172172

173173
export type ChannelGroupAdapter = {
174174
resolveRequireMention?: (params: ChannelGroupContext) => boolean | undefined;
175-
/** @deprecated Core never consumed this; removed after the next release train. */
176-
resolveGroupIntroHint?: (params: ChannelGroupContext) => string | undefined;
177175
resolveToolPolicy?: (params: ChannelGroupContext) => GroupToolPolicyConfig | undefined;
178176
};
179177
export type ChannelStatusAdapter<ResolvedAccount, Probe = unknown, Audit = unknown> = {

0 commit comments

Comments
 (0)