@kangyishuai/dsh-casefile 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/lib/core/brief.js +10 -0
  2. package/package.json +1 -1
package/lib/core/brief.js CHANGED
@@ -207,6 +207,16 @@ export function renderSpecMarkdown(pack) {
207
207
  for (const item of pack.evidence) {
208
208
  lines.push("");
209
209
  lines.push(`- \`${item.id}\` · ${item.kind} · ${item.confidence} / ${item.authority}`);
210
+ if (item.producer && typeof item.producer === "object") {
211
+ const producer = item.producer;
212
+ const bits = [
213
+ producer.tool == null ? "工具未知" : `工具 ${producer.tool}`,
214
+ producer.version == null ? null : `v${producer.version}`,
215
+ producer.mode == null ? null : `方式 ${producer.mode}`,
216
+ producer.accessConfirmedByUser === true ? "用户已确认" : "用户未确认",
217
+ ].filter((value) => value != null);
218
+ lines.push(` - 生产者:${bits.join(" · ")}`);
219
+ }
210
220
  if (item.summary) lines.push(` - ${item.summary}`);
211
221
  if (item.limitations.length > 0) lines.push(` - 局限:${item.limitations.join(";")}`);
212
222
  if (item.refs.length > 0) lines.push(` - 引用:${item.refs.join("、")}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kangyishuai/dsh-casefile",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Evidence-first reverse-engineering workbench on top of REA: observations become citable evidence, a handoff spec pack, and recomputable acceptance checks. No bridge, no engine.",
5
5
  "keywords": [
6
6
  "dsh",