feat: builder 简历生成 + 轻度优化 + 简历导入交付副本

自内部仓库剥离深度优化与 RAG 知识库后的交付版本:
- Builder 对话式简历生成(FSM + 意图路由 LLM 兜底增强)
- 条目级轻度优化:事实覆盖门禁 + STAR/bullet 修复链,功能/简介/成果与技术栈同级保护
- 简历导入:DOCX/PDF 解析、结构归一、手机号脱敏
- PostgreSQL 运行时 + Alembic 迁移链

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hyp
2026-08-05 11:08:30 +08:00
co-authored by Claude
commit ae2d9b128d
191 changed files with 27719 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
"""Contracts shared by the light and deep experience optimization flows."""
from __future__ import annotations
from typing import Any, Literal
from pydantic import BaseModel, ConfigDict, Field
class OptimizationStartRequest(BaseModel):
model_config = ConfigDict(extra="forbid")
entry_id: str = Field(min_length=1, max_length=64)
instruction: str | None = Field(default=None, max_length=200)
source: str | None = Field(default=None, max_length=32)
class OptimizationAnswerRequest(BaseModel):
model_config = ConfigDict(extra="forbid")
answer: str = Field(min_length=1, max_length=1000)
class TargetPositionRequest(BaseModel):
model_config = ConfigDict(extra="forbid")
target_position: str = Field(min_length=1, max_length=32)
class OptimizationRunView(BaseModel):
id: str
mode: Literal["light", "deep"]
status: str
entry_id: str
question_count: int = 0
question: dict[str, Any] | None = None
proposal: dict[str, Any] | None = None
covered_dimensions: list[str] = Field(default_factory=list)
remaining_high_priority_gaps: list[str] = Field(default_factory=list)
decision_source: str | None = None
error_code: str | None = None
action: Any | None = None
gap_report: list[dict[str, Any]] | None = None
tier: str | None = None