Pretor/frontend
朝夕 d84212f780 chore: initial commit for Pretor v0.1.0-alpha
正式发布 Pretor 平台的首个 alpha 版本。本项目旨在构建一个基于分布式架构的多智能体协同工作流水线。

核心功能实现:
1. 建立基于 BaseIndividual 的动态插件加载机制。
2. 实现三类核心 worker_individual 子个体。
3. 集成 Ray 框架支持分布式集群调度。
4. 基于 PostgreSQL 的全量持久化存储方案。
5. 提供完整的 FastAPI 后端与 React 前端交互界面。
2026-04-29 10:09:07 +08:00
..
public chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
src chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
.gitignore chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
README.md chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
eslint.config.js chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
index.html chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
package-lock.json chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
package.json chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
tsconfig.app.json chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
tsconfig.json chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
tsconfig.node.json chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00
vite.config.ts chore: initial commit for Pretor v0.1.0-alpha 2026-04-29 10:09:07 +08:00

README.md

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])