mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-31 12:05:17 +00:00
* feat(klient): contract-driven facade with http/ipc/memory transports - add zod-validated contract sections (global/session/agent) under src/contract and a facade exposing global.*, session(id).*, agent(id).* - select transport once at creation via subpath entries (@moonshot-ai/klient/http|ipc|memory); drop legacy channel/client/ httpChannel/wsChannel/wsKlient/proxy implementations - absorb packages/server-e2e into packages/klient test/e2e suites (dual-backend, legacy v1, v2 wire) and remove the server-e2e workspace - expose model registry and catalog services on kap-server v2 RPC surface * fix(klient): derive session status from agentActivityView The engine retired its sessionActivity service in #1751 (session busy is now derived from agent activity views), but the facade still called the deleted wire channel and imported the deleted engine module, breaking typecheck and every klient suite at import time. - drop the sessionActivity contract/registry entries and mirror the agentActivityView service instead (agent scope) - compose session status() client-side from the pending interaction lists and each agent's agentActivityView, keeping the retired service's precedence and typing SessionStatus locally in the facade - replace the deleted-channel call in the v2 smoke suite with a sessionInteractionService probe - fix the legacy image-file suite to wait with the harness's waitForSessionBusy
27 lines
992 B
Docker
27 lines
992 B
Docker
# syntax=docker/dockerfile:1.7
|
|
#
|
|
# klient e2e docker-run image.
|
|
#
|
|
# This image layers server-e2e defaults on top of the repository server dev
|
|
# image. Source code and node_modules are still provided by bind mounts from
|
|
# scripts/run-docker-e2e.sh, so host edits are picked up without rebuilding.
|
|
#
|
|
# The launcher intentionally does not pass -p/--publish to docker run. The
|
|
# server binds inside the container only, so this workflow can run alongside the
|
|
# docker-compose.yml server that publishes host port 7878.
|
|
|
|
ARG BASE_IMAGE=kimi-server:dev
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ENV KIMI_CODE_HOME=/data/docker-e2e/kimi-code-home \
|
|
KIMI_SERVER_URL=http://127.0.0.1:7878 \
|
|
KIMI_SERVER_E2E_REPORT_DIR=/data/server-e2e-reports/docker/latest \
|
|
TMPDIR=/data/docker-e2e/tmp \
|
|
TERM=xterm-256color \
|
|
TZ=Asia/Shanghai \
|
|
npm_config_store_dir=/workspace/kimi-code/node_modules/.pnpm-store \
|
|
npm_config_package_import_method=copy
|
|
|
|
WORKDIR /workspace/kimi-code/packages/klient
|
|
|
|
CMD ["bash"]
|