feat: wire Cordis apply lifecycle with soft-fail token check

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
owo
2026-08-14 16:30:48 +08:00
co-authored by Cursor
parent cdfe81cd9e
commit 27f02b7460
3 changed files with 55 additions and 6 deletions
+4 -4
View File
@@ -3,10 +3,10 @@ import type { AgentHandle } from '@deepseek-ai/dsh-agent'
import { createUserMessage } from '@deepseek-ai/dsh-llm/message'
import type { ContentBlock, TextBlock } from '@deepseek-ai/dsh-llm/types'
import { SessionId, type SessionEvent } from '@deepseek-ai/dsh-session/types'
import { isAuthorized } from './auth.ts'
import { TelegramClient, type TelegramClientLike, type TelegramUpdate } from './client.ts'
import { MSG, parseCommand } from './commands.ts'
import { markdownToHtml, splitMessage } from './format.ts'
import { isAuthorized } from './auth.js'
import { TelegramClient, type TelegramClientLike, type TelegramUpdate } from './client.js'
import { MSG, parseCommand } from './commands.js'
import { markdownToHtml, splitMessage } from './format.js'
export interface TelegramBridgeOptions {
token: string