Commit Graph

4 Commits

Author SHA1 Message Date
Benjamin Taylor d10e9c5cfc test(bot): guard telemetry platform allow-list against new adapters
Adds a monorepo-invariant test that scans sibling bot-* adapter packages for their declared `platform` literal and fails if any is missing from normalizePlatform's allow-list. It immediately caught the new bot-teams adapter (platform "teams") that landed on main — now added to the allow-list.
2026-06-26 15:45:06 -05:00
Benjamin Taylor 4d67b2bef7 fix(bot): normalize telemetry platform and emit agent_run after finalization
Address PR review: bound the free-form adapter platform label to slack|discord|telegram|whatsapp|custom (no tenant/project leakage, capped cardinality); emit oss.bot.agent_run only after the transcript-append + renderer.finish() steps succeed, with a finalize stage on oss.bot.agent_run_failed for late failures.
2026-06-26 15:39:31 -05:00
github-actions[bot] e064403cac style: auto-fix formatting 2026-06-26 15:12:00 -05:00
Benjamin Taylor e6b84c030b feat(bot): add anonymous oss.bot.* telemetry helper and event catalog
BotTelemetry posts 5 oss.bot.* events at 100% via @copilotkit/shared's lambdaClient. Anonymous (no telemetry_id/license/key), opt-out via COPILOTKIT_TELEMETRY_DISABLED/DO_NOT_TRACK, suppressed under test. 3-tier anonymous_id (durable store -> project cache file -> per-process UUID). errorClass() maps errors to a bounded category, never a raw message.
2026-06-26 15:12:00 -05:00