feat: headless artifact SDK + artifact-kit & team-activity MCP tools#114
Merged
Conversation
…y tools Add @leadbay/components: vanilla view-models (field/action/resource/list plus domain helpers like outreach/leadHistory/enrichment/teamActivity) for building interactive cowork HTML artifacts. The agent owns 100% of markup; the SDK owns the data lifecycle (populate-from-API, value/loading/error, validation, polling, the report_outreach verification + _triggered_by footguns). New always-on read tools: leadbay_artifact_kit (serves the runtime + usage guide) and leadbay_team_activity (per-rep activity KPIs, wraps /kpi/users + /kpi/trends). Build emits a minified runtime into core; a components:check drift guard fails CI if it goes stale. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
@leadbay/components, a headless artifact SDK (vanilla view-models:field/action/resource/listplus domain helpers likeoutreach/leadHistory/enrichment/teamActivity) so the user's Claude in cowork can build interactive HTML artifacts that call Leadbay, with the agent owning 100% of the markup and the SDK owning the data lifecycle (populate-from-API, loading/error, validation, polling, request sequencing, a 30s call timeout, and the report_outreach verification + _triggered_by footguns). Two new always-on read tools ship with it:leadbay_artifact_kit(serves the runtime + a usage guide the agent reads to assemble an artifact) andleadbay_team_activity(per-rep activity KPIs + trend, wrapping /kpi/users + /kpi/trends, the web Dashboard-Manager data). It is validated by agent-dogfood tests where an independent agent builds a working cold-call sheet and a manager dashboard from the guide alone and jsdom asserts the real tool calls fire with the right args, and a newcomponents:checkdrift guard plus the existing routing / composite-file / workflows audits keep registration honest. Also bumps mcp 0.21.3 to 0.22.0 (the release trigger), core to 0.8.4, and updates CHANGELOG + server.json; 939 tests green, rebased onto current main.🤖 Generated with Claude Code