Commit Graph

120 Commits

Author SHA1 Message Date
Martha Schumann 981734fb99 fix: propagate useCopilotReadable context and CopilotKit properties into Python LangGraph agent state
Two silent failures in the Python SDK prevented frontend context from reaching the agent:

1. langgraph_default_merge_state rebuilt copilotkit as {actions} only, dropping the
   useCopilotReadable items the TypeScript runtime had placed in state.copilotkit.context.
2. CopilotKitContext.properties were never forwarded through execute_agent → agent.execute(),
   so <CopilotKit properties={...} /> values never reached state.copilotkit.properties.

Both fields now land cleanly under state["copilotkit"] on every agent invocation.
Also adds tests, a showcase example, and a new docs page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 18:37:51 -07:00
Jordan Ritter 39347a7ada feat: remove open-genui rendering from showcase starters (#3944)
## Summary

- Remove the Open GenUI rendering strategy from all 17 showcase starters
- Clean up all supporting files: feature registries, constraints, e2e
tests, Python middleware, docs
- Regenerate all starters from updated template

### What was removed

The "open-genui" render mode allowed agents to generate arbitrary HTML
rendered in a sandboxed iframe. This is being extricated from starters
into a separate project. The core SDK `OpenGenerativeUIRenderer`
component is **not** affected — only the showcase starter UI option.

### Files changed

- **Template**: Deleted `open-genui/` renderer, updated types.ts,
page.tsx, suggestions hook
- **Registry**: Removed `open-gen-ui` and `byoc-opengenui` features from
all registries (shell, shell-dojolike, shared)
- **Constraints**: Removed "open" constraint block and open-gen-ui
references
- **E2E tests**: Removed Open GenUI test cases from starter-e2e,
screenshots, renderer-selector specs
- **Python middleware**: Removed OPEN_GENUI_INSTRUCTION and open-genui
handling from render_mode.py
- **Starters**: Regenerated all 17 via generate-starters.ts
- **Docs**: Updated QA-COVERAGE.md pill count from 5 to 4

### Local verification

- Docker build of langgraph-python starter: success
- Rendered page shows exactly 4 render modes (Tool-Based, A2UI,
json-render, HashBrown)
- Zero "open-genui" references in rendered HTML
- 521 validation tests pass

## Test plan

- [x] Docker build succeeds locally
- [x] Rendered starter shows 4 modes, no Open GenUI
- [x] Zero grep matches for open-genui across showcase/
- [x] 521 vitest validation tests pass
- [ ] CI green

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-04-15 17:03:13 -07:00
Jordan Ritter da667dcf72 fix: context-aware Python import rewriting for tools/ directory (#3943)
## Summary

Fixes crewai-crews starter crash: `ModuleNotFoundError: No module named
'agent.tools.tools'`.

The import rewriter rewrites `from tools import X` to `from .tools
import X`. Correct for files at agent root, wrong for files *inside*
`tools/` — there `.tools` resolves to `tools/tools` (non-existent). Fix:
context-aware rewrite using `from . import X` for files inside tools/.

Verified locally with Docker build + import test.

## Test plan

- [x] Docker build + import succeeds
- [x] 502 tests pass, drift check passes
- [ ] Deploy and verify crewai-crews returns 200
2026-04-15 16:53:53 -07:00
github-actions[bot] 31c7380b86 style: auto-fix formatting 2026-04-15 23:52:57 +00:00
Jordan Ritter fe7129fbcf fix: context-aware Python import rewriting for files inside tools/ dir
Files inside tools/ need "from tools import X" → "from . import X"
(current package), not "from .tools import X" (sub-module). The
previous rewrite rule was correct for files outside tools/ but caused
ModuleNotFoundError for crewai-crews custom_tool.py.
2026-04-15 16:46:14 -07:00
Jordan Ritter f8bbb1390c feat: complete open-genui removal from tests, registries, middleware, and docs 2026-04-15 16:44:28 -07:00
Jordan Ritter 07ed9b6882 feat: regenerate all starters without open-genui 2026-04-15 16:38:13 -07:00
Jordan Ritter 1fcc49e100 feat: remove open-genui rendering from starter template and registry 2026-04-15 16:37:56 -07:00
Jordan Ritter 4d7912cc20 fix: resolve remaining starter crashes — ESM, chown, mastra pins (#3941)
## Summary

Fixes the last 2 crashing starters (claude-sdk-typescript + mastra)
after PR #3933 resolved 5/7.

1. **ESM resolution failure** (claude-sdk-typescript) — nested
`agent/package.json` in Docker runner stage creates a separate package
boundary that confuses tsx module resolution. Fix: `rm -f
agent/package.json` in Dockerfile template after COPY.

2. **Recursive chown** (all templates) — `chown app:app /app` only
changed the directory, not contents. Mastra needs to create
`/app/src/mastra/public` at runtime. Fix: `chown -R app:app /app` in all
Dockerfile templates.

3. **Mastra version drift** (mastra) — floating `beta` dist-tags resolve
to incompatible versions between `mastra` CLI and `@mastra/core`. Fix:
generation script pins mastra ecosystem deps to stable versions via
`PIN_OVERRIDES` map.

All fixes verified locally with Docker builds before pushing.

## Test plan

- [x] Docker build + run claude-sdk-typescript locally — agent starts on
port 8123
- [x] Docker build + run mastra locally — `mastra 1.6.0 ready in 675 ms`
- [x] 502 generate-starters tests pass
- [x] Drift check passes
- [ ] Deploy to Railway and verify all 17 starters return 200
2026-04-15 16:22:07 -07:00
Jordan Ritter 8407b2e0e8 fix: include generated agent files in claude-sdk-typescript starter
The source package's src/agent/ was just committed — regenerating
the starter now correctly copies agent/index.ts and agent/package.json
into the starter directory, fixing the drift check.
2026-04-15 16:16:39 -07:00
Jordan Ritter 675456ed28 fix: add missing claude-sdk-typescript agent source directory
The src/agent/ directory was never committed to the repo, causing
the drift-check to fail in CI. The starter was generated from a
local-only copy of this directory.
2026-04-15 16:14:34 -07:00
Jordan Ritter eecb252263 fix: resolve remaining starter crashes — ESM resolution, recursive chown, mastra version pins
1. Remove nested agent/package.json in TypeScript Dockerfile template to
   prevent ESM module resolution failure (claude-sdk-typescript)
2. Use chown -R for /app in all Dockerfile templates so runtime-created
   dirs (e.g. /app/src/mastra/public) are writable by non-root user
3. Pin mastra ecosystem deps to stable versions (1.6.0/1.25.0) in
   generation script — floating beta tags caused version drift between
   mastra CLI and @mastra/core
2026-04-15 15:57:17 -07:00
github-actions[bot] df9c812047 style: auto-fix formatting 2026-04-15 22:25:26 +00:00
Jordan Ritter 7330356ef3 feat: add deployed starter smoke tests and rendered-tools assertion
Extend integration-smoke.spec.ts with:
- Deployed Starters section (L1-L3) reading demo_url from registry.json
- STARTER_SLUG env var filtering for single-starter testing
- Rendered-tools DOM assertion (Promise.all + .some) for L4
- Proper type derivation from JSON import (no inline as-casts)
- Single-test-per-starter pattern to avoid fullyParallel override
2026-04-15 15:17:10 -07:00
Jordan Ritter 87eee6645b feat: add health check retry support to e2e helpers
Support retries with configurable delay in checkHealth() for Railway
cold-start scenarios. Captures last error from retry loop instead of
making a redundant final request.
2026-04-15 15:17:06 -07:00
Jordan Ritter 93b730aba5 feat: add deployed field to starter objects in registry.json
Add a `deployed` boolean to all 17 starter sub-objects. 14 marked
true (healthy on Railway), 3 marked false (mastra, crewai-crews,
claude-sdk-typescript — currently down). Used by smoke tests to
gate which starters are tested.
2026-04-15 15:17:04 -07:00
Jordan Ritter cffecf1fc1 fix: resolve 3 starter crash root causes — Docker home dir, path depth, import rewriting
1. EACCES on /home/app: Dockerfile templates now create home dir for
   non-root user before USER app (langgraph-ts, claude-sdk-ts, mastra)
2. IndexError Path.parents[4]: search_flights.py schema fallback now
   guards against shallow Docker paths (agno, claude-sdk-py, ms-agent-py)
3. Wrong import path: rewritePythonImports() now converts
   from agents.X to relative imports in starter agent dirs (langroid, crewai)
2026-04-15 09:27:08 -07:00
copilotkit-devops-bot[bot] 068521d0ec chore: auto-sync docs from main (2026-04-15) 2026-04-15 15:32:42 +00:00
Jordan Ritter eb23cc96b6 fix: restructure spring-ai starter to use Maven standard directory layout (#3925)
## Summary
- The `generate-starters.ts` script was flattening
`src/main/{java,resources}` into `agent/{java,resources}`, breaking
Maven builds which expect the standard `src/main/` layout
- Added a post-copy restructure step that moves `agent/java/` to
`agent/src/main/java/` and `agent/resources/` to
`agent/src/main/resources/`
- Removed the now-redundant explicit resources copy that was duplicating
work
- Updated tests to verify the correct Maven layout and assert the
flattened directories no longer exist

## Test plan
- [x] `npx vitest run
showcase/scripts/__tests__/generate-starters.test.ts` — all 251 tests
pass
- [x] Verified regenerated `showcase/starters/spring-ai/agent/` has
`src/main/java/` and `src/main/resources/` (not flattened `java/` and
`resources/`)
- [x] Verified Dockerfile `COPY agent/ ./` is compatible with the new
layout (no changes needed)
2026-04-14 22:39:41 -07:00
Jordan Ritter 9fbf7f3b54 feat: fill QA checklists with real test steps, add coverage matrix (#3917)
## Summary

- Replace TODO placeholders in all 73 QA checklist files across 17
showcase packages with specific, actionable test steps derived from
reading actual demo page source code
- Each checklist now references real data-testid selectors, hook names
(useFrontendTool, useRenderTool, useLangGraphInterrupt,
useHumanInTheLoop, useAgent, useConfigureSuggestions), expected UI
states, and interaction flows
- Stub demos (shared-state-write, shared-state-streaming, subagents) are
marked as stubs with basic chat verification steps
- Add `showcase/QA-COVERAGE.md` with a comprehensive test coverage
matrix covering manual QA, Vitest unit tests, Playwright E2E (smoke +
interaction), per-package E2E, aimock fixtures, and CI automation for
all 9 demos plus the Sales Dashboard starter hero

## Test plan

- [ ] Verify QA checklist files no longer contain generic "TODO: Add
checks specific to X" placeholders
- [ ] Verify each checklist references the correct demo-specific
features (e.g., agentic-chat mentions background change + weather card,
hitl mentions step selector + accept/reject)
- [ ] Verify QA-COVERAGE.md matrix entries are accurate by
cross-referencing with actual test files
- [ ] Verify framework names in titles are preserved correctly across
all 17 packages
2026-04-14 22:34:56 -07:00
Jordan Ritter 34be9fead9 fix: restructure spring-ai starter to use Maven standard directory layout
The generate-starters script was flattening src/main/{java,resources} into
agent/{java,resources}, breaking Maven builds. Add a post-copy step that
moves them to agent/src/main/{java,resources} as Maven expects.
2026-04-14 22:33:53 -07:00
Jordan Ritter 17ae431082 fix: prevent langgraph-python agent from looping on query_data
The agent's system prompt didn't mention pieChart/barChart frontend
tools, so gpt-4o-mini would call query_data repeatedly instead of
rendering charts. Updated the system prompt to explicitly instruct
the agent to call query_data once then use pieChart/barChart, and
updated the query_data tool description to reinforce single-call
semantics.
2026-04-14 22:19:33 -07:00
github-actions[bot] fa8190d6b8 style: auto-fix formatting 2026-04-15 00:07:54 +00:00
Jordan Ritter 580a3e9214 fix: langgraph-python starter agent — permissions, imports, and tools.py naming collision
Root causes (verified locally with docker build + run):
1. PermissionError: non-root user can't write .langgraph_api dir — fix: chown -R app:app /app
2. ImportError: relative imports fail in langgraph_cli context — fix: absolute imports
3. ValueError: tools.py and tools/ directory collision — fix: rename to tool_wrappers.py

Tested: docker run returns {"status":"ok","agent":"ok"}
2026-04-14 17:06:02 -07:00
Jordan Ritter ae7e189e50 fix: pin langgraph versions to prevent breaking API changes 2026-04-14 16:09:53 -07:00
Jordan Ritter 626b86c23b feat: fill QA checklists with real test steps, add test coverage matrix
Replace TODO placeholders in all 73 QA checklist files across 17 showcase
packages with specific, actionable test steps derived from reading the
actual demo page source code. Each checklist now references real
data-testid selectors, hook names, expected UI states, and interaction
flows.

Add showcase/QA-COVERAGE.md with a comprehensive matrix showing coverage
across manual QA, Vitest unit tests, Playwright E2E (smoke and interaction),
per-package E2E, aimock fixtures, and CI automation for all 9 demos plus
the Sales Dashboard starter hero.
2026-04-14 16:06:58 -07:00
Jordan Ritter 9952fb1d82 fix: update test expectations for agent_server:app devScripts 2026-04-14 15:45:21 -07:00
Jordan Ritter 59c073c610 fix: add agent_server.py to all Python starters, matching demo packages
Python starters were trying to run uvicorn with agent.<module>:app but
those modules don't export a FastAPI app. The demo packages use
agent_server.py as the FastAPI wrapper, so starters need it too.

Changes:
- Copy agent_server.py from each demo package into starter root,
  rewriting "from agents." to "from agent." for the starter layout
- Update all non-langgraph Python devScripts to use agent_server:app
- Update Dockerfile.python to COPY agent_server.py for non-langgraph
- Update getEntrypointBlock() generic Python to use agent_server:app
- Make langgraph-fastapi use langgraph_cli dev like langgraph-python
  (it was incorrectly configured as a uvicorn-based starter)
- Regenerate all starters
2026-04-14 15:41:34 -07:00
Jordan Ritter 203e0adc9c fix: align langgraph-python starter with working demo package layout (#3907)
## Summary

- The langgraph-python starter crashes on Railway because `langgraph_cli
dev --config agent/langgraph.json` can't resolve module paths when
agents live in `agent/` with `dependencies: ["."]` pointing to `/app`
- Restructured starter to match the demo package's **proven working
layout**: agents in `src/agents/`, `langgraph.json` at project root,
entrypoint referencing root config
- Templatized `Dockerfile.python` with `{{AGENT_DIR}}` and
`{{DOCKER_EXTRA_COPY}}` variables so the generator handles different
agent directory structures
- Updated tests to use framework `agentDir` instead of hardcoding
`"agent"`
- All 17 starters regenerated, 518 tests passing

## Test plan

- [ ] Deploy langgraph-python starter to Railway — should return 200
like the demo package
- [ ] Verify other Python starters still build/deploy (Dockerfile
template changed for all)
- [ ] `npx tsx generate-starters.ts --check` passes
- [ ] All vitest suites pass: generate-starters.test.ts (248) +
starter-consistency.test.ts (270)
2026-04-14 15:29:03 -07:00
Jordan Ritter 80ee51dc46 fix: wider starter hero section, sticky renderer selector above sidebar (#3913)
## Summary

- Shell: starter section breaks out to `max-w-[90rem]` (1440px) while
header/demos stay at `max-w-5xl` (1024px) — gives the dashboard +
sidebar room to breathe
- Starter: renderer selector bar gets `sticky top-0 z-[60]` — stays
visible and clickable above the CopilotKit sidebar (z-50)
- All 17 starters regenerated with sticky header
2026-04-14 15:28:52 -07:00
Jordan Ritter 665c312372 fix: harden deploy pipeline — independent concurrency, post-deploy health checks (#3908)
## Summary

- **Fix concurrency group**: Manual dispatches targeting different
services no longer cancel each other. Push events still cancel stale
deploys (same group), but `workflow_dispatch` runs for different
services get unique groups and run independently.
- **Add post-deploy health check**: After Railway deploy, polls the
service health endpoint (6 attempts over ~90s). Non-blocking for
sleep-on-idle services but logs clearly for visibility.
- **Enhance Slack notification**: Now includes service count and names
in both success and failure messages, plus guards against empty webhook
secret.
2026-04-14 15:26:54 -07:00
Jordan Ritter c8b5bfd890 fix: wider starter hero section, sticky renderer selector above sidebar 2026-04-14 15:26:24 -07:00
Jordan Ritter 24f5886a94 fix: format 2026-04-14 15:12:40 -07:00
Jordan Ritter 1855ea11c2 fix: format 2026-04-14 15:12:10 -07:00
Jordan Ritter 8ca2b38557 fix: responsive iframe height and scrollable starter content 2026-04-14 15:07:00 -07:00
Jordan Ritter 695c945d3e fix: align langgraph-python starter with working demo package layout
The langgraph-python starter crashes on Railway because of a directory
structure mismatch: agents were in agent/ with langgraph.json inside
agent/, causing langgraph_cli to fail resolving module paths.

Match the demo package's working layout:
- Move agents from agent/ to src/agents/ (same as demo)
- Put langgraph.json at project root (same as demo)
- Point entrypoint at root langgraph.json instead of agent/langgraph.json
- Templatize Dockerfile.python with AGENT_DIR and DOCKER_EXTRA_COPY vars
- Skip langgraph.json path rewriting when agentDir matches agentSourceDir
- Update tests to use framework agentDir instead of hardcoding "agent"

Regenerate all 17 starters.
2026-04-14 14:37:37 -07:00
Jordan Ritter 32794abc71 fix: make adduser idempotent in all Dockerfile templates, regenerate starters 2026-04-14 14:26:32 -07:00
Jordan Ritter beed28df67 fix: regenerate shell registry and starter content data (#3904)
Registry and starter-content.json were stale after #3896 merge.
Regenerated from current manifests.
2026-04-14 14:18:47 -07:00
Jordan Ritter f79d7abdd3 fix: resolve langgraph-python starter crash from wrong graph path and fragile imports (#3902)
## Summary

- Fixed `langgraph.json` graph path in the langgraph-python starter: was
`./src/agents/main.py:graph` (copied verbatim from demo package),
corrected to `./main.py:graph` (matching the flattened starter layout)
- Wrapped A2UI agent imports (`search_flights`, `generate_a2ui`) in
try/except in both the demo package and starter, so the agent starts
cleanly even when optional dependencies like copilotkit's `ToolRuntime`
patch aren't loaded
- Fixed `generate-starters.ts` to rewrite `langgraph.json` graph paths
when copying from packages to starters, preventing this drift in future
regenerations

## Test plan

- [ ] Run `npx tsx generate-starters.ts --check --slug langgraph-python`
(passes)
- [ ] Deploy langgraph-python starter to Railway and verify agent starts
without crash
- [ ] Verify core tools (query_data, get_weather, schedule_meeting) work
- [ ] Verify A2UI tools load when copilotkit runtime is available
2026-04-14 14:18:33 -07:00
Jordan Ritter 8786ee98fc fix: regenerate shell registry and starter content data 2026-04-14 14:17:24 -07:00
Jordan Ritter 6a8b754689 fix: resolve langgraph-python starter crash from wrong graph path and fragile imports
The langgraph.json in the starter was copied verbatim from the demo package
with path ./src/agents/main.py:graph, but the starter flattens agents into
the agent/ dir so the correct path is ./main.py:graph.

Also wraps A2UI agent imports in try/except so the starter starts cleanly
even if copilotkit's ToolRuntime patch isn't available — these are optional
features that shouldn't prevent the core agent from running.

Fixes the generate-starters.ts script to rewrite langgraph.json graph paths
when copying from packages to starters, preventing this drift in the future.
2026-04-14 14:12:03 -07:00
Jordan Ritter d6b865cb3a fix: add AG-UI SDK build-from-source step to spring-ai Dockerfile
The com.ag-ui.community artifacts aren't published to Maven Central,
so the Docker build fails when resolving dependencies. The demo package
Dockerfile already handles this by cloning the ag-ui repo and running
mvn install before building the agent — mirror that in the template
and regenerate the starter.
2026-04-14 14:10:03 -07:00
Jordan Ritter 55932c5441 fix: correct starter Dockerfiles for spring-ai (mvnw), ms-agent-dotnet (adduser), mastra (agent dir)
spring-ai: Use maven:3-eclipse-temurin-21 image with mvn instead of
missing ./mvnw wrapper.

ms-agent-dotnet: Replace addgroup/adduser (not available on aspnet:9.0)
with groupadd/useradd. Applied same fix to all four Dockerfile templates
for consistency.

mastra: Make Dockerfile.typescript template use {{AGENT_DIR}} variable
so mastra correctly gets src/mastra/ instead of hardcoded agent/.
Updated generate-starters.ts to substitute variables in Dockerfiles.
2026-04-14 13:48:11 -07:00
Jordan Ritter a48ae18fbf fix: update QA sync parent page to new Showcase QA Instructions under QA Root 2026-04-14 13:31:04 -07:00
Jordan Ritter c25c1ca291 fix: remove shared_frontend COPY from demo package Dockerfiles (deleted in #3896) 2026-04-14 13:27:05 -07:00
Jordan Ritter ce8a9fe18b feat: showcase starter restructuring — Sales Dashboard as hero (#3896)
## Summary

- **17 generated clonable starters** at `showcase/starters/<slug>/` with
Sales Dashboard + 5 GenUI rendering strategies (Tool-Based, A2UI
Catalog, HashBrown, json-render fallback, Open GenUI)
- **153 demo pages reverted** to self-contained originals from git
history — zero shared imports, fully readable in Code tab
- **Shared frontend deleted** — all packages now fully self-contained
- **17 Railway services provisioned** with sleep-on-idle for all
starters
- **Aimock integration** — 37 fixture rules covering all 9 demo types,
per-package playwright configs wired, docker-compose for CI
- **CI updated** — 17 starter services in deploy workflow, drift
detection CI for template consistency
- **Shell updated** — `npx degit` clone commands, full component tree in
Code tab, `.java` file support

## What Changed

### Phase 1A: Starter Template + Generation
- Canonical template at `showcase/starters/template/` with Sales
Dashboard, 5 renderer strategies, per-language Dockerfiles (non-root
user, agent health checks)
- Generation script at `showcase/scripts/generate-starters.ts` with
Python import rewriting, TypeScript shared-tools rewriting, `--check`
mode for CI drift detection, deterministic output (sorted
devDependencies)
- 537 tests: 267 unit (generation script + transform functions) + 270
cross-starter consistency

### Phase 1B: Demo Revert
- All 9 feature demos across all 17 packages reverted to self-contained
originals from commits `cbc4c8f77` and `52ac091ef`
- Zero `@copilotkit/showcase-shared` imports in any demo page
- Dead `demo-wrapper.tsx` and `error-boundary.tsx` files removed

### Phase 2: Integration + Cleanup
- Removed webpack alias and tsconfig paths from all 17 packages
- Deleted `showcase/shared/frontend/` and removed from
`pnpm-workspace.yaml`
- Updated all 17 manifest.yaml files with new starter paths + Railway
domains
- Updated CI deploy workflow with 17 starter services + Railway IDs
- Added drift detection CI (`showcase_template-drift.yml`) with expanded
trigger paths
- Updated shell clone command to `npx degit`, starter content bundler
discovers full component tree + `.java` files

### Phase 3: Aimock Integration
- Expanded `showcase/aimock/feature-parity.json` from 18 to 37 fixture
rules covering all demo interactions
- Updated all 17 `showcase/packages/*/playwright.config.ts` with env
passthrough for `OPENAI_BASE_URL`/`OPENAI_API_KEY`
- Created `showcase/tests/docker-compose.packages.yml` — CI aimock
sidecar (fixtures-only, strict mode)
- Created `showcase/scripts/run-e2e-with-aimock.sh` — convenience script
for local testing
- Aimock modes: CI = strict/fixtures-only, Live demos = proxy +
fixtures, Local = developer choice

### E2E Tests
- Starter interaction tests: renderer switching verifies content
changes, "Add a deal" exercises React state
- Demo interaction tests: suggestion buttons verified by text,
click-and-verify for agentic-chat, hitl, tool-rendering
- Playwright screenshot structure for 3 viewports (iPhone SE, iPhone 14
Pro Max, Desktop)

### Quality
- Docker: non-root user, process identification in entrypoint (`wait -n`
+ PID check), agent health checks for all 4 languages
- Types: `SalesStage` and `RenderMode` derived from `as const` arrays,
`VALID_MODES` localStorage validation, `HashBrownDealCardProps.stage`
typed as `SalesStage`
- Error handling: generation script fails hard on missing required
inputs, warns on known-incomplete agents, sorted devDependencies for
determinism
- HashBrown prompt: fixed `name=` to `label=` (MetricCard prop
mismatch), deduplicated generator functions

## Quality Gates

| Gate | Result |
|------|--------|
| MSAL CR Phase 1 (7 agents x 4 rounds) | Converged: 30 → 20 → 4 → 0 |
| MSAL CR Phase 2 (7 agents x 2 rounds) | Converged: 4 → 0 |
| Final MSAL CR (7 agents) | Converged |
| Aimock CR (7 agents) | 4 clean + 3 fixed |
| Unit tests (267) + Consistency (270) | 537 passing |
| Build validation (4 starters) | All pass |
| Drift detection (`--check`) | Pass |
| Playwright screenshots (33) | Visual verification pass |
| CI (16 checks) | ALL GREEN |

## Test plan

- [x] 537 vitest tests passing (generation script + starter consistency)
- [x] 4 starters build successfully (langgraph-python, ag2, mastra,
spring-ai)
- [x] Zero `@copilotkit/showcase-shared` imports in any demo page
- [x] All 17 manifest.yaml files have correct starter sections with
Railway domains
- [x] Drift detection: `npx tsx showcase/scripts/generate-starters.ts
--check` exits 0
- [x] 33 Playwright screenshots verified at 3 viewports
- [x] 37 aimock fixture rules cover all 9 demo types
- [x] CI: 16/16 checks green
- [x] E2e tests exercise real interactions (renderer switching, deal
creation, suggestion clicks)
- [ ] Aimock-backed e2e run via Docker (blocked by Node v25 local compat
— works in Docker)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-04-14 13:11:54 -07:00
Jordan Ritter d8d889aebf chore: remove dead demo-wrapper/error-boundary files, regenerate shell data
Remove orphaned demo-wrapper.tsx (1 file) and error-boundary.tsx (17 files)
that still imported from the deleted @copilotkit/showcase-shared.
Regenerate registry.json, demo-content.json, and starter-content.json.
2026-04-14 12:57:32 -07:00
Jordan Ritter 5ac07d4d9b feat: CI, shell, and aimock integration for showcase starters
CI:
- Add 17 starter services to showcase deploy workflow with Railway IDs
- Add drift detection workflow (triggers on starters, packages, scripts, shared)
- Remove shared_frontend copy step for starter builds

Shell:
- Update clone command to npx degit with clipboard fallback
- Update starter content bundler for full component tree + .java support
- Add clone_command to manifest schema and registry types

Aimock:
- Expand feature-parity.json from 18 to 37 fixture rules
- Add docker-compose.packages.yml for CI aimock sidecar (strict mode)
- Add run-e2e-with-aimock.sh convenience script
2026-04-14 12:52:52 -07:00
Jordan Ritter ee2d6eaae0 feat: generate all 17 standalone starter packages
Generated from template via showcase/scripts/generate-starters.ts.
Each starter is fully self-contained with Sales Dashboard + 5 renderers,
self-contained agent backend, per-language Dockerfile (non-root user),
and deterministic entrypoint with agent health checks.

Marked linguist-generated=true in .gitattributes.
2026-04-14 12:52:05 -07:00
Jordan Ritter 7012a7e07b feat: add starter template, generation script, and comprehensive test suite
Canonical template at showcase/starters/template/ with Sales Dashboard
hero page, 5 GenUI rendering strategies, per-language Dockerfiles
(non-root user, agent health checks), and self-contained agent backends.

Generation script at showcase/scripts/generate-starters.ts:
- Python sys.path.insert removal + relative import rewriting
- TypeScript shared-tools import rewriting
- Deterministic output (sorted devDependencies, stable file ordering)
- --check mode for CI drift detection
- Strict error handling (throws on missing required inputs)

537 tests: generation unit tests (transform functions, entrypoint blocks),
cross-starter consistency checks (270), Playwright e2e interaction tests
(renderer switching, deal creation, suggestion verification).
2026-04-14 12:51:44 -07:00