dsh-pentester 6.2.0 → 6.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.
package/lib/index.js CHANGED
@@ -4294,7 +4294,9 @@ function findMatchingResult$1(events, callId) {
4294
4294
  * 2. prompt 来源的字段必须带 evidence,且该原话确实出现在 session 的某条
4295
4295
  * 用户消息里(模型无法凭空发明授权);
4296
4296
  * 3. ask_user_question 来源的字段必须有一个**已完成的、用户真正选过该
4297
- * 选项的**回答;被问到的字段必须保持 canonical 顺序。
4297
+ * 选项的**回答;**同一轮** ask_user_question 里的字段必须保持
4298
+ * canonical 顺序。漏问的更早字段可以在后续轮次补问(intake_incomplete
4299
+ * 明确要求 ask remaining fields);跨轮次的 first-seen 顺序不再锁死会话。
4298
4300
  *
4299
4301
  * Host 不再验证:
4300
4302
  * - ask_user_question 是否恰好问了 N 次;
@@ -4437,13 +4439,13 @@ function normalizeText(value) {
4437
4439
  */
4438
4440
  async function validateIntake(sessionQuery, sessionId, args, intake) {
4439
4441
  const scan = scanSessionIntake(await sessionQuery.readSession(sessionId));
4440
- for (let index = 1; index < scan.orderedFields.length; index += 1) {
4441
- const previous = FIELD_ORDER.get(scan.orderedFields[index - 1]) ?? -1;
4442
- if ((FIELD_ORDER.get(scan.orderedFields[index]) ?? -1) < previous) return {
4442
+ for (const question of scan.questions) for (let index = 1; index < question.fields.length; index += 1) {
4443
+ const previous = FIELD_ORDER.get(question.fields[index - 1]) ?? -1;
4444
+ if ((FIELD_ORDER.get(question.fields[index]) ?? -1) < previous) return {
4443
4445
  ok: false,
4444
4446
  code: "intake_order_invalid",
4445
4447
  missing: [],
4446
- message: `Intake questions must follow the canonical order (${INTAKE_FIELDS.join(" → ")}); got "${scan.orderedFields[index]}" after "${scan.orderedFields[index - 1]}".`
4448
+ message: `Intake questions in a single ask_user_question call must follow the canonical order (${INTAKE_FIELDS.join(" → ")}); got "${question.fields[index]}" after "${question.fields[index - 1]}". Previously answered fields stay valid — ask only remaining missing fields as a canonical subsequence.`
4447
4449
  };
4448
4450
  }
4449
4451
  const sources = {};
@@ -11573,7 +11575,7 @@ async function resolveBinding(deps, sessionId) {
11573
11575
  *
11574
11576
  * Format: version+shortSha
11575
11577
  */
11576
- const BUILD_ID = "6.2.0+10c9cba";
11578
+ const BUILD_ID = "6.2.1+713b25e";
11577
11579
  //#endregion
11578
11580
  //#region src/ui-view/invocations.ts
11579
11581
  /**