mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Replaces the Python agent canvas runtime with a Go implementation that runs inside `cmd/server_main`. The canvas compiles into an eino Workflow that pauses on wait-for-user via native Interrupt/Resume (no sentinel flag) and resumes from a Redis-backed CheckPointStore. All 21 Python agent components and ~35 tools are ported with functional parity. Sandbox providers now read their JSON config from the admin-panel system_settings table with env fallback. 234 files / +35,413 / -6,111. All Go files are gofmt-clean (CI gate added); drops the v2 DSL E2E step and the gap-analysis plan (both redundant after the port ships). ## Type of change - [x] Refactoring - [x] New feature - [x] Bug fix 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>
42 lines
897 B
TypeScript
42 lines
897 B
TypeScript
import type { Config } from 'jest';
|
|
|
|
const config: Config = {
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx)$': [
|
|
'esbuild-jest',
|
|
{
|
|
sourcemap: true,
|
|
loaders: {
|
|
'.ts': 'tsx',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'\\.(css|less|scss|sass)$': '<rootDir>/__mocks__/styleMock.js',
|
|
'\\.(jpg|jpeg|png|gif|svg|webp)$': '<rootDir>/__mocks__/fileMock.js',
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.{ts,tsx,js,jsx}',
|
|
'!src/.umi/**',
|
|
'!src/.umi-test/**',
|
|
'!src/.umi-production/**',
|
|
'!**/*.d.ts',
|
|
'!coverage/**',
|
|
'!dist/**',
|
|
'!config/**',
|
|
'!mock/**',
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
lines: 1,
|
|
},
|
|
},
|
|
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
|
|
};
|
|
|
|
export default config;
|