Skip to content

feat(showcase): feature port onto pre-existing Docker structure (no workspace restructure) - #4085

Merged
jpr5 merged 94 commits into
mainfrom
atai/2026-04-18/feature-port-no-docker-restructure
Apr 21, 2026
Merged

jpr5 merged 94 commits into
mainfrom
atai/2026-04-18/feature-port-no-docker-restructure

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Apr 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Sibling PR to #4084 — ports the same content evolution (feature-registry reshape, new cells, shell docs overhaul, shell-internal dashboard, agent backends) without the workspace/Docker restructure. Reviewers who find 4084's docker diff too large to digest can review this PR for the feature-level changes against the pre-existing per-column single-container layout.

  • Same content as 4084: new cells, new feature categories, ~70 new MDX docs pages, FrameworkProvider + strict-URL routing, shell-internal CommandCell + CellStatus chrome, declarative gen-UI BYOC 3-file catalog, canonical beautiful-chat tree.
  • Different scaffolding: keeps showcase/packages/<col>/Dockerfile + src/agents/*.py + src/app/demos/<cell>/page.tsx exactly as they are on main. No workspace root, no per-cell demos/<cell>/{backend,frontend}/ split, no respawning entrypoint, no per-cell docker-compose services.
  • Parity shim: bundle/manifest/validate-parity tooling updated to accept both demo locations behind a feature flag (MANIFEST_ALLOWS_DEMOS_AT_BOTH_LOCATIONS), so the two sibling PRs can land in either order.

What Changed

Feature registry & category reorder

  • New Dev Ex category with cli-start (informational cell — command: field).
  • Split legacy generative-ui into Controlled / Declarative / Open / Operational.
  • New cells (net): beautiful-chat, cli-start, interrupt-headless, reasoning-default-render, tool-rendering-reasoning-chain, hitl-in-app (In-App HITL with async-popup), frontend-tools-async (async useFrontendTool + query-notes pattern), open-gen-ui-advanced (renamed to emphasize frontend function calling), readonly-state-agent-context, prebuilt-chat, shared-state-read, shared-state-read-write (renamed from write).
  • Removed: prebuilt-chat (redundant with CopilotChat), declarative-gen-ui-hardcoded (testing-only), tool-rendering-frontend-tools ("Frontend Tools (Sync)" — replaced by Async variant).

Routing + docs shell

  • /docs routing overhaul with framework-scoped routes (/<framework>/...).
  • FrameworkProvider with strict-URL semantics; invalid slugs 404.
  • ~70 new MDX pages ported from 4084; then enriched with 4084's code examples in the built-in-agent tree where 4084 had richer per-variant snippets (e.g. prebuilt-components per-component code blocks).
  • <Snippet cell="…" region="…" /> + <InlineDemo …/> components.
  • /docs/built-in-agent renamed to /docs/unselected (matching 4084's repurposing of that route for the no-framework docs view); /<framework>/unselected/<path> 307-redirects to /<framework>/<path> since asserting both framework-selected AND unselected is incoherent.
  • @region[name] / @endregion[name] markers across cell .py/.tsx files (including route.ts files) so <Snippet> resolves.

Cells (LangGraph-Python column)

  • A2UI (both dynamic + fixed-schema): rewired using beautiful-chat's pattern — dedicated runtime endpoints with injectA2UITool: false, agent-owned explicit generate_a2ui tool, DynString = z.union([z.string(), z.object({ path: z.string() })]) for path bindings. Real KPI dashboard + flight cards render.
  • Open-Ended Gen UI + Advanced: replaced hardcoded copilotkit_manually_emit_tool_call with create_agent + openGenerativeUI: true runtime + sandbox-function bridges. Advanced variant renamed "Open-Ended Gen UI (Advanced: with frontend function calling)" with real evaluateExpression round-trip to host.
  • MCP Apps: Excalidraw MCP runtime config per beautiful-chat. Auto-registered activity renderer, no manual useRenderActivityMessage.
  • Beautiful Chat: full 28-file canonical tree ported from examples/integrations/langgraph-python/. Dedicated /api/copilotkit-beautiful-chat runtime combining openGenerativeUI + a2ui.injectA2UITool:false + mcpApps. Pie chart, flight booking, Excalidraw, and all 9 suggestion chips verified working end-to-end.
  • Agentic Generative UI (gen-ui-agent): rewritten with v1 useCoAgentStateRender hook + explicit AgentState { steps } schema. Backend now uses a LangChain Deep Agent (deepagents package) with a custom set_steps tool that mutates state (in-flight migration).
  • Reasoning cells (agentic-chat-reasoning, reasoning-default-render, tool-rendering-reasoning-chain): migration to Deep Agents underway, replacing the synthetic _ReasoningEmitterModel hack.
  • Frontend Tools (Async) (frontend-tools-async): new cell showing useFrontendTool with async handler that awaits a simulated DB query (500ms), returns a value the agent summarizes.
  • In-App HITL (hitl-in-app): new cell — async useFrontendTool whose handler opens an app-level modal OUTSIDE the chat; user decision fires a completion callback that resolves the Promise. Payment-confirmation pattern.
  • Tool Rendering frontend-tools stale-render: fixed — useFrontendTool v2 delivers result as a JSON string; added parseJsonResult<T>() helper matching the sibling cell.
  • a2ui-fixed-schema Book button: updates to "✓ Booked" after click (local useState in a custom Button renderer appended to the catalog, overriding the basic stateless Button).

Shell-internal dashboard

  • CommandCell for informational/CLI cells; CellStatus aggregating E2E/Smoke/QA/health.
  • DocsRow with per-integration docs-link overrides via Integration.docs_links.
  • Per-column Red/Green tally at each column header (✓ N · ✗ M) summing docs-og + docs-shell + E2E + Smoke + health across all rows in that column.

Docs-links pipeline

  • Ported 4084's loadDocsLinks() helper into generate-registry.ts + probe-docs.ts script + 16 packages/*/docs-links.json files.
  • Hallucinated entries audited + fixed: 41 bad links nulled or repointed (claude-sdk-typescript's entire /claude-sdk-typescript/* namespace didn't exist; crewai-crews pointed at crewai-flows which is a different product; pydantic-ai / strands / mastra had doubled-up framework prefixes in shell_docs_path; etc.). Final: 0 live 404s across ~365 link pairs.

Code viewer

  • Per-cell highlight: lists expanded (range per cell depends on core vs all). Slimmed to true pedagogical core (~20-40% ratio on large cells) so SHOW ALL FILES toggle actually reveals more files.
  • Fixed oneLight syntax-highlighter leak causing per-line gray rectangles ("text-selected" look) — unset <code> background so <pre> bg reads flat.

Tooling

  • bundle-demo-content.ts — strict highlight validation, @region[name] extraction, supports both 4085 and 4084 demo locations via parity shim.
  • probe-docs.ts — live-probes docs URLs into shell/src/data/docs-status.json.
  • generate-registry.ts — loadDocsLinks() merges per-column overrides into Integration.docs_links.
  • predev hook wires registry + status + probe + bundle regen for seamless dev start.

Path translation vs 4084

  • packages/<col>/demos/<cell>/backend/<agent>.py → packages/<col>/src/agents/<agent>.py
  • packages/<col>/demos/<cell>/frontend/src/app/page.tsx → packages/<col>/src/app/demos/<cell>/page.tsx
  • Per-cell API routes → shared src/app/api/copilotkit/route.ts + split runtimes src/app/api/copilotkit-{ogui,mcp-apps,beautiful-chat,declarative-gen-ui,a2ui-fixed-schema}/route.ts for cells that need different runtime config.

What's explicitly NOT ported from 4084

  • packages/<col>/pyproject.toml workspace root
  • packages/<col>/package.json workspaces field
  • packages/<col>/Dockerfile workspace rewrite
  • packages/<col>/entrypoint.sh respawn-loop
  • packages/<col>/demos/<cell>/{backend,frontend}/ folder structure
  • docker-compose.local.yml per-cell service entries
  • shared/local-ports.json cell-level entries
  • scripts/sync-lgp-ports.mjs

Validation

Ran many parallel agents across ~32 cells + 4 cross-cutting concerns (code-fidelity audit, interactive Playwright per-cell, side-by-side 4084-vs-4085 diff, docs-links live-probe). Every cell has been individually screenshot-verified (initial + response + multi-turn). Known failures from early passes (10 cells broken at various times) all resolved across the 69 commits.

Local validation setup

4085 runs on distinct ports + Docker namespace so it can coexist with 4084:

  • Shell: http://localhost:4010, shell-internal: http://localhost:4012, backend container: http://localhost:4100
  • Container name override: showcase-langgraph-python-4085 (via untracked showcase/docker-compose.override.yml)
  • Image tag override: showcase-langgraph-python-4085:local-4085
  • Compose project namespace: COMPOSE_PROJECT_NAME=showcase-4085

Gaps / Follow-ups

  • Deep Agents migrations for gen-ui-agent and the 3 reasoning cells are in-flight (replace synthetic-emitter hack + explicit backend state/tool pattern).
  • 16 untracked stub folders packages/<col>/src/app/demos/shared-state-read-write/ on non-langgraph columns from an earlier bundle-unblock pass — need cleanup decision.

Test Plan

  • pnpm test in showcase/scripts/ — 977/977 passing
  • bundle-demo-content.ts — bundles 150+ demos, all highlights resolve
  • generate-registry.ts — 31+ features, 11 categories
  • Python agent parse — all agents parse
  • Interactive Playwright per cell — green on all current cells
  • 0 live 404s across 365 docs link pairs
  • CI on push (pending)

🤖 Generated with Claude Code

ataibarkai and others added 18 commits April 18, 2026 05:46
Adds rows for the demos being built in this branch:

- Split `chat-prebuilt` into `prebuilt-chat`, `prebuilt-sidebar`,
  `prebuilt-popup` (CopilotChat / CopilotSidebar / CopilotPopup).
- Reorder `generative-ui` rows and add: `hitl-in-chat` (In-Chat HITL),
  `gen-ui-interrupt`, `declarative-gen-ui` (Dynamic Schema),
  `a2ui-fixed-schema` (new), `mcp-apps`, `open-gen-ui`, `gen-ui-agent`,
  `tool-rendering`.
- `constraints.yaml`: expand `constrained-explicit` allowlist so the
  langgraph-python manifest validates against the new feature ids.
- Bump expected langgraph-python feature/demo count in
  `generate-registry.test.ts` from 10 -> 22 to match the manifest.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…for demo fleet

- manifest.yaml: add 12 new demo entries (chat-slots, headless-simple,
  headless-complete, agentic-chat-reasoning, hitl-in-chat,
  gen-ui-interrupt, declarative-gen-ui, a2ui-fixed-schema, mcp-apps,
  open-gen-ui, prebuilt-chat/sidebar/popup).
- langgraph.json: register dedicated graphs for demos that need a
  non-default backend (tool_rendering, interrupt_agent, reasoning_agent,
  a2ui_dynamic, a2ui_fixed, mcp_apps, open_gen_ui).
- route.ts: register each new agent name; demos with dedicated graphs
  are mapped explicitly outside the shared-graph loop. A2UI runtime
  middleware scoped to `declarative-gen-ui` + `a2ui-fixed-schema` so
  non-A2UI demos keep their `useComponent` renderers intact. MCP Apps
  middleware wraps only the `mcp-apps` agent and synthesizes an
  `ACTIVITY_SNAPSHOT` event when the backend `show_mcp_app` tool fires.
- New `/api/copilotkit-ogui/route.ts`: dedicated isolated runtime for
  the `open-gen-ui` demo. `openGenerativeUI: {...}` advertises the
  `openGenerativeUIEnabled` flag globally on the probe response, which
  causes the CopilotKit provider's setTools effect to wipe per-demo
  `useFrontendTool`/`useComponent` registrations; isolating to its own
  endpoint keeps the default runtime clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Minimal demo pages covering the Chat & UI category:

- `agentic-chat/page.tsx` — stripped to pure chat (CopilotKit +
  CopilotChat, single "Write a sonnet" suggestion). No tool calls.
- `chat-slots/page.tsx` — three slot overrides: custom welcome screen,
  custom disclaimer (input sub-slot), and a custom assistant message
  bubble so the slot is visible during active chat.
- `headless-simple/page.tsx` — bare-bones custom chat built on
  `useAgent` (no CopilotChat) + a single `useComponent` for inline
  card rendering.
- `headless-complete/page.tsx` — fuller custom chat: scrollable
  message list, user/assistant bubbles, auto-scroll, disabled state
  while running, inline tool-call rendering, cancel button.
- `agentic-chat-reasoning/page.tsx` — custom `messageView.reasoningMessage`
  slot renders an amber "Reasoning" block when the agent emits
  `role: "reasoning"` messages.
- `prebuilt-chat/page.tsx` — minimal `<CopilotChat />`.
- `prebuilt-sidebar/page.tsx` — dummy main content + `<CopilotSidebar />`
  (defaultOpen).
- `prebuilt-popup/page.tsx` — dummy main content + `<CopilotPopup />`
  (defaultOpen).

Each outer function wraps provider + layout; inner `Chat` holds only
the registrations for that demo's feature. No cross-contamination
(no a2ui/HITL/interrupt/tool-rendering in demos that don't demonstrate
them).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ends

Minimal frontends + minimal dedicated langgraph graphs for each
Generative UI / interactivity demo:

- `hitl-in-chat/` — `useHumanInTheLoop` confirm-destructive-action
  flow; shared `sample_agent`.
- `gen-ui-interrupt/` + `interrupt_agent.py` — `ask_confirmation` tool
  that calls langgraph `interrupt()`; frontend uses `useInterrupt` with
  `renderInChat: true`.
- `declarative-gen-ui/` + `a2ui_dynamic.py` — emits A2UI `a2ui_operations`
  at runtime; frontend uses `createA2UIMessageRenderer`.
- `a2ui-fixed-schema/` + `a2ui_fixed.py` — `search_flight` tool emits
  A2UI ops against a client-side fixed `FlightCard` catalog.
- `mcp-apps/` + `mcp_apps_agent.py` — `show_mcp_app` stub tool; the TS
  `MCPAppsStubMiddleware` in route.ts synthesizes the activity + handles
  the `__proxiedMCPRequest` round-trip with a pre-baked HTML resource.
- `open-gen-ui/` + `open_gen_ui_agent.py` — dispatches
  `copilotkit_manually_emit_tool_call` for `generateSandboxedUi`;
  frontend uses `openGenerativeUI` runtime config on the isolated
  `/api/copilotkit-ogui` endpoint.
- `gen-ui-agent/page.tsx` — `useAgent` + `messageView.children` slot;
  inline agent-state card between messages and interrupts.
- `tool-rendering/page.tsx` + `tool_rendering_agent.py` — `get_weather`
  backend tool; `useRenderTool` renders a weather card inline.
- `reasoning_agent.py` — dedicated graph that manually streams a
  reasoning chunk via a synthetic `BaseChatModel` before delegating to
  gpt-4o-mini, so the v2 `messageView.reasoningMessage` slot populates
  reliably regardless of the underlying model.

Each demo touches only its own feature's hooks/components.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Generated via `generate-registry.ts` and `bundle-demo-content.ts` from
the new manifest + feature-registry + demo sources.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
These 7 feature ids had zero manifest references, zero demo dirs, and
zero matching packages backing them in the showcase. They added noise
to the feature matrix without carrying substance:

- mobile-react-native
- mobile-swiftui
- mobile-android
- web-svelte
- web-vue
- web-tanstack — conceptually misplaced anyway; TanStack Start is a
  React meta-framework, not a React alternative
- web-angular — `packages/angular/` exists as a published SDK, but the
  showcase has zero integration for it. Angular support is really its
  own matrix/story; removing this placeholder row until there's a real
  showcase integration.

Also drops the `mobile` and `web-frameworks` categories now that they
have no members. Regenerates registry.json + constraints.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Move `agentic-chat-reasoning` from `chat-ui` category to
  `generative-ui`, positioned after `tool-rendering`.
- Rename display "Agentic Chat (Reasoning)" -> "Reasoning".
- Update langgraph-python manifest demo entry's name, description,
  and tag to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Parallel review subagents each need a fresh
showcase-langgraph-python build to screenshot. Running
`dev-local.sh up langgraph-python` N times in parallel serializes on
Docker and wastes time rebuilding identical source.

`scripts/agent-notes/rebuild-coord.sh` aligns rebuild attempts to a
30-second clock tick with 0-5s jitter. First agent on a tick acquires
a `mkdir`-based lock, rebuilds, and writes a per-tick done marker at
`/tmp/showcase-rebuild.done-<tick>`. Peers on the same tick skip their
own build and wait up to 30s for that marker. If no marker appears,
they retry the next tick (up to 3 ticks).

Agents call `bash scripts/agent-notes/rebuild-coord.sh` instead of
`./scripts/dev-local.sh up langgraph-python` when they need the live
container refreshed.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Review pass across all 18 langgraph-python demo columns. For each
demo, verified strict minimality (no cross-contamination from other
features) and extracted any inline view JSX >= 15 lines into dedicated
sibling files. All 18 demos validated end-to-end via Playwright
screenshot + visual review.

View components extracted to dedicated files:

- `a2ui-fixed-schema/flight-card.tsx` + `catalog.ts`
- `agentic-chat-reasoning/reasoning-block.tsx`
- `chat-slots/custom-welcome-screen.tsx`, `custom-assistant-message.tsx`,
  `custom-disclaimer.tsx`
- `gen-ui-agent/InlineAgentStateCard.tsx`
- `gen-ui-interrupt/InterruptCard.tsx`
- `headless-complete/message-list.tsx`, `user-bubble.tsx`,
  `assistant-bubble.tsx`, `input-bar.tsx`, `typing-indicator.tsx`
- `hitl-in-chat/approval-card.tsx`
- `open-gen-ui/sandbox-functions.ts`, `suggestions.ts`
- `tool-rendering/weather-card.tsx`

Backend fixes:

- `mcp_apps_agent.py`: tighten system prompt to prevent the LLM from
  hallucinating unrelated framework names in its reply.
- `open_gen_ui_agent.py`: short-circuit subsequent runs when a
  `ToolMessage` is already in state. `generateSandboxedUi` is
  registered with `followUp: true` by the provider, which caused the
  agent to re-emit the tool call in a loop after each sandbox handler
  response.

`agentic-chat/README.md`: removed stale references to tools that no
longer exist in the minimized demo.

Regenerated `shell/src/data/demo-content.json`.

Each demo's page.tsx is now pure composition; presentational code lives
in dedicated sibling files. Zero cross-contamination between demos
(audited via grep for forbidden-feature imports).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Problem: shell's /code viewer was showing every `.py` file under
`src/agents/` for every demo of a package. Visually contaminating:
opening gen-ui-tool-based (Controlled Gen-UI Display) showed
a2ui_dynamic, a2ui_fixed, mcp_apps_agent, open_gen_ui_agent,
reasoning_agent, interrupt_agent, and tool_rendering_agent in the
file picker even though none of them are relevant to that demo.

Root cause: `bundle-demo-content.ts` ran `discoverBackendFiles()` once
per package and attached the same union of all agent files to every
demo. This was fine when all demos shared one graph, but since we
split demos into dedicated graphs the bundle stopped matching reality.

Fix:
- `manifest.schema.json`: add optional `backend_files` field per demo
  (string array, paths relative to the package root).
- `bundle-demo-content.ts`: when `demo.backend_files` is present, bundle
  exactly those. Otherwise fall back to the legacy full-package scan
  so packages that haven't adopted the field still work as before.
- `langgraph-python/manifest.yaml`: populate `backend_files` for every
  demo. Each demo bundles `src/agent_server.py` plus only the agent
  file its graph routes to (main.py for shared-graph demos;
  reasoning_agent.py / interrupt_agent.py / a2ui_dynamic.py /
  a2ui_fixed.py / mcp_apps_agent.py / open_gen_ui_agent.py /
  tool_rendering_agent.py for demos with dedicated graphs).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Each grid cell now renders a two-row readiness rollup:

  demo · code
  E2E ✓  Smoke ✓  QA 3d  ● up

Signals:
- E2E / Smoke — pass/fail + freshness (green <6h, amber older, red fail
  or no suite, gray when bundle itself is stale)
- QA — days since human sign-off (green <7d, amber <30d, red otherwise
  or never)
- Health — live probe dot (up/down/unknown)

Cells with no demo show a single centered ✗ (unsupported) or `—`
(supported but no demo yet). Client-side staleness check: if
`status.json.generated_at` is older than 24h, every signal degrades
to a gray `?` and the header shows a stale-bundle warning — so a
failed cron visibly announces itself instead of silently serving
green badges.

Data layer (`src/lib/status.ts`) is a single source of truth for the
badge color/label logic. The cell component is pure presentation.

Status data is currently mock (deterministic per slug+demo) so the
visuals can be reviewed; the CI/Notion/health-probe pipeline that
writes the real `status.json` is out of scope for this commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- New `scripts/generate-status.ts` — probes every
  `integration.backend_url + demo.route` in parallel (~166 URLs) and
  writes health status per demo to `shell/src/data/status.json`. E2E,
  Smoke, and QA stay mock with explicit `TODO(wire-*)` comments; real
  readers for those ingest from `showcase_aimock-e2e.yml`,
  `showcase_smoke-monitor.yml`, and `showcase_qa-sync.yml` later.
  `GENERATE_STATUS_MOCK_HEALTH=1` offline override for dev.
- Health badge in the feature-matrix cell is now clickable — opens the
  hosted URL (`integration.backend_url + demo.route`) in a new tab,
  with a tooltip noting the last probe time + status.
- Ran the probe once against Railway: 10/22 langgraph-python demos up
  (pre-merge features), 12/22 down (new demos on this branch, not yet
  deployed). Other 16 integrations fully live.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…l routes

To support exhaustive E2E testing via multiple variants per feature ×
framework, extend the status model with an optional `variants[]` array
per demo (each variant has the same demo/code/E2E/Smoke/QA/health
breakdown) and mount five different visual treatments so we can compare
side-by-side before committing to one:

- `/variants-stack`      — each variant rendered as its own mini-row
                           in the cell; tall cells, all info visible.
- `/variants-tabs`       — tabs at the cell top, click to switch
                           variant; cell stays compact.
- `/variants-aggregate`  — pass/total rollups per signal +
                           "N variants ▾" expand button to drill down.
- `/variants-grid`       — mini-matrix: rows = variants, cols =
                           demo/code/E2E/Smoke/QA/health.
- `/variants-strip`      — one colored chip per variant per signal;
                           hover chip for variant name, click for URL.

Refactor: the grid chrome moves to `components/feature-grid.tsx`
(accepts a `renderCell` callback). Main `/` keeps the existing
single-variant layout via `components/cell-single.tsx`. Shared badge /
links helpers live in `components/badges.tsx` and
`components/variant-pieces.tsx`.

Mock variant data is seeded on 4 demos (langgraph-python's
agentic-chat, gen-ui-tool-based, hitl-in-chat; langgraph-typescript's
agentic-chat) so each option shows variants in context alongside
ordinary cells.

Variant-specific deep links append `?variant=<name>` to the shell
preview / code / hosted URLs — the shell routes can pick that up
later to highlight variant-specific files or payloads.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Split generative-ui category into 4 (controlled/declarative/open/
operational), add chat-customization-css + tool-rendering-frontend-tools,
replace old tool-rendering-status/-result IDs with default-catchall /
custom-catchall. Port langgraph-python manifest features + highlight:
paths (column-relative to preserve pre-existing Docker structure).
Update tests for new category/feature counts.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- a2ui_fixed: load schemas from JSON via a2ui.load_schema (schemas in
  src/agents/a2ui_schemas/); adds search_flight tool with airline + price
- a2ui_dynamic: secondary-LLM bind_tools([render_a2ui], tool_choice=...)
  pattern; primary LLM only decides when to render
- tool_rendering_agent: expand to 4 mock tools (get_weather, search_flights,
  get_stock_price, roll_dice) — shared by all 3 tool-rendering variants
- interrupt_agent: port schedule_meeting(topic, attendee) time-picker
  interrupt payload

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…g, HITL time-picker, A2UI

- tool-rendering: per-tool WeatherCard + FlightListCard + wildcard
  CustomCatchallRenderer (primary variant of 3)
- NEW tool-rendering-default-catchall: no frontend renderers, relies on
  CopilotKit's built-in default catch-all
- NEW tool-rendering-custom-catchall: single wildcard renderer via
  useDefaultRenderTool
- NEW tool-rendering-frontend-tools: useFrontendTool defines get_weather
  client-side; render callback uses `args` (not `parameters`)
- NEW chat-customization-css cell: page.tsx + scoped theme.css
- hitl-in-chat: time-picker-card.tsx + page.tsx using useHumanInTheLoop
  with book_call + topic/attendee args
- gen-ui-interrupt: time-picker-card.tsx + page.tsx using useInterrupt
  against the schedule_meeting interrupt payload
- a2ui-fixed-schema: update page.tsx comment to point at new backend
- Delete old hitl/ folder
- Update api/copilotkit/route.ts to register new agent names

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Shell /code viewer now builds a recursive file tree with core-only
  (★ highlighted) and show-all-files toggle via ?view=all; collapses the
  legacy flat files + backend_files arrays into one tree
- bundle-demo-content: strict mode — errors on missing highlight paths;
  drop backend_files field; pull in external backend files referenced
  by highlight: (column-relative paths) alongside demo-folder contents;
  stable page-first ordering
- Update tests to reflect new column-relative filename shape

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Pick up the split generative-ui categories, new cells (chat-customization-css,
tool-rendering-default/custom-catchall, tool-rendering-frontend-tools), and
the flat `files` shape (backend files merged in from manifest highlight:).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@vercel

vercel Bot commented Apr 19, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment Apr 20, 2026 4:45am
docs Ready Ready Preview, Comment Apr 20, 2026 4:45am
form-filling Ready Ready Preview, Comment Apr 20, 2026 4:45am
research-canvas Ready Ready Preview, Comment Apr 20, 2026 4:45am
travel Ready Ready Preview, Comment Apr 20, 2026 4:45am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

…ork, wrong shell path)

Prior 4085 port blindly copied 4084 docs-links.json patterns, producing many
entries that pointed at wrong-framework docs (e.g. crewai-crews → crewai-flows),
nonexistent shell paths (e.g. /claude-sdk-typescript/... prefix doubled into
/claude-sdk-typescript/claude-sdk-typescript/...), or the wrong field name
(mastra used `shell_docs_url` with absolute http://localhost:3000 URLs).

Audit against live docs.copilotkit.ai and the 4085 shell at :4010 surfaced:
- 9 og_docs_url 404s (8 on claude-sdk-typescript under a nonexistent
  /claude-sdk-typescript/* slug, 1 on /ag2/multi-agent/subagents)
- 24 shell_docs_path 404s (8 claude-sdk-typescript, 6 pydantic-ai, 4 strands,
  4 mastra, 2 langgraph-python)
- crewai-crews pointing entirely at /crewai-flows/... (different product)

Fix: point each entry at a real docs.copilotkit.ai page scoped to the correct
framework OR null it out; normalize shell_docs_path to leading-slash form
that composes with the DocsRow `${shellUrl}/${slug}/unselected${path}` scheme;
null google-adk shell paths (no google-adk-scoped shell docs exist, better to
show ✗ than mislead). Regenerated registry + docs-status bundles.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ataibarkai and others added 25 commits April 19, 2026 16:31
…mal deep agents

Replace the synthetic _ReasoningEmitterModel + hand-rolled StateGraph
scaffolding in reasoning_agent.py and tool_rendering_reasoning_chain_agent.py
with minimal create_deep_agent graphs (mirrors gen_ui_agent). Drops ~340
lines of custom graph wrappers / synthetic reasoning emitters while
keeping the four mock tools (get_weather, search_flights, get_stock_price,
roll_dice) intact for the tool-rendering-reasoning-chain cell.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…re-port-no-docker-restructure

# Conflicts:
#	showcase/scripts/__tests__/bundle-demo-content.test.ts
#	showcase/scripts/lib/manifest.ts
#	showcase/scripts/validate-parity.ts
…explicit state + tool

Rewrites the gen-ui-agent demo as a minimal deepagents-powered agent that
defines its own `GenUiAgentState` schema (extending langchain's AgentState)
and exposes a custom `set_steps` tool. The tool returns Command(update=...)
to mutate the typed `steps: list[Step]` field, and a one-line middleware
registers the extended schema with deepagents. A last-wins reducer on
`steps` tolerates concurrent tool calls.

No StateGraph, no copilotkit_emit_state, no TodoListMiddleware - the pattern
mirrors how real applications extend deepagents with domain state.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…le inclusion

<Snippet> now supports a second lookup mode alongside the existing
region="..." marker: file="..." lines="A-B" pulls a line range (or
the whole file when lines is omitted) from any file in the cell's
bundled files[]. Region lookup wins when both are passed, preserving
all existing call sites.

Parses dash ("10-20"), en-dash, and single-line ("12") ranges.
Surfaces the same graceful WarningBox on missing files / bad ranges
as the region path.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…per-component sub-pages

- Rewrite overview to present the 4-level customization ladder (drop-in →
  CSS → slots → headless), with a 2x2 card grid linking out to each rung.
- Add a new chat.mdx sub-page for CopilotChat with intro, InlineDemo,
  the CopilotChat GIF, provider-setup snippet, and the standard code
  example from docs.copilotkit.ai.
- Reorder meta.json to chat → sidebar → popup.
- Add gif embeds to sidebar.mdx and popup.mdx (matching docs.copilotkit.ai).
- Point stale /prebuilt-components cross-links at the new
  /prebuilt-components/chat page.
- Align unselected/prebuilt-components.mdx with the ladder framing.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ponents), align unselected tree

- Reorder meta.json so CSS is the first sub-page (easiest rung of the
  customization ladder), then Slots, Headless UI, Reasoning Messages.
- Retitle slots.mdx frontmatter to "Slots (Subcomponents)" so the sidebar
  nav reads the user-facing term people actually search for.
- css.mdx: demonstrate the new file+lines Snippet by pulling the
  user/assistant bubble block straight from the cell's theme.css.
- headless-ui.mdx: expand from a bare IntegrationGrid stub into a full
  page with minimal + complete examples, the three core hooks, and
  Snippet pulls from both headless-simple and headless-complete cells.
- Mirror the css/slots changes into unselected/custom-look-and-feel/ so
  the framework-agnostic tree stays in step (add css.mdx, reorder
  meta.json, retitle slots nav).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
gen-ui-interrupt and hitl-in-chat both render an interactive time-picker
inline in the chat, but via different API layers:

- gen-ui-interrupt -> useInterrupt (low-level primitive)
- hitl-in-chat -> useHumanInTheLoop (ergonomic wrapper)

Rename to make the dashboard row label reflect the API distinction.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… CopilotKit brand

Apply the verified CopilotKit brand palette (lilac #BEC2FF, mint #85ECCE,
near-black #010507, neutral greys) across every custom-defined component in
the langgraph-python cells. Replaces ad-hoc indigo/purple/amber/slate
Tailwind classes with brand tokens, softens corners (rounded-xl/2xl),
switches shadow-lg to shadow-sm, and normalises pill/label styling to
10-11px uppercase tracking-wider.

Preserves all component props, data-testid attributes, and @region markers.
Beautiful-chat (reference) is untouched.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…tive UI

Reorders gen-ui-agent (Agentic Generative UI / In-Chat State Rendering)
to appear AFTER Reasoning (Default Render) in the Operational
Generative UI category, per user preference.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…art + BarChart in a2ui_dynamic system prompt

The PieChart + BarChart renderers were added in 8be8182 as part of the
brand-polish pass, but the a2ui_dynamic agent's system prompt was still
only mentioning dashboards/status/KPIs. Expand the prompt to enumerate
the registered catalog (Card, StatusBadge, Metric, InfoRow, PrimaryButton,
PieChart, BarChart) and name when each chart fits — so the LLM reliably
reaches for PieChart on part-of-whole breakdowns and BarChart on
cross-category comparisons.

Validated on port 4100 with Playwright: "Show a pie chart of sales by
region" renders a brand-coloured donut with legend + percentages, and
"Render a bar chart of quarterly revenue" renders a polished Recharts bar
chart with tooltip. No "Unknown component" errors.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… bridge round-trip

The sandboxed iframe runs with `sandbox="allow-scripts"` only, so a
`<form>` with `<button type="submit">` had its submit blocked by the
browser BEFORE the onsubmit handler could call `e.preventDefault()` —
which meant `Websandbox.connection.remote.evaluateExpression(...)`
never fired. The agent also read `res.result` while the host handler
returns `{ ok, value }`.

Tightened the system prompt and per-suggestion prompts to explicitly
forbid `<form>` / `type="submit"` and to steer the LLM toward the
handler's exact return shape (`res.value` / `res.error`). Validated
end-to-end via Playwright: both `evaluateExpression` and `notifyHost`
now round-trip with visible results in the sandbox UI.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… nested <p> hydration error

MDX wraps inline text inside HTML elements in <p> tags. Using <p> as
the outer wrapper for each card's description causes <p><p>text</p></p>
which breaks hydration. Switch to <div> as the outer wrapper.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…leware + direct state_schema

`create_deep_agent` does not accept `state_schema=` as a kwarg (confirmed
against the installed signature; state schema is only pluggable via
middleware). The minimal state-extending middleware is kept but renamed
to `_GenUiStateMiddleware` with a comment pinning its one purpose, and
`CopilotKitMiddleware` is added so this cell matches every other
langgraph-python cell.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The per-kickoff `agent.setMessages([])` call was racing with the
subsequent `addMessage` + `runAgent` pair, causing the second run
attempt to silently not dispatch (connection-refused on resume in some
timings). Drop the reset — rely on the fresh langgraph thread that each
`runAgent` implicitly produces, and on the existing `runId` marker to
gate ResultCard visibility so the stale result doesn't flash under the
button mid-run.

Validated: initial → modal → result → re-click → modal appears again,
all without a page refresh.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ion suggestions + rich prompt guidance

Replaces the generic greeting-card / Pomodoro / revenue-chart suggestions
on the Fully Open-Ended Generative UI (minimal) cell with a set tuned for
intricate, educational visualisations: 3D airplane pitch/yaw/roll, a
feed-forward neural network's forward pass, quicksort, and a Fourier
series square-wave build-up.

Uses the provider's `openGenerativeUI.designSkill` prop (which injects
agent context for the built-in `generateSandboxedUi` tool) to swap in a
visualisation-tuned authoring prompt in place of the default shadcn
design language — covering SVG/canvas geometry, CSS keyframe motion,
mandatory labels + legends + callouts, a semantic palette (indigo /
emerald / amber / rose / slate), typography scale, and the self-running
constraint for the minimal cell. Agent system prompt updated in parallel
so the LLM knows the cell's focus and contract up-front.

Advanced variant untouched.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… guidance

Rewrites the mcp-apps agent system prompt from a minimal "call a tool and
populate the canvas" instruction into a detailed Excalidraw-aware
playbook. Adoptions:

- Workflow: instructs the agent to call `read_me` first (the Excalidraw
  MCP server's own format reference) before `create_view`, and to use
  `restoreCheckpoint` for follow-up edits.
- Layout principles: left-to-right vs. top-down vs. hub-and-spoke,
  3-7 node target, consistent sizing (160x70 rectangles, 120x80
  diamonds) and spacing (40-80px gutters, 60-120px viewport padding).
- Camera framing: opening `cameraUpdate` with a 4:3 size (400x300 →
  1600x1200), optional mid-diagram pans, and a REQUIRED final
  cameraUpdate that re-frames the whole diagram (otherwise the Excalidraw
  animation camera ends zoomed on the last-drawn element).
- Labels: prefer `label: {text, fontSize}` on shapes/arrows (auto-centers,
  auto-resizes) over bare `text:` fields (which Excalidraw silently
  ignores on rectangles).
- Arrow bindings via `fixedPoint` edge anchors rather than hand-placed
  coordinates; dashed stroke for async/optional paths; short label
  annotations on decision transitions.
- Palette discipline: draws from the read_me palette (pastel fills +
  primary strokes), caps at 3-4 background colors per diagram, assigns
  them semantically (blue=frontend, green=success, yellow=decision,
  red=error).
- Progressive emission order so the draw-on animation tells a story
  (zone → shape → its label → its outgoing arrows → next shape), with
  decorations last.

Also upgrades the model from gpt-4o-mini to gpt-4.1 because Excalidraw
element emission is structured/coordinate-heavy and a smarter model
produces visibly cleaner layouts (aligned nodes, edge-bound arrows,
labeled shapes) in practice.

Before: 3 colored boxes with no text (bare `text:` field silently
dropped), arrows ending on shape centers, no camera framing, no title.
After: 3 labeled boxes with consistent palette, edge-bound arrows with
transition labels, title text, cameraUpdate framing the diagram, and
the agent correctly consults `read_me` once per conversation for the
authoritative format reference.

Progressive streaming (Part 2 of the ask) was investigated and flagged
as shared-package-bound: `@ag-ui/mcp-apps-middleware` emits a single
`ACTIVITY_SNAPSHOT` only AFTER `RUN_FINISHED`, so there are no partial
tool-input events to consume in the cell. The Excalidraw MCP server does
animate elements in order once the full input arrives, which gives the
visual impression of progressive drawing without runtime changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…b-pages

Convert unselected/prebuilt-components.mdx single-file into a folder
matching the main /docs/prebuilt-components/ structure:
  index.mdx, chat.mdx, sidebar.mdx, popup.mdx, meta.json

This way the nav builder creates a GROUP with CopilotChat /
CopilotSidebar / CopilotPopup children in the Built-in Agent sidebar
section, not just a single page link.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…e chat + empty-app-pane popup

Restructure the headless-interrupt cell so the app surface is empty by
default and the popup appears there (not inside the chat or as a global
modal) when the backend calls `interrupt()`. The user triggers the run
from a pre-built suggestion chip in the right-hand `CopilotChat`, which
mirrors the other in-app-action demos (hitl-in-app, gen-ui-interrupt).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…t (target <30s generation)

Drops the aspirational 185-line prompt (read_me preflight, multi-call
iteration, palette discipline, zone backgrounds, label/fixedPoint rules,
opening+mid+final cameraUpdates) in favor of a ~35-line shape that biases
the agent toward exactly one create_view call with 3-5 elements and a
single framing cameraUpdate. Downgrades gpt-4.1 → gpt-4o-mini since the
element schema is simple JSON and model latency dominates end-to-end time.

Measured end-to-end (agent/run SSE to RUN_FINISHED) on the showcase
runtime: 5-6s per prompt across two prompts × two runs, all producing a
single create_view call with 8 elements (clean 3-step flowchart;
client/server/db diagram). Previously 3-5 minutes.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…re-port-no-docker-restructure

# Conflicts:
#	.github/workflows/showcase_deploy.yml
…ters

Post-merge CI caught two regressions:

1. shared-state-read-write demo directories were on disk but never
   committed — 16 packages' manifests reference the demo but the
   page.tsx scaffolds weren't tracked. This failed validate-parity,
   bundle-demo-content tests, and drift-check transitively.

2. langgraph-python starter templates drifted after main added
   docstring region markers to weather-tool-backend; regenerating
   via `npx tsx generate-starters.ts` syncs the 17 starters.

Bundle (showcase/shell/src/data/demo-content.json) regenerated to
pick up the new demo content.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ssing-dir check

The auditableDemos filter (introduced for cli-start's informational
`command:` entry) was applied to the spec/qa SHOULD checks but not
the missing-demo-dir MUST check. Result: cli-start in langgraph-python's
manifest triggered a false missing-dir failure even though it has no
on-disk folder by design.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
I added it to the matrix in c3d105a but the corresponding
examples/integrations/test-integration-tmp/ directory was never
created on this branch — the job fails on every PR run with
"No such file or directory".

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

This branch was successfully deployed

5 active deployments
Preview – research-canvas — f4d4e638 Deployed Apr 20, 2026 by vercel[bot]
Preview – travel — f4d4e638 Deployed Apr 20, 2026 by vercel[bot]
Preview – docs — f4d4e638 Deployed Apr 20, 2026 by vercel[bot]
Preview – form-filling — f4d4e638 Deployed Apr 20, 2026 by vercel[bot]
Preview – chat-with-your-data — f4d4e638 Deployed Apr 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants