learning_ai_clock/web/src/lib/feedback.ts
saravanakumardb1 f3e14e28dd feat(ecosystem): Phase 0 — kill-switch, feedback, accessibility, feature flags, telemetry events
Phase 0 of the Agentic AI Roadmap: ecosystem gap fixes.

- Add @bytelyst/kill-switch-client integration (web/src/lib/kill-switch.ts)
- Wire kill switch check into providers.tsx on app init
- Add @bytelyst/feedback-client integration (web/src/lib/feedback.ts)
- Add @bytelyst/accessibility to web dependencies
- Add 7 agentic feature flags to backend (all default false)
- Define 16 telemetry event constants (backend + web)
- Add AGENTIC_AI_ROADMAP.md with full Phase 0-E plan + audit findings

All 182 backend tests pass. All 394 web tests pass.
No breaking changes to existing functionality.
2026-03-31 23:26:37 -07:00

19 lines
552 B
TypeScript

/**
* Feedback client — thin wrapper over @bytelyst/feedback-client.
*
* Allows users to submit bug reports, feature requests, and praise
* from within the ChronoMind web app.
*
* Privacy: sends userId + feedback text only. Screenshots are opt-in.
*/
import { createFeedbackClient } from '@bytelyst/feedback-client';
import { getAuthClient, getBaseUrl } from './auth-api';
const feedbackClient = createFeedbackClient({
baseUrl: `${getBaseUrl()}/api`,
getAuthToken: () => getAuthClient().getAccessToken(),
});
export { feedbackClient };