mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
091eb86f16
Rewrite the langgraph-js agent to use `createAgent` from `langchain` (matching langgraph-python) with `copilotkitMiddleware` and `stateStreamingMiddleware` from `@copilotkit/sdk-js/langgraph-middlewares`. Tools now use `ToolRuntime` for state and tool-call-id access. System prompt inlined in `agent.ts`; drop the file-based `PROMPT.md`. Replace the legacy single-stage Dockerfile with a Node-only two-stage build that mirrors the langgraph-python Dockerfile (frontend build → runner, HttpAgent route override for Docker, Turbopack→webpack). Add JS-specific `entrypoint.sh` (launches `@langchain/langgraph-cli dev` + Next.js standalone) and `docker-compose.test.yml` (wget healthcheck for the alpine-based agent image, STARTER=langgraph-js default). Both added to the instance's `allowedDivergence` in the parity manifest. Rewrite the README to drop Python/uv prerequisites and list the correct TypeScript tool paths.
694 B
Executable File
694 B
Executable File