Files
copilotkit__copilotkit/showcase/shared/constraints.yaml
Tyler Slaton 70e2fb13c8 refactor(showcase): rename byoc-* slugs to declarative-* + sort index by manifest features
User-facing renames so the showcase reads the way a cold visitor would
expect:

- `byoc-hashbrown` → `declarative-hashbrown` (and `byoc-json-render` →
  `declarative-json-render`). The display titles already said
  "Declarative UI: …"; only the URL slugs and folder paths still
  leaked the internal BYOC ("Bring Your Own Components") jargon.
  Renamed:
    /demos/byoc-hashbrown          → /demos/declarative-hashbrown
    /demos/byoc-json-render        → /demos/declarative-json-render
    /api/copilotkit-byoc-*         → /api/copilotkit-declarative-*
    src/app/demos/byoc-*           → src/app/demos/declarative-*
    qa/byoc-*.md                   → qa/declarative-*.md
    tests/e2e/byoc-*.spec.ts       → tests/e2e/declarative-*.spec.ts
  Internal Python module names + langgraph graph IDs stay legacy
  (`byoc_hashbrown_agent.py`, `byoc_hashbrown`) — those are not
  user-facing and renaming them is a separate cross-codebase pass.
- `a2ui-fixed-schema` slug intentionally unchanged.
- Tool Rendering trio parenthetical rename (Default → Catch-all →
  Custom progression reads clearly as "how much do I customize?"):
    Tool Rendering (Default)        — unchanged
    Tool Rendering (Custom default) → Tool Rendering (Catch-all)
    Tool Rendering (Specific)       → Tool Rendering (Custom)
- `tool-rendering-reasoning-chain` cell renamed from
  "Generative UI: Rendering multiple tools" to
  "Generative UI: Tool calls + reasoning" (the demo is about combining
  reasoning + tool rendering, not about quantity of tools).
- `Open Generative UI: Default` / `Open Generative UI: Custom`
  descriptions expanded so a visitor understands how Open Generative UI
  differs from Tool Rendering (agent composes UI from a registered
  library vs. attaching a renderer to a *named* backend tool).
- Showcase index now sorts demos within each tag by `manifest.features`
  order. Previously demos appeared in manifest declaration order, which
  ignored the team's curated "polished flagship → simplest start →
  variants" arc.

Cross-cutting registry / harness / dashboard updates that fall out of
the rename:

- `shared/feature-registry.json` adds the two new IDs alongside the
  legacy `byoc-*` (so the catalog stays valid; the other 17
  integrations still declare `byoc-*` in their manifests).
- `shared/constraints.yaml` adds the new IDs to the
  generative-ui-approach allow-list.
- `scripts/__tests__/generate-catalog.test.ts` updates the cell-count
  expectations (45 features × 18 integrations = 810; 792 after docs-
  only exclusion; 45 LGP cells = 38 wired + 1 stub + 6 unshipped).
- Harness probe `d5-byoc.ts` + `d5-byoc.test.ts` now route both slug
  families through `preNavigateRoute` and exercise the new branches.
- `d5-feature-mapping.ts` and `shell-dashboard/live-status.ts` mirror
  the dual-ID mapping so both legacy and renamed slugs roll up under
  the same `byoc` D5 featureType.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 15:16:02 -07:00

88 lines
2.1 KiB
YAML

# Constraint tables for the Showcase Decision Tree.
# Generative UI: allowlist-based (demo must appear in `allowed` list)
# Interaction Modality: denylist-based (all allowed unless in `excluded` list)
generative_ui:
constrained-declarative:
allowed:
- beautiful-chat
- cli-start
- agent-config
- agentic-chat
- chat-customization-css
- tool-rendering-default-catchall
- tool-rendering-custom-catchall
- frontend-tools
- frontend-tools-async
- gen-ui-tool-based
- useComponent
- multimodal
- suggestions
- shared-state-read-write
- readonly-state-agent-context
- shared-state-streaming
- subagents
- voice
- auth
excluded:
- tool-rendering
- hitl-in-chat
- hitl-in-app
- gen-ui-interrupt
constrained-explicit:
allowed:
- beautiful-chat
- cli-start
- agent-config
- agentic-chat
- chat-customization-css
- tool-rendering-default-catchall
- tool-rendering-custom-catchall
- tool-rendering-reasoning-chain
- agentic-chat-reasoning
- reasoning-default-render
- reasoning-default
- reasoning-custom
- prebuilt-sidebar
- prebuilt-popup
- chat-slots
- headless-simple
- headless-complete
- frontend-tools
- frontend-tools-async
- gen-ui-tool-based
- gen-ui-interrupt
- interrupt-headless
- gen-ui-agent
- hitl-in-chat
- hitl-in-chat-booking
- hitl-in-app
- hitl
- declarative-gen-ui
- a2ui-fixed-schema
- mcp-apps
- tool-rendering
- useComponent
- multimodal
- suggestions
- shared-state-read-write
- shared-state-read
- readonly-state-agent-context
- shared-state-streaming
- subagents
- voice
- auth
- byoc-hashbrown
- byoc-json-render
- declarative-hashbrown
- declarative-json-render
- open-gen-ui
- open-gen-ui-advanced
interaction_modalities:
headless:
excluded:
- voice
# sidebar, embedded, popup, chat: no exclusions