weaver-work-cli 0.1.69 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{archive-VUTREF3P.js → archive-5P33NAUN.js} +22 -5
- package/dist/chunks/{archive-oa-VXXO4RTB.js → archive-oa-YTY5D7DG.js} +17 -5
- package/dist/chunks/{asset-45U6TY7I.js → asset-3Q5MFQBX.js} +22 -5
- package/dist/chunks/{asset-idle-YCRBMTIT.js → asset-idle-PQPNYIS7.js} +15 -5
- package/dist/chunks/{attachment-content-7BEDNQ3O.js → attachment-content-7CN7JB6B.js} +3 -3
- package/dist/chunks/{blog-5AML4WMG.js → blog-MFHHK6ZR.js} +25 -5
- package/dist/chunks/{caizhilian-3P7BUNHT.js → caizhilian-OZ435AYW.js} +22 -8
- package/dist/chunks/{calendar-2HUXM3CZ.js → calendar-TNJXS5UC.js} +15 -5
- package/dist/chunks/{chunk-H2NRTGZR.js → chunk-2DNCKZRX.js} +3 -3
- package/dist/chunks/{chunk-DVFA3ODS.js → chunk-35A56FJ7.js} +12 -0
- package/dist/chunks/{chunk-HG6INLH6.js → chunk-6MMSLE6K.js} +23 -6
- package/dist/chunks/{chunk-UVWW5ABZ.js → chunk-B4NINGP2.js} +3 -3
- package/dist/chunks/{chunk-LRKKKO5A.js → chunk-DRJYPXKC.js} +3 -4
- package/dist/chunks/{chunk-3TZURS7M.js → chunk-EJLP63UO.js} +1 -1
- package/dist/chunks/{chunk-FMAZ42HS.js → chunk-FRMDHZSN.js} +11 -11
- package/dist/chunks/{chunk-MLJK4KLE.js → chunk-G7ZM2VOX.js} +34 -34
- package/dist/chunks/{chunk-LSVA7QA6.js → chunk-GB2MCJPG.js} +3 -1
- package/dist/chunks/{chunk-3CBURKSY.js → chunk-ICNUOWLL.js} +4 -4
- package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
- package/dist/chunks/{chunk-BEYEXCWU.js → chunk-LU2SPJYY.js} +2 -2
- package/dist/chunks/{chunk-E7VWE2XI.js → chunk-MD5RXRI3.js} +3 -3
- package/dist/chunks/{chunk-VZUH3LKI.js → chunk-MZVQKQP5.js} +167 -157
- package/dist/chunks/{chunk-67AN5YJT.js → chunk-OFCF23FY.js} +9 -9
- package/dist/chunks/{chunk-ERAE4GHX.js → chunk-OPTJ6IF7.js} +1 -1
- package/dist/chunks/{chunk-727VKJQK.js → chunk-OZ7CJC7W.js} +2 -2
- package/dist/chunks/{chunk-T24EBWAZ.js → chunk-P3AFNAJ6.js} +48 -21
- package/dist/chunks/{chunk-4XYRTXRR.js → chunk-Q3EXRNB4.js} +1 -1
- package/dist/chunks/{chunk-QYDSTYGG.js → chunk-SKWKCLJX.js} +3 -3
- package/dist/chunks/{chunk-DSBV4GRK.js → chunk-SSS75WXW.js} +3 -3
- package/dist/chunks/{chunk-I5XB4MZT.js → chunk-SUWR5QEG.js} +94 -65
- package/dist/chunks/{chunk-YR3K53BU.js → chunk-VJWVB55R.js} +2 -2
- package/dist/chunks/{chunk-JAIZY37Z.js → chunk-VMVMEIL3.js} +4 -4
- package/dist/chunks/chunk-WM33BSIL.js +136 -0
- package/dist/chunks/{chunk-6DH73Q5H.js → chunk-X2C5CGGM.js} +52 -51
- package/dist/chunks/{chunk-ELF5TPSG.js → chunk-XLSJC6JZ.js} +6 -6
- package/dist/chunks/{chunk-U3OO3IZF.js → chunk-YN5SD4TX.js} +20 -7
- package/dist/chunks/{conflict-VKCRXHUV.js → conflict-Y4PXZ2YQ.js} +2 -2
- package/dist/chunks/{contract-3PMHUASH.js → contract-C3BGUMBM.js} +48 -5
- package/dist/chunks/{cowork-FZBTTBYX.js → cowork-2AWG4QLA.js} +37 -8
- package/dist/chunks/{create-flow-WYPLBLRK.js → create-flow-LOUOK46Z.js} +6 -6
- package/dist/chunks/{data-2YZ6A6TL.js → data-BSFYMXVO.js} +99 -184
- package/dist/chunks/{ebuilder-form-AWPTMZBZ.js → ebuilder-form-LAAMTD2Y.js} +17 -7
- package/dist/chunks/{ehr-MNPR4TE5.js → ehr-36KEX5SH.js} +62 -13
- package/dist/chunks/{entry-mode-BCJ7RPFC.js → entry-mode-6N2IGCS4.js} +3 -3
- package/dist/chunks/{env-SCVCHBN2.js → env-QYLS3EB3.js} +2 -2
- package/dist/chunks/{esb-GSB5QCEX.js → esb-PTYS3E67.js} +17 -7
- package/dist/chunks/{factory-CBXYOEBF.js → factory-LPFPKZ4T.js} +1 -1
- package/dist/chunks/{fna-XBSNUS2V.js → fna-JNHCLRDE.js} +15 -5
- package/dist/chunks/{group-chat-RFL4U7RF.js → group-chat-QP2WX4QJ.js} +3 -3
- package/dist/chunks/{host-2UMNXX5H.js → host-57LSRSE7.js} +4 -4
- package/dist/chunks/{host-NVDG3NC6.js → host-7BVR7CQ3.js} +4 -4
- package/dist/chunks/{host-SYPCA63D.js → host-C2BLBIID.js} +4 -4
- package/dist/chunks/{host-XVWBOSEN.js → host-K2ZKNXME.js} +4 -4
- package/dist/chunks/{host-R7BP3CTI.js → host-NS36QFLR.js} +6 -4
- package/dist/chunks/{host-BD44ASOD.js → host-QXFKQXNX.js} +4 -4
- package/dist/chunks/{hrm-FZUDJAND.js → hrm-FSGO4NSH.js} +15 -6
- package/dist/chunks/{im-F5NENPD7.js → im-2BFGS2XO.js} +16 -6
- package/dist/chunks/{invoice-DS6FLU55.js → invoice-JKLTTHSZ.js} +27 -6
- package/dist/chunks/{jiuchuanhui-PY2WEBUH.js → jiuchuanhui-PTABJE7V.js} +1294 -1134
- package/dist/chunks/{lazy-dispatch-F6O2EPGR.js → lazy-dispatch-YN2ZP3CS.js} +6 -6
- package/dist/chunks/{mail-ZEOSANEJ.js → mail-YNO7ZZUK.js} +116 -97
- package/dist/chunks/{meeting-N2AGGLVI.js → meeting-NIDHDBCB.js} +29 -16
- package/dist/chunks/{minute-doc-C62EZOJH.js → minute-doc-G3QAT7DE.js} +4 -4
- package/dist/chunks/{okr-OZUMTMCL.js → okr-QC52G6AJ.js} +15 -5
- package/dist/chunks/{operations-LQY3FTPH.js → operations-2WHIF5WV.js} +1 -1
- package/dist/chunks/{operations-UTUWFJTX.js → operations-MQV32ITT.js} +5 -5
- package/dist/chunks/{performance-GBKM5G2Y.js → performance-3MQ3AHDQ.js} +97 -11
- package/dist/chunks/{plan-C2NENH42.js → plan-ISINIEPY.js} +15 -5
- package/dist/chunks/{project-FAJ2P3UR.js → project-IJ6DVKT7.js} +18 -5
- package/dist/chunks/{reception-NH6MJFPR.js → reception-3H5LUG2I.js} +17 -7
- package/dist/chunks/{recruit-stage-DPEFHLSE.js → recruit-stage-MIOJXP6W.js} +412 -85
- package/dist/chunks/{registry-7US3QQXV.js → registry-3GQRYP2R.js} +12 -12
- package/dist/chunks/{registry-Y2HWS6JS.js → registry-3S7AVMXR.js} +4 -4
- package/dist/chunks/{registry-FTPUUHWC.js → registry-NHHKOEU3.js} +5 -5
- package/dist/chunks/{room-recommend-LMNF76YS.js → room-recommend-IOKBJVYP.js} +4 -4
- package/dist/chunks/{schedule-4QE2THAP.js → schedule-IB6EUARH.js} +4 -4
- package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-N2TK3CEF.js} +19 -6
- package/dist/chunks/{workflow-KXYTQZ2H.js → workflow-RINBAL2M.js} +22 -8
- package/dist/cmd/auth/index.js +23 -0
- package/dist/cmd/e10/index.js +2 -1
- package/dist/cmd/index.js +2 -0
- package/dist/core/manifest-view.js +207 -0
- package/dist/core/output.js +38 -8
- package/dist/index.js +35 -35
- package/dist/internal/e10/auth/crypto.js +18 -8
- package/dist/internal/e10/auth/error-log.js +1 -2
- package/dist/internal/e10/auth/messages.js +2 -3
- package/dist/internal/e10/auth/xiaoe.js +1 -1
- package/dist/internal/e10/tls-policy.js +61 -13
- package/dist/shortcuts/archive/index.js +11 -2
- package/dist/shortcuts/archive/operations/download.js +1 -0
- package/dist/shortcuts/archive/operations/flow-url.js +3 -0
- package/dist/shortcuts/archive/operations/prelib.js +2 -0
- package/dist/shortcuts/archive/operations/upload.js +1 -0
- package/dist/shortcuts/archive-oa/index.js +11 -2
- package/dist/shortcuts/archive-oa/operations/borrow-car.js +2 -0
- package/dist/shortcuts/asset/index.js +11 -2
- package/dist/shortcuts/asset/manifest.js +7 -0
- package/dist/shortcuts/asset-idle/index.js +11 -2
- package/dist/shortcuts/blog/index.js +11 -2
- package/dist/shortcuts/blog/manifest.js +10 -0
- package/dist/shortcuts/caizhilian/host.js +20 -4
- package/dist/shortcuts/caizhilian/index.js +12 -2
- package/dist/shortcuts/caizhilian/manifest.js +4 -25
- package/dist/shortcuts/caizhilian/operations/handlers/search.js +34 -0
- package/dist/shortcuts/caizhilian/operations/registry.js +25 -1
- package/dist/shortcuts/calendar/index.js +11 -2
- package/dist/shortcuts/contract/index.js +11 -2
- package/dist/shortcuts/contract/manifest.js +32 -0
- package/dist/shortcuts/contract/operations/write.js +3 -0
- package/dist/shortcuts/cowork/index.js +21 -5
- package/dist/shortcuts/cowork/manifest.js +3 -0
- package/dist/shortcuts/cowork/operations/discuss-write.js +2 -0
- package/dist/shortcuts/cowork/operations/item-write.js +3 -0
- package/dist/shortcuts/cowork/operations/member-write.js +2 -0
- package/dist/shortcuts/cowork/operations/permission-write.js +2 -0
- package/dist/shortcuts/cowork/operations/review-write.js +1 -0
- package/dist/shortcuts/data/errors.js +16 -29
- package/dist/shortcuts/data/host.js +16 -7
- package/dist/shortcuts/data/index.js +12 -41
- package/dist/shortcuts/data/manifest.js +5 -44
- package/dist/shortcuts/data/operations/attend.js +2 -2
- package/dist/shortcuts/data/operations/conf.js +0 -88
- package/dist/shortcuts/data/operations/ds.js +4 -4
- package/dist/shortcuts/data/operations/index.js +1 -5
- package/dist/shortcuts/data/operations/module.js +40 -14
- package/dist/shortcuts/data/operations/query.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +11 -2
- package/dist/shortcuts/ebuilder-form/manifest.js +12 -0
- package/dist/shortcuts/ehr/index.js +11 -2
- package/dist/shortcuts/ehr/operations/attend-write.js +51 -8
- package/dist/shortcuts/esb/index.js +11 -2
- package/dist/shortcuts/esb/manifest.js +2 -0
- package/dist/shortcuts/fna/index.js +11 -2
- package/dist/shortcuts/hrm/index.js +11 -1
- package/dist/shortcuts/im/index.js +11 -2
- package/dist/shortcuts/invoice/index.js +11 -2
- package/dist/shortcuts/invoice/manifest.js +8 -0
- package/dist/shortcuts/jiuchuanhui/cache.js +49 -35
- package/dist/shortcuts/jiuchuanhui/host.js +37 -5
- package/dist/shortcuts/jiuchuanhui/index.js +57 -7
- package/dist/shortcuts/jiuchuanhui/manifest.js +38 -1
- package/dist/shortcuts/jiuchuanhui/operations/customer-quick.js +110 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +11 -56
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +9 -16
- package/dist/shortcuts/jiuchuanhui/operations/generic.js +8 -30
- package/dist/shortcuts/jiuchuanhui/operations/registry.js +8 -2
- package/dist/shortcuts/jiuchuanhui/operations/shared.js +0 -10
- package/dist/shortcuts/mail/errors.js +14 -0
- package/dist/shortcuts/mail/index.js +23 -6
- package/dist/shortcuts/mail/manifest.js +11 -4
- package/dist/shortcuts/mail/operations/mail-blacklist.js +6 -6
- package/dist/shortcuts/mail/operations/mail-contacts.js +10 -10
- package/dist/shortcuts/mail/operations/mail-manage.js +15 -14
- package/dist/shortcuts/mail/operations/mail-read.js +7 -25
- package/dist/shortcuts/mail/operations/mail-send.js +12 -12
- package/dist/shortcuts/mail/operations/mail-sign.js +10 -10
- package/dist/shortcuts/mail/operations/mail-template.js +10 -10
- package/dist/shortcuts/meeting/index.js +11 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +1 -0
- package/dist/shortcuts/okr/index.js +11 -2
- package/dist/shortcuts/performance/index.js +62 -3
- package/dist/shortcuts/performance/operations/flow-detail.js +5 -4
- package/dist/shortcuts/performance/scheme-validate.js +7 -0
- package/dist/shortcuts/performance/shared.js +40 -2
- package/dist/shortcuts/plan/index.js +11 -2
- package/dist/shortcuts/project/index.js +11 -2
- package/dist/shortcuts/project/operations/write.js +3 -0
- package/dist/shortcuts/reception/index.js +11 -2
- package/dist/shortcuts/reception/manifest.js +2 -2
- package/dist/shortcuts/reception/operations/ask.js +3 -0
- package/dist/shortcuts/recruit-stage/index.js +22 -3
- package/dist/shortcuts/recruit-stage/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -16
- package/dist/shortcuts/recruit-stage/operations/profile.js +186 -0
- package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +76 -47
- package/dist/shortcuts/recruit-stage/operations/search.js +151 -16
- package/dist/shortcuts/recruit-stage/operations/tag.js +17 -3
- package/dist/shortcuts/recruit-stage/shared.js +11 -1
- package/dist/shortcuts/smart-extract/index.js +11 -2
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/save.js +2 -0
- package/dist/shortcuts/workflow/index.js +21 -1
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +5 -2
- package/dist/shortcuts/workflow/operations/read.js +2 -2
- package/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/contract.md +1 -0
- package/docs/data.md +22 -22
- package/docs/e10-auth.md +41 -33
- package/docs/ehr.md +2 -0
- package/docs/jiuchuanhui.md +17 -5
- package/docs/reception.md +4 -3
- package/package.json +1 -1
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/scripts/pysite/sitecustomize.py +41 -0
- package/skill-template/domains/data.md +4 -4
- package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
- package/skills/weaver-e10-caizhilian/references/org-browser.md +1 -0
- package/skills/weaver-e10-cowork/SKILL.md +3 -1
- package/skills/weaver-e10-data/SKILL.md +12 -16
- package/skills/weaver-e10-data/references/config-center.md +6 -7
- package/skills/weaver-e10-data/references/datasource.md +1 -1
- package/skills/weaver-e10-data/references/scene-and-misc.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +51 -90
- package/skills/weaver-e10-jiuchuanhui/references/cache.md +17 -13
- package/skills/weaver-e10-jiuchuanhui/references/clue.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +49 -11
- package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +3 -3
- package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +9 -7
- package/skills/weaver-e10-jiuchuanhui/references/sale.md +2 -2
- package/skills/weaver-e10-jucailin/references/attend-write.md +1 -1
- package/skills/weaver-e10-mail/SKILL.md +4 -1
- package/skills/weaver-e10-mail/references/mail-read.md +4 -2
- package/skills/weaver-e10-mail/references/safety-boundaries.md +1 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-performance/SKILL.md +9 -7
- package/skills/weaver-e10-performance/agents/openai.yaml +4 -2
- package/skills/weaver-e10-performance/references/flow-assess.md +19 -6
- package/skills/weaver-e10-recruit-stage/SKILL.md +125 -20
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +359 -0
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +87 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +9 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +1 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +177 -0
- package/skills/weaver-e10-shared/SKILL.md +22 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
- package/skills/weaver-e10-workflow/SKILL.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +8 -3
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -4,6 +4,15 @@ import {
|
|
|
4
4
|
createRecruitContextLoader,
|
|
5
5
|
ehrValidationError
|
|
6
6
|
} from "./chunk-UPVAQJKS.js";
|
|
7
|
+
import {
|
|
8
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
9
|
+
manifestView,
|
|
10
|
+
schemaOptionsOf
|
|
11
|
+
} from "./chunk-WM33BSIL.js";
|
|
12
|
+
import {
|
|
13
|
+
shouldReportPlatformError,
|
|
14
|
+
toPlatformError
|
|
15
|
+
} from "./chunk-MD5CW4B6.js";
|
|
7
16
|
import {
|
|
8
17
|
CONTINUATION_TTL_MS
|
|
9
18
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -12,13 +21,13 @@ import {
|
|
|
12
21
|
createE10RequestRuntime,
|
|
13
22
|
isE10SessionExpiredResponse,
|
|
14
23
|
requireE10Session
|
|
15
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DRJYPXKC.js";
|
|
16
25
|
import {
|
|
17
26
|
E10_SESSION_EXPIRED_MESSAGE
|
|
18
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IZCQU5D5.js";
|
|
19
28
|
import {
|
|
20
29
|
getActiveProfile
|
|
21
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SUWR5QEG.js";
|
|
22
31
|
import {
|
|
23
32
|
CliError,
|
|
24
33
|
isCliError,
|
|
@@ -653,6 +662,13 @@ function expectedFields(details, fields, keys, nonEmptyOnly = [], optionalKeys =
|
|
|
653
662
|
}
|
|
654
663
|
return out;
|
|
655
664
|
}
|
|
665
|
+
function valuesMatch(expected, actual) {
|
|
666
|
+
if (expected === actual) return true;
|
|
667
|
+
const expNum = Number(expected);
|
|
668
|
+
const actNum = Number(actual);
|
|
669
|
+
if (Number.isFinite(expNum) && Number.isFinite(actNum) && expNum === actNum) return true;
|
|
670
|
+
return false;
|
|
671
|
+
}
|
|
656
672
|
async function verifySubmitted(opts) {
|
|
657
673
|
const { host, formId, objId, dataId, expected } = opts;
|
|
658
674
|
if (!expected.length) return { checked: 0, mismatches: [] };
|
|
@@ -692,7 +708,7 @@ async function verifySubmitted(opts) {
|
|
|
692
708
|
const d = byId.get(e.fieldId);
|
|
693
709
|
if (!d && e.optional) continue;
|
|
694
710
|
const actual = d ? String((d.dataOptions || [])[0]?.optionId ?? d.content ?? d.dataText?.content ?? d.value ?? "") : "";
|
|
695
|
-
const bad = e.expected === "*" ? !actual :
|
|
711
|
+
const bad = e.expected === "*" ? !actual : !valuesMatch(e.expected, actual);
|
|
696
712
|
if (bad) mismatches.push({ label: e.label, expected: e.expected === "*" ? "\uFF08\u975E\u7A7A\uFF09" : e.expected, actual: actual || "\uFF08\u7A7A\uFF09" });
|
|
697
713
|
}
|
|
698
714
|
return { checked: expected.length, mismatches };
|
|
@@ -1376,8 +1392,10 @@ async function buildJd(opts) {
|
|
|
1376
1392
|
const fid = (k) => fields[k];
|
|
1377
1393
|
for (const k of DATAKEYS_TEXT) if (!fid(k)) throw rsFail("\u804C\u4F4D\u7BA1\u7406\u7F3A\u5C11\u5B57\u6BB5 " + k + "\uFF08ds/fields \u89E3\u6790\u4E0D\u5230\uFF09");
|
|
1378
1394
|
for (const k of DATAKEYS_MTEXT) if (!fid(k)) throw rsFail("\u804C\u4F4D\u7BA1\u7406\u7F3A\u5C11\u5B57\u6BB5 " + k + "\uFF08ds/fields \u89E3\u6790\u4E0D\u5230\uFF09");
|
|
1395
|
+
const setsKeys = new Set(sets.map(([k]) => k));
|
|
1396
|
+
const needsRefByFid = !DEF_FROM_REF.every((k) => setsKeys.has(k));
|
|
1379
1397
|
const currentUserPromise = resolveCurrentUser(host).catch(() => null);
|
|
1380
|
-
const refByFid = await fetchRefByFid(ctx);
|
|
1398
|
+
const refByFid = needsRefByFid ? await fetchRefByFid(ctx) : {};
|
|
1381
1399
|
const map = /* @__PURE__ */ new Map();
|
|
1382
1400
|
const put = (d) => {
|
|
1383
1401
|
if (d && d.formField && d.formField.id) map.set(String(d.formField.id), d);
|
|
@@ -1557,15 +1575,19 @@ async function prepare(args, env) {
|
|
|
1557
1575
|
operation: "recruit-stage.jd.create.apply",
|
|
1558
1576
|
fingerprint: fp,
|
|
1559
1577
|
enumMaps: await dsOptionsSnapshot(),
|
|
1560
|
-
// 🔴 2026-11-
|
|
1561
|
-
//
|
|
1562
|
-
|
|
1578
|
+
// 🔴 2026-11-27 优化:签入 willSubmit(已解析的完整提交数据)和 summary,
|
|
1579
|
+
// apply 有 willSubmit 时直接用,跳过 buildJd(省 ~10 个 HTTP 请求,5-8 秒)。
|
|
1580
|
+
willSubmit,
|
|
1581
|
+
summary: jd.summary,
|
|
1582
|
+
// 🔴 2026-11-27 修复:argsSnapshot 漏签了 sets,apply 不传 sets 时 buildJd 产出空 sets
|
|
1583
|
+
// → 指纹不一致 → fingerprint_mismatch。现在补上。
|
|
1563
1584
|
argsSnapshot: {
|
|
1564
1585
|
positionName: String(args.positionName || ""),
|
|
1565
1586
|
positionDuty: args.positionDuty ? String(args.positionDuty) : void 0,
|
|
1566
1587
|
workRequest: args.workRequest ? String(args.workRequest) : void 0,
|
|
1567
1588
|
demandId: args.demandId ? String(args.demandId) : void 0,
|
|
1568
|
-
demandName: args.demandName ? String(args.demandName) : void 0
|
|
1589
|
+
demandName: args.demandName ? String(args.demandName) : void 0,
|
|
1590
|
+
sets: args.sets
|
|
1569
1591
|
}
|
|
1570
1592
|
});
|
|
1571
1593
|
const invFieldKeys = {};
|
|
@@ -1646,18 +1668,24 @@ async function apply(args, env) {
|
|
|
1646
1668
|
ctx.appId = ctx.cache.appId;
|
|
1647
1669
|
const positionName = String(merged.positionName || "").trim();
|
|
1648
1670
|
if (!positionName) throw rsValidationError("position_name_required", "positionName \u5FC5\u586B");
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1671
|
+
let jd;
|
|
1672
|
+
if (payload.willSubmit) {
|
|
1673
|
+
const ws = payload.willSubmit;
|
|
1674
|
+
jd = { objId: ws.objId, formId: ws.formId, appId: ctx.appId, dataDetails: ws.dataDetails, summary: payload.summary || {} };
|
|
1675
|
+
} else {
|
|
1676
|
+
jd = await buildJd({
|
|
1677
|
+
ctx,
|
|
1678
|
+
positionName,
|
|
1679
|
+
duty: merged.positionDuty ? String(merged.positionDuty) : void 0,
|
|
1680
|
+
requestText: merged.workRequest ? String(merged.workRequest) : void 0,
|
|
1681
|
+
demandId: merged.demandId ? String(merged.demandId) : void 0,
|
|
1682
|
+
demandName: merged.demandName ? String(merged.demandName) : void 0,
|
|
1683
|
+
sets: setsOf(merged)
|
|
1684
|
+
});
|
|
1685
|
+
const willSubmit = { formId: jd.formId, objId: jd.objId, dataDetails: jd.dataDetails };
|
|
1686
|
+
if (payload.fingerprint !== fingerprint(willSubmit)) {
|
|
1687
|
+
throw rsValidationError("fingerprint_mismatch", "\u5F85\u63D0\u4EA4\u5185\u5BB9\u4E0E prepare \u786E\u8BA4\u6458\u8981\u4E0D\u4E00\u81F4\uFF08\u5B57\u6BB5\u503C\u5DF2\u53D8\u5316\uFF09\uFF0C\u8BF7\u91CD\u65B0 prepare \u786E\u8BA4\u540E\u518D apply");
|
|
1688
|
+
}
|
|
1661
1689
|
}
|
|
1662
1690
|
const formDataId = await saveFormData(host, {
|
|
1663
1691
|
appId: jd.appId,
|
|
@@ -2546,6 +2574,18 @@ function snapshotParsedResume(s) {
|
|
|
2546
2574
|
return void 0;
|
|
2547
2575
|
}
|
|
2548
2576
|
}
|
|
2577
|
+
var BUILT_SNAPSHOT_LIMIT = 48 * 1024;
|
|
2578
|
+
function snapshotBuilt(built) {
|
|
2579
|
+
if (!built || typeof built !== "object") return void 0;
|
|
2580
|
+
try {
|
|
2581
|
+
const { structured: _omit, ...rest } = built;
|
|
2582
|
+
const raw = JSON.stringify(rest);
|
|
2583
|
+
if (raw.length > BUILT_SNAPSHOT_LIMIT) return void 0;
|
|
2584
|
+
return rest;
|
|
2585
|
+
} catch {
|
|
2586
|
+
return void 0;
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2549
2589
|
async function checkExtractionGate(host) {
|
|
2550
2590
|
const b = await host.request({ path: "/api/recruit/ocr/checkResumeExtraction", method: "POST", body: {} });
|
|
2551
2591
|
mark("ocr.checkResumeExtraction");
|
|
@@ -3192,6 +3232,9 @@ async function prepare2(args, env, opts = {}) {
|
|
|
3192
3232
|
operation: "recruit-stage.resume.import.apply",
|
|
3193
3233
|
fingerprint: fp2,
|
|
3194
3234
|
enumMaps: await dsOptionsSnapshot(),
|
|
3235
|
+
// 🔴 2026-11-27 优化:签入已解析的 built(不含 structured,已在 parsedResume 里),
|
|
3236
|
+
// apply 直接复用,跳过 buildImport(省 ~6 HTTP)和 findExistingTalents(省 2 HTTP)。
|
|
3237
|
+
built: snapshotBuilt(built),
|
|
3195
3238
|
// 🔴 2026-11-07 修复(同 arrange / jd.create / position.create 的同类缺陷):apply 只带
|
|
3196
3239
|
// confirm + continuation 时,buildImport 需要的简历来源参数必须能从快照恢复,
|
|
3197
3240
|
// 否则会报 resume_source_required(文档写法跑不通)。
|
|
@@ -3232,21 +3275,9 @@ async function prepare2(args, env, opts = {}) {
|
|
|
3232
3275
|
}
|
|
3233
3276
|
}, { continuation: continuation2, fingerprint: fp2, confirmHint: "\u7528\u6237\u660E\u786E\u786E\u8BA4\u540E\uFF0C\u643A\u5E26 confirm:true \u4E0E continuation \u8C03\u7528 apply" });
|
|
3234
3277
|
}
|
|
3235
|
-
const
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
const rt = await resolveTags(ctx.host, built.tagNames);
|
|
3239
|
-
return { requested: built.tagNames, found: rt.found, missing: rt.missing, ...typeof rt.availableCount === "number" ? { availableCount: rt.availableCount } : {} };
|
|
3240
|
-
} catch (e) {
|
|
3241
|
-
return { requested: built.tagNames, error: e.message };
|
|
3242
|
-
}
|
|
3243
|
-
})();
|
|
3244
|
-
mark("prepare.\u67E5\u91CD\u5EFA\u6863\u5E76\u884C\u524D");
|
|
3245
|
-
const [dupInfo, tagCheck] = await Promise.all([
|
|
3246
|
-
findExistingTalents(ctx, { objId: built.objId, formId: built.formId, fields: built.fields, mobile: built.structured.telephone }),
|
|
3247
|
-
tagCheckTask
|
|
3248
|
-
]);
|
|
3249
|
-
mark("prepare.\u67E5\u91CD+\u6807\u7B7E\u9884\u68C0");
|
|
3278
|
+
const dupInfo = await findExistingTalents(ctx, { objId: built.objId, formId: built.formId, fields: built.fields, mobile: built.structured.telephone });
|
|
3279
|
+
const tagCheck = built.tagNames.length ? { requested: built.tagNames, note: "\u6807\u7B7E\u5C06\u5728\u63D0\u4EA4\u65F6\u81EA\u52A8\u89E3\u6790\u5E76\u5199\u5165" } : null;
|
|
3280
|
+
mark("prepare.\u67E5\u91CD\u5B8C\u6210");
|
|
3250
3281
|
const summary = {
|
|
3251
3282
|
action: "\u7B80\u5386\u5BFC\u5165\u5EFA\u4EBA\u624D",
|
|
3252
3283
|
resumeFile: built.fileName || "fileid=" + built.fileid,
|
|
@@ -3351,8 +3382,14 @@ async function applyCore(args, env, payload) {
|
|
|
3351
3382
|
ctx.appId = ctx.cache.appId;
|
|
3352
3383
|
mark("apply.context");
|
|
3353
3384
|
const argsT = args;
|
|
3354
|
-
|
|
3355
|
-
|
|
3385
|
+
let built;
|
|
3386
|
+
if (payload.built && (argsT.parsedResume || payload.built.structured)) {
|
|
3387
|
+
built = { ...payload.built, structured: argsT.parsedResume || payload.built.structured };
|
|
3388
|
+
mark("apply.\u590D\u7528prepare\u7684built\uFF08\u8DF3\u8FC7buildImport+\u67E5\u91CD\uFF09");
|
|
3389
|
+
} else {
|
|
3390
|
+
built = await buildImport(ctx, argsT);
|
|
3391
|
+
mark("apply.buildImport \u5B8C\u6210");
|
|
3392
|
+
}
|
|
3356
3393
|
if (argsT.updateTalentId) {
|
|
3357
3394
|
const updateTalentId = String(argsT.updateTalentId);
|
|
3358
3395
|
const upMain = toDatasetMainTable(built.dataDetails, built.fields);
|
|
@@ -3410,32 +3447,34 @@ async function applyCore(args, env, payload) {
|
|
|
3410
3447
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone, email: built.structured.email || "(\u7A7A)" }
|
|
3411
3448
|
});
|
|
3412
3449
|
}
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3450
|
+
if (!payload.built) {
|
|
3451
|
+
const dupInfo = await findExistingTalents(ctx, { objId: built.objId, formId: built.formId, fields: built.fields, mobile: built.structured.telephone });
|
|
3452
|
+
if (dupInfo.byPhone?.candidateId || dupInfo.byPhone?.talentId) {
|
|
3453
|
+
const b = dupInfo.byPhone;
|
|
3454
|
+
return rsSuccess("recruit-stage.resume.import.apply", {
|
|
3455
|
+
mode: "apply",
|
|
3456
|
+
result: "duplicate",
|
|
3457
|
+
message: "\u5F53\u524D\u624B\u673A\u53F7\u5DF2\u7ED1\u5B9A\u4EBA\u624D\u4FE1\u606F\uFF0C\u6309\u9875\u9762\u89C4\u5219\u4E0D\u65B0\u5EFA\uFF08\u672A\u5199\u5165\u4EFB\u4F55\u6570\u636E\uFF09",
|
|
3458
|
+
existingTalent: { talentId: b.talentId, candidateId: b.candidateId, talentViewUrl: b.talentViewUrl, talentCardUrl: b.talentCardUrl },
|
|
3459
|
+
talentViewUrl: b.talentViewUrl,
|
|
3460
|
+
otherRecords: dupInfo.formConflicts.existing.length ? dupInfo.formConflicts.existing : void 0,
|
|
3461
|
+
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
3462
|
+
nextStep: "\u5982\u9700\u6309\u8FD9\u4EFD\u7B80\u5386\u66F4\u65B0\u8BE5\u4EBA\u624D\uFF0C\u660E\u786E\u8BF4\u660E\u5373\u53EF\uFF08updateTalentId \u8D70\u66F4\u65B0\u901A\u9053\uFF09"
|
|
3463
|
+
});
|
|
3464
|
+
}
|
|
3465
|
+
if (dupInfo.formConflicts.existing.length) {
|
|
3466
|
+
return rsSuccess("recruit-stage.resume.import.apply", {
|
|
3467
|
+
mode: "apply",
|
|
3468
|
+
result: "duplicate",
|
|
3469
|
+
message: "\u624B\u673A\u53F7\u5728\u4EBA\u624D\u5E93\u5DF2\u5B58\u5728\uFF08\u8868\u5355\u552F\u4E00\u6027\u547D\u4E2D\uFF0C\u4F46\u65E0\u5E94\u8058\u6279\u6B21\uFF09\uFF0C\u4E0D\u65B0\u5EFA\uFF08\u672A\u5199\u5165\u4EFB\u4F55\u6570\u636E\uFF09",
|
|
3470
|
+
formConflicts: dupInfo.formConflicts.existing,
|
|
3471
|
+
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
3472
|
+
nextStep: "\u5982\u9700\u6309\u8FD9\u4EFD\u7B80\u5386\u66F4\u65B0\u8BE5\u4EBA\u624D\uFF0C\u660E\u786E\u8BF4\u660E\u5373\u53EF\uFF08updateTalentId \u8D70\u66F4\u65B0\u901A\u9053\uFF09"
|
|
3473
|
+
});
|
|
3474
|
+
}
|
|
3475
|
+
if (!dupInfo.unique && dupInfo.formConflicts.unreadable.length) {
|
|
3476
|
+
throw rsFail("\u624B\u673A\u53F7\u88AB " + dupInfo.formConflicts.unreadable.length + " \u6761\u5DF2\u5220\u9664\u8BB0\u5F55\u5360\u7528\uFF08\u5E73\u53F0\u552F\u4E00\u6027\u6821\u9A8C\u4ECD\u62E6\u65B0\u5EFA\uFF0Cid=" + dupInfo.formConflicts.unreadable.join(",") + "\uFF09\uFF1A\u8BF7\u5148\u5728\u56DE\u6536\u7AD9\u6E05\u7406\uFF0C\u6216\u6539\u4E3A\u66F4\u65B0\u5DF2\u6709\u4EBA\u624D");
|
|
3477
|
+
}
|
|
3439
3478
|
}
|
|
3440
3479
|
mark("apply.\u67E5\u91CD\u5B8C\u6210");
|
|
3441
3480
|
const datasetMain = toDatasetMainTable(built.dataDetails, built.fields);
|
|
@@ -5845,6 +5884,11 @@ async function resolvePureIds(host, ids) {
|
|
|
5845
5884
|
}
|
|
5846
5885
|
return map;
|
|
5847
5886
|
}
|
|
5887
|
+
function clampPageSize(v) {
|
|
5888
|
+
const n = Number(v);
|
|
5889
|
+
if (!Number.isFinite(n) || n <= 0) return 10;
|
|
5890
|
+
return Math.min(200, Math.trunc(n));
|
|
5891
|
+
}
|
|
5848
5892
|
async function handler(args, env) {
|
|
5849
5893
|
const host = env.host;
|
|
5850
5894
|
const session = await host.getSession();
|
|
@@ -5863,15 +5907,40 @@ async function handler(args, env) {
|
|
|
5863
5907
|
const mobileField = "field_" + fields.telephone;
|
|
5864
5908
|
const name = args.name ? String(args.name) : "";
|
|
5865
5909
|
const mobile = args.mobile ? String(args.mobile) : "";
|
|
5910
|
+
const keyword = args.keyword ? String(args.keyword) : "";
|
|
5911
|
+
const createdAfter = args.createdAfter ? String(args.createdAfter) : "";
|
|
5866
5912
|
const conds = {};
|
|
5867
5913
|
if (name) conds[nameField] = [{ [nameField]: name, [nameField + "_condition_type"]: "like" }];
|
|
5868
5914
|
if (mobile) conds[mobileField] = [{ [mobileField]: mobile, [mobileField + "_condition_type"]: "like" }];
|
|
5915
|
+
let searchType = "and";
|
|
5916
|
+
let searchFields;
|
|
5917
|
+
let searchNote;
|
|
5918
|
+
if (keyword && !name && !mobile) {
|
|
5919
|
+
searchType = "or";
|
|
5920
|
+
const meta = await resolveListSearchMeta(host, String(listId));
|
|
5921
|
+
const used = [];
|
|
5922
|
+
for (const dk of KEYWORD_TEXT_FIELDS) {
|
|
5923
|
+
const fid = fields[dk];
|
|
5924
|
+
if (!fid) continue;
|
|
5925
|
+
const bare = String(fid);
|
|
5926
|
+
const mk = "field_" + bare;
|
|
5927
|
+
const op = meta.operators[bare] || "like";
|
|
5928
|
+
conds[mk] = [{ [mk]: keyword, [mk + "_condition_type"]: op }];
|
|
5929
|
+
used.push({ field: dk, label: meta.labels[bare] || dk, operator: op });
|
|
5930
|
+
}
|
|
5931
|
+
searchFields = used;
|
|
5932
|
+
if (!used.length) {
|
|
5933
|
+
searchNote = "\u5173\u952E\u8BCD\u641C\u7D22\u672A\u5B9A\u4F4D\u5230\u4EFB\u4F55\u53EF\u7528\u5B57\u6BB5\uFF08\u73AF\u5883\u7F13\u5B58 fields \u4E0E\u76EE\u6807\u5B57\u6BB5\u6E05\u5355\u65E0\u4EA4\u96C6\uFF09\uFF0C\u672C\u6B21\u672A\u505A\u5173\u952E\u8BCD\u8FC7\u6EE4\uFF0C\u8FD4\u56DE\u7684\u662F\u5168\u5E93\u5206\u9875\u7ED3\u679C\uFF1B\u8BF7\u6539\u7528 name/mobile \u7CBE\u786E\u641C\u7D22";
|
|
5934
|
+
}
|
|
5935
|
+
}
|
|
5936
|
+
const wantPageSize = clampPageSize(args.pageSize);
|
|
5937
|
+
const fetchPageSize = createdAfter ? Math.min(200, Math.max(wantPageSize * 5, 50)) : wantPageSize;
|
|
5869
5938
|
const baseBody = {
|
|
5870
5939
|
current: Number(args.current || 1),
|
|
5871
|
-
pageSize:
|
|
5940
|
+
pageSize: fetchPageSize,
|
|
5872
5941
|
tableuid: randHex32(),
|
|
5873
5942
|
listId,
|
|
5874
|
-
searchParamData: { searchType: "3", commonSearchFields: conds, type:
|
|
5943
|
+
searchParamData: { searchType: "3", commonSearchFields: conds, type: searchType },
|
|
5875
5944
|
terminal: "PC",
|
|
5876
5945
|
browser: "Chrome",
|
|
5877
5946
|
requiredMatch: 1,
|
|
@@ -5910,7 +5979,15 @@ async function handler(args, env) {
|
|
|
5910
5979
|
for (const item of cache.dict?.raw || []) {
|
|
5911
5980
|
if (item.option_id && item.selection_name) dictNameMap[item.option_id] = item.selection_name;
|
|
5912
5981
|
}
|
|
5913
|
-
const out = {
|
|
5982
|
+
const out = {
|
|
5983
|
+
env: new URL(baseUrl).hostname,
|
|
5984
|
+
total,
|
|
5985
|
+
// 🔴 显式回执「本次关键词实际搜了哪些字段、各用什么操作符」:
|
|
5986
|
+
// 条件被服务端静默忽略时(total 与全库相同)调用方无从判断,有了这个清单才能自查。
|
|
5987
|
+
...searchFields ? { keyword, searchFields } : {},
|
|
5988
|
+
...searchNote ? { searchNote } : {},
|
|
5989
|
+
rows: []
|
|
5990
|
+
};
|
|
5914
5991
|
const outRows = out.rows;
|
|
5915
5992
|
const inlineNames = rows.map((r) => parsePortalName(r.creator));
|
|
5916
5993
|
const pureIds = [];
|
|
@@ -5936,6 +6013,38 @@ async function handler(args, env) {
|
|
|
5936
6013
|
createTime: r.create_time || null
|
|
5937
6014
|
});
|
|
5938
6015
|
});
|
|
6016
|
+
if (createdAfter) {
|
|
6017
|
+
const cutoff = Date.parse(String(createdAfter).replace(/-/g, "/"));
|
|
6018
|
+
const fetched = outRows.length;
|
|
6019
|
+
if (Number.isNaN(cutoff)) {
|
|
6020
|
+
out.timeFilter = {
|
|
6021
|
+
createdAfter,
|
|
6022
|
+
mode: "client",
|
|
6023
|
+
applied: false,
|
|
6024
|
+
fetched,
|
|
6025
|
+
matched: fetched,
|
|
6026
|
+
note: "createdAfter \u65E0\u6CD5\u89E3\u6790\u4E3A\u65E5\u671F\uFF08\u5E94\u4E3A YYYY-MM-DD\uFF09\uFF0C\u672C\u6B21\u672A\u505A\u65F6\u95F4\u8FC7\u6EE4\uFF0C\u8FD4\u56DE\u7684\u662F\u5168\u65F6\u6BB5\u7ED3\u679C"
|
|
6027
|
+
};
|
|
6028
|
+
} else {
|
|
6029
|
+
const kept = outRows.filter((r) => {
|
|
6030
|
+
const t = Date.parse(String(r.createTime || "").replace(/-/g, "/"));
|
|
6031
|
+
return !Number.isNaN(t) && t >= cutoff;
|
|
6032
|
+
});
|
|
6033
|
+
out.rows = kept;
|
|
6034
|
+
out.returned = kept.length;
|
|
6035
|
+
out.timeFilter = {
|
|
6036
|
+
createdAfter,
|
|
6037
|
+
mode: "client",
|
|
6038
|
+
applied: true,
|
|
6039
|
+
fetched,
|
|
6040
|
+
matched: kept.length,
|
|
6041
|
+
fetchPageSize,
|
|
6042
|
+
// 🔴 必须显式声明「命中数 ≠ 该时间段全库总数」:客户端只能筛已取回的行,
|
|
6043
|
+
// 不写清会让调用方把 matched 当成真实总数,进而误判「半年内只有这么多人」。
|
|
6044
|
+
note: kept.length < wantPageSize ? `\u670D\u52A1\u7AEF\u4E0D\u652F\u6301\u6309\u521B\u5EFA\u65F6\u95F4\u8FC7\u6EE4\uFF0C\u5DF2\u5BA2\u6237\u7AEF\u7B5B\u9009\uFF1A\u53D6\u56DE ${fetched} \u884C\u3001\u547D\u4E2D ${kept.length} \u884C\uFF08\u5C11\u4E8E\u671F\u671B ${wantPageSize}\uFF09\u3002\u547D\u4E2D\u6570\u4E0D\u4EE3\u8868\u8BE5\u65F6\u95F4\u6BB5\u5168\u5E93\u603B\u6570\uFF0C\u53EF\u52A0\u5927 pageSize \u6216\u7FFB\u9875\u540E\u91CD\u67E5` : `\u670D\u52A1\u7AEF\u4E0D\u652F\u6301\u6309\u521B\u5EFA\u65F6\u95F4\u8FC7\u6EE4\uFF0C\u5DF2\u5BA2\u6237\u7AEF\u7B5B\u9009\uFF1A\u53D6\u56DE ${fetched} \u884C\u3001\u547D\u4E2D ${kept.length} \u884C`
|
|
6045
|
+
};
|
|
6046
|
+
}
|
|
6047
|
+
}
|
|
5939
6048
|
return rsSuccess("recruit-stage.candidate.search", out);
|
|
5940
6049
|
}
|
|
5941
6050
|
var FALLBACK_TAG_FIELDS = { public: "field_11", private: "field_12" };
|
|
@@ -5949,10 +6058,30 @@ function clampInt(v, min, max, fallback) {
|
|
|
5949
6058
|
function normTag(s) {
|
|
5950
6059
|
return String(s == null ? "" : s).trim().toLowerCase();
|
|
5951
6060
|
}
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
6061
|
+
function firstConditionType(it) {
|
|
6062
|
+
const ct = it?.conditionType ?? it?.conditionTypeValue ?? it?.conditionTypes ?? it?.conditions;
|
|
6063
|
+
const pick = (v) => {
|
|
6064
|
+
if (typeof v === "string") return v;
|
|
6065
|
+
if (v && typeof v === "object") return String(v.value ?? v.key ?? v.code ?? v.conditionType ?? "");
|
|
6066
|
+
return "";
|
|
6067
|
+
};
|
|
6068
|
+
if (Array.isArray(ct)) {
|
|
6069
|
+
for (const x of ct) {
|
|
6070
|
+
const s = pick(x);
|
|
6071
|
+
if (s) return s;
|
|
6072
|
+
}
|
|
6073
|
+
return "";
|
|
6074
|
+
}
|
|
6075
|
+
return pick(ct);
|
|
6076
|
+
}
|
|
6077
|
+
async function resolveListSearchMeta(host, listId) {
|
|
6078
|
+
const meta = {
|
|
6079
|
+
publicKey: FALLBACK_TAG_FIELDS.public,
|
|
6080
|
+
privateKey: FALLBACK_TAG_FIELDS.private,
|
|
6081
|
+
fromConfig: false,
|
|
6082
|
+
operators: {},
|
|
6083
|
+
labels: {}
|
|
6084
|
+
};
|
|
5956
6085
|
try {
|
|
5957
6086
|
const r = await host.request({
|
|
5958
6087
|
path: "/api/ebuilder/form/listSearch/getListSearch/" + encodeURIComponent(listId),
|
|
@@ -5964,20 +6093,42 @@ async function resolveTagFields(host, listId) {
|
|
|
5964
6093
|
if (!it || !it.id) continue;
|
|
5965
6094
|
const raw = String(it.id);
|
|
5966
6095
|
const key = raw.indexOf("field_") === 0 ? raw : "field_" + raw;
|
|
5967
|
-
const
|
|
6096
|
+
const bare = key.slice("field_".length);
|
|
6097
|
+
const label = String(it.label || it.showName || it.fieldName || "");
|
|
6098
|
+
if (label) meta.labels[bare] = label;
|
|
5968
6099
|
if (label === "\u516C\u5171\u6807\u7B7E") {
|
|
5969
|
-
publicKey = key;
|
|
5970
|
-
fromConfig = true;
|
|
6100
|
+
meta.publicKey = key;
|
|
6101
|
+
meta.fromConfig = true;
|
|
5971
6102
|
} else if (label === "\u6211\u7684\u6807\u7B7E") {
|
|
5972
|
-
privateKey = key;
|
|
5973
|
-
fromConfig = true;
|
|
6103
|
+
meta.privateKey = key;
|
|
6104
|
+
meta.fromConfig = true;
|
|
5974
6105
|
}
|
|
6106
|
+
const op = firstConditionType(it);
|
|
6107
|
+
if (op) meta.operators[bare] = op;
|
|
5975
6108
|
}
|
|
5976
6109
|
}
|
|
5977
6110
|
} catch {
|
|
5978
6111
|
}
|
|
5979
|
-
return
|
|
5980
|
-
}
|
|
6112
|
+
return meta;
|
|
6113
|
+
}
|
|
6114
|
+
var KEYWORD_TEXT_FIELDS = [
|
|
6115
|
+
"candidate_name",
|
|
6116
|
+
// 姓名
|
|
6117
|
+
"intend_position",
|
|
6118
|
+
// 期望职位
|
|
6119
|
+
"current_position",
|
|
6120
|
+
// 当前职位(OCR 建档才有)
|
|
6121
|
+
"last_position_id",
|
|
6122
|
+
// 最近职位(渠道导入常有)
|
|
6123
|
+
"current_industry",
|
|
6124
|
+
// 当前公司(OCR 建档才有)
|
|
6125
|
+
"last_company_id",
|
|
6126
|
+
// 最近公司(渠道导入常有)
|
|
6127
|
+
"college",
|
|
6128
|
+
// 毕业院校
|
|
6129
|
+
"self_desc"
|
|
6130
|
+
// 自我评价
|
|
6131
|
+
];
|
|
5981
6132
|
function buildTagCond(ids, keys, mode) {
|
|
5982
6133
|
const groups = [];
|
|
5983
6134
|
const pub = ids.filter((x) => (x.type ?? 0) === 0).map((x) => String(x.id));
|
|
@@ -6051,7 +6202,7 @@ async function handlerSearchByTag(args, env) {
|
|
|
6051
6202
|
rows: []
|
|
6052
6203
|
});
|
|
6053
6204
|
}
|
|
6054
|
-
const keys = await
|
|
6205
|
+
const keys = await resolveListSearchMeta(host, String(listId));
|
|
6055
6206
|
let ledgerObjId = String(objId);
|
|
6056
6207
|
try {
|
|
6057
6208
|
const li = await host.request({ path: "/api/ebuilder/form/list/listInit", body: { listId: String(listId) } });
|
|
@@ -6239,6 +6390,8 @@ var searchOperations = [
|
|
|
6239
6390
|
inputSchema: schemaOf({
|
|
6240
6391
|
name: { type: "string", description: "\u59D3\u540D\u5173\u952E\u8BCD\uFF08like\uFF09" },
|
|
6241
6392
|
mobile: { type: "string", pattern: "^\\d{6,20}$", description: "\u624B\u673A\u53F7\uFF08like\uFF09" },
|
|
6393
|
+
keyword: { type: "string", description: "\u8DE8\u5B57\u6BB5\u5173\u952E\u8BCD\u641C\u7D22\uFF08E10 \u5217\u8868\u5FEB\u6377\u641C\u7D22\uFF0C\u5339\u914D\u59D3\u540D/\u804C\u4F4D/\u516C\u53F8/\u9662\u6821\u7B49\uFF09" },
|
|
6394
|
+
createdAfter: { type: "string", description: "\u521B\u5EFA\u65F6\u95F4\u8FC7\u6EE4\u8D77\u59CB\u65E5\u671F\uFF08YYYY-MM-DD\uFF0C\u6309 create_time gte \u8FC7\u6EE4\uFF09" },
|
|
6242
6395
|
pageSize: { type: "integer", minimum: 1, maximum: 100 },
|
|
6243
6396
|
current: { type: "integer", minimum: 1 }
|
|
6244
6397
|
}, {}),
|
|
@@ -6375,11 +6528,20 @@ function listOperation() {
|
|
|
6375
6528
|
};
|
|
6376
6529
|
if (type === 0) body.tagModules = ["recruit"];
|
|
6377
6530
|
const r = await env.host.request({ path: "/api/my/tag/query", method: "POST", body });
|
|
6378
|
-
const
|
|
6379
|
-
|
|
6531
|
+
const payload = r?.data;
|
|
6532
|
+
const list = payload?.data;
|
|
6533
|
+
const upstreamFailed = r?.status === false || r?.fail === true || typeof r?.code === "number" && r.code !== 200;
|
|
6534
|
+
if (upstreamFailed) throw rsFail("\u6807\u7B7E\u5E93\u67E5\u8BE2\u5931\u8D25\uFF1A" + (r?.msg || "\u65E0\u8FD4\u56DE"), { response: r });
|
|
6535
|
+
if (!Array.isArray(list)) {
|
|
6536
|
+
const total = Number(payload?.total ?? 0);
|
|
6537
|
+
if (Number.isFinite(total) && total > 0) {
|
|
6538
|
+
throw rsFail("\u6807\u7B7E\u5E93\u67E5\u8BE2\u5931\u8D25\uFF1A\u8FD4\u56DE\u7ED3\u6784\u5F02\u5E38\uFF08total=" + total + " \u4F46\u6CA1\u6709\u6807\u7B7E\u6570\u7EC4\uFF09", { response: r });
|
|
6539
|
+
}
|
|
6540
|
+
return rsSuccess("tag.list", { type: type === 0 ? "public" : "personal", total: 0, tags: [] });
|
|
6541
|
+
}
|
|
6380
6542
|
return rsSuccess("tag.list", {
|
|
6381
6543
|
type: type === 0 ? "public" : "personal",
|
|
6382
|
-
total: Number(
|
|
6544
|
+
total: Number(payload?.total ?? list.length),
|
|
6383
6545
|
tags: list.map((t) => ({
|
|
6384
6546
|
tagId: String(t.tagId),
|
|
6385
6547
|
name: String(t.name),
|
|
@@ -6529,9 +6691,161 @@ function applyOperation() {
|
|
|
6529
6691
|
}
|
|
6530
6692
|
var tagOperations = [listOperation(), prepareOperation(), applyOperation()];
|
|
6531
6693
|
|
|
6694
|
+
// src/shortcuts/recruit-stage/operations/profile.ts
|
|
6695
|
+
function makeDictLookup2(cache) {
|
|
6696
|
+
const byId = /* @__PURE__ */ new Map();
|
|
6697
|
+
for (const x of cache.dict?.raw || []) {
|
|
6698
|
+
if (x.option_id && x.selection_name) byId.set(String(x.option_id), x.selection_name);
|
|
6699
|
+
}
|
|
6700
|
+
return (id) => byId.get(String(id)) || "";
|
|
6701
|
+
}
|
|
6702
|
+
function detailDisplayValue(d, dictName) {
|
|
6703
|
+
if (!d) return "";
|
|
6704
|
+
if (Array.isArray(d.dataOptions) && d.dataOptions.length) {
|
|
6705
|
+
const o = d.dataOptions[0];
|
|
6706
|
+
return String(o?.content ?? o?.optionId ?? "");
|
|
6707
|
+
}
|
|
6708
|
+
if (d.dataText?.content != null) return String(d.dataText.content);
|
|
6709
|
+
if (d.content != null) {
|
|
6710
|
+
const s = String(d.content);
|
|
6711
|
+
const dn = dictName(s);
|
|
6712
|
+
return dn || s;
|
|
6713
|
+
}
|
|
6714
|
+
return "";
|
|
6715
|
+
}
|
|
6716
|
+
async function handlerProfile(args, env) {
|
|
6717
|
+
const host = env.host;
|
|
6718
|
+
const session = await host.getSession();
|
|
6719
|
+
const ctx = { host, baseUrl: session.baseUrl.replace(/\/+$/, ""), appId: "", cache: await env.recruitContext() };
|
|
6720
|
+
ctx.appId = ctx.cache.appId;
|
|
6721
|
+
const talentId = String(args.talentId || "").trim();
|
|
6722
|
+
if (!talentId) throw rsFail("talentId \u5FC5\u586B");
|
|
6723
|
+
const objId = objIdOf(ctx.cache, "talent_pool");
|
|
6724
|
+
const formId = formIdOf(ctx.cache, "talent_pool");
|
|
6725
|
+
const fields = ctx.cache.fields[objId] || {};
|
|
6726
|
+
const revFields = {};
|
|
6727
|
+
for (const [dk, fid] of Object.entries(fields)) revFields[String(fid)] = dk;
|
|
6728
|
+
const rec = await getFormDataRecord(host, formId, talentId, objId);
|
|
6729
|
+
const dets = rec.dataDetails || [];
|
|
6730
|
+
if (!dets.length) throw rsFail("\u672A\u627E\u5230\u4EBA\u624D\u8BB0\u5F55\uFF08talentId=" + talentId + "\uFF09\uFF0C\u53EF\u80FD\u5DF2\u5220\u9664\u6216\u4E0D\u5B58\u5728");
|
|
6731
|
+
const dictName = makeDictLookup2(ctx.cache);
|
|
6732
|
+
const layoutMeta = await getFormLayoutMeta(host, formId);
|
|
6733
|
+
const comps = layoutMeta?.formLayout?.pageLayouts?.[0]?.comps || [];
|
|
6734
|
+
const subFormToDataKey = {};
|
|
6735
|
+
for (const c of comps) {
|
|
6736
|
+
const cfg = c.config || {};
|
|
6737
|
+
if (c.type === "DetailTable" && cfg.subFormId && cfg.dataKey) {
|
|
6738
|
+
subFormToDataKey[String(cfg.subFormId)] = String(cfg.dataKey);
|
|
6739
|
+
}
|
|
6740
|
+
if (cfg.subFormId && cfg.fieldId && cfg.dataKey) {
|
|
6741
|
+
revFields[String(cfg.fieldId)] = String(cfg.dataKey);
|
|
6742
|
+
}
|
|
6743
|
+
if (cfg.subFormId && cfg.start && cfg.end) {
|
|
6744
|
+
if (cfg.start.fieldId && cfg.start.dataKey) revFields[String(cfg.start.fieldId)] = String(cfg.start.dataKey);
|
|
6745
|
+
if (cfg.end.fieldId && cfg.end.dataKey) revFields[String(cfg.end.fieldId)] = String(cfg.end.dataKey);
|
|
6746
|
+
}
|
|
6747
|
+
}
|
|
6748
|
+
const main = {};
|
|
6749
|
+
const rowMap = {};
|
|
6750
|
+
for (const d of dets) {
|
|
6751
|
+
const fid = String(d.fieldId || d.formField?.id || "");
|
|
6752
|
+
const dk = revFields[fid] || fid;
|
|
6753
|
+
const val = detailDisplayValue(d, dictName);
|
|
6754
|
+
if (d.subFormId) {
|
|
6755
|
+
const sid = String(d.subFormId);
|
|
6756
|
+
const didx = String(d.dataIndex ?? "0");
|
|
6757
|
+
if (!rowMap[sid]) rowMap[sid] = /* @__PURE__ */ new Map();
|
|
6758
|
+
if (!rowMap[sid].has(didx)) rowMap[sid].set(didx, {});
|
|
6759
|
+
if (val) rowMap[sid].get(didx)[dk] = val;
|
|
6760
|
+
} else {
|
|
6761
|
+
if (val) main[dk] = val;
|
|
6762
|
+
}
|
|
6763
|
+
}
|
|
6764
|
+
const subTables = {};
|
|
6765
|
+
const subTableStats = {};
|
|
6766
|
+
const unclassified = {};
|
|
6767
|
+
for (const [sid, rows] of Object.entries(rowMap)) {
|
|
6768
|
+
const arr = [...rows.values()].filter((r) => Object.keys(r).length > 0);
|
|
6769
|
+
if (!arr.length) continue;
|
|
6770
|
+
const dk = subFormToDataKey[sid];
|
|
6771
|
+
if (dk) {
|
|
6772
|
+
subTables[dk] = arr;
|
|
6773
|
+
subTableStats[dk] = arr.length;
|
|
6774
|
+
} else {
|
|
6775
|
+
unclassified[sid] = arr;
|
|
6776
|
+
}
|
|
6777
|
+
}
|
|
6778
|
+
const warnings = [];
|
|
6779
|
+
const unclassifiedTotal = Object.values(unclassified).reduce((n, r) => n + r.length, 0);
|
|
6780
|
+
if (unclassifiedTotal) {
|
|
6781
|
+
warnings.push(`\u6709 ${unclassifiedTotal} \u884C\u660E\u7EC6\u672A\u80FD\u5F52\u7C7B\u5230\u5DF2\u77E5\u660E\u7EC6\u8868\uFF08\u8868\u5355\u5E03\u5C40\u672A\u89E3\u6790\u5230\u5BF9\u5E94 DetailTable \u914D\u7F6E\uFF09\uFF0C\u5DF2\u653E\u5728 unclassifiedDetails\uFF1B\u4E0D\u8981\u636E\u6B64\u5224\u5B9A\u300C\u8BE5\u5019\u9009\u4EBA\u6CA1\u6709\u8FD9\u4E9B\u7ECF\u5386\u300D`);
|
|
6782
|
+
}
|
|
6783
|
+
if (!layoutMeta) {
|
|
6784
|
+
warnings.push("\u8868\u5355\u5E03\u5C40\u63A5\u53E3\u672A\u8FD4\u56DE\u6570\u636E\uFF0C\u660E\u7EC6\u8868\u5217\u540D\u53EF\u80FD\u663E\u793A\u4E3A\u88F8\u5B57\u6BB5 id");
|
|
6785
|
+
}
|
|
6786
|
+
const profile = {
|
|
6787
|
+
talentId,
|
|
6788
|
+
basic: {
|
|
6789
|
+
name: main.candidate_name || "",
|
|
6790
|
+
mobile: main.telephone || "",
|
|
6791
|
+
email: main.email || "",
|
|
6792
|
+
gender: main.gender || "",
|
|
6793
|
+
age: main.age || "",
|
|
6794
|
+
birthday: main.birthday || "",
|
|
6795
|
+
degree: main.highest_degree || "",
|
|
6796
|
+
college: main.college || "",
|
|
6797
|
+
joinworkdate: main.joinworkdate || "",
|
|
6798
|
+
graduate_date: main.graduate_date || "",
|
|
6799
|
+
intend_position: main.intend_position || "",
|
|
6800
|
+
intended_workplace: main.intended_workplace || "",
|
|
6801
|
+
// 🔴 实测(2026-11-27 自用环境):BOSS直聘等渠道导入的人才,现职/现公司在
|
|
6802
|
+
// last_position_id / last_company_id,而 current_position / current_industry 为空
|
|
6803
|
+
// (后者只在 OCR 解析出 jobInformations[0] 时才写)。不回退会让基本信息大面积空白,
|
|
6804
|
+
// 匹配度评估拿不到关键依据。
|
|
6805
|
+
current_position: main.current_position || main.last_position_id || "",
|
|
6806
|
+
current_industry: main.current_industry || main.last_company_id || "",
|
|
6807
|
+
expect_salary: main.expect_salary || "",
|
|
6808
|
+
location_area: main.location_area || "",
|
|
6809
|
+
recruit_status: main.recruit_status || "",
|
|
6810
|
+
self_desc: main.self_desc || "",
|
|
6811
|
+
work_ability: main.work_ability || "",
|
|
6812
|
+
channel: main.channel || ""
|
|
6813
|
+
},
|
|
6814
|
+
education: subTables.rcrt_education_exp || [],
|
|
6815
|
+
workExperience: subTables.rcrt_work_exp || [],
|
|
6816
|
+
internship: subTables.rcrt_sxjl || [],
|
|
6817
|
+
projectExperience: subTables.rcrt_project_exp || [],
|
|
6818
|
+
awards: subTables.rcrt_award_exp || [],
|
|
6819
|
+
languages: subTables.rcrt_language_skill || [],
|
|
6820
|
+
subTableStats,
|
|
6821
|
+
// 🔴 未归类明细与告警必须显式暴露:静默返回空数组会让调用方误判「没有这段经历」
|
|
6822
|
+
...unclassifiedTotal ? { unclassifiedDetails: unclassified } : {},
|
|
6823
|
+
...warnings.length ? { warnings } : {},
|
|
6824
|
+
rawMain: main
|
|
6825
|
+
// 完整主表字段(含可能新增的字段)
|
|
6826
|
+
};
|
|
6827
|
+
return rsSuccess("recruit-stage.candidate.profile", profile);
|
|
6828
|
+
}
|
|
6829
|
+
var profileOperations = [
|
|
6830
|
+
{
|
|
6831
|
+
name: "recruit-stage.candidate.profile",
|
|
6832
|
+
resource: "recruit.candidate",
|
|
6833
|
+
method: "query",
|
|
6834
|
+
action: "candidate.profile",
|
|
6835
|
+
summary: "\u6309 talentId \u62C9\u53D6\u4EBA\u624D\u5B8C\u6574\u6863\u6848\uFF1A\u57FA\u672C\u4FE1\u606F\uFF08\u4E3B\u8868\u5168\u90E8\u5B57\u6BB5\uFF09+ \u6559\u80B2\u7ECF\u5386 + \u5DE5\u4F5C\u7ECF\u5386 + \u9879\u76EE\u7ECF\u5386\u7B49\u660E\u7EC6\u8868\u3002\u7528\u4E8E\u5339\u914D\u5EA6\u8BC4\u4F30\u3001\u5019\u9009\u4EBA\u5206\u6790",
|
|
6836
|
+
capability: "recruit.candidate.profile",
|
|
6837
|
+
risk: "read",
|
|
6838
|
+
inputSchema: schemaOf({
|
|
6839
|
+
talentId: { type: "string", description: "\u4EBA\u624D\u8BB0\u5F55 id\uFF08\u6765\u81EA candidate.search \u6216 resume.import.apply \u7684 talentId\uFF09" }
|
|
6840
|
+
}, { required: ["talentId"] }),
|
|
6841
|
+
handler: handlerProfile
|
|
6842
|
+
}
|
|
6843
|
+
];
|
|
6844
|
+
|
|
6532
6845
|
// src/shortcuts/recruit-stage/operations/registry.ts
|
|
6533
6846
|
var definitions = [
|
|
6534
6847
|
...searchOperations,
|
|
6848
|
+
...profileOperations,
|
|
6535
6849
|
...listOperations,
|
|
6536
6850
|
...tagOperations,
|
|
6537
6851
|
...jdCreateOperations,
|
|
@@ -6598,6 +6912,8 @@ var recruitStageManifest = {
|
|
|
6598
6912
|
sourceSkill: "weaver-e10-recruit-stage",
|
|
6599
6913
|
capabilities: ["recruit.jd.create", "recruit.resume.import", "recruit.interview.arrange", "recruit.interview.feedback", "recruit.list", "recruit.candidate.search", "recruit.tag"],
|
|
6600
6914
|
operations: buildOperations(),
|
|
6915
|
+
// 招聘域当前没有 withheld 能力,显式给 0,便于模型按统一字段判断边界(2026-11-27 审计 G-10)。
|
|
6916
|
+
withheldCount: 0,
|
|
6601
6917
|
withheldOperations: []
|
|
6602
6918
|
};
|
|
6603
6919
|
|
|
@@ -6908,7 +7224,13 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
6908
7224
|
});
|
|
6909
7225
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
6910
7226
|
} catch (error) {
|
|
6911
|
-
|
|
7227
|
+
const env = failureEnvelope(error);
|
|
7228
|
+
if (shouldReportPlatformError(error)) {
|
|
7229
|
+
const pe = toPlatformError(error);
|
|
7230
|
+
console.error(JSON.stringify({ ...env, code: pe.code, message: pe.message }, null, 2));
|
|
7231
|
+
} else {
|
|
7232
|
+
console.error(JSON.stringify(env, null, 2));
|
|
7233
|
+
}
|
|
6912
7234
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
6913
7235
|
}
|
|
6914
7236
|
}
|
|
@@ -6918,8 +7240,13 @@ var recruitStageShortcut = {
|
|
|
6918
7240
|
category: "shortcut",
|
|
6919
7241
|
register({ program, action }) {
|
|
6920
7242
|
const rs = program.command("recruit-stage").description("\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08\u62DB\u8058\u542F\u4E8B\u751F\u6210/\u7B80\u5386\u89E3\u6790\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\u4E0E\u53CD\u9988\uFF09");
|
|
6921
|
-
rs.command("schema").description("Print recruit-stage operation manifest for agents").action(action((ctx) => {
|
|
6922
|
-
|
|
7243
|
+
rs.command("schema").description("Print recruit-stage operation manifest for agents").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
|
|
7244
|
+
const schema = schemaOptionsOf(options);
|
|
7245
|
+
ctx.output.write(manifestView(recruitStageManifest, schema), {
|
|
7246
|
+
json: true,
|
|
7247
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
7248
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
7249
|
+
});
|
|
6923
7250
|
}));
|
|
6924
7251
|
rs.command("run").description("Run a recruit-stage operation with JSON input").argument("<operation>", "operation name, e.g. recruit-stage.jd.create.prepare").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
6925
7252
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|