Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Lint & Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v4
with:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
BETTER_AUTH_SECRET: ci-test-secret-32chars-xxxxxxxxx
ENCRYPTION_KEY: ci-test-encrypt-key-32chars-xxxx
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand All @@ -42,7 +42,7 @@ jobs:
env:
APP_VERSION: ${{ steps.version.outputs.version }}

- uses: actions/upload-pages-artifact@v4
- uses: actions/upload-pages-artifact@v5
with:
path: apps/docs/dist/

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: docker/setup-qemu-action@v4

Expand All @@ -38,7 +38,7 @@ jobs:
cache-to: type=gha,mode=max

- name: Comment on PR
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const image = `ghcr.io/${{ github.repository }}:pr-${{ github.event.pull_request.number }}`;
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
env:
APP_IMAGE: ghcr.io/${{ github.repository }}:pr-${{ github.event.pull_request.number }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Generate random credentials
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
version: ${{ steps.version.outputs.version }}
tag: ${{ steps.version.outputs.tag }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: docker/setup-qemu-action@v4

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# ---------- base ----------
FROM node:24-slim AS base
FROM node:25-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable && corepack prepare pnpm@10.30.3 --activate
# Node 25 dropped bundled corepack, so install pnpm directly.
RUN npm install -g pnpm@10.30.3

# ---------- deps ----------
FROM base AS deps
Expand Down Expand Up @@ -97,7 +98,6 @@ COPY --from=build-worker /app/apps/worker/worker.mjs ./apps/worker/worker.mjs
COPY --from=build-spa /app/apps/frontend/dist /usr/share/nginx/html

RUN useradd -r -M -d /data -s /bin/false archmax \
&& corepack disable \
&& mkdir -p /data /tmp/redis \
&& chown -R archmax:archmax /data /tmp/redis /var/log

Expand Down
16 changes: 8 additions & 8 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
},
"dependencies": {
"@archmax/core": "workspace:*",
"@hono/node-server": "^1",
"@hono/node-server": "^1.19.14",
"@hono/zod-validator": "^0.7.6",
"@langchain/core": "^1.1.39",
"@langchain/openai": "^1.4.2",
"@langchain/core": "^1.1.40",
"@langchain/openai": "^1.4.4",
"@modelcontextprotocol/hono": "2.0.0-alpha.2",
"@modelcontextprotocol/server": "2.0.0-alpha.2",
"better-auth": "^1.5.6",
"deepagents": "^1.8.8",
"dotenv": "^17.3.1",
"hono": "^4",
"better-auth": "^1.6.5",
"deepagents": "^1.9.0",
"dotenv": "^17.4.2",
"hono": "^4.12.14",
"js-yaml": "^4.1.1",
"mongodb": "^7.1.1",
"mongoose": "^9.4.1",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^20",
"@types/node": "^25",
"tsx": "^4.19.2",
"typescript": "5.9.3"
}
Expand Down
14 changes: 11 additions & 3 deletions apps/api/src/routes/conversations.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
import { Hono } from "hono";
import { zValidator } from "@hono/zod-validator";
import { z } from "zod/v4";
import { connectDB } from "@archmax/core/infra/db";
import { Conversation } from "@archmax/core/models/index";
import { isStreamActive } from "@archmax/core/streaming/stream-bridge";
import { AppError } from "../utils/errors";

const listQuerySchema = z.object({
limit: z.string().optional(),
skip: z.string().optional(),
});

const app = new Hono()
.get("/", async (c) => {
.get("/", zValidator("query", listQuerySchema), async (c) => {
await connectDB();
const projectId = c.req.param("projectId")!;
const limit = Math.min(Math.max(parseInt(c.req.query("limit") ?? "10", 10) || 10, 1), 100);
const skip = Math.max(parseInt(c.req.query("skip") ?? "0", 10) || 0, 0);
const q = c.req.valid("query");
const limit = Math.min(Math.max(parseInt(q.limit ?? "10", 10) || 10, 1), 100);
const skip = Math.max(parseInt(q.skip ?? "0", 10) || 0, 0);

const filter = { project: projectId, testAgent: null };
const [rawItems, total] = await Promise.all([
Expand Down
29 changes: 21 additions & 8 deletions apps/api/src/routes/mcp-logs.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
import { Hono } from "hono";
import { zValidator } from "@hono/zod-validator";
import { z } from "zod/v4";
import { connectDB } from "@archmax/core/infra/db";
import { McpCallLog } from "@archmax/core/models/index";

const app = new Hono().get("/", async (c) => {
const listQuerySchema = z.object({
page: z.string().optional(),
limit: z.string().optional(),
toolName: z.string().optional(),
tokenId: z.string().optional(),
errorOnly: z.string().optional(),
from: z.string().optional(),
to: z.string().optional(),
});

const app = new Hono().get("/", zValidator("query", listQuerySchema), async (c) => {
await connectDB();
const projectId = c.req.param("projectId")!;

const page = Math.max(1, parseInt(c.req.query("page") || "1", 10));
const limit = Math.min(200, Math.max(1, parseInt(c.req.query("limit") || "50", 10)));
const toolName = c.req.query("toolName");
const tokenId = c.req.query("tokenId");
const errorOnly = c.req.query("errorOnly") === "true";
const from = c.req.query("from");
const to = c.req.query("to");
const q = c.req.valid("query");
const page = Math.max(1, parseInt(q.page || "1", 10));
const limit = Math.min(200, Math.max(1, parseInt(q.limit || "50", 10)));
const toolName = q.toolName;
const tokenId = q.tokenId;
const errorOnly = q.errorOnly === "true";
const from = q.from;
const to = q.to;

const filter: Record<string, unknown> = { project: projectId };

Expand Down
21 changes: 15 additions & 6 deletions apps/api/src/routes/test-cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,27 @@ const createSchema = z.object({

const updateSchema = createSchema.partial();

const listQuerySchema = z.object({
page: z.string().optional(),
limit: z.string().optional(),
agentId: z.string().optional(),
semanticModel: z.string().optional(),
tags: z.string().optional(),
});

const app = new Hono()
.get("/", async (c) => {
.get("/", zValidator("query", listQuerySchema), async (c) => {
await connectDB();
const projectId = c.req.param("projectId")!;
const page = Math.max(parseInt(c.req.query("page") ?? "1", 10) || 1, 1);
const limit = Math.min(Math.max(parseInt(c.req.query("limit") ?? "25", 10) || 25, 1), 100);
const q = c.req.valid("query");
const page = Math.max(parseInt(q.page ?? "1", 10) || 1, 1);
const limit = Math.min(Math.max(parseInt(q.limit ?? "25", 10) || 25, 1), 100);
const skip = (page - 1) * limit;

const filter: Record<string, unknown> = { project: projectId };
const agentId = c.req.query("agentId");
const semanticModel = c.req.query("semanticModel");
const tagsParam = c.req.query("tags");
const agentId = q.agentId;
const semanticModel = q.semanticModel;
const tagsParam = q.tags;
if (agentId) filter.testAgent = agentId;
if (semanticModel) filter.semanticModel = semanticModel;
if (tagsParam) filter.tags = { $in: tagsParam.split(",").map((t) => t.trim().toLowerCase()).filter(Boolean) };
Expand Down
12 changes: 9 additions & 3 deletions apps/api/src/routes/test-runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ const createSchema = z.object({
testCaseIds: z.array(z.string().min(1)).min(1),
});

const listQuerySchema = z.object({
page: z.string().optional(),
limit: z.string().optional(),
});

const app = new Hono()
.get("/", async (c) => {
.get("/", zValidator("query", listQuerySchema), async (c) => {
await connectDB();
const projectId = c.req.param("projectId")!;
const page = Math.max(parseInt(c.req.query("page") ?? "1", 10) || 1, 1);
const limit = Math.min(Math.max(parseInt(c.req.query("limit") ?? "25", 10) || 25, 1), 100);
const q = c.req.valid("query");
const page = Math.max(parseInt(q.page ?? "1", 10) || 1, 1);
const limit = Math.min(Math.max(parseInt(q.limit ?? "25", 10) || 25, 1), 100);
const skip = (page - 1) * limit;

const filter = { project: projectId };
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@astrojs/starlight": "^0.38.3",
"astro": "^6.1.4",
"astro": "^6.1.8",
"sharp": "^0.34.5",
"starlight-image-zoom": "^0.14.1"
}
Expand Down
Binary file modified apps/docs/public/images/screenshot-graph-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/docs/public/images/screenshot-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/docs/public/images/screenshot-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/docs/src/content/docs/reference/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The `ghcr.io/archmaxai/archmax` Docker image bundles the application components
| **MongoDB** | Embedded `mongod`; starts automatically when `MONGODB_URI` is not set |
| **Redis** | Embedded `redis-server`; starts automatically when `REDIS_URL` is not set |

Base image: `node:24-slim` (Debian Bookworm).
Base image: `node:25-slim` (Debian Bookworm).

<Aside type="tip">
Both MongoDB and Redis are embedded and start automatically when their respective connection URLs are not provided. Pass `MONGODB_URI` and/or `REDIS_URL` to use external instances instead.
Expand Down
24 changes: 12 additions & 12 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@
"@archmax/api": "workspace:*",
"@archmax/ui": "workspace:*",
"@dagrejs/dagre": "^3.0.0",
"@tanstack/react-query": "^5",
"@tanstack/react-router": "^1",
"@tanstack/react-query": "^5.99.2",
"@tanstack/react-router": "^1.168.23",
"@xyflow/react": "^12.10.2",
"better-auth": "^1.5.6",
"hono": "^4",
"lucide-react": "^0.562.0",
"react": "^19",
"react-dom": "^19",
"better-auth": "^1.6.5",
"hono": "^4.12.14",
"lucide-react": "^1.8.0",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"react-markdown": "^10.1.0",
"recharts": "^3.8.1",
"remark-gfm": "^4.0.1",
"sonner": "^2.0.7"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@tanstack/router-plugin": "^1",
"@types/node": "^20",
"@tanstack/router-plugin": "^1.167.22",
"@types/node": "^25",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^4",
"postcss": "^8",
"@vitejs/plugin-react": "^6",
"postcss": "^8.5.10",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "5.9.3",
"vite": "^6"
"vite": "^8"
}
}
Loading
Loading