Help me add a new route to an existing B4.run app. Routes are directories under `src/app/` where each directory maps to a URL-style pathname (minus route groups).

1. Create the route directory. For a route under a dynamic `[topic]` segment:
   ```
   src/app/<new-route>/[topic]/
   ```

2. Optionally create `state.ts` — the route's Zod state schema:
   ```ts
   import { z } from "zod"

   export default z.object({
     topic: z.string().default(""),
     question: z.string().default(""),
   })
   ```

3. Create `index.ts` — the route entry. Export exactly ONE of:

   **Workflow** (async function, most common):
   ```ts
   import state from "./state.js"

   export async function workflow(input: unknown) {
     const parsed = state.parse(input)
     return { ...parsed, result: parsed.topic }
   }
   ```

   **Graph** (LangGraph graph/workflow):
   ```ts
   export const graph = /* langgraph graph instance */
   ```

   **Chain** (LangChain LCEL Runnable):
   ```ts
   export const chain = /* LCEL runnable */
   ```

   **Agent** (default descriptor):
   ```ts
   import { agent } from "@b4run/sdk"

   export default agent({
     model: "gpt-5-mini",
     systemPrompt: "You are a helpful assistant.",
   })
   ```

4. If the route needs tools, add them at the appropriate scope: use `src/tools/*.ts` for tools shared across routes, or `src/app/<new-route>/[topic]/tools/*.ts` for route-local tools. A route-local tool shadows a same-named shared tool for that route. Then add a typed `RuntimeContext` parameter and call the tool through `ctx.tools`; otherwise keep the workflow tool-free.

5. Run `b4 routes` to confirm B4.run discovered the new route and what pathname it computed. Then `b4 run '<pathname>'` with the required state via stdin.

Constraints:
- Exactly one of default `agent(...)`, named `workflow`, named `graph`, or named `chain` may be exported from `index.ts`.
- Route groups in parentheses `(public)` are NOT part of the pathname.
- Dynamic segment values, such as `topic`, come from the JSON input when invoking the parameterized route id.
- The `RouteTools<"/path">` type is generated from the shared and route-local tools available to that route.

Reference: https://b4.run/llms.txt
