feat(channels): add microsoft teams bot framework adapter

This commit is contained in:
William Valentin
2026-02-16 02:00:14 -08:00
parent c2bd8fa313
commit 8e35d2d674
15 changed files with 455 additions and 3 deletions
+10
View File
@@ -149,6 +149,16 @@ models:
const matrix = redacted.matrix as Record<string, unknown>;
expect(matrix.access_token).toBe('***');
});
it('redacts app_password (teams)', () => {
const config = {
teams: { app_id: 'id', app_password: 'teams-secret' },
models: { default: { provider: 'anthropic', model: 'claude' } },
};
const redacted = redactSecrets(config);
const teams = redacted.teams as Record<string, unknown>;
expect(teams.app_password).toBe('***');
});
});
describe('getDataDir', () => {
+1 -1
View File
@@ -74,7 +74,7 @@ export function loadConfigSafe(configPath?: string): { config?: Config; error?:
/** Deep-clone config and replace sensitive fields with '***'. */
export function redactSecrets(config: Record<string, unknown>): Record<string, unknown> {
const sensitiveKeys = ['bot_token', 'api_key', 'auth_token', 'access_token'];
const sensitiveKeys = ['bot_token', 'api_key', 'auth_token', 'access_token', 'app_password'];
function redact(obj: unknown): unknown {
if (obj === null || obj === undefined) {return obj;}