refactor: rename agent widget references to AI agent for consistency

- Updated runtime configuration to use __CS_AI_AGENT_WIDGET_CONFIG__ instead of __CS_AGENT_WIDGET_CONFIG__.
- Changed message types in support host bridge from "cs-agent" to "cs-ai-agent".
- Minified SDK script updated to reflect new AI agent naming conventions.
- Adjusted scrollbar styles in main.scss to use .cs-ai-agent-scrollbar instead of .cs-agent-scrollbar.
This commit is contained in:
mlogclub
2026-05-30 21:19:36 +08:00
parent 85a57e9930
commit 5d7c10aeab
398 changed files with 1418 additions and 1427 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ ARG TARGETARCH
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -v -trimpath -ldflags="-s -w" -o /out/cs-agent ./cmd/server
go build -v -trimpath -ldflags="-s -w" -o /out/cs-ai-agent ./cmd/server
FROM alpine:3.22 AS app
WORKDIR /app
@@ -37,7 +37,7 @@ ENV TZ=Asia/Shanghai
RUN apk add --no-cache ca-certificates tzdata wget \
&& mkdir -p /app/config /app/data/storage
COPY --from=server-builder /out/cs-agent /app/cs-agent
COPY --from=server-builder /out/cs-ai-agent /app/cs-ai-agent
COPY config/config.example.yaml /app/config/config.example.yaml
COPY config/config.example.yaml /app/config/config.yaml
@@ -47,4 +47,4 @@ VOLUME ["/app/data"]
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- http://127.0.0.1:8083/ >/dev/null || exit 1
CMD ["/app/cs-agent", "-config", "/app/config/config.yaml"]
CMD ["/app/cs-ai-agent", "-config", "/app/config/config.yaml"]