Refactor internal services to use agent-desk package structure

- Updated import paths in multiple service files to reflect the new agent-desk module.
- Added a new configuration file for agent-desk in the Docker setup.
This commit is contained in:
mlogclub
2026-05-31 18:43:48 +08:00
parent 472b3053b8
commit 101577f163
381 changed files with 1401 additions and 1308 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-ai-agent ./cmd/server
go build -v -trimpath -ldflags="-s -w" -o /out/agent-desk ./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-ai-agent /app/cs-ai-agent
COPY --from=server-builder /out/agent-desk /app/agent-desk
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-ai-agent", "-config", "/app/config/config.yaml"]
CMD ["/app/agent-desk", "-config", "/app/config/config.yaml"]