43 Commits

Author SHA1 Message Date
hub-gif
614d631261 feat(pipeline): 竞品简报与策略管线、报告导出及 JD 前端联动
补充策略决策键、fixture 与相关单测;分析/营销包本地存储与任务状态;竞品简报 schema 与 LLM 章节生成、促销与导出调整;并纳入 Cursor 工程规则 user-dev-style。

Made-with: Cursor
2026-04-27 15:48:09 +08:00
hub-gif
37870901ee fix(copy): 阶段目标示例改为白话,去掉心智占位等行话
占位与底稿提示改为拉新、销量转化、守复购、新品试水等可读表述;单测同步。

Made-with: Cursor
2026-04-23 10:52:31 +08:00
hub-gif
19c27fc4e8 fix(ui): 策略表单文案去路径与实现细节
前端占位与说明不写仓库路径与字段名;系统提示与规则底稿占位改为业务口径表述。

Made-with: Cursor
2026-04-23 10:51:25 +08:00
hub-gif
6faef2180e feat(strategy): 表单可填本阶段策略目标类型 stage_goal_type
接入 StrategyDraftRequestSerializer、规则底稿表与 1.3 要点、strategy_decisions_substantive 与 STRATEGY_SYSTEM 决策边界;前端策略生成页增加输入框。

Made-with: Cursor
2026-04-23 10:49:59 +08:00
hub-gif
31e8482442 feat(marketing): 扩展营销内容条数与中长文案(仍禁止编造)
第二步提高标题/卖点/FAQ 等上限;新增详情中段叙事、食用搭配、短图文变体、直播要点提纲;提示词强调更丰富≠编造;normalize 与导出、策略预览 JSON 分区同步;alignment 留痕更新。

Made-with: Cursor
2026-04-22 15:56:30 +08:00
hub-gif
6470d0d56c feat(marketing): 营销内容命名、文生图/视频提示词与结果规范化
两步 LLM 增加可复制文生图/文生视频提示词并强化卖点可视化;normalize_detail_page_pack 补全键;产品用语由商详包改为营销内容;前端导出 Markdown 与策略预览区展示一致;营销包落盘模块入库。

Made-with: Cursor
2026-04-22 15:35:35 +08:00
hub-gif
220517f111 feat(frontend): Pinia 全局任务锁与策略稿 localStorage 跨标签同步
Made-with: Cursor
2026-04-22 10:31:47 +08:00
hub-gif
7b9009bd90 feat(marketing): 策略稿两步生成商详包 API 与预览页入口
Made-with: Cursor
2026-04-22 10:25:08 +08:00
hub-gif
369fab23eb fix(frontend): 策略生成页去掉§与论文章节号,改用业务可读标题
Made-with: Cursor
2026-04-22 10:03:33 +08:00
hub-gif
4dde9a9812 fix(frontend): 策略表单 legend/hint/placeholder 与成稿章节语义对齐
Made-with: Cursor
2026-04-22 10:00:16 +08:00
hub-gif
7b7928907f fix(frontend): 策略生成表单按成稿§0~§10重排并标明§2~§4无表单项
Made-with: Cursor
2026-04-22 09:56:29 +08:00
hub-gif
39929ea600 fix(frontend): 策略表单第五节竞争字段文案与选项对齐§5.3语义
Made-with: Cursor
2026-04-22 09:54:02 +08:00
hub-gif
44fa291eb3 fix(strategy): 价位阵地归入第八章,与「为什么选品牌」解耦
底稿第四章仅保留承诺与信任;贴顶/卡腰等勾选移至 §8.2。前端表单项并入战术支柱分组;补充测试与 OpenAPI、规划表说明。

Made-with: Cursor
2026-04-21 17:16:14 +08:00
hub-gif
42caa06013 feat(frontend): 策略生成表单与成稿目录结构对齐
重组 fieldset 顺序与文案(策略范围与前提、四~八章对应、业务备注);更新顶部说明与矩阵细类标签;补充 fieldset 提示样式。

Made-with: Cursor
2026-04-21 17:12:29 +08:00
hub-gif
d3dec53a8f feat(pipeline): 按细类生成评价正/负向主题并写入报告8.3
开启 llm_comment_sentiment 时对每个矩阵细类单独构建情感载荷并调用模型;报告新增 8.3 小节,与探针及细类评论要点归纳并列。补充 jd_report 对 build_comment_sentiment_llm_payload 的导出、comment_sentiment_llm.json schema_version 2 与 groups 记录。前端表单说明与演示脚本注释同步更新。

Made-with: Cursor
2026-04-21 11:07:03 +08:00
hub-gif
9cf48e4d7b feat(frontend): 策略生成页增加策略类目(矩阵细类)选择
从 competitor-brief 拉取 matrix_groups;提交 strategy_matrix_group;本地记忆每任务所选。

Made-with: Cursor
2026-04-20 18:01:46 +08:00
hub-gif
c096f69082 refactor(strategy): 策略成稿章节顺序与 LLM 提示对齐
底稿重排为诊断→方向→4P→风险→约束→行动;前端表单 legend 与成稿章节一致;generate_strategy 系统提示约束一至十顺序;JdStrategyBuildView 补充成稿说明与 hint-flow 样式。

Made-with: Cursor
2026-04-17 17:59:02 +08:00
hub-gif
ed28e00e74 fix(pipeline): 区分店铺列表行占比与去重SKU占比,避免误导
- 列表导出增加 unique_sku_basis(每 SKU 计 1 次),与按行计的集中度并列写入 brief 与执行摘要。
- 第四章解读与扇图说明强调「列表可见度」非市占;8.5 大模型提示禁止将行占比写成 SKU 款数占比或自营占比。
- 分析页摘要兼容 first_share 并展示去重 SKU 口径。

Made-with: Cursor
2026-04-17 17:19:20 +08:00
hub-gif
f09a46a79e feat(pipeline): 策略表单增加营销与总体策略并顺延规则稿章节
- API:marketing_strategy、general_strategy;规则骨架新增「二、营销策略与总体方向」,原 §2–§9 顺延为 §3–§10。
- LLM 提示与探针说明用语同步;OpenAPI、单测与策略生成页字段集「五」已对齐。

Made-with: Cursor
2026-04-17 17:08:25 +08:00
hub-gif
16d64565a3 feat(pipeline): 策略骨架缩短并强化策略生成决策边界
- 规则稿:章节重排为短骨架,去重复假设套话;探针模式三条占位,传统模式改为统计摘录句式。
- LLM:STRATEGY_SYSTEM 明确表单已定项不可反写,空项由数据补全,成稿禁止二次决策话术。
- API/前端:新增目标客群、主要对标、资源备注字段并传入 strategy_decisions。
- OpenAPI 与单测同步。

Made-with: Cursor
2026-04-17 17:04:24 +08:00
hub-gif
1229e49dbe refactor(frontend): 策略生成默认大模型,仅保留「本次规则稿」选项
移除「使用大模型」与保存策略偏好;buildPayload 默认 generator=llm;勾选本次仅规则稿时走 rules。后端默认 use_llm_default 改为 true。

Made-with: Cursor
2026-04-17 16:44:15 +08:00
hub-gif
7d219feb3c feat(pipeline): 策略页独立 strategy_config 与仅规则稿选项
新增 PipelineJob.strategy_config(默认 use_llm_default);GET /api/strategy-config-defaults/;PATCH 任务可保存策略偏好。策略生成页:本次仅规则稿复选框(默认关)、保存策略偏好、任务下拉去掉目录;第九章对齐仍由服务端默认处理。迁移 0021。

Made-with: Cursor
2026-04-17 16:41:20 +08:00
hub-gif
0be4049860 docs(copy): 将「口径」改为计数规则、说明、价格来源等通俗表述
报告正文、简报、策略草稿、API 说明与 LLM 提示中避免「统计口径」等行话;列表 CSV 表头「销量口径」改为「销量展示」;日报目录未改。

Made-with: Cursor
2026-04-16 10:43:44 +08:00
hub-gif
a43e1f9b1d feat(dataset): 搜索/宽表支持按解析后销量与评价量排序
新增 sales_sort_value、comment_count_sort_value 与 volume_parse;入库与迁移回填;sort=total_sales|comment_count;前端排序下拉文案。

Made-with: Cursor
2026-04-16 10:15:24 +08:00
hub-gif
f21bfbe02b feat(dataset): 店铺改为下拉选择,接口 shop 精确匹配
摘要增加 shop_options;筛选参数由 shop_q 改为 shop;合并表匹配 shop_name 或 detail_shop_name。

Made-with: Cursor
2026-04-16 10:08:06 +08:00
hub-gif
5ea55233b1 feat(dataset): 类目文案统一并支持按店铺名筛选
摘要 category_options;列/导出「类目」;查询参数 shop_q 模糊匹配店铺(搜索 shop_name、商详 detail_shop_name、宽表双列)。

Made-with: Cursor
2026-04-16 10:04:18 +08:00
hub-gif
d95189723c refactor(dataset): 类目筛选改为报告矩阵细类名(report_group)
新增 matrix_group_label 与 jd_competitor_report 同源路径解析;API 使用 report_group 字符串;摘要返回 report_group_options;搜索行按 SKU 从合并表回填细类;导出含报告细类列;前端下拉展示饼干/米等名称。

Made-with: Cursor
2026-04-16 09:58:22 +08:00
hub-gif
f915653104 feat(dataset): 库内浏览支持跳转页、排序与类目价格筛选
新增 JdLeafCategoryNorm 与 price 解析字段;数据集 API 支持 sort/order、category_norm_id、price 区间与类目路径模糊;摘要返回类目选项;前端 JobDatasetModal 增加筛选与分页跳转。

Made-with: Cursor
2026-04-16 09:51:26 +08:00
hub-gif
43b72cb32e feat: 关注词与场景延伸、报告体验与导出修复
- 流水线:评价关注词与使用场景的大模型延伸(jd_runner、竞品报告、测试)

- 界面:报告生成与查看的通俗化文案;策略稿集中度按店铺/品牌区分

- 导出:PDF 插图限制最大尺寸避免 LayoutError;报告 Word/PDF 改为 blob 下载;策略稿导出错误解析;PDF 补充 Linux 中文字体路径

Made-with: Cursor
2026-04-14 18:23:25 +08:00
hub-gif
3d6193af06 feat(brief): plain-language concentration keys and copy
- Add first_share/top_three_combined_share plus cr1/cr3 readers
- Brief/schema/footnotes and LLM prompts avoid dev jargon where possible
- Frontend JD analysis/dataset hints in business-friendly wording

Made-with: Cursor
2026-04-14 17:28:52 +08:00
hub-gif
5fe4ac4ffe feat(pipeline): add LLM summaries for usage scenarios (§8.4)
Made-with: Cursor
2026-04-14 17:27:38 +08:00
hub-gif
f994555f9f feat(pipeline): remove llm section bridges from report generation
Made-with: Cursor
2026-04-14 17:27:19 +08:00
hub-gif
e73f1ffe8d fix(ui): add clear local lock for regenerate-report button
Made-with: Cursor
2026-04-14 17:13:01 +08:00
hub-gif
6f04326400 fix(frontend): track multiple in-flight generation keys (regen vs preview)
Made-with: Cursor
2026-04-14 17:12:03 +08:00
hub-gif
4847003a05 fix(frontend): keep regen in-flight lock on client disconnect (tab switch)
Made-with: Cursor
2026-04-14 17:12:03 +08:00
hub-gif
fdf5901f76 fix(frontend): persist generation in-flight key in sessionStorage (HMR/reload)
Made-with: Cursor
2026-04-14 17:12:03 +08:00
hub-gif
cd863864a0 fix(frontend): disable report regen while any job regen is in flight
Made-with: Cursor
2026-04-14 17:12:03 +08:00
hub-gif
134faffbe8 feat: default LLM for report regen, job report_config, and API defaults
Made-with: Cursor
2026-04-14 13:28:18 +08:00
hub-gif
48ed337310 refactor(frontend): simplify report build page, drop LLM checkboxes
Made-with: Cursor
2026-04-14 13:25:51 +08:00
hub-gif
e2a0a442a7 fix(pipeline): scenario LLM merge without unrelated runner/vue churn
Restore jd_runner/JdAnalysisView to prior behavior except schema_version 3,
scenario suggest block, and default comment_scenario_groups fallback when
eff_rc omits them. Reverts accidental WIP bundled in previous commit.

Made-with: Cursor
2026-04-14 10:38:00 +08:00
hub-gif
1deea3af35 feat(pipeline): LLM-extend usage scenario groups from comments
Add suggest_scenario_groups_llm: single call with excerpt corpus + existing
label/triggers, parse scenarios JSON, merge into comment_scenario_groups
(up to 40) before build_competitor_brief. Record in keyword_suggest_llm.json
(schema_version 3). Skip with MA_SKIP_LLM_SCENARIO_SUGGEST. Update tests
and analysis view hint.

Made-with: Cursor
2026-04-14 10:36:28 +08:00
hub-gif
a8210ec933 feat(报告): 各章大模型衔接分析与 report_config 开关
Made-with: Cursor
2026-04-13 11:06:35 +08:00
hub-gif
d8086dfdd5 Initial commit: Market-Assistant standalone (Django + Vue + JD crawler copy)
Made-with: Cursor
2026-04-10 18:03:35 +08:00