@oxmumu3/dsh-plugin-finder 0.12.0-preview.12 → 0.12.0-preview.13
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 +4 -0
- package/README.md +1 -1
- package/dist/client.js +5 -2
- package/docs/install.md +2 -2
- package/package.json +1 -1
- package/src/creator-strip.js +6 -2
- package/src/telemetry-config.js +1 -1
package/CHANGELOG.md
CHANGED
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.13`,目标官方 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
|
@@ -3561,9 +3561,10 @@ var CREATOR_PRESET = "cordis";
|
|
|
3561
3561
|
function creatorProgress(steps) {
|
|
3562
3562
|
const rows = Array.isArray(steps) ? steps.filter((item) => item && typeof item.stage === "string" && LABEL[item.stage]) : [];
|
|
3563
3563
|
const furthest = rows.reduce((max, item) => item.stage in ORDER ? Math.max(max, ORDER[item.stage]) : max, -1);
|
|
3564
|
+
const recorded = new Set(rows.map((item) => item.stage));
|
|
3564
3565
|
const last = rows.at(-1) ?? null;
|
|
3565
3566
|
return {
|
|
3566
|
-
stages: STAGES.map((stage, index) => ({ ...stage, state: index
|
|
3567
|
+
stages: STAGES.map((stage, index) => ({ ...stage, state: index === furthest ? "current" : index > furthest ? "todo" : recorded.has(stage.id) ? "done" : "skipped" })),
|
|
3567
3568
|
last: last ? { stage: last.stage, label: LABEL[last.stage], summary: text7(last.summary) } : null,
|
|
3568
3569
|
blocked: last?.stage === "blocked",
|
|
3569
3570
|
count: rows.length
|
|
@@ -3589,6 +3590,8 @@ var css = `
|
|
|
3589
3590
|
.pfc_stage[data-state="current"] { color: var(--dsw-alias-label-on-primary, #fff); background: var(--dsw-alias-state-business-primary, #4d6bfe); }
|
|
3590
3591
|
.pfc_dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
|
|
3591
3592
|
.pfc_stage[data-state="done"] .pfc_dot, .pfc_stage[data-state="current"] .pfc_dot { opacity: 1; }
|
|
3593
|
+
.pfc_stage[data-state="skipped"] { opacity: .55; }
|
|
3594
|
+
.pfc_stage[data-state="skipped"] .pfc_dot { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
|
|
3592
3595
|
.pfc_last { flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3593
3596
|
.pfc_actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
|
|
3594
3597
|
.pfc_button { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--dsw-alias-border-l2, #becbdb); background: transparent; color: var(--dsw-alias-label-primary, #18263b); cursor: pointer; white-space: nowrap; }
|
|
@@ -3740,7 +3743,7 @@ function createCreatorStrip(React2, { ctx, request, openSettings }) {
|
|
|
3740
3743
|
h("span", { className: "pfc_brand", title: "\u300C\u53D1\u73B0\u597D\u63D2\u4EF6\u300D\u7ED9\u8FD9\u4E2A\u521B\u9020\u6A21\u5F0F\u4F1A\u8BDD\u52A0\u4E86\u7701 Token \u7684\u505A\u6CD5\uFF1A\u5148\u67E5\u73B0\u6210\u3001\u5148\u5B9A\u8BBE\u8BA1\u3001\u5148\u8DD1\u7A7A\u67B6\u5B50\u3002" }, "\u521B\u9020\u7ECF\u9A8C\u5DF2\u5F00\u542F"),
|
|
3741
3744
|
h("ol", { className: "pfc_track", "aria-label": "\u521B\u9020\u9636\u6BB5" }, ...progress.stages.map((stage) => h(
|
|
3742
3745
|
"li",
|
|
3743
|
-
{ key: stage.id, className: "pfc_stage", "data-state": stage.state, "aria-current": stage.state === "current" ? "step" : void 0 },
|
|
3746
|
+
{ 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 },
|
|
3744
3747
|
h("span", { className: "pfc_dot", "aria-hidden": true }),
|
|
3745
3748
|
stage.label
|
|
3746
3749
|
))),
|
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.13`。精确发布状态以 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.13
|
|
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.13",
|
|
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
|
@@ -16,9 +16,11 @@ export const CREATOR_PRESET = 'cordis';
|
|
|
16
16
|
export function creatorProgress(steps) {
|
|
17
17
|
const rows = Array.isArray(steps) ? steps.filter(item => item && typeof item.stage === 'string' && LABEL[item.stage]) : [];
|
|
18
18
|
const furthest = rows.reduce((max, item) => item.stage in ORDER ? Math.max(max, ORDER[item.stage]) : max, -1);
|
|
19
|
+
const recorded = new Set(rows.map(item => item.stage));
|
|
19
20
|
const last = rows.at(-1) ?? null;
|
|
21
|
+
// Only a recorded stage counts as done; an earlier stage with no record is shown as skipped, not completed.
|
|
20
22
|
return {
|
|
21
|
-
stages: STAGES.map((stage, index) => ({ ...stage, state: index
|
|
23
|
+
stages: STAGES.map((stage, index) => ({ ...stage, state: index === furthest ? 'current' : index > furthest ? 'todo' : recorded.has(stage.id) ? 'done' : 'skipped' })),
|
|
22
24
|
last: last ? { stage: last.stage, label: LABEL[last.stage], summary: text(last.summary) } : null,
|
|
23
25
|
blocked: last?.stage === 'blocked',
|
|
24
26
|
count: rows.length,
|
|
@@ -47,6 +49,8 @@ const css = `
|
|
|
47
49
|
.pfc_stage[data-state="current"] { color: var(--dsw-alias-label-on-primary, #fff); background: var(--dsw-alias-state-business-primary, #4d6bfe); }
|
|
48
50
|
.pfc_dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
|
|
49
51
|
.pfc_stage[data-state="done"] .pfc_dot, .pfc_stage[data-state="current"] .pfc_dot { opacity: 1; }
|
|
52
|
+
.pfc_stage[data-state="skipped"] { opacity: .55; }
|
|
53
|
+
.pfc_stage[data-state="skipped"] .pfc_dot { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
|
|
50
54
|
.pfc_last { flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
51
55
|
.pfc_actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
|
|
52
56
|
.pfc_button { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--dsw-alias-border-l2, #becbdb); background: transparent; color: var(--dsw-alias-label-primary, #18263b); cursor: pointer; white-space: nowrap; }
|
|
@@ -153,7 +157,7 @@ export function createCreatorStrip(React, { ctx, request, openSettings }) {
|
|
|
153
157
|
};
|
|
154
158
|
return h('div', { className: 'pfc_strip', 'data-blocked': progress.blocked ? 'true' : 'false', role: 'region', 'aria-label': '发现好插件 · 创造进度' },
|
|
155
159
|
h('span', { className: 'pfc_brand', title: '「发现好插件」给这个创造模式会话加了省 Token 的做法:先查现成、先定设计、先跑空架子。' }, '创造经验已开启'),
|
|
156
|
-
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 },
|
|
160
|
+
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 },
|
|
157
161
|
h('span', { className: 'pfc_dot', 'aria-hidden': true }), stage.label))),
|
|
158
162
|
h('span', { className: 'pfc_last', title: progress.last ? `${progress.last.label}:${progress.last.summary}` : undefined },
|
|
159
163
|
notice || (progress.last ? `${progress.last.label}:${progress.last.summary}` : '说出你想做的功能,它会先帮你查有没有现成插件。')),
|
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.13';
|