From 6a04da5a4e7f64c331d624285dbf7eab87dc020c Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Tue, 2 Sep 2025 23:37:55 +0200 Subject: [PATCH] chore: remove templates --- packages/tm-core/src/auth/index.ts | 6 -- packages/tm-core/src/auth/templates.ts | 137 ------------------------- 2 files changed, 143 deletions(-) delete mode 100644 packages/tm-core/src/auth/templates.ts diff --git a/packages/tm-core/src/auth/index.ts b/packages/tm-core/src/auth/index.ts index 1a311fae..a5dfb729 100644 --- a/packages/tm-core/src/auth/index.ts +++ b/packages/tm-core/src/auth/index.ts @@ -17,12 +17,6 @@ export type { export { AuthenticationError } from './types'; -export { - getSuccessHtml, - getErrorHtml, - getSecurityErrorHtml -} from './templates'; - export { DEFAULT_AUTH_CONFIG, getAuthConfig diff --git a/packages/tm-core/src/auth/templates.ts b/packages/tm-core/src/auth/templates.ts deleted file mode 100644 index 64651f29..00000000 --- a/packages/tm-core/src/auth/templates.ts +++ /dev/null @@ -1,137 +0,0 @@ -/** - * HTML templates for OAuth callback responses - */ - -export function getSuccessHtml(): string { - return ` - - - - Authentication Successful - - - -
- - - - -

Authentication Successful!

-

You can close this window and return to your terminal.

-

Task Master CLI

-
- - -`; -} - -export function getErrorHtml(errorMessage: string): string { - return ` - - - - Authentication Failed - - - -
-

❌ Authentication Failed

-

${errorMessage}

-

You can close this window and try again.

-
- - -`; -} - -export function getSecurityErrorHtml(): string { - return ` - - - - Security Error - - - -
-

⚠️ Security Error

-

Invalid state parameter. Please try again.

-
- - -`; -}