@oxmumu3/dsh-plugin-finder 0.12.0-preview.13 → 0.12.0-preview.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +75 -0
- package/README.md +1 -1
- package/dist/client.js +285 -39
- package/docs/install.md +2 -2
- package/package.json +1 -1
- package/src/creator-strip.js +35 -18
- package/src/experience-style.js +159 -0
- package/src/experience-view.js +73 -27
- package/src/telemetry-config.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
|
1
|
+
# 0.12.0-preview.20(2026-11-09)
|
|
2
|
+
|
|
3
|
+
创造模式提示条改回可读:
|
|
4
|
+
|
|
5
|
+
- 五个阶段恢复带文字(查现成 / 定设计 / 空架子 / 加功能 / 验证),不再只有五段颜色不同的短条。只靠颜色区分状态是看不懂的。
|
|
6
|
+
- 三种状态分开表达:已完成(蓝色底 + 实心点)、当前(蓝底白字 + 加粗)、没走过(灰字 + 空心点,明显比已完成淡)。
|
|
7
|
+
- 「插件专家陪你做」前面保留徽标,整条高度 48px,不再挤。
|
|
8
|
+
|
|
9
|
+
新增 [docs/design/experience-v3/DESIGN-QA.md](docs/design/experience-v3/DESIGN-QA.md):改界面前后的可执行检查清单,含真实渲染、对齐、刻度、对比度、裁切、疏密与状态可读性。
|
|
10
|
+
|
|
11
|
+
# 0.12.0-preview.19(2026-11-09)
|
|
12
|
+
|
|
13
|
+
修掉本轮真正的「挤」:
|
|
14
|
+
|
|
15
|
+
- 输入框和想法卡的 208px 最小高度去掉——它才是那个永远空着一大块的盒子,现在高度由内容决定。
|
|
16
|
+
- 「我先给你一个想法」卡的按钮改为左对齐、内边距收紧。
|
|
17
|
+
|
|
18
|
+
新增 `scripts/render-experience.mjs`:用 react-dom/server 把真实视图组件 + 真实样式表渲成 HTML,配合无头浏览器截图与测量。以后改界面先在本地看真实渲染,而不是等用户重开验证。
|
|
19
|
+
|
|
20
|
+
# 0.12.0-preview.18(2026-11-09)
|
|
21
|
+
|
|
22
|
+
体验 v3 收尾(真实截图后的留白修正):
|
|
23
|
+
|
|
24
|
+
- 三步路径和输入框拉开 64px,圆点不再贴着卡片边缘。
|
|
25
|
+
- 「精选插件」标题与说明原来压在一起,现在标题 18px、说明单独一行。
|
|
26
|
+
- 分类行的名称列加宽到 168px,说明文字限制一行,不再折成三行。
|
|
27
|
+
- 各大块之间统一 48px 节奏,块内间距一律小于块间;上次查找用一条细线隔开。
|
|
28
|
+
- 输入框收到 56px 高,「一句话就好」降为 12px 说明。
|
|
29
|
+
|
|
30
|
+
样式改动,刷新界面即可生效。
|
|
31
|
+
|
|
32
|
+
# 0.12.0-preview.17(2026-11-09)
|
|
33
|
+
|
|
34
|
+
体验 v3 落地第四层(真实状态页):
|
|
35
|
+
|
|
36
|
+
- 「正在查」原来是一片空白,现在是一张状态卡:回显这次要查的需求(不会显示上一次的)、一条不确定进度的扫描线、说清在读什么和大概多久、以及「查完会留在这里,不用守着」。
|
|
37
|
+
- 「没查完」的提示从灰色小字改成琥珀色警示条,左侧一条竖线,正文用正常字号。
|
|
38
|
+
- 标题按状态变化:查找中显示「正在查找」。
|
|
39
|
+
|
|
40
|
+
1220 个测试全部通过(包括「新需求不能混入上一次的需求」这条)。
|
|
41
|
+
|
|
42
|
+
# 0.12.0-preview.16(2026-11-09)
|
|
43
|
+
|
|
44
|
+
体验 v3 落地第三层(首页结构真正改成设计稿):
|
|
45
|
+
|
|
46
|
+
- 首页新增「先找现成的 → 装好跑一遍 → 没有就一起做」三步路径,连线穿过三个节点,第三节点标「装上就生效,不用设置」;数字取自当前社区目录。
|
|
47
|
+
- 新增「按用途逛」:六个分类按真实数量排序,长条长度就是这个分类占目录的比例,一眼看出哪类最多。
|
|
48
|
+
- 示例提示收进输入框那一行,和「帮我找方案」同一行,不再单独占一块。
|
|
49
|
+
- 「上次查找」挪到分类之后,作为历史而不是首屏内容。
|
|
50
|
+
|
|
51
|
+
结构与数据改动;刷新界面即可生效。
|
|
52
|
+
|
|
53
|
+
# 0.12.0-preview.15(2026-11-09)
|
|
54
|
+
|
|
55
|
+
体验 v3 落地第二层(真实截图后的修正 + 创造模式提示条):
|
|
56
|
+
|
|
57
|
+
- 创造模式提示条重新设计:品牌文案从「创造经验已开启」改成「插件专家陪你做」,带和面板同一个徽标;五个阶段从小圆点改成一条进度段;「开新窗口接着做」只在真的卡住时才出现,平时不占位置。
|
|
58
|
+
- 输入框收紧:原来空着就有 103px 高、是整页最大的一块,改到 64px。
|
|
59
|
+
- 标题不再打架:「告诉我你的目标」降为小标题,「一句话就好」降为说明文字。
|
|
60
|
+
- 上次查找:请求正文最多两行,来源行降到 12px,不再是一堵小字墙。
|
|
61
|
+
|
|
62
|
+
样式层改动,刷新界面即可生效。
|
|
63
|
+
|
|
64
|
+
# 0.12.0-preview.14(2026-11-09)
|
|
65
|
+
|
|
66
|
+
体验 v3 落地第一层(对齐与品牌):
|
|
67
|
+
|
|
68
|
+
- 首页改成单栏:所有区块共用同一条 760px 主轴,左右边缘对齐,不再是一半居中一半左对齐。
|
|
69
|
+
- 字号与间距收敛到固定刻度:标题 32–46px 随容器缩放,正文 15px;间距只用 4/8/12/16/24/32/48/64。
|
|
70
|
+
- 统一品牌标记:原来大小不一的小鲸鱼换成同一个圆角渐变徽标。
|
|
71
|
+
- 方案区独立成「方案卡」:深海渐变底、色相配套的文字(不用灰字压彩色),包名用等宽字体,作为可截图分享的成品卡。
|
|
72
|
+
- 主按钮补禁用态(不满足条件时半透明、不可点),圆角统一 10px。
|
|
73
|
+
|
|
74
|
+
界面改动只需按 Cmd+R 刷新,无需重装。
|
|
75
|
+
|
|
1
76
|
# 0.12.0-preview.13(2026-11-09)
|
|
2
77
|
|
|
3
78
|
- 进度条只把记录过的阶段标为完成;跳过没记录的阶段显示为空心淡色,不再冒充已完成(实测 preview.12 只记了「验证」,前四步却都显示为已完成)。
|
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ dsh plugin --profile web add @oxmumu3/dsh-plugin-finder
|
|
|
59
59
|
|
|
60
60
|
## 版本与兼容
|
|
61
61
|
|
|
62
|
-
当前 `@oxmumu3/dsh-plugin-finder@0.12.0-preview.
|
|
62
|
+
当前 `@oxmumu3/dsh-plugin-finder@0.12.0-preview.20`,目标官方 Harness `0.2.1-rc.5` 与 `0.2.2-rc.1`(后者要求宿主 Node `>=24.9.0`),Node `^22.19.0 || >=24.0.0`。其他 RC、next 或实验 alpha 不据此推断兼容;安装状态以 npm 精确版本、Release 和最终验收记录为准。
|
|
63
63
|
|
|
64
64
|
Finder 沿用宿主配置的模型与账户,无需另填模型 Key;理解需求、检索、补齐和执行会使用相应额度。第三方插件可能另有服务、授权与费用。
|
|
65
65
|
|
package/dist/client.js
CHANGED
|
@@ -2543,6 +2543,71 @@ function createExperienceView(React2) {
|
|
|
2543
2543
|
})
|
|
2544
2544
|
);
|
|
2545
2545
|
})();
|
|
2546
|
+
const catalog = (() => {
|
|
2547
|
+
try {
|
|
2548
|
+
return getCommunityOverview();
|
|
2549
|
+
} catch {
|
|
2550
|
+
return null;
|
|
2551
|
+
}
|
|
2552
|
+
})();
|
|
2553
|
+
const catalogTotal = safeCount(catalog?.total);
|
|
2554
|
+
const countText = (value) => safeCount(value).toLocaleString("en-US");
|
|
2555
|
+
const categories = records(catalog?.categories).filter((item) => text6(item.label) && Number.isSafeInteger(item.count)).sort((left, right) => right.count - left.count).slice(0, 6);
|
|
2556
|
+
const categoryMax = categories.reduce((max, item) => Math.max(max, item.count), 1);
|
|
2557
|
+
const journey = h(
|
|
2558
|
+
"div",
|
|
2559
|
+
{ className: "pfv_journey", "aria-label": "\u5B83\u4F1A\u600E\u4E48\u5E2E\u4F60" },
|
|
2560
|
+
h(
|
|
2561
|
+
"div",
|
|
2562
|
+
{ className: "pfv_journey_stop" },
|
|
2563
|
+
h("h3", null, "\u5148\u627E\u73B0\u6210\u7684"),
|
|
2564
|
+
h("p", null, catalogTotal ? `\u4ECE ${countText(catalogTotal)} \u4E2A\u793E\u533A\u63D2\u4EF6\u91CC\u6311\u6700\u5408\u9002\u7684\uFF0C\u8BF4\u6E05\u4E3A\u4EC0\u4E48\u9009\u5B83\u3001\u4E3A\u4EC0\u4E48\u4E0D\u9009\u522B\u7684\u3002` : "\u4ECE\u793E\u533A\u63D2\u4EF6\u91CC\u6311\u6700\u5408\u9002\u7684\uFF0C\u8BF4\u6E05\u4E3A\u4EC0\u4E48\u9009\u5B83\u3001\u4E3A\u4EC0\u4E48\u4E0D\u9009\u522B\u7684\u3002")
|
|
2565
|
+
),
|
|
2566
|
+
h(
|
|
2567
|
+
"div",
|
|
2568
|
+
{ className: "pfv_journey_stop" },
|
|
2569
|
+
h("h3", null, "\u88C5\u597D\u8DD1\u4E00\u904D"),
|
|
2570
|
+
h("p", null, "\u88C5\u8FDB\u4F60\u9009\u7684\u5DE5\u4F5C\u533A\u771F\u8DD1\u4E00\u6B21\uFF0C\u88C5\u4E4B\u524D\u5148\u6838\u5BF9\u4F5C\u8005\u548C\u517C\u5BB9\u3002")
|
|
2571
|
+
),
|
|
2572
|
+
h(
|
|
2573
|
+
"div",
|
|
2574
|
+
{ className: "pfv_journey_stop pfv_journey_auto" },
|
|
2575
|
+
h("h3", null, "\u6CA1\u6709\u5C31\u4E00\u8D77\u505A"),
|
|
2576
|
+
h("p", null, "\u5728\u521B\u9020\u6A21\u5F0F\u91CC\u966A\u4F60\u67E5\u73B0\u6210\u3001\u5B9A\u8BBE\u8BA1\u3001\u642D\u9AA8\u67B6\uFF0C\u4E00\u6B21\u52A0\u4E00\u4E2A\u529F\u80FD\u3002"),
|
|
2577
|
+
h("span", { className: "pfv_journey_tag" }, "\u88C5\u4E0A\u5C31\u751F\u6548\uFF0C\u4E0D\u7528\u8BBE\u7F6E")
|
|
2578
|
+
)
|
|
2579
|
+
);
|
|
2580
|
+
const categoriesView = categories.length ? h(
|
|
2581
|
+
"section",
|
|
2582
|
+
{ className: "pfv_v3_block", "aria-labelledby": "pfv_categories_title" },
|
|
2583
|
+
h(
|
|
2584
|
+
"div",
|
|
2585
|
+
{ className: "pfv_v3_head" },
|
|
2586
|
+
h("h2", { id: "pfv_categories_title" }, "\u6309\u7528\u9014\u901B"),
|
|
2587
|
+
h("span", null, "\u6309\u6570\u91CF\u6392\uFF0C\u6761\u8D8A\u957F\u63D2\u4EF6\u8D8A\u591A"),
|
|
2588
|
+
h("a", { href: "#pfv_community_title", className: "pfv_v3_more" }, "\u770B\u5168\u90E8\u63D2\u4EF6")
|
|
2589
|
+
),
|
|
2590
|
+
h("div", { className: "pfv_v3_cats" }, ...categories.map((item) => h(
|
|
2591
|
+
"a",
|
|
2592
|
+
{
|
|
2593
|
+
key: text6(item.id) || text6(item.label),
|
|
2594
|
+
className: "pfv_v3_cat",
|
|
2595
|
+
href: "#pfv_community_title"
|
|
2596
|
+
},
|
|
2597
|
+
h(
|
|
2598
|
+
"span",
|
|
2599
|
+
{ className: "pfv_v3_cat_name" },
|
|
2600
|
+
h("b", null, text6(item.label)),
|
|
2601
|
+
text6(item.description) ? h("small", null, text6(item.description)) : null
|
|
2602
|
+
),
|
|
2603
|
+
h(
|
|
2604
|
+
"span",
|
|
2605
|
+
{ className: "pfv_v3_bar", "aria-hidden": true },
|
|
2606
|
+
h("i", { style: { width: `${Math.max(4, Math.round(item.count / categoryMax * 100))}%` } })
|
|
2607
|
+
),
|
|
2608
|
+
h("em", null, countText(item.count))
|
|
2609
|
+
)))
|
|
2610
|
+
) : null;
|
|
2546
2611
|
const home = () => h(
|
|
2547
2612
|
"div",
|
|
2548
2613
|
{ className: "pfv_home" },
|
|
@@ -2592,27 +2657,21 @@ function createExperienceView(React2) {
|
|
|
2592
2657
|
) : null,
|
|
2593
2658
|
h("label", { className: "pfv_sr_only", htmlFor: "pfv_home_input" }, "\u4EFB\u52A1\u63CF\u8FF0"),
|
|
2594
2659
|
h("textarea", { ref: homeInput, id: "pfv_home_input", "aria-label": "\u4EFB\u52A1\u63CF\u8FF0", value: text6(state.homeRequest), maxLength: 6e3, disabled: taskInputBusy, placeholder: "\u4F8B\u5982\uFF1A\u628A\u4F1A\u8BAE\u8BB0\u5F55\u6574\u7406\u6210\u5F85\u529E\uFF0C\u518D\u7ED9\u6211\u4E00\u4EFD\u9879\u76EE\u7B80\u62A5\u3002", onChange: (event) => controller.setHomeRequest(event.target.value), onKeyDown: shortcut }),
|
|
2595
|
-
h(
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
h("span", { className: "pfv_hint" }, "\u4F8B\u5982"),
|
|
2606
|
-
...examples2.map(([label, value]) => button2(label, () => {
|
|
2607
|
-
if (controller.prepareHomeExample) controller.prepareHomeExample(value);
|
|
2608
|
-
else if (!text6(state.homeRequest).trim()) controller.setHomeRequest(value);
|
|
2609
|
-
homeInput.current?.focus?.();
|
|
2610
|
-
}, { key: label, className: "pfv_button pfv_example", disabled: taskInputBusy, "aria-label": `\u586B\u5165${label}\u7684\u793A\u4F8B\uFF0C\u4E4B\u540E\u53EF\u4EE5\u4FEE\u6539` })),
|
|
2611
|
-
h("a", { href: "#pfv_community_title", className: "pfv_store_jump" }, "\u901B\u901B\u63D2\u4EF6\u5546\u5E97 \u2192")
|
|
2660
|
+
h(
|
|
2661
|
+
"div",
|
|
2662
|
+
{ className: "pfv_composer_bottom" },
|
|
2663
|
+
h("div", { className: "pfv_examples", "aria-label": "\u53EF\u7F16\u8F91\u7684\u9700\u6C42\u793A\u4F8B" }, h("span", { className: "pfv_hint" }, "\u4F8B\u5982"), ...examples2.map(([label, value]) => button2(label, () => {
|
|
2664
|
+
if (controller.prepareHomeExample) controller.prepareHomeExample(value);
|
|
2665
|
+
else if (!text6(state.homeRequest).trim()) controller.setHomeRequest(value);
|
|
2666
|
+
homeInput.current?.focus?.();
|
|
2667
|
+
}, { key: label, className: "pfv_button pfv_example", disabled: taskInputBusy, "aria-label": `\u586B\u5165${label}\u7684\u793A\u4F8B\uFF0C\u4E4B\u540E\u53EF\u4EE5\u4FEE\u6539` }))),
|
|
2668
|
+
h("button", { type: "submit", className: "pfv_button pfv_primary", disabled: busy || !modelReady || !text6(state.homeRequest).trim() }, "\u5E2E\u6211\u627E\u65B9\u6848")
|
|
2669
|
+
)
|
|
2612
2670
|
),
|
|
2613
2671
|
state.homeWarning ? h("p", { className: "pfv_warning", role: "status" }, text6(state.homeWarning)) : null,
|
|
2614
2672
|
state.bootstrapLoaded && !modelReady ? h("div", { className: "pfv_warning" }, h("p", null, "\u5148\u5728 DSH \u8BBE\u7F6E\u4E2D\u914D\u7F6E\u9ED8\u8BA4\u6A21\u578B\uFF0C\u518D\u5F00\u59CB\u67E5\u627E\u3002"), button2("\u91CD\u65B0\u8BFB\u53D6\u914D\u7F6E", () => controller.bootstrap(), { disabled: busy })) : null
|
|
2615
2673
|
),
|
|
2674
|
+
journey,
|
|
2616
2675
|
state.opportunity ? renderOpportunityCard({ h, state, controller, disabled: locked, modelReady, fallback: { id: scenario.id, title: scenarioTitles[scenario.id], benefit: scenarioBenefits[scenario.id], basis: suggested ? "\u672C\u673A\u7EBF\u7D22" : "\u901A\u7528\u60F3\u6CD5", reason: suggested?.reason || "" } }) : h(
|
|
2617
2676
|
"aside",
|
|
2618
2677
|
{ className: "pfv_home_scenario", "aria-label": suggested ? "\u731C\u4F60\u559C\u6B22" : "\u8BD5\u8BD5\u8FD9\u4E2A" },
|
|
@@ -2626,10 +2685,12 @@ function createExperienceView(React2) {
|
|
|
2626
2685
|
suggested ? h("p", { className: "pfv_scenario_reason" }, suggested.reason) : null,
|
|
2627
2686
|
h("div", { className: "pfv_composer_bottom" }, button2("\u5F00\u59CB\u8FD9\u4E2A\u9700\u6C42", () => controller.startFeatured(scenario.id), { className: "pfv_button pfv_scenario_start", disabled: locked || !modelReady }))
|
|
2628
2687
|
)
|
|
2629
|
-
)
|
|
2688
|
+
),
|
|
2689
|
+
renderOpportunitySettings({ h, state, controller, modelReady })
|
|
2630
2690
|
),
|
|
2631
|
-
renderOpportunitySettings({ h, state, controller, modelReady }),
|
|
2632
2691
|
renderFeaturedView({ h, state, controller, copyText, busy, mode: "home" }),
|
|
2692
|
+
categoriesView,
|
|
2693
|
+
lastSearchView,
|
|
2633
2694
|
h(CommunityView, { controller, busy: locked, modelReady })
|
|
2634
2695
|
);
|
|
2635
2696
|
if (state.view === "home" && !state.searching) return home();
|
|
@@ -2709,6 +2770,15 @@ function createExperienceView(React2) {
|
|
|
2709
2770
|
disclosure("\u9700\u6C42\u4E0E\u4FEE\u6539\u8BB0\u5F55", h(React2.Fragment, null, history, sections.taskHistory)),
|
|
2710
2771
|
disclosure("\u8BB0\u5F55\u4F7F\u7528\u7ED3\u679C", sections.feedback)
|
|
2711
2772
|
);
|
|
2773
|
+
const searchingView = startingNew ? h(
|
|
2774
|
+
"article",
|
|
2775
|
+
{ className: "pfv_search_status", role: "status", "aria-live": "polite" },
|
|
2776
|
+
// Echo the request this search is about; never the previous one.
|
|
2777
|
+
h("p", { className: "pfv_search_echo" }, "\u4F60\u95EE", h("b", null, text6(state.homeRequest) || text6(state.request) || "\u8FD9\u6B21\u7684\u9700\u6C42")),
|
|
2778
|
+
h("div", { className: "pfv_scan", "aria-hidden": true }),
|
|
2779
|
+
h("p", { className: "pfv_hint" }, "\u65B9\u6848\u6B63\u5728\u5F62\u6210\uFF1A\u6B63\u5728\u8BFB\u793E\u533A\u76EE\u5F55\u3001\u67E5\u4F60\u7684\u672C\u673A\u73AF\u5883\uFF0C\u7136\u540E\u7528\u4E00\u53E5\u8BDD\u7ED9\u7ED3\u8BBA\u3002\u901A\u5E38\u5341\u51E0\u79D2\u3002"),
|
|
2780
|
+
h("p", { className: "pfv_hint" }, "\u67E5\u5B8C\u4F1A\u7559\u5728\u8FD9\u91CC\uFF0C\u4E0D\u7528\u5B88\u7740\u8FD9\u4E00\u9875\u3002")
|
|
2781
|
+
) : null;
|
|
2712
2782
|
const sourceNotice = health ? h(
|
|
2713
2783
|
"aside",
|
|
2714
2784
|
{ className: "pfv_source_notice", role: "status" },
|
|
@@ -2846,10 +2916,10 @@ function createExperienceView(React2) {
|
|
|
2846
2916
|
h(
|
|
2847
2917
|
"section",
|
|
2848
2918
|
{ className: "pfv_outcome", id: "pfv_outcome", "aria-labelledby": "pfv_outcome_title", "aria-busy": Boolean(followupBusy) },
|
|
2849
|
-
h("div", { className: "pfv_column_heading" }, h("h2", { id: "pfv_outcome_title" }, execution ? "\u672C\u6B21\u8FD0\u884C" : isCreating ? "\u63D2\u4EF6\u65B9\u6848" : previousOutcome ? "\u4E0A\u4E00\u7248\u65B9\u6848" : "\u5F53\u524D\u65B9\u6848"), startingNew ? null : h("span", { className: "pfv_version" }, revisionLabel)),
|
|
2919
|
+
h("div", { className: "pfv_column_heading" }, h("h2", { id: "pfv_outcome_title" }, startingNew ? "\u6B63\u5728\u67E5\u627E" : execution ? "\u672C\u6B21\u8FD0\u884C" : isCreating ? "\u63D2\u4EF6\u65B9\u6848" : previousOutcome ? "\u4E0A\u4E00\u7248\u65B9\u6848" : "\u5F53\u524D\u65B9\u6848"), startingNew ? null : h("span", { className: "pfv_version" }, revisionLabel)),
|
|
2850
2920
|
statusLine,
|
|
2851
2921
|
execution ? null : sourceNotice,
|
|
2852
|
-
h("div", { className: `pfv_outcome_document${execution ? " pfv_outcome_live" : ""}` }, execution ? h("div", { className: "pfv_result_grid" }, h("div", { className: "pfv_result_primary" }, executionView), h("aside", { className: "pfv_solution_overview", "aria-label": "\u672C\u6B21\u80FD\u529B\u65B9\u6848" }, isCreating ? blueprintView() : planView())) : isCreating ? blueprintView() : h(
|
|
2922
|
+
h("div", { className: `pfv_outcome_document${execution ? " pfv_outcome_live" : ""}` }, startingNew ? searchingView : execution ? h("div", { className: "pfv_result_grid" }, h("div", { className: "pfv_result_primary" }, executionView), h("aside", { className: "pfv_solution_overview", "aria-label": "\u672C\u6B21\u80FD\u529B\u65B9\u6848" }, isCreating ? blueprintView() : planView())) : isCreating ? blueprintView() : h("section", { className: "pfv_plan_hero", "aria-label": "\u5F53\u524D\u65B9\u6848" }, expertPlanCard, planView())),
|
|
2853
2923
|
execution || startingNew ? null : expertSection || followup,
|
|
2854
2924
|
startingNew ? null : evidence
|
|
2855
2925
|
)
|
|
@@ -3485,6 +3555,165 @@ var experienceCss = `
|
|
|
3485
3555
|
.pfv_plugin_sources > p { color: var(--pfv_muted); font-size: 12px; margin-top: 12px !important; }
|
|
3486
3556
|
.pfv_plugin_error { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--pfv_line); border-radius: 10px; }
|
|
3487
3557
|
.pfv_plugin_error .pfv_button { margin-top: 10px; }
|
|
3558
|
+
/* ==========================================================================
|
|
3559
|
+
v3 layer (2026-11-09). Adds the approved prototype's scales and identity on
|
|
3560
|
+
top of the existing structure: one column, three text levels, one scale for
|
|
3561
|
+
space, and a single brand mark. Nothing here removes an existing rule; it
|
|
3562
|
+
only overrides values that the prototype changed.
|
|
3563
|
+
========================================================================== */
|
|
3564
|
+
.pf_v2 {
|
|
3565
|
+
--pfv3_s1: 4px; --pfv3_s2: 8px; --pfv3_s3: 12px; --pfv3_s4: 16px;
|
|
3566
|
+
--pfv3_s5: 24px; --pfv3_s6: 32px; --pfv3_s7: 48px; --pfv3_s8: 64px;
|
|
3567
|
+
--pfv3_col: 760px;
|
|
3568
|
+
--pfv3_mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
|
|
3569
|
+
}
|
|
3570
|
+
/* One column: every top-level block on the home page shares the same edges. */
|
|
3571
|
+
.pf_v2:has(.pfv_home) .pfv_inner { padding: var(--pfv3_s5) var(--pfv3_s6) var(--pfv3_s8); }
|
|
3572
|
+
.pf_v2 .pfv_home { max-width: none; }
|
|
3573
|
+
.pf_v2 .pfv_home > * { max-width: var(--pfv3_col); margin-inline: auto; }
|
|
3574
|
+
.pf_v2 .pfv_home_start { display: block; max-width: none; }
|
|
3575
|
+
.pf_v2 .pfv_home_start > * { max-width: var(--pfv3_col); margin-inline: auto; }
|
|
3576
|
+
.pf_v2 .pfv_home_scenario { margin-top: var(--pfv3_s5); }
|
|
3577
|
+
.pf_v2 .pfv_home_extras { margin-top: var(--pfv3_s4); }
|
|
3578
|
+
.pf_v2 .pfv_home_card { border-radius: 16px; }
|
|
3579
|
+
/* Identity: one badge, same silhouette at every size. */
|
|
3580
|
+
.pf_v2 .pfv_expert_identity { gap: var(--pfv3_s4); padding: var(--pfv3_s4) 0 var(--pfv3_s5); }
|
|
3581
|
+
.pf_v2 .pfv_expert_mark {
|
|
3582
|
+
width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: #fff;
|
|
3583
|
+
background: linear-gradient(155deg, #7c93ff, #3b56e0);
|
|
3584
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .22);
|
|
3585
|
+
}
|
|
3586
|
+
.pf_v2 .pfv_expert_identity h1 {
|
|
3587
|
+
font-size: clamp(32px, 3.6cqi, 46px); line-height: 1.18; letter-spacing: -.5px; font-weight: 700;
|
|
3588
|
+
}
|
|
3589
|
+
.pf_v2 .pfv_expert_identity .pfv_expert_name { font-size: 12px; letter-spacing: .2px; }
|
|
3590
|
+
.pf_v2 .pfv_expert_identity p { margin-top: var(--pfv3_s3); font-size: 15px; }
|
|
3591
|
+
/* Header: same column as the content below it. */
|
|
3592
|
+
.pf_v2:has(.pfv_home) .pf_header { max-width: var(--pfv3_col); margin-inline: auto; }
|
|
3593
|
+
/* Controls: one height, one radius, an honest disabled state. */
|
|
3594
|
+
.pf_v2 .pfv_button { border-radius: 10px; }
|
|
3595
|
+
.pf_v2 .pfv_button.pfv_primary { background: var(--pfv_accent); color: var(--pfv_on_accent); }
|
|
3596
|
+
.pf_v2 .pfv_button.pfv_primary:hover { filter: brightness(.93); }
|
|
3597
|
+
.pf_v2 .pfv_button.pfv_primary:disabled,
|
|
3598
|
+
.pf_v2 .pfv_button.pfv_primary[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
|
|
3599
|
+
.pf_v2 .pfv_composer { border-radius: 16px; }
|
|
3600
|
+
/* The plan card: the one place that carries the brand, and the thing worth
|
|
3601
|
+
screenshotting. Text inside uses a hue-matched set, never grey on colour. */
|
|
3602
|
+
.pf_v2 .pfv_plan_hero {
|
|
3603
|
+
position: relative; border-radius: 24px; padding: var(--pfv3_s6);
|
|
3604
|
+
background: radial-gradient(120% 140% at 100% 0%, #22378a 0%, #16255a 40%, #0e1838 100%);
|
|
3605
|
+
border: 1px solid rgba(147, 166, 255, .22);
|
|
3606
|
+
box-shadow: 0 16px 48px rgba(4, 10, 32, .45);
|
|
3607
|
+
}
|
|
3608
|
+
.pf_v2 .pfv_plan_hero p, .pf_v2 .pfv_plan_hero li, .pf_v2 .pfv_plan_hero span,
|
|
3609
|
+
.pf_v2 .pfv_plan_hero dd, .pf_v2 .pfv_plan_hero dt, .pf_v2 .pfv_plan_hero summary { color: #c7d0f6; }
|
|
3610
|
+
.pf_v2 .pfv_plan_hero h1, .pf_v2 .pfv_plan_hero h2, .pf_v2 .pfv_plan_hero h3, .pf_v2 .pfv_plan_hero h4,
|
|
3611
|
+
.pf_v2 .pfv_plan_hero strong, .pf_v2 .pfv_plan_hero b { color: #eef1ff; }
|
|
3612
|
+
.pf_v2 .pfv_plan_hero .pfv_hint, .pf_v2 .pfv_plan_hero .pfv_version { color: #9eacde; }
|
|
3613
|
+
.pf_v2 .pfv_plan_hero a { color: #9fb0ff; }
|
|
3614
|
+
.pf_v2 .pfv_plan_hero .pfv_disclosure { border-top-color: rgba(147, 166, 255, .18); }
|
|
3615
|
+
.pf_v2 .pfv_plan_hero h2, .pf_v2 .pfv_plan_hero h3 { letter-spacing: -.2px; }
|
|
3616
|
+
/* Live-panel polish after the first real screenshot: the empty composer was
|
|
3617
|
+
the largest object on the page, and two headings competed for the same job. */
|
|
3618
|
+
.pf_v2 .pfv_composer textarea { min-height: 64px; }
|
|
3619
|
+
.pf_v2 .pfv_home_heading { font-size: 16px; font-weight: 600; }
|
|
3620
|
+
.pf_v2 .pfv_home_lead { font-size: 13px; }
|
|
3621
|
+
.pf_v2 .pfv_last_search_request { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
3622
|
+
.pf_v2 .pfv_last_search_sources { font-size: 12px; }
|
|
3623
|
+
/* Home v3 structure: the three outcomes as one rail, and categories whose bar
|
|
3624
|
+
length is the real share of the catalog. */
|
|
3625
|
+
.pf_v2 .pfv_home_composer .pfv_composer_bottom { flex-wrap: wrap; gap: var(--pfv3_s3); }
|
|
3626
|
+
.pf_v2 .pfv_home_composer .pfv_examples { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: var(--pfv3_s2); }
|
|
3627
|
+
.pf_v2 .pfv_journey { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pfv3_s6);
|
|
3628
|
+
margin-top: var(--pfv3_s8); text-align: center; padding-top: var(--pfv3_s6); }
|
|
3629
|
+
.pf_v2 .pfv_journey::before { content: ""; position: absolute; top: 10px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; border-radius: 1px;
|
|
3630
|
+
background: linear-gradient(90deg, var(--pfv_accent), color-mix(in srgb, var(--pfv_accent) 30%, transparent)); }
|
|
3631
|
+
.pf_v2 .pfv_journey_stop { position: relative; }
|
|
3632
|
+
.pf_v2 .pfv_journey_stop::before { content: ""; position: absolute; top: -30px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%;
|
|
3633
|
+
background: var(--pfv_paper); border: 2px solid var(--pfv_accent); }
|
|
3634
|
+
.pf_v2 .pfv_journey_stop.pfv_journey_auto::before { background: #43c495; border-color: #43c495; box-shadow: 0 0 0 4px rgba(67, 196, 149, .16); }
|
|
3635
|
+
.pf_v2 .pfv_journey_stop h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--pfv_ink); }
|
|
3636
|
+
.pf_v2 .pfv_journey_stop p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--pfv_muted); }
|
|
3637
|
+
.pf_v2 .pfv_journey_tag { display: inline-flex; align-items: center; height: 24px; margin-top: var(--pfv3_s3); padding: 0 var(--pfv3_s2); border-radius: 999px;
|
|
3638
|
+
font-size: 12px; color: #2f9c76; background: rgba(67, 196, 149, .14); }
|
|
3639
|
+
.pf_v2 .pfv_v3_block { margin-top: var(--pfv3_s7); }
|
|
3640
|
+
.pf_v2 .pfv_v3_head { display: flex; align-items: baseline; gap: var(--pfv3_s3); margin-bottom: var(--pfv3_s4); }
|
|
3641
|
+
.pf_v2 .pfv_v3_head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--pfv_ink); }
|
|
3642
|
+
.pf_v2 .pfv_v3_head span { font-size: 14px; color: var(--pfv_muted); }
|
|
3643
|
+
.pf_v2 .pfv_v3_more { margin-left: auto; font-size: 14px; color: var(--pfv_accent); text-decoration: none; }
|
|
3644
|
+
.pf_v2 .pfv_v3_more:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
3645
|
+
.pf_v2 .pfv_v3_cats { display: grid; gap: var(--pfv3_s1); }
|
|
3646
|
+
.pf_v2 .pfv_v3_cat { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; align-items: center; gap: var(--pfv3_s4);
|
|
3647
|
+
padding: var(--pfv3_s2) var(--pfv3_s3); border-radius: 8px; text-decoration: none; color: inherit; }
|
|
3648
|
+
.pf_v2 .pfv_v3_cat:hover { background: var(--pfv_tint); }
|
|
3649
|
+
.pf_v2 .pfv_v3_cat_name b { display: block; font-size: 14px; font-weight: 600; color: var(--pfv_ink); }
|
|
3650
|
+
.pf_v2 .pfv_v3_cat_name small { display: block; margin-top: 2px; font-size: 12px; color: var(--pfv_muted); }
|
|
3651
|
+
.pf_v2 .pfv_v3_bar { display: block; height: 8px; border-radius: 4px; overflow: hidden;
|
|
3652
|
+
background: color-mix(in srgb, var(--pfv_ink) 9%, transparent); }
|
|
3653
|
+
.pf_v2 .pfv_v3_bar i { display: block; height: 100%; border-radius: 4px;
|
|
3654
|
+
background: linear-gradient(90deg, var(--pfv_accent), color-mix(in srgb, var(--pfv_accent) 55%, #fff)); }
|
|
3655
|
+
.pf_v2 .pfv_v3_cat em { font-style: normal; text-align: right; font-size: 14px; color: var(--pfv_ink); font-variant-numeric: tabular-nums; }
|
|
3656
|
+
@container finder (max-width: 700px) {
|
|
3657
|
+
.pf_v2 .pfv_journey { grid-template-columns: minmax(0, 1fr); gap: var(--pfv3_s5); text-align: left; padding-top: 0; padding-left: var(--pfv3_s6); }
|
|
3658
|
+
.pf_v2 .pfv_journey::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto;
|
|
3659
|
+
background: linear-gradient(180deg, var(--pfv_accent), color-mix(in srgb, var(--pfv_accent) 30%, transparent)); }
|
|
3660
|
+
.pf_v2 .pfv_journey_stop::before { top: 4px; left: calc(-1 * var(--pfv3_s6)); margin-left: 0; }
|
|
3661
|
+
.pf_v2 .pfv_v3_cat { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: var(--pfv3_s3); }
|
|
3662
|
+
.pf_v2 .pfv_v3_cat_name small { display: none; }
|
|
3663
|
+
}
|
|
3664
|
+
/* Real states: waiting, and "we stopped before a verdict". */
|
|
3665
|
+
.pf_v2 .pfv_outcome_document:has(.pfv_search_status) { padding: var(--pfv3_s6); }
|
|
3666
|
+
.pf_v2 .pfv_search_echo { margin: 0; font-size: 12px; color: var(--pfv_muted); }
|
|
3667
|
+
.pf_v2 .pfv_search_echo b { display: block; margin-top: var(--pfv3_s1); font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--pfv_ink); }
|
|
3668
|
+
.pf_v2 .pfv_scan { position: relative; height: 3px; margin: var(--pfv3_s5) 0 var(--pfv3_s3); border-radius: 2px; overflow: hidden;
|
|
3669
|
+
background: color-mix(in srgb, var(--pfv_accent) 16%, transparent); }
|
|
3670
|
+
.pf_v2 .pfv_scan::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 2px;
|
|
3671
|
+
background: linear-gradient(90deg, transparent, var(--pfv_accent), transparent); animation: pfv_scan 1.5s ease-in-out infinite; }
|
|
3672
|
+
@keyframes pfv_scan { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
|
|
3673
|
+
@media (prefers-reduced-motion: reduce) { .pf_v2 .pfv_scan::after { animation: none; width: 100%; opacity: .35; } }
|
|
3674
|
+
.pf_v2 .pfv_search_status .pfv_hint { margin: var(--pfv3_s1) 0 0; font-size: 13px; line-height: 1.7; color: var(--pfv_muted); }
|
|
3675
|
+
/* A partial read is a warning, not fine print. */
|
|
3676
|
+
.pf_v2 .pfv_source_notice { margin: var(--pfv3_s3) 0 0; padding: var(--pfv3_s3) var(--pfv3_s4); border: 0; border-left: 3px solid #f0a841;
|
|
3677
|
+
border-radius: 0 10px 10px 0; background: rgba(240, 168, 65, .10); }
|
|
3678
|
+
.pf_v2 .pfv_source_notice p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--pfv_ink); }
|
|
3679
|
+
.pf_v2 .pfv_source_notice .pfv_hint { margin-top: var(--pfv3_s1); font-size: 12px; color: var(--pfv_muted); }
|
|
3680
|
+
/* Breathing pass after the first live screenshot: the rail sat on the composer,
|
|
3681
|
+
the featured heading collided with its own note, category rows broke into three
|
|
3682
|
+
lines, and every section had the same gap. */
|
|
3683
|
+
.pf_v2 .pfv_home_start > .pfv_home_intro .pfv_home_lead { margin: 2px 0 0; font-size: 12px; line-height: 1.6; }
|
|
3684
|
+
.pf_v2 .pfv_home_composer textarea { min-height: 56px; }
|
|
3685
|
+
.pf_v2 .pfv_journey_stop h3 { line-height: 1.5; }
|
|
3686
|
+
.pf_v2 .pfv_journey_stop p { margin-top: 6px; }
|
|
3687
|
+
/* Featured: one heading row, note underneath, never overlapping. */
|
|
3688
|
+
.pf_v2 .pf_featured_group > .pf_section_head { align-items: flex-start; margin-bottom: var(--pfv3_s4); }
|
|
3689
|
+
.pf_v2 .pf_featured_group h2 { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
|
|
3690
|
+
.pf_v2 .pfv_featured_intro { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--pfv_muted); }
|
|
3691
|
+
.pf_v2 .pf_featured_group { margin-top: var(--pfv3_s7); }
|
|
3692
|
+
/* Categories: a wider name column keeps each row on one line. */
|
|
3693
|
+
.pf_v2 .pfv_v3_cat { grid-template-columns: 168px minmax(0, 1fr) 64px; gap: var(--pfv3_s4); padding: var(--pfv3_s3) var(--pfv3_s3); }
|
|
3694
|
+
.pf_v2 .pfv_v3_cat_name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3695
|
+
.pf_v2 .pfv_v3_cat_name b { line-height: 1.5; }
|
|
3696
|
+
/* Rhythm: the gap between blocks is larger than any gap inside a block. */
|
|
3697
|
+
.pf_v2 .pfv_home_scenario { margin-top: var(--pfv3_s7); }
|
|
3698
|
+
.pf_v2 .pfv_opportunity { margin-top: var(--pfv3_s7); }
|
|
3699
|
+
.pf_v2 .pfv_v3_block { margin-top: var(--pfv3_s7); }
|
|
3700
|
+
.pf_v2 .pfv_last_search { margin-top: var(--pfv3_s7); padding-top: var(--pfv3_s5); border-top: 1px solid var(--pfv_line); }
|
|
3701
|
+
/* Found by rendering the real component: .pfv_home_card carries a 208px
|
|
3702
|
+
min-height, which is why the composer was a big empty box and the idea card
|
|
3703
|
+
was mostly blank. Compact them; the content decides the height. */
|
|
3704
|
+
.pf_v2 .pfv_home_composer.pfv_home_card { min-height: 0; padding: var(--pfv3_s4); }
|
|
3705
|
+
.pf_v2 .pfv_home_scenario .pfv_home_card { min-height: 0; padding: var(--pfv3_s5); align-items: flex-start; }
|
|
3706
|
+
.pf_v2 .pfv_home_scenario .pfv_home_card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
|
|
3707
|
+
.pf_v2 .pfv_home_scenario .pfv_home_card > p { margin-top: var(--pfv3_s2); }
|
|
3708
|
+
.pf_v2 .pfv_home_scenario .pfv_scenario_card .pfv_composer_bottom { justify-content: flex-start; margin-top: var(--pfv3_s4); padding-top: 0; }
|
|
3709
|
+
.pf_v2 .pfv_home_scenario { margin-top: var(--pfv3_s7); }
|
|
3710
|
+
.pf_v2 .pfv_home_scenario .pfv_home_heading { margin: 0; }
|
|
3711
|
+
.pf_v2 .pfv_home_scenario .pfv_home_lead { margin: 2px 0 var(--pfv3_s3); }
|
|
3712
|
+
/* Package names are identifiers, so they read as identifiers. */
|
|
3713
|
+
.pf_v2 .pfv_reuse_list strong,
|
|
3714
|
+
.pf_v2 .pfv_plugin_identity h1 { font-family: var(--pfv3_mono); font-weight: 500; letter-spacing: -.2px; }
|
|
3715
|
+
.pf_v2 .pfv_reuse_list strong { font-size: .94em; }
|
|
3716
|
+
|
|
3488
3717
|
@container finder (max-width: 700px) {
|
|
3489
3718
|
.pfv_plugin_hero { grid-template-columns: 1fr; gap: 4px; }
|
|
3490
3719
|
.pfv_plugin_install { padding-top: 18px; max-width: 360px; }
|
|
@@ -3581,26 +3810,43 @@ function creatorHandoffPrompt(steps) {
|
|
|
3581
3810
|
].join("\n");
|
|
3582
3811
|
}
|
|
3583
3812
|
var css = `
|
|
3584
|
-
.pfc_strip { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
.
|
|
3588
|
-
.
|
|
3589
|
-
.
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
.
|
|
3593
|
-
.pfc_stage
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
.
|
|
3597
|
-
|
|
3598
|
-
.
|
|
3813
|
+
.pfc_strip { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
|
|
3814
|
+
padding: 8px 10px 8px 12px; margin: 0 0 8px; border-radius: 12px;
|
|
3815
|
+
border: 1px solid var(--dsw-alias-border-l3, #dce4ed); background: var(--dsw-alias-bg-layer-1, #f7f9fc); }
|
|
3816
|
+
.pfc_strip[data-blocked="true"] { border-color: color-mix(in srgb, #f0a841 55%, var(--dsw-alias-border-l3, #dce4ed)); }
|
|
3817
|
+
.pfc_brand { display: inline-flex; align-items: center; gap: 7px; color: var(--dsw-alias-label-primary, #18263b); font-weight: 600; white-space: nowrap; font-size: 12.5px; }
|
|
3818
|
+
.pfc_brand::before { content: ""; width: 16px; height: 16px; border-radius: 5px; flex: none;
|
|
3819
|
+
background: linear-gradient(155deg, #7c93ff, #3b56e0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
|
|
3820
|
+
/* Bars alone cannot say what they mean, so each step keeps its name. */
|
|
3821
|
+
.pfc_track { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
|
|
3822
|
+
.pfc_stage { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px;
|
|
3823
|
+
font-size: 11.5px; line-height: 1; white-space: nowrap; color: var(--dsw-alias-label-secondary, #606b78);
|
|
3824
|
+
background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary, #18263b) 12%, transparent); }
|
|
3825
|
+
.pfc_stage[data-state="done"] { color: var(--dsw-alias-state-business-primary, #4d6bfe);
|
|
3826
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4d6bfe) 10%, transparent); box-shadow: none; }
|
|
3827
|
+
.pfc_stage[data-state="current"] { color: #fff; font-weight: 600;
|
|
3828
|
+
background: var(--dsw-alias-state-business-primary, #4d6bfe); box-shadow: none; }
|
|
3829
|
+
.pfc_stage[data-state="skipped"] { color: color-mix(in srgb, var(--dsw-alias-label-secondary, #606b78) 65%, transparent); }
|
|
3830
|
+
.pfc_dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; flex: none; }
|
|
3831
|
+
.pfc_stage[data-state="skipped"] .pfc_dot { background: transparent;
|
|
3832
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-secondary, #606b78) 55%, transparent); opacity: 1; }
|
|
3833
|
+
.pfc_stage[data-state="todo"] .pfc_dot { background: transparent;
|
|
3834
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary, #18263b) 22%, transparent); opacity: 1; }
|
|
3835
|
+
.pfc_last { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px;
|
|
3836
|
+
color: var(--dsw-alias-label-secondary, #606b78); }
|
|
3837
|
+
.pfc_actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
|
|
3838
|
+
.pfc_button { font: inherit; font-size: 12px; padding: 4px 11px; border-radius: 8px; border: 1px solid var(--dsw-alias-border-l2, #becbdb);
|
|
3839
|
+
background: transparent; color: var(--dsw-alias-label-primary, #18263b); cursor: pointer; }
|
|
3840
|
+
.pfc_button:hover { border-color: var(--dsw-alias-state-business-primary, #4d6bfe); }
|
|
3841
|
+
.pfc_button[data-primary="true"] { border-color: transparent; background: var(--dsw-alias-state-business-primary, #4d6bfe); color: #fff; }
|
|
3599
3842
|
.pfc_button:disabled { opacity: .5; cursor: default; }
|
|
3600
|
-
.pfc_link { font: inherit; font-size: 12px; border: 0; padding: 0; background: none; color: var(--dsw-alias-label-secondary, #606b78); cursor: pointer;
|
|
3843
|
+
.pfc_link { font: inherit; font-size: 12px; border: 0; padding: 0; background: none; color: var(--dsw-alias-label-secondary, #606b78); cursor: pointer;
|
|
3844
|
+
text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--dsw-alias-label-secondary, #606b78) 40%, transparent); }
|
|
3845
|
+
.pfc_link:hover { color: var(--dsw-alias-label-primary, #18263b); }
|
|
3601
3846
|
.pf_creator_notes { padding-left: 18px; line-height: 1.7; }
|
|
3602
3847
|
.pf_creator_notes li { margin: 4px 0; }
|
|
3603
3848
|
.pfc_link:focus-visible, .pfc_button:focus-visible { outline: 2px solid var(--dsw-alias-state-business-primary, #4d6bfe); outline-offset: 2px; }
|
|
3849
|
+
@media (prefers-reduced-motion: no-preference) { .pfc_stage { transition: background-color .2s, box-shadow .2s; } }
|
|
3604
3850
|
`;
|
|
3605
3851
|
var creatorStripCss = css;
|
|
3606
3852
|
function presetOf(ctx, sessionId) {
|
|
@@ -3740,7 +3986,7 @@ function createCreatorStrip(React2, { ctx, request, openSettings }) {
|
|
|
3740
3986
|
return h(
|
|
3741
3987
|
"div",
|
|
3742
3988
|
{ className: "pfc_strip", "data-blocked": progress.blocked ? "true" : "false", role: "region", "aria-label": "\u53D1\u73B0\u597D\u63D2\u4EF6 \xB7 \u521B\u9020\u8FDB\u5EA6" },
|
|
3743
|
-
h("span", { className: "pfc_brand", title: "\u300C\u53D1\u73B0\u597D\u63D2\u4EF6\u300D\
|
|
3989
|
+
h("span", { className: "pfc_brand", title: "\u300C\u53D1\u73B0\u597D\u63D2\u4EF6\u300D\u6309\u5148\u67E5\u73B0\u6210\u3001\u5148\u5B9A\u8BBE\u8BA1\u3001\u5148\u8DD1\u7A7A\u67B6\u5B50\u5E26\u4F60\u505A\uFF0C\u6BCF\u4E00\u6B65\u90FD\u4F1A\u5148\u95EE\u4F60\u3002" }, "\u63D2\u4EF6\u4E13\u5BB6\u966A\u4F60\u505A"),
|
|
3744
3990
|
h("ol", { className: "pfc_track", "aria-label": "\u521B\u9020\u9636\u6BB5" }, ...progress.stages.map((stage) => h(
|
|
3745
3991
|
"li",
|
|
3746
3992
|
{ key: stage.id, className: "pfc_stage", "data-state": stage.state, "aria-current": stage.state === "current" ? "step" : void 0, title: stage.state === "skipped" ? "\u8FD9\u4E00\u6B65\u6CA1\u6709\u8BB0\u5F55" : void 0 },
|
|
@@ -3755,7 +4001,7 @@ function createCreatorStrip(React2, { ctx, request, openSettings }) {
|
|
|
3755
4001
|
h(
|
|
3756
4002
|
"div",
|
|
3757
4003
|
{ className: "pfc_actions" },
|
|
3758
|
-
progress.count > 0 ? h("button", { type: "button", className: "pfc_button", "data-primary":
|
|
4004
|
+
progress.blocked && progress.count > 0 ? h("button", { type: "button", className: "pfc_button", "data-primary": "true", disabled: busy !== "", onClick: openNext, title: "\u65B0\u5EFA\u4E00\u4E2A\u5E72\u51C0\u7684\u521B\u9020\u6A21\u5F0F\u7A97\u53E3\uFF0C\u628A\u8FD9\u91CC\u8BB0\u4E0B\u7684\u8FDB\u5C55\u653E\u8FDB\u8F93\u5165\u6846\uFF08\u4E0D\u4F1A\u81EA\u52A8\u53D1\u9001\uFF09" }, busy === "next" ? "\u6B63\u5728\u6253\u5F00\u2026" : "\u5F00\u65B0\u7A97\u53E3\u63A5\u7740\u505A") : null,
|
|
3759
4005
|
typeof openSettings === "function" ? h("button", { type: "button", className: "pfc_link", onClick: openSettings }, "\u7ECF\u9A8C") : null,
|
|
3760
4006
|
h("button", { type: "button", className: "pfc_link", disabled: busy !== "", onClick: close }, "\u5173\u95ED")
|
|
3761
4007
|
)
|
package/docs/install.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 安装、首次使用与卸载
|
|
2
2
|
|
|
3
|
-
本说明对应 `@oxmumu3/dsh-plugin-finder@0.12.0-preview.
|
|
3
|
+
本说明对应 `@oxmumu3/dsh-plugin-finder@0.12.0-preview.20`。精确发布状态以 npm 与 GitHub Release 为准;尚未同步时保留当前安装,不用其他版本或本地路径冒充公开包。
|
|
4
4
|
|
|
5
5
|
正式发行记录见 [GitHub Releases](https://github.com/oxmumu3/dsh-plugin-finder/releases)。新版本附件及哈希确认存在前,不提供推测的下载地址。
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
公开发布并回读精确 npm 版本后,在正在使用的官方 Harness 原生「插件 → 添加插件」中填入:
|
|
23
23
|
|
|
24
24
|
```text
|
|
25
|
-
@oxmumu3/dsh-plugin-finder@0.12.0-preview.
|
|
25
|
+
@oxmumu3/dsh-plugin-finder@0.12.0-preview.20
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
这是本版的精确 npm 安装身份。若注册表尚未返回该版本,请查看正式 Release 并保留当前安装。通过本地 TGZ 安装时,应核对发行哈希;绝对路径必须位于目标宿主机器,不能使用另一台机器的路径。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxmumu3/dsh-plugin-finder",
|
|
3
|
-
"version": "0.12.0-preview.
|
|
3
|
+
"version": "0.12.0-preview.20",
|
|
4
4
|
"description": "Describe a need, find a usable plan, and run or create in the same DeepSeek Harness workspace",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"author": "牛村木木山",
|
package/src/creator-strip.js
CHANGED
|
@@ -40,26 +40,43 @@ export function creatorHandoffPrompt(steps) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
const css = `
|
|
43
|
-
.pfc_strip { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
.
|
|
47
|
-
.
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.
|
|
52
|
-
.pfc_stage
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.
|
|
56
|
-
|
|
57
|
-
.
|
|
43
|
+
.pfc_strip { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
|
|
44
|
+
padding: 8px 10px 8px 12px; margin: 0 0 8px; border-radius: 12px;
|
|
45
|
+
border: 1px solid var(--dsw-alias-border-l3, #dce4ed); background: var(--dsw-alias-bg-layer-1, #f7f9fc); }
|
|
46
|
+
.pfc_strip[data-blocked="true"] { border-color: color-mix(in srgb, #f0a841 55%, var(--dsw-alias-border-l3, #dce4ed)); }
|
|
47
|
+
.pfc_brand { display: inline-flex; align-items: center; gap: 7px; color: var(--dsw-alias-label-primary, #18263b); font-weight: 600; white-space: nowrap; font-size: 12.5px; }
|
|
48
|
+
.pfc_brand::before { content: ""; width: 16px; height: 16px; border-radius: 5px; flex: none;
|
|
49
|
+
background: linear-gradient(155deg, #7c93ff, #3b56e0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
|
|
50
|
+
/* Bars alone cannot say what they mean, so each step keeps its name. */
|
|
51
|
+
.pfc_track { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
|
|
52
|
+
.pfc_stage { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px;
|
|
53
|
+
font-size: 11.5px; line-height: 1; white-space: nowrap; color: var(--dsw-alias-label-secondary, #606b78);
|
|
54
|
+
background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary, #18263b) 12%, transparent); }
|
|
55
|
+
.pfc_stage[data-state="done"] { color: var(--dsw-alias-state-business-primary, #4d6bfe);
|
|
56
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4d6bfe) 10%, transparent); box-shadow: none; }
|
|
57
|
+
.pfc_stage[data-state="current"] { color: #fff; font-weight: 600;
|
|
58
|
+
background: var(--dsw-alias-state-business-primary, #4d6bfe); box-shadow: none; }
|
|
59
|
+
.pfc_stage[data-state="skipped"] { color: color-mix(in srgb, var(--dsw-alias-label-secondary, #606b78) 65%, transparent); }
|
|
60
|
+
.pfc_dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; flex: none; }
|
|
61
|
+
.pfc_stage[data-state="skipped"] .pfc_dot { background: transparent;
|
|
62
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-secondary, #606b78) 55%, transparent); opacity: 1; }
|
|
63
|
+
.pfc_stage[data-state="todo"] .pfc_dot { background: transparent;
|
|
64
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary, #18263b) 22%, transparent); opacity: 1; }
|
|
65
|
+
.pfc_last { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px;
|
|
66
|
+
color: var(--dsw-alias-label-secondary, #606b78); }
|
|
67
|
+
.pfc_actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
|
|
68
|
+
.pfc_button { font: inherit; font-size: 12px; padding: 4px 11px; border-radius: 8px; border: 1px solid var(--dsw-alias-border-l2, #becbdb);
|
|
69
|
+
background: transparent; color: var(--dsw-alias-label-primary, #18263b); cursor: pointer; }
|
|
70
|
+
.pfc_button:hover { border-color: var(--dsw-alias-state-business-primary, #4d6bfe); }
|
|
71
|
+
.pfc_button[data-primary="true"] { border-color: transparent; background: var(--dsw-alias-state-business-primary, #4d6bfe); color: #fff; }
|
|
58
72
|
.pfc_button:disabled { opacity: .5; cursor: default; }
|
|
59
|
-
.pfc_link { font: inherit; font-size: 12px; border: 0; padding: 0; background: none; color: var(--dsw-alias-label-secondary, #606b78); cursor: pointer;
|
|
73
|
+
.pfc_link { font: inherit; font-size: 12px; border: 0; padding: 0; background: none; color: var(--dsw-alias-label-secondary, #606b78); cursor: pointer;
|
|
74
|
+
text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--dsw-alias-label-secondary, #606b78) 40%, transparent); }
|
|
75
|
+
.pfc_link:hover { color: var(--dsw-alias-label-primary, #18263b); }
|
|
60
76
|
.pf_creator_notes { padding-left: 18px; line-height: 1.7; }
|
|
61
77
|
.pf_creator_notes li { margin: 4px 0; }
|
|
62
78
|
.pfc_link:focus-visible, .pfc_button:focus-visible { outline: 2px solid var(--dsw-alias-state-business-primary, #4d6bfe); outline-offset: 2px; }
|
|
79
|
+
@media (prefers-reduced-motion: no-preference) { .pfc_stage { transition: background-color .2s, box-shadow .2s; } }
|
|
63
80
|
`;
|
|
64
81
|
export const creatorStripCss = css;
|
|
65
82
|
|
|
@@ -156,13 +173,13 @@ export function createCreatorStrip(React, { ctx, request, openSettings }) {
|
|
|
156
173
|
void request('creator-configure', { enabled: false }).then(() => setClosedHere(true)).catch(() => setNotice('没有关闭成功,请稍后再试。')).finally(() => setBusy(''));
|
|
157
174
|
};
|
|
158
175
|
return h('div', { className: 'pfc_strip', 'data-blocked': progress.blocked ? 'true' : 'false', role: 'region', 'aria-label': '发现好插件 · 创造进度' },
|
|
159
|
-
h('span', { className: 'pfc_brand', title: '
|
|
176
|
+
h('span', { className: 'pfc_brand', title: '「发现好插件」按先查现成、先定设计、先跑空架子带你做,每一步都会先问你。' }, '插件专家陪你做'),
|
|
160
177
|
h('ol', { className: 'pfc_track', 'aria-label': '创造阶段' }, ...progress.stages.map(stage => h('li', { key: stage.id, className: 'pfc_stage', 'data-state': stage.state, 'aria-current': stage.state === 'current' ? 'step' : undefined, title: stage.state === 'skipped' ? '这一步没有记录' : undefined },
|
|
161
178
|
h('span', { className: 'pfc_dot', 'aria-hidden': true }), stage.label))),
|
|
162
179
|
h('span', { className: 'pfc_last', title: progress.last ? `${progress.last.label}:${progress.last.summary}` : undefined },
|
|
163
180
|
notice || (progress.last ? `${progress.last.label}:${progress.last.summary}` : '说出你想做的功能,它会先帮你查有没有现成插件。')),
|
|
164
181
|
h('div', { className: 'pfc_actions' },
|
|
165
|
-
progress.count > 0 ? h('button', { type: 'button', className: 'pfc_button', 'data-primary':
|
|
182
|
+
progress.blocked && progress.count > 0 ? h('button', { type: 'button', className: 'pfc_button', 'data-primary': 'true', disabled: busy !== '', onClick: openNext, title: '新建一个干净的创造模式窗口,把这里记下的进展放进输入框(不会自动发送)' }, busy === 'next' ? '正在打开…' : '开新窗口接着做') : null,
|
|
166
183
|
typeof openSettings === 'function' ? h('button', { type: 'button', className: 'pfc_link', onClick: openSettings }, '经验') : null,
|
|
167
184
|
h('button', { type: 'button', className: 'pfc_link', disabled: busy !== '', onClick: close }, '关闭')));
|
|
168
185
|
};
|
package/src/experience-style.js
CHANGED
|
@@ -626,6 +626,165 @@ export const experienceCss = `
|
|
|
626
626
|
.pfv_plugin_sources > p { color: var(--pfv_muted); font-size: 12px; margin-top: 12px !important; }
|
|
627
627
|
.pfv_plugin_error { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--pfv_line); border-radius: 10px; }
|
|
628
628
|
.pfv_plugin_error .pfv_button { margin-top: 10px; }
|
|
629
|
+
/* ==========================================================================
|
|
630
|
+
v3 layer (2026-11-09). Adds the approved prototype's scales and identity on
|
|
631
|
+
top of the existing structure: one column, three text levels, one scale for
|
|
632
|
+
space, and a single brand mark. Nothing here removes an existing rule; it
|
|
633
|
+
only overrides values that the prototype changed.
|
|
634
|
+
========================================================================== */
|
|
635
|
+
.pf_v2 {
|
|
636
|
+
--pfv3_s1: 4px; --pfv3_s2: 8px; --pfv3_s3: 12px; --pfv3_s4: 16px;
|
|
637
|
+
--pfv3_s5: 24px; --pfv3_s6: 32px; --pfv3_s7: 48px; --pfv3_s8: 64px;
|
|
638
|
+
--pfv3_col: 760px;
|
|
639
|
+
--pfv3_mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
|
|
640
|
+
}
|
|
641
|
+
/* One column: every top-level block on the home page shares the same edges. */
|
|
642
|
+
.pf_v2:has(.pfv_home) .pfv_inner { padding: var(--pfv3_s5) var(--pfv3_s6) var(--pfv3_s8); }
|
|
643
|
+
.pf_v2 .pfv_home { max-width: none; }
|
|
644
|
+
.pf_v2 .pfv_home > * { max-width: var(--pfv3_col); margin-inline: auto; }
|
|
645
|
+
.pf_v2 .pfv_home_start { display: block; max-width: none; }
|
|
646
|
+
.pf_v2 .pfv_home_start > * { max-width: var(--pfv3_col); margin-inline: auto; }
|
|
647
|
+
.pf_v2 .pfv_home_scenario { margin-top: var(--pfv3_s5); }
|
|
648
|
+
.pf_v2 .pfv_home_extras { margin-top: var(--pfv3_s4); }
|
|
649
|
+
.pf_v2 .pfv_home_card { border-radius: 16px; }
|
|
650
|
+
/* Identity: one badge, same silhouette at every size. */
|
|
651
|
+
.pf_v2 .pfv_expert_identity { gap: var(--pfv3_s4); padding: var(--pfv3_s4) 0 var(--pfv3_s5); }
|
|
652
|
+
.pf_v2 .pfv_expert_mark {
|
|
653
|
+
width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: #fff;
|
|
654
|
+
background: linear-gradient(155deg, #7c93ff, #3b56e0);
|
|
655
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .22);
|
|
656
|
+
}
|
|
657
|
+
.pf_v2 .pfv_expert_identity h1 {
|
|
658
|
+
font-size: clamp(32px, 3.6cqi, 46px); line-height: 1.18; letter-spacing: -.5px; font-weight: 700;
|
|
659
|
+
}
|
|
660
|
+
.pf_v2 .pfv_expert_identity .pfv_expert_name { font-size: 12px; letter-spacing: .2px; }
|
|
661
|
+
.pf_v2 .pfv_expert_identity p { margin-top: var(--pfv3_s3); font-size: 15px; }
|
|
662
|
+
/* Header: same column as the content below it. */
|
|
663
|
+
.pf_v2:has(.pfv_home) .pf_header { max-width: var(--pfv3_col); margin-inline: auto; }
|
|
664
|
+
/* Controls: one height, one radius, an honest disabled state. */
|
|
665
|
+
.pf_v2 .pfv_button { border-radius: 10px; }
|
|
666
|
+
.pf_v2 .pfv_button.pfv_primary { background: var(--pfv_accent); color: var(--pfv_on_accent); }
|
|
667
|
+
.pf_v2 .pfv_button.pfv_primary:hover { filter: brightness(.93); }
|
|
668
|
+
.pf_v2 .pfv_button.pfv_primary:disabled,
|
|
669
|
+
.pf_v2 .pfv_button.pfv_primary[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
|
|
670
|
+
.pf_v2 .pfv_composer { border-radius: 16px; }
|
|
671
|
+
/* The plan card: the one place that carries the brand, and the thing worth
|
|
672
|
+
screenshotting. Text inside uses a hue-matched set, never grey on colour. */
|
|
673
|
+
.pf_v2 .pfv_plan_hero {
|
|
674
|
+
position: relative; border-radius: 24px; padding: var(--pfv3_s6);
|
|
675
|
+
background: radial-gradient(120% 140% at 100% 0%, #22378a 0%, #16255a 40%, #0e1838 100%);
|
|
676
|
+
border: 1px solid rgba(147, 166, 255, .22);
|
|
677
|
+
box-shadow: 0 16px 48px rgba(4, 10, 32, .45);
|
|
678
|
+
}
|
|
679
|
+
.pf_v2 .pfv_plan_hero p, .pf_v2 .pfv_plan_hero li, .pf_v2 .pfv_plan_hero span,
|
|
680
|
+
.pf_v2 .pfv_plan_hero dd, .pf_v2 .pfv_plan_hero dt, .pf_v2 .pfv_plan_hero summary { color: #c7d0f6; }
|
|
681
|
+
.pf_v2 .pfv_plan_hero h1, .pf_v2 .pfv_plan_hero h2, .pf_v2 .pfv_plan_hero h3, .pf_v2 .pfv_plan_hero h4,
|
|
682
|
+
.pf_v2 .pfv_plan_hero strong, .pf_v2 .pfv_plan_hero b { color: #eef1ff; }
|
|
683
|
+
.pf_v2 .pfv_plan_hero .pfv_hint, .pf_v2 .pfv_plan_hero .pfv_version { color: #9eacde; }
|
|
684
|
+
.pf_v2 .pfv_plan_hero a { color: #9fb0ff; }
|
|
685
|
+
.pf_v2 .pfv_plan_hero .pfv_disclosure { border-top-color: rgba(147, 166, 255, .18); }
|
|
686
|
+
.pf_v2 .pfv_plan_hero h2, .pf_v2 .pfv_plan_hero h3 { letter-spacing: -.2px; }
|
|
687
|
+
/* Live-panel polish after the first real screenshot: the empty composer was
|
|
688
|
+
the largest object on the page, and two headings competed for the same job. */
|
|
689
|
+
.pf_v2 .pfv_composer textarea { min-height: 64px; }
|
|
690
|
+
.pf_v2 .pfv_home_heading { font-size: 16px; font-weight: 600; }
|
|
691
|
+
.pf_v2 .pfv_home_lead { font-size: 13px; }
|
|
692
|
+
.pf_v2 .pfv_last_search_request { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
693
|
+
.pf_v2 .pfv_last_search_sources { font-size: 12px; }
|
|
694
|
+
/* Home v3 structure: the three outcomes as one rail, and categories whose bar
|
|
695
|
+
length is the real share of the catalog. */
|
|
696
|
+
.pf_v2 .pfv_home_composer .pfv_composer_bottom { flex-wrap: wrap; gap: var(--pfv3_s3); }
|
|
697
|
+
.pf_v2 .pfv_home_composer .pfv_examples { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: var(--pfv3_s2); }
|
|
698
|
+
.pf_v2 .pfv_journey { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pfv3_s6);
|
|
699
|
+
margin-top: var(--pfv3_s8); text-align: center; padding-top: var(--pfv3_s6); }
|
|
700
|
+
.pf_v2 .pfv_journey::before { content: ""; position: absolute; top: 10px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; border-radius: 1px;
|
|
701
|
+
background: linear-gradient(90deg, var(--pfv_accent), color-mix(in srgb, var(--pfv_accent) 30%, transparent)); }
|
|
702
|
+
.pf_v2 .pfv_journey_stop { position: relative; }
|
|
703
|
+
.pf_v2 .pfv_journey_stop::before { content: ""; position: absolute; top: -30px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%;
|
|
704
|
+
background: var(--pfv_paper); border: 2px solid var(--pfv_accent); }
|
|
705
|
+
.pf_v2 .pfv_journey_stop.pfv_journey_auto::before { background: #43c495; border-color: #43c495; box-shadow: 0 0 0 4px rgba(67, 196, 149, .16); }
|
|
706
|
+
.pf_v2 .pfv_journey_stop h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--pfv_ink); }
|
|
707
|
+
.pf_v2 .pfv_journey_stop p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--pfv_muted); }
|
|
708
|
+
.pf_v2 .pfv_journey_tag { display: inline-flex; align-items: center; height: 24px; margin-top: var(--pfv3_s3); padding: 0 var(--pfv3_s2); border-radius: 999px;
|
|
709
|
+
font-size: 12px; color: #2f9c76; background: rgba(67, 196, 149, .14); }
|
|
710
|
+
.pf_v2 .pfv_v3_block { margin-top: var(--pfv3_s7); }
|
|
711
|
+
.pf_v2 .pfv_v3_head { display: flex; align-items: baseline; gap: var(--pfv3_s3); margin-bottom: var(--pfv3_s4); }
|
|
712
|
+
.pf_v2 .pfv_v3_head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--pfv_ink); }
|
|
713
|
+
.pf_v2 .pfv_v3_head span { font-size: 14px; color: var(--pfv_muted); }
|
|
714
|
+
.pf_v2 .pfv_v3_more { margin-left: auto; font-size: 14px; color: var(--pfv_accent); text-decoration: none; }
|
|
715
|
+
.pf_v2 .pfv_v3_more:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
716
|
+
.pf_v2 .pfv_v3_cats { display: grid; gap: var(--pfv3_s1); }
|
|
717
|
+
.pf_v2 .pfv_v3_cat { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; align-items: center; gap: var(--pfv3_s4);
|
|
718
|
+
padding: var(--pfv3_s2) var(--pfv3_s3); border-radius: 8px; text-decoration: none; color: inherit; }
|
|
719
|
+
.pf_v2 .pfv_v3_cat:hover { background: var(--pfv_tint); }
|
|
720
|
+
.pf_v2 .pfv_v3_cat_name b { display: block; font-size: 14px; font-weight: 600; color: var(--pfv_ink); }
|
|
721
|
+
.pf_v2 .pfv_v3_cat_name small { display: block; margin-top: 2px; font-size: 12px; color: var(--pfv_muted); }
|
|
722
|
+
.pf_v2 .pfv_v3_bar { display: block; height: 8px; border-radius: 4px; overflow: hidden;
|
|
723
|
+
background: color-mix(in srgb, var(--pfv_ink) 9%, transparent); }
|
|
724
|
+
.pf_v2 .pfv_v3_bar i { display: block; height: 100%; border-radius: 4px;
|
|
725
|
+
background: linear-gradient(90deg, var(--pfv_accent), color-mix(in srgb, var(--pfv_accent) 55%, #fff)); }
|
|
726
|
+
.pf_v2 .pfv_v3_cat em { font-style: normal; text-align: right; font-size: 14px; color: var(--pfv_ink); font-variant-numeric: tabular-nums; }
|
|
727
|
+
@container finder (max-width: 700px) {
|
|
728
|
+
.pf_v2 .pfv_journey { grid-template-columns: minmax(0, 1fr); gap: var(--pfv3_s5); text-align: left; padding-top: 0; padding-left: var(--pfv3_s6); }
|
|
729
|
+
.pf_v2 .pfv_journey::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto;
|
|
730
|
+
background: linear-gradient(180deg, var(--pfv_accent), color-mix(in srgb, var(--pfv_accent) 30%, transparent)); }
|
|
731
|
+
.pf_v2 .pfv_journey_stop::before { top: 4px; left: calc(-1 * var(--pfv3_s6)); margin-left: 0; }
|
|
732
|
+
.pf_v2 .pfv_v3_cat { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: var(--pfv3_s3); }
|
|
733
|
+
.pf_v2 .pfv_v3_cat_name small { display: none; }
|
|
734
|
+
}
|
|
735
|
+
/* Real states: waiting, and "we stopped before a verdict". */
|
|
736
|
+
.pf_v2 .pfv_outcome_document:has(.pfv_search_status) { padding: var(--pfv3_s6); }
|
|
737
|
+
.pf_v2 .pfv_search_echo { margin: 0; font-size: 12px; color: var(--pfv_muted); }
|
|
738
|
+
.pf_v2 .pfv_search_echo b { display: block; margin-top: var(--pfv3_s1); font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--pfv_ink); }
|
|
739
|
+
.pf_v2 .pfv_scan { position: relative; height: 3px; margin: var(--pfv3_s5) 0 var(--pfv3_s3); border-radius: 2px; overflow: hidden;
|
|
740
|
+
background: color-mix(in srgb, var(--pfv_accent) 16%, transparent); }
|
|
741
|
+
.pf_v2 .pfv_scan::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 2px;
|
|
742
|
+
background: linear-gradient(90deg, transparent, var(--pfv_accent), transparent); animation: pfv_scan 1.5s ease-in-out infinite; }
|
|
743
|
+
@keyframes pfv_scan { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
|
|
744
|
+
@media (prefers-reduced-motion: reduce) { .pf_v2 .pfv_scan::after { animation: none; width: 100%; opacity: .35; } }
|
|
745
|
+
.pf_v2 .pfv_search_status .pfv_hint { margin: var(--pfv3_s1) 0 0; font-size: 13px; line-height: 1.7; color: var(--pfv_muted); }
|
|
746
|
+
/* A partial read is a warning, not fine print. */
|
|
747
|
+
.pf_v2 .pfv_source_notice { margin: var(--pfv3_s3) 0 0; padding: var(--pfv3_s3) var(--pfv3_s4); border: 0; border-left: 3px solid #f0a841;
|
|
748
|
+
border-radius: 0 10px 10px 0; background: rgba(240, 168, 65, .10); }
|
|
749
|
+
.pf_v2 .pfv_source_notice p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--pfv_ink); }
|
|
750
|
+
.pf_v2 .pfv_source_notice .pfv_hint { margin-top: var(--pfv3_s1); font-size: 12px; color: var(--pfv_muted); }
|
|
751
|
+
/* Breathing pass after the first live screenshot: the rail sat on the composer,
|
|
752
|
+
the featured heading collided with its own note, category rows broke into three
|
|
753
|
+
lines, and every section had the same gap. */
|
|
754
|
+
.pf_v2 .pfv_home_start > .pfv_home_intro .pfv_home_lead { margin: 2px 0 0; font-size: 12px; line-height: 1.6; }
|
|
755
|
+
.pf_v2 .pfv_home_composer textarea { min-height: 56px; }
|
|
756
|
+
.pf_v2 .pfv_journey_stop h3 { line-height: 1.5; }
|
|
757
|
+
.pf_v2 .pfv_journey_stop p { margin-top: 6px; }
|
|
758
|
+
/* Featured: one heading row, note underneath, never overlapping. */
|
|
759
|
+
.pf_v2 .pf_featured_group > .pf_section_head { align-items: flex-start; margin-bottom: var(--pfv3_s4); }
|
|
760
|
+
.pf_v2 .pf_featured_group h2 { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
|
|
761
|
+
.pf_v2 .pfv_featured_intro { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--pfv_muted); }
|
|
762
|
+
.pf_v2 .pf_featured_group { margin-top: var(--pfv3_s7); }
|
|
763
|
+
/* Categories: a wider name column keeps each row on one line. */
|
|
764
|
+
.pf_v2 .pfv_v3_cat { grid-template-columns: 168px minmax(0, 1fr) 64px; gap: var(--pfv3_s4); padding: var(--pfv3_s3) var(--pfv3_s3); }
|
|
765
|
+
.pf_v2 .pfv_v3_cat_name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
766
|
+
.pf_v2 .pfv_v3_cat_name b { line-height: 1.5; }
|
|
767
|
+
/* Rhythm: the gap between blocks is larger than any gap inside a block. */
|
|
768
|
+
.pf_v2 .pfv_home_scenario { margin-top: var(--pfv3_s7); }
|
|
769
|
+
.pf_v2 .pfv_opportunity { margin-top: var(--pfv3_s7); }
|
|
770
|
+
.pf_v2 .pfv_v3_block { margin-top: var(--pfv3_s7); }
|
|
771
|
+
.pf_v2 .pfv_last_search { margin-top: var(--pfv3_s7); padding-top: var(--pfv3_s5); border-top: 1px solid var(--pfv_line); }
|
|
772
|
+
/* Found by rendering the real component: .pfv_home_card carries a 208px
|
|
773
|
+
min-height, which is why the composer was a big empty box and the idea card
|
|
774
|
+
was mostly blank. Compact them; the content decides the height. */
|
|
775
|
+
.pf_v2 .pfv_home_composer.pfv_home_card { min-height: 0; padding: var(--pfv3_s4); }
|
|
776
|
+
.pf_v2 .pfv_home_scenario .pfv_home_card { min-height: 0; padding: var(--pfv3_s5); align-items: flex-start; }
|
|
777
|
+
.pf_v2 .pfv_home_scenario .pfv_home_card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
|
|
778
|
+
.pf_v2 .pfv_home_scenario .pfv_home_card > p { margin-top: var(--pfv3_s2); }
|
|
779
|
+
.pf_v2 .pfv_home_scenario .pfv_scenario_card .pfv_composer_bottom { justify-content: flex-start; margin-top: var(--pfv3_s4); padding-top: 0; }
|
|
780
|
+
.pf_v2 .pfv_home_scenario { margin-top: var(--pfv3_s7); }
|
|
781
|
+
.pf_v2 .pfv_home_scenario .pfv_home_heading { margin: 0; }
|
|
782
|
+
.pf_v2 .pfv_home_scenario .pfv_home_lead { margin: 2px 0 var(--pfv3_s3); }
|
|
783
|
+
/* Package names are identifiers, so they read as identifiers. */
|
|
784
|
+
.pf_v2 .pfv_reuse_list strong,
|
|
785
|
+
.pf_v2 .pfv_plugin_identity h1 { font-family: var(--pfv3_mono); font-weight: 500; letter-spacing: -.2px; }
|
|
786
|
+
.pf_v2 .pfv_reuse_list strong { font-size: .94em; }
|
|
787
|
+
|
|
629
788
|
@container finder (max-width: 700px) {
|
|
630
789
|
.pfv_plugin_hero { grid-template-columns: 1fr; gap: 4px; }
|
|
631
790
|
.pfv_plugin_install { padding-top: 18px; max-width: 360px; }
|
package/src/experience-view.js
CHANGED
|
@@ -4,7 +4,7 @@ import { renderFeaturedView } from './featured-view.js';
|
|
|
4
4
|
import { featuredCatalog } from './featured-catalog.js';
|
|
5
5
|
import { rankFeatured } from './featured.js';
|
|
6
6
|
import { createCommunityView } from './community-view.js';
|
|
7
|
-
import { getCommunityEntry } from './community-catalog.js';
|
|
7
|
+
import { getCommunityEntry, getCommunityOverview } from './community-catalog.js';
|
|
8
8
|
|
|
9
9
|
const text = value => typeof value === 'string' ? value : '';
|
|
10
10
|
const items = value => Array.isArray(value) ? value : [];
|
|
@@ -170,6 +170,42 @@ export function createExperienceView(React) {
|
|
|
170
170
|
}));
|
|
171
171
|
})();
|
|
172
172
|
|
|
173
|
+
const catalog = (() => { try { return getCommunityOverview(); } catch { return null; } })();
|
|
174
|
+
const catalogTotal = safeCount(catalog?.total);
|
|
175
|
+
const countText = value => safeCount(value).toLocaleString('en-US');
|
|
176
|
+
const categories = records(catalog?.categories)
|
|
177
|
+
.filter(item => text(item.label) && Number.isSafeInteger(item.count))
|
|
178
|
+
.sort((left, right) => right.count - left.count).slice(0, 6);
|
|
179
|
+
const categoryMax = categories.reduce((max, item) => Math.max(max, item.count), 1);
|
|
180
|
+
|
|
181
|
+
// Three outcomes on one rail: the product promise, in the order it happens.
|
|
182
|
+
const journey = h('div', { className: 'pfv_journey', 'aria-label': '它会怎么帮你' },
|
|
183
|
+
h('div', { className: 'pfv_journey_stop' }, h('h3', null, '先找现成的'),
|
|
184
|
+
h('p', null, catalogTotal
|
|
185
|
+
? `从 ${countText(catalogTotal)} 个社区插件里挑最合适的,说清为什么选它、为什么不选别的。`
|
|
186
|
+
: '从社区插件里挑最合适的,说清为什么选它、为什么不选别的。')),
|
|
187
|
+
h('div', { className: 'pfv_journey_stop' }, h('h3', null, '装好跑一遍'),
|
|
188
|
+
h('p', null, '装进你选的工作区真跑一次,装之前先核对作者和兼容。')),
|
|
189
|
+
h('div', { className: 'pfv_journey_stop pfv_journey_auto' }, h('h3', null, '没有就一起做'),
|
|
190
|
+
h('p', null, '在创造模式里陪你查现成、定设计、搭骨架,一次加一个功能。'),
|
|
191
|
+
h('span', { className: 'pfv_journey_tag' }, '装上就生效,不用设置')));
|
|
192
|
+
|
|
193
|
+
// Bar length is the real share of the catalog, so the order explains itself.
|
|
194
|
+
const categoriesView = categories.length ? h('section', { className: 'pfv_v3_block', 'aria-labelledby': 'pfv_categories_title' },
|
|
195
|
+
h('div', { className: 'pfv_v3_head' },
|
|
196
|
+
h('h2', { id: 'pfv_categories_title' }, '按用途逛'),
|
|
197
|
+
h('span', null, '按数量排,条越长插件越多'),
|
|
198
|
+
h('a', { href: '#pfv_community_title', className: 'pfv_v3_more' }, '看全部插件')),
|
|
199
|
+
h('div', { className: 'pfv_v3_cats' }, ...categories.map(item => h('a', {
|
|
200
|
+
key: text(item.id) || text(item.label), className: 'pfv_v3_cat', href: '#pfv_community_title',
|
|
201
|
+
},
|
|
202
|
+
h('span', { className: 'pfv_v3_cat_name' },
|
|
203
|
+
h('b', null, text(item.label)),
|
|
204
|
+
text(item.description) ? h('small', null, text(item.description)) : null),
|
|
205
|
+
h('span', { className: 'pfv_v3_bar', 'aria-hidden': true },
|
|
206
|
+
h('i', { style: { width: `${Math.max(4, Math.round(item.count / categoryMax * 100))}%` } })),
|
|
207
|
+
h('em', null, countText(item.count)))))) : null;
|
|
208
|
+
|
|
173
209
|
const home = () => h('div', { className: 'pfv_home' },
|
|
174
210
|
h('header', { className: 'pfv_expert_identity', 'aria-labelledby': 'pfv_expert_title' },
|
|
175
211
|
h('span', { className: 'pfv_expert_mark', 'aria-hidden': true, dangerouslySetInnerHTML: { __html: expertWhaleSvg } }),
|
|
@@ -179,36 +215,37 @@ export function createExperienceView(React) {
|
|
|
179
215
|
h('div', null, h('h2', { id: 'pfv_product_intro_title' }, '从需求到能用'), h('p', null, '先查现成能力,只造缺失部分,在当前工作区做到能用。')),
|
|
180
216
|
button('×', () => { controller.hideProductIntro?.(); globalThis.document?.getElementById('pfv_intro_toggle')?.focus(); }, { className: 'pfv_button pfv_quiet pfv_intro_close', 'aria-label': '关闭产品介绍' })) : null,
|
|
181
217
|
h('div', { className: 'pfv_home_start', role: 'group', 'aria-labelledby': 'pfv_expert_title', 'aria-describedby': 'pfv_expert_opening' },
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
h('
|
|
201
|
-
|
|
202
|
-
state.
|
|
203
|
-
state.opportunity ? renderOpportunityCard({h,state,controller,disabled:locked,modelReady,fallback:{id:scenario.id,title:scenarioTitles[scenario.id],benefit:scenarioBenefits[scenario.id],basis:suggested?'本机线索':'通用想法',reason:suggested?.reason||''}}) : h('aside', { className: 'pfv_home_scenario', 'aria-label': suggested ? '猜你喜欢' : '试试这个' },
|
|
218
|
+
h('section', { className: 'pfv_home_intro', 'aria-labelledby': 'pfv_home_title' },
|
|
219
|
+
resumeView,
|
|
220
|
+
h('h2', { id: 'pfv_home_title', className: 'pfv_home_heading' }, '告诉我你的目标'),
|
|
221
|
+
h('p', { className: 'pfv_home_lead' }, '一句话就好,之后我们接着聊。'),
|
|
222
|
+
h('form', { className: 'pfv_composer pfv_home_composer pfv_home_card', onSubmit: event => { event.preventDefault(); if (!busy && modelReady && text(state.homeRequest).trim()) void controller.searchHome(); } },
|
|
223
|
+
state.homeCommunityEntryId ? h('div', { className: 'pfv_home_selection', 'aria-label': '已选插件' },
|
|
224
|
+
h('span', null, `已选插件:${homeCommunityEntry?.name || '当前目录未收录'}`),
|
|
225
|
+
button('取消指定', () => { if (!taskInputBusy) controller.clearHomeCommunitySelection(); }, { className: 'pfv_button pfv_quiet', disabled: taskInputBusy })) : null,
|
|
226
|
+
h('label', { className: 'pfv_sr_only', htmlFor: 'pfv_home_input' }, '任务描述'),
|
|
227
|
+
h('textarea', { ref: homeInput, id: 'pfv_home_input', 'aria-label': '任务描述', value: text(state.homeRequest), maxLength: 6000, disabled: taskInputBusy, placeholder: '例如:把会议记录整理成待办,再给我一份项目简报。', onChange: event => controller.setHomeRequest(event.target.value), onKeyDown: shortcut }),
|
|
228
|
+
h('div', { className: 'pfv_composer_bottom' },
|
|
229
|
+
h('div', { className: 'pfv_examples', 'aria-label': '可编辑的需求示例' }, h('span', { className: 'pfv_hint' }, '例如'), ...examples.map(([label, value]) => button(label, () => {
|
|
230
|
+
if (controller.prepareHomeExample) controller.prepareHomeExample(value);
|
|
231
|
+
else if (!text(state.homeRequest).trim()) controller.setHomeRequest(value);
|
|
232
|
+
homeInput.current?.focus?.();
|
|
233
|
+
}, { key: label, className: 'pfv_button pfv_example', disabled: taskInputBusy, 'aria-label': `填入${label}的示例,之后可以修改` }))),
|
|
234
|
+
h('button', { type: 'submit', className: 'pfv_button pfv_primary', disabled: busy || !modelReady || !text(state.homeRequest).trim() }, '帮我找方案'))),
|
|
235
|
+
state.homeWarning ? h('p', { className: 'pfv_warning', role: 'status' }, text(state.homeWarning)) : null,
|
|
236
|
+
state.bootstrapLoaded && !modelReady ? h('div', { className: 'pfv_warning' }, h('p', null, '先在 DSH 设置中配置默认模型,再开始查找。'), button('重新读取配置', () => controller.bootstrap(), { disabled: busy })) : null),
|
|
237
|
+
journey,
|
|
238
|
+
state.opportunity ? renderOpportunityCard({h,state,controller,disabled:locked,modelReady,fallback:{id:scenario.id,title:scenarioTitles[scenario.id],benefit:scenarioBenefits[scenario.id],basis:suggested?'本机线索':'通用想法',reason:suggested?.reason||''}}) : h('aside', { className: 'pfv_home_scenario', 'aria-label': suggested ? '猜你喜欢' : '试试这个' },
|
|
204
239
|
h('h2', { className: 'pfv_home_heading' }, suggested ? '我猜你可能需要' : '我先给你一个想法'),
|
|
205
240
|
h('p', { className: 'pfv_home_lead' }, '也可以从这个想法开始聊。'),
|
|
206
241
|
h('div', { className: 'pfv_home_card pfv_scenario_card' },
|
|
207
242
|
h('h3', null, scenarioTitles[scenario.id]), paragraph(scenarioBenefits[scenario.id]),
|
|
208
243
|
suggested ? h('p', { className: 'pfv_scenario_reason' }, suggested.reason) : null,
|
|
209
|
-
h('div', { className: 'pfv_composer_bottom' }, button('开始这个需求', () => controller.startFeatured(scenario.id), { className: 'pfv_button pfv_scenario_start', disabled: locked || !modelReady }))))
|
|
210
|
-
|
|
244
|
+
h('div', { className: 'pfv_composer_bottom' }, button('开始这个需求', () => controller.startFeatured(scenario.id), { className: 'pfv_button pfv_scenario_start', disabled: locked || !modelReady })))),
|
|
245
|
+
renderOpportunitySettings({h,state,controller,modelReady})),
|
|
211
246
|
renderFeaturedView({ h, state, controller, copyText, busy, mode: 'home' }),
|
|
247
|
+
categoriesView,
|
|
248
|
+
lastSearchView,
|
|
212
249
|
h(CommunityView, { controller, busy: locked, modelReady }));
|
|
213
250
|
|
|
214
251
|
if (state.view === 'home' && !state.searching) return home();
|
|
@@ -257,6 +294,15 @@ export function createExperienceView(React) {
|
|
|
257
294
|
disclosure('来源与备选方案', h(React.Fragment, null, sections.candidateView, sections.searchEvidence, sections.selectedInstallGuide)),
|
|
258
295
|
disclosure('需求与修改记录', h(React.Fragment, null, history, sections.taskHistory)),
|
|
259
296
|
disclosure('记录使用结果', sections.feedback));
|
|
297
|
+
// While a search is running the page used to be an empty document. Say what is
|
|
298
|
+
// happening, echo the request, and never invent a percentage.
|
|
299
|
+
const searchingView = startingNew ? h('article', { className: 'pfv_search_status', role: 'status', 'aria-live': 'polite' },
|
|
300
|
+
// Echo the request this search is about; never the previous one.
|
|
301
|
+
h('p', { className: 'pfv_search_echo' }, '你问', h('b', null, text(state.homeRequest) || text(state.request) || '这次的需求')),
|
|
302
|
+
h('div', { className: 'pfv_scan', 'aria-hidden': true }),
|
|
303
|
+
h('p', { className: 'pfv_hint' }, '方案正在形成:正在读社区目录、查你的本机环境,然后用一句话给结论。通常十几秒。'),
|
|
304
|
+
h('p', { className: 'pfv_hint' }, '查完会留在这里,不用守着这一页。')) : null;
|
|
305
|
+
|
|
260
306
|
const sourceNotice = health ? h('aside', { className: 'pfv_source_notice', role: 'status' }, h('p', null, health.message),
|
|
261
307
|
health.incomplete && isCreating ? h('p', { className: 'pfv_hint' }, '开始创建时会重新核对;你的补充会保留。') : null) : null;
|
|
262
308
|
const workspacePicker = sections.workspacePicker ? h('div', { className: 'pfv_workspace_picker' }, sections.workspacePicker) : null;
|
|
@@ -342,7 +388,7 @@ export function createExperienceView(React) {
|
|
|
342
388
|
request.length > 80 ? disclosure('查看完整需求', paragraph(request)) : null,
|
|
343
389
|
!startingNew && !execution && text(state.intent?.goal) && state.intent.goal !== request ? h('p', null, h('span', { className: 'pfv_hint' }, '我的理解'), h('span', { className: 'pfv_understanding_text' }, short(state.intent.goal, 160))) : null),
|
|
344
390
|
h('section', { className: 'pfv_outcome', id: 'pfv_outcome', 'aria-labelledby': 'pfv_outcome_title', 'aria-busy': Boolean(followupBusy) },
|
|
345
|
-
h('div', { className: 'pfv_column_heading' }, h('h2', { id: 'pfv_outcome_title' }, execution ? '本次运行' : isCreating ? '插件方案' : previousOutcome ? '上一版方案' : '当前方案'), startingNew ? null : h('span', { className: 'pfv_version' }, revisionLabel)),
|
|
346
|
-
statusLine, execution ? null : sourceNotice, h('div', { className: `pfv_outcome_document${execution ? ' pfv_outcome_live' : ''}` }, execution ? h('div', { className: 'pfv_result_grid' }, h('div', { className: 'pfv_result_primary' }, executionView), h('aside', { className: 'pfv_solution_overview', 'aria-label': '本次能力方案' }, isCreating ? blueprintView() : planView())) : isCreating ? blueprintView() : h(
|
|
391
|
+
h('div', { className: 'pfv_column_heading' }, h('h2', { id: 'pfv_outcome_title' }, startingNew ? '正在查找' : execution ? '本次运行' : isCreating ? '插件方案' : previousOutcome ? '上一版方案' : '当前方案'), startingNew ? null : h('span', { className: 'pfv_version' }, revisionLabel)),
|
|
392
|
+
statusLine, execution ? null : sourceNotice, h('div', { className: `pfv_outcome_document${execution ? ' pfv_outcome_live' : ''}` }, startingNew ? searchingView : execution ? h('div', { className: 'pfv_result_grid' }, h('div', { className: 'pfv_result_primary' }, executionView), h('aside', { className: 'pfv_solution_overview', 'aria-label': '本次能力方案' }, isCreating ? blueprintView() : planView())) : isCreating ? blueprintView() : h('section', { className: 'pfv_plan_hero', 'aria-label': '当前方案' }, expertPlanCard, planView())), execution || startingNew ? null : expertSection || followup, startingNew ? null : evidence));
|
|
347
393
|
};
|
|
348
394
|
}
|
package/src/telemetry-config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const COLLECTOR_URL='https://dsh-plugin-finder-feedback-v1.dsh-plugin-finder.workers.dev';
|
|
2
|
-
export const CLIENT_VERSION='0.12.0-preview.
|
|
2
|
+
export const CLIENT_VERSION='0.12.0-preview.20';
|