agentgui 1.0.709 → 1.0.711
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +14 -0
- package/Dockerfile +42 -0
- package/package.json +1 -1
- package/server.js +9 -6
package/.dockerignore
ADDED
package/Dockerfile
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
FROM node:22-slim AS base
|
|
2
|
+
WORKDIR /app
|
|
3
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
4
|
+
python3 make g++ git \
|
|
5
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
6
|
+
|
|
7
|
+
FROM base AS deps
|
|
8
|
+
COPY package.json ./
|
|
9
|
+
RUN npm install --omit=dev --ignore-scripts && \
|
|
10
|
+
npm rebuild better-sqlite3 && \
|
|
11
|
+
(npm rebuild onnxruntime-node || true) && \
|
|
12
|
+
(npm rebuild node-pty || true)
|
|
13
|
+
COPY scripts/ ./scripts/
|
|
14
|
+
RUN node scripts/patch-fsbrowse.js && node scripts/copy-vendor.js
|
|
15
|
+
RUN find node_modules -type f \( \
|
|
16
|
+
-name "*.md" -o -name "*.markdown" -o \
|
|
17
|
+
-name "CHANGELOG*" -o -name "HISTORY*" -o \
|
|
18
|
+
-name ".travis.yml" -o -name "*.map" \
|
|
19
|
+
\) -delete 2>/dev/null; \
|
|
20
|
+
find node_modules -type d \( \
|
|
21
|
+
-name "__tests__" -o -name "test" -o \
|
|
22
|
+
-name "tests" -o -name "docs" -o \
|
|
23
|
+
-name "example" -o -name "examples" \
|
|
24
|
+
\) -exec rm -rf {} + 2>/dev/null; true
|
|
25
|
+
|
|
26
|
+
FROM node:22-slim
|
|
27
|
+
ARG VERSION=0.0.0
|
|
28
|
+
LABEL org.opencontainers.image.title="AgentGUI" \
|
|
29
|
+
org.opencontainers.image.description="Multi-agent GUI client for AI coding agents" \
|
|
30
|
+
org.opencontainers.image.version="${VERSION}" \
|
|
31
|
+
org.opencontainers.image.source="https://github.com/AnEntrypoint/agentgui"
|
|
32
|
+
WORKDIR /app
|
|
33
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
34
|
+
git \
|
|
35
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
36
|
+
COPY --from=deps /app/node_modules ./node_modules
|
|
37
|
+
COPY --from=deps /app/static/lib ./static/lib
|
|
38
|
+
COPY . .
|
|
39
|
+
RUN rm -rf .github .git scripts/patch-fsbrowse.js test/ __tests__/ tmp/ .env* .prd .pma
|
|
40
|
+
ENV PORT=3000 BASE_URL=/gm NODE_ENV=production
|
|
41
|
+
EXPOSE 3000
|
|
42
|
+
CMD ["node", "server.js"]
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -3813,7 +3813,7 @@ async function processMessageWithStreaming(conversationId, messageId, sessionId,
|
|
|
3813
3813
|
debugLog(`[stream] Starting: conversationId=${conversationId}, sessionId=${sessionId}`);
|
|
3814
3814
|
|
|
3815
3815
|
const cwd = conv?.workingDirectory || STARTUP_CWD;
|
|
3816
|
-
|
|
3816
|
+
let resumeSessionId = conv?.claudeSessionId || null;
|
|
3817
3817
|
|
|
3818
3818
|
let allBlocks = [];
|
|
3819
3819
|
let eventCount = 0;
|
|
@@ -3823,7 +3823,13 @@ async function processMessageWithStreaming(conversationId, messageId, sessionId,
|
|
|
3823
3823
|
eventCount++;
|
|
3824
3824
|
const entry = activeExecutions.get(conversationId);
|
|
3825
3825
|
if (entry) entry.lastActivity = Date.now();
|
|
3826
|
-
if (parsed.session_id)
|
|
3826
|
+
if (parsed.session_id) {
|
|
3827
|
+
ownedSessionIds.add(parsed.session_id);
|
|
3828
|
+
if (!resumeSessionId || resumeSessionId !== parsed.session_id) {
|
|
3829
|
+
resumeSessionId = parsed.session_id;
|
|
3830
|
+
queries.setClaudeSessionId(conversationId, parsed.session_id, sessionId);
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3827
3833
|
debugLog(`[stream] Event ${eventCount}: type=${parsed.type}`);
|
|
3828
3834
|
|
|
3829
3835
|
if (parsed.type === 'system') {
|
|
@@ -4120,10 +4126,7 @@ async function processMessageWithStreaming(conversationId, messageId, sessionId,
|
|
|
4120
4126
|
if (claudeSessionId) ownedSessionIds.delete(claudeSessionId);
|
|
4121
4127
|
debugLog(`[stream] Claude returned ${outputs.length} outputs, sessionId=${claudeSessionId}`);
|
|
4122
4128
|
|
|
4123
|
-
|
|
4124
|
-
// --resume on a completed session causes "No response requested." from the gm plugin
|
|
4125
|
-
queries.setClaudeSessionId(conversationId, null);
|
|
4126
|
-
debugLog(`[stream] Cleared claudeSessionId after successful completion`);
|
|
4129
|
+
debugLog(`[stream] Keeping claudeSessionId=${claudeSessionId} for session continuity`);
|
|
4127
4130
|
|
|
4128
4131
|
// Mark session as complete
|
|
4129
4132
|
queries.updateSession(sessionId, {
|