Skip to content

Commit bbe128c

Browse files
committed
fix(showcase): repair langgraph-python manifest highlight paths and bump test snapshots
Three highlight paths in langgraph-python's manifest pointed at files that don't exist after the PR CopilotKit#4694 reorganization: - hitl-in-chat → src/agents/hitl_in_chat.py (actually hitl_in_chat_agent.py) - chat-slots → custom-welcome-screen.tsx (file doesn't exist; use slot-wrappers.tsx) - mcp-apps → copilotkit-mcp-apps/route.ts (actually .../[[...slug]]/route.ts) The bundler walks every highlight at build time; one missing path aborts the whole CI step. Fix all three. Test snapshot counts in generate-catalog and generate-registry hardcoded 40 features / 720 cells / 702 total. With the two new feature IDs added to the registry (reasoning-default + reasoning-custom), counts shift to 42 / 756 / 738; the LGP-specific cell distribution moved from 39 wired + 1 stub + 0 unshipped to 35 wired + 1 stub + 6 unshipped, and the registry-side LGP feature/demo count drops to 36 (PR CopilotKit#4694 trimmed 4 items from the manifest's features list).
1 parent 95f957d commit bbe128c

3 files changed

Lines changed: 15 additions & 16 deletions

File tree

showcase/integrations/langgraph-python/manifest.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ demos:
152152
highlight:
153153
- src/app/demos/hitl-in-chat/page.tsx
154154
- src/app/demos/hitl-in-chat/time-picker-card.tsx
155-
- src/agents/hitl_in_chat.py
155+
- src/agents/hitl_in_chat_agent.py
156156
- src/app/api/copilotkit/route.ts
157157
- id: hitl-in-app
158158
name: "Human in the Loop: In-App"
@@ -272,7 +272,7 @@ demos:
272272
highlight:
273273
- src/agents/main.py
274274
- src/app/demos/chat-slots/page.tsx
275-
- src/app/demos/chat-slots/custom-welcome-screen.tsx
275+
- src/app/demos/chat-slots/slot-wrappers.tsx
276276
- src/app/api/copilotkit/route.ts
277277
- id: headless-simple
278278
name: "Headless UI: Simple"
@@ -335,7 +335,7 @@ demos:
335335
highlight:
336336
- src/agents/interrupt_agent.py
337337
- src/app/demos/gen-ui-interrupt/page.tsx
338-
- src/app/demos/gen-ui-interrupt/time-picker-card.tsx
338+
- src/app/demos/gen-ui-interrupt/_components/time-picker-card.tsx
339339
- src/app/api/copilotkit/route.ts
340340
- id: declarative-gen-ui
341341
name: "Declarative UI: A2UI"
@@ -376,7 +376,7 @@ demos:
376376
highlight:
377377
- src/agents/mcp_apps_agent.py
378378
- src/app/demos/mcp-apps/page.tsx
379-
- src/app/api/copilotkit-mcp-apps/route.ts
379+
- src/app/api/copilotkit-mcp-apps/[[...slug]]/route.ts
380380
- id: readonly-state-agent-context
381381
name: Frontend Context Sharing
382382
description: Frontend provides read-only context to the agent via useAgentContext

showcase/scripts/__tests__/generate-catalog.test.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe("Catalog Generator", () => {
9595
}
9696
});
9797

98-
it("cross-join produces 720 cells (40 features x 18 integrations); metadata.total_cells excludes docs-only", () => {
98+
it("cross-join produces 756 cells (42 features x 18 integrations); metadata.total_cells excludes docs-only", () => {
9999
runGenerator();
100100
const catalog = readCatalog();
101101

@@ -109,15 +109,15 @@ describe("Catalog Generator", () => {
109109
(c: any) => c.manifestation === "starter",
110110
);
111111

112-
expect(integrated.length).toBe(720); // 40 features x 18 integrations
112+
expect(integrated.length).toBe(756); // 42 features x 18 integrations
113113
expect(starters.length).toBe(0);
114-
expect(catalog.cells.length).toBe(720);
114+
expect(catalog.cells.length).toBe(756);
115115
// total_cells excludes docs-only features (currently 1 feature x 18 integrations = 18)
116-
expect(catalog.metadata.total_cells).toBe(702);
116+
expect(catalog.metadata.total_cells).toBe(738);
117117
expect(catalog.metadata.docs_only).toBe(18);
118118
});
119119

120-
it("LGP has 40 cells: 37 wired + 1 stub + 2 unshipped", () => {
120+
it("LGP has 42 cells: 35 wired + 1 stub + 6 unshipped", () => {
121121
runGenerator();
122122
const catalog = readCatalog();
123123

@@ -126,16 +126,15 @@ describe("Catalog Generator", () => {
126126
c.integration === "langgraph-python" &&
127127
c.manifestation === "integrated",
128128
);
129-
expect(lgpCells.length).toBe(40); // One cell per feature
129+
expect(lgpCells.length).toBe(42); // One cell per feature
130130

131131
const wired = lgpCells.filter((c: any) => c.status === "wired");
132132
const stub = lgpCells.filter((c: any) => c.status === "stub");
133133
const unshipped = lgpCells.filter((c: any) => c.status === "unshipped");
134134

135-
// LGP has 40 features: 39 wired + 1 stub (cli-start) + 0 unshipped
136-
expect(wired.length).toBe(39);
135+
expect(wired.length).toBe(35);
137136
expect(stub.length).toBe(1);
138-
expect(unshipped.length).toBe(0);
137+
expect(unshipped.length).toBe(6);
139138
});
140139

141140
it("stub detection: LGP/cli-start has stub status (demo exists, no route)", () => {
@@ -198,7 +197,7 @@ describe("Catalog Generator", () => {
198197

199198
expect(catalog.metadata).toBeDefined();
200199
// total_cells excludes docs-only features
201-
expect(catalog.metadata.total_cells).toBe(702);
200+
expect(catalog.metadata.total_cells).toBe(738);
202201

203202
// Headline counts exclude docs-only cells; must sum to total_cells.
204203
expect(

showcase/scripts/__tests__/generate-registry.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ describe("Registry Generator", () => {
6868
expect(langgraph.name).toBe("LangGraph (Python)");
6969
expect(langgraph.category).toBe("popular");
7070
expect(langgraph.language).toBe("python");
71-
expect(langgraph.features.length).toBe(40);
72-
expect(langgraph.demos.length).toBe(40);
71+
expect(langgraph.features.length).toBe(36);
72+
expect(langgraph.demos.length).toBe(36);
7373
});
7474

7575
it("sorts integrations by sort_order", () => {

0 commit comments

Comments
 (0)