Go to file
z.zhang 35131cde88 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	apps/web/e2e/order-closed-loop-contract.spec.ts
#	apps/web/src/App.tsx
#	apps/web/src/api/client.ts
#	apps/web/src/api/types.ts
#	apps/web/src/chat/ChatPanel.tsx
#	apps/web/src/gov/GovConsole.tsx
#	apps/web/src/master/FlexPanel.tsx
#	apps/web/src/master/MasterPanel.tsx
#	apps/web/src/orders/OrderPanel.tsx
#	apps/web/src/projects/ProjectPanel.tsx
#	apps/web/src/skills/AsyncJobsTab.tsx
#	apps/web/src/skills/mcpApi.ts
#	apps/web/src/styles.css
#	docs/CHANGELOG.md
#	docs/README.md
#	docs/algorithm/scheduling-v1.md
#	docs/algorithm/solution-selection-v1.md
#	docs/architecture/harness.md
#	docs/development/e2e.md
#	docs/product/features.md
#	docs/product/plan-completion-matrix.md
#	docs/round-67-approval-migration-parallel-implementation-plan.md
#	docs/round-67-approval-migration-state.md
#	docs/round-67-approval-migration-work-plan.md
#	package.json
#	packaging/aps-sidecar.spec
#	packaging/requirements-sidecar.lock
#	plan.md
#	pyproject.toml
#	requirements.txt
#	server/agent_core/approval_db_store.py
#	server/agent_core/approval_migrate.py
#	server/agent_core/approval_store.py
#	server/agent_core/async_jobs.py
#	server/agent_core/automation.py
#	server/agent_core/harness.py
#	server/agent_core/intent.py
#	server/aps_domain/attribution.py
#	server/aps_domain/closed_loop_runtime.py
#	server/aps_domain/flex.py
#	server/aps_domain/folder_pack.py
#	server/aps_domain/importers.py
#	server/aps_domain/lns.py
#	server/aps_domain/mes.py
#	server/aps_domain/mrp.py
#	server/aps_domain/multimodal.py
#	server/aps_domain/scenario_selection.py
#	server/aps_domain/scheduling_problem_v2.py
#	server/aps_domain/scheduling_validator.py
#	server/aps_domain/sourcing.py
#	server/aps_domain/workflow.py
#	server/db/models.py
#	server/engines/cp_engine.py
#	server/engines/nsga2_engine.py
#	server/engines/solver_process.py
#	server/engines/solver_worker.py
#	server/gateway/app.py
#	server/gateway/plan_api.py
#	server/sidecar.py
#	server/state/branches.py
#	server/state/checkpoints.py
#	shared/schemas/intent.schema.json
#	tests/conftest.py
#	tests/golden/test_approval_database_store.py
#	tests/golden/test_approval_migration.py
#	tests/golden/test_assistant.py
#	tests/golden/test_async_jobs.py
#	tests/golden/test_automation_gateway.py
#	tests/golden/test_automation_gears.py
#	tests/golden/test_cp_cumulative.py
#	tests/golden/test_cp_operation_level.py
#	tests/golden/test_desktop_sidecar.py
#	tests/golden/test_engine_constraint_semantics.py
#	tests/golden/test_evidence_contract.py
#	tests/golden/test_folder_pack.py
#	tests/golden/test_guidance.py
#	tests/golden/test_importers.py
#	tests/golden/test_mes.py
#	tests/golden/test_mes_evidence_v2.py
#	tests/golden/test_multimodal.py
#	tests/golden/test_nsga2_engine.py
#	tests/golden/test_preference_features.py
#	tests/golden/test_project_file_upload.py
#	tests/golden/test_solver_engine_isolation.py
#	tests/golden/test_solver_subprocess.py
#	锐扬演示-操作手册.md
2026-09-04 00:51:17 +08:00
.claude/skills/gitnexus feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
.github/workflows feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
_refs feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
_shots docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
apps Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
aps-frontend first commit 2026-07-21 11:05:57 +08:00
demo-data feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
deploy feat: Round 71-84 APS 平台本地能力收口 2026-08-26 00:25:46 +08:00
docs Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
kangni-analysis docs(product): 康尼科技 MOM/APS 调研材料与实施计划、徐工痛点分析方案 2026-09-03 23:32:27 +08:00
kangni-requirements docs(product): 康尼调研原始材料归档(kangni-requirements,与 kangni-analysis 原始件同源备份) 2026-09-03 23:34:10 +08:00
packaging Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
poc poc(fallback): GOAL-P3 协调板快照(进行中) 2026-09-03 23:34:11 +08:00
scripts Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
server Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
shared/schemas feat: Round 71-84 APS 平台本地能力收口 2026-08-26 00:25:46 +08:00
tests Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
video feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
xugong-analysis docs(product): 康尼科技 MOM/APS 调研材料与实施计划、徐工痛点分析方案 2026-09-03 23:32:27 +08:00
.dockerignore feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
.env.example Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
.gitignore Merge remote-tracking branch 'origin/main' 2026-09-04 00:51:17 +08:00
AGENTS.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS智能体演示视频.mp4 feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS智能体演示讲解稿.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS智能体演讲稿-功能对照版.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS智能体演讲稿-架构汇报版(20-30分钟).md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS智能体演讲稿-领导汇报版.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS智能体演讲稿.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
APS系统操作手册.docx docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
APS系统操作手册.md docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
CLAUDE.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
Dockerfile feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
PROJECT_OPERATING_RULES.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
Pi-Agent兜底能力详细方案.md poc(fallback): Pi Agent 兜底 P0 验证设施与方案文档 2026-09-03 13:48:20 +08:00
Pi-Agent接入计划.md poc(fallback): Pi Agent 兜底 P0 验证设施与方案文档 2026-09-03 13:48:20 +08:00
Pi-Agent接入详细计划.md poc(fallback): Pi Agent 兜底 P0 验证设施与方案文档 2026-09-03 13:48:20 +08:00
README.md feat: Web 文件上传、免登录访客隔离与锐扬试排修复 2026-08-11 19:01:05 +08:00
Tauri迁移可行性评估.md poc(fallback): Pi Agent 兜底 P0 验证设施与方案文档 2026-09-03 13:48:20 +08:00
alembic.ini feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
build-manual-docx.js docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
build-manual-v2.js docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
build-manual-v3.js docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
docker-image-tag.txt feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
package.json docs(manual): APS 系统操作手册(md + docx)与截图产物——对齐 round-65~67 / DXF-01 / FF-01 2026-09-03 23:32:20 +08:00
plan.md feat: Round 71-84 APS 平台本地能力收口 2026-08-26 00:25:46 +08:00
pyproject.toml feat: Round 71-84 APS 平台本地能力收口 2026-08-26 00:25:46 +08:00
requirements.txt feat: Round 71-84 APS 平台本地能力收口 2026-08-26 00:25:46 +08:00
锐扬演示-操作手册.md feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00

README.md

APS 计划排产智能体

左手自然语言对话、右手可视化排产盘的计划排产智能体。
文档入口(大管家):docs/README.md
架构蓝图:plan.md(目标态多,落地以 docs/ 分类文档为准)
交互验证原型:poc/workbench.html

仓库结构

aps-agent/
├─ apps/web/           # React 18 + TS + Vite(左说右动 UI,Web/桌面共用)
├─ apps/desktop/       # Electron 壳(数据落 ~/.aps,对标 Codex)
├─ server/             # FastAPI(Gateway + Agent Core + 规则引擎 + 世界状态)
├─ scripts/            # dev:web / dev:desktop 启动脚本
├─ shared/             # 跨语言契约(JSON Schema)
├─ tests/golden/       # 黄金测试(pytest)
├─ docs/               # 活文档(大管家 + 产品/架构/算法)
├─ aps-frontend/       # 早期静态原型(对照用)
├─ poc/                # 「左说右动」POC
└─ plan.md             # 架构蓝图

文档怎么找

你是谁 从哪读
产品 / 业务 docs/product/
架构 / 研发 docs/architecture/
算法 docs/algorithm/
每次改动记账 docs/CHANGELOG.md

快速开始

形态说明

形态 用户数据 开发命令 打包 部署
Web 仓库 server/data/(或 APS_HOME) npm run dev:web npm run build:web 静态前端 + 后端服务
桌面 ~/.aps/(skills/sessions/data…,对标 Codex) npm run dev:desktop npm run build:desktop 发安装包,无需服务器托管 UI

详见 docs/architecture/desktop.md。

1. 依赖

python -m venv .venv
.venv\Scripts\activate          # Windows;Linux/macOS: source .venv/bin/activate
pip install -r requirements.txt
copy .env.example .env          # 可选

npm run bootstrap                   # 安装 apps/web + apps/desktop 依赖

2. 开发运行

联调 Web 用户登录前,在 .env 中设置 JMS 地址与本地会话密钥:

APS_AUTH_PROVIDER=jms
JMS_AUTH_BASE_URL=https://jms-mes-api.jzplat.com
JMS_AUTH_SESSION_SECRET=至少32个随机字符
APS_LICENSE_PROVIDER=mock

Web 端会从 JMS 读取启用企业,用户选择所属企业后使用真实账号密码登录;如需限制为单一企业, 可配置 JMS_AUTH_TENANT_CODE 与 JMS_AUTH_TENANT_NAME。JMS 当前没有自助注册或未登录自助 找回密码接口,账号创建与密码重置由所属企业管理员处理。 桌面端不使用账号,开发授权码为 APS-HOUR-DEMO、APS-DAY-DEMO、APS-WEEK-DEMO、APS-MONTH-DEMO、 APS-YEAR-DEMO、APS-PERP-DEMO。

# Web(浏览器 http://localhost:5173 ,API :8000)
npm run dev:web

# 桌面(Electron 窗口;数据写入 %USERPROFILE%\.aps)
npm run dev:desktop

3. 打包

npm run build:web               # apps/web/dist → 部署静态站
npm run build:desktop           # Electron 安装包 → apps/desktop/release

4. 验收路径(摘录)

打开 http://localhost:5173 :

  1. 「对比几种策略」→ 方案卡 → 采用 → 右侧甘特刷新
  2. 「存个档」→ 时间线检查点 → 点检查点回滚(P2 确认卡)
  3. 「试排一版交期优先」/ 「发布这个版本」
  4. pytest tests/golden -q(当前期望全绿,见 CHANGELOG 最新验证数)

Web 端读取本机数据文件:在项目面板「文件」区点「上传」,选择本机的 .xlsx/.xlsm/.csv/.txt/.sql(可多选);上传后自动作为该项目的工程目录, 对话中说「分析一下数据文件」即可走同一套目录分析与排产链路。

完整旅程说明:docs/product/journeys.md

大模型接入

DeepSeek / KIMI(OpenAI 兼容),.env 配置 LLM_PROVIDER / LLM_API_KEY 等。
意图:正则快路 → LLM JSON;失败自动降级。详见 plan.md §9.6。

代码规范

遵循 plan.md §12:中文意图注释、权力等级、moduleId、文档同轮同步(见 docs 大管家)。