weaver-work-cli 0.1.61 → 0.1.63
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-S2VKZWQ3.js → archive-BLDYBZDX.js} +5 -4
- package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-3GJ3TWXR.js} +5 -4
- package/dist/chunks/{asset-HYH4W357.js → asset-AFXJN4CK.js} +5 -4
- package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-VUJXWGWJ.js} +5 -4
- package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-VMJA7NSQ.js} +3 -3
- package/dist/chunks/{blog-SLMZZICV.js → blog-EREB35VU.js} +5 -4
- package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-ATM2JO5S.js} +5 -5
- package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-E26ZIH7S.js} +5 -4
- package/dist/chunks/{chunk-6XSSAUNW.js → chunk-4OB22YKE.js} +48 -12
- package/dist/chunks/{chunk-UBGWIXU3.js → chunk-5CY37VLS.js} +131 -38
- package/dist/chunks/{chunk-EGANE35F.js → chunk-6G2JARDK.js} +1 -1
- package/dist/chunks/{chunk-WIWDVETN.js → chunk-6VCQLZXE.js} +75 -76
- package/dist/chunks/{chunk-E5YD5JWR.js → chunk-BY3WDJO5.js} +1 -1
- package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
- package/dist/chunks/{chunk-BQYX2UX5.js → chunk-C5PIGPGX.js} +5 -3
- package/dist/chunks/{chunk-UBRWONP4.js → chunk-EOZHSNND.js} +2 -2
- package/dist/chunks/{chunk-UQFPF4EX.js → chunk-G3ZM57PD.js} +2 -2
- package/dist/chunks/{chunk-XT77MP54.js → chunk-GOBNIGWS.js} +410 -24
- package/dist/chunks/{chunk-KY3R42RS.js → chunk-GQK6WLOS.js} +5 -3
- package/dist/chunks/{chunk-BIA2NKUG.js → chunk-HEJPVXD3.js} +5 -5
- package/dist/chunks/{chunk-ILALC2N6.js → chunk-I4C2KR2G.js} +1 -1
- package/dist/chunks/{chunk-YI2YMW5N.js → chunk-IGICM3WJ.js} +2 -2
- package/dist/chunks/chunk-IN6NXQ26.js +680 -0
- package/dist/chunks/{chunk-VBFBMM7G.js → chunk-LOVAIGM2.js} +387 -70
- package/dist/chunks/{chunk-H6YOMI3U.js → chunk-OMAGCLUE.js} +5 -3
- package/dist/chunks/{chunk-VNYOUAWV.js → chunk-QAMIIFP6.js} +11 -11
- package/dist/chunks/{chunk-QBDXJS2W.js → chunk-QZYKZ7MQ.js} +16 -8
- package/dist/chunks/{chunk-V2LASYKO.js → chunk-RR45ELVE.js} +30 -24
- package/dist/chunks/{chunk-NRYDJN4J.js → chunk-RV2JAA5I.js} +89 -8
- package/dist/chunks/{chunk-TEZHIB6T.js → chunk-SDPC7BG2.js} +5 -3
- package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-SHBDXEUE.js} +4 -7
- package/dist/chunks/{chunk-P6TXQK75.js → chunk-THMBDCRA.js} +5 -3
- package/dist/chunks/chunk-TJN4PIYO.js +47 -0
- package/dist/chunks/{chunk-DTCQFTHW.js → chunk-TNFIUZ4H.js} +3 -3
- package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
- package/dist/chunks/{chunk-KXJA42EA.js → chunk-WPBZQVLS.js} +1 -1
- package/dist/chunks/{conflict-GFJRS6I7.js → conflict-AMNTM3FV.js} +2 -2
- package/dist/chunks/{contract-U3ZGNRWB.js → contract-PLO2V2NO.js} +2333 -4426
- package/dist/chunks/{cowork-EX7PKIDK.js → cowork-FZAXE6FO.js} +5 -4
- package/dist/chunks/{create-flow-EJZD434E.js → create-flow-2DAUN7HU.js} +16 -6
- package/dist/chunks/{data-FOODGAMF.js → data-7NXMWET4.js} +3 -3
- package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-DEYHX6M7.js} +4 -4
- package/dist/chunks/{ehr-TE4RFNID.js → ehr-QQH2DYYA.js} +244 -151
- package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
- package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-2JTVEKMP.js} +3 -3
- package/dist/chunks/{env-TID5NFR6.js → env-2JZMXC6I.js} +2 -2
- package/dist/chunks/{esb-7L6MHYLB.js → esb-I5ZFHJUK.js} +8 -8
- package/dist/chunks/{factory-OG7BPMH5.js → factory-XIATYHU6.js} +1 -1
- package/dist/chunks/{fna-6V2ENR3Y.js → fna-3V2TL6B2.js} +5 -4
- package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-CVYUZCOQ.js} +3 -3
- package/dist/chunks/{host-TJ5VVHM7.js → host-4DP7C7YQ.js} +4 -4
- package/dist/chunks/{host-3DLYA54R.js → host-4KQCAEWA.js} +4 -4
- package/dist/chunks/{host-ONZC6AE7.js → host-4X2F3JPQ.js} +4 -4
- package/dist/chunks/{host-OGBHL75G.js → host-BD7NAM33.js} +4 -4
- package/dist/chunks/{host-VTPAWDZV.js → host-CBONEAZS.js} +4 -4
- package/dist/chunks/{host-GOJHHTPY.js → host-L37QVNIV.js} +4 -4
- package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-OL3IKN7C.js} +6 -6
- package/dist/chunks/{im-XCH47ZBN.js → im-YXQWUF3R.js} +4 -4
- package/dist/chunks/{invoice-XQRKMGNY.js → invoice-4WY32PR2.js} +199 -332
- package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-L6SHLONH.js} +5 -4
- package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-OYE6QV24.js} +5 -5
- package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-PZV2KNRU.js} +5 -4
- package/dist/chunks/{meeting-5E3BNARL.js → meeting-6SOBCC6N.js} +16 -15
- package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-KSJSJNOH.js} +4 -4
- package/dist/chunks/{okr-3O3XNYOK.js → okr-B76FW5M2.js} +5 -4
- package/dist/chunks/{operations-EZWG72FH.js → operations-YOMEGFLV.js} +5 -5
- package/dist/chunks/{performance-Y7CPNSOR.js → performance-4VBKUPFO.js} +5 -4
- package/dist/chunks/{plan-BLGPZF5M.js → plan-HBNZRQTI.js} +5 -4
- package/dist/chunks/{project-6MZMLJMP.js → project-IV6FWK74.js} +5 -4
- package/dist/chunks/{reception-F2VT2X52.js → reception-BR5YURT6.js} +3 -3
- package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-4HQ6OGXT.js} +654 -336
- package/dist/chunks/{registry-I4DVPDMU.js → registry-7LICMV5J.js} +12 -12
- package/dist/chunks/{registry-3FYSWV3U.js → registry-JFQEFC7E.js} +3 -3
- package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
- package/dist/chunks/{registry-7RS74TCK.js → registry-MZJQX65Q.js} +5 -5
- package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-43GLLE7Y.js} +4 -4
- package/dist/chunks/{schedule-6AN63MJQ.js → schedule-ZQ42BEW6.js} +4 -4
- package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-QKAEAZGM.js} +3 -3
- package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-6HV7H5PC.js} +10 -7
- package/dist/index.js +34 -34
- package/dist/internal/e10/auth/commands.js +21 -1
- package/dist/internal/e10/auth/xiaoe.js +6 -2
- package/dist/internal/e10/auth-recovery.js +28 -2
- package/dist/internal/e10/request-runtime.js +15 -3
- package/dist/internal/e10/request-trace.js +65 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
- package/dist/shortcuts/contract/index.js +14 -39
- package/dist/shortcuts/contract/manifest.js +115 -270
- package/dist/shortcuts/contract/operations/compare-report.js +437 -0
- package/dist/shortcuts/contract/operations/compare.js +2 -0
- package/dist/shortcuts/contract/operations/first-screen.js +96 -207
- package/dist/shortcuts/contract/operations/flow.js +19 -1
- package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +98 -25
- package/dist/shortcuts/contract/operations/ledger.js +315 -1
- package/dist/shortcuts/contract/operations/metrics.js +93 -0
- package/dist/shortcuts/contract/operations/modeltext.js +3 -3
- package/dist/shortcuts/contract/operations/page.js +8 -4
- package/dist/shortcuts/contract/operations/performance.js +53 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +289 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +264 -0
- package/dist/shortcuts/contract/operations/recommend.js +42 -1
- package/dist/shortcuts/contract/operations/registry.js +16 -23
- package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
- package/dist/shortcuts/contract/operations/review.js +33 -167
- package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
- package/dist/shortcuts/contract/operations/triage.js +13 -6
- package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
- package/dist/shortcuts/contract/operations/upload.js +17 -11
- package/dist/shortcuts/contract/prewarm-cache.js +6 -2
- package/dist/shortcuts/contract/prewarm.js +33 -23
- package/dist/shortcuts/contract/recommend-cache.js +191 -0
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
- package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
- package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
- package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
- package/dist/shortcuts/ehr/operations/recruit.js +338 -121
- package/dist/shortcuts/hrm/operations/employee.js +64 -17
- package/dist/shortcuts/hrm/operations/resolve.js +419 -369
- package/dist/shortcuts/im/host.js +38 -22
- package/dist/shortcuts/invoice/manifest.js +30 -62
- package/dist/shortcuts/invoice/operations/registry.js +2 -2
- package/dist/shortcuts/invoice/operations/reim-customer.js +111 -0
- package/dist/shortcuts/invoice/operations/shared.js +0 -204
- package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +116 -7
- package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
- package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
- package/dist/shortcuts/recruit-stage/context.js +75 -9
- package/dist/shortcuts/recruit-stage/manifest.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
- package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
- package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
- package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
- package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +12 -15
- package/dist/shortcuts/workflow/operations/read.js +8 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
- package/dist/shortcuts/workflow/operations.js +5 -0
- package/docs/agent-invoice.md +1 -1
- package/docs/contract.md +2 -2
- package/docs/e10-auth.md +28 -0
- package/docs/ehr.md +1 -1
- package/docs/invoice.md +0 -2
- package/package.json +1 -1
- package/skill-template/domains/yepiaotong.md +0 -1
- package/skills/weaver-e10-hrm/SKILL.md +3 -3
- package/skills/weaver-e10-hrm/references/employee.md +13 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +237 -347
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +109 -185
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
- package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +73 -104
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
- package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
- package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
- package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
- package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
- package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
- package/skills/weaver-e10-jucailin/SKILL.md +6 -7
- package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
- package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
- package/skills/weaver-e10-meeting/SKILL.md +83 -531
- package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
- package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
- package/skills/weaver-e10-meeting/references/create-flow.md +3 -1
- package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
- package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
- package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
- package/skills/weaver-e10-meeting/references/invitation.md +69 -0
- package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
- package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
- package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
- package/skills/weaver-e10-workflow/SKILL.md +49 -32
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
- package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
- package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
- package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
- package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
- package/skills/weaver-e10-yepiaotong/SKILL.md +16 -9
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +9 -7
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +15 -11
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +29 -25
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +89 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +35 -37
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +66 -63
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +50 -71
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -95
- package/skills/weaver-e10-yimiaoban/SKILL.md +10 -10
- package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
- package/dist/chunks/chunk-6QYNE6HE.js +0 -658
- package/dist/chunks/chunk-SHYQUBY3.js +0 -48
- package/dist/shortcuts/contract/operations/card-action.js +0 -1266
- package/dist/shortcuts/contract/operations/card-plan.js +0 -393
- package/dist/shortcuts/contract/operations/card.js +0 -232
- package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
- package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
- package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
- package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
- package/dist/shortcuts/contract/operations/summary.js +0 -187
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
- package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
- package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
- package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
- package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
- package/dist/shortcuts/invoice/operations/browse-field.js +0 -17
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
- package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
- package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +0 -204
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import { rsSuccess, schemaOf } from './types.js';
|
|
2
|
-
import { rsFail } from '../errors.js';
|
|
3
|
-
import { resolveCurrentUser, randHex32 } from '../shared.js';
|
|
4
|
-
const TYPES = {
|
|
5
|
-
demand: { listKey: 'demand', formType: 'demand_manage', title: '招聘需求', menuNames: ['招聘需求', '需求'] },
|
|
6
|
-
position: { listKey: 'position', formType: 'position_manage', title: '招聘职位', menuNames: ['招聘职位', '职位列表', '职位管理'] },
|
|
7
|
-
entry: { listKey: 'entry', formType: 'entry_manage', title: '入职管理', menuNames: ['入职管理'] },
|
|
8
|
-
offer: { listKey: 'offer', formType: 'offer', title: '录用管理', menuNames: ['录用管理', 'offer管理', 'offer'] },
|
|
9
|
-
interview: { listKey: 'interview', formType: 'interview_plan', title: '面试管理', menuNames: ['面试管理', '面试安排列表', '面试安排'] },
|
|
10
|
-
candidate: { listKey: 'candidate', formType: 'candidate_manage', title: '应聘者', menuNames: ['应聘者', '应聘管理', '候选人', '应聘批次'] },
|
|
11
|
-
};
|
|
12
|
-
// 跨基线列名归一:只在主字段缺失时用别名补展示值,不覆盖已有值
|
|
13
|
-
const DISPLAY_ALIASES = {
|
|
14
|
-
candidate_name: ['talent_id', 'name'],
|
|
15
|
-
position_name: ['position_manage_id', 'position'],
|
|
16
|
-
interview_type_key: ['interview_type'],
|
|
17
|
-
union_status_key: ['union_status'],
|
|
18
|
-
stage_name: ['stage_type_key', 'current_stage'],
|
|
19
|
-
};
|
|
20
|
-
const FILTER_ARGS = {
|
|
21
|
-
positionId: { dataKey: 'position_id', label: '职位' },
|
|
22
|
-
talentId: { dataKey: 'talent_id', label: '人才' },
|
|
23
|
-
candidateManageId: { dataKey: 'candidate_manage_id', label: '应聘批次' },
|
|
24
|
-
};
|
|
25
|
-
const INTERNAL_KEYS = new Set([
|
|
26
|
-
'id', 'form_data_id', 'form_table_id', 'rowKey', 'ebrecord_rowkey',
|
|
27
|
-
'isFollow', 'is_flow', 'data_status', 'data_status_value', 'update_time',
|
|
28
|
-
'formDataId', 'isFollowSearch', 'isShareToMe',
|
|
29
|
-
]);
|
|
30
|
-
const DISPLAY_UI_KEYS = new Set([...INTERNAL_KEYS, 'operate', 'isToDo', 'todoPropSpan', 'flow_status']);
|
|
31
|
-
// 短枚举状态字段(值=0/1/2…):走 dict/options 或 ds/options 映射中文
|
|
32
|
-
const ENUM_SHORT_FIELDS = new Set([
|
|
33
|
-
'entry_status', 'transact_status', 'demand_status', 'position_status',
|
|
34
|
-
'offer_status', 'talent_status', 'channel_status',
|
|
35
|
-
]);
|
|
36
|
-
async function runList(env, args, feedbackTodoMode) {
|
|
37
|
-
const host = env.host;
|
|
38
|
-
const session = await host.getSession();
|
|
39
|
-
const baseUrl = session.baseUrl.replace(/\/+$/, '');
|
|
40
|
-
const cache = await env.recruitContext();
|
|
41
|
-
const appId = cache.appId;
|
|
42
|
-
const type = String(args.type || (feedbackTodoMode ? 'interview' : ''));
|
|
43
|
-
if (!type || !TYPES[type]) {
|
|
44
|
-
throw rsFail('type 必须是 demand|position|entry|offer|interview|candidate 之一');
|
|
45
|
-
}
|
|
46
|
-
const t = TYPES[type];
|
|
47
|
-
const pageSize = Number(args.pageSize || (feedbackTodoMode ? 200 : 10));
|
|
48
|
-
const current = Number(args.current || 1);
|
|
49
|
-
if (feedbackTodoMode) {
|
|
50
|
-
args.all = true;
|
|
51
|
-
}
|
|
52
|
-
// 列表参数:优先环境缓存 lists[key];缺失回退按菜单别名解析——跨基线不写死
|
|
53
|
-
const listParam = cache.lists[t.listKey]
|
|
54
|
-
|| (cache.lists?.all_search || []).find((m) => m.listId && t.menuNames.some((n) => (m.menuName || '').trim() === n))
|
|
55
|
-
|| (cache.lists?.all_search || []).find((m) => m.listId && t.menuNames.some((n) => (m.menuName || '').includes(n)));
|
|
56
|
-
if (!listParam?.listId) {
|
|
57
|
-
throw rsFail('当前环境未启用「' + t.title + '」功能(未找到对应菜单/列表参数,按能力探测拦截)');
|
|
58
|
-
}
|
|
59
|
-
const listId = listParam.listId;
|
|
60
|
-
const cusMenuId = listParam.cusMenuId;
|
|
61
|
-
const menuName = listParam.menuName || t.title;
|
|
62
|
-
const formObjId = cache.forms[t.formType]?.objId;
|
|
63
|
-
const fieldMap = (formObjId && cache.fields[formObjId]) || {};
|
|
64
|
-
// 精确筛选:参数 → dataKey → field_<fieldId>(mark 运行时解析)
|
|
65
|
-
const commonSearchFields = {};
|
|
66
|
-
const appliedFilters = [];
|
|
67
|
-
for (const [argKey, def] of Object.entries(FILTER_ARGS)) {
|
|
68
|
-
const val = args[argKey];
|
|
69
|
-
if (!val)
|
|
70
|
-
continue;
|
|
71
|
-
const fieldId = fieldMap[def.dataKey];
|
|
72
|
-
if (!fieldId)
|
|
73
|
-
continue;
|
|
74
|
-
const mark = 'field_' + fieldId;
|
|
75
|
-
commonSearchFields[mark] = [{ [mark]: String(val), [mark + '_condition_type']: 'like' }];
|
|
76
|
-
appliedFilters.push(def.label);
|
|
77
|
-
}
|
|
78
|
-
const baseBody = {
|
|
79
|
-
current, pageSize, tableuid: randHex32(), listId,
|
|
80
|
-
searchParamData: { searchType: '3', type: 'and', ...(appliedFilters.length ? { commonSearchFields } : {}) },
|
|
81
|
-
terminal: 'PC', browser: 'Chrome',
|
|
82
|
-
requiredMatch: 1, mapResult: 1, recheckQuery: 1,
|
|
83
|
-
isFollow: 0, isShareToMe: 0, filterCondition: {},
|
|
84
|
-
cusMenuId, urlPageTitle: t.title, menuName,
|
|
85
|
-
};
|
|
86
|
-
const extra = { ebBusinessId: listId };
|
|
87
|
-
const defaultPages = feedbackTodoMode ? 5 : 20;
|
|
88
|
-
const wantPages = args.all ? Math.max(1, Number(args.maxPages || defaultPages)) : 1;
|
|
89
|
-
const rawRows = [];
|
|
90
|
-
const dispRows = [];
|
|
91
|
-
let hasDisplay = false;
|
|
92
|
-
let cntTotal = null;
|
|
93
|
-
let lastGot = 0;
|
|
94
|
-
for (let i = 0; i < wantPages; i++) {
|
|
95
|
-
const body = { ...baseBody, current: current + i };
|
|
96
|
-
const cntBody = { ...body };
|
|
97
|
-
delete cntBody.current;
|
|
98
|
-
delete cntBody.pageSize;
|
|
99
|
-
const [resp, c] = await Promise.all([
|
|
100
|
-
host.request({
|
|
101
|
-
path: '/api/ebuilder/form/list/getListDatas?passid=' + formObjId + '&cid=' + formObjId,
|
|
102
|
-
body, headers: extra,
|
|
103
|
-
}),
|
|
104
|
-
i === 0
|
|
105
|
-
? host.request({
|
|
106
|
-
path: '/api/ebuilder/form/list/getListDataCount?passid=' + formObjId + '&cid=' + formObjId,
|
|
107
|
-
body: cntBody, headers: extra,
|
|
108
|
-
}).catch(() => null)
|
|
109
|
-
: Promise.resolve(null),
|
|
110
|
-
]);
|
|
111
|
-
if (c && typeof c?.data?.total === 'number')
|
|
112
|
-
cntTotal = c.data.total;
|
|
113
|
-
const rRaw = resp?.data?.data || [];
|
|
114
|
-
const rDisp = resp?.data?.displayData;
|
|
115
|
-
if (Array.isArray(rDisp) && rDisp.length) {
|
|
116
|
-
hasDisplay = true;
|
|
117
|
-
dispRows.push(...rDisp);
|
|
118
|
-
}
|
|
119
|
-
rawRows.push(...rRaw);
|
|
120
|
-
const got = (Array.isArray(rDisp) && rDisp.length) ? rDisp.length : rRaw.length;
|
|
121
|
-
lastGot = got;
|
|
122
|
-
if (got < pageSize)
|
|
123
|
-
break;
|
|
124
|
-
if (cntTotal !== null && (current + i) * pageSize >= cntTotal)
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
const rows = hasDisplay ? dispRows : rawRows;
|
|
128
|
-
// 取回后本地过滤/排序(服务端时间筛选在部分列表不稳定,统一本地处理)
|
|
129
|
-
let workRows = rows;
|
|
130
|
-
const clientFilters = [];
|
|
131
|
-
for (const [argKey, def] of Object.entries(FILTER_ARGS)) {
|
|
132
|
-
if (args[argKey])
|
|
133
|
-
clientFilters.push([def.dataKey, String(args[argKey])]);
|
|
134
|
-
}
|
|
135
|
-
if (clientFilters.length) {
|
|
136
|
-
// 客户端精确筛选:服务端 commonSearchFields 对部分字段不生效,按 dataKey 本地等值筛选;配合 all 保证扫全量
|
|
137
|
-
workRows = workRows.filter((r) => clientFilters.every(([dk, val]) => String(r[dk] ?? '') === val));
|
|
138
|
-
}
|
|
139
|
-
if (args.recent) {
|
|
140
|
-
const days = Number(args.recent);
|
|
141
|
-
const cutoff = Date.now() - days * 86400000;
|
|
142
|
-
workRows = workRows.filter((r) => {
|
|
143
|
-
const raw = String(r.start_time || r.interview_time || '');
|
|
144
|
-
const ts = Date.parse(raw.replace(/-/g, '/'));
|
|
145
|
-
return !Number.isNaN(ts) && ts >= cutoff;
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
if (args.sort) {
|
|
149
|
-
const k = String(args.sort);
|
|
150
|
-
workRows = [...workRows].sort((a, b) => {
|
|
151
|
-
const av = String(a[k] ?? ''), bv = String(b[k] ?? '');
|
|
152
|
-
return av < bv ? 1 : av > bv ? -1 : 0; // 默认倒序(时间类:最新在前)
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
// 总数三态:① 计数接口精确 ② 到末页按已取回行数 ③ 不可知置 null(绝不把失败当 0)
|
|
156
|
-
const reachedEnd = lastGot < pageSize;
|
|
157
|
-
let total;
|
|
158
|
-
let totalExact;
|
|
159
|
-
let totalNote;
|
|
160
|
-
if (cntTotal !== null) {
|
|
161
|
-
total = cntTotal;
|
|
162
|
-
totalExact = true;
|
|
163
|
-
}
|
|
164
|
-
else if (reachedEnd) {
|
|
165
|
-
total = rows.length;
|
|
166
|
-
totalExact = true;
|
|
167
|
-
totalNote = '计数接口不可用,已到末页,总数按已取回行数得出';
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
total = null;
|
|
171
|
-
totalExact = false;
|
|
172
|
-
totalNote = '计数接口不可用且本页已满,总数不可知(可加大 pageSize 或开 all 取回全部行数)';
|
|
173
|
-
}
|
|
174
|
-
if (args.all && rows.length >= wantPages * pageSize && (cntTotal === null || cntTotal > rows.length)) {
|
|
175
|
-
totalNote = `已取回 ${rows.length} 行(达 maxPages 上限 ${wantPages} 页),可能仍有更多;可增大 maxPages 或加精确筛选`;
|
|
176
|
-
}
|
|
177
|
-
// 原始层兜底翻译(displayData 存在时跳过全部翻译,零本地翻译、零额外请求)
|
|
178
|
-
const dictNameMap = {};
|
|
179
|
-
const optionsMap = {};
|
|
180
|
-
const dsOptionsCache = {};
|
|
181
|
-
for (const item of cache.dict?.raw || []) {
|
|
182
|
-
if (item.option_id && item.selection_name)
|
|
183
|
-
dictNameMap[item.option_id] = item.selection_name;
|
|
184
|
-
}
|
|
185
|
-
for (const [fieldId, opts] of Object.entries(cache.options || {})) {
|
|
186
|
-
if (opts && typeof opts === 'object')
|
|
187
|
-
Object.assign(optionsMap, opts);
|
|
188
|
-
}
|
|
189
|
-
const dsOptionsFor = async (fieldId) => {
|
|
190
|
-
if (fieldId && dsOptionsCache[fieldId] === undefined) {
|
|
191
|
-
try {
|
|
192
|
-
const o = await host.request({
|
|
193
|
-
path: '/api/ebuilder/common/ds/options?fieldName=' + fieldId + '&objId=' + formObjId + '&sourceType=FORM&groupId=' + appId,
|
|
194
|
-
method: 'GET',
|
|
195
|
-
});
|
|
196
|
-
const map = {};
|
|
197
|
-
for (const it of o?.data || [])
|
|
198
|
-
if (it?.optionId || it?.id)
|
|
199
|
-
map[String(it.optionId || it.id)] = it.name || it.text || it.optionName;
|
|
200
|
-
dsOptionsCache[fieldId] = map;
|
|
201
|
-
}
|
|
202
|
-
catch {
|
|
203
|
-
dsOptionsCache[fieldId] = {};
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return dsOptionsCache[fieldId] || {};
|
|
207
|
-
};
|
|
208
|
-
const mapEnum = async (optionId, fieldKey) => {
|
|
209
|
-
const s = String(optionId);
|
|
210
|
-
if (dictNameMap[s])
|
|
211
|
-
return dictNameMap[s];
|
|
212
|
-
if (optionsMap[s])
|
|
213
|
-
return optionsMap[s];
|
|
214
|
-
let cn = (await dsOptionsFor(fieldMap[fieldKey]))[s] || null;
|
|
215
|
-
if (!cn && String(fieldKey).endsWith('_key')) {
|
|
216
|
-
cn = (await dsOptionsFor(fieldMap[String(fieldKey).slice(0, -4)]))[s] || null;
|
|
217
|
-
}
|
|
218
|
-
return cn;
|
|
219
|
-
};
|
|
220
|
-
// ds/options 并行预热(仅原始层需要)
|
|
221
|
-
if (!hasDisplay) {
|
|
222
|
-
const needFieldIds = new Set();
|
|
223
|
-
for (const r of workRows) {
|
|
224
|
-
for (const [k, v] of Object.entries(r)) {
|
|
225
|
-
if (INTERNAL_KEYS.has(k) || DISPLAY_UI_KEYS.has(k))
|
|
226
|
-
continue;
|
|
227
|
-
const s = String(v ?? '');
|
|
228
|
-
if (!s)
|
|
229
|
-
continue;
|
|
230
|
-
if (!ENUM_SHORT_FIELDS.has(k) && !/^\d{16,}$/.test(s))
|
|
231
|
-
continue;
|
|
232
|
-
if (dictNameMap[s] || optionsMap[s])
|
|
233
|
-
continue;
|
|
234
|
-
const fieldId = fieldMap[k] || (k.endsWith('_key') ? fieldMap[k.slice(0, -4)] : null);
|
|
235
|
-
if (fieldId && dsOptionsCache[fieldId] === undefined)
|
|
236
|
-
needFieldIds.add(fieldId);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
await Promise.all([...needFieldIds].map((fieldId) => dsOptionsFor(fieldId)));
|
|
240
|
-
}
|
|
241
|
-
const out = {
|
|
242
|
-
env: new URL(baseUrl).hostname, type, total, totalExact,
|
|
243
|
-
...(totalNote ? { totalNote } : {}),
|
|
244
|
-
...(appliedFilters.length ? { filters: appliedFilters } : {}),
|
|
245
|
-
...(args.recent ? { recentDays: Number(args.recent) } : {}),
|
|
246
|
-
page: current, pageSize, scanned: rows.length, returned: workRows.length, rows: [],
|
|
247
|
-
};
|
|
248
|
-
const outRows = out.rows;
|
|
249
|
-
for (const r of workRows) {
|
|
250
|
-
const row = { form_data_id: r.form_data_id || r.id };
|
|
251
|
-
for (const [k, v] of Object.entries(r)) {
|
|
252
|
-
if (hasDisplay) {
|
|
253
|
-
if (DISPLAY_UI_KEYS.has(k) || k === 'form_data_id')
|
|
254
|
-
continue;
|
|
255
|
-
if (k.endsWith('Span') || k.endsWith('Action'))
|
|
256
|
-
continue;
|
|
257
|
-
const s = String(v ?? '');
|
|
258
|
-
if (!s)
|
|
259
|
-
continue;
|
|
260
|
-
// displayData 偶尔把枚举回退成 optionId → 运行时映射回中文;映射不到保留原值(业务 id 需保留)
|
|
261
|
-
if (/^\d{16,}$/.test(s)) {
|
|
262
|
-
const cn = await mapEnum(s, k);
|
|
263
|
-
if (cn) {
|
|
264
|
-
row[k] = cn;
|
|
265
|
-
continue;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
if (typeof v === 'object' || (typeof v === 'string' && s.trimStart().startsWith('['))) {
|
|
269
|
-
let arr;
|
|
270
|
-
if (typeof v === 'object')
|
|
271
|
-
arr = Array.isArray(v) ? v : [v];
|
|
272
|
-
else {
|
|
273
|
-
try {
|
|
274
|
-
arr = JSON.parse(s);
|
|
275
|
-
}
|
|
276
|
-
catch {
|
|
277
|
-
arr = null;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
if (Array.isArray(arr)) {
|
|
281
|
-
const names = arr.map((x) => x?.name || x?.username || x?.text || x?.title || (typeof x === 'string' ? x : null)).filter(Boolean);
|
|
282
|
-
if (names.length) {
|
|
283
|
-
row[k] = names.join('、');
|
|
284
|
-
continue;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
row[k] = s;
|
|
288
|
-
continue;
|
|
289
|
-
}
|
|
290
|
-
row[k] = s;
|
|
291
|
-
continue;
|
|
292
|
-
}
|
|
293
|
-
// 原始层兜底
|
|
294
|
-
if (INTERNAL_KEYS.has(k))
|
|
295
|
-
continue;
|
|
296
|
-
const s = String(v ?? '');
|
|
297
|
-
if (!s)
|
|
298
|
-
continue;
|
|
299
|
-
if (ENUM_SHORT_FIELDS.has(k)) {
|
|
300
|
-
const cn = await mapEnum(s, k);
|
|
301
|
-
row[k] = cn || s;
|
|
302
|
-
continue;
|
|
303
|
-
}
|
|
304
|
-
if (/^\d{16,}$/.test(s)) {
|
|
305
|
-
const cn = await mapEnum(s, k);
|
|
306
|
-
if (cn)
|
|
307
|
-
row[k] = cn;
|
|
308
|
-
continue;
|
|
309
|
-
}
|
|
310
|
-
if (typeof v === 'object' || (typeof v === 'string' && s.trimStart().startsWith('['))) {
|
|
311
|
-
let arr;
|
|
312
|
-
if (typeof v === 'object')
|
|
313
|
-
arr = Array.isArray(v) ? v : [v];
|
|
314
|
-
else {
|
|
315
|
-
try {
|
|
316
|
-
arr = JSON.parse(s);
|
|
317
|
-
}
|
|
318
|
-
catch {
|
|
319
|
-
arr = null;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
if (Array.isArray(arr)) {
|
|
323
|
-
const names = arr.map((x) => x?.name || x?.text || x?.title || (typeof x === 'string' ? x : null)).filter(Boolean);
|
|
324
|
-
if (names.length) {
|
|
325
|
-
row[k] = names.join('、');
|
|
326
|
-
continue;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
row[k] = JSON.stringify(v);
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
row[k] = s;
|
|
333
|
-
}
|
|
334
|
-
// 跨基线列名归一(跳过"看起来是裸 id"的值,避免把 16 位 id 当人名展示)
|
|
335
|
-
for (const [canonical, aliases] of Object.entries(DISPLAY_ALIASES)) {
|
|
336
|
-
const cur = row[canonical];
|
|
337
|
-
if (cur !== undefined && cur !== '')
|
|
338
|
-
continue;
|
|
339
|
-
for (const a of aliases) {
|
|
340
|
-
const v = row[a];
|
|
341
|
-
if (v === undefined || v === '')
|
|
342
|
-
continue;
|
|
343
|
-
if (/^\d{16,}$/.test(String(v)))
|
|
344
|
-
continue;
|
|
345
|
-
row[canonical] = v;
|
|
346
|
-
break;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
outRows.push(row);
|
|
350
|
-
}
|
|
351
|
-
// feedbackTodo:从当前结果集派生两个待办视图
|
|
352
|
-
if (feedbackTodoMode) {
|
|
353
|
-
const cu = await resolveCurrentUser(host);
|
|
354
|
-
const me = cu ? cu.name : '';
|
|
355
|
-
const st = (r) => String(r.union_status_key || r.union_status || '');
|
|
356
|
-
const tp = (r) => String(r.interview_type_key || r.interview_type || '');
|
|
357
|
-
const iv = (r) => String(r.interviewer || '');
|
|
358
|
-
const slim = (r) => ({
|
|
359
|
-
form_data_id: r.form_data_id,
|
|
360
|
-
candidate_name: r.candidate_name,
|
|
361
|
-
position_name: r.position_name,
|
|
362
|
-
start_time: r.start_time,
|
|
363
|
-
interview_type_key: tp(r),
|
|
364
|
-
interview_session: r.interview_session,
|
|
365
|
-
interviewer: iv(r),
|
|
366
|
-
union_status_key: st(r),
|
|
367
|
-
subject: r.subject,
|
|
368
|
-
mobile: r.mobile,
|
|
369
|
-
talent_id: r.talent_id,
|
|
370
|
-
position_manage_id: r.position_manage_id,
|
|
371
|
-
});
|
|
372
|
-
const pending = outRows.filter((r) => /待反馈/.test(st(r)));
|
|
373
|
-
const mineAll = me ? pending.filter((r) => iv(r).includes(me)) : [];
|
|
374
|
-
const myAi = mineAll.filter((r) => /AI\s*面试/i.test(tp(r)));
|
|
375
|
-
const notes = [];
|
|
376
|
-
if (!me)
|
|
377
|
-
notes.push('未能解析当前登录用户,无法按面试官过滤(结果为空)');
|
|
378
|
-
if (out.total !== null && outRows.length < out.total) {
|
|
379
|
-
notes.push('已扫描 ' + outRows.length + '/' + out.total + ' 条(面试列表默认顺序),未覆盖全部;如怀疑遗漏可加大 maxPages');
|
|
380
|
-
}
|
|
381
|
-
out.feedbackTodo = {
|
|
382
|
-
currentUser: me || null,
|
|
383
|
-
scanned: outRows.length,
|
|
384
|
-
myAiPendingFeedback: { count: myAi.length, rows: myAi.map(slim) },
|
|
385
|
-
myOtherPendingFeedback: {
|
|
386
|
-
count: mineAll.length - myAi.length,
|
|
387
|
-
rows: mineAll.filter((r) => !/AI\s*面试/i.test(tp(r))).map(slim),
|
|
388
|
-
},
|
|
389
|
-
...(notes.length ? { note: notes.join(';') } : {}),
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
return out;
|
|
393
|
-
}
|
|
394
|
-
const listInput = {
|
|
395
|
-
type: { type: 'string', enum: ['demand', 'position', 'entry', 'offer', 'interview', 'candidate'], description: '列表类型' },
|
|
396
|
-
pageSize: { type: 'integer', minimum: 1, maximum: 200, description: '每页行数(默认 10;feedbackTodo 默认 200)' },
|
|
397
|
-
current: { type: 'integer', minimum: 1, description: '页码(默认 1)' },
|
|
398
|
-
positionId: { type: 'string', description: '按职位 id 客户端精确筛选(服务端筛选部分列表不可靠)' },
|
|
399
|
-
talentId: { type: 'string', description: '按人才 id 客户端精确筛选' },
|
|
400
|
-
candidateManageId: { type: 'string', description: '按应聘批次 id 客户端精确筛选' },
|
|
401
|
-
recent: { type: 'integer', minimum: 1, description: '近 N 天(按 start_time 本地过滤)' },
|
|
402
|
-
sort: { type: 'string', description: '按 dataKey 倒序排序(如 start_time)' },
|
|
403
|
-
all: { type: 'boolean', description: '翻页取全(末页判据=页内行数 < pageSize)' },
|
|
404
|
-
maxPages: { type: 'integer', minimum: 1, maximum: 50, description: 'all 模式最大页数(默认 20;feedbackTodo 默认 5)' },
|
|
405
|
-
};
|
|
406
|
-
export const listOperations = [
|
|
407
|
-
{
|
|
408
|
-
name: 'ehr.recruit.stage.list',
|
|
409
|
-
resource: 'recruit.list',
|
|
410
|
-
method: 'query',
|
|
411
|
-
action: 'list',
|
|
412
|
-
summary: '招聘 6 类列表查询(需求/职位/入职/录用/面试/应聘者):displayData 显示层优先、客户端筛选/时间过滤/排序、总数三态不造假',
|
|
413
|
-
capability: 'recruit.list',
|
|
414
|
-
risk: 'read',
|
|
415
|
-
inputSchema: schemaOf(listInput, { required: ['type'] }),
|
|
416
|
-
handler: async (args, env) => rsSuccess('ehr.recruit.stage.list', await runList(env, args, false)),
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
name: 'ehr.recruit.stage.interview.feedbackTodo',
|
|
420
|
-
resource: 'recruit.interview',
|
|
421
|
-
method: 'query',
|
|
422
|
-
action: 'interview.feedbackTodo',
|
|
423
|
-
summary: '面试待办:只返回我作为面试官的待反馈清单(后端 TO_FEEDBACK 已含「已完成+有录像+未填意见」语义);myAiPendingFeedback 主清单 + myOtherPendingFeedback 附带',
|
|
424
|
-
capability: 'recruit.interview.feedback',
|
|
425
|
-
risk: 'read',
|
|
426
|
-
inputSchema: schemaOf({
|
|
427
|
-
pageSize: listInput.pageSize, maxPages: listInput.maxPages,
|
|
428
|
-
}, {}),
|
|
429
|
-
handler: async (args, env) => rsSuccess('ehr.recruit.stage.interview.feedbackTodo', await runList(env, { ...args, type: 'interview' }, true)),
|
|
430
|
-
},
|
|
431
|
-
];
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { RecruitStageCliError } from '../errors.js';
|
|
2
|
-
import { jdCreateOperations } from './jd-create.js';
|
|
3
|
-
import { resumeImportOperations } from './resume-import.js';
|
|
4
|
-
import { interviewArrangeOperations } from './interview-arrange.js';
|
|
5
|
-
import { interviewFeedbackOperations } from './interview-feedback.js';
|
|
6
|
-
import { listOperations } from './list.js';
|
|
7
|
-
import { searchOperations } from './search.js';
|
|
8
|
-
const definitions = [
|
|
9
|
-
...searchOperations,
|
|
10
|
-
...listOperations,
|
|
11
|
-
...jdCreateOperations,
|
|
12
|
-
...resumeImportOperations,
|
|
13
|
-
...interviewArrangeOperations,
|
|
14
|
-
...interviewFeedbackOperations,
|
|
15
|
-
];
|
|
16
|
-
const registry = new Map();
|
|
17
|
-
for (const definition of definitions) {
|
|
18
|
-
if (registry.has(definition.name)) {
|
|
19
|
-
throw new Error(`duplicate recruit-stage operation: ${definition.name}`);
|
|
20
|
-
}
|
|
21
|
-
registry.set(definition.name, definition);
|
|
22
|
-
}
|
|
23
|
-
export function recruitStageOperationDefinitions() {
|
|
24
|
-
return [...registry.values()];
|
|
25
|
-
}
|
|
26
|
-
export function getRecruitStageOperation(operation) {
|
|
27
|
-
const definition = registry.get(operation);
|
|
28
|
-
if (!definition) {
|
|
29
|
-
throw new RecruitStageCliError('validation', 'operation_unknown', `招聘助手不支持操作:${operation}`, {
|
|
30
|
-
exitCode: 1,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return definition;
|
|
34
|
-
}
|
|
35
|
-
export async function executeRecruitStageOperation(operation, input, env) {
|
|
36
|
-
const definition = getRecruitStageOperation(operation);
|
|
37
|
-
// 拒绝未声明参数(2026-11-07):与 ehr 标准入口一致,防「参数名写错被静默忽略」。
|
|
38
|
-
// 例:candidate.interview.arrange.* 的时间参数是 startTime/endTime,stage.interview.arrange.* 是 start/end,
|
|
39
|
-
// 传错时摘要里的 time 会变成 null 而不报错。
|
|
40
|
-
const schema = definition.inputSchema;
|
|
41
|
-
if (schema && schema.additionalProperties === false) {
|
|
42
|
-
const known = Object.keys((schema.properties || {}));
|
|
43
|
-
const unknown = Object.keys(input || {}).filter((key) => !known.includes(key));
|
|
44
|
-
if (unknown.length > 0) {
|
|
45
|
-
throw new RecruitStageCliError('validation', 'unknown_argument', `未知参数:${unknown.join('、')}。本操作支持的参数:${known.length ? known.join('、') : '(无)'}。`
|
|
46
|
-
+ '参数名写错会被静默忽略并返回看似正常的结果,请按上面的参数名重传。', { exitCode: 1 });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return definition.handler(input, env);
|
|
50
|
-
}
|