mirror of
https://github.com/twentyhq/twenty.git
synced 2026-06-11 17:37:18 -04:00
## Summary - **Fix token renewal endpoint**: Use `/metadata` instead of `/graphql` for token renewal in agent chat, fixing auth issues - **Improve tool display**: Add `load_skills` support, show formatted tool names (underscores → spaces) with finish/loading states, display tool icons during loading, and support custom loading messages from tool input - **Refactor workflow agent management**: Replace direct `AgentRepository` access with `AgentService` for create/delete/find operations in workflow steps, improving encapsulation and consistency - **Simplify Apollo client usage**: Remove explicit Apollo client override in `useGetToolIndex`, add `AgentChatProvider` to `AppRouterProviders` - **Fix load-skill tool**: Change parameter type from `string` to `json` for proper schema parsing - **Update agent-chat-streaming**: Use `AgentService` for agent resolution and tool registration instead of direct repository queries ## Test plan - [ ] Verify AI agent chat works end-to-end (send message, receive response) - [ ] Verify tool steps display correctly with icons and proper messages during loading and after completion - [ ] Verify workflow AI agent step creation and deletion works correctly - [ ] Verify workflow version cloning preserves agent configuration - [ ] Verify token renewal works when tokens expire during agent chat Made with [Cursor](https://cursor.com) --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
35 lines
1.0 KiB
Docker
35 lines
1.0 KiB
Docker
FROM ubuntu:22.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
git \
|
|
make \
|
|
build-essential \
|
|
postgresql-client \
|
|
docker.io \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install nvm (project recommends nvm + .nvmrc for consistent Node versions)
|
|
ENV NVM_DIR=/usr/local/nvm
|
|
RUN mkdir -p $NVM_DIR \
|
|
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# Copy .nvmrc so nvm install picks up the right version
|
|
COPY .nvmrc /tmp/.nvmrc
|
|
|
|
# Install Node.js from .nvmrc, enable Corepack, and symlink binaries
|
|
# so they're available on PATH without hardcoding a version
|
|
RUN . $NVM_DIR/nvm.sh \
|
|
&& nvm install $(cat /tmp/.nvmrc) \
|
|
&& nvm alias default $(cat /tmp/.nvmrc) \
|
|
&& corepack enable \
|
|
&& BIN_DIR=$(dirname $(nvm which default)) \
|
|
&& ln -sf $BIN_DIR/node /usr/local/bin/node \
|
|
&& ln -sf $BIN_DIR/npm /usr/local/bin/npm \
|
|
&& ln -sf $BIN_DIR/npx /usr/local/bin/npx \
|
|
&& ln -sf $BIN_DIR/corepack /usr/local/bin/corepack
|