weaver-work-cli 0.1.80 → 0.1.81

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 (186) hide show
  1. package/README.md +3 -1
  2. package/dist/chunks/{archive-ENBSUMHV.js → archive-KVV4SM7J.js} +3 -3
  3. package/dist/chunks/{archive-oa-7BFPQ6M5.js → archive-oa-VRSPNLY4.js} +3 -3
  4. package/dist/chunks/{asset-V5SUD3PW.js → asset-JZ5MN6OL.js} +306 -10
  5. package/dist/chunks/{asset-idle-3CEL7WFX.js → asset-idle-B4SAL43V.js} +3 -3
  6. package/dist/chunks/{attachment-content-SHXZUE3N.js → attachment-content-7W4XQTA7.js} +3 -3
  7. package/dist/chunks/{blog-FLI4SS3P.js → blog-XCBM467O.js} +3 -3
  8. package/dist/chunks/{caizhilian-7WCTKCCP.js → caizhilian-NZVUKCZD.js} +5 -5
  9. package/dist/chunks/{calendar-G726HUUH.js → calendar-OVM2SGYJ.js} +3 -3
  10. package/dist/chunks/{chunk-XNN5PZTI.js → chunk-3WZMDOI3.js} +1 -1
  11. package/dist/chunks/{chunk-TM2G7DNT.js → chunk-56F2GGE4.js} +5 -5
  12. package/dist/chunks/{chunk-LCM5SSGJ.js → chunk-5MM2IZ27.js} +423 -36
  13. package/dist/chunks/{chunk-BWFCTE43.js → chunk-5NQZO3CO.js} +48 -5
  14. package/dist/chunks/{chunk-KVCDZ2FX.js → chunk-5RIK6OLF.js} +7 -7
  15. package/dist/chunks/{chunk-5E2FDXBU.js → chunk-64RYQOXA.js} +1 -1
  16. package/dist/chunks/{chunk-44ZWNC7A.js → chunk-7BP3HU74.js} +2 -2
  17. package/dist/chunks/{chunk-3Q5F4C5B.js → chunk-AW3HQUOC.js} +5 -5
  18. package/dist/chunks/{chunk-7M5OYRK2.js → chunk-BD3M2YVN.js} +3 -3
  19. package/dist/chunks/{chunk-JEQHNNSS.js → chunk-BFVUBCYO.js} +14 -0
  20. package/dist/chunks/{chunk-PAWXVT6H.js → chunk-CLVEXDEJ.js} +4 -5
  21. package/dist/chunks/{chunk-TBCKK6LH.js → chunk-DWCMKEMO.js} +2 -2
  22. package/dist/chunks/{chunk-AVDEZLEB.js → chunk-E3XUYWYA.js} +4 -4
  23. package/dist/chunks/{chunk-3IX6L74V.js → chunk-FIPTUAOW.js} +2 -2
  24. package/dist/chunks/{chunk-4MAQALTM.js → chunk-GQEIHXY5.js} +6 -6
  25. package/dist/chunks/{chunk-TD5IOEGN.js → chunk-JUPKXW4P.js} +1 -1
  26. package/dist/chunks/{chunk-HYNOKFYJ.js → chunk-KZ3JR3GE.js} +3 -3
  27. package/dist/chunks/{chunk-4PBN7NJY.js → chunk-L2PKMZIU.js} +1 -1
  28. package/dist/chunks/{chunk-DACQKJ6O.js → chunk-LXWWOHM6.js} +4 -4
  29. package/dist/chunks/{chunk-7DE3VMZD.js → chunk-LYFPWZBD.js} +6 -1
  30. package/dist/chunks/{chunk-2UV4IZIT.js → chunk-MTIV6JEN.js} +2 -2
  31. package/dist/chunks/{chunk-WXV5FIKA.js → chunk-MWFKLXVU.js} +38 -38
  32. package/dist/chunks/{chunk-PMRNIGKZ.js → chunk-RVVRTW4P.js} +2 -2
  33. package/dist/chunks/{chunk-FPWCCRKT.js → chunk-UASZW22U.js} +3 -3
  34. package/dist/chunks/{chunk-RVEKGVZU.js → chunk-VMUVVTT4.js} +2 -2
  35. package/dist/chunks/{chunk-JQPKSQAK.js → chunk-W4BGNYKR.js} +1 -1
  36. package/dist/chunks/{chunk-OVTCWLNQ.js → chunk-W4R3SXJV.js} +15 -7
  37. package/dist/chunks/{chunk-UDBQJLQF.js → chunk-WF5G5SV3.js} +2 -2
  38. package/dist/chunks/{chunk-EGHRA2E3.js → chunk-WM5ZE67G.js} +1 -1
  39. package/dist/chunks/{chunk-QVKRNL7L.js → chunk-WQ4ZHAEZ.js} +10 -2
  40. package/dist/chunks/{chunk-JFZM3ZRU.js → chunk-X7OZKI6F.js} +12 -12
  41. package/dist/chunks/{chunk-YKTVK6XM.js → chunk-Y6HRTEDD.js} +1 -1
  42. package/dist/chunks/{chunk-2KW7AI6P.js → chunk-YFDKTTYX.js} +8 -5
  43. package/dist/chunks/{chunk-HKW5FYZR.js → chunk-YLPGCOAM.js} +76 -69
  44. package/dist/chunks/{chunk-LQLIXBJF.js → chunk-YXIPZFMX.js} +1 -1
  45. package/dist/chunks/{cli-JDTWQDDR.js → cli-VCQIDBDQ.js} +37 -37
  46. package/dist/chunks/{commands-J52MJ6NF.js → commands-THGXVOEL.js} +9 -5
  47. package/dist/chunks/{conflict-O4FXUTIX.js → conflict-T7URCNS6.js} +2 -2
  48. package/dist/chunks/{contract-GW7US3UF.js → contract-ZLGLQ45G.js} +3 -3
  49. package/dist/chunks/{cowork-GZDODGKF.js → cowork-2MBNOUYS.js} +21 -8
  50. package/dist/chunks/{create-flow-YIFMKM2C.js → create-flow-OFZC36MV.js} +6 -6
  51. package/dist/chunks/{data-HTQZRPPI.js → data-6O7ANJVT.js} +3 -3
  52. package/dist/chunks/{ebuilder-form-GHNIZ7ET.js → ebuilder-form-OJ3KJVQI.js} +4 -4
  53. package/dist/chunks/{ehr-7TGZTZR3.js → ehr-NWMI5Q7S.js} +4 -4
  54. package/dist/chunks/{employee-QX57HEWS.js → employee-O2EPUYIH.js} +2 -2
  55. package/dist/chunks/{entry-mode-X3KKRN36.js → entry-mode-TVACGU7K.js} +3 -3
  56. package/dist/chunks/{env-MCVDVISU.js → env-EWG4ZAWP.js} +2 -2
  57. package/dist/chunks/{esb-ATRKVHCD.js → esb-56FV2PIA.js} +5 -5
  58. package/dist/chunks/{factory-ALB7DMVY.js → factory-GQSEJRDY.js} +1 -1
  59. package/dist/chunks/{fna-IKYI3SST.js → fna-YLA3RKRW.js} +3 -3
  60. package/dist/chunks/{group-chat-GGPL2EBF.js → group-chat-5R6L3LCG.js} +3 -3
  61. package/dist/chunks/{host-UY4LQPN4.js → host-42MLO4KX.js} +4 -4
  62. package/dist/chunks/{host-XXGDQM7D.js → host-J72VEDW5.js} +4 -4
  63. package/dist/chunks/{host-EJSJSLVK.js → host-QKCRQS2C.js} +4 -4
  64. package/dist/chunks/{host-EYNLB6S4.js → host-W3BVEATN.js} +4 -4
  65. package/dist/chunks/{host-OT4KNR3G.js → host-YJINI5GG.js} +4 -4
  66. package/dist/chunks/{host-6UOXYOOY.js → host-ZVGBZOHY.js} +4 -4
  67. package/dist/chunks/{hrm-5JQ7QZ6A.js → hrm-3JFZNB42.js} +66 -26
  68. package/dist/chunks/{im-2YJW3EI5.js → im-HKIRPCGD.js} +5 -5
  69. package/dist/chunks/{invoice-36BCXKOX.js → invoice-4PREIOTG.js} +80 -17
  70. package/dist/chunks/{jiuchuanhui-KBWUZ7WT.js → jiuchuanhui-K3PLNENZ.js} +3 -3
  71. package/dist/chunks/{lazy-dispatch-ZDKLS5MR.js → lazy-dispatch-MKGEWZNM.js} +8 -8
  72. package/dist/chunks/{mail-YBKUM6HM.js → mail-6QPVWKXM.js} +3 -3
  73. package/dist/chunks/{meeting-MU3RHAEX.js → meeting-QPPEPBSN.js} +15 -15
  74. package/dist/chunks/{minute-doc-NHIEZEHU.js → minute-doc-JMIDZK5D.js} +1 -1
  75. package/dist/chunks/{okr-HW7IULIR.js → okr-67C5LQYD.js} +3 -3
  76. package/dist/chunks/{operations-4P2UYVLH.js → operations-YLKRNAPI.js} +5 -5
  77. package/dist/chunks/{org-MWWIFNAO.js → org-L5XDM2RQ.js} +2 -2
  78. package/dist/chunks/{performance-PM2G6L3E.js → performance-33QZZR4I.js} +3 -3
  79. package/dist/chunks/{plan-3YYGZ7ZM.js → plan-W4BPONRL.js} +3 -3
  80. package/dist/chunks/{project-6PRGBLO2.js → project-OKSEH6AF.js} +3 -3
  81. package/dist/chunks/{reception-7G3J2MA6.js → reception-H5M7SPHT.js} +3 -3
  82. package/dist/chunks/{recruit-stage-5KK7R37U.js → recruit-stage-O2JGNVMO.js} +12 -8
  83. package/dist/chunks/{registry-4S3RXXWS.js → registry-45VEUYTC.js} +4 -4
  84. package/dist/chunks/{registry-3VTB3KLV.js → registry-BMTQ55G5.js} +5 -5
  85. package/dist/chunks/{registry-KQ4TNUWO.js → registry-PYONXFUF.js} +3 -3
  86. package/dist/chunks/{registry-HWUNNXDU.js → registry-SAMJ4VH2.js} +14 -14
  87. package/dist/chunks/{registry-AC33ZZVH.js → registry-YY62OFKQ.js} +1 -1
  88. package/dist/chunks/{room-recommend-V4BSHR2M.js → room-recommend-NRLAZJCI.js} +4 -4
  89. package/dist/chunks/{schedule-T7W357TN.js → schedule-LNBOCBP5.js} +4 -4
  90. package/dist/chunks/{smart-extract-T5Z4AULN.js → smart-extract-JOTX6UZC.js} +3 -3
  91. package/dist/chunks/{update-77ZUIYSG.js → update-BERR64TI.js} +3 -3
  92. package/dist/chunks/{workflow-SYCBS5XD.js → workflow-ZDQY3TI7.js} +5 -5
  93. package/dist/core/runtime-agent.js +19 -3
  94. package/dist/index.js +4 -4
  95. package/dist/internal/e10/auth/agent-host-key.js +10 -1
  96. package/dist/internal/e10/auth/commands.js +20 -4
  97. package/dist/internal/e10/auth/xiaoe.js +15 -3
  98. package/dist/shortcuts/asset/host.js +39 -1
  99. package/dist/shortcuts/asset/index.js +16 -2
  100. package/dist/shortcuts/asset/manifest.js +115 -1
  101. package/dist/shortcuts/asset/operations/audit-report.js +144 -0
  102. package/dist/shortcuts/asset/operations/registry.js +4 -0
  103. package/dist/shortcuts/asset/operations/write.js +7 -1
  104. package/dist/shortcuts/cowork/operations/read.js +13 -6
  105. package/dist/shortcuts/cowork/operations/shared.js +15 -0
  106. package/dist/shortcuts/hrm/host.js +51 -4
  107. package/dist/shortcuts/hrm/index.js +45 -26
  108. package/dist/shortcuts/hrm/manifest.js +17 -0
  109. package/dist/shortcuts/hrm/operations/employee.js +3 -7
  110. package/dist/shortcuts/hrm/operations/org.js +2 -4
  111. package/dist/shortcuts/hrm/operations/position.js +2 -4
  112. package/dist/shortcuts/hrm/operations/shared.js +21 -0
  113. package/dist/shortcuts/hrm/operations.js +34 -0
  114. package/dist/shortcuts/im/constants.js +163 -0
  115. package/dist/shortcuts/im/host.js +12 -5
  116. package/dist/shortcuts/im/operations/at-mention.js +4 -2
  117. package/dist/shortcuts/im/operations/file-user.js +3 -1
  118. package/dist/shortcuts/im/operations/msg-sync.js +219 -2
  119. package/dist/shortcuts/im/operations/msg-write.js +70 -30
  120. package/dist/shortcuts/invoice/invoice-record.js +4 -0
  121. package/dist/shortcuts/invoice/manifest.js +1 -1
  122. package/dist/shortcuts/invoice/operations/reim-auto.js +10 -7
  123. package/dist/shortcuts/invoice/read-enrichment.js +74 -7
  124. package/dist/shortcuts/meeting/operations/eb/create-flow.js +1 -1
  125. package/dist/shortcuts/meeting/operations/rooms.js +7 -0
  126. package/dist/shortcuts/recruit-stage/operations/list.js +3 -2
  127. package/dist/shortcuts/recruit-stage/operations/profile.js +3 -2
  128. package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
  129. package/dist/shortcuts/recruit-stage/operations/shortlist.js +3 -2
  130. package/dist/shortcuts/recruit-stage/operations/tag.js +5 -0
  131. package/dist/shortcuts/workflow/operations/form.js +2 -1
  132. package/docs/agent-invoice.md +1 -1
  133. package/docs/e10-auth.md +14 -1
  134. package/docs/hrm.md +5 -1
  135. package/docs/invoice.md +1 -1
  136. package/docs/ziguanjia.md +5 -1
  137. package/package.json +1 -1
  138. package/skill-template/business-info.json +6 -1
  139. package/skill-template/domains/hrm.md +1 -1
  140. package/skill-template/domains/yepiaotong.md +1 -1
  141. package/skill-template/domains/ziguanjia.md +7 -2
  142. package/skills/weaver-e10-cowork/SKILL.md +13 -1
  143. package/skills/weaver-e10-hrm/SKILL.md +16 -2
  144. package/skills/weaver-e10-hrm/references/org.md +1 -1
  145. package/skills/weaver-e10-meeting/SKILL.md +1 -1
  146. package/skills/weaver-e10-recruit-stage/SKILL.md +24 -15
  147. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +14 -7
  148. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +12 -1
  149. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +18 -1
  150. package/skills/weaver-e10-recruit-stage/lib/resume-import-once.mjs +308 -0
  151. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +9 -4
  152. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +54 -15
  153. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +456 -93
  154. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +2 -2
  155. package/skills/weaver-e10-shared/SKILL.md +1 -1
  156. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +1 -1
  157. package/skills/weaver-e10-shared-report.html +874 -0
  158. package/skills/weaver-e10-workflow/SKILL.md +4 -4
  159. package/skills/weaver-e10-workflow/aiDeepRead/config.json +138 -142
  160. package/skills/weaver-e10-workflow/references/workflow-deep-read.md +7 -7
  161. package/skills/weaver-e10-yepiaotong/SKILL.md +2 -2
  162. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +1 -1
  163. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +1 -1
  164. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +5 -3
  165. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +1 -1
  166. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -1
  167. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -32
  168. package/skills/weaver-e10-yepiaotong.zip +0 -0
  169. package/skills/weaver-e10-yimiaoban/SKILL.md +12 -9
  170. package/skills/weaver-e10-yimiaoban/references/constants.md +291 -0
  171. package/skills/weaver-e10-yimiaoban/references/ding-write.md +1 -0
  172. package/skills/weaver-e10-yimiaoban/references/group-read.md +1 -0
  173. package/skills/weaver-e10-yimiaoban/references/group-write.md +1 -0
  174. package/skills/weaver-e10-yimiaoban/references/msg-read.md +10 -1
  175. package/skills/weaver-e10-yimiaoban/references/msg-write.md +3 -1
  176. package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +1 -0
  177. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +175 -36
  178. package/skills/weaver-e10-ziguanjia/SKILL.md +26 -6
  179. package/skills/weaver-e10-ziguanjia/references/source-manifest.json +1373 -96
  180. package/skills/weaver-e10-ziguanjia/references/ziguanjia-audit.md +63 -0
  181. package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +5 -1
  182. package/skills/weaver-e10-ziguanjia/references/ziguanjia-idle.md +52 -0
  183. package/skills/weaver-e10-ziguanjia/references/ziguanjia-report.md +59 -0
  184. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  185. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  186. package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
@@ -0,0 +1,308 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * resume-import-once.mjs — 单份简历建档 one-shot
4
+ *
5
+ * 目标:把「写参数 / prepare / 读查重 / apply」收敛成一次终端调用,减少 Agent 往返。
6
+ * 边界:
7
+ * - 只处理单份简历;≥2 份仍走 resume.import.batch。
8
+ * - 不复制 CLI/helper 状态逻辑:内部仍调用 recruit-write-helper.mjs 的 prepare/apply。
9
+ * - 新建:duplicate.checked=true && unique=true 才 apply;重复/未查重一律不写,回 needsDecision。
10
+ * - 更新:prepare 进入 prepare-update 模式(显式带 updateTalentId)才 apply;不复用旧的“新建” continuation。
11
+ *
12
+ * 用法:
13
+ * node lib/resume-import-once.mjs --resume "<简历绝对路径>" [--channel "简历附件导入"] [--prepare-only]
14
+ * node lib/resume-import-once.mjs --fileid "<E10 fileId>" [--update-talent-id "<talentId>"]
15
+ * node lib/resume-import-once.mjs --resume "<简历路径>" --update-talent-id "<talentId>"
16
+ *
17
+ * 可选:--use-ocr auto|true|false(默认 auto:旧代报 structured/useOcr 缺失时自动 retry 带 useOcr=true)
18
+ * 输出:只输出一段紧凑 JSON,供 Agent 读取;不把整段 prepare/apply 回包刷屏。
19
+ */
20
+ import { spawnSync } from "node:child_process";
21
+ import { existsSync } from "node:fs";
22
+ import path from "node:path";
23
+ import { fileURLToPath } from "node:url";
24
+
25
+ const HERE = path.dirname(fileURLToPath(import.meta.url));
26
+ const HELPER = process.env.RESUME_IMPORT_ONCE_HELPER || path.join(HERE, "recruit-write-helper.mjs");
27
+ const OPERATION = "recruit-stage.resume.import";
28
+ const DEFAULT_CHANNEL = "简历附件导入";
29
+
30
+ function usage() {
31
+ return [
32
+ "用法:",
33
+ ' node lib/resume-import-once.mjs --resume "<简历绝对路径>" [--channel "简历附件导入"] [--prepare-only]',
34
+ ' node lib/resume-import-once.mjs --fileid "<E10 fileId>" [--update-talent-id "<talentId>" --confirm-update]',
35
+ "",
36
+ "说明:",
37
+ " - 单份简历专用;≥2 份请走 resume.import.batch。",
38
+ " - 新建:查重 checked=true 且 unique=true 才 apply;重复/未查重会返回 needsDecision,不写库。",
39
+ " - 更新:显式传 --update-talent-id,默认只 prepare 出差异摘要;用户确认后加 --confirm-update 才 apply。",
40
+ " - --use-ocr auto|true|false(默认 auto;旧代自动补 useOcr=true)。",
41
+ " - 新建:duplicate.checked=true && unique=true 自动 apply(技能纪律允许);更新:必须 --confirm-update。",
42
+ ].join("\n");
43
+ }
44
+
45
+ function takeValue(argv, i, name) {
46
+ const v = argv[i + 1];
47
+ if (v == null || v.startsWith("--")) throw new Error(`${name} 缺少值`);
48
+ return v;
49
+ }
50
+
51
+ function parseArgs(argv) {
52
+ const out = { channel: DEFAULT_CHANNEL, useOcr: "auto", prepareOnly: false, confirmUpdate: false, help: false };
53
+ for (let i = 0; i < argv.length; i++) {
54
+ const a = argv[i];
55
+ const eq = a.indexOf("=");
56
+ const key = eq > 0 ? a.slice(0, eq) : a;
57
+ const inline = eq > 0 ? a.slice(eq + 1) : null;
58
+ if (key === "--help" || key === "-h") out.help = true;
59
+ else if (key === "--resume" || key === "--file") out.resumeFile = inline != null ? inline : takeValue(argv, i++, key);
60
+ else if (key === "--fileid" || key === "--file-id") out.fileId = inline != null ? inline : takeValue(argv, i++, key);
61
+ else if (key === "--update-talent-id") out.updateTalentId = inline != null ? inline : takeValue(argv, i++, key);
62
+ else if (key === "--channel") out.channel = inline != null ? inline : takeValue(argv, i++, key);
63
+ else if (key === "--photo") out.photoFile = inline != null ? inline : takeValue(argv, i++, key);
64
+ else if (key === "--use-ocr") {
65
+ const v = argv[i + 1];
66
+ if (v == null || v.startsWith("--")) out.useOcr = "true";
67
+ else if (/^(auto|true|false)$/i.test(v)) { out.useOcr = v.toLowerCase(); i++; }
68
+ else out.useOcr = "true";
69
+ } else if (key === "--prepare-only") out.prepareOnly = true;
70
+ else if (key === "--confirm-update") out.confirmUpdate = true;
71
+ else throw new Error(`未知参数:${a}`);
72
+ }
73
+ return out;
74
+ }
75
+
76
+ function fail(message, phase = "input", extra = {}) {
77
+ console.log(JSON.stringify({ ok: false, phase, error: { type: "validation", message: String(message || "") }, ...extra }));
78
+ process.exit(1);
79
+ }
80
+
81
+ function runHelper(args) {
82
+ const run = spawnSync(process.execPath, [HELPER, ...args], {
83
+ encoding: "utf8",
84
+ windowsHide: true,
85
+ maxBuffer: 16 * 1024 * 1024,
86
+ });
87
+ const stdout = String(run.stdout || "").replace(/^\uFEFF/, "").trim();
88
+ let json = null;
89
+ const start = stdout.indexOf("{");
90
+ if (start >= 0) {
91
+ try { json = JSON.parse(stdout.slice(start)); } catch { /* 下面统一报错 */ }
92
+ }
93
+ return {
94
+ status: run.status,
95
+ json,
96
+ stdout,
97
+ stderr: String(run.stderr || "").trim(),
98
+ spawnError: run.error ? String(run.error.message || run.error) : "",
99
+ };
100
+ }
101
+
102
+ function helperError(res, phase) {
103
+ if (res.json?.error) return res.json.error;
104
+ return {
105
+ type: "runtime",
106
+ message: res.spawnError || res.stderr || res.stdout || "helper 无 JSON 输出",
107
+ };
108
+ }
109
+
110
+ function isLegacyOcrError(res) {
111
+ const msg = String(res.json?.error?.message || "");
112
+ return /structured|useOcr|旧代|旧版本/i.test(msg);
113
+ }
114
+
115
+ function buildPrepareArgs(opts, forceOcr) {
116
+ const args = ["prepare", OPERATION];
117
+ if (opts.resumeFile) args.push("--resume", opts.resumeFile);
118
+ else args.push("--fileid", opts.fileId);
119
+ args.push("--set", `channel=${opts.channel || DEFAULT_CHANNEL}`);
120
+ if (opts.updateTalentId) args.push("--set", `updateTalentId=${opts.updateTalentId}`);
121
+ if (opts.photoFile) args.push("--set", `photoFile=${opts.photoFile}`);
122
+ if (forceOcr || opts.useOcr === "true") args.push("--set", "useOcr=true");
123
+ return args;
124
+ }
125
+
126
+ function compactDuplicate(d) {
127
+ if (!d || typeof d !== "object") return null;
128
+ const byPhone = d.byPhone || d.bound || null;
129
+ return {
130
+ checked: d.checked === true,
131
+ unique: d.unique === true,
132
+ note: d.note,
133
+ byPhone,
134
+ applicable: d.applicable,
135
+ phoneChecked: d.phoneChecked,
136
+ uniqueChecked: d.uniqueChecked,
137
+ formConflicts: d.formConflicts,
138
+ unreadableIds: d.unreadableIds,
139
+ checkErrors: d.checkErrors,
140
+ retryHint: d.retryHint,
141
+ };
142
+ }
143
+
144
+ function compactParsed(data) {
145
+ return data?.parsed || null;
146
+ }
147
+
148
+ function compactPrepare(data) {
149
+ return {
150
+ mode: data?.mode,
151
+ parsed: compactParsed(data),
152
+ duplicate: compactDuplicate(data?.duplicate),
153
+ resumeFileId: data?.resumeFileId,
154
+ warnings: data?.warnings,
155
+ missingFields: data?.missingFields,
156
+ channel: data?.channel,
157
+ channelWarning: data?.channelWarning,
158
+ changesCount: Array.isArray(data?.changes) ? data.changes.length : undefined,
159
+ changed: Array.isArray(data?.changes) ? data.changes.slice(0, 8) : undefined,
160
+ unchangedCount: Array.isArray(data?.unchanged) ? data.unchanged.length : undefined,
161
+ details: data?.details,
162
+ keptTables: data?.keptTables,
163
+ protectedSkipped: data?.protectedSkipped,
164
+ note: data?.note,
165
+ };
166
+ }
167
+
168
+ function compactApply(result) {
169
+ return {
170
+ applied: true,
171
+ success: result?.result === "success",
172
+ result: result?.result,
173
+ talentId: result?.talentId || result?.newCandidateFormDataId,
174
+ mode: result?.mode,
175
+ detailsState: result?.detailsState,
176
+ writeChannel: result?.writeChannel,
177
+ writeWarnings: result?.writeWarnings,
178
+ verification: result?.verification,
179
+ attachmentVerify: result?.attachmentVerify,
180
+ tagsApplied: result?.tagsApplied,
181
+ tagsSkipped: result?.tagsSkipped,
182
+ initTalentBatch: result?.initTalentBatch,
183
+ labelMatch: result?.labelMatch,
184
+ avatar: result?.avatar,
185
+ warnings: result?.warnings,
186
+ };
187
+ }
188
+
189
+ function main() {
190
+ let opts;
191
+ try { opts = parseArgs(process.argv.slice(2)); } catch (e) { return fail(e.message); }
192
+ if (opts.help) { console.log(JSON.stringify({ ok: true, usage: usage() })); return; }
193
+ if (!existsSync(HELPER)) return fail(`helper 不存在:${HELPER}`, "input");
194
+ if (!!opts.resumeFile === !!opts.fileId) return fail("--resume 与 --fileid 必须二选一,且不能都为空", "input");
195
+ if (opts.resumeFile) {
196
+ opts.resumeFile = path.resolve(opts.resumeFile);
197
+ if (!existsSync(opts.resumeFile)) return fail(`简历原件不存在:${opts.resumeFile}`, "input");
198
+ }
199
+ if (opts.photoFile) {
200
+ opts.photoFile = path.resolve(opts.photoFile);
201
+ if (!existsSync(opts.photoFile)) return fail(`头像文件不存在:${opts.photoFile}`, "input");
202
+ }
203
+
204
+ let helperRun = runHelper(buildPrepareArgs(opts, false));
205
+ let usedOcr = opts.useOcr === "true";
206
+ if (!helperRun.json?.ok && opts.useOcr === "auto" && isLegacyOcrError(helperRun)) {
207
+ usedOcr = true;
208
+ helperRun = runHelper(buildPrepareArgs(opts, true));
209
+ }
210
+ if (!helperRun.json?.ok) {
211
+ console.log(JSON.stringify({
212
+ ok: false,
213
+ phase: "prepare",
214
+ applied: false,
215
+ usedOcr,
216
+ error: helperError(helperRun, "prepare"),
217
+ }));
218
+ process.exit(1);
219
+ }
220
+
221
+ const data = helperRun.json.data || {};
222
+ const prepare = compactPrepare(data);
223
+ const isUpdate = data.mode === "prepare-update" || !!opts.updateTalentId;
224
+ const duplicate = prepare.duplicate;
225
+
226
+ if (opts.prepareOnly) {
227
+ console.log(JSON.stringify({
228
+ ok: true,
229
+ applied: false,
230
+ prepareOnly: true,
231
+ usedOcr,
232
+ isUpdate,
233
+ prepare,
234
+ }));
235
+ return;
236
+ }
237
+
238
+ if (isUpdate && !opts.confirmUpdate) {
239
+ console.log(JSON.stringify({
240
+ ok: true,
241
+ applied: false,
242
+ needsDecision: true,
243
+ reason: "update_confirmation",
244
+ usedOcr,
245
+ isUpdate,
246
+ prepare,
247
+ }));
248
+ return;
249
+ }
250
+
251
+ if (!isUpdate) {
252
+ if (!duplicate || duplicate.checked !== true) {
253
+ console.log(JSON.stringify({
254
+ ok: true,
255
+ applied: false,
256
+ needsDecision: true,
257
+ reason: "duplicate_unchecked",
258
+ usedOcr,
259
+ prepare,
260
+ }));
261
+ return;
262
+ }
263
+ if (duplicate.unique !== true) {
264
+ console.log(JSON.stringify({
265
+ ok: true,
266
+ applied: false,
267
+ needsDecision: true,
268
+ reason: "duplicate",
269
+ usedOcr,
270
+ prepare,
271
+ }));
272
+ return;
273
+ }
274
+ }
275
+
276
+ const applyRun = runHelper(["apply", OPERATION]);
277
+ if (!applyRun.json?.ok) {
278
+ console.log(JSON.stringify({
279
+ ok: false,
280
+ phase: "apply",
281
+ applied: false,
282
+ usedOcr,
283
+ isUpdate,
284
+ prepare,
285
+ error: helperError(applyRun, "apply"),
286
+ }));
287
+ process.exit(1);
288
+ }
289
+
290
+ const apply = compactApply(applyRun.json);
291
+ console.log(JSON.stringify({
292
+ ok: true,
293
+ applied: true,
294
+ success: apply.success,
295
+ usedOcr,
296
+ isUpdate,
297
+ prepare,
298
+ apply,
299
+ }));
300
+ }
301
+
302
+ try {
303
+ main();
304
+ } catch (e) {
305
+ fail(e?.message || e);
306
+ }
307
+
308
+
@@ -1,6 +1,6 @@
1
1
  # 图文报告模板契约(面试汇总 / 人岗匹配)
2
2
 
3
- > 两个模板都在 `templates/` 下,纯前端 HTML,Agent 只需「注入数据 → 落盘 → `present_files` 登记交付」。
3
+ > 三个模板都在 `templates/` 下,纯前端 HTML,Agent 只需「注入数据 → 落盘 → `present_files` 登记交付」。
4
4
  > 模板不含任何租户常量(baseUrl / objId / 路由全部由数据注入)。
5
5
  >
6
6
  > 🔴 **交付形态(两端统一,2026-11-29 二次定稿)**:
@@ -12,7 +12,7 @@
12
12
  >
13
13
  > 🔴 **附件回包**:`report-attachment.mjs --file` stdout 回 `{"ok":true,"reportFile":"<绝对路径>","bytes":N}`。直接拿 `reportFile` 发 `present_files`,平台自动右侧预览。
14
14
 
15
- > 🔴 **模板按 1000 定宽设计,不使用视口媒体查询断点(2026-11-29 修正)**:小E 面板实际 CSS 内宽会被边框/滚动条/DPI 吃掉,略小于 `width:1000` 就会提前触发 `@media`,导致统计卡 3+1、面试官/状态掉行、证据页左右两列叠成一列。三个报告模板已删除 `max-width: 640/720/900` 断点;无论面板内宽 1000/900/800/720,统计卡都保持 4 列一行、面试官与状态同一行、候选人证据与人岗匹配保持左右两列,宁可整页横向收窄,也不自动改版式。
15
+ > 🔴 **模板宽度口径(2026-12-01 修正)**:`interview-summary.html` 与 `match-report.html` 仍按 1000 定宽设计、不使用视口媒体查询断点(避免统计卡 3+1、面试官/状态掉行、匹配六维左右两列叠成一列);`candidate-evidence.html` 因小E右栏窄屏改为自适应(默认 760,620 下半档:隐藏速览提示、缺口列收窄到 150px),不再套用 1000 定宽。
16
16
 
17
17
  ## 1. `templates/interview-summary.html` — 面试安排汇总(任务3-A)
18
18
 
@@ -62,7 +62,9 @@
62
62
 
63
63
  **注入 `EVIDENCE_DATA`**:`position / baseUrl / generatedAt / keyword / total / shown / candidates[{talentId, cardUrl, name, degree, college, pos, industry, works[{co,pos,range,desc}], projs[{name,range,desc}], level, evidence, risk, verdict}]`。
64
64
 
65
- **边界**:`evidence` 是一句话证据文本(蓝色框),`risk` 是风险提示(黄色框),`verdict` 进右上角档位徽章;works/projs 缺失显示「档案未提供」,不补造。与 `match-report` 契约不同(无 scores/overall/六维证据对象),不要混用。
65
+ **渲染口径(2026-12-01 A4 版)**:顶部「本批速览」= 结论计数 + 每人结论色块 / 岗位要求覆盖条 / `N/M` 命中数 / 缺口;候选人卡 = 结论行 + 命中能力 chips(只列命中,未命中收成一行)+ 相关经历(works/projs 混排,按命中词数排序取前 3,其余「弱相关经历已折叠」,每条挂命中词)+ 风险条;工作经历不再整段铺开。`verdict` 只在卡头徽标,不再放右上角档位徽章。
66
+
67
+ **统计口径**:`total` 是检索命中条数,`shown` 是本次抽样人数,页面必须显示「其余 N 条未核验」;不要写成「命中 N 条、展示 X 人」暗示全量筛过。能力词表按 `position + keyword` 匹配内置岗位族;数据里可选 `skills[]` 覆盖;少于 3 项时退化为纯结论列表。命中统计会跳过「无 / 未 / 缺乏 / 偏少…」等否定语境;`evidence` 只作结论行与覆盖统计的语义来源,事实仍以 works/projs 为准。`risk` 单独风险条;works/projs 缺失显示「档案未提供」,不补造。与 `match-report` 契约不同(无 scores/overall/六维证据对象),不要混用。
66
68
 
67
69
  ## 3. 自测记录(2026-11-28,Edge headless 真渲染)
68
70
 
@@ -77,8 +79,11 @@
77
79
  | 7 | 匹配报告 · 去掉 ECharts CDN | 通过:纯 CSS 横条,评分/证据正常、内网秒开 |
78
80
  | 8 | 匹配报告 · basic 当前职位/公司为空 | 通过:退到 latestWork 正常显示 |
79
81
  | 9 | 匹配报告 · 5 人(殷子强/张旭妍/刘谷雨/张连凤/唐行钊) | 通过:排名 71>66>60>35>26,六维横条/证据/档位正常 |
82
+ | 10 | 检索证据 · Java 5 人 A4(760/620/弹窗) | 通过:速览/覆盖条/相关经历折叠/词表 8 项/弹窗正常 |
83
+ | 11 | 检索证据 · 投资经理 3 人 | 通过:词表切投资 8 项;否定语境不计命中(0/8 可解释) |
84
+ | 12 | 检索证据 · 产品经理 / 量子架构师(词表不足 3 项) | 通过:退化纯结论列表,不白屏、不报错 |
80
85
 
81
- > 任一模板改动后,按本表 1-8 重跑;**必须真实渲染确认,禁止只看代码不渲染**(具体渲染工具与取证方式属开发维护流程,不在运行时执行)。
86
+ > 任一模板改动后,按本表 1-12 重跑;**必须真实渲染确认,禁止只看代码不渲染**(具体渲染工具与取证方式属开发维护流程,不在运行时执行)。
82
87
 
83
88
 
84
89
 
@@ -269,10 +269,12 @@ POST /api/ebuilder/form/dataset/v2/saveFormData
269
269
  | 🔴 不能单独用 | 走本通道**必须先有简历**(`resumeFile` + `updateTalentId`)。「只补一张头像」只有一种做法:拿**同一份简历原件**带 `photoFile` 复跑 |
270
270
 
271
271
  ```bash
272
- # 给已有人才补头像(必须同时给同一份简历;参数写 UTF-8 文件,走 helper 两步)
273
- node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文件.json>
274
- # 参数文件:{"resumeFile":"<简历原件>","updateTalentId":"<talentId>","photoFile":"<头像图>"}
275
- # 选更新后:node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
272
+ # 给已有人才补头像(必须同时给同一份简历;推荐 one-shot 一次跑完)
273
+ node lib/resume-import-once.mjs --resume "<简历原件>" --update-talent-id "<talentId>" --photo "<头像图>"
274
+ # 用户确认差异摘要后:同参数追加 --confirm-update 才写库
275
+ # (回退 helper 两步:参数文件 {"resumeFile":"<简历原件>","updateTalentId":"<talentId>","photoFile":"<头像图>"}
276
+ # → node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文件.json>
277
+ # → 用户确认后 node lib/recruit-write-helper.mjs apply recruit-stage.resume.import)
276
278
  ```
277
279
  🔴 对用户描述时必须说清:**主表会按这份简历全量覆盖**(人工改过的字段会被刷回简历值),并伴随简历附件替换与明细整表重建;**没有「只改头像、其他一概不动」的纯净通道**。
278
280
  补头像仍走本通道(`photoFile`),实测可成功写入;但 `prepare` 的差异清单**不含 avatar**,不要据此判定「不支持写头像」,以 apply 返回的 `avatar` 为准。
@@ -292,7 +294,15 @@ node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文
292
294
 
293
295
  **流程**:`resume.import.prepare` 只出差异,`resume.import.apply`(`confirm:true` + `continuation`)才写。
294
296
 
295
- 主路径走 helper(参数写 UTF-8 无 BOM JSON 文件,continuation 全程留在 Node 内存):
297
+ 主路径走 one-shot(`--update-talent-id` 只出差异摘要;用户确认后同参数加 `--confirm-update` 才写,见 §12.2):
298
+
299
+ ```bash
300
+ node lib/resume-import-once.mjs --resume "<简历原件>" --update-talent-id "<talentId>"
301
+ # 用户确认差异后:
302
+ node lib/resume-import-once.mjs --resume "<简历原件>" --update-talent-id "<talentId>" --confirm-update
303
+ ```
304
+
305
+ 回退走 helper(仅当 one-shot 不可用 / 要自定义参数时;参数写 UTF-8 无 BOM JSON 文件,continuation 全程留在 Node 内存):
296
306
 
297
307
  ```bash
298
308
  # ① prepare:参数文件含 updateTalentId + resumeFile(复跑可改用 fileId 复用原件)
@@ -344,11 +354,12 @@ weaver-work-cli --json recruit-stage run recruit-stage.resume.import.apply --inp
344
354
 
345
355
  ## 6. 请求示例(CLI)
346
356
  ```bash
347
- # ① 新建人才:先 prepare 看摘要(参数走 UTF-8 文件,禁止内联 --input-json 传中文)
348
- node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文件.json>
349
- # ② 查重 checked=true && unique=true → 同批紧接着 apply;helper 自动带 continuation,不重传业务参数
350
- node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
351
- # 复用已上传文件:prepare 参数文件里把 resumeFile 换成 "fileId":"<已上传的 fileid>"
357
+ # ① 主路径(单份新建):one-shot 一条命令跑完 prepare→查重→无重复 apply
358
+ node lib/resume-import-once.mjs --resume "<简历原件>"
359
+ # 复用已上传文件:--fileid "<已上传的 fileid>"(跳过上传+OCR)
360
+ # ② 回退(要自定义 tags/photo/useOcr 或看全量回包时才用):参数走 UTF-8 文件,禁止内联 --input-json 传中文
361
+ # node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文件.json>
362
+ # → 查重 checked=true && unique=true 才 node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
352
363
  # tags 按名运行时解析,名字不在本环境标签清单 → 进 tagsSkipped,不写入、不自动创建
353
364
  ```
354
365
 
@@ -473,9 +484,8 @@ node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
473
484
  # ① 小E fileId → 本地文件(加密信封 + Authorization 已按平台前端契约复刻,见该文件头注释)
474
485
  node lib/recruit-xiaoe-file.mjs --fileid <小E文件id> --name "<原始文件名>.pdf"
475
486
  # → { ok, localPath, size, contentType }
476
- # ② 本地文件走既有导入链(helper 两步;参数写 UTF-8 文件,continuation 留在 Node 内存)
477
- node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文件.json>
478
- node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
487
+ # ② 本地文件走单份主路径 one-shot(一条命令跑完 prepare→查重→无重复 apply)
488
+ node lib/resume-import-once.mjs --resume "<①返回的 localPath>"
479
489
  ```
480
490
 
481
491
  - **凭据已实测打通(2026-10-22)**:客户端 `user_settings.json` 自带 `authToken`(网页端同款下载鉴权)与 `public_key`(环境 RSA 公钥,密文/明文自适应),桥自动读取;平台注入与显式参数仍可覆盖。信封+鉴权已过服务端校验(复测错误从 4001 变为业务码)。
@@ -498,7 +508,9 @@ node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
498
508
  2. 或请用户**把简历文件下载到本机后给路径**:不接受粘贴文本建档,任何「无原件」情况一律停止并说明。
499
509
  - 简历文件上传 E10 走脚本内部链路(`/api/file/preUploadCheck` → `/api/file/module/upload`),**沙箱里的小E fileId 不能直接传给 E10 接口**——两套文件服务 id 不互通,这就是需要桥的原因。
500
510
 
501
- ## 12.1 最短路径:两次终端调用跑完 prepare(可直接复制)
511
+ ## 12.1 回退路径:helper 两步(仅当 one-shot 不可用时才读本节)
512
+
513
+ > 🔴 **单份主路径是 §12.2 的 `resume-import-once.mjs`**;本节是**显式回退手册**,不是并列选项。仅当:① one-shot 报错需排查;② 要看 prepare 全量回包;③ 要自定义 `tags / photo / useOcr` 时才按本节操作。普通单份建档按 §12.2 执行。
502
514
 
503
515
  目标:**1 次做「环境 + 原件 + 代际探测」,1 次做「写参数 + prepare,无重复则同批紧接着 apply」**。不要拆成 5~6 次调用。
504
516
 
@@ -515,6 +527,7 @@ weaver-work-cli --json recruit-stage run recruit-stage.resume.import.prepare --i
515
527
  ```powershell
516
528
  $IN = '{"resumeFile":"C:\\Users\\LW\\Desktop\\简历.pdf","channel":"简历附件导入"}'
517
529
  # 旧代二进制:改成 '{"resumeFile":"…","useOcr":true,"channel":"简历附件导入"}'
530
+ # (以下为回退手册步骤;单份主路径见 §12.2 one-shot)
518
531
  $f = Join-Path $env:TEMP "rs-prepare.json"
519
532
  [IO.File]::WriteAllText($f, $IN, [Text.UTF8Encoding]::new($false))
520
533
  node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import $f |
@@ -527,7 +540,7 @@ node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import $f |
527
540
  - 回包只取摘要字段给用户:姓名 / 手机 / 学历 / 院校、`duplicate`(checked / unique)、`warnings`、`missingFields`;**不要把整段 JSON 贴出来**。
528
541
  - `continuation` 由 helper 状态文件衔接 apply(不经过 shell 传递);**30 分钟内有效**,过期重新 prepare。
529
542
 
530
- **调用 2 内衔接的 apply(查重无重复才跑;🔴 主路径走 helper,continuation 全程留在 Node 内存)**
543
+ **调用 2 内衔接的 apply(查重无重复才跑;continuation 全程留在 Node 内存)**
531
544
 
532
545
  ```powershell
533
546
  node lib/recruit-write-helper.mjs apply recruit-stage.resume.import
@@ -565,6 +578,32 @@ weaver-work-cli --json recruit-stage run recruit-stage.resume.import.apply --inp
565
578
 
566
579
  > 批量(≥2 份)不要循环单份:`batch.prepare` 一次收全部原件、一次确认、一次 `batch.apply`,把确认与文档成本摊到整批。
567
580
 
581
+ ### 12.2 单份一键脚本(推荐,2026-12-01 新增)
582
+
583
+ `lib/resume-import-once.mjs` 把「写参数、prepare、读查重、apply」收敛成一次终端调用;内部仍调用 `recruit-write-helper.mjs`,不复制 CLI 状态逻辑。
584
+
585
+ ```powershell
586
+ # 单份新建(默认 channel=简历附件导入;查重 checked=true 且 unique=true 才写库)
587
+ node "<SKILL_DIR>\lib\resume-import-once.mjs" --resume "C:\Users\LW\Desktop\简历.pdf"
588
+
589
+ # 复跑复用上次回包 resumeFileId(入参名 --fileid),跳过上传+OCR
590
+ node "<SKILL_DIR>\lib\resume-import-once.mjs" --fileid "1343949684312530979"
591
+
592
+ # 更新已有:① 先出差异摘要(默认不写库) ② 用户确认后加 --confirm-update 才 apply
593
+ node "<SKILL_DIR>\lib\resume-import-once.mjs" --resume "C:\Users\LW\Desktop\简历.pdf" --update-talent-id "<talentId>"
594
+ node "<SKILL_DIR>\lib\resume-import-once.mjs" --resume "C:\Users\LW\Desktop\简历.pdf" --update-talent-id "<talentId>" --confirm-update
595
+
596
+ # 只 prepare、不写库
597
+ node "<SKILL_DIR>\lib\resume-import-once.mjs" --resume "C:\Users\LW\Desktop\简历.pdf" --prepare-only
598
+ ```
599
+
600
+ - **新建**:`duplicate.checked=true && unique=true` 自动 apply(技能纪律允许的例外二);`unique=false` 回 `needsDecision=true, reason=duplicate`,`checked=false` 回 `reason=duplicate_unchecked`,均不写库。
601
+ - **更新**:`--update-talent-id` 只 prepare 更新通道并回 `reason=update_confirmation` + `prepare.changed`;用户明确确认差异后,同参数加 `--confirm-update` 才 apply(仍遵守“先确认后落库”)。
602
+ - **输出**:只输出一段紧凑 JSON,主要字段 `applied` / `success` / `needsDecision` / `reason` / `prepare.parsed` / `prepare.duplicate` / `prepare.resumeFileId` / `prepare.changed` / `apply.result` / `apply.talentId` / `apply.writeWarnings`;整段 prepare/apply 不回显给用户。
603
+ - **代际**:旧代二进制需要 `useOcr=true`;脚本默认 `--use-ocr auto`,prepare 报 `structured/useOcr` 缺失时自动 retry 一次并置 `usedOcr=true`;新代不传,避免“未知参数:useOcr”。
604
+ - **边界**:只支持单份;≥2 份一律 `resume.import.batch`。`apply` 的 `result=partial` 时脚本回 `success=false`,按 §7 的 `detailsState` 口径告知,不自动重试创建。
605
+
606
+
568
607
  > **唯一链路**:**原件 → 上传(`resumeFile` 或复用 `fileId`)→ OCR `resumeExtraction` → 字段映射 → prepare 摘要 → apply**。
569
608
  > 回复口径一句即可:**「原件已上传(fileId=…)、附件字段回查有/无值」**;判据是 apply 输出的 `attachmentVerify`,不看文件名、不看 JSON。
570
609