weaver-work-cli 0.1.45 → 0.1.47

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 (129) hide show
  1. package/dist/chunks/{attachment-content-CE3GMWTS.js → attachment-content-MCXQBD6N.js} +3 -3
  2. package/dist/chunks/{chunk-VIMCY4DI.js → chunk-4RWS2YYL.js} +2 -2
  3. package/dist/chunks/{chunk-4EXOIQDI.js → chunk-6AXKWFKG.js} +4 -14
  4. package/dist/chunks/{chunk-JWWTI63L.js → chunk-6V5ZPKHV.js} +2 -8
  5. package/dist/chunks/{chunk-3ZMAQQ3W.js → chunk-76H3IKH6.js} +39 -26
  6. package/dist/chunks/{chunk-LGKWL4OH.js → chunk-AD46OMQK.js} +86 -25
  7. package/dist/chunks/{chunk-3WBIQLMB.js → chunk-GSZTA43P.js} +2 -2
  8. package/dist/chunks/{chunk-OAE3AZBQ.js → chunk-IP4CWQCF.js} +6 -6
  9. package/dist/chunks/{chunk-77YP6I52.js → chunk-IRMIEDXN.js} +1 -1
  10. package/dist/chunks/{chunk-LRCPNDZA.js → chunk-J2VEB5K3.js} +11 -9
  11. package/dist/chunks/{chunk-T4MWQAQB.js → chunk-JFAWZX53.js} +128 -9
  12. package/dist/chunks/{chunk-GR76ZDDX.js → chunk-LIEQJIGM.js} +3 -0
  13. package/dist/chunks/{chunk-DGMYACGJ.js → chunk-OXHHJWNC.js} +1 -1
  14. package/dist/chunks/{chunk-LXFVWZLM.js → chunk-PSOMGA3U.js} +3 -3
  15. package/dist/chunks/{conflict-IYJETSGT.js → conflict-H7EHQXYY.js} +2 -2
  16. package/dist/chunks/{create-flow-7JLC7UID.js → create-flow-VRVJEOBX.js} +6 -6
  17. package/dist/chunks/{ehr-MYRDCHZ4.js → ehr-SH2LM3NK.js} +528 -40
  18. package/dist/chunks/{env-3MBHAWBL.js → env-66FPSJDV.js} +2 -2
  19. package/dist/chunks/{factory-TZEVU4DU.js → factory-UH2TZBVA.js} +1 -1
  20. package/dist/chunks/{group-chat-KL3HFKRM.js → group-chat-CAKMMV7K.js} +3 -3
  21. package/dist/chunks/{invoice-OQP3TMKQ.js → invoice-UEAHSYAE.js} +279 -1
  22. package/dist/chunks/{lazy-dispatch-UH6HGK2I.js → lazy-dispatch-25XGTXLM.js} +2 -2
  23. package/dist/chunks/{meeting-C67EHQ4Z.js → meeting-VTBFW4HI.js} +10 -10
  24. package/dist/chunks/{recruit-stage-AHY5QAMF.js → recruit-stage-CAKZTUA7.js} +917 -85
  25. package/dist/chunks/{registry-XPWPGHYE.js → registry-JVQBLFQ5.js} +10 -10
  26. package/dist/chunks/{room-recommend-CNWE5WQK.js → room-recommend-5U55FMXZ.js} +4 -4
  27. package/dist/chunks/{schedule-YYNYBQIE.js → schedule-IDETODCA.js} +4 -4
  28. package/dist/cmd/action.js +14 -10
  29. package/dist/index.js +7 -7
  30. package/dist/shortcuts/ehr/host.js +2 -2
  31. package/dist/shortcuts/ehr/index.js +14 -3
  32. package/dist/shortcuts/ehr/manifest.js +5 -1
  33. package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +40 -10
  34. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +258 -0
  35. package/dist/shortcuts/ehr/operations/recruit-position.js +10 -8
  36. package/dist/shortcuts/ehr/operations/recruit-stats.js +14 -1
  37. package/dist/shortcuts/ehr/operations/recruit-tag.js +173 -0
  38. package/dist/shortcuts/ehr/operations/recruit-write.js +137 -18
  39. package/dist/shortcuts/ehr/operations/recruit.js +180 -8
  40. package/dist/shortcuts/ehr/operations/registry.js +4 -0
  41. package/dist/shortcuts/ehr/operations.js +24 -0
  42. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +78 -0
  43. package/dist/shortcuts/ehr/recruit-stage/context.js +231 -0
  44. package/dist/shortcuts/ehr/recruit-stage/continuation.js +74 -0
  45. package/dist/shortcuts/ehr/recruit-stage/errors.js +65 -0
  46. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +165 -0
  47. package/dist/shortcuts/ehr/recruit-stage/host.js +109 -0
  48. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +1049 -0
  49. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +295 -0
  50. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +961 -0
  51. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +431 -0
  52. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +50 -0
  53. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +1647 -0
  54. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +158 -0
  55. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +34 -0
  56. package/dist/shortcuts/ehr/recruit-stage/runtime.js +31 -0
  57. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +318 -0
  58. package/dist/shortcuts/ehr/recruit-stage/shared.js +805 -0
  59. package/dist/shortcuts/invoice/host.js +3 -0
  60. package/dist/shortcuts/invoice/manifest.js +61 -0
  61. package/dist/shortcuts/invoice/operations/registry.js +2 -0
  62. package/dist/shortcuts/invoice/operations/reim-subsidy.js +233 -0
  63. package/dist/shortcuts/meeting/operations/eb/create-flow.js +93 -18
  64. package/dist/shortcuts/meeting/operations/eb/factory.js +5 -8
  65. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +2 -13
  66. package/dist/shortcuts/meeting/operations/invitation.js +27 -4
  67. package/dist/shortcuts/recruit-stage/batch-store.js +78 -0
  68. package/dist/shortcuts/recruit-stage/fs-scan.js +165 -0
  69. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +277 -20
  70. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +31 -7
  71. package/dist/shortcuts/recruit-stage/operations/jd-create.js +106 -16
  72. package/dist/shortcuts/recruit-stage/operations/registry.js +12 -0
  73. package/dist/shortcuts/recruit-stage/operations/resume-import.js +273 -6
  74. package/dist/shortcuts/recruit-stage/operations/types.js +9 -0
  75. package/dist/shortcuts/recruit-stage/shared.js +60 -6
  76. package/docs/invoice.md +1 -0
  77. package/package.json +1 -1
  78. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +2 -2
  79. package/skills/weaver-e10-jucailin/SKILL.md +12 -3
  80. package/skills/weaver-e10-jucailin/archive/LEGACY-README.md +18 -0
  81. package/skills/weaver-e10-jucailin/archive/LEGACY-SKILL.md +239 -0
  82. package/skills/weaver-e10-jucailin/archive/LEGACY-openai.yaml +131 -0
  83. package/skills/weaver-e10-jucailin/archive/LEGACY-position-templates.md +221 -0
  84. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +334 -0
  85. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +127 -0
  86. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +65 -0
  87. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +63 -0
  88. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +142 -0
  89. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +114 -0
  90. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +56 -0
  91. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +101 -0
  92. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +148 -0
  93. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +77 -0
  94. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +72 -0
  95. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +69 -0
  96. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +241 -0
  97. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +457 -0
  98. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +128 -0
  99. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +146 -0
  100. package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +69 -0
  101. package/skills/weaver-e10-jucailin/lib/recruit-xiaoe-file.mjs +192 -0
  102. package/skills/weaver-e10-jucailin/lib/xiaoe-session.mjs +66 -0
  103. package/skills/weaver-e10-jucailin/references/recruit-create.md +19 -93
  104. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +64 -0
  105. package/skills/weaver-e10-jucailin/references/recruit-read.md +63 -1
  106. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +95 -0
  107. package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +89 -0
  108. package/skills/weaver-e10-jucailin/references/recruit-tag.md +81 -0
  109. package/skills/weaver-e10-jucailin/references/recruit-write.md +53 -9
  110. package/skills/weaver-e10-meeting/SKILL.md +48 -4
  111. package/skills/weaver-e10-meeting/references/meeting-eb.md +1 -1
  112. package/skills/weaver-e10-recruit-stage/SKILL.md +8 -5
  113. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +16 -6
  114. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +5 -1
  115. package/skills/weaver-e10-recruit-stage/references/position-templates.md +20 -1
  116. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +21 -0
  117. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +4 -0
  118. package/skills/weaver-e10-yepiaotong/SKILL.md +7 -5
  119. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +1 -1
  120. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +9 -2
  121. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +2 -0
  122. package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +2 -0
  123. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +68 -6
  124. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +3 -3
  125. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +8 -15
  126. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +6 -5
  127. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +206 -92
  128. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +26 -21
  129. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +35 -0
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-77YP6I52.js";
5
+ } from "./chunk-IRMIEDXN.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-JWWTI63L.js";
10
+ } from "./chunk-6V5ZPKHV.js";
11
11
 
12
12
  // src/shortcuts/meeting/operations/eb/group-chat.ts
13
13
  import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
159
159
  if (addressText === "[object Object]") addressText = "";
160
160
  if (addressText) {
161
161
  try {
162
- const { resolveAddressRoom } = await import("./create-flow-7JLC7UID.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-VRVJEOBX.js");
163
163
  const room = await resolveAddressRoom(env, addressText);
164
164
  if (room?.name) addressText = room.name;
165
165
  } catch {
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
201
201
  const group = String(groupId).trim();
202
202
  if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
203
203
  try {
204
- const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-TZEVU4DU.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-UH2TZBVA.js");
205
205
  const session = await env.host.getSession();
206
206
  await env.host.request({
207
207
  method: "POST",
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
219
219
  return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
220
220
  }
221
221
  try {
222
- const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
222
+ const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
223
223
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
224
224
  const read = await detail.handler({ id }, env);
225
225
  const main = read?.data?.data ?? read?.data?.main ?? {};
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
267
267
  const target = String(requestId).trim();
268
268
  if (target === "") return null;
269
269
  try {
270
- const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
270
+ const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
271
271
  const list = getMeetingOperation("meeting.eb.meeting.list");
272
272
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
273
273
  const page = await list.handler({ pageSize: 30 }, env);
@@ -5,7 +5,7 @@ import {
5
5
  ebBusinessSuccess,
6
6
  meetingSuccess,
7
7
  meetingValidationError
8
- } from "./chunk-JWWTI63L.js";
8
+ } from "./chunk-6V5ZPKHV.js";
9
9
 
10
10
  // src/shortcuts/meeting/operations/env.ts
11
11
  import { existsSync } from "node:fs";
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  Command,
19
19
  clearInvoiceTokenForSession
20
- } from "./chunk-GR76ZDDX.js";
20
+ } from "./chunk-LIEQJIGM.js";
21
21
  import {
22
22
  refsDir
23
23
  } from "./chunk-AJ62BGAW.js";
@@ -2264,18 +2264,20 @@ function createAction(ctx) {
2264
2264
  await commandCtx.hooks.afterCommand(commandCtx, result);
2265
2265
  } catch (error) {
2266
2266
  await commandCtx.hooks.onError(commandCtx, error);
2267
- if (shouldReportPlatformError(error)) {
2268
- process.stderr.write(JSON.stringify(toPlatformError(error)) + "\n");
2269
- }
2270
2267
  if (commandCtx.getGlobalOptions().json) {
2271
- console.error(JSON.stringify({
2272
- schemaVersion: 1,
2273
- ok: false,
2274
- error: toErrorEnvelope(error)
2275
- }, null, 2));
2268
+ const env = { schemaVersion: 1, ok: false, error: toErrorEnvelope(error) };
2269
+ if (shouldReportPlatformError(error)) {
2270
+ const pe = toPlatformError(error);
2271
+ env.code = pe.code;
2272
+ env.message = pe.message;
2273
+ }
2274
+ console.error(JSON.stringify(env, null, 2));
2276
2275
  process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
2277
2276
  return;
2278
2277
  }
2278
+ if (shouldReportPlatformError(error)) {
2279
+ process.stderr.write(JSON.stringify(toPlatformError(error)) + "\n");
2280
+ }
2279
2281
  if (isCliError(error)) {
2280
2282
  commandCtx.logger.error(error.message);
2281
2283
  process.exitCode = error.exitCode;
@@ -279,7 +279,22 @@ var SCHEMA_STRING_LIST = { type: "array", items: { type: "string" } };
279
279
 
280
280
  // src/shortcuts/ehr/operations/recruit.ts
281
281
  var RECRUIT_APP_TAG = "weaver-recruit-service";
282
- var RECRUIT_CACHE_VERSION = 3;
282
+ var RECRUIT_CACHE_VERSION = 4;
283
+ var RECRUIT_CRITICAL_FORMS = /* @__PURE__ */ new Set(["position_manage", "talent_pool", "interview_plan"]);
284
+ var RECRUIT_CRITICAL_FORM_LABELS = {
285
+ position_manage: "\u62DB\u8058\u804C\u4F4D",
286
+ talent_pool: "\u4EBA\u624D\u5E93",
287
+ interview_plan: "\u9762\u8BD5\u7BA1\u7406"
288
+ };
289
+ function hasCriticalFields(cache) {
290
+ for (const logic of RECRUIT_CRITICAL_FORMS) {
291
+ const objId = cache?.forms?.[logic]?.objId;
292
+ if (!objId) return false;
293
+ const fmap = cache?.fields?.[objId] || {};
294
+ if (!Object.keys(fmap).length) return false;
295
+ }
296
+ return true;
297
+ }
283
298
  var RECRUIT_TAGS = {
284
299
  talent_pool: "uf_rcrt_talent_pool",
285
300
  interview_plan: "uf_rcrt_interview_plan",
@@ -440,6 +455,13 @@ async function resolveRecruitEnv(host, appId) {
440
455
  };
441
456
  if (!tenantKey && entry?.tenantKey) tenantKey = String(entry.tenantKey);
442
457
  }
458
+ for (const logic of RECRUIT_CRITICAL_FORMS) {
459
+ if (forms[logic]?.objId) continue;
460
+ throw new RecruitContextError(
461
+ "recruit_form_unresolved",
462
+ `\u5F53\u524D\u73AF\u5883\u672A\u89E3\u6790\u5230\u300C${RECRUIT_CRITICAL_FORM_LABELS[logic] || logic}\u300D\u8868\u5355\uFF08getObjsByTag \u8FD4\u56DE\u7A7A\uFF09\uFF0C\u5DF2\u4E2D\u6B62\u4E14\u672A\u5199\u5165\u7F13\u5B58\uFF1B\u8BF7\u786E\u8BA4\u62DB\u8058\u5E94\u7528\u5DF2\u5B89\u88C5\u3001\u8D26\u53F7\u5BF9\u8BE5\u8868\u5355\u6709\u6743\u9650\u540E\u91CD\u8BD5\u3002`
463
+ );
464
+ }
443
465
  const menuResponse = await host.request({
444
466
  path: "/api/cusapp/app/allMenus",
445
467
  query: { isFront: 1, appId, terminalType: "PC" }
@@ -469,9 +491,14 @@ async function resolveRecruitEnv(host, appId) {
469
491
  const resolvedForms = Object.entries(forms).filter(([, v]) => v.objId);
470
492
  await Promise.all(resolvedForms.map(async ([logic, entry]) => {
471
493
  const { fmap, omap } = await fetchFormFields(host, appId, entry.objId);
494
+ if (!Object.keys(fmap).length && RECRUIT_CRITICAL_FORMS.has(logic)) {
495
+ throw new RecruitContextError(
496
+ "recruit_context_missing",
497
+ `\u5F53\u524D\u73AF\u5883\u672A\u89E3\u6790\u5230\u300C${entry.objName || logic}\u300D\u8868\u5355\u7684\u5B57\u6BB5\u5217\u8868\uFF08ds/fields \u8FD4\u56DE\u7A7A\uFF09\uFF0C\u5DF2\u4E2D\u6B62\u4E14\u672A\u5199\u5165\u7F13\u5B58\uFF1B\u8BF7\u786E\u8BA4\u62DB\u8058\u5E94\u7528\u5DF2\u5B89\u88C5\u3001\u8D26\u53F7\u5BF9\u8BE5\u8868\u5355\u6709\u6743\u9650\uFF0C\u6216\u5220\u9664\u73AF\u5883\u7F13\u5B58\u540E\u91CD\u8BD5\u3002`
498
+ );
499
+ }
472
500
  if (Object.keys(fmap).length) fields[entry.objId] = fmap;
473
501
  if (Object.keys(omap).length) fieldOptions[entry.objId] = omap;
474
- void logic;
475
502
  }));
476
503
  const dictByName = {};
477
504
  const dictRaw = [];
@@ -653,7 +680,7 @@ function createRecruitContextLoader() {
653
680
  }
654
681
  } catch {
655
682
  }
656
- if (diskCache && diskCache.cacheVersion === RECRUIT_CACHE_VERSION) {
683
+ if (diskCache && diskCache.cacheVersion === RECRUIT_CACHE_VERSION && hasCriticalFields(diskCache)) {
657
684
  memo.set(memoKey, diskCache);
658
685
  return diskCache;
659
686
  }
@@ -686,7 +713,10 @@ function createRecruitContextLoader() {
686
713
  }, null, 2),
687
714
  "utf8"
688
715
  );
689
- } catch {
716
+ } catch (error) {
717
+ if (process.env.WEAVER_CLI_DEBUG_CACHE) {
718
+ console.error("[recruit-context] \u7F13\u5B58\u843D\u76D8\u5931\u8D25:", error instanceof Error ? error.message : String(error));
719
+ }
690
720
  }
691
721
  memo.set(memoKey, resolved);
692
722
  return resolved;
@@ -874,7 +904,7 @@ var candidateList = {
874
904
  resource: "recruit",
875
905
  method: "candidate.list",
876
906
  action: "ehr.recruit.candidate.list",
877
- summary: "\u67E5\u8BE2\u62DB\u8058\u4E1A\u52A1\u5217\u8868\uFF08demand \u62DB\u8058\u9700\u6C42 / position \u62DB\u8058\u804C\u4F4D / entry \u5165\u804C\u7BA1\u7406 / offer \u5F55\u7528\u7BA1\u7406\uFF09\uFF0CdisplayData \u663E\u793A\u5C42\u96F6\u7FFB\u8BD1\u8F93\u51FA",
907
+ summary: "\u67E5\u8BE2\u62DB\u8058\u4E1A\u52A1\u5217\u8868\uFF08demand \u62DB\u8058\u9700\u6C42 / position \u62DB\u8058\u804C\u4F4D / entry \u5165\u804C\u7BA1\u7406 / offer \u5F55\u7528\u7BA1\u7406 / interview \u9762\u8BD5\u7BA1\u7406 / candidate \u5E94\u8058\u8005\uFF09\uFF0CdisplayData \u663E\u793A\u5C42\u96F6\u7FFB\u8BD1\u8F93\u51FA",
878
908
  capability: "recruit",
879
909
  risk: READ,
880
910
  inputSchema: schemaOf({
@@ -937,11 +967,13 @@ var candidateList = {
937
967
  }
938
968
  return cleaned;
939
969
  });
970
+ const idNote = type === "position" ? "\u672C\u5217\u8868\u4E0D\u8FD4\u56DE position_id\uFF08\u540E\u7AEF\u63A5\u53E3\u65E0\u6B64\u5B57\u6BB5\uFF09\uFF1B\u804C\u4F4D id \u8BF7\u7528\u6BCF\u884C\u7684 form_data_id\uFF0C\u6216\u6539\u7528 type=candidate \u5217\u8868\uFF08\u90A3\u91CC\u6709\u771F\u5B9E position_id \u4E0E talent_id\uFF09\u3002" : type === "interview" ? "\u672C\u5217\u8868\u7684 talent_id / position_manage_id \u662F\u4EBA\u540D\u4E0D\u662F id\uFF1B\u8981\u4EBA\u624D id \u8BF7\u7528 candidate.search \u6309\u624B\u673A\u53F7\u6216\u59D3\u540D\u53D6\u3002" : type === "candidate" ? "\u672C\u5217\u8868\u7684 form_data_id \u662F\u300C\u5E94\u8058\u6279\u6B21(candidateManage)\u300Did\uFF0Cposition_id / talent_id \u662F\u771F\u5B9E id\uFF0C\u53EF\u76F4\u63A5\u7528\u4E8E\u5361\u7247\u4E0E\u5199\u64CD\u4F5C\u3002" : void 0;
940
971
  return ehrSuccess("ehr.recruit.candidate.list", {
941
972
  type,
942
973
  total,
943
974
  totalExact,
944
975
  ...totalNote ? { totalNote } : {},
976
+ ...idNote ? { idNote } : {},
945
977
  current: body.current,
946
978
  pageSize: body.pageSize,
947
979
  rows: outRows
@@ -1133,17 +1165,56 @@ var candidateCard = {
1133
1165
  const v = randHex6();
1134
1166
  const query = `talentId=${id}&batchId=${batchId}&v=${v}&randomkey_${rk2}=${rk2}`;
1135
1167
  const cardBody = { talentId: id, batchId, current: 1, pageSize: 100 };
1136
- const [base, other, interview, remark] = await Promise.all([
1168
+ const talentObjId = cache.forms.talent_pool?.objId;
1169
+ const [base, other, interview, remark, talentForm] = await Promise.all([
1137
1170
  env.host.request({ path: `/api/recruit/candidate/getCandidateCardBaseInfo?${query}`, headers: extra }),
1138
1171
  env.host.request({ path: `/api/recruit/candidate/getCandidateCardOtherInfo?${query}`, headers: extra }),
1139
1172
  env.host.request({ path: "/api/recruit/candidate/getCandidateCardInterviewInfo", body: cardBody, headers: extra }),
1140
- env.host.request({ path: "/api/recruit/candidate/getCandidateCardRemark", body: cardBody, headers: extra })
1173
+ env.host.request({ path: "/api/recruit/candidate/getCandidateCardRemark", body: cardBody, headers: extra }),
1174
+ talentObjId ? env.host.request({
1175
+ path: "/api/ebuilder/form/dataset/v2/getDataById",
1176
+ method: "POST",
1177
+ // EB OpenAPI 族的成功标识在 `data.datajson.status`,顶层无 code/status,
1178
+ // 走通用业务判定会被误判成失败,故跳过判定(HTTP/解析/会话保护仍然生效)。
1179
+ skipBusinessCheck: true,
1180
+ body: {
1181
+ datajson: {
1182
+ header: { objId: talentObjId },
1183
+ mainTable: { id },
1184
+ operationinfo: { isReturnDetail: "y", fieldNoFindIgnore: "false" }
1185
+ }
1186
+ },
1187
+ headers: extra
1188
+ }) : Promise.resolve(null)
1141
1189
  ]);
1142
1190
  const statusMap = cache.options?.recruit_status || {};
1143
1191
  const talent = base?.data?.talent || {};
1144
1192
  const currentBatch = other?.data?.currentCandidateBatch || {};
1145
1193
  const interviewList = interview?.data?.list || [];
1146
1194
  const remarkList = remark?.data?.list || [];
1195
+ const formRow = talentForm?.data?.datajson?.datas?.[0] || null;
1196
+ const pick = (holder) => {
1197
+ if (holder === void 0 || holder === null) return null;
1198
+ for (const candidate of [holder.fieldValue, holder.fieldOptionName, holder.fieldOptionId]) {
1199
+ if (candidate !== void 0 && candidate !== null && String(candidate).trim() !== "") {
1200
+ return candidate;
1201
+ }
1202
+ }
1203
+ return null;
1204
+ };
1205
+ const cell = (obj, key) => {
1206
+ const v2 = obj?.[key];
1207
+ if (v2 === void 0 || v2 === null) return null;
1208
+ if (Array.isArray(v2)) return v2.length ? pick(v2[0]) : null;
1209
+ if (typeof v2 === "object") return pick(v2);
1210
+ return v2;
1211
+ };
1212
+ const mainTable = formRow?.mainTable || {};
1213
+ const detailGroups = Object.entries(formRow || {}).filter(([key]) => /^detail\d+$/.test(key)).map(([, rows]) => Array.isArray(rows) ? rows : []);
1214
+ const rowsWith = (probeKey) => detailGroups.find((rows) => rows.some((row) => row?.[probeKey] !== void 0)) || [];
1215
+ const workRows = rowsWith("co_name");
1216
+ const eduRows = rowsWith("school");
1217
+ const projectRows = rowsWith("pj_name");
1147
1218
  const baseUrl = (await env.host.getSession()).baseUrl.replace(/\/+$/, "");
1148
1219
  return ehrSuccess("ehr.recruit.candidate.card", {
1149
1220
  talentId: id,
@@ -1151,10 +1222,22 @@ var candidateCard = {
1151
1222
  baseInfo: {
1152
1223
  name: talent?.hrm?.name,
1153
1224
  mobile: talent?.telephone,
1225
+ email: talent?.email || null,
1154
1226
  channel: talent?.channel,
1155
1227
  status: statusMap[base?.data?.recruitStatus] || base?.data?.recruitStatus || null,
1156
- createTime: talent?.createTime
1228
+ createTime: talent?.createTime,
1229
+ updateTime: talent?.updateTime || null,
1230
+ // 🔴 isBlacklist 后端给的是**字典 optionId**(实测 840803130362052609),不是布尔值;
1231
+ // 该字典名未在 env 缓存里暴露,硬翻会猜错语义,故只保留原始 id 并标明它是 optionId,
1232
+ // 需要「是否拉黑」的业务判断时请到页面确认,不要把长 id 当成 true。
1233
+ isBlacklistOptionId: talent?.isBlacklist || null,
1234
+ resumeFileCount: Array.isArray(talent?.originalResume) ? talent.originalResume.length : 0
1157
1235
  },
1236
+ // 🔴 两处 channel 来源不同(2026-11-07 实测,属正常不是 bug):
1237
+ // baseInfo.channel = talent.channel,人才档案里的「简历来源渠道」;
1238
+ // position.channel = currentBatch.channel,本应聘批次走的渠道(如内部遴选)。
1239
+ // 同一人才可有多批次,这两者天然可能不一致,不要当成数据错误去"修正"。
1240
+ channelNote: "baseInfo.channel \u662F\u4EBA\u624D\u6863\u6848\u7684\u7B80\u5386\u6765\u6E90\u6E20\u9053\uFF1Bposition.channel \u662F\u5F53\u524D\u5E94\u8058\u6279\u6B21\u7684\u6E20\u9053\uFF0C\u4E24\u8005\u6765\u6E90\u4E0D\u540C\u3001\u53EF\u80FD\u4E0D\u4E00\u81F4\u3002",
1158
1241
  position: {
1159
1242
  position: currentBatch?.position?.name,
1160
1243
  stage: currentBatch?.currentStageName,
@@ -1188,7 +1271,41 @@ var candidateCard = {
1188
1271
  time: item?.contactTime || item?.createTime,
1189
1272
  creator: item?.creator?.username || item?.creator?.name || null,
1190
1273
  content: item?.remark
1191
- }))
1274
+ })),
1275
+ // 人才档案全量(D7 补齐,2026-11-07)。此前 baseInfo 只有 9 个基础键,简历里的学历/年限/薪资都读不到。
1276
+ profile: {
1277
+ highestDegree: cell(mainTable, "highest_degree"),
1278
+ workYears: cell(mainTable, "work_exp"),
1279
+ expectSalary: cell(mainTable, "expect_salary"),
1280
+ currentSalary: cell(mainTable, "current_salary"),
1281
+ expectIndustry: cell(mainTable, "expect_industry"),
1282
+ locationArea: cell(mainTable, "location_area"),
1283
+ college: cell(mainTable, "college") ?? cell(mainTable, "hd_college"),
1284
+ major: cell(mainTable, "major") ?? cell(mainTable, "hd_major"),
1285
+ graduateDate: cell(mainTable, "graduate_date")
1286
+ },
1287
+ workExperiences: workRows.map((row) => ({
1288
+ company: cell(row, "co_name"),
1289
+ position: cell(row, "work_position"),
1290
+ start: cell(row, "start_end_date_0"),
1291
+ end: cell(row, "start_end_date_1")
1292
+ })),
1293
+ educations: eduRows.map((row) => ({
1294
+ school: cell(row, "school"),
1295
+ degree: cell(row, "edu_education"),
1296
+ major: cell(row, "edu_major"),
1297
+ start: cell(row, "study_date_0"),
1298
+ end: cell(row, "study_date_1")
1299
+ })),
1300
+ projects: projectRows.map((row) => ({
1301
+ name: cell(row, "pj_name"),
1302
+ introduction: cell(row, "pj_introduction"),
1303
+ start: cell(row, "pj_date_0"),
1304
+ end: cell(row, "pj_date_1")
1305
+ })),
1306
+ // 空值不是读取失败:E9 迁移的老人才(如测试人 100005840000020214)只迁了 18 个基础字段,
1307
+ // 教育/工作/项目经历本来就没有数据;新建人才(千里聆解析)通常是三张明细齐全。
1308
+ profileNote: "profile \u4E0E workExperiences/educations/projects \u6765\u81EA\u4EBA\u624D\u8868\u5355\u5168\u91CF\u8BFB\u53D6\uFF1B\u5B57\u6BB5\u4E3A\u7A7A\u8868\u793A\u8BE5\u4EBA\u624D\u6863\u6848\u91CC\u6CA1\u5F55\u8FD9\u9879\uFF08\u5E38\u89C1\u4E8E\u65E9\u671F E9 \u8FC1\u79FB\u6570\u636E\uFF09\uFF0C\u4E0D\u662F\u8BFB\u53D6\u5931\u8D25\u3002"
1192
1309
  });
1193
1310
  }
1194
1311
  };
@@ -1233,6 +1350,8 @@ export {
1233
1350
  EHR_PAGES,
1234
1351
  ehrPageUrl,
1235
1352
  addDays,
1353
+ LIST_TYPES,
1354
+ namesOf,
1236
1355
  createRecruitContextLoader,
1237
1356
  buildListBody,
1238
1357
  fetchListRows,
@@ -3748,6 +3748,9 @@ function createInvoiceHost(ctx, dependencies = {}) {
3748
3748
  invalidateToken() {
3749
3749
  invoiceToken = null;
3750
3750
  void clearCachedInvoiceToken();
3751
+ },
3752
+ debug(message) {
3753
+ ctx.logger?.debug?.(message);
3751
3754
  }
3752
3755
  };
3753
3756
  }
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-77YP6I52.js";
5
+ } from "./chunk-IRMIEDXN.js";
6
6
 
7
7
  // src/shortcuts/meeting/operations/eb/cache.ts
8
8
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -12,7 +12,7 @@ import {
12
12
  meetingValidationError,
13
13
  queryBody,
14
14
  toIdCsv
15
- } from "./chunk-JWWTI63L.js";
15
+ } from "./chunk-6V5ZPKHV.js";
16
16
 
17
17
  // src/shortcuts/meeting/operations/eb/conflict.ts
18
18
  var ACTIVE_MT_STATUS = "1,2,8,9";
@@ -296,7 +296,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
296
296
  const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
297
297
  const nameLike = items.filter((item) => !/^\d+$/u.test(item));
298
298
  if (nameLike.length > 0) {
299
- const { resolveMemberIdsByName } = await import("./schedule-YYNYBQIE.js");
299
+ const { resolveMemberIdsByName } = await import("./schedule-IDETODCA.js");
300
300
  const idsByName = await resolveMemberIdsByName(env, nameLike);
301
301
  const resolved = items.map((item) => idsByName.get(item) ?? item);
302
302
  payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
@@ -610,7 +610,7 @@ async function findCommonFreeSlots(env, input) {
610
610
  const scheduleItems = [];
611
611
  if (includeSchedule) {
612
612
  try {
613
- const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-YYNYBQIE.js");
613
+ const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-IDETODCA.js");
614
614
  const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
615
615
  const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
616
616
  const flow = await runScheduleConflictFlow(env, {
@@ -7,8 +7,8 @@ import {
7
7
  findCommonFreeSlots,
8
8
  meetingEbConflictOperations,
9
9
  runEbConflictCheck
10
- } from "./chunk-LXFVWZLM.js";
11
- import "./chunk-JWWTI63L.js";
10
+ } from "./chunk-PSOMGA3U.js";
11
+ import "./chunk-6V5ZPKHV.js";
12
12
  import "./chunk-7BDPM5ST.js";
13
13
  import "./chunk-UG5G54VL.js";
14
14
  import "./chunk-BUSC6UAE.js";
@@ -22,12 +22,12 @@ import {
22
22
  resolveWorkflowId,
23
23
  shapeBrowserValues,
24
24
  shouldAutoPickFlow
25
- } from "./chunk-LGKWL4OH.js";
26
- import "./chunk-4EXOIQDI.js";
27
- import "./chunk-DGMYACGJ.js";
28
- import "./chunk-LXFVWZLM.js";
29
- import "./chunk-77YP6I52.js";
30
- import "./chunk-JWWTI63L.js";
25
+ } from "./chunk-AD46OMQK.js";
26
+ import "./chunk-6AXKWFKG.js";
27
+ import "./chunk-OXHHJWNC.js";
28
+ import "./chunk-PSOMGA3U.js";
29
+ import "./chunk-IRMIEDXN.js";
30
+ import "./chunk-6V5ZPKHV.js";
31
31
  import "./chunk-7BDPM5ST.js";
32
32
  import "./chunk-UG5G54VL.js";
33
33
  import "./chunk-BUSC6UAE.js";