feat: Implement TaskMaster AI Gateway integration with enhanced UX

- Fix Zod schema conversion, update headers, add premium telemetry display, improve user auth flow, and standardize email fields

Functionally complete on this end, mostly polish around user experience and need to add in profile, upgrade/downgrade, etc.

But the AI commands are working off the gateway.
This commit is contained in:
Eyal Toledano
2025-06-01 19:37:12 -04:00
parent 9b87dd23de
commit 2819be51d3
11 changed files with 456 additions and 246 deletions

View File

@@ -66,9 +66,9 @@ const defaultConfig = {
},
account: {
userId: "1234567890", // Placeholder that triggers auth/init
userEmail: "",
email: "",
mode: "byok",
telemetryEnabled: false,
telemetryEnabled: true,
},
};
@@ -129,7 +129,6 @@ function _loadAndValidateConfig(explicitRoot = null) {
: { ...defaults.models.fallback },
},
global: { ...defaults.global, ...parsedConfig?.global },
ai: { ...defaults.ai, ...parsedConfig?.ai },
account: { ...defaults.account, ...parsedConfig?.account },
};
configSource = `file (${configPath})`; // Update source info
@@ -756,7 +755,7 @@ function getTelemetryEnabled(explicitRoot = null) {
// Update getUserEmail to use account
function getUserEmail(explicitRoot = null) {
const config = getConfig(explicitRoot);
return config.account?.userEmail || "";
return config.account?.email || "";
}
// Update getMode function to use account