@kangyishuai/dsh-next-step 0.3.1 → 0.4.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.
- package/README.md +36 -29
- package/README.zh-CN.md +37 -29
- package/lib/card-data.js +157 -0
- package/lib/client.js +481 -82
- package/lib/events.js +287 -0
- package/lib/gates.js +27 -6
- package/lib/projection.js +32 -73
- package/lib/prompt.js +225 -55
- package/lib/report.js +557 -0
- package/lib/scheme.js +68 -0
- package/lib/service.js +612 -119
- package/lib/settings.js +68 -8
- package/locale/en.json +22 -2
- package/locale/zh.json +22 -2
- package/package.json +1 -1
package/lib/prompt.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
// 提示词与输出解析:纯函数,不 import 宿主包(单测可以直接跑)。
|
|
3
|
-
//
|
|
3
|
+
// 一次调用同时产出四样东西:三档判断、判断依据、摘要 + 提问 + 两条动作、一条给输入框的幽灵提示。
|
|
4
4
|
//
|
|
5
|
-
// 设计要点(v0.
|
|
6
|
-
// - `
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
5
|
+
// 设计要点(v0.4,见 docs/adr/0013 与 ADR 0009 的增补):
|
|
6
|
+
// - `value` 是三档(must / could / no),不是 boolean。原来的 boolean 把「确定没必要」和「说不准」
|
|
7
|
+
// 压进同一个 false,模型为了不出废话自然倾向判 false —— 这就是「必要的时候也不出卡」的机理。
|
|
8
|
+
// 现在要求「拿不准一律判 could」,由设置里的档位决定显示阈值(严格/平衡/积极)。
|
|
9
|
+
// - `label` 就是点击后原样发送的用户消息(WYSIWYG);2–20 字、必须是「动词 + 具体对象」。
|
|
10
|
+
// - **宽容解析**:超长的展示文本截断、不合格的单条 option 丢掉,不再因为一个字段超长就整张卡作废。
|
|
11
|
+
// 只有「结构不可用 / 三档判定缺失 / 一条可用建议都不剩」这三种才算失败,交给 service 做一次修复调用。
|
|
12
|
+
|
|
13
|
+
import { PROMPT_VERSION } from "./scheme.js";
|
|
10
14
|
|
|
11
15
|
/** 摘要最大字符数(1–3 句,超出视为模型跑偏)。 */
|
|
12
16
|
export const SUMMARY_MAX = 400;
|
|
@@ -30,6 +34,23 @@ export const NEXT_PROMPT_MAX = 150;
|
|
|
30
34
|
export const NEXT_PROMPT_HEAD = 60;
|
|
31
35
|
/** stance 最大字符数。 */
|
|
32
36
|
export const STANCE_MAX = 40;
|
|
37
|
+
/** 一次生成最多保留的建议条数(3 条以上是选择成本,不是信息量)。 */
|
|
38
|
+
export const OPTIONS_MAX = 2;
|
|
39
|
+
/** 修复调用里回贴模型原文的最大长度(避免把上次超长输出再喂回去撑爆上下文)。 */
|
|
40
|
+
export const REPAIR_ECHO_MAX = 4000;
|
|
41
|
+
/** 重新导出:提示词版本位,service 写卡片与事件时要用。 */
|
|
42
|
+
export { PROMPT_VERSION };
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @typedef {{ stance: string, label: string }} SuggestionOption
|
|
46
|
+
* @typedef {{
|
|
47
|
+
* value: "must" | "could" | "no", reason: string, summary: string, question: string,
|
|
48
|
+
* options: SuggestionOption[], nextPrompt?: string,
|
|
49
|
+
* }} Suggestion
|
|
50
|
+
*
|
|
51
|
+
* @typedef {{ kind: "json" | "value" | "options", detail: string }} ParseProblem
|
|
52
|
+
* @typedef {{ suggestion: Suggestion | null, problem: ParseProblem | null, detail: string }} ParseResult
|
|
53
|
+
*/
|
|
33
54
|
|
|
34
55
|
/**
|
|
35
56
|
* 取一条消息里的纯文本(忽略 reasoning / 工具块)。
|
|
@@ -142,7 +163,10 @@ export function ghostAgreesWithLabel(ghost, label) {
|
|
|
142
163
|
}
|
|
143
164
|
|
|
144
165
|
/**
|
|
145
|
-
*
|
|
166
|
+
* 系统提示词:判断这一轮是否值得继续(三档),并把对话压成一张决策卡,严格 JSON。
|
|
167
|
+
*
|
|
168
|
+
* v3 的关键改动是**判定语言**:boolean → 三档,并明写「拿不准一律判 could」。
|
|
169
|
+
* 不这么写,模型会把它当成"要不要打扰用户"的二选一,倾向于少出卡。
|
|
146
170
|
* @param {{ locale?: string }} [options]
|
|
147
171
|
* @returns {string}
|
|
148
172
|
*/
|
|
@@ -154,19 +178,21 @@ export function buildSystemPrompt(options = {}) {
|
|
|
154
178
|
"只输出一个 JSON 对象,不要输出任何解释、不要用代码围栏。",
|
|
155
179
|
"",
|
|
156
180
|
"JSON 结构:",
|
|
157
|
-
'{ "
|
|
181
|
+
'{ "value": "must" | "could" | "no", "reason": "…", "summary": "…", "question": "…", "options": [ { "stance": "…", "label": "…" } ], "nextPrompt": "…" }',
|
|
158
182
|
"",
|
|
159
183
|
"要求:",
|
|
160
|
-
"1.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
184
|
+
"1. value:三档判断,表示「这一轮结束后,用户是否真的值得继续」。",
|
|
185
|
+
' - "must":存在非常明确的下一步或待办,几乎不需要再讨论(例如:刚改完代码要去跑验证、要看 diff、要合并 PR、要发版)。',
|
|
186
|
+
' - "could":对话没有收尾,继续做下去是合理的,但不算非做不可。',
|
|
187
|
+
' - "no":继续是负价值——任务已完整收尾;最后的回答已经把问题/选择抛回给用户;用户已表示结束(如「不用了」「谢谢」);继续只会重复劳动。',
|
|
188
|
+
' **拿不准一律判 "could",不要判 "no"**。判 "no" 必须能说清「为什么继续是负价值」,说不出就说明它其实是 "could"。',
|
|
189
|
+
`2. reason:一句话说明判断依据,${REASON_MAX} 字以内,直接说事实,不要客套。`,
|
|
164
190
|
"3. summary:写**这一轮实际发生了什么**的可核查事实,不许写「用户要求……助手已经……」这种旁白。",
|
|
165
191
|
" 好例子:「改了 importer/csv.ts 的流式读取,内存峰值 1.8 GB → 90 MB;parseRow 补了 3 个边界用例。」",
|
|
166
192
|
" 坏例子:「用户要求改导入脚本,助手已完成修改,无需补充信息。」",
|
|
167
193
|
" 1–3 句,不评价、不客套;没有具体事实(文件名、命令、数值、PR 号、测试结果)就说明这轮不值得出卡。",
|
|
168
194
|
"4. question:一句向用户确认方向的问题,必须以问号结尾,且要能从上一条 summary 里读懂。",
|
|
169
|
-
`5. options:1
|
|
195
|
+
`5. options:1–${OPTIONS_MAX} 条,方向互斥(例如「按方案 A 改」vs「先补测试」),不能是同一件事的两种说法。`,
|
|
170
196
|
" - 只给 1 条也可以:当下一步非常明确、没有第二条像样的路时,宁可不凑数。",
|
|
171
197
|
" - 两件事都要做、而且顺序固定时,把它们合并成**一条** label(如「出 v1.5 和 E2E-01c」),不要拆成两条。",
|
|
172
198
|
" - stance:英文小写短语标识立场,多条时必须互不相同(如 verify / proceed / harder / alternative)。",
|
|
@@ -178,7 +204,7 @@ export function buildSystemPrompt(options = {}) {
|
|
|
178
204
|
` 关键信息(对象或动作)放前 ${NEXT_PROMPT_HEAD} 字内,超出会被省略号截断。`,
|
|
179
205
|
" 它和 options 必须是**同一个建议**的两种说法(可以更长、更口语),不许各说一件事。",
|
|
180
206
|
`7. 语言:跟随对话中用户使用的语言(当前界面语言 ${locale},仅供参考)。`,
|
|
181
|
-
|
|
207
|
+
'8. **即使 value 判为 "no",也要把 summary / question / options 写完整** —— 用户可能手动要这张卡。',
|
|
182
208
|
"9. 信息不足时,两个方向应当是「先补信息」与「按现有信息推进」,不要编造事实。",
|
|
183
209
|
"10. 拿不准就不要编:任何一条 label 找不到对话里的具体对象时,直接减少 options 数量(最少 1 条)。",
|
|
184
210
|
].join("\n");
|
|
@@ -201,21 +227,125 @@ export function buildMessages(input = {}) {
|
|
|
201
227
|
}
|
|
202
228
|
|
|
203
229
|
/**
|
|
204
|
-
*
|
|
230
|
+
* 失败原因 → 给修复调用的中文说明。
|
|
231
|
+
* @param {"json" | "value" | "options"} kind
|
|
232
|
+
* @returns {string}
|
|
233
|
+
*/
|
|
234
|
+
export function problemText(kind) {
|
|
235
|
+
if (kind === "value") {
|
|
236
|
+
return 'value 必须是 "must" / "could" / "no" 三者之一(不要用 needed 之类的旧字段代替)';
|
|
237
|
+
}
|
|
238
|
+
if (kind === "options") {
|
|
239
|
+
return `options 里没有一条可用的建议:需要 1–${OPTIONS_MAX} 条,label 为 ${LABEL_MIN}–${LABEL_MAX} 字、必须是「动词 + 对话里的具体对象」,不能是「检查定义是否准确」这类放到哪一轮都成立的空话`;
|
|
240
|
+
}
|
|
241
|
+
return "不是合法 JSON,或缺少 summary / question 这两个必填文本字段";
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* 构造「修复」调用:把模型上次的原文与具体问题回贴,只要求它修格式。
|
|
246
|
+
*
|
|
247
|
+
* 刻意只用一条 user 消息、不伪造 assistant 轮次(宿主 adapter 对 assistant 消息有额外要求,
|
|
248
|
+
* 伪造容易在 provider 侧被拒)。
|
|
249
|
+
* @param {{ raw: unknown, problem: "json" | "value" | "options" }} input
|
|
250
|
+
* @returns {{ role: "user", content: { type: "text", text: string }[] }[]}
|
|
251
|
+
*/
|
|
252
|
+
export function buildRepairMessage(input) {
|
|
253
|
+
const raw = typeof input.raw === "string" ? input.raw : String(input.raw ?? "");
|
|
254
|
+
const echoed = raw.length > REPAIR_ECHO_MAX ? `${raw.slice(0, REPAIR_ECHO_MAX)}…` : raw;
|
|
255
|
+
const text = [
|
|
256
|
+
"你上一次的输出不能被解析成决策卡。",
|
|
257
|
+
`问题:${problemText(input.problem)}。`,
|
|
258
|
+
"",
|
|
259
|
+
"上一次的原始输出:",
|
|
260
|
+
'"""',
|
|
261
|
+
echoed === "" ? "(空)" : echoed,
|
|
262
|
+
'"""',
|
|
263
|
+
"",
|
|
264
|
+
"请只输出修正后的 JSON 对象,结构如下(字段含义与之前的要求完全相同):",
|
|
265
|
+
'{ "value": "must" | "could" | "no", "reason": "…", "summary": "…", "question": "…", "options": [ { "stance": "…", "label": "…" } ], "nextPrompt": "…" }',
|
|
266
|
+
"不要输出任何解释、不要用代码围栏。",
|
|
267
|
+
].join("\n");
|
|
268
|
+
return [{ role: "user", content: [{ type: "text", text }] }];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* 截断到上限(超长只截断,不丢整张卡)。
|
|
273
|
+
* @param {string} text
|
|
274
|
+
* @param {number} max
|
|
275
|
+
* @param {string[]} notes 记录做过什么,供日志与事件使用
|
|
276
|
+
* @param {string} key
|
|
277
|
+
* @returns {string}
|
|
278
|
+
*/
|
|
279
|
+
function clipText(text, max, notes, key) {
|
|
280
|
+
if (text.length <= max) return text;
|
|
281
|
+
notes.push(`truncated:${key}`);
|
|
282
|
+
return `${text.slice(0, max).replace(/[\s,。;,;::]$/u, "")}…`;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* 解析一条 option;不合格返回 null(丢掉这一条,不废整张卡)。
|
|
287
|
+
* @param {any} option
|
|
288
|
+
* @param {string[]} notes
|
|
289
|
+
* @param {number} index
|
|
290
|
+
* @returns {SuggestionOption | null}
|
|
291
|
+
*/
|
|
292
|
+
function readOption(option, notes, index) {
|
|
293
|
+
if (option === null || typeof option !== "object") {
|
|
294
|
+
notes.push(`dropped-option:${index}:not-object`);
|
|
295
|
+
return null;
|
|
296
|
+
}
|
|
297
|
+
const stanceRaw = typeof option.stance === "string" ? option.stance.trim().toLowerCase() : "";
|
|
298
|
+
const stance = stanceRaw.length > STANCE_MAX ? stanceRaw.slice(0, STANCE_MAX) : stanceRaw;
|
|
299
|
+
if (stance === "") {
|
|
300
|
+
notes.push(`dropped-option:${index}:stance`);
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
const label = typeof option.label === "string" ? option.label.trim().replace(/\s+/gu, " ") : "";
|
|
304
|
+
if (label.length < LABEL_MIN || label.length > LABEL_MAX) {
|
|
305
|
+
notes.push(`dropped-option:${index}:label-length:${label.length}`);
|
|
306
|
+
return null;
|
|
307
|
+
}
|
|
308
|
+
if (isGenericLabel(label)) {
|
|
309
|
+
// 「检查定义是否准确」这类按钮放到哪一轮都成立,正是点击率低的直接原因。
|
|
310
|
+
notes.push(`dropped-option:${index}:generic`);
|
|
311
|
+
return null;
|
|
312
|
+
}
|
|
313
|
+
return { stance, label };
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* 从模型输出里抠出 JSON 并宽容校验。
|
|
318
|
+
*
|
|
319
|
+
* 返回结构(v0.4 起变化,v0.2/v0.3 是直接返回对象或 null):
|
|
320
|
+
* - 成功:`{ suggestion, problem: null, detail }`
|
|
321
|
+
* - 失败:`{ suggestion: null, problem: { kind, detail }, detail }`,由调用方决定要不要修一次
|
|
322
|
+
*
|
|
323
|
+
* 只有三类失败:`json`(结构不可用)、`value`(三档判定缺失/非法)、`options`(一条可用建议都没有)。
|
|
324
|
+
* 其余问题(超长、多余的 option、stance 重复)都在这里就地容忍。
|
|
205
325
|
* @param {unknown} raw
|
|
206
|
-
* @returns {
|
|
326
|
+
* @returns {ParseResult}
|
|
207
327
|
*/
|
|
208
328
|
export function parseSuggestion(raw) {
|
|
209
|
-
if (typeof raw !== "string")
|
|
329
|
+
if (typeof raw !== "string") {
|
|
330
|
+
return { suggestion: null, problem: { kind: "json", detail: "not-text" }, detail: "not-text" };
|
|
331
|
+
}
|
|
210
332
|
let text = raw.trim();
|
|
211
|
-
if (text === "")
|
|
333
|
+
if (text === "") {
|
|
334
|
+
return { suggestion: null, problem: { kind: "json", detail: "empty" }, detail: "empty" };
|
|
335
|
+
}
|
|
212
336
|
// 去掉 ```json … ``` / ``` … ``` 围栏
|
|
213
337
|
const fenced = /```(?:json|JSON)?\s*([\s\S]*?)```/u.exec(text);
|
|
214
338
|
if (fenced !== null) text = fenced[1].trim();
|
|
215
339
|
// 容忍前后多余文字:取第一个 { 到最后一个 }
|
|
216
340
|
const start = text.indexOf("{");
|
|
217
341
|
const end = text.lastIndexOf("}");
|
|
218
|
-
if (start < 0 || end <= start)
|
|
342
|
+
if (start < 0 || end <= start) {
|
|
343
|
+
return {
|
|
344
|
+
suggestion: null,
|
|
345
|
+
problem: { kind: "json", detail: "no-object" },
|
|
346
|
+
detail: "no-object",
|
|
347
|
+
};
|
|
348
|
+
}
|
|
219
349
|
text = text.slice(start, end + 1);
|
|
220
350
|
|
|
221
351
|
/** @type {any} */
|
|
@@ -223,55 +353,95 @@ export function parseSuggestion(raw) {
|
|
|
223
353
|
try {
|
|
224
354
|
parsed = JSON.parse(text);
|
|
225
355
|
} catch (_error) {
|
|
226
|
-
return
|
|
356
|
+
return {
|
|
357
|
+
suggestion: null,
|
|
358
|
+
problem: { kind: "json", detail: "unparsable" },
|
|
359
|
+
detail: "unparsable",
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
363
|
+
return {
|
|
364
|
+
suggestion: null,
|
|
365
|
+
problem: { kind: "json", detail: "not-object" },
|
|
366
|
+
detail: "not-object",
|
|
367
|
+
};
|
|
227
368
|
}
|
|
228
|
-
if (parsed === null || typeof parsed !== "object") return null;
|
|
229
369
|
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
const reason = typeof parsed.reason === "string" ? parsed.reason.trim() : "";
|
|
233
|
-
if (reason === "" || reason.length > REASON_MAX) return null;
|
|
370
|
+
/** @type {string[]} */
|
|
371
|
+
const notes = [];
|
|
234
372
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (
|
|
373
|
+
// ---- 三档判定:新字段优先,旧字段 needed 兼容映射(提示词漂移时不至于整张卡作废)
|
|
374
|
+
/** @type {"must" | "could" | "no"} */
|
|
375
|
+
let value;
|
|
376
|
+
if (parsed.value === "must" || parsed.value === "could" || parsed.value === "no") {
|
|
377
|
+
value = parsed.value;
|
|
378
|
+
} else if (typeof parsed.needed === "boolean") {
|
|
379
|
+
value = parsed.needed ? "must" : "no";
|
|
380
|
+
notes.push("legacy-needed");
|
|
381
|
+
} else {
|
|
382
|
+
return {
|
|
383
|
+
suggestion: null,
|
|
384
|
+
problem: { kind: "value", detail: "value-missing" },
|
|
385
|
+
detail: "value-missing",
|
|
386
|
+
};
|
|
387
|
+
}
|
|
239
388
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if (stance === "" || stance.length > STANCE_MAX) return null;
|
|
250
|
-
if (label.length < LABEL_MIN || label.length > LABEL_MAX) return null;
|
|
251
|
-
options.push({ stance, label });
|
|
389
|
+
// ---- 展示文本:缺了就算结构不可用(修复调用能补),超长就截断
|
|
390
|
+
const summaryRaw = typeof parsed.summary === "string" ? parsed.summary.trim() : "";
|
|
391
|
+
const questionRaw = typeof parsed.question === "string" ? parsed.question.trim() : "";
|
|
392
|
+
if (summaryRaw === "" || questionRaw === "") {
|
|
393
|
+
return {
|
|
394
|
+
suggestion: null,
|
|
395
|
+
problem: { kind: "json", detail: "summary-question-missing" },
|
|
396
|
+
detail: "summary-question-missing",
|
|
397
|
+
};
|
|
252
398
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
if (kept.length === 0) return null;
|
|
399
|
+
const summary = clipText(summaryRaw, SUMMARY_MAX, notes, "summary");
|
|
400
|
+
const question = clipText(questionRaw, QUESTION_MAX, notes, "question");
|
|
401
|
+
const reasonRaw = typeof parsed.reason === "string" ? parsed.reason.trim() : "";
|
|
402
|
+
if (reasonRaw === "") notes.push("reason-missing");
|
|
403
|
+
const reason = clipText(reasonRaw, REASON_MAX, notes, "reason");
|
|
259
404
|
|
|
260
|
-
|
|
261
|
-
|
|
405
|
+
// ---- 选项:逐条校验,丢掉不合格的,最多留 OPTIONS_MAX 条
|
|
406
|
+
const rawOptions = Array.isArray(parsed.options) ? parsed.options : [];
|
|
407
|
+
if (rawOptions.length === 0) notes.push("options-missing");
|
|
408
|
+
/** @type {SuggestionOption[]} */
|
|
409
|
+
let options = [];
|
|
410
|
+
for (let index = 0; index < rawOptions.length; index += 1) {
|
|
411
|
+
const option = readOption(rawOptions[index], notes, index);
|
|
412
|
+
if (option !== null) options.push(option);
|
|
413
|
+
}
|
|
414
|
+
if (options.length > OPTIONS_MAX) {
|
|
415
|
+
notes.push(`truncated:options:${options.length - OPTIONS_MAX}`);
|
|
416
|
+
options = options.slice(0, OPTIONS_MAX);
|
|
417
|
+
}
|
|
418
|
+
// 两条同 stance:丢第二条(互斥是硬要求,但没必要因此废掉整张卡)
|
|
419
|
+
if (options.length === 2 && options[0].stance === options[1].stance) {
|
|
420
|
+
notes.push("dropped-option:1:stance-duplicate");
|
|
421
|
+
options = [options[0]];
|
|
422
|
+
}
|
|
423
|
+
if (options.length === 0) {
|
|
424
|
+
return {
|
|
425
|
+
suggestion: null,
|
|
426
|
+
problem: { kind: "options", detail: notes.join(",") || "none" },
|
|
427
|
+
detail: notes.join(",") || "none",
|
|
428
|
+
};
|
|
429
|
+
}
|
|
262
430
|
|
|
263
|
-
/** @type {
|
|
264
|
-
const
|
|
431
|
+
/** @type {Suggestion} */
|
|
432
|
+
const suggestion = { value, reason, summary, question, options };
|
|
265
433
|
if (parsed.nextPrompt !== undefined) {
|
|
266
434
|
let nextPrompt = typeof parsed.nextPrompt === "string" ? parsed.nextPrompt.trim() : "";
|
|
267
|
-
|
|
268
|
-
|
|
435
|
+
if (nextPrompt.length > NEXT_PROMPT_MAX) {
|
|
436
|
+
notes.push("truncated:nextPrompt");
|
|
269
437
|
nextPrompt = nextPrompt.slice(0, NEXT_PROMPT_MAX).trim();
|
|
438
|
+
}
|
|
270
439
|
// 与推荐项不一致 → 退化成该按钮文案,保证「同一个建议的两种入口」。
|
|
271
440
|
if (nextPrompt !== "" && !ghostAgreesWithLabel(nextPrompt, options[0].label)) {
|
|
441
|
+
notes.push("downgraded:nextPrompt");
|
|
272
442
|
nextPrompt = options[0].label;
|
|
273
443
|
}
|
|
274
|
-
if (nextPrompt !== "")
|
|
444
|
+
if (nextPrompt !== "") suggestion.nextPrompt = nextPrompt;
|
|
275
445
|
}
|
|
276
|
-
return
|
|
446
|
+
return { suggestion, problem: null, detail: notes.join(",") };
|
|
277
447
|
}
|