{"at":"2026-11-23T06:01:58.204Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T06:01:59.175Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:01:59.326Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T06:02:00.335Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"career-kit","version":"1.30.0"}}}}
{"at":"2026-11-23T06:02:00.335Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:02:00.335Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:02:00.339Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"初始化新的职业规划会话。\n\n何时调用：用户开始新的职业规划时首先调用此工具。\n按档案状态自动分流：空档案走建档引导；已有任务的档案直接给续跑指引，\n不再把老用户当新用户重新问一遍简历和目标。\n\n工作流程：start_session → intake(who) → intake(have) → intake(want) → finalize_profile\n","inputSchema":{"properties":{},"title":"start_sessionArguments","type":"object"},"name":"start_session","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"start_sessionOutput","type":"object"}},{"description":"解析简历文件，提取文本内容。支持 PDF、DOCX、Markdown、TXT 格式。\n\nArgs:\n    file_path: 简历文件的绝对路径\n","inputSchema":{"properties":{"file_path":{"title":"File Path","type":"string"}},"required":["file_path"],"title":"parse_resumeArguments","type":"object"},"name":"parse_resume","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"parse_resumeOutput","type":"object"}},{"description":"逐步填充档案信息。\n\n何时调用：在 start_session 之后，根据用户描述逐步填充档案。\n每次调用填充一个 section，可以多次调用。\n\nArgs:\n    section: 填充到哪个 section，只接受 who / have / want\n        - who: 你是谁（姓名、教育、状态）\n        - have: 你有什么（技能、经历、资源）；关键技能请附带证据与置信度，\n            并标 authorship（作者身份）+ control_level（把控度自评 0-10），\n            整份简历自评写入 have.self_assessment\n        - want: 你想要什么（目标岗位、行业、薪资）\n            - 扫盲阶段可写 industry_id / awareness_level / scan_consent\n            - 深度规划确认行业后写 industry / industry_id\n            - expected_outcome: 最终想要的结果（大厂/平台、先上车再发展、\n              稳定优先、薪资优先、成长/技术优先）\n            - 必须由用户本人确认方向/城市/届别后，带 `user_confirmed=true` 写入；\n              模型从简历推断的目标只能作为候选，不能直接进入分析\n    data: 用户提供的信息，必须是 JSON 对象字符串\n        示例：'{\"name\":\"张三\", \"education\":\"计算机本科\", \"skills\":[\"Python\", \"React\"]}'\n        非法 JSON 会被拒绝且不写入档案\n","inputSchema":{"properties":{"data":{"title":"Data","type":"string"},"section":{"title":"Section","type":"string"}},"required":["section","data"],"title":"intakeArguments","type":"object"},"name":"intake","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"intakeOutput","type":"object"}},{"description":"确认档案信息完整，生成摘要，解锁分析工具。\n\nArgs:\n    skip_probing: 是否跳过「简历技能摸排」（默认 False）。\n        摸排是硬性必选步骤：先请用户用自己的话介绍 1-2 个项目并自评，\n        have 有技能但无用户确认证据（user_verified）或缺\n        authorship/control_level/self_assessment 自评时，本工具拒绝放行，\n        除非用户明确表示跳过，此时 LLM 传 skip_probing=True 并记录留痕——\n        不得以置信度高或简历字面为由自动跳过，\n        也不得由 AI 代填 authorship/control_level。\n\n何时调用：当用户已经通过 intake 填充了 who/have/want 三个 section 后调用。\n不要在档案不完整时调用此工具。\n\n前置条件：至少 who/have/want 中有一个 section 有内容。\n后续步骤：先 research_market 做市场调研（推荐），再 analyze_gaps。\n","inputSchema":{"properties":{"skip_probing":{"default":false,"title":"Skip Probing","type":"boolean"}},"title":"finalize_profileArguments","type":"object"},"name":"finalize_profile","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"finalize_profileOutput","type":"object"}},{"description":"导入目标岗位的 JD（职位描述）。\n\nArgs:\n    jd_text: JD 的结构化 JSON 文本\n        示例：'{\"company\":\"字节跳动\",\"role\":\"AI Agent 工程师\",\"requirements\":[\"LangGraph\",\"RAG\"]}'\n        空串 / 非 JSON / 非对象输入会被拒绝，不会污染档案。\n","inputSchema":{"properties":{"jd_text":{"title":"Jd Text","type":"string"}},"required":["jd_text"],"title":"import_jdArguments","type":"object"},"name":"import_jd","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"import_jdOutput","type":"object"}},{"description":"从文件导入目标岗位的 JD（职位描述）。支持 PDF、DOCX、Markdown、TXT 格式。\n\nArgs:\n    file_path: JD 文件的绝对路径\n","inputSchema":{"properties":{"file_path":{"title":"File Path","type":"string"}},"required":["file_path"],"title":"import_jd_fileArguments","type":"object"},"name":"import_jd_file","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"import_jd_fileOutput","type":"object"}},{"description":"目标选择——用户没有明确职业方向时，通过对话探索并选定目标。\n\n返回方法论上下文。LLM 按照方法论指引，用三轴定位（能力轴=have ×\n兴趣轴=对话挖掘 × 市场轴=fetch_company_jobs 真实数据）提出 2-3 个候选\n方向（带假设与 Fit Filters），引导用户选择，最后用 intake(section=\"want\")\n落定目标。\n\n何时调用：\n- 用户说「我不知道想做什么」/「帮我选方向」/ 完全没有目标时\n- 建档后发现 want 为空或方向模糊（如只有「想转行」没有具体目标）\n\n前置条件：档案已有 who/have（用户现状）。\n后续步骤：用户选定后 intake(section=\"want\") 写入，然后走 analyze_gaps。\n","inputSchema":{"properties":{},"title":"explore_goalsArguments","type":"object"},"name":"explore_goals","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"explore_goalsOutput","type":"object"}},{"description":"对比现状（have）与目标（want/target_jd），输出差距分析。\n\n返回方法论上下文。LLM 按照方法论指引，基于已抓取的真实数据\n分析差距，然后调用 save_gap_analysis(gap_json) 保存结果。\n\n前置条件：档案已通过 finalize_profile 确认。\n后续步骤：LLM 分析后调用 save_gap_analysis，然后调用 generate_roadmap。\n","inputSchema":{"properties":{},"title":"analyze_gapsArguments","type":"object"},"name":"analyze_gaps","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"analyze_gapsOutput","type":"object"}},{"description":"保存差距分析结果。\n\n何时调用：在 analyze_gaps 返回分析任务，LLM 完成分析后调用此工具保存结果。\n\nArgs:\n    gap_json: 差距分析的 JSON 字符串\n\nSchema（与 sop/resume_screening.yaml 的 output_schema 一致——以该 YAML 为唯一权威）:\n    {\n        \"match_score\": 65,            // 匹配度评分（0-100）\n        \"match_level\": \"partial_match\",\n        \"start_level\": \"小厂\",         // 起点层级：大厂/中厂/小厂/暂不可入（路线图使用）\n        \"strengths\": [                // 优势（对象数组）\n            {\n                \"area\": \"前端开发\",             // 领域\n                \"description\": \"1年经验\",       // 描述\n                \"resume_highlight\": \"...\",      // 可选：简历怎么写\n                \"interview_talk\": \"...\"         // 可选：面试怎么讲\n            }\n        ],\n        \"resume_red_flags\": [         // 简历负面信号（可选但强烈建议提供）\n            {\n                \"signal\": \"代码主要 AI 生成\",   // 负面信号\n                \"risk\": \"现场手撕代码站不住\",   // 风险说明\n                \"evidence_fix\": \"补 2 个完整手写项目\"  // 补证据动作\n            }\n        ],\n        \"resume_optimization\": {      // 简历过筛维度\n            \"ats_keywords\": [\"Python\", \"Agent\"],\n            \"missing_keywords\": [\"RAG\"],\n            \"highlight_projects\": [\n                {\"project\": \"...\", \"how_to_package\": \"...\", \"quantified_result\": \"...\"}\n            ],\n            \"resume_tips\": [\"...\"],\n            \"missing_experiences\": [\n                {\"experience\": \"...\", \"how_to_create\": \"...\"}\n            ]\n        },\n        \"interview_preparation\": {    // 面试通过维度\n            \"must_prepare\": [\n                {\"topic\": \"...\", \"type\": \"八股|项目|场景\", \"priority\": \"high\",\n                 \"estimated_time\": \"...\", \"prepare_advice\": \"...\"}\n            ],\n            \"project_deep_dive\": [\n                {\"project\": \"...\", \"likely_questions\": [\"...\"],\n                 \"key_points\": [\"...\"], \"star_story\": \"S:... T:... A:... R:...\"}\n            ],\n            \"system_design_topics\": [{\"topic\": \"...\", \"framework\": \"...\"}],\n            \"behavioral_questions\": [{\"question\": \"...\", \"story_template\": \"...\"}],\n            \"study_plan\": {\"unit_1\": [\"...\"], \"unit_2\": [\"...\"]}   // 学习单元（不排时间，不用 week）\n        },\n        \"skill_gaps\": [               // 技能差距（对象数组）\n            {\n                \"skill\": \"TypeScript\",\n                \"priority\": \"high\",          // high/medium/low\n                \"current_level\": \"无\",\n                \"required_level\": \"熟练\",    // 注意：字段名是 required_level\n                \"is_hidden\": false,          // 可选：true 表示 JD 未写但实际考核\n                \"how_to_improve\": \"...\",\n                \"source\": \"BOSS直聘 JD\"      // 数据来源，必填\n            }\n        ],\n        \"priority_actions\": [         // 优先行动项（对象数组）\n            {\"action\": \"学习 TypeScript 基础\", \"timeline\": \"...\", \"impact\": \"...\", \"difficulty\": \"...\"}\n        ],\n        \"market_context\": \"...\"       // 市场背景（来自真实抓取数据汇总）\n    }\n\n内容建议（不阻断保存）：skill_gaps 为空或缺来源、red_flags 字段不完整、\nAI 作者身份未在 red_flags 提及、未知字段——都会作为 advisories 返回并持久化，\n由 LLM 与用户决定是否补充。\n","inputSchema":{"properties":{"gap_json":{"title":"Gap Json","type":"string"}},"required":["gap_json"],"title":"save_gap_analysisArguments","type":"object"},"name":"save_gap_analysis","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_gap_analysisOutput","type":"object"}},{"description":"从证据池生成投递清单：城市硬筛，方向/技能/学历/档位/薪资软打分。\n\n何时调用：已采集证据池（collect_company_evidence）之后，准备批量投递时。\n本工具只使用 EvidenceRun 中的真实 JD，不编造岗位；数字与排序由代码计算。\n已投递（company + title 与档案投递记录匹配）默认不重复推荐。\n\nArgs:\n    city: 目标城市（空串使用证据池/档案中的目标城市）；城市是硬筛选，\n        location 含目标城市或「远程/全国/不限」的岗位保留。\n    role: 目标方向（空串使用证据池/档案中的目标岗位）；按分词命中 title/summary 软打分。\n    top: 最多返回多少个候选（默认 30）。\n    min_score: 最低匹配分（0-100），低于该分数的候选不返回。\n    include_applied: 是否把已投递岗位也纳入清单（状态标记为 applied）。\n\nReturns:\n    JSON 字符串：候选数量、top 列表、报告路径与下一步；\n    每个候选带公司、档位、岗位、城市、薪资、链接、匹配分、命中理由、缺口、状态。\n","inputSchema":{"properties":{"city":{"default":"","title":"City","type":"string"},"include_applied":{"default":false,"title":"Include Applied","type":"boolean"},"min_score":{"default":0,"title":"Min Score","type":"integer"},"role":{"default":"","title":"Role","type":"string"},"top":{"default":30,"title":"Top","type":"integer"}},"title":"build_application_listArguments","type":"object"},"name":"build_application_list","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"build_application_listOutput","type":"object"}},{"description":"记录或更新求职投递进展（求职漏斗）。\n\n何时调用：\n- 用户报告「投了某家公司」→ 不传 application_id 新建记录（company 必填）\n- 用户报告进展变动（进面试/挂了/拿 offer）→ 传 application_id 更新状态（company 可省略）\n\n数据纪律：\n- 只记录用户口述的真实事实，禁止编造投递记录或代替用户「估计」状态\n- 同公司+同岗位且有活跃（未拒绝/未撤回）记录时拒绝重复新建，\n  需更新请传返回值中的 application_id\n- 转化率基于事件历史，「面试后被拒」仍计入面试数\n\nArgs:\n    company: 公司名称（新建时必填；更新时可省略，与记录不符时以记录为准）\n    role: 岗位名称\n    status: 当前状态（applied/screening/interview/offer/rejected/withdrawn）\n    channel: 投递渠道（boss/官网/内推/其他）\n    source: JD 来源（URL 或文件名，可选）\n    notes: 备注（可选，如面试反馈、拒信原因）\n    application_id: 更新目标（app_NNN）；为空时新建记录\n","inputSchema":{"properties":{"allow_duplicate":{"default":false,"title":"Allow Duplicate","type":"boolean"},"application_id":{"default":"","title":"Application Id","type":"string"},"channel":{"default":"","title":"Channel","type":"string"},"company":{"default":"","title":"Company","type":"string"},"notes":{"default":"","title":"Notes","type":"string"},"role":{"default":"","title":"Role","type":"string"},"source":{"default":"","title":"Source","type":"string"},"status":{"default":"applied","title":"Status","type":"string"}},"title":"record_applicationArguments","type":"object"},"name":"record_application","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"record_applicationOutput","type":"object"}},{"description":"删除一条投递记录（录错、重复录入时使用，不可恢复）。\n\n何时调用：仅当用户明确要求删除某条投递记录（如记错了公司/岗位、重复录入）。\n正常的状态变迁（被拒/撤回/放养）不要删除——漏斗统计依赖完整历史。\n\nArgs:\n    application_id: 目标记录 ID（app_NNN）\n","inputSchema":{"properties":{"application_id":{"title":"Application Id","type":"string"}},"required":["application_id"],"title":"delete_applicationArguments","type":"object"},"name":"delete_application","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"delete_applicationOutput","type":"object"}},{"description":"搜寻同背景成功经验与面试要求（聚合本地知识库 + 牛客面经 + GitHub 经验帖 + 目标企业 JD）。\n\n何时调用：\n- analyze_gaps step 2「案例搜寻」——独立步骤，一次调用替代散抓，结果直接展示给用户\n- explore_goals / generate_roadmap 需要同背景案例佐证方向可行性时\n\nArgs:\n    role: 岗位方向（如 \"AI Agent 开发\"、\"后端\"）\n    education: 学历条件，支持「双非本」「211硕」「985」「专科」等（五档四层自动归一，\n        展开为搜索关键词 + 精确打分；给不出想去档位就留空）\n    company: 目标公司（可选，命中官方源时按面试要求口径补 JD；\"字节\"/\"boss\" 等别名可直传）\n    city: 城市（可选，官方/BOSS 源生效）\n    kind: \"both\"（默认）/ \"success\"（只要成功经验）/ \"requirements\"（只要面试要求）\n    limit: 返回条数上限（默认 12）\n\nReturns:\n    两节案例卡：同背景成功经验（学历标签/届别/来源/要点）+ 面试要求（JD 口径，boss 含薪资）。\n    各源独立失败不隐身——warnings 如实上报，绝不编造。\n\n纪律：\n- 每条案例卡展示给用户时必须标注来源（平台/url/时间）；\n- 本工具是 analyze step 2 的必调项，不得用 fetch_company_jobs 散抓替代；\n- 共性要求沉淀为差距分析输入（match_score 校准 / red flags / 优先行动）。\n","inputSchema":{"properties":{"city":{"default":"","title":"City","type":"string"},"company":{"default":"","title":"Company","type":"string"},"education":{"default":"","title":"Education","type":"string"},"kind":{"default":"both","title":"Kind","type":"string"},"limit":{"default":12,"title":"Limit","type":"integer"},"role":{"title":"Role","type":"string"}},"required":["role"],"title":"search_casesArguments","type":"object"},"name":"search_cases","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"search_casesOutput","type":"object"}},{"description":"筛选并确认目标企业池（阶段 6）。\n\n何时调用：目标岗位方向已确定，需要把方向落成具体目标企业池时。\n本工具只做目录筛选与确认门禁，不抓取 JD、不统计需求。\n\nArgs:\n    target_tiers: 目标档位，支持 JSON 数组或逗号/顿号/空格分隔；空则读档案（默认 大厂）\n    bridge_tiers: 桥接档位；空则读档案（默认 中厂）\n    city: 目标城市；空则读档案\n    role: 目标岗位；空则读档案\n    industry: 目标行业；空则默认 互联网\n    include: 额外纳入的企业（id/名称/别名），支持 JSON 数组或分隔符\n    exclude: 排除的企业，支持 JSON 数组或分隔符；同一企业同时出现时 include 优先\n    confirmed: 用户已确认名单时传 true；未确认只生成推荐池，不允许下游\n\nReturns:\n    JSON 字符串：状态、artifact id、按档位分组的企业、可抓/不可抓、\n    数据缺口与下一步建议。\n","inputSchema":{"properties":{"bridge_tiers":{"default":"","title":"Bridge Tiers","type":"string"},"city":{"default":"","title":"City","type":"string"},"confirmed":{"default":false,"title":"Confirmed","type":"boolean"},"exclude":{"default":"","title":"Exclude","type":"string"},"include":{"default":"","title":"Include","type":"string"},"industry":{"default":"互联网","title":"Industry","type":"string"},"role":{"default":"","title":"Role","type":"string"},"target_tiers":{"default":"","title":"Target Tiers","type":"string"}},"title":"select_target_companiesArguments","type":"object"},"name":"select_target_companies","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"select_target_companiesOutput","type":"object"}},{"description":"检索本地知识库（用户积累的求职资料）。\n\n只搜索用户主目录 ~/.career-kit/knowledge/：scraper 抓取自动存入的 JD/面经，\n以及用户手动放入的简历、市场资料。不联网，不调用 LLM。\n\n何时调用：\n- 分析前查找已积累的同背景案例、目标公司 JD\n- 查询之前抓取过的面经内容\n\nArgs:\n    query: 搜索关键词\n        示例：「AI Agent 面经」「字节跳动 JD」「双非 转 AI」\n\nReturns:\n    每条含来源文件路径、相关度、内容预览。\n    无结果时返回下一步指引（用 fetch_company_jobs 抓取）——\n    此时不要基于自身知识编造市场数据。\n","inputSchema":{"properties":{"query":{"title":"Query","type":"string"}},"required":["query"],"title":"search_knowledgeArguments","type":"object"},"name":"search_knowledge","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"search_knowledgeOutput","type":"object"}},{"description":"导入已有的职业规划文档。\n\n支持 PDF、DOCX、Markdown、TXT 格式。\n如果已有计划，会在对话中对比新旧内容，由用户决定取舍。\n\nArgs:\n    file_path: 计划文件的绝对路径\n","inputSchema":{"properties":{"file_path":{"title":"File Path","type":"string"}},"required":["file_path"],"title":"import_planArguments","type":"object"},"name":"import_plan","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"import_planOutput","type":"object"}},{"description":"获取指定企业数据源的完整使用教程。\n\n何时调用：第一次使用某个数据源前（或在 fetch_company_jobs 报错后）调用，\n了解该源能搜什么、参数语义、返回字段、登录要求和失败处理。\n\nArgs:\n    company: 企业 ID（通过 list_data_sources 获取）\n        示例：bytedance\n","inputSchema":{"properties":{"company":{"title":"Company","type":"string"}},"required":["company"],"title":"get_scraper_guideArguments","type":"object"},"name":"get_scraper_guide","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_scraper_guideOutput","type":"object"}},{"description":"列出所有已注册的企业招聘数据源。\n\n何时调用：第一次需要真实岗位/面经数据时先调用本工具，\n看有哪些源、各支持什么参数；然后用 get_scraper_guide(company)\n查看目标源的完整教程（返回字段、示例、注意事项），再调 fetch_company_jobs。\n","inputSchema":{"properties":{},"title":"list_data_sourcesArguments","type":"object"},"name":"list_data_sources","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"list_data_sourcesOutput","type":"object"}},{"description":"搜索指定企业的岗位或面经（实时抓取真实数据）。\n\n何时调用：需要真实岗位数据（差距分析、路线图、薪资行情）或面经数据时调用。\n前置条件：先调用 list_data_sources 查看该企业支持的参数，params 只传列出的参数。\n\nArgs:\n    company: 企业 ID（通过 list_data_sources 获取）\n        示例：bytedance\n    params: 搜索参数 JSON 字符串（各企业支持的参数不同）\n        示例：'{\"keyword\":\"AI Agent\", \"city\":\"北京\"}'\n\nReturns:\n    每行一个岗位：标题 | 地点 | 薪资（如有）、链接、内容摘要。\n    boss 返回岗位（含薪资范围）；其余 JD 源不公开薪资（见各源 guide）；\n    nowcoder 返回面经，github 返回经验帖。\n    失败时返回错误原因和恢复建议——此时如实告知用户，不要编造数据。\n    BOSS 直聘需要登录：未登录会返回 LOGIN_REQUIRED（附问题与登录命令）——\n    先问用户「我可以直接帮你打开登录窗口扫码，要现在登录吗」；\n    用户同意后用 harness 的终端/Bash 直接运行 login_command（用户只需扫码），\n    不要把命令丢给用户手动执行，也不要把登录缺失直接当抓取失败宣布。\n","inputSchema":{"properties":{"company":{"title":"Company","type":"string"},"params":{"default":"{}","title":"Params","type":"string"}},"required":["company"],"title":"fetch_company_jobsArguments","type":"object"},"name":"fetch_company_jobs","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"fetch_company_jobsOutput","type":"object"}},{"description":"获取岗位详情或面经全文（JD 完整描述、任职要求）。\n\n何时调用：fetch_company_jobs 结果中某个岗位/面经需要深入分析时调用。\nurl 必须来自 fetch_company_jobs 的返回结果。\n\nArgs:\n    url: 岗位详情页 URL（来自 fetch_company_jobs 结果）\n    company: 企业 ID（可选，不填则自动按 URL 匹配 Scraper）\n\nReturns:\n    岗位：标题、公司、地点、薪资（如有）、岗位描述全文、任职要求。\n    面经：标题、面试问题与经验全文。\n","inputSchema":{"properties":{"company":{"default":"","title":"Company","type":"string"},"url":{"title":"Url","type":"string"}},"required":["url"],"title":"fetch_jd_detailArguments","type":"object"},"name":"fetch_jd_detail","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"fetch_jd_detailOutput","type":"object"}},{"description":"采集目标企业的岗位 JD 与面经，生成 EvidenceRun 与证据池报告（阶段 7）。\n\n何时调用：目标企业池已确认（select_target_companies）之后。\n本工具只采集事实：抓取、城市硬筛、详情补抓、去重、来源状态与置信度；\nLLM 不参与，不编造缺失内容。单源失败不影响整批，失败原因写入 source_status 与 gaps。\n\nBOSS 直聘纪律（include_boss=True 时）：\n- BOSS 是跨公司补充源，只补充薪资与广度，不能替代目标企业池；\n- 抓取前必须先问用户是否抓取 BOSS，用户同意后传 boss_confirmed=true；\n- 未确认返回 CONFIRMATION_REQUIRED；确认但未登录返回 LOGIN_REQUIRED，\n  先问用户是否现在登录，绝不把登录失败直接当抓取失败；\n- 用户同意登录后，用 harness 的终端/Bash 直接运行 login_command（用户只需扫码），\n  不要把命令丢给用户手动执行。\n\nArgs:\n    company_pool_id: 目标企业池 artifact id；空串取当前档案最新且已确认的企业池\n    per_company_limit: 每家企业的 JD 抓取上限\n    max_companies: 本次最多抓取的企业数（BOSS 不占该名额）\n    max_jd: 最终保留的 JD 上限\n    max_interviews: 最终保留的面经上限\n    refresh: true 时不复用 profile.research 中 7 天内的历史样本\n    include_boss: 是否把 BOSS 直聘作为补充证据源（默认关闭）\n    boss_confirmed: 用户已确认抓取 BOSS 时为 true；未确认会返回 CONFIRMATION_REQUIRED\n\nReturns:\n    JSON 字符串：artifact id、样本统计（含 BOSS 条数）、置信度、来源状态、\n    数据缺口、报告完整路径与下一步 analyze_company_requirements。\n","inputSchema":{"properties":{"boss_confirmed":{"default":false,"title":"Boss Confirmed","type":"boolean"},"company_pool_id":{"default":"","title":"Company Pool Id","type":"string"},"include_boss":{"default":false,"title":"Include Boss","type":"boolean"},"max_companies":{"default":15,"title":"Max Companies","type":"integer"},"max_interviews":{"default":30,"title":"Max Interviews","type":"integer"},"max_jd":{"default":50,"title":"Max Jd","type":"integer"},"per_company_limit":{"default":5,"title":"Per Company Limit","type":"integer"},"refresh":{"default":false,"title":"Refresh","type":"boolean"}},"title":"collect_company_evidenceArguments","type":"object"},"name":"collect_company_evidence","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"collect_company_evidenceOutput","type":"object"}},{"description":"准备执行方案校准上下文（阶段 9 第一步，不写档案）。\n\n何时调用：阶段 8 的 RequirementProfile 已保存，用户准备把基线路线图\n升级为执行版时。\n\n前置条件：档案已有基线路线图（profile.plan），且存在 RequirementProfile。\n\nArgs:\n    requirement_profile_id: RequirementProfile artifact id；\n        为空时取当前档案最新的 RequirementProfile。\n\n返回 JSON（字符串）：\n    - methodology: 校准方法论（原则、步骤、output_schema）\n    - requirement: 需求摘要（高频要求、公司特定要求、硬门槛、interpretation）\n    - baseline_plan: 当前基线路线图\n    - completed_evidence: 已完成/已跳过任务（代码提取，含 how_to/done_criteria）\n    - capability_evidence: 档案中沉淀的能力证据（可选）\n    - alignment_prompt: 给 LLM 的输出模板与规则（每条 change 必须带 evidence_ids）\n\n下一步：LLM 设计好 strategy_summary / roadmap / changes / diff_summary 后，\n调用 save_execution_alignment 预览；用户确认后再传 confirmed=true 应用。\n","inputSchema":{"properties":{"requirement_profile_id":{"default":"","title":"Requirement Profile Id","type":"string"}},"title":"plan_execution_alignmentArguments","type":"object"},"name":"plan_execution_alignment","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"plan_execution_alignmentOutput","type":"object"}},{"description":"预览或应用执行方案校准（用户确认是硬门禁）。\n\n何时调用：完成 plan_execution_alignment 后，LLM 设计了执行版路线图与变更清单。\n\n校验纪律（代码执行，LLM 不可绕过）：\n- requirement_profile_id 必须存在，且与当前档案需求链路一致；\n- roadmap.phases 非空，每个 phase 有 name/goal，milestones/tasks 结构合法；\n- 每条 change 的 type 合法且 evidence_ids 非空——没有证据的变更不允许落库；\n- diff_summary 必填。\n\nArgs:\n    alignment_json: 校准方案 JSON 字符串，Schema：\n        {\n            \"requirement_profile_id\": \"rp_...\",\n            \"strategy_summary\": \"执行版整体策略\",\n            \"roadmap\": {\n                \"strategy_summary\": \"与顶层一致\",\n                \"phases\": [\n                    {\n                        \"type\": \"learn/project/intern/research\",\n                        \"name\": \"阶段名\",\n                        \"goal\": \"阶段目标\",\n                        \"kpi\": {\"metric\": \"\", \"target\": \"\", \"evidence\": \"\"},\n                        \"milestones\": [\n                            {\n                                \"name\": \"里程碑\",\n                                \"done_criteria\": \"\",\n                                \"tasks\": [{\"name\": \"\", \"description\": \"\", \"priority\": \"high\"}]\n                            }\n                        ]\n                    }\n                ]\n            },\n            \"changes\": [\n                {\n                    \"type\": \"add_task/modify_task/remove_task/reorder_tasks/\"\n                            \"modify_phase/add_phase/remove_phase/reorder_phases\",\n                    \"phase_id\": \"\",\n                    \"task_id\": \"\",\n                    \"details\": {\"name\": \"\"},\n                    \"reason\": \"\",\n                    \"evidence_ids\": [\"JD001\"]\n                }\n            ],\n            \"diff_summary\": \"本次校准的差异摘要\"\n        }\n    confirmed: 用户是否已确认应用。false 只保存预览 artifact，返回 diff 与\n        确认提示，不修改档案；true 才替换 profile.plan、维护 plan_history /\n        adjustments / core_state 并刷新职业地图。\n\n返回 JSON（字符串）：\n    - confirmed=false: status=needs_confirmation，含 baseline/proposed 概览、\n      changes、保留/移除任务清单与确认提示；\n    - confirmed=true: status=ok，含应用摘要、execution_plan_id、map_path、\n      next_steps（get_next_tasks / generate_tasks）。\n","inputSchema":{"properties":{"alignment_json":{"title":"Alignment Json","type":"string"},"confirmed":{"default":false,"title":"Confirmed","type":"boolean"}},"required":["alignment_json"],"title":"save_execution_alignmentArguments","type":"object"},"name":"save_execution_alignment","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_execution_alignmentOutput","type":"object"}},{"description":"获取轻量行业快照（扫盲子流程）。\n\n何时调用：用户完全不了解行业，且明确同意先花几分钟了解时。\n不是独立产品模式，不要求简历，不替代后续目标选择/规划。\n\nArgs:\n    industry: 行业 id、名称或别名（MVP 支持 internet / 互联网 / 软件 / 计算机；\n        energy / 能源 / 能源动力 / 电力 / 新能源；\n        electronics / 电子 / 半导体 / 芯片 / 集成电路 / 通信）\n    major: 可选，用于展示“你的专业在行业中的位置”；专业不是入口\n    school: 可选，当前仅记录，不用于同校过滤\n    degree: 可选，当前仅记录\n    graduation_year: 可选，当前仅记录\n    city: 可选，招聘样本城市；空为全国\n    limit: 招聘样本上限（1-40）\n\nReturns:\n    行业地图、岗位卡、招聘样本与薪资、相关专业、来源、数据缺口、下一步。\n    没有数据时如实标注，不编造数字。\n","inputSchema":{"properties":{"city":{"default":"","title":"City","type":"string"},"degree":{"default":"","title":"Degree","type":"string"},"graduation_year":{"default":"","title":"Graduation Year","type":"string"},"industry":{"default":"internet","title":"Industry","type":"string"},"limit":{"default":12,"title":"Limit","type":"integer"},"major":{"default":"","title":"Major","type":"string"},"school":{"default":"","title":"School","type":"string"}},"title":"get_industry_snapshotArguments","type":"object"},"name":"get_industry_snapshot","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_industry_snapshotOutput","type":"object"}},{"description":"检测旧计划是否仍适合新证据（只读检测器，不修改档案）。\n\n何时调用：\n- 证据池刷新后：trigger=\"evidence_refresh\"；\n- 完成一个里程碑后：trigger=\"milestone\"；\n- 周检视时：trigger=\"weekly_review\"；\n- 用户主动问「计划还合适吗」：trigger=\"manual\"。\n\n工作方式：读取当前档案与最新 CompanyPool / EvidenceRun /\nRequirementProfile / ExecutionPlan，返回确定性信号（证据新鲜度、链路一致性、\n要求覆盖率、任务匹配、漏斗样本）。不写档案、不改计划、不调用 LLM。\n\nArgs:\n    trigger: 触发场景，可选 manual / evidence_refresh / milestone / weekly_review。\n\nReturns:\n    JSON 字符串：\n    - status: aligned / minor_drift / major_drift / stale_evidence / incomplete_chain\n    - signals: 每条含 code / severity / message / evidence_ids / task_ids\n    - recommended_action / next_tool: 建议动作与下一步工具\n    - question_for_user: 可直接问用户的一句话（aligned 时为空）\n\n使用纪律：\n- status=major_drift 时，必须把 question_for_user 的意思转问用户，\n  不要替用户决定；\n- 用户同意后才调用 next_tool 指向的采集/校准工具；\n- 不要根据 signals 自行改写计划，也不要制造焦虑；只陈述事实与证据。\n","inputSchema":{"properties":{"trigger":{"default":"manual","title":"Trigger","type":"string"}},"title":"check_plan_fitArguments","type":"object"},"name":"check_plan_fit","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"check_plan_fitOutput","type":"object"}},{"description":"列出所有职业档案，标记当前使用中的档案。\n\n何时调用：用户想查看/选择/切换档案，或想知道当前在用哪份档案时。\n多档案场景：一份电脑多人使用、一个人多份规划（转行前后）、测试备份等。\n\nReturns:\n    每个档案：名称、是否当前使用、身份、目标、版本、更新时间。\n","inputSchema":{"properties":{},"title":"list_profilesArguments","type":"object"},"name":"list_profiles","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"list_profilesOutput","type":"object"}},{"description":"切换当前使用的档案。\n\n何时调用：用户有多份档案，想切换到另一份继续规划时。\n切换后，所有建档/分析/规划/任务工具都操作新档案。\n\nArgs:\n    profile_name: 目标档案名（用 list_profiles 查看可用档案）\n\nReturns:\n    切换结果 + 新档案的当前状态摘要。\n","inputSchema":{"properties":{"profile_name":{"title":"Profile Name","type":"string"}},"required":["profile_name"],"title":"switch_profileArguments","type":"object"},"name":"switch_profile","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"switch_profileOutput","type":"object"}},{"description":"删除一份职业档案——移入回收站，可恢复。\n\n何时调用：用户确认要废弃某份档案时。删除是回收站式的：档案移入\n本地回收站目录（trash/），可用 list_trash 查看、restore_profile 恢复，\n不会真正丢失数据。\n\nArgs:\n    profile_name: 要删除的档案名（用 list_profiles 查看可用档案）\n    confirm: 必须显式传 \"true\" 才会执行；其他值只返回确认提示不删除\n\nReturns:\n    删除结果 + 回收站位置 + 恢复指引。\n","inputSchema":{"properties":{"confirm":{"default":"","title":"Confirm","type":"string"},"profile_name":{"title":"Profile Name","type":"string"}},"required":["profile_name"],"title":"delete_profileArguments","type":"object"},"name":"delete_profile","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"delete_profileOutput","type":"object"}},{"description":"列出回收站中的档案（已删除、可恢复项）。\n\n何时调用：用户想知道删了哪些档案、能否恢复时。\n恢复：restore_profile(profile_name=\"<档案名>\")。\n","inputSchema":{"properties":{},"title":"list_trashArguments","type":"object"},"name":"list_trash","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"list_trashOutput","type":"object"}},{"description":"从回收站恢复档案。\n\n何时调用：用户删除档案后又想找回时。恢复的是回收站中最新一份备份；\n目标位置已存在同名档案时拒绝恢复（防覆盖新数据）。\n\nArgs:\n    profile_name: 要恢复的档案名（用 list_trash 查看可恢复项）\n\nReturns:\n    恢复结果 + 档案摘要。\n","inputSchema":{"properties":{"profile_name":{"title":"Profile Name","type":"string"}},"required":["profile_name"],"title":"restore_profileArguments","type":"object"},"name":"restore_profile","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"restore_profileOutput","type":"object"}},{"description":"企业需求分析：统计 JD 与面经的确定性数据，并返回 LLM 解读提示。\n\n何时调用：collect_company_evidence 之后、plan_execution_alignment 之前。\nevidence_run_id 为空时使用当前档案最新的 EvidenceRun。\n\n产出：RequirementProfile 草稿（id 前缀 rp_）落库到 artifact store，\n并更新档案 core_state。数字、公司覆盖、Wilson 区间与硬门槛均由代码计算；\nLLM 只能按 analysis_prompt 填写 interpretation。\n\nArgs:\n    evidence_run_id: 目标 EvidenceRun id；空串取当前档案最新一次采集。\n\nReturns:\n    统计摘要 + analysis_prompt + 下一步（save_requirement_profile）。\n","inputSchema":{"properties":{"evidence_run_id":{"default":"","title":"Evidence Run Id","type":"string"}},"title":"analyze_company_requirementsArguments","type":"object"},"name":"analyze_company_requirements","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"analyze_company_requirementsOutput","type":"object"}},{"description":"保存企业需求的定性解读，数字由代码复核。\n\n何时调用：analyze_company_requirements 返回 analysis_prompt 之后。\n\nArgs:\n    analysis_json: JSON 字符串，必须包含 requirement_profile_id 与 interpretation。\n        interpretation 只允许 summary、priorities、company_notes、risks、notes；\n        任何数字/列表字段（high_frequency、gaps 等）都会被拒绝。\n\nReturns:\n    保存摘要 + 下一步（plan_execution_alignment）。\n","inputSchema":{"properties":{"analysis_json":{"title":"Analysis Json","type":"string"}},"required":["analysis_json"],"title":"save_requirement_profileArguments","type":"object"},"name":"save_requirement_profile","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_requirement_profileOutput","type":"object"}},{"description":"市场调研：建档后的独立一步——批量抓取真实 JD 与同学学历经历。\n\n何时调用：finalize_profile 之后、analyze_gaps 之前（推荐顺序，\n差距分析会直接引用调研数据；无调研时分析只是软提示）。\n\n产出：调研报告三件套（md 可读 / html 阅读版 / json 原始数据）落盘到\n用户资产目录（~/CareerKit/<档案>/调研报告/），报告内容 100% 来自真实\n抓取数据、每条带来源链接——这是 Career Kit 的核心卖点「来源真实」。\n\nReturns:\n    方法论与 4 步模板；随后调用 gather_research_data 执行一次抓取。\n","inputSchema":{"properties":{},"title":"research_marketArguments","type":"object"},"name":"research_market","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"research_marketOutput","type":"object"}},{"description":"批量抓取真实市场数据并生成调研报告（调研步核心动作，一次调用完成）。\n\nArgs:\n    jd_specs: JD 抓取范围 JSON 数组，目标 1 家 + 对照 2-4 家，如\n        [{\"company\": \"字节\", \"limit\": 6}, {\"company\": \"boss\", \"city\": \"北京\", \"limit\": 6}]；\n        company 支持别名（字节/boss/官方源id），其余键原样透传给对应源（city/keyword/limit…）\n    case_query: 同学历案例查询 JSON 对象，如\n        {\"role\": \"AI Agent 开发\", \"education\": \"双非本\", \"company\": \"字节\", \"kind\": \"both\"}\n        ——education 用五档四层写法（985/211/双非/专科 × 博/硕/本/专）\n    direction: 报告标题与档案归档使用的方向名（默认取 case_query.role）\n    city: 报告上下文城市（默认取 case_query.city / want / who）\n    boss_confirmed: 范围含 BOSS 直聘时必须先问用户，用户同意后传 true。\n         BOSS 需要扫码登录（登录态 2 小时有效）；未确认会返回 CONFIRMATION_REQUIRED\n        让你先去问用户；确认但未登录会在抓取前直接返回 LOGIN_REQUIRED（不浪费整批抓取），\n        让你问用户是否现在登录。用户同意后用 harness 的终端/Bash 直接运行\n        login_command（用户只需扫码），不要把命令丢给用户手动执行。\n\nReturns:\n    汇报文本：样本统计 + 来源成功/失败 + 报告完整路径（index.html 资产总览入口） +\n    数据缺口 + 下一步衔接分析。报告内容 100% 代码渲染自抓取数据（不经 LLM）。\n\n纪律：\n- 详情必抓：每条岗位抓取正文（description/requirements）；无详情岗位直接剔除，\n  剔除数量进来源面板与数据缺口（没有详情的岗位对调研没有价值）\n- BOSS 例外：detail_status=list_only 的行保留薪资/公司/地点/技能，不补详情不剔除；\n  list_only 数量进来源面板、counts 与数据缺口，需要全文时用 fetch_jd_detail 补抓\n- 任一源失败不中断；失败原因进报告「来源状态面板」如实展示\n- BOSS 抓取前必须先问用户（boss_confirmed=true 才算确认）；登录缺失时先问\n  「是否现在登录」再决定，不得把登录失败直接当调研失败宣布\n- 全部失败时返回可读错误并引导 import_jd / import_jd_file，绝不编造\n","inputSchema":{"properties":{"boss_confirmed":{"default":false,"title":"Boss Confirmed","type":"boolean"},"case_query":{"default":"","title":"Case Query","type":"string"},"city":{"default":"","title":"City","type":"string"},"direction":{"default":"","title":"Direction","type":"string"},"jd_specs":{"default":"","title":"Jd Specs","type":"string"}},"title":"gather_research_dataArguments","type":"object"},"name":"gather_research_data","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"gather_research_dataOutput","type":"object"}},{"description":"按花名册标识读取调研详情：先筛选、后读取，避免一次性加载全量正文。\n\n何时调用：\n- 调研完成后需要深读少量岗位或案例：先不传 ids 调用，获取花名册与聚合摘要；\n  从中选择 3-5 个标识，再带 ids 读取全文；\n- 交由子 Agent 执行（宿主 harness 支持时）：用 Task 发起 research-analyst\n  （仓库已提供 .opencode/agent 与 .claude/agents 定义），把花名册、聚合摘要与\n  返回的 `delegate` 方案交给它，由它自行筛选并读取选定条目，回传结论与重点名单，\n  父 Agent 仅汇总结论。\n\nArgs:\n    ids: 可选，JSON 数组或逗号/空格分隔的标识（如 \"JD01,JD03\"）；\n        不传时返回花名册（标识与摘要）及聚合摘要\n    kind: \"jd\"（岗位，默认）/ \"case\"（面经与他人发展路径）\n    limit: 单次读取上限（默认 6，最大 10）；建议分批读取\n\nReturns:\n    kind=jd：岗位描述与任职要求全文（读取本地已抓取数据，无网络请求）；\n    kind=case：要点、命中原因与本地全文；无本地副本时返回原始链接，\n    并提示通过 fetch_jd_detail 读取原帖。\n","inputSchema":{"properties":{"ids":{"default":"","title":"Ids","type":"string"},"kind":{"default":"jd","title":"Kind","type":"string"},"limit":{"default":6,"title":"Limit","type":"integer"}},"title":"read_research_detailsArguments","type":"object"},"name":"read_research_details","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"read_research_detailsOutput","type":"object"}},{"description":"基于差距分析生成分阶段职业路线图。\n\n返回方法论上下文。LLM 按照方法论指引，结合差距分析结果，\n设计分阶段路线图，然后调用 save_roadmap(roadmap_json) 保存。\n\n前置条件：差距分析已完成（save_gap_analysis 已调用）。\n后续步骤：LLM 生成路线图后调用 save_roadmap，然后调用 generate_tasks。\n","inputSchema":{"properties":{},"title":"generate_roadmapArguments","type":"object"},"name":"generate_roadmap","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"generate_roadmapOutput","type":"object"}},{"description":"保存路线图到档案（只校验结构；质量项以建议形式返回，不阻断保存）。\n\n质量判断交给 LLM、审计员与用户：层级跨度、KPI、届别、可执行性等\n以 advisories 返回并持久化，不再拒绝保存；force 参数仅为兼容保留。\n\nArgs:\n    roadmap_json: 路线图的 JSON 字符串\n    force: 已废弃，保留兼容（不再影响保存）\n\nSchema（与 sop/roadmap.yaml 一致）:\n    {\n        \"strategy_summary\": \"整体策略说明\",\n        \"start_level\": \"小厂\",          // 可选：本次路线图使用的起点档位\n        \"phases\": [                  // 阶段列表\n            {\n                \"type\": \"learn\",              // learn/project/intern/research\n                \"name\": \"基础学习\",           // 阶段名称\n                \"goal\": \"掌握基础\",           // 阶段目标\n                \"kpi\": {\"metric\": \"...\", \"target\": \"...\", \"evidence\": \"...\"},\n                \"resume_value\": \"\",           // project/intern/research 必填\n                \"target_level\": \"中厂\",       // 本阶段目标层级（大厂/中厂/小厂/暂不可入），投递实习阶段必填\n                \"start_level_after\": \"\",      // 可选：复评升级后的起点档位（如 learn 阶段复评达标，后续阶段起点升为中厂）\n                \"graduation_year\": \"\",        // 可选：该阶段面向的毕业届（校招/实习阶段建议标注）\n                \"condition\": \"\",              // 可选：分支/备用路径说明（如「复评不达标则延长本阶段，改投中厂」）\n                \"company\": \"XX公司\",           // 目标公司名（公开常识，可直接写）\n                \"rationale\": \"对双非友好\",     // 推荐理由\n                \"jd\": null,                    // 具体 JD 细节——有真实数据（抓取/导入）才填\n                \"jd_status\": \"not_required\",   // has_jd / pending_user_import / not_required\n                \"confirmed\": false,            // 用户已确认「先占位后补JD」\n                \"milestones\": [               // 里程碑列表\n                    {\n                        \"name\": \"Python 基础\",        // 里程碑名称\n                        \"done_criteria\": \"能独立写出...\", // 完成标准\n                        \"deliverable\": \"\",             // 交付物\n                        \"tasks\": [                     // 任务列表\n                            {\n                                \"name\": \"学习装饰器\",      // 任务名称\n                                \"description\": \"...\",     // 可选\n                                \"priority\": \"high\"        // 可选\n                            }\n                        ]\n                    }\n                ]\n            }\n        ]\n    }\n\n注意：\n- 阶段数由差距与目标决定（通常 3-6 段），不要求固定 4 段。\n- 产品不规划时间：建议任务名不带时间节奏词（每周/每天等）；带时长描述会进建议清单，不阻断保存。\n- 知识光谱纪律：公司名是常识可自由写；JD 细节必须有真实数据，拿不到就 jd 置空 +\n  jd_status=pending_user_import（占位），并说明后续自动抓取会由企业适配阶段按目标企业与你的届别补齐，\n  也可先用 import_jd 补充；用户确认后 confirmed 置 true。\n- 层级是命中率参考，不是准入许可：跨级会给出建议，由 LLM 结合证据（作品集/内推/前序交付）\n  与用户判断，不禁止投递；start_level_after 只影响后续阶段的建议，不写回差距分析。\n- 返回值的 advisories 会持久化到档案，请在向用户交付时如实复述未解决项。\n","inputSchema":{"properties":{"force":{"default":false,"title":"Force","type":"boolean"},"roadmap_json":{"title":"Roadmap Json","type":"string"}},"required":["roadmap_json"],"title":"save_roadmapArguments","type":"object"},"name":"save_roadmap","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_roadmapOutput","type":"object"}},{"description":"保存路线图审计结果（第二意见；绑定当前路线图版本，不阻断定稿）。\n\n何时调用：career-roadmap-auditor 每完成一轮审计都要调用本工具落库。\n\nArgs:\n    audit_json: 审计结果的 JSON 字符串\n\nSchema:\n    {\n        \"verdict\": \"PASS_WITH_NOTES\",   // PASS / PASS_WITH_NOTES / FAIL（必填）\n        \"issues\": [                     // FAIL 必填；PASS_WITH_NOTES 可带建议\n            {\"checklist_id\": \"start\", \"problem\": \"起点档位无打分依据\", \"fix\": \"补 rubric 评分\"}\n        ],\n        \"notes\": [\"非阻断建议\"],         // 可选\n        \"summary\": \"一句话结论\"          // 可选\n    }\n\n纪律：FAIL 只用于硬矛盾（编造 JD、无依据跨级、KPI 完全缺失、届别硬冲突、\n任务不可打卡）；其余进 notes。审计记录按 roadmap_hash 绑定，路线图内容变化后\n自动标记过期，但不会阻断保存。\n","inputSchema":{"properties":{"audit_json":{"title":"Audit Json","type":"string"}},"required":["audit_json"],"title":"save_roadmap_auditArguments","type":"object"},"name":"save_roadmap_audit","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_roadmap_auditOutput","type":"object"}},{"description":"从路线图生成当前阶段的任务列表。\n\n何时调用：在 save_roadmap 之后调用，将路线图转化为可执行的任务。\n前置条件：档案中已有路线图（plan.roadmap）。\n后续步骤：调用 get_next_tasks 查看当前阶段的下一步任务。\n\n只生成当前阶段（第一个有未完成任务的阶段；全部完成后取下一个尚未\n生成任务的阶段），后续阶段保留里程碑形态，避免出现一大堆空壳任务。\n重建按「阶段 + 里程碑 + 任务名」复用旧任务 ID 与打卡进度。\n","inputSchema":{"properties":{},"title":"generate_tasksArguments","type":"object"},"name":"generate_tasks","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"generate_tasksOutput","type":"object"}},{"description":"生成当前阶段的详细路线（执行期细化）。\n\n何时调用：用户想进入执行、需要把当前阶段拆成可打卡的颗粒度时调用。\n只细化当前阶段（第一个有未完成任务的阶段），不生成后续阶段。\n\n返回方法论上下文。LLM 按照 detailed_route 方法论指引，结合真实岗位数据\n（fetch_company_jobs / fetch_jd_detail）设计当前阶段的打卡任务，\n然后调用 save_current_detail(detail_json) 保存。\n\n前置条件：路线图已保存（save_roadmap）。任务尚未生成时以第一段为当前阶段。\n后续步骤：LLM 设计后调用 save_current_detail，再 generate_tasks 生成/合并任务。\n","inputSchema":{"properties":{},"title":"detail_current_phaseArguments","type":"object"},"name":"detail_current_phase","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"detail_current_phaseOutput","type":"object"}},{"description":"保存当前阶段的详细路线。\n\nArgs:\n    detail_json: 详细路线的 JSON 字符串\n\nSchema（与 sop/detailed_route.yaml 一致）:\n    {\n        \"phase_id\": \"phase_1\",\n        \"tasks\": [\n            {\n                \"name\": \"LeetCode 热题 100：数组与字符串 5 题\",\n                \"description\": \"...\",\n                \"how_to\": [\"先想 10 分钟\", \"再写代码\", \"错题隔天重做\"],\n                \"resources\": [\n                    {\"label\": \"LeetCode 热题 100\",\n                     \"url\": \"https://leetcode.cn/problem-list/2cktkvj/\"}\n                ],\n                \"done_criteria\": \"独立写出 5 题并通过，错题已记录\",\n                \"priority\": \"high\",\n                \"checkin_mode\": \"daily\",\n                \"checkin_goal\": 5\n            }\n        ]\n    }\n","inputSchema":{"properties":{"detail_json":{"title":"Detail Json","type":"string"}},"required":["detail_json"],"title":"save_current_detailArguments","type":"object"},"name":"save_current_detail","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"save_current_detailOutput","type":"object"}},{"description":"获取当前阶段的下一步任务。\n\n何时调用：用户想知道「现在该做什么」时调用。\n返回当前阶段（第一个有未完成任务的阶段）的接下来几个任务和阶段进度。\n产品不规划时间——顺序归产品，时间归用户。\n","inputSchema":{"properties":{},"title":"get_next_tasksArguments","type":"object"},"name":"get_next_tasks","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_next_tasksOutput","type":"object"}},{"description":"打卡任务。\n\n何时调用：用户完成或跳过某个任务时调用。\n完成的任务会沉淀为能力证据写入档案。\n\nArgs:\n    task_id: 任务 ID（从 get_next_tasks 获取）\n    status: 打卡状态（completed 或 skipped）\n    notes: 备注（可选）\n    amount: 打卡进度（可选）——daily 传 1 表示今天打卡（同日幂等），\n        传 >1 表示目标天数；percent 传目标百分比（绝对值，如 60 表示 60%）\n","inputSchema":{"properties":{"amount":{"default":0,"title":"Amount","type":"number"},"notes":{"default":"","title":"Notes","type":"string"},"status":{"default":"completed","title":"Status","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"checkin_taskArguments","type":"object"},"name":"checkin_task","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"checkin_taskOutput","type":"object"}},{"description":"触发洞察检查。\n\n何时调用：\n- 用户完成阶段后（trigger_type=\"stage_audit\"）\n- 用户报告事件时（trigger_type=\"event\"，如拿到面试、目标变更）\n\n工作流程：\n1. 调用 trigger_insight 获取分析 prompt\n2. LLM 根据 prompt 分析用户进度\n3. LLM 生成洞察 JSON\n4. 调用 apply_insight(insight_json) 应用结果\n\nArgs:\n    trigger_type: 触发类型（stage_audit / event）\n    event_description: 事件描述（当 trigger_type 为 event 时必填）\n\nReturns:\n    包含分析 prompt 和使用说明的字典\n","inputSchema":{"properties":{"event_description":{"default":"","title":"Event Description","type":"string"},"trigger_type":{"default":"stage_audit","title":"Trigger Type","type":"string"}},"title":"trigger_insightArguments","type":"object"},"name":"trigger_insight","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"trigger_insightOutput","type":"object"}},{"description":"应用洞察分析结果到档案。\n\n何时调用：在 trigger_insight 之后，LLM 分析完成后调用。\n\nArgs:\n    insight_json: LLM 返回的洞察分析 JSON\n\nSchema:\n    {\n        \"trigger_type\": \"stage_audit\",  // 回传触发类型：stage_audit/event\n        \"status\": \"on_track\",        // 状态：on_track/behind/ahead/need_adjustment\n        \"summary\": \"进度正常\",        // 进度总结\n        \"insights\": [                // 洞察列表\n            \"学习速度超预期\",\n            \"可以加深难度\"\n        ],\n        \"adjustment_needed\": false,  // 是否需要调整\n        \"adjustment_type\": \"auto\",   // 调整类型：auto/manual\n        \"adjustment_reason\": \"\",     // 调整原因\n        \"changes\": [                 // 调整列表（产品不规划时间，无压缩时长类调整）\n            {\n                \"type\": \"add_task\",       // 类型：add_task/remove_task/modify_task\n                \"task_id\": \"task_001\",    // 任务 ID（add_task 时省略）\n                \"details\": {              // 详情\n                    \"name\": \"新任务名\"\n                }\n            }\n        ],\n        \"user_message\": \"给用户的消息\"\n    }\n","inputSchema":{"properties":{"insight_json":{"title":"Insight Json","type":"string"}},"required":["insight_json"],"title":"apply_insightArguments","type":"object"},"name":"apply_insight","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"apply_insightOutput","type":"object"}},{"description":"获取进度概览。\n\n何时调用：用户想查看整体进度时调用。\n返回任务统计、打卡记录、调整历史。\n","inputSchema":{"properties":{},"title":"get_progressArguments","type":"object"},"name":"get_progress","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_progressOutput","type":"object"}},{"description":"周检视——周期性事实复盘（打卡/阶段/求职漏斗）。\n\n何时调用：\n- 用户想回顾一段时间表现（「给我做个周报/最近怎么样」）\n- 用户隔了很久回来（get_workflow_status 会提示）\n- 阶段审计前想先看事实\n\n原则：只陈列事实与规则化建议，不设时限、不催促。\n事件数字（如距上次打卡 N 天）是事实陈述，不是超期判定。\n\nArgs:\n    days: 回看天数（1-90，默认 7；月度复盘传 30）\n","inputSchema":{"properties":{"days":{"default":7,"title":"Days","type":"integer"}},"title":"get_weekly_reviewArguments","type":"object"},"name":"get_weekly_review","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_weekly_reviewOutput","type":"object"}},{"description":"获取当前工作流状态和下一步建议。\n\n何时调用：\n- 用户开始对话时，了解当前进度\n- LLM 不确定下一步该做什么时\n- 需要查看整体状态时\n\nReturns:\n    包含当前阶段、已完成步骤、下一步建议的字典\n","inputSchema":{"properties":{},"title":"get_workflow_statusArguments","type":"object"},"name":"get_workflow_status","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_workflow_statusOutput","type":"object"}},{"description":"生成自包含 HTML（双击即可在浏览器查看，无需服务器）。\n\nArgs:\n    mode: 视图模式\n        - \"progress\"（默认）：阶段进度仪表盘——总体/阶段进度、当前任务、能力证据、调整历史\n        - \"roadmap\"：职业地图——完整路线图（阶段/KPI/里程碑/任务/完成标准/简历价值/\n          目标公司/推荐理由/JD 依据与占位徽标）+ 每阶段执行进度 + 当前阶段高亮；\n          执行中随时重新生成，永远是「最新地图」\n\n何时调用：\n- 用户想直观查看整体进度时调用（progress）\n- 用户想要可携带的路线图全貌时调用（roadmap）；save_roadmap 定稿时也会自动生成一份\n","inputSchema":{"properties":{"mode":{"default":"progress","title":"Mode","type":"string"}},"title":"export_dashboardArguments","type":"object"},"name":"export_dashboard","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"export_dashboardOutput","type":"object"}}]}}}
