refactor: align message target wording

This commit is contained in:
Peter Steinberger
2026-01-17 04:18:59 +00:00
parent 9a60d431c5
commit 8ebfa2950d
18 changed files with 27 additions and 27 deletions

View File

@@ -15,7 +15,7 @@ export const msteamsOutbound: ChannelOutboundAdapter = {
return {
ok: false,
error: new Error(
"Delivering to MS Teams requires --to <conversationId|user:ID|conversation:ID>",
"Delivering to MS Teams requires target <conversationId|user:ID|conversation:ID>",
),
};
}

View File

@@ -26,7 +26,7 @@ export type MSTeamsProactiveContext = {
};
/**
* Parse the --to argument into a conversation reference lookup key.
* Parse the target value into a conversation reference lookup key.
* Supported formats:
* - conversation:19:abc@thread.tacv2 → lookup by conversation ID
* - user:aad-object-id → lookup by user AAD object ID
@@ -40,7 +40,7 @@ function parseRecipient(to: string): {
const finalize = (type: "conversation" | "user", id: string) => {
const normalized = id.trim();
if (!normalized) {
throw new Error(`Invalid --to value: missing ${type} id`);
throw new Error(`Invalid target value: missing ${type} id`);
}
return { type, id: normalized };
};