@oxmumu3/dsh-plugin-finder 0.12.0-preview.4 → 0.12.0-preview.7
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 +7 -0
- package/README.md +2 -2
- package/dist/client.js +18 -12
- package/docs/install.md +2 -2
- package/package.json +1 -1
- package/src/experience-style.js +15 -10
- package/src/experience-view.js +3 -2
- package/src/telemetry-config.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# 0.12.0-preview.7(2026-11-05)
|
|
2
|
+
|
|
3
|
+
- 首页改为真正的单列块流:此前的「基础单列 + 隐式第二列」写法会让输入卡撑高、推荐卡挤成一条、右半页留空;现在三者自上而下排列,宽度一致。
|
|
4
|
+
- 「上次进行到这里」上移到输入卡上方,按钮跟在文字后,不再被甩到最右或被视口裁掉。
|
|
5
|
+
- 推荐区降为输入卡下方的一条横带,示例与商店入口回到同一行。
|
|
6
|
+
- 输入框最小高度收紧,空行时不再占掉半屏。
|
|
7
|
+
|
|
1
8
|
# 0.12.0-preview.4(2026-11-04)
|
|
2
9
|
|
|
3
10
|
- 检索留痕:每次完整检索存一条小记录(需求、时间、各来源读到/采用条数、失败项与方案概要),首页可回看「上次查找」,不再随会话结束丢失。
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Finder 把需求理解、现成能力选择、插件组合和缺口创造接在同一个工作区。能用现有能力完成,就直接用;现成插件只覆盖一部分,就保留这些能力,只为缺失部分创建插件。首页、精选和插件商店都是这位插件专家的入口。
|
|
6
6
|
|
|
7
|
-
**版本:`@oxmumu3/dsh-plugin-finder@0.12.0-preview.
|
|
7
|
+
**版本:`@oxmumu3/dsh-plugin-finder@0.12.0-preview.7`。** 准确目标为官方 Harness `0.2.1-rc.5` 与 `0.2.2-rc.1`(后者要求宿主 Node `>=24.9.0`),Node `^22.19.0 || >=24.0.0`。正式安装状态以 [Release 列表](https://github.com/oxmumu3/dsh-plugin-finder/releases)、npm 精确版本和最终验收记录为准。
|
|
8
8
|
|
|
9
9
|
[安装说明](docs/install.md) · [当前工作区流程](docs/workspace-flow-preview.md) · [主 Agent 调用](docs/agent-entry.md) · [数据与回传](docs/data-sharing.md) · [反馈](https://github.com/oxmumu3/dsh-plugin-finder/issues)
|
|
10
10
|
|
|
@@ -46,7 +46,7 @@ Finder 把需求理解、现成能力选择、插件组合和缺口创造接在
|
|
|
46
46
|
|
|
47
47
|
## 安装与兼容
|
|
48
48
|
|
|
49
|
-
通过当前官方 Harness 原生「插件 → 添加插件」安装精确 npm 来源 `@oxmumu3/dsh-plugin-finder@0.12.0-preview.
|
|
49
|
+
通过当前官方 Harness 原生「插件 → 添加插件」安装精确 npm 来源 `@oxmumu3/dsh-plugin-finder@0.12.0-preview.7`。发布状态以 npm 精确版本与 Release 回读为准;尚未同步时保留当前安装。已有预览包不得仅因版本号较大就覆盖另一条有效修复线。
|
|
50
50
|
|
|
51
51
|
本版目标为官方 `0.2.1-rc.5`;四个官方 SDK peer 均固定同一版本:`@deepseek-ai/dsh-app-boot`、`@deepseek-ai/dsh-storage-domain`、`@deepseek-ai/dsh-tools`、`@deepseek-ai/dsh-sandbox`。Node 要求为 `^22.19.0 || >=24.0.0`。其他 RC、next 或实验 alpha 不据此推断兼容;安装、启用、卸载/重启与最终包的真实验证范围,以对应发行版的验收记录为准。
|
|
52
52
|
|
package/dist/client.js
CHANGED
|
@@ -2502,6 +2502,7 @@ function createExperienceView(React2) {
|
|
|
2502
2502
|
const suggested = rankFeatured(featuredCatalog, { history: Array.isArray(state.featuredHistory) ? state.featuredHistory : state.history, preferences: state.featuredPreferences })[0];
|
|
2503
2503
|
const scenario = suggested?.entry || featuredCatalog.find((entry) => !items3(state.featuredPreferences?.dismissed).includes(entry.id)) || featuredCatalog[0];
|
|
2504
2504
|
const homeCommunityEntry = getCommunityEntry(state.homeCommunityEntryId);
|
|
2505
|
+
const resumeView = state.taskId || state.request ? h("div", { className: "pfv_resume" }, h("div", null, h("span", { className: "pfv_hint" }, "\u4E0A\u6B21\u8FDB\u884C\u5230\u8FD9\u91CC"), paragraph(text6(state.creation?.blueprint?.name) || text6(state.plan?.title) || text6(state.intent?.goal) || text6(state.request))), button2("\u7EE7\u7EED\u4E0A\u6B21\u65B9\u6848", () => state.creation ? controller.showCreation() : controller.showFind(), { disabled: busy })) : null;
|
|
2505
2506
|
const lastSearchView = (() => {
|
|
2506
2507
|
const rows = records(state.searchHistory).filter((record2) => text6(record2.request) || records(record2.sources).length).slice(0, 2);
|
|
2507
2508
|
if (!rows.length) return null;
|
|
@@ -2569,6 +2570,7 @@ function createExperienceView(React2) {
|
|
|
2569
2570
|
h(
|
|
2570
2571
|
"section",
|
|
2571
2572
|
{ className: "pfv_home_intro", "aria-labelledby": "pfv_home_title" },
|
|
2573
|
+
resumeView,
|
|
2572
2574
|
h("h2", { id: "pfv_home_title", className: "pfv_home_heading" }, "\u544A\u8BC9\u6211\u4F60\u7684\u76EE\u6807"),
|
|
2573
2575
|
h("p", { className: "pfv_home_lead" }, "\u4E00\u53E5\u8BDD\u5C31\u597D\uFF0C\u4E4B\u540E\u6211\u4EEC\u63A5\u7740\u804A\u3002"),
|
|
2574
2576
|
h(
|
|
@@ -2606,8 +2608,7 @@ function createExperienceView(React2) {
|
|
|
2606
2608
|
h("a", { href: "#pfv_community_title", className: "pfv_store_jump" }, "\u901B\u901B\u63D2\u4EF6\u5546\u5E97 \u2192")
|
|
2607
2609
|
),
|
|
2608
2610
|
state.homeWarning ? h("p", { className: "pfv_warning", role: "status" }, text6(state.homeWarning)) : null,
|
|
2609
|
-
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
|
|
2610
|
-
state.taskId || state.request ? h("div", { className: "pfv_resume" }, h("div", null, h("span", { className: "pfv_hint" }, "\u4E0A\u6B21\u8FDB\u884C\u5230\u8FD9\u91CC"), paragraph(text6(state.creation?.blueprint?.name) || text6(state.plan?.title) || text6(state.intent?.goal) || text6(state.request))), button2("\u7EE7\u7EED\u4E0A\u6B21\u65B9\u6848", () => state.creation ? controller.showCreation() : controller.showFind(), { disabled: busy })) : null
|
|
2611
|
+
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
|
|
2611
2612
|
),
|
|
2612
2613
|
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(
|
|
2613
2614
|
"aside",
|
|
@@ -2865,11 +2866,16 @@ var experienceCss = `
|
|
|
2865
2866
|
.pf_root.pf_v2:has(.pfv_home) { background: var(--pfv_canvas); }
|
|
2866
2867
|
.pf_v2:has(.pfv_home) .pf_header { margin-bottom: 20px; border-bottom: 0; padding-bottom: 0; }
|
|
2867
2868
|
.pfv_home { max-width: 1120px; margin: 0 auto; }
|
|
2868
|
-
.pfv_home_start { display:
|
|
2869
|
-
.pfv_home_intro, .pfv_home_scenario { display:
|
|
2870
|
-
.
|
|
2871
|
-
.pfv_home_scenario {
|
|
2872
|
-
.
|
|
2869
|
+
.pfv_home_start { display: block; padding: 24px 0 44px; }
|
|
2870
|
+
.pfv_home_intro, .pfv_home_scenario { display: block; grid-column: 1; grid-row: auto; min-width: 0; padding: 0; margin: 0; }
|
|
2871
|
+
.pfv_home_scenario { border-top: 1px solid var(--pfv_line); padding-top: 18px; }
|
|
2872
|
+
.pfv_home_scenario .pfv_home_heading { font-size: 14px; margin: 0 0 4px; }
|
|
2873
|
+
.pfv_home_scenario .pfv_home_lead { margin: 0 0 10px; font-size: 13px; }
|
|
2874
|
+
.pfv_home_scenario .pfv_scenario_card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
|
|
2875
|
+
.pfv_home_scenario .pfv_scenario_card h3 { margin: 0; font-size: 15px; }
|
|
2876
|
+
.pfv_home_scenario .pfv_scenario_card > p { margin: 0; flex: 1 1 auto; min-width: 0; }
|
|
2877
|
+
.pfv_home_scenario .pfv_composer_bottom { flex: none; margin: 0; }
|
|
2878
|
+
.pfv_home_extras { min-width: 0; margin-top: 18px; padding-bottom: 4px; }
|
|
2873
2879
|
.pfv_opportunity_column { grid-column: 1; grid-row: auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
2874
2880
|
.pfv_opportunity .pfv_home_lead, .pfv_opportunity .pfv_scenario_reason { display: none; }
|
|
2875
2881
|
.pfv_opportunity .pfv_home_heading { font-size: 12px; font-weight: 500; color: var(--pfv_muted); margin: 0; }
|
|
@@ -2899,7 +2905,7 @@ var experienceCss = `
|
|
|
2899
2905
|
.pfv_home_selection > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
2900
2906
|
.pfv_home_selection > .pfv_button { flex: none; margin-left: auto; padding-inline: 8px; font-size: 13px; }
|
|
2901
2907
|
.pf_v2 .pfv_composer textarea { display: block; width: 100%; min-height: 103px; padding: 1px 0 10px; border: 0; box-shadow: none; outline: none; resize: vertical; border-radius: 0; background: transparent; color: var(--pfv_ink); font: inherit; line-height: 1.8; }
|
|
2902
|
-
.pf_v2 .pfv_home_composer textarea { flex: 1 1 auto; min-height:
|
|
2908
|
+
.pf_v2 .pfv_home_composer textarea { flex: 1 1 auto; min-height: 84px; font-size: 16px; }
|
|
2903
2909
|
.pf_v2 .pfv_composer textarea::placeholder, .pfv_field textarea::placeholder { color: var(--pfv_muted); opacity: .85; }
|
|
2904
2910
|
.pf_v2 .pfv_composer textarea:focus { box-shadow: none; outline: none; border: 0; }
|
|
2905
2911
|
.pfv_composer_bottom { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
|
|
@@ -2913,12 +2919,12 @@ var experienceCss = `
|
|
|
2913
2919
|
.pfv_button:focus-visible, .pf_v2 summary:focus-visible, .pfv_mobile_jump:focus-visible, .pfv_field textarea:focus-visible, .pf_v2 .pf_btn:focus-visible { outline: 3px solid var(--pfv_accent); outline-offset: 3px; }
|
|
2914
2920
|
.pfv_examples { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; }
|
|
2915
2921
|
.pfv_examples > .pfv_hint { margin-right: 4px; }
|
|
2916
|
-
.pfv_store_jump { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0 8px 12px; margin-left:
|
|
2922
|
+
.pfv_store_jump { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0 8px 12px; margin-left: 8px; color: var(--pfv_accent); text-decoration: none; font-size: 13px; white-space: nowrap; }
|
|
2917
2923
|
.pfv_store_jump:hover { text-decoration: underline; text-underline-offset: 4px; }
|
|
2918
2924
|
.pfv_example { color: var(--pfv_muted); background: transparent; border: 0; font-size: 13px; padding-inline: 10px; font-weight: 450; }
|
|
2919
2925
|
.pfv_example:hover:not(:disabled) { color: var(--pfv_accent); background: var(--pfv_tint); }
|
|
2920
|
-
.pfv_resume { display: flex; justify-content:
|
|
2921
|
-
.pfv_resume > div { min-width: 0; }
|
|
2926
|
+
.pfv_resume { display: flex; justify-content: flex-start; align-items: center; gap: 16px; padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--pfv_line); border-radius: 12px; background: var(--pfv_paper); }
|
|
2927
|
+
.pfv_resume > div { min-width: 0; flex: 0 1 auto; }
|
|
2922
2928
|
.pfv_resume .pfv_prose { font-size: 14px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
2923
2929
|
.pfv_resume > .pfv_button { flex: none; }
|
|
2924
2930
|
.pf_v2 .pf_featured_home { margin-top: 0; padding-top: 34px; border-top: 1px solid var(--pfv_line); }
|
|
@@ -3085,7 +3091,7 @@ var experienceCss = `
|
|
|
3085
3091
|
@keyframes pfv_pulse { 50% { opacity: .4; } }
|
|
3086
3092
|
@container finder (max-width: 940px) {
|
|
3087
3093
|
.pf_v2 .pf_inner { padding-inline: 26px; }
|
|
3088
|
-
.pfv_home_start { gap:
|
|
3094
|
+
.pfv_home_start { gap: 20px; }
|
|
3089
3095
|
.pf_v2 .pf_featured_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
3090
3096
|
.pfv_home_card { padding-inline: 20px; }
|
|
3091
3097
|
.pfv_workspace_grid { gap: 22px; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
|
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.7`。精确发布状态以 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.7
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
这是本版的精确 npm 安装身份。若注册表尚未返回该版本,请查看正式 Release 并保留当前安装。通过本地 TGZ 安装时,应核对发行哈希;绝对路径必须位于目标宿主机器,不能使用另一台机器的路径。
|
package/package.json
CHANGED
package/src/experience-style.js
CHANGED
|
@@ -40,11 +40,16 @@ export const experienceCss = `
|
|
|
40
40
|
.pf_root.pf_v2:has(.pfv_home) { background: var(--pfv_canvas); }
|
|
41
41
|
.pf_v2:has(.pfv_home) .pf_header { margin-bottom: 20px; border-bottom: 0; padding-bottom: 0; }
|
|
42
42
|
.pfv_home { max-width: 1120px; margin: 0 auto; }
|
|
43
|
-
.pfv_home_start { display:
|
|
44
|
-
.pfv_home_intro, .pfv_home_scenario { display:
|
|
45
|
-
.
|
|
46
|
-
.pfv_home_scenario {
|
|
47
|
-
.
|
|
43
|
+
.pfv_home_start { display: block; padding: 24px 0 44px; }
|
|
44
|
+
.pfv_home_intro, .pfv_home_scenario { display: block; grid-column: 1; grid-row: auto; min-width: 0; padding: 0; margin: 0; }
|
|
45
|
+
.pfv_home_scenario { border-top: 1px solid var(--pfv_line); padding-top: 18px; }
|
|
46
|
+
.pfv_home_scenario .pfv_home_heading { font-size: 14px; margin: 0 0 4px; }
|
|
47
|
+
.pfv_home_scenario .pfv_home_lead { margin: 0 0 10px; font-size: 13px; }
|
|
48
|
+
.pfv_home_scenario .pfv_scenario_card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
|
|
49
|
+
.pfv_home_scenario .pfv_scenario_card h3 { margin: 0; font-size: 15px; }
|
|
50
|
+
.pfv_home_scenario .pfv_scenario_card > p { margin: 0; flex: 1 1 auto; min-width: 0; }
|
|
51
|
+
.pfv_home_scenario .pfv_composer_bottom { flex: none; margin: 0; }
|
|
52
|
+
.pfv_home_extras { min-width: 0; margin-top: 18px; padding-bottom: 4px; }
|
|
48
53
|
.pfv_opportunity_column { grid-column: 1; grid-row: auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
49
54
|
.pfv_opportunity .pfv_home_lead, .pfv_opportunity .pfv_scenario_reason { display: none; }
|
|
50
55
|
.pfv_opportunity .pfv_home_heading { font-size: 12px; font-weight: 500; color: var(--pfv_muted); margin: 0; }
|
|
@@ -74,7 +79,7 @@ export const experienceCss = `
|
|
|
74
79
|
.pfv_home_selection > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
75
80
|
.pfv_home_selection > .pfv_button { flex: none; margin-left: auto; padding-inline: 8px; font-size: 13px; }
|
|
76
81
|
.pf_v2 .pfv_composer textarea { display: block; width: 100%; min-height: 103px; padding: 1px 0 10px; border: 0; box-shadow: none; outline: none; resize: vertical; border-radius: 0; background: transparent; color: var(--pfv_ink); font: inherit; line-height: 1.8; }
|
|
77
|
-
.pf_v2 .pfv_home_composer textarea { flex: 1 1 auto; min-height:
|
|
82
|
+
.pf_v2 .pfv_home_composer textarea { flex: 1 1 auto; min-height: 84px; font-size: 16px; }
|
|
78
83
|
.pf_v2 .pfv_composer textarea::placeholder, .pfv_field textarea::placeholder { color: var(--pfv_muted); opacity: .85; }
|
|
79
84
|
.pf_v2 .pfv_composer textarea:focus { box-shadow: none; outline: none; border: 0; }
|
|
80
85
|
.pfv_composer_bottom { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
|
|
@@ -88,12 +93,12 @@ export const experienceCss = `
|
|
|
88
93
|
.pfv_button:focus-visible, .pf_v2 summary:focus-visible, .pfv_mobile_jump:focus-visible, .pfv_field textarea:focus-visible, .pf_v2 .pf_btn:focus-visible { outline: 3px solid var(--pfv_accent); outline-offset: 3px; }
|
|
89
94
|
.pfv_examples { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; }
|
|
90
95
|
.pfv_examples > .pfv_hint { margin-right: 4px; }
|
|
91
|
-
.pfv_store_jump { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0 8px 12px; margin-left:
|
|
96
|
+
.pfv_store_jump { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0 8px 12px; margin-left: 8px; color: var(--pfv_accent); text-decoration: none; font-size: 13px; white-space: nowrap; }
|
|
92
97
|
.pfv_store_jump:hover { text-decoration: underline; text-underline-offset: 4px; }
|
|
93
98
|
.pfv_example { color: var(--pfv_muted); background: transparent; border: 0; font-size: 13px; padding-inline: 10px; font-weight: 450; }
|
|
94
99
|
.pfv_example:hover:not(:disabled) { color: var(--pfv_accent); background: var(--pfv_tint); }
|
|
95
|
-
.pfv_resume { display: flex; justify-content:
|
|
96
|
-
.pfv_resume > div { min-width: 0; }
|
|
100
|
+
.pfv_resume { display: flex; justify-content: flex-start; align-items: center; gap: 16px; padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--pfv_line); border-radius: 12px; background: var(--pfv_paper); }
|
|
101
|
+
.pfv_resume > div { min-width: 0; flex: 0 1 auto; }
|
|
97
102
|
.pfv_resume .pfv_prose { font-size: 14px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
98
103
|
.pfv_resume > .pfv_button { flex: none; }
|
|
99
104
|
.pf_v2 .pf_featured_home { margin-top: 0; padding-top: 34px; border-top: 1px solid var(--pfv_line); }
|
|
@@ -260,7 +265,7 @@ export const experienceCss = `
|
|
|
260
265
|
@keyframes pfv_pulse { 50% { opacity: .4; } }
|
|
261
266
|
@container finder (max-width: 940px) {
|
|
262
267
|
.pf_v2 .pf_inner { padding-inline: 26px; }
|
|
263
|
-
.pfv_home_start { gap:
|
|
268
|
+
.pfv_home_start { gap: 20px; }
|
|
264
269
|
.pf_v2 .pf_featured_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
265
270
|
.pfv_home_card { padding-inline: 20px; }
|
|
266
271
|
.pfv_workspace_grid { gap: 22px; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
|
package/src/experience-view.js
CHANGED
|
@@ -137,6 +137,7 @@ export function createExperienceView(React) {
|
|
|
137
137
|
const suggested = rankFeatured(featuredCatalog, { history: Array.isArray(state.featuredHistory) ? state.featuredHistory : state.history, preferences: state.featuredPreferences })[0];
|
|
138
138
|
const scenario = suggested?.entry || featuredCatalog.find(entry => !items(state.featuredPreferences?.dismissed).includes(entry.id)) || featuredCatalog[0];
|
|
139
139
|
const homeCommunityEntry = getCommunityEntry(state.homeCommunityEntryId);
|
|
140
|
+
const resumeView = state.taskId || state.request ? h('div', { className: 'pfv_resume' }, h('div', null, h('span', { className: 'pfv_hint' }, '上次进行到这里'), paragraph(text(state.creation?.blueprint?.name) || text(state.plan?.title) || text(state.intent?.goal) || text(state.request))), button('继续上次方案', () => state.creation ? controller.showCreation() : controller.showFind(), { disabled: busy })) : null;
|
|
140
141
|
|
|
141
142
|
const lastSearchView = (() => {
|
|
142
143
|
const rows = records(state.searchHistory).filter(record => text(record.request) || records(record.sources).length).slice(0, 2);
|
|
@@ -173,6 +174,7 @@ export function createExperienceView(React) {
|
|
|
173
174
|
button('×', () => { controller.hideProductIntro?.(); globalThis.document?.getElementById('pfv_intro_toggle')?.focus(); }, { className: 'pfv_button pfv_quiet pfv_intro_close', 'aria-label': '关闭产品介绍' })) : null,
|
|
174
175
|
h('div', { className: 'pfv_home_start', role: 'group', 'aria-labelledby': 'pfv_expert_title', 'aria-describedby': 'pfv_expert_opening' },
|
|
175
176
|
h('section', { className: 'pfv_home_intro', 'aria-labelledby': 'pfv_home_title' },
|
|
177
|
+
resumeView,
|
|
176
178
|
h('h2', { id: 'pfv_home_title', className: 'pfv_home_heading' }, '告诉我你的目标'),
|
|
177
179
|
h('p', { className: 'pfv_home_lead' }, '一句话就好,之后我们接着聊。'),
|
|
178
180
|
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(); } },
|
|
@@ -191,8 +193,7 @@ export function createExperienceView(React) {
|
|
|
191
193
|
}, { key: label, className: 'pfv_button pfv_example', disabled: taskInputBusy, 'aria-label': `填入${label}的示例,之后可以修改` })),
|
|
192
194
|
h('a', { href: '#pfv_community_title', className: 'pfv_store_jump' }, '逛逛插件商店 →')),
|
|
193
195
|
state.homeWarning ? h('p', { className: 'pfv_warning', role: 'status' }, text(state.homeWarning)) : null,
|
|
194
|
-
state.bootstrapLoaded && !modelReady ? h('div', { className: 'pfv_warning' }, h('p', null, '先在 DSH 设置中配置默认模型,再开始查找。'), button('重新读取配置', () => controller.bootstrap(), { disabled: busy })) : null,
|
|
195
|
-
state.taskId || state.request ? h('div', { className: 'pfv_resume' }, h('div', null, h('span', { className: 'pfv_hint' }, '上次进行到这里'), paragraph(text(state.creation?.blueprint?.name) || text(state.plan?.title) || text(state.intent?.goal) || text(state.request))), button('继续上次方案', () => state.creation ? controller.showCreation() : controller.showFind(), { disabled: busy })) : null),
|
|
196
|
+
state.bootstrapLoaded && !modelReady ? h('div', { className: 'pfv_warning' }, h('p', null, '先在 DSH 设置中配置默认模型,再开始查找。'), button('重新读取配置', () => controller.bootstrap(), { disabled: busy })) : null),
|
|
196
197
|
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 ? '猜你喜欢' : '试试这个' },
|
|
197
198
|
h('h2', { className: 'pfv_home_heading' }, suggested ? '我猜你可能需要' : '我先给你一个想法'),
|
|
198
199
|
h('p', { className: 'pfv_home_lead' }, '也可以从这个想法开始聊。'),
|
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.7';
|