weaver-work-cli 0.1.76 → 0.1.78

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 (175) hide show
  1. package/README.md +3 -1
  2. package/dist/chunks/{attachment-content-24RL44SE.js → attachment-content-TFOC3Y3X.js} +3 -3
  3. package/dist/chunks/{chunk-FEZK536Z.js → chunk-4PBN7NJY.js} +353 -43
  4. package/dist/chunks/{chunk-SQFKBWTR.js → chunk-5VQ7JHV4.js} +132 -47
  5. package/dist/chunks/{chunk-KJA7CRES.js → chunk-7SQN5IZR.js} +1 -1
  6. package/dist/chunks/{chunk-MS7MKBGJ.js → chunk-BP7BONZO.js} +664 -75
  7. package/dist/chunks/{chunk-L5SCNJKX.js → chunk-DACQKJ6O.js} +1 -1
  8. package/dist/chunks/{chunk-T7HVQ2WP.js → chunk-E2EY3DMS.js} +2 -2
  9. package/dist/chunks/{chunk-WJQJ7YEX.js → chunk-FAC4IFGQ.js} +2 -2
  10. package/dist/chunks/{minute-doc-4BA2R5EA.js → chunk-IBTGXLOT.js} +99 -16
  11. package/dist/chunks/{chunk-OJ4JPD25.js → chunk-LQLIXBJF.js} +6 -8
  12. package/dist/chunks/{chunk-H6N6U2D6.js → chunk-SWFTWNWL.js} +7 -7
  13. package/dist/chunks/{chunk-SU6IJD6D.js → chunk-TD5IOEGN.js} +1 -1
  14. package/dist/chunks/{chunk-Q7RXCK2Y.js → chunk-USYFVIUR.js} +22 -7
  15. package/dist/chunks/{chunk-WHI6YAUE.js → chunk-UZ2E3VNI.js} +1 -1
  16. package/dist/chunks/{chunk-AZC53XSQ.js → chunk-VNEU7OUN.js} +1 -1
  17. package/dist/chunks/{chunk-5QUTQHXF.js → chunk-WNFDR5PC.js} +198 -80
  18. package/dist/chunks/{chunk-NZQRW4KL.js → chunk-Z44YFIN6.js} +2 -2
  19. package/dist/chunks/{chunk-R4PN3OFK.js → chunk-ZOTXXGUM.js} +7 -7
  20. package/dist/chunks/{cli-DFLV57LO.js → cli-WA7FOQKC.js} +10 -10
  21. package/dist/chunks/{conflict-72Q6DM4I.js → conflict-D4GVAURN.js} +2 -2
  22. package/dist/chunks/{contract-IRNRQ5FY.js → contract-GW7US3UF.js} +4399 -3547
  23. package/dist/chunks/{create-flow-UGTDI7SP.js → create-flow-ERDGW3FZ.js} +10 -6
  24. package/dist/chunks/{ehr-PHIBBUIG.js → ehr-P6T7OAAV.js} +1 -1
  25. package/dist/chunks/{entry-mode-5WOXFE67.js → entry-mode-SQU5WTX6.js} +3 -3
  26. package/dist/chunks/{env-H4ALHESA.js → env-DASBNSEM.js} +2 -2
  27. package/dist/chunks/{factory-COX6AVK7.js → factory-A3NAKZAA.js} +1 -1
  28. package/dist/chunks/{group-chat-ZIWQQO4G.js → group-chat-7SEAVAJR.js} +3 -3
  29. package/dist/chunks/{lazy-dispatch-MZ3EZYDL.js → lazy-dispatch-ZDKLS5MR.js} +3 -3
  30. package/dist/chunks/{meeting-XE6CTXYA.js → meeting-7AEQGBAT.js} +18 -12
  31. package/dist/chunks/minute-doc-REI6RUE4.js +20 -0
  32. package/dist/chunks/{project-XREEXFU2.js → project-6PRGBLO2.js} +38 -14
  33. package/dist/chunks/{recruit-stage-TSQWOGQD.js → recruit-stage-TLZJUFHD.js} +543 -463
  34. package/dist/chunks/{registry-F4YFZLOD.js → registry-KQ4TNUWO.js} +1 -1
  35. package/dist/chunks/{registry-7UDUWYB5.js → registry-UVTI323K.js} +12 -11
  36. package/dist/chunks/{room-recommend-FO3HLPNB.js → room-recommend-ELEJUYBN.js} +4 -4
  37. package/dist/chunks/{schedule-DHNNOHVS.js → schedule-XBKY7VEA.js} +4 -4
  38. package/dist/chunks/{update-AV5VOXGY.js → update-77ZUIYSG.js} +2 -2
  39. package/dist/chunks/{workflow-MAGCHWYZ.js → workflow-SYCBS5XD.js} +1 -1
  40. package/dist/index.js +3 -3
  41. package/dist/internal/update/service.js +9 -8
  42. package/dist/shortcuts/contract/data/collection-ledger-html.js +109 -33
  43. package/dist/shortcuts/contract/data/collection-node-catalog.js +26 -2
  44. package/dist/shortcuts/contract/data/report-renderers.js +75 -31
  45. package/dist/shortcuts/contract/data/report-spec.js +17 -3
  46. package/dist/shortcuts/contract/manifest.js +20 -3
  47. package/dist/shortcuts/contract/operations/bizreview-report.js +23 -2
  48. package/dist/shortcuts/contract/operations/collection-node.js +116 -1
  49. package/dist/shortcuts/contract/operations/compare-report.js +27 -5
  50. package/dist/shortcuts/contract/operations/credit-page.js +11 -2
  51. package/dist/shortcuts/contract/operations/docx-slots.js +27 -2
  52. package/dist/shortcuts/contract/operations/draft-submit.js +9 -6
  53. package/dist/shortcuts/contract/operations/elements-build.js +162 -30
  54. package/dist/shortcuts/contract/operations/elements-spec.js +50 -0
  55. package/dist/shortcuts/contract/operations/generated-submit.js +35 -0
  56. package/dist/shortcuts/contract/operations/ledger-card.js +32 -2
  57. package/dist/shortcuts/contract/operations/ledger-stat.js +17 -5
  58. package/dist/shortcuts/contract/operations/ledger.js +88 -16
  59. package/dist/shortcuts/contract/operations/metrics.js +16 -3
  60. package/dist/shortcuts/contract/operations/ops-draft.js +359 -27
  61. package/dist/shortcuts/contract/operations/page.js +23 -0
  62. package/dist/shortcuts/contract/operations/quote-recognize.js +91 -13
  63. package/dist/shortcuts/contract/operations/quote-submit.js +16 -0
  64. package/dist/shortcuts/contract/operations/review-report.js +11 -3
  65. package/dist/shortcuts/contract/operations/save-recognize.js +62 -1
  66. package/dist/shortcuts/contract/operations/triage.js +18 -3
  67. package/dist/shortcuts/contract/operations/viewlink.js +17 -1
  68. package/dist/shortcuts/ehr/operations/recruit.js +255 -90
  69. package/dist/shortcuts/meeting/confirm-gate.js +42 -0
  70. package/dist/shortcuts/meeting/continuation.js +6 -2
  71. package/dist/shortcuts/meeting/minute-doc.js +119 -12
  72. package/dist/shortcuts/meeting/operations/attachment.js +19 -0
  73. package/dist/shortcuts/meeting/operations/compose-outcome.js +24 -2
  74. package/dist/shortcuts/meeting/operations/eb/conflict.js +2 -1
  75. package/dist/shortcuts/meeting/operations/eb/create-flow.js +162 -19
  76. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +22 -3
  77. package/dist/shortcuts/meeting/operations/group-share.js +268 -0
  78. package/dist/shortcuts/meeting/operations/minute-content.js +58 -1
  79. package/dist/shortcuts/meeting/operations/minute-export.js +295 -0
  80. package/dist/shortcuts/meeting/operations/registry.js +4 -0
  81. package/dist/shortcuts/project/operations/read.js +40 -15
  82. package/dist/shortcuts/recruit-stage/context.js +16 -81
  83. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +89 -53
  84. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +15 -5
  85. package/dist/shortcuts/recruit-stage/operations/jd-create.js +46 -108
  86. package/dist/shortcuts/recruit-stage/operations/list.js +203 -74
  87. package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -85
  88. package/dist/shortcuts/recruit-stage/operations/search.js +113 -53
  89. package/dist/shortcuts/recruit-stage/shared.js +153 -4
  90. package/dist/shortcuts/workflow/endpoints.js +2 -0
  91. package/dist/shortcuts/workflow/operations/form.js +11 -0
  92. package/dist/shortcuts/workflow/operations/read.js +24 -5
  93. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +2 -2
  94. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +2 -0
  95. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +28 -4
  96. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.node.js +198 -0
  97. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -2
  98. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subordinate.js +70 -0
  99. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +15 -5
  100. package/docs/project.md +1 -1
  101. package/package.json +1 -1
  102. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  103. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  104. package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
  105. package/skills/weaver-e10-jinchengda/SKILL.md +64 -28
  106. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +4 -4
  107. package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +1 -1
  108. package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +5 -4
  109. package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +26 -2
  110. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
  111. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +9 -8
  112. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +47 -52
  113. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
  114. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +5 -5
  115. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +1 -1
  116. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +7 -1
  117. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -12
  118. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +44 -1
  119. package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +5 -4
  120. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +8 -0
  121. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +33 -3
  122. package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +1 -1
  123. package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +17 -3
  124. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +12 -12
  125. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +18 -10
  126. package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +77 -37
  127. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +7 -0
  128. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +55 -12
  129. package/skills/weaver-e10-jinchengda/references/contract-review-todo.md +102 -0
  130. package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +1 -17
  131. package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +11 -8
  132. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +2 -1
  133. package/skills/weaver-e10-jinchengda/references/orchestration.md +6 -6
  134. package/skills/weaver-e10-meeting/SKILL.md +203 -80
  135. package/skills/weaver-e10-meeting/references/create-quickstart.md +98 -0
  136. package/skills/weaver-e10-meeting/references/delivery-checklist.md +34 -0
  137. package/skills/weaver-e10-meeting/references/error-codes.md +44 -0
  138. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +56 -3
  139. package/skills/weaver-e10-meeting/references/room-recommend.md +2 -0
  140. package/skills/weaver-e10-recruit-stage/SKILL.md +61 -58
  141. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +28 -25
  142. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +20 -14
  143. package/skills/weaver-e10-recruit-stage/lib/recruit-attach-probe.mjs +127 -0
  144. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +71 -25
  145. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +39 -7
  146. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +2 -2
  147. package/skills/weaver-e10-recruit-stage/references/position-templates.md +10 -10
  148. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +8 -5
  149. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +29 -31
  150. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +4 -2
  151. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +6 -6
  152. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -4
  153. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +3 -3
  154. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +10 -0
  155. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +2 -1
  156. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +1 -0
  157. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +1 -1
  158. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +10 -28
  159. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +2 -0
  160. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +1 -1
  161. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +2 -2
  162. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +1 -1
  163. package/skills/weaver-e10-recruit-stage/templates/match-report.html +14 -10
  164. package/skills/weaver-e10-shijingran/SKILL.md +2 -2
  165. package/skills/weaver-e10-shijingran/references/operations.md +5 -2
  166. package/skills/weaver-e10-shijingran/references/source-manifest.json +41 -40
  167. package/skills/weaver-e10-workflow/SKILL.md +13 -9
  168. package/skills/weaver-e10-workflow/references/todo-dialogue.md +33 -8
  169. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +19 -14
  170. package/skills/weaver-e10-workflow/references/workflow-create.md +1 -1
  171. package/skills/weaver-e10-workflow/references/workflow-query.md +4 -2
  172. package/skills/weaver-e10-workflow/references/workflow-view.md +3 -3
  173. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +132 -42
  174. package/templates/meeting/minute.docx +0 -0
  175. package/skills/weaver-e10-yepiaotong.zip +0 -0
@@ -28,7 +28,7 @@ import { resolve as resolvePath, dirname } from 'node:path';
28
28
  import { fileURLToPath } from 'node:url';
29
29
  import { rsSuccess, schemaOf } from './types.js';
30
30
  import { rsFail, rsValidationError, rsConfirmationError } from '../errors.js';
31
- import { objIdOf, formIdOf, saveFormData, getDsOptions, getFormDataRecord, resolvePersonId, findMenuNode, resolveCurrentUser, resolveCurrentUserOrg, buildCardUrl, buildListUrl, randHex32, dsOptionsSnapshot, restoreDsOptions, invalidateEnvCache, verifySubmitted, expectedFields, probeCreatePermission, } from '../shared.js';
31
+ import { objIdOf, formIdOf, saveFormData, getDsOptions, getFormDataRecord, resolvePersonId, findMenuNode, resolveCurrentUser, resolveCurrentUserOrg, buildCardUrl, buildListUrl, randHex32, dsOptionsSnapshot, restoreDsOptions, invalidateEnvCache, verifySubmitted, expectedFields, probeCreatePermission, fetchDatasetRows, } from '../shared.js';
32
32
  import { toMenuList } from '../../ehr/operations/shared.js';
33
33
  import { isSelfTenant } from '../../ehr/operations/recruit.js';
34
34
  const SCHEMA_ID_STR = { type: 'string', description: '18 位记录 id(字符串)' };
@@ -186,14 +186,8 @@ function refToSubmit(d) {
186
186
  return null;
187
187
  return o;
188
188
  }
189
- // 工作地点的「办公地点」菜单定位:三级来源,不依赖 cache.menus
190
- // 实测(2026-11-05):本环境环境缓存**没有 menus 字段**(只有 forms/lists/fields/dict 等),
191
- // 原实现直接读 cache.menus → 拿到 undefined → findMenuNode 返回 null → resolveWorkLocation 恒为 null
192
- // → work_location 每次进 setSkipped(连完整地址都写不进去)。改为:
193
- // ① cache.lists.all_search(与面试数字人菜单解析同一模式,已在用)
194
- // ② cache.menus(若某环境确实有)
195
- // ③ allMenus 接口兜底(resolvePositionNewUrl 已在用,同一写法)
196
- const WORK_PLACE_NAMES = ['办公地点', '工作地点'];
189
+ // 工作地点不再按菜单/listId 定位:直接读 `uf_rcrt_work_place` 表单数据。
190
+ // 2026-11-30 用户口径:办公地点只允许直接读表,不保留菜单/列表备选。
197
191
  /**
198
192
  * `allMenus` 菜单树:**进程内按 appId 记忆**(原本 findWorkPlaceMenu / resolvePositionNewUrl /
199
193
  * resolveHomePageUrl 三处各发一次,2026-11-18 实测同一次 jd.prefill 里发了 2 次,其中一次 787 ms)。
@@ -223,28 +217,6 @@ async function fetchAllMenusFlat(ctx) {
223
217
  return []; // 接口不可用:调用方按「没找到」处理
224
218
  }
225
219
  }
226
- async function findWorkPlaceMenu(ctx) {
227
- const { host, appId, cache } = ctx;
228
- const ok = (m) => m && m.listId;
229
- // ① all_search
230
- const allSearch = ((cache.lists || {}).all_search || []);
231
- const hit1 = allSearch.find((m) => ok(m) && WORK_PLACE_NAMES.some((n) => String(m.menuName || '').includes(n)));
232
- if (hit1)
233
- return { listId: String(hit1.listId), cusMenuId: String(hit1.cusMenuId || ''), menuName: String(hit1.menuName || '') };
234
- // ② cache.menus(可能不存在)
235
- const hit2 = findMenuNode(cache.menus || [], WORK_PLACE_NAMES, (m) => ok(m));
236
- if (hit2)
237
- return { listId: String(hit2.listId), cusMenuId: String(hit2.cusMenuId || ''), menuName: String(hit2.menuName || '') };
238
- // ③ allMenus 接口
239
- try {
240
- const flat = await fetchAllMenusFlat(ctx);
241
- const hit3 = findMenuNode(flat, WORK_PLACE_NAMES, (m) => ok(m));
242
- if (hit3)
243
- return { listId: String(hit3.listId), cusMenuId: String(hit3.cusMenuId || ''), menuName: String(hit3.menuName || '') };
244
- }
245
- catch { /* 接口不可用则放弃 */ }
246
- return null;
247
- }
248
220
  // ── 招聘流程「数据兜底」:缓存取不到时直接从列表数据解析 ──────────────────────────
249
221
  // 🔴 2026-11-28 向下兼容:默认招聘流程原本只读 cache.defaultRecruitFlow,
250
222
  // 而该值由 context 层解析、受「探测失败标记」影响可能长期为空(一次失败记住 6 小时),
@@ -339,92 +311,47 @@ async function resolveFlowByData(ctx) {
339
311
  return null;
340
312
  }
341
313
  }
342
- // 仅进程内 memo(不落盘):同一 CLI 进程内 prepare/apply 及多个 set 复用一次列表请求。
343
- // 记录 id / 启用状态 optionId 一律运行时从列表解析,跨环境不缓存、不写死。
314
+ // 仅进程内 memo(不落盘):同一 CLI 进程内 prepare/apply 及多个 set 复用一次直读表请求。
344
315
  const workPlaceMemo = new Map();
345
316
  function stripHtml(s) {
346
317
  return String(s ?? '').replace(/<[^>]*>/g, '').trim();
347
318
  }
348
- function parseSpans(raw) {
349
- try {
350
- const v = Array.isArray(raw) ? raw : JSON.parse(String(raw || '[]'));
351
- return Array.isArray(v) ? v : [];
352
- }
353
- catch {
354
- return [];
355
- }
356
- }
357
319
  /** 「启用」判定:只读服务端翻译后的文本,不写死 optionId(跨环境 optionId 会变)。 */
358
320
  function isEnabledText(s) {
359
321
  const t = stripHtml(s);
360
322
  return t.includes('启用') && !t.includes('禁用');
361
323
  }
362
- /** 拉取「办公地点」列表,按 place_status=启用 过滤;状态信息缺失时返回原始行并标记未过滤。 */
324
+ /** 拉取「办公地点」:只直接读 `uf_rcrt_work_place` 表,不依赖菜单/listId。 */
363
325
  async function loadWorkPlaces(ctx) {
364
326
  const { host, appId } = ctx;
365
- const menu = await findWorkPlaceMenu(ctx);
366
- if (!menu)
367
- return { rows: [], statusFiltered: false };
368
- const key = appId + '|' + menu.listId;
327
+ const key = appId + '|work_place_table';
369
328
  const cached = workPlaceMemo.get(key);
370
329
  if (cached)
371
330
  return cached;
372
- const [tagObjId] = await Promise.all([
373
- host
374
- .request({ path: `/api/ebuilder/form/obj/getObjsByTag?appId=${appId}&tag=uf_rcrt_work_place`, method: 'GET' })
375
- .then((t) => (Array.isArray(t?.data) && t.data[0] ? String(t.data[0].id || '') : ''))
376
- .catch(() => ''),
377
- ]);
378
- const pObj = tagObjId || String(menu.objId || '');
379
- if (!pObj)
331
+ const tag = await host.request({
332
+ path: `/api/ebuilder/form/obj/getObjsByTag?appId=${appId}&tag=uf_rcrt_work_place`,
333
+ method: 'GET',
334
+ }).catch(() => null);
335
+ const objId = Array.isArray(tag?.data) && tag.data[0] ? String(tag.data[0].id || '') : '';
336
+ if (!objId)
380
337
  return { rows: [], statusFiltered: false };
381
- const pageSize = 200;
382
- const rawRows = [];
383
- const dispRows = [];
384
- for (let page = 1; page <= 5; page++) {
385
- const body = {
386
- current: page, pageSize, tableuid: randHex32(),
387
- listId: menu.listId, searchParamData: { searchType: '3', type: 'and' },
388
- terminal: 'PC', browser: 'Chrome', requiredMatch: 1, mapResult: 1,
389
- recheckQuery: 1, isFollow: 0, isShareToMe: 0, filterCondition: {},
390
- cusMenuId: menu.cusMenuId, urlPageTitle: menu.menuName, menuName: menu.menuName,
391
- };
392
- const r = await host.request({
393
- path: `/api/ebuilder/form/list/getListDatas?passid=${pObj}&cid=${pObj}`,
394
- body, headers: { ebBusinessId: menu.listId },
395
- });
396
- const batch = (r?.data?.data || r?.data?.displayData || []);
397
- rawRows.push(...batch);
398
- dispRows.push(...(r?.data?.displayData || []));
399
- if (batch.length < pageSize)
400
- break; // 服务端 total/hasMore 不可信,唯一可靠判据是分页本身
401
- }
402
- // 从 displayData 学「启用」对应的 optionId 集合与行 id 集合(两种形态都兼容)
403
- const enabledStatusIds = new Set();
404
- const enabledRowIds = new Set();
405
- for (const d of dispRows) {
406
- const rid = String(d?.form_data_id || d?.id || '');
407
- if (isEnabledText(d?.place_status) && rid)
408
- enabledRowIds.add(rid);
409
- for (const s of parseSpans(d?.place_statusSpan)) {
410
- if (isEnabledText(s?.name) && s?.id)
411
- enabledStatusIds.add(String(s.id));
412
- }
413
- }
414
- const statusFiltered = enabledRowIds.size > 0 || enabledStatusIds.size > 0;
415
- const rows = rawRows
416
- .filter((x) => !statusFiltered
417
- || enabledRowIds.has(String(x?.form_data_id || x?.id || ''))
418
- || enabledStatusIds.has(String(x?.place_status || '')))
338
+ const { rows: rawRows } = await fetchDatasetRows(host, objId, { pageSize: 500, maxRows: 1000 });
339
+ const mapped = rawRows
419
340
  .map((x) => ({
420
341
  id: String(x?.form_data_id || x?.id || ''),
421
342
  name: String(x?.name || ''),
422
343
  detail: String(x?.detail_location || ''),
423
344
  area: String(x?.area_text || ''),
424
345
  city: String(x?.city || ''),
346
+ status: String(x?.place_status || ''),
425
347
  }))
426
348
  .filter((x) => !!x.id);
427
- const out = { rows, statusFiltered };
349
+ // place_status 只有翻译成中文文本时才可作为过滤依据;原始 optionId 一律不过滤。
350
+ const readableStatus = mapped.some((x) => /启用|禁用/.test(x.status));
351
+ const rows = readableStatus
352
+ ? mapped.filter((x) => !x.status || isEnabledText(x.status))
353
+ : mapped;
354
+ const out = { rows, statusFiltered: readableStatus };
428
355
  workPlaceMemo.set(key, out);
429
356
  return out;
430
357
  }
@@ -554,20 +481,27 @@ const REF_TEXT_KEYS = ['position_duty', 'work_request'];
554
481
  async function fetchRecentReferences(ctx, jd, keyword) {
555
482
  const { host, cache } = ctx;
556
483
  const listParam = cache.lists?.position || null;
557
- if (!listParam?.listId)
558
- return { available: false, reason: '环境缓存缺少职位列表参数', items: [] };
559
- const r = await host.request({
560
- path: '/api/ebuilder/form/list/getListDatas?passid=' + jd.objId + '&cid=' + jd.objId,
561
- body: {
562
- current: 1, pageSize: 30, tableuid: randHex32(), listId: listParam.listId,
563
- searchParamData: { searchType: '3', type: 'and' },
564
- terminal: 'PC', browser: 'Chrome', requiredMatch: 1, mapResult: 1, recheckQuery: 1,
565
- isFollow: 0, isShareToMe: 0, filterCondition: {},
566
- cusMenuId: listParam.cusMenuId, urlPageTitle: listParam.menuName, menuName: listParam.menuName,
567
- },
568
- headers: { ebBusinessId: listParam.listId },
569
- });
570
- const rows = r?.data?.displayData || r?.data?.data || [];
484
+ let rows = [];
485
+ if (listParam?.listId) {
486
+ const r = await host.request({
487
+ path: '/api/ebuilder/form/list/getListDatas?passid=' + jd.objId + '&cid=' + jd.objId,
488
+ body: {
489
+ current: 1, pageSize: 30, tableuid: randHex32(), listId: listParam.listId,
490
+ searchParamData: { searchType: '3', type: 'and' },
491
+ terminal: 'PC', browser: 'Chrome', requiredMatch: 1, mapResult: 1, recheckQuery: 1,
492
+ isFollow: 0, isShareToMe: 0, filterCondition: {},
493
+ cusMenuId: listParam.cusMenuId, urlPageTitle: listParam.menuName, menuName: listParam.menuName,
494
+ },
495
+ headers: { ebBusinessId: listParam.listId },
496
+ });
497
+ rows = r?.data?.displayData || r?.data?.data || [];
498
+ }
499
+ else {
500
+ // 无职位列表菜单时直读职位表;参考同类职位不是创建前置条件,不能因此阻断 JD,
501
+ // 但读失败必须让调用方看见原因(外层 catch 会转成 available:false + reason,ISS-501)。
502
+ const ds = await fetchDatasetRows(host, jd.objId, { pageSize: 1000, maxRows: 1000 });
503
+ rows = ds.rows;
504
+ }
571
505
  const kw = String(keyword || '').trim();
572
506
  const tokens = [...new Set(kw.split(/[^A-Za-z0-9\u4e00-\u9fff]+/).concat(kw).map((t) => t.trim()).filter((t) => t.length >= 2))];
573
507
  const match = (row) => {
@@ -972,6 +906,10 @@ async function buildJd(opts) {
972
906
  }
973
907
  function setsOf(args) {
974
908
  const raw = args.sets;
909
+ // 入参格式错误不能静默当空:object map 是最常见的误传形态(2026-11-30 实测)
910
+ if (raw && !Array.isArray(raw)) {
911
+ throw rsValidationError('set_invalid_format', 'sets 必须是数组 ["字段=值"] 或 [{key,value}];收到 object 已忽略,请改为数组形式');
912
+ }
975
913
  if (Array.isArray(raw)) {
976
914
  return raw.map((item) => {
977
915
  if (typeof item === 'string') {
@@ -1,6 +1,6 @@
1
1
  import { rsSuccess, schemaOf } from './types.js';
2
2
  import { rsFail } from '../errors.js';
3
- import { resolveCurrentUser, randHex32 } from '../shared.js';
3
+ import { resolveCurrentUser, randHex32, fetchDatasetRows } from '../shared.js';
4
4
  const TYPES = {
5
5
  demand: { listKey: 'demand', formType: 'demand_manage', title: '招聘需求', menuNames: ['招聘需求', '需求'] },
6
6
  position: { listKey: 'position', formType: 'position_manage', title: '招聘职位', menuNames: ['招聘职位', '职位列表', '职位管理'] },
@@ -192,12 +192,29 @@ async function runList(env, args, feedbackTodoMode) {
192
192
  const listParam = (feedbackTodoMode && !serverFilterReady ? findByMenu(FEEDBACK_TODO_MENU_NAMES) : null)
193
193
  || cache.lists[t.listKey]
194
194
  || findByMenu(t.menuNames);
195
- if (!listParam?.listId) {
196
- throw rsFail('当前环境未启用「' + t.title + '」功能(未找到对应菜单/列表参数,按能力探测拦截)');
195
+ // 菜单/listId 只作快路径;菜单缺失时直接按表单 objId 读表,不再把菜单当能力闸门。
196
+ let directRows = null;
197
+ let directTotal = null;
198
+ let directTruncated = false;
199
+ let listId = '';
200
+ let cusMenuId = '';
201
+ let menuName = t.title;
202
+ if (listParam?.listId) {
203
+ listId = String(listParam.listId);
204
+ cusMenuId = String(listParam.cusMenuId || '');
205
+ menuName = listParam.menuName || t.title;
206
+ }
207
+ else {
208
+ if (!formObjId) {
209
+ throw rsFail('当前环境未解析到「' + t.title + '」表单,无法读取数据');
210
+ }
211
+ const ds = await fetchDatasetRows(host, formObjId, { pageSize: Math.max(200, pageSize), maxRows: 1000 });
212
+ directRows = ds.rows;
213
+ directTotal = ds.total;
214
+ directTruncated = ds.truncated;
215
+ listId = 'dataset:' + formObjId;
216
+ menuName = t.title;
197
217
  }
198
- const listId = listParam.listId;
199
- const cusMenuId = listParam.cusMenuId;
200
- const menuName = listParam.menuName || t.title;
201
218
  // 精确筛选:参数 → dataKey → field_<fieldId>(mark 运行时解析)
202
219
  const commonSearchFields = {};
203
220
  const appliedFilters = [];
@@ -263,61 +280,68 @@ async function runList(env, args, feedbackTodoMode) {
263
280
  // 去掉会退化成「只能靠取到空页判断末页」,对十万级台账反而更慢且会静默截断。
264
281
  const PAGE_CONCURRENCY = 6;
265
282
  let countFetched = false;
266
- for (let start = 0; start < wantPages; start += PAGE_CONCURRENCY) {
267
- const end = Math.min(start + PAGE_CONCURRENCY, wantPages);
268
- const idxs = [];
269
- for (let i = start; i < end; i++)
270
- idxs.push(i);
271
- // 计数接口全程只发一次(与第一批并发出,失败不影响主流程)
272
- const needCount = !countFetched;
273
- if (needCount)
274
- countFetched = true;
275
- const countPromise = needCount
276
- ? (() => {
277
- const cntBody = { ...baseBody };
278
- delete cntBody.current;
279
- delete cntBody.pageSize;
280
- return host.request({
281
- path: '/api/ebuilder/form/list/getListDataCount?passid=' + formObjId + '&cid=' + formObjId,
282
- body: cntBody, headers: extra,
283
- }).catch(() => null);
284
- })()
285
- : Promise.resolve(null);
286
- const [c, ...pageResps] = await Promise.all([
287
- countPromise,
288
- ...idxs.map((i) => host.request({
289
- path: '/api/ebuilder/form/list/getListDatas?passid=' + formObjId + '&cid=' + formObjId,
290
- body: { ...baseBody, current: current + i },
291
- headers: extra,
292
- })),
293
- ]);
294
- if (c && typeof c?.data?.total === 'number')
295
- cntTotal = c.data.total;
296
- // 按页序消费,遇到末页或已达总数即停(并跳出后续批次)
297
- let stop = false;
298
- for (let k = 0; k < idxs.length; k++) {
299
- const i = idxs[k];
300
- const resp = pageResps[k];
301
- const rRaw = resp?.data?.data || [];
302
- const rDisp = resp?.data?.displayData;
303
- if (Array.isArray(rDisp) && rDisp.length) {
304
- hasDisplay = true;
305
- dispRows.push(...rDisp);
306
- }
307
- rawRows.push(...rRaw);
308
- const got = (Array.isArray(rDisp) && rDisp.length) ? rDisp.length : rRaw.length;
309
- lastGot = got;
310
- if (got < pageSize) {
311
- stop = true;
312
- break;
283
+ if (!directRows) {
284
+ for (let start = 0; start < wantPages; start += PAGE_CONCURRENCY) {
285
+ const end = Math.min(start + PAGE_CONCURRENCY, wantPages);
286
+ const idxs = [];
287
+ for (let i = start; i < end; i++)
288
+ idxs.push(i);
289
+ // 计数接口全程只发一次(与第一批并发出,失败不影响主流程)
290
+ const needCount = !countFetched;
291
+ if (needCount)
292
+ countFetched = true;
293
+ const countPromise = needCount
294
+ ? (() => {
295
+ const cntBody = { ...baseBody };
296
+ delete cntBody.current;
297
+ delete cntBody.pageSize;
298
+ return host.request({
299
+ path: '/api/ebuilder/form/list/getListDataCount?passid=' + formObjId + '&cid=' + formObjId,
300
+ body: cntBody, headers: extra,
301
+ }).catch(() => null);
302
+ })()
303
+ : Promise.resolve(null);
304
+ const [c, ...pageResps] = await Promise.all([
305
+ countPromise,
306
+ ...idxs.map((i) => host.request({
307
+ path: '/api/ebuilder/form/list/getListDatas?passid=' + formObjId + '&cid=' + formObjId,
308
+ body: { ...baseBody, current: current + i },
309
+ headers: extra,
310
+ })),
311
+ ]);
312
+ if (c && typeof c?.data?.total === 'number')
313
+ cntTotal = c.data.total;
314
+ // 按页序消费,遇到末页或已达总数即停(并跳出后续批次)
315
+ let stop = false;
316
+ for (let k = 0; k < idxs.length; k++) {
317
+ const i = idxs[k];
318
+ const resp = pageResps[k];
319
+ const rRaw = resp?.data?.data || [];
320
+ const rDisp = resp?.data?.displayData;
321
+ if (Array.isArray(rDisp) && rDisp.length) {
322
+ hasDisplay = true;
323
+ dispRows.push(...rDisp);
324
+ }
325
+ rawRows.push(...rRaw);
326
+ const got = (Array.isArray(rDisp) && rDisp.length) ? rDisp.length : rRaw.length;
327
+ lastGot = got;
328
+ if (got < pageSize) {
329
+ stop = true;
330
+ break;
331
+ }
332
+ if (cntTotal !== null && (current + i) * pageSize >= cntTotal) {
333
+ stop = true;
334
+ break;
335
+ }
313
336
  }
314
- if (cntTotal !== null && (current + i) * pageSize >= cntTotal) {
315
- stop = true;
337
+ if (stop)
316
338
  break;
317
- }
318
339
  }
319
- if (stop)
320
- break;
340
+ }
341
+ else {
342
+ rawRows.push(...directRows);
343
+ cntTotal = directTotal ?? directRows.length;
344
+ lastGot = directRows.length;
321
345
  }
322
346
  const rows = hasDisplay ? dispRows : rawRows;
323
347
  // 取回后本地过滤/排序(服务端时间筛选在部分列表不稳定,统一本地处理)
@@ -347,6 +371,14 @@ async function runList(env, args, feedbackTodoMode) {
347
371
  return av < bv ? 1 : av > bv ? -1 : 0; // 默认倒序(时间类:最新在前)
348
372
  });
349
373
  }
374
+ // 直读表没有服务端分页:先记录筛选后的完整条数,再按 current/pageSize 截取。
375
+ // 同时保留分页前的完整行集:feedbackTodo 的 total 要按完整集算,不能只数当前页。
376
+ const directFilteredRows = directRows ? workRows : [];
377
+ const filteredCount = workRows.length;
378
+ if (directRows && !args.all) {
379
+ const start = Math.max(0, (current - 1) * pageSize);
380
+ workRows = workRows.slice(start, start + pageSize);
381
+ }
350
382
  // 总数三态:① 计数接口精确 ② 到末页按已取回行数 ③ 不可知置 null(绝不把失败当 0)
351
383
  const reachedEnd = lastGot < pageSize;
352
384
  let total;
@@ -369,6 +401,20 @@ async function runList(env, args, feedbackTodoMode) {
369
401
  if (args.all && rows.length >= wantPages * pageSize && (cntTotal === null || cntTotal > rows.length)) {
370
402
  totalNote = `已取回 ${rows.length} 行(达 maxPages 上限 ${wantPages} 页),可能仍有更多;可增大 maxPages 或加精确筛选`;
371
403
  }
404
+ // 直读表 + 客户端筛选时,服务端 total 不能代表筛选结果;按本地筛选后的完整条数回填。
405
+ // 若直读已触顶 1000 行,则筛选结果也可能不完整,total 置 null 并在 note 里说明(不谎报精确)。
406
+ if (directRows && !feedbackTodoMode && (clientFilters.length || args.recent)) {
407
+ if (directTruncated) {
408
+ total = null;
409
+ totalExact = false;
410
+ totalNote = '直读表已达到 1000 行上限,筛选结果可能不完整;请加精确筛选后重查';
411
+ }
412
+ else {
413
+ total = filteredCount;
414
+ totalExact = true;
415
+ totalNote = '直读表模式:total 为本地筛选后的条数';
416
+ }
417
+ }
372
418
  // 原始层兜底翻译(displayData 存在时跳过全部翻译,零本地翻译、零额外请求)
373
419
  const dictNameMap = {};
374
420
  const optionsMap = {};
@@ -473,7 +519,7 @@ async function runList(env, args, feedbackTodoMode) {
473
519
  }
474
520
  }
475
521
  if (Array.isArray(arr)) {
476
- const names = arr.map((x) => x?.name || x?.username || x?.text || x?.title || (typeof x === 'string' ? x : null)).filter(Boolean);
522
+ const names = arr.map((x) => x?.name || x?.fieldOptionName || x?.username || x?.text || x?.title || (typeof x === 'string' ? x : null)).filter(Boolean);
477
523
  if (names.length) {
478
524
  row[k] = names.join('、');
479
525
  continue;
@@ -515,7 +561,7 @@ async function runList(env, args, feedbackTodoMode) {
515
561
  }
516
562
  }
517
563
  if (Array.isArray(arr)) {
518
- const names = arr.map((x) => x?.name || x?.text || x?.title || (typeof x === 'string' ? x : null)).filter(Boolean);
564
+ const names = arr.map((x) => x?.name || x?.fieldOptionName || x?.text || x?.title || (typeof x === 'string' ? x : null)).filter(Boolean);
519
565
  if (names.length) {
520
566
  row[k] = names.join('、');
521
567
  continue;
@@ -551,9 +597,70 @@ async function runList(env, args, feedbackTodoMode) {
551
597
  // feedbackTodo:从当前结果集派生两个待办视图
552
598
  if (feedbackTodoMode) {
553
599
  const me = feedbackUser?.name || '';
554
- const st = (r) => String(r.union_status_key || r.union_status || '');
555
- const tp = (r) => String(r.interview_type_key || r.interview_type || '');
556
- const iv = (r) => String(r.interviewer || '');
600
+ const myId = feedbackUser?.id ? String(feedbackUser.id) : '';
601
+ const scalar = (v) => {
602
+ if (v == null)
603
+ return '';
604
+ if (typeof v === 'object')
605
+ return String(v.id ?? v.value ?? v.key ?? v.label ?? '');
606
+ return String(v);
607
+ };
608
+ const tokensOf = (v) => {
609
+ const out = [];
610
+ const walk = (x, depth = 0) => {
611
+ if (x == null || depth > 4)
612
+ return;
613
+ if (Array.isArray(x)) {
614
+ for (const it of x)
615
+ walk(it, depth + 1);
616
+ return;
617
+ }
618
+ if (typeof x === 'object') {
619
+ for (const f of [x.id, x.value, x.employeeId, x.userId, x.name, x.text, x.label])
620
+ walk(f, depth + 1);
621
+ return;
622
+ }
623
+ const s = String(x).trim();
624
+ if (!s || /^\[object /.test(s))
625
+ return;
626
+ out.push(s);
627
+ if ((s.startsWith('[') || s.startsWith('{')) && s.length < 2000) {
628
+ try {
629
+ walk(JSON.parse(s), depth + 1);
630
+ }
631
+ catch { /* 非 JSON 文本,按普通字符串处理 */ }
632
+ }
633
+ };
634
+ walk(v);
635
+ return [...new Set(out)];
636
+ };
637
+ const st = (r) => scalar(r.union_status_key || r.union_status);
638
+ const tp = (r) => scalar(r.interview_type_key || r.interview_type);
639
+ // 直读表/原始层可能给的是选项 id 或人员 id,先按 field_options 归一,再做「待反馈」与「面试官=我」判断。
640
+ const statusLabel = (r) => {
641
+ const vals = [scalar(r.union_status), scalar(r.union_status_key)];
642
+ const mapped = vals.map((v) => optionMapOf(statusFieldId)[v]).find(Boolean);
643
+ return mapped || vals.find((v) => /待反馈/.test(v)) || st(r);
644
+ };
645
+ const isPendingRow = (r) => {
646
+ const vals = [scalar(r.union_status), scalar(r.union_status_key)];
647
+ if (pendingOptionId && vals.includes(pendingOptionId))
648
+ return true;
649
+ return /待反馈/.test(statusLabel(r));
650
+ };
651
+ const isMineRow = (r) => {
652
+ const tokens = [
653
+ ...tokensOf(r.interviewer),
654
+ ...tokensOf(r.interviewer_name),
655
+ ...tokensOf(r.interviewer_id),
656
+ ];
657
+ if (!tokens.length)
658
+ tokens.push(...tokensOf(r.feedbackUser));
659
+ if (!tokens.length)
660
+ return false;
661
+ return tokens.some((t) => (!!me && t.includes(me)) || (!!myId && t.includes(myId)));
662
+ };
663
+ const iv = (r) => tokensOf(r.interviewer).join(',');
557
664
  const slim = (r) => ({
558
665
  form_data_id: r.form_data_id,
559
666
  candidate_name: r.candidate_name,
@@ -570,14 +677,30 @@ async function runList(env, args, feedbackTodoMode) {
570
677
  // 参与方式按面试方式取值(现场=地点 / 视频=链接 / AI=小程序码),不要统一当"地点"
571
678
  participation: participationOf(r),
572
679
  });
573
- // 服务端已按「待反馈 + 面试官=我」筛过则直接用;兜底路径才做客户端二次筛
574
- const pending = serverFilterApplied ? outRows : outRows.filter((r) => /待反馈/.test(st(r)));
575
- const mineAll = serverFilterApplied ? outRows : (me ? pending.filter((r) => iv(r).includes(me)) : []);
680
+ // 服务端已按「待反馈 + 面试官=我」筛过则直接用;直读表/兜底路径才做客户端二次筛。
681
+ // 🔴 directRows 模式下 baseBody 里的服务端条件根本没发出去,不能把 serverFilterApplied 当已生效。
682
+ const effectiveServerFilter = serverFilterApplied && !directRows;
683
+ const scopeRows = directRows ? directFilteredRows : outRows;
684
+ const pendingAll = effectiveServerFilter ? scopeRows : scopeRows.filter(isPendingRow);
685
+ const mineAllAll = effectiveServerFilter ? scopeRows : ((me || feedbackUser?.id) ? pendingAll.filter(isMineRow) : []);
686
+ const pending = effectiveServerFilter ? outRows : outRows.filter(isPendingRow);
687
+ const mineAll = effectiveServerFilter ? outRows : ((me || feedbackUser?.id) ? pending.filter(isMineRow) : []);
576
688
  const myAi = mineAll.filter((r) => /AI\s*面试/i.test(tp(r)));
689
+ const myAiAll = mineAllAll.filter((r) => /AI\s*面试/i.test(tp(r)));
690
+ // 直读表是本地筛选,total 必须按分页前的完整集回填;否则会把「当前页 N 条」误报成待办总数。
691
+ if (directRows) {
692
+ total = directTruncated ? null : mineAllAll.length;
693
+ totalExact = !directTruncated;
694
+ out.total = total;
695
+ out.totalExact = totalExact;
696
+ out.totalNote = directTruncated
697
+ ? '直读表已达到 1000 行上限,待办可能不完整;请加精确筛选后重查'
698
+ : '直读表模式:total 为「待反馈 + 面试官=当前用户」本地筛选后的条数';
699
+ }
577
700
  const notes = [];
578
- if (!me)
701
+ if (!me && !feedbackUser?.id)
579
702
  notes.push('未能解析当前登录用户,无法按面试官过滤(结果为空)');
580
- if (serverFilterApplied) {
703
+ if (effectiveServerFilter) {
581
704
  notes.push('服务端已按「待反馈 + 当前登录人为面试官」筛选(commonSearchFields + in),total 为该条件下的精确条数');
582
705
  if (out.total !== null && outRows.length < out.total) {
583
706
  notes.push('⚠️ 仅取回 ' + outRows.length + '/' + out.total
@@ -588,22 +711,28 @@ async function runList(env, args, feedbackTodoMode) {
588
711
  // 🔴 必须点明实际扫描的列表:「我的面试」是分母已收敛的相关列表,且口径比台账窄,
589
712
  // 回退到「面试管理」时才是全量台账,两者的 total 含义完全不同,不能混报。
590
713
  notes.push('数据源列表「' + menuName + '」(total=' + (out.total === null ? '不可知' : out.total)
591
- + ',已扫描 ' + outRows.length + ' 条);「我的面试」为与我相关范围,仍需按面试官二次筛');
592
- if (out.total !== null && outRows.length < out.total) {
714
+ + ',已扫描 ' + scopeRows.length + ' 条);「我的面试」为与我相关范围,仍需按面试官二次筛');
715
+ if (!directRows && out.total !== null && outRows.length < out.total) {
593
716
  notes.push('⚠️ 未覆盖全部:已扫描 ' + outRows.length + '/' + out.total
594
717
  + ' 条(列表默认顺序),排在后面的待办会漏且不报错;请加大 maxPages 或 pageSize 后重查');
595
718
  }
719
+ if (directRows && directTruncated) {
720
+ notes.push('⚠️ 直读表已达 1000 行上限,排在后面的待办可能漏取');
721
+ }
722
+ if (directRows && (mineAllAll.length > mineAll.length || myAiAll.length > myAi.length)) {
723
+ notes.push('直读表 current/pageSize 只返回当前页 ' + outRows.length + ' 条明细;count 按直读完整集统计,可用 all=true 取回全部');
724
+ }
596
725
  }
597
- out.serverFiltered = serverFilterApplied;
726
+ out.serverFiltered = effectiveServerFilter;
598
727
  out.currentUserId = feedbackUser?.id || null;
599
728
  out.feedbackTodo = {
600
729
  currentUser: me || null,
601
- scanned: outRows.length,
730
+ scanned: scopeRows.length,
602
731
  total: out.total,
603
732
  totalExact: out.totalExact,
604
- myAiPendingFeedback: { count: myAi.length, rows: myAi.map(slim) },
733
+ myAiPendingFeedback: { count: myAiAll.length, rows: myAi.map(slim) },
605
734
  myOtherPendingFeedback: {
606
- count: mineAll.length - myAi.length,
735
+ count: mineAllAll.length - myAiAll.length,
607
736
  rows: mineAll.filter((r) => !/AI\s*面试/i.test(tp(r))).map(slim),
608
737
  },
609
738
  ...(notes.length ? { note: notes.join(';') } : {}),