diff --git a/assistant/src/daemon/ipc-contract-inventory.json b/assistant/src/daemon/ipc-contract-inventory.json index 06a2d125750..70632e455d2 100644 --- a/assistant/src/daemon/ipc-contract-inventory.json +++ b/assistant/src/daemon/ipc-contract-inventory.json @@ -33,6 +33,7 @@ "GalleryInstallRequest", "GalleryListRequest", "GetSigningIdentityResponse", + "GuardianVerificationRequest", "HistoryRequest", "HomeBaseGetRequest", "IdentityGetRequest", @@ -155,6 +156,7 @@ "GenerationCancelled", "GenerationHandoff", "GetSigningIdentityRequest", + "GuardianVerificationResponse", "HistoryResponse", "HomeBaseGetResponse", "IdentityGetResponse", @@ -278,6 +280,7 @@ "gallery_install", "gallery_list", "get_signing_identity_response", + "guardian_verification", "history_request", "home_base_get", "identity_get", @@ -400,6 +403,7 @@ "generation_cancelled", "generation_handoff", "get_signing_identity", + "guardian_verification_response", "history_response", "home_base_get_response", "identity_get_response", diff --git a/assistant/src/runtime/channel-guardian-service.ts b/assistant/src/runtime/channel-guardian-service.ts index 74c9ee4f1dc..2e26631db0c 100644 --- a/assistant/src/runtime/channel-guardian-service.ts +++ b/assistant/src/runtime/channel-guardian-service.ts @@ -80,7 +80,7 @@ export function createVerificationChallenge( return { challengeId, secret, - instruction: `Send \`/guardian-verify ${secret}\` to your bot from your Telegram account within 10 minutes.`, + instruction: `Send \`/guardian_verify ${secret}\` to your bot from your Telegram account within 10 minutes.`, }; } diff --git a/assistant/src/runtime/routes/channel-routes.ts b/assistant/src/runtime/routes/channel-routes.ts index db4df38219a..3c362fa483d 100644 --- a/assistant/src/runtime/routes/channel-routes.ts +++ b/assistant/src/runtime/routes/channel-routes.ts @@ -282,11 +282,11 @@ export async function handleChannelInbound( // Handled before normal message processing so it never enters the agent loop. if ( !result.duplicate && - trimmedContent.startsWith('/guardian-verify ') && + trimmedContent.startsWith('/guardian_verify ') && replyCallbackUrl && body.senderExternalUserId ) { - const token = trimmedContent.slice('/guardian-verify '.length).trim(); + const token = trimmedContent.slice('/guardian_verify '.length).trim(); if (token.length > 0) { const verifyResult = validateAndConsumeChallenge( 'self',