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
|
@@ -27,7 +27,7 @@ function parsePortalName(field) {
|
|
|
27
27
|
}
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
|
-
// 兼容分支:creator 为纯数字 ID 时,走 hrm
|
|
30
|
+
// 兼容分支:creator 为纯数字 ID 时,走 hrm 人员批量解析(destData/resource,一次最多 100 自动分批)
|
|
31
31
|
async function resolvePureIds(host, ids) {
|
|
32
32
|
const uniq = [...new Set(ids.filter((x) => x != null && ID_RE.test(String(x).trim())).map((x) => String(x).trim()))];
|
|
33
33
|
const map = {};
|
|
@@ -37,11 +37,11 @@ async function resolvePureIds(host, ids) {
|
|
|
37
37
|
const batch = uniq.slice(i, i + 100);
|
|
38
38
|
try {
|
|
39
39
|
const r = await host.request({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
method: 'POST',
|
|
41
|
+
path: '/api/hrm/common/browser/destData/resource',
|
|
42
|
+
body: { browserMultiple: true, selectIds: batch.join(',') },
|
|
43
43
|
});
|
|
44
|
-
for (const u of (r?.data?.
|
|
44
|
+
for (const u of (r?.data?.data || [])) {
|
|
45
45
|
if (u?.id != null)
|
|
46
46
|
map[String(u.id)] = u.name || null;
|
|
47
47
|
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { rsSuccess, schemaOf } from './types.js';
|
|
2
|
+
import { rsFail, rsValidationError, rsConfirmationError } from '../errors.js';
|
|
3
|
+
/** 个人标签固定调色板(平台要求 color 必填;不随机,按名字稳定取色) */
|
|
4
|
+
const TAG_COLORS = ['#E8F6FE', '#EAF7EA', '#FFF4E0', '#FDE9E9', '#F0EAFF', '#E8F6F7'];
|
|
5
|
+
function colorOf(name) {
|
|
6
|
+
let h = 0;
|
|
7
|
+
for (let i = 0; i < name.length; i += 1)
|
|
8
|
+
h = (h * 31 + name.charCodeAt(i)) % 100000;
|
|
9
|
+
return TAG_COLORS[h % TAG_COLORS.length];
|
|
10
|
+
}
|
|
11
|
+
function normName(v) {
|
|
12
|
+
return String(v == null ? '' : v).trim();
|
|
13
|
+
}
|
|
14
|
+
/** 按名精确探测同名公共/个人标签(一次并发两类型) */
|
|
15
|
+
async function probeTag(host, name) {
|
|
16
|
+
const bodyOf = (type) => {
|
|
17
|
+
const body = { type, name, order: 8, pageSize: 100, pageNo: 1, search: 1, tagGroup: 0 };
|
|
18
|
+
// 公共标签池按「招聘域 ∪ all」查:只传 ebuilderform 会漏掉已转 recruit 模块的公共标签(2026-11-19 release 实测 total 0)
|
|
19
|
+
if (type === 0)
|
|
20
|
+
body.tagModules = ['recruit'];
|
|
21
|
+
return body;
|
|
22
|
+
};
|
|
23
|
+
const rs = await Promise.all([0, 1].map((type) => host.request({
|
|
24
|
+
path: '/api/my/tag/query', method: 'POST', body: bodyOf(type),
|
|
25
|
+
}).catch(() => null)));
|
|
26
|
+
const out = {};
|
|
27
|
+
const lower = name.toLowerCase();
|
|
28
|
+
for (const r of rs) {
|
|
29
|
+
const list = r?.data?.data;
|
|
30
|
+
if (!Array.isArray(list))
|
|
31
|
+
continue;
|
|
32
|
+
for (const t of list) {
|
|
33
|
+
if (!t || !t.tagId)
|
|
34
|
+
continue;
|
|
35
|
+
if (normName(t.name).toLowerCase() !== lower)
|
|
36
|
+
continue;
|
|
37
|
+
const item = { id: String(t.tagId), name: String(t.name), type: Number(t.type ?? 0) };
|
|
38
|
+
// 服务端按名模糊,必须再精确比对一次,避免「Java」命中「JavaScript」
|
|
39
|
+
if (item.type === 0 && !out.publicTag)
|
|
40
|
+
out.publicTag = item;
|
|
41
|
+
if (item.type === 1 && !out.personalTag)
|
|
42
|
+
out.personalTag = item;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return out;
|
|
46
|
+
}
|
|
47
|
+
async function createPersonalTag(host, name) {
|
|
48
|
+
const r = await host.request({
|
|
49
|
+
path: '/api/my/tag/create', method: 'POST',
|
|
50
|
+
body: { name, type: 1, color: colorOf(name) },
|
|
51
|
+
});
|
|
52
|
+
const id = r?.data?.tagId;
|
|
53
|
+
if (!id)
|
|
54
|
+
throw rsFail(`创建个人标签失败:${name}(${r?.msg || '未返回 tagId'})`);
|
|
55
|
+
return { id: String(id), name, type: 1 };
|
|
56
|
+
}
|
|
57
|
+
/** 请求里 tags 允许两种写法:字符串名,或 {name, preferPublic?} */
|
|
58
|
+
function normalizeRequests(raw) {
|
|
59
|
+
if (!Array.isArray(raw))
|
|
60
|
+
throw rsValidationError('tags_required', 'tags 必须是数组(元素为标签名或 {name, prefer, reason})');
|
|
61
|
+
const out = [];
|
|
62
|
+
const seen = new Set();
|
|
63
|
+
for (const item of raw) {
|
|
64
|
+
const obj = typeof item === 'string' ? { name: item } : (item || {});
|
|
65
|
+
const name = normName(obj.name);
|
|
66
|
+
if (!name)
|
|
67
|
+
throw rsValidationError('tag_name_required', '标签名不能为空');
|
|
68
|
+
if (seen.has(name))
|
|
69
|
+
continue;
|
|
70
|
+
seen.add(name);
|
|
71
|
+
const preferRaw = String(obj.prefer || obj.target || 'auto').toLowerCase();
|
|
72
|
+
const prefer = preferRaw === 'public' ? 'public' : preferRaw === 'personal' ? 'personal' : 'auto';
|
|
73
|
+
out.push({ name, prefer, reason: obj.reason ? String(obj.reason) : undefined });
|
|
74
|
+
}
|
|
75
|
+
if (!out.length)
|
|
76
|
+
throw rsValidationError('tags_required', '至少给一个标签');
|
|
77
|
+
if (out.length > 8)
|
|
78
|
+
throw rsValidationError('too_many_tags', '一次最多 8 个标签(AI 推荐应控制在这个量级)');
|
|
79
|
+
return out;
|
|
80
|
+
}
|
|
81
|
+
async function buildPlan(host, args, talentId) {
|
|
82
|
+
const requests = normalizeRequests(args.tags);
|
|
83
|
+
const probes = await Promise.all(requests.map((rq) => probeTag(host, rq.name).catch(() => ({}))));
|
|
84
|
+
const items = requests.map((rq, i) => {
|
|
85
|
+
const p = probes[i] || {};
|
|
86
|
+
// 同名公共优先;用户显式 prefer=public 但公共不存在时,退回个人(个人才是可建的目标)
|
|
87
|
+
if (p.publicTag && rq.prefer !== 'personal') {
|
|
88
|
+
return { name: rq.name, action: 'attach-public', tagId: p.publicTag.id, type: 0, reason: rq.reason, existed: true };
|
|
89
|
+
}
|
|
90
|
+
if (p.personalTag) {
|
|
91
|
+
return { name: rq.name, action: 'attach-personal', tagId: p.personalTag.id, type: 1, reason: rq.reason, existed: true };
|
|
92
|
+
}
|
|
93
|
+
return { name: rq.name, action: 'create-personal', tagId: null, type: 1, reason: rq.reason, existed: false };
|
|
94
|
+
});
|
|
95
|
+
const counts = {
|
|
96
|
+
attachPublic: items.filter((x) => x.action === 'attach-public').length,
|
|
97
|
+
attachPersonal: items.filter((x) => x.action === 'attach-personal').length,
|
|
98
|
+
createPersonal: items.filter((x) => x.action === 'create-personal').length,
|
|
99
|
+
};
|
|
100
|
+
return { talentId, items, counts };
|
|
101
|
+
}
|
|
102
|
+
function listOperation() {
|
|
103
|
+
return {
|
|
104
|
+
name: 'recruit-stage.tag.list',
|
|
105
|
+
resource: 'recruit.tag',
|
|
106
|
+
method: 'POST',
|
|
107
|
+
action: 'tag.list',
|
|
108
|
+
summary: '列出平台标签库(type=0 公共 / 1 个人),可按关键词过滤;用于推荐前先查重、复用已有标签',
|
|
109
|
+
capability: 'recruit.tag',
|
|
110
|
+
risk: 'read',
|
|
111
|
+
inputSchema: schemaOf({
|
|
112
|
+
type: { type: 'integer', enum: [0, 1], description: '0=公共标签(全企业),1=个人标签(仅自己可见)' },
|
|
113
|
+
keyword: { type: 'string', description: '名称关键词(服务端模糊匹配)' },
|
|
114
|
+
pageSize: { type: 'integer', minimum: 1, maximum: 100, description: '默认 50' },
|
|
115
|
+
current: { type: 'integer', minimum: 1 },
|
|
116
|
+
}),
|
|
117
|
+
handler: async (args, env) => {
|
|
118
|
+
const type = Number(args.type ?? 0) === 1 ? 1 : 0;
|
|
119
|
+
const body = {
|
|
120
|
+
type, name: normName(args.keyword), order: 8,
|
|
121
|
+
pageSize: Number(args.pageSize ?? 50), pageNo: Number(args.current ?? 1),
|
|
122
|
+
search: 1, tagGroup: 0,
|
|
123
|
+
};
|
|
124
|
+
// 公共标签按「招聘域 ∪ all」返回,避免漏掉 recruit 模块标签
|
|
125
|
+
if (type === 0)
|
|
126
|
+
body.tagModules = ['recruit'];
|
|
127
|
+
const r = await env.host.request({ path: '/api/my/tag/query', method: 'POST', body });
|
|
128
|
+
const list = r?.data?.data;
|
|
129
|
+
if (!Array.isArray(list))
|
|
130
|
+
throw rsFail('标签库查询失败:' + (r?.msg || '无返回'), { response: r });
|
|
131
|
+
return rsSuccess('tag.list', {
|
|
132
|
+
type: type === 0 ? 'public' : 'personal',
|
|
133
|
+
total: Number(r?.data?.total ?? list.length),
|
|
134
|
+
tags: list.map((t) => ({
|
|
135
|
+
tagId: String(t.tagId), name: String(t.name), type: Number(t.type ?? 0),
|
|
136
|
+
color: t.color || '', creator: t.creator || '',
|
|
137
|
+
})),
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function prepareOperation() {
|
|
143
|
+
return {
|
|
144
|
+
name: 'recruit-stage.tag.attach.prepare',
|
|
145
|
+
resource: 'recruit.tag',
|
|
146
|
+
method: 'POST',
|
|
147
|
+
action: 'tag.attach.prepare',
|
|
148
|
+
summary: '给人才挂标签的确认摘要:公共命中→挂公共、个人已有→复用、库中不存在→新建个人标签;不落库',
|
|
149
|
+
capability: 'recruit.tag',
|
|
150
|
+
risk: 'read',
|
|
151
|
+
inputSchema: schemaOf({
|
|
152
|
+
talentId: { type: 'string', description: '人才 id' },
|
|
153
|
+
tags: {
|
|
154
|
+
type: 'array',
|
|
155
|
+
description: '标签清单;元素可为字符串,或 {name, prefer:"public"|"personal"|"auto", reason}',
|
|
156
|
+
items: { type: ['string', 'object'] },
|
|
157
|
+
},
|
|
158
|
+
}, { required: ['talentId', 'tags'] }),
|
|
159
|
+
handler: async (args, env) => {
|
|
160
|
+
const talentId = normName(args.talentId);
|
|
161
|
+
if (!talentId)
|
|
162
|
+
throw rsValidationError('talent_id_required', '请提供 talentId');
|
|
163
|
+
const plan = await buildPlan(env.host, args, talentId);
|
|
164
|
+
const existing = await Promise.all([0, 1].map(async (type) => {
|
|
165
|
+
try {
|
|
166
|
+
const r = await env.host.request({
|
|
167
|
+
path: '/api/my/tag/common/queryEntityTag', method: 'POST',
|
|
168
|
+
body: { entityId: talentId, module: 'ebuilderform', type },
|
|
169
|
+
});
|
|
170
|
+
const list = r?.data;
|
|
171
|
+
return Array.isArray(list) ? list.map((t) => String(t.content || t.name || '')) : [];
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
return [];
|
|
175
|
+
}
|
|
176
|
+
}));
|
|
177
|
+
const continuation = await env.continuation.issue({
|
|
178
|
+
operation: 'recruit-stage.tag.attach.apply',
|
|
179
|
+
fingerprint: JSON.stringify({ talentId, items: plan.items.map((x) => ({ name: x.name, action: x.action, tagId: x.tagId })) }),
|
|
180
|
+
argsSnapshot: { talentId, tags: plan.items.map((x) => ({ name: x.name, action: x.action, tagId: x.tagId })) },
|
|
181
|
+
});
|
|
182
|
+
return rsSuccess('tag.attach.prepare', {
|
|
183
|
+
talentId,
|
|
184
|
+
currentTags: { public: existing[0], personal: existing[1] },
|
|
185
|
+
items: plan.items,
|
|
186
|
+
counts: plan.counts,
|
|
187
|
+
note: '确认后执行:库中已有的直接挂、库中没有的按名字新建为个人标签再挂(同名公共优先,不会在已有公共标签下再造个人副本)。',
|
|
188
|
+
continuation,
|
|
189
|
+
}, { continuation });
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function applyOperation() {
|
|
194
|
+
return {
|
|
195
|
+
name: 'recruit-stage.tag.attach.apply',
|
|
196
|
+
resource: 'recruit.tag',
|
|
197
|
+
method: 'POST',
|
|
198
|
+
action: 'tag.attach.apply',
|
|
199
|
+
summary: '确认后给人才挂标签:新建缺失的个人标签 → batchAddEntityTag → 回查确认',
|
|
200
|
+
capability: 'recruit.tag',
|
|
201
|
+
risk: 'write',
|
|
202
|
+
requiresConfirmation: true,
|
|
203
|
+
inputSchema: schemaOf({
|
|
204
|
+
talentId: { type: 'string' },
|
|
205
|
+
tags: { type: 'array', items: { type: ['string', 'object'] }, description: '与 prepare 相同(可省略,以 continuation 为准)' },
|
|
206
|
+
confirm: { type: 'boolean' },
|
|
207
|
+
continuation: { type: 'string' },
|
|
208
|
+
}, { required: ['continuation', 'confirm'] }),
|
|
209
|
+
handler: async (args, env) => {
|
|
210
|
+
if (args.confirm !== true)
|
|
211
|
+
throw rsConfirmationError('recruit-stage.tag.attach.apply', { hint: '请先 prepare 并把摘要给用户确认' });
|
|
212
|
+
const payload = await env.continuation.verify(String(args.continuation), 'recruit-stage.tag.attach.apply');
|
|
213
|
+
const snapshot = payload?.argsSnapshot || {};
|
|
214
|
+
const talentId = normName(args.talentId || snapshot.talentId);
|
|
215
|
+
if (!talentId)
|
|
216
|
+
throw rsValidationError('talent_id_required', 'continuation 缺少 talentId,请重新 prepare');
|
|
217
|
+
const planItems = Array.isArray(snapshot.tags) ? snapshot.tags : [];
|
|
218
|
+
if (!planItems.length)
|
|
219
|
+
throw rsValidationError('plan_empty', 'continuation 中没有标签计划,请重新 prepare');
|
|
220
|
+
// 指纹一致性:用户若在 apply 里改了标签清单,必须重新 prepare
|
|
221
|
+
if (Array.isArray(args.tags) && args.tags.length) {
|
|
222
|
+
const now = normalizeRequests(args.tags).map((x) => x.name);
|
|
223
|
+
const planned = planItems.map((x) => x.name);
|
|
224
|
+
if (JSON.stringify(now) !== JSON.stringify(planned)) {
|
|
225
|
+
throw rsValidationError('plan_changed', '标签清单与确认摘要不一致,请重新 prepare');
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const created = [];
|
|
229
|
+
const attach = [];
|
|
230
|
+
for (const item of planItems) {
|
|
231
|
+
if (item.action === 'create-personal') {
|
|
232
|
+
// 建前再查一次:并发/他人刚建过就复用,避免同名重复建
|
|
233
|
+
const p = await probeTag(env.host, item.name).catch(() => ({}));
|
|
234
|
+
const hit = p.personalTag || p.publicTag;
|
|
235
|
+
if (hit) {
|
|
236
|
+
attach.push({ id: hit.id, name: hit.name, type: hit.type, from: 'reused-after-create-probe' });
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
const t = await createPersonalTag(env.host, item.name);
|
|
240
|
+
created.push({ name: t.name, id: t.id });
|
|
241
|
+
attach.push({ id: t.id, name: t.name, type: 1, from: 'created' });
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
if (!item.tagId)
|
|
245
|
+
throw rsFail(`标签「${item.name}」缺少 tagId,请重新 prepare`);
|
|
246
|
+
attach.push({ id: String(item.tagId), name: item.name, type: item.action === 'attach-public' ? 0 : 1, from: 'existing' });
|
|
247
|
+
}
|
|
248
|
+
const write = await env.host.request({
|
|
249
|
+
path: '/api/my/tag/common/batchAddEntityTag', method: 'POST',
|
|
250
|
+
body: {
|
|
251
|
+
tags: attach.map((x) => ({ id: x.id, name: x.name, type: x.type })),
|
|
252
|
+
batchDatas: [{ entityId: talentId, module: 'ebuilderform' }],
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
if (write?.status === false) {
|
|
256
|
+
throw rsFail('挂标签失败:' + (write?.msg || '接口返回失败'), { created, attach });
|
|
257
|
+
}
|
|
258
|
+
// 回查(唯一能发现「接口成功但实际没挂上」的通道)
|
|
259
|
+
const after = { public: [], personal: [] };
|
|
260
|
+
for (const type of [0, 1]) {
|
|
261
|
+
try {
|
|
262
|
+
const r = await env.host.request({
|
|
263
|
+
path: '/api/my/tag/common/queryEntityTag', method: 'POST',
|
|
264
|
+
body: { entityId: talentId, module: 'ebuilderform', type },
|
|
265
|
+
});
|
|
266
|
+
const list = r?.data;
|
|
267
|
+
const names = Array.isArray(list) ? list.map((t) => String(t.content || t.name || '')) : [];
|
|
268
|
+
if (type === 0)
|
|
269
|
+
after.public = names;
|
|
270
|
+
else
|
|
271
|
+
after.personal = names;
|
|
272
|
+
}
|
|
273
|
+
catch { /* 回查失败不影响写入结论,但会在 verification 里标空 */ }
|
|
274
|
+
}
|
|
275
|
+
const missing = attach.filter((x) => !(x.type === 0 ? after.public : after.personal).includes(x.name)).map((x) => x.name);
|
|
276
|
+
return rsSuccess('tag.attach.apply', {
|
|
277
|
+
talentId,
|
|
278
|
+
created,
|
|
279
|
+
attached: attach,
|
|
280
|
+
after,
|
|
281
|
+
verification: { ok: missing.length === 0, missing },
|
|
282
|
+
});
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
export const tagOperations = [listOperation(), prepareOperation(), applyOperation()];
|
|
@@ -42,6 +42,8 @@ export const WORKFLOW_ENDPOINTS = {
|
|
|
42
42
|
/** 待办总数 / 列表 */
|
|
43
43
|
TODO_TOTAL: '/api/workflow/list/total/getTodoListTotal',
|
|
44
44
|
TODO_LIST: '/api/workflow/list/data/getTodoListData',
|
|
45
|
+
/** 待办分类树:流程大类/父类型下的工作流名称与归属类型。 */
|
|
46
|
+
TODO_TREE: '/api/workflow/list/tree/getTodoListTree',
|
|
45
47
|
/** 待办分组计数(按工作流/参与节点/参与身份三元组) */
|
|
46
48
|
TODO_GROUP_STAT: '/api/workflow/list/count/getTodoGroupCount',
|
|
47
49
|
/** 智能分组:AI 待办汇总产物落库(返回落库主键 id;2026-11-13 用户定稿) */
|
|
@@ -53,17 +53,14 @@ const READONLY_COMPONENTS = new Set([
|
|
|
53
53
|
'dividingline', 'paragraph', 'slidercomponent', 'button', 'subtablecontrol', 'mobileinteraction',
|
|
54
54
|
]);
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* 发票字段(`EinvoiceComponent`)沿用浏览按钮口径:值来自 `[{id, name}]` 的 `id`,出参标
|
|
57
|
+
* `isBrowser`,小e 传参给 id 拼 `##` 前缀。
|
|
57
58
|
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* 与浏览按钮的记录 id 同性质。凡按 `isBrowser` 分流的场合(出参 `isBrowser` 标记、
|
|
61
|
-
* 小e URL 参数的 `##` 前缀)都要用本判定把这两个组件补上。**只做对外口径补齐,
|
|
62
|
-
* 不改 `extractFields` 的 `isBrowser` 计算**——那会影响值解析/联动等内部分支,超出本判据的职责。
|
|
59
|
+
* 附件(`FileComponent`)**不是浏览按钮**(2026-11-19 用户裁定):出参不标 `isBrowser`,
|
|
60
|
+
* 小e 传参也不拼 `##`,`fileid` 原样传。
|
|
63
61
|
*/
|
|
64
|
-
function
|
|
65
|
-
|
|
66
|
-
return normalized === 'einvoicecomponent' || normalized === 'filecomponent';
|
|
62
|
+
function isInvoiceComponentKey(componentKey) {
|
|
63
|
+
return String(componentKey ?? '').toLowerCase() === 'einvoicecomponent';
|
|
67
64
|
}
|
|
68
65
|
/** 系统字段键:流程标题/紧急程度/密级;流程编号 REQUESTMARK 忽略不校验。 */
|
|
69
66
|
const SYSTEM_FIELD_KEYS = {
|
|
@@ -2342,8 +2339,8 @@ async function buildCreateFormData(workflowId, env, options = {}) {
|
|
|
2342
2339
|
if (field[key])
|
|
2343
2340
|
item[key] = field[key];
|
|
2344
2341
|
}
|
|
2345
|
-
//
|
|
2346
|
-
if (!item.isBrowser &&
|
|
2342
|
+
// 发票字段的值也是对象 id,对外沿用 `isBrowser`;附件不是浏览按钮,不标(2026-11-19 用户裁定)。
|
|
2343
|
+
if (!item.isBrowser && isInvoiceComponentKey(field.componentKey))
|
|
2347
2344
|
item.isBrowser = true;
|
|
2348
2345
|
if (String(field.componentKey ?? '').toLowerCase() === 'employeescope')
|
|
2349
2346
|
item.isEmployeeScope = true;
|
|
@@ -4850,7 +4847,8 @@ function xiaoEUrlParamValue(value, prefixBrowserId = false) {
|
|
|
4850
4847
|
* **浏览按钮字段的值加 `##` 前缀**(2026-11-02 用户裁定,见 `XIAOE_BROWSER_ID_PREFIX`):这类字段解析
|
|
4851
4848
|
* 出来的每一段都是对象 id,写成 `##<id>`;名称(非浏览字段的字符串)原样不加。多值/多行逐个判定,
|
|
4852
4849
|
* 因此 `##<id>,<名称>`、`##<id>;<名称>` 都是合法形态。`src` 末尾的字段参数与这里同源,一起带上。
|
|
4853
|
-
*
|
|
4850
|
+
* 发票字段值同为对象 id、一并加 `##`(见 `isInvoiceComponentKey`);附件**不加**——`fileid` 原样传
|
|
4851
|
+
* (2026-11-19 用户裁定:附件不是浏览按钮)。
|
|
4854
4852
|
*/
|
|
4855
4853
|
/**
|
|
4856
4854
|
* 小e 档交给浏览器页面的字段值:只留**可见且可编辑**的那些(2026-10-21 用户裁定)。
|
|
@@ -4899,12 +4897,11 @@ function xiaoECustomParams(preview, fields) {
|
|
|
4899
4897
|
const detailValues = new Map();
|
|
4900
4898
|
// 「这个字段是不是浏览按钮」决定要不要给对象 id 拼 `##`(2026-11-02 用户裁定)——
|
|
4901
4899
|
// 判据取 `extractFields` 算好的 `isBrowser`,与值解析走的是同一份结论,不在这里二次推断;
|
|
4902
|
-
//
|
|
4903
|
-
// 用 isBrowserLikeComponentKey 一并补上(2026-11-03 用户裁定)。
|
|
4900
|
+
// 发票字段值同为对象 id、出参也标 isBrowser,这里一并纳入(附件不是浏览按钮,不拼前缀)。
|
|
4904
4901
|
const browserFieldIds = new Set();
|
|
4905
4902
|
for (const field of toArray(fields)) {
|
|
4906
4903
|
const id = String(field?.id ?? '').trim();
|
|
4907
|
-
if (id && (field?.isBrowser ||
|
|
4904
|
+
if (id && (field?.isBrowser || isInvoiceComponentKey(field?.componentKey)))
|
|
4908
4905
|
browserFieldIds.add(id);
|
|
4909
4906
|
}
|
|
4910
4907
|
for (const item of toArray(preview)) {
|
|
@@ -467,7 +467,7 @@ function clarificationCandidates(items, limit) {
|
|
|
467
467
|
* - **多命中 → 澄清**并列出候选(`name2id_clarification`,`:8223-8244`;工作流名走 `:10382-10400`);
|
|
468
468
|
* - 多命中但**有唯一全名精确匹配**(`normalize_compare_text` 口径)→ 直接用,不澄清。
|
|
469
469
|
*/
|
|
470
|
-
async function resolveTerm(env, systemKey, rawValue, label) {
|
|
470
|
+
async function resolveTerm(env, systemKey, rawValue, label, workflowNameMatch) {
|
|
471
471
|
const text = asString(rawValue);
|
|
472
472
|
if (!text)
|
|
473
473
|
return null;
|
|
@@ -488,15 +488,15 @@ async function resolveTerm(env, systemKey, rawValue, label) {
|
|
|
488
488
|
+ '本次查询已停止。请核对名称,或提供该对象更完整的名称(或其它可用于检索的关键词)后重发。');
|
|
489
489
|
}
|
|
490
490
|
const exact = candidates.filter((item) => item.name.trim().toLowerCase() === text.trim().toLowerCase());
|
|
491
|
-
if (exact.length === 1)
|
|
491
|
+
if (exact.length === 1 && workflowNameMatch !== 'all')
|
|
492
492
|
return exact[0];
|
|
493
493
|
if (candidates.length === 1)
|
|
494
494
|
return candidates[0];
|
|
495
|
-
//
|
|
496
|
-
const selected = exact.length ? exact : candidates;
|
|
495
|
+
// 默认优先全名精确匹配;待办入口保留模糊匹配全量,再按当前用户的同条件待办数量筛选。
|
|
496
|
+
const selected = exact.length && workflowNameMatch !== 'all' ? exact : candidates;
|
|
497
497
|
if (selected.length === 1)
|
|
498
498
|
return selected[0];
|
|
499
|
-
throw workflowClarificationError(clarificationType, text, `${label}「${text}」匹配到 ${selected.length} 个候选项,请确认要查询的具体${label}。`, clarificationCandidates(selected, 10));
|
|
499
|
+
throw workflowClarificationError(clarificationType, text, `${label}「${text}」匹配到 ${selected.length} 个候选项,请确认要查询的具体${label}。`, clarificationCandidates(selected, systemKey === 'workflowid' ? selected.length : 10));
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
* `workflowTerm=notin`(**排除**语义)的名称解析(2026-11-11 用户定稿)。
|
|
@@ -524,7 +524,7 @@ async function resolveTermForNotin(env, systemKey, rawValue, label) {
|
|
|
524
524
|
return exact;
|
|
525
525
|
if (candidates.length === 1)
|
|
526
526
|
return candidates;
|
|
527
|
-
throw workflowClarificationError(SYSTEM_CLARIFICATION_TYPES[systemKey], text, `${label}「${text}」匹配到 ${candidates.length} 个候选项且无全名精确匹配,排除范围不明确,请确认要排除的具体${label}。`, clarificationCandidates(candidates, 10));
|
|
527
|
+
throw workflowClarificationError(SYSTEM_CLARIFICATION_TYPES[systemKey], text, `${label}「${text}」匹配到 ${candidates.length} 个候选项且无全名精确匹配,排除范围不明确,请确认要排除的具体${label}。`, clarificationCandidates(candidates, systemKey === 'workflowid' ? candidates.length : 10));
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
530
|
* 读取当前环境的紧急程度列表(来源:Python QUERY_DEPENDENCY → data.requestLevelList)。
|
|
@@ -993,7 +993,7 @@ async function resolveFilterFieldItem(env, raw, fields, workflowLabel, ordinal)
|
|
|
993
993
|
throw workflowValidationError('field_type_unsupported', `字段「${field.fieldName}」的组件类型 ${field.componentKey} 暂不支持作为筛选条件(filterFields 第 ${ordinal} 项),`
|
|
994
994
|
+ '本次查询已停止。请改用文本/数值/日期/选项类字段。');
|
|
995
995
|
}
|
|
996
|
-
export async function buildSearchQuery(env, args, mode) {
|
|
996
|
+
export async function buildSearchQuery(env, args, mode, options = {}) {
|
|
997
997
|
// 1. 原始 JSON 直传(--query-json / --query-file 透传;CLI 侧用 queryJson 字段承载)
|
|
998
998
|
const rawJson = args.queryJson;
|
|
999
999
|
let query;
|
|
@@ -1110,7 +1110,7 @@ export async function buildSearchQuery(env, args, mode) {
|
|
|
1110
1110
|
// 2026-11-11:notin(排除)走专用解析——同名多命中全收、0 命中跳过(见 resolveTermForNotin)。
|
|
1111
1111
|
const resolvedList = workflowTerm === 'notin'
|
|
1112
1112
|
? await resolveTermForNotin(env, 'workflowid', w, '工作流')
|
|
1113
|
-
: [await resolveTerm(env, 'workflowid', w, '工作流')].filter((resolved) => resolved !== null);
|
|
1113
|
+
: [await resolveTerm(env, 'workflowid', w, '工作流', options.workflowNameMatch)].filter((resolved) => resolved !== null);
|
|
1114
1114
|
if (workflowTerm === 'notin' && resolvedList.length === 0)
|
|
1115
1115
|
notinMisses.push(String(w));
|
|
1116
1116
|
for (const resolved of resolvedList) {
|
|
@@ -24,7 +24,7 @@ const DISPLAY_ROW_FIELDS = [
|
|
|
24
24
|
'isremark', 'isremarktype',
|
|
25
25
|
'nodeid', 'currentNodeId',
|
|
26
26
|
// 状态位
|
|
27
|
-
'overdue', 'userOverTime',
|
|
27
|
+
'overdue', 'userOverTime', 'handleStatus',
|
|
28
28
|
'requestlevel', 'requestLevelShow', 'requestlevelShow', 'requestlevelTitle',
|
|
29
29
|
// 展示字段
|
|
30
30
|
'requestnamehtml', 'requestnameTitle', 'requestnametitle', 'requestname',
|
|
@@ -63,7 +63,8 @@ export function projectDisplayRows(response, extraFields) {
|
|
|
63
63
|
const picked = {};
|
|
64
64
|
for (const key of DISPLAY_ROW_FIELDS) {
|
|
65
65
|
const value = source[key];
|
|
66
|
-
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean'
|
|
66
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean'
|
|
67
|
+
|| (key === 'handleStatus' && value === null)) {
|
|
67
68
|
picked[key] = value;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -15,11 +15,12 @@ import { COLLECT_FILTER_KEYS, COLLECT_ORDER_KEYS, DEFAULT_CATEGORY, DEFAULT_TABI
|
|
|
15
15
|
const DEFAULT_REQUEST_SUMMARY_MAX = 50;
|
|
16
16
|
export async function collectRawTodos(args, env) {
|
|
17
17
|
const category = readCategory(args.category);
|
|
18
|
-
//
|
|
19
|
-
// 空集 = 规则没配 / 没引用白名单外的字段 ⇒ 取数行为与历史完全一致。
|
|
18
|
+
// 摘要按规则保留原始字段;普通查询还需保留一级优先组使用的原始截止时间。
|
|
20
19
|
const priorityFields = priorityRuleFields();
|
|
21
20
|
const policy = readCollectPolicy(args.outputMode, args.limit);
|
|
22
21
|
const queryOnly = policy.outputMode === 'query';
|
|
22
|
+
if (queryOnly)
|
|
23
|
+
priorityFields.add('curuserovertime');
|
|
23
24
|
const requestedLimit = policy.limit;
|
|
24
25
|
const limit = policy.limit;
|
|
25
26
|
const threshold = policy.threshold;
|
|
@@ -98,7 +99,7 @@ export async function collectRawTodos(args, env) {
|
|
|
98
99
|
};
|
|
99
100
|
// 探总数:报文与列表取数完全一致(去掉 customDisplayPage),路径换成同分类的总数接口。
|
|
100
101
|
const probeTodoTotal = async () => {
|
|
101
|
-
const { query } = await buildSearchQuery(listEnv, { ...searchArgs, current: 1, pageSize }, 'list');
|
|
102
|
+
const { query } = await buildSearchQuery(listEnv, { ...searchArgs, current: 1, pageSize }, 'list', category === 'todo' ? { workflowNameMatch: 'all' } : {});
|
|
102
103
|
const isremarks = String(searchArgs.isremarks ?? '').trim();
|
|
103
104
|
if (isremarks !== '')
|
|
104
105
|
query.params = { ...(query.params || {}), isremarks };
|
|
@@ -186,7 +187,7 @@ export async function collectRawTodos(args, env) {
|
|
|
186
187
|
// 翻页:按 current 递增,取到「累计达到 limit(若传)/ 空页 / 页不满」为止;
|
|
187
188
|
// limit 不传(不限条数)时翻到数据取完为止(2026-11-11 用户定稿:不再有页数/条数上限)。
|
|
188
189
|
for (let pageNo = 1; limit === null || (policy.strictLimit ? items.length < limit : pageNo <= (plannedPages ?? 0)); pageNo += 1) {
|
|
189
|
-
const { query, warnings: buildWarnings } = await buildSearchQuery(listEnv, { ...searchArgs, current: pageNo, pageSize }, 'list');
|
|
190
|
+
const { query, warnings: buildWarnings } = await buildSearchQuery(listEnv, { ...searchArgs, current: pageNo, pageSize }, 'list', category === 'todo' ? { workflowNameMatch: 'all' } : {});
|
|
190
191
|
// notin(排除)语义下 0 命中被跳过的词(2026-11-11):透出,不静默。
|
|
191
192
|
for (const warning of buildWarnings ?? []) {
|
|
192
193
|
if (!warnings.includes(warning))
|
|
@@ -342,12 +343,12 @@ export async function collectRawTodos(args, env) {
|
|
|
342
343
|
const scope = searchArgs.tabid ? `tabid ${searchArgs.tabid}` : '';
|
|
343
344
|
const header = `已获取待办原始数据 ${items.length} 条`
|
|
344
345
|
+ (totalAvailable !== null ? `(共 ${totalAvailable} 条)` : '');
|
|
345
|
-
//
|
|
346
|
+
// 普通查询仅返回原顺序条目;不分组、不准备 AI 素材,也不读取摘要或详情缓存。
|
|
346
347
|
let wfIdGroup = [];
|
|
347
348
|
let groupingBrief = [];
|
|
348
349
|
let groupInfo = null;
|
|
349
350
|
let detailStats = null;
|
|
350
|
-
const grouped = items.length > 0
|
|
351
|
+
const grouped = !queryOnly && items.length > 0
|
|
351
352
|
? runGroup({
|
|
352
353
|
items,
|
|
353
354
|
...(args.groupBy !== undefined ? { groupBy: args.groupBy } : {}),
|
|
@@ -6,10 +6,10 @@ export const UNKNOWN_GROUP = '未分类';
|
|
|
6
6
|
export const UNKNOWN_DATE = '未知日期';
|
|
7
7
|
export const DEFAULT_TOP_N = 10;
|
|
8
8
|
export const STAGE_VALUES = [
|
|
9
|
-
'auto', 'collect', 'group', 'smartGroup',
|
|
9
|
+
'auto', 'prepareQuery', 'collect', 'group', 'smartGroup',
|
|
10
10
|
'summaryContext', 'summary', 'subGroup', 'groupSummaryContext', 'groupSummary',
|
|
11
11
|
'smartGroupAdd',
|
|
12
|
-
'aggregate',
|
|
12
|
+
'aggregate', 'view',
|
|
13
13
|
];
|
|
14
14
|
export function asRecord(value) {
|
|
15
15
|
return value && typeof value === 'object' && !Array.isArray(value) ? value : undefined;
|
|
@@ -425,11 +425,12 @@ export function rowFromAny(raw, extraFields) {
|
|
|
425
425
|
requestId: pick(['requestId', 'requestid', 'request_id', 'id']) ?? '',
|
|
426
426
|
workflowId: pick(['workflowId', 'workflowid', 'workflowtype']) ?? '',
|
|
427
427
|
userMasterId: pick(['userMasterId', 'usermasterid', 'userid']) ?? '',
|
|
428
|
-
isremark: pickNumber(['isremark', 'isRemark']),
|
|
428
|
+
isremark: pickNumber(['isremark', 'isRemark', 'isremarktype']),
|
|
429
429
|
nodeId: pick(['nodeId', 'nodeid', 'currentNodeId']) ?? '',
|
|
430
430
|
overTime: record.overdue === true || record.overTime === true || record.overtime === true,
|
|
431
431
|
userOverTime: pick(['userOverTime', 'userOvertime', 'userovertime']) ?? '',
|
|
432
432
|
requestLevel: pickNumber(['requestLevel', 'requestlevel']),
|
|
433
|
+
...(typeof record.handleStatus === 'boolean' || record.handleStatus === null ? { handleStatus: record.handleStatus } : {}),
|
|
433
434
|
// requestlevelTitle 是纯文本("正常"),requestlevelShow 带 span;两者都清洗后再取。
|
|
434
435
|
requestLevelShow: pick(['requestlevelTitle', 'requestLevelShow', 'requestlevelShow', 'requestLevelText', 'urgency'], true) ?? '',
|
|
435
436
|
requestNameTitle: pick(['requestNameTitle', 'requestnameTitle', 'requestnametitle', 'requestname', 'title', 'flowName'], true) ?? '',
|
|
@@ -304,6 +304,7 @@ export function toRequestData(row) {
|
|
|
304
304
|
userOverTime: row.userOverTime,
|
|
305
305
|
requestLevel: row.requestLevel,
|
|
306
306
|
requestLevelShow: row.requestLevelShow,
|
|
307
|
+
...(typeof row.handleStatus === 'boolean' || row.handleStatus === null ? { handleStatus: row.handleStatus } : {}),
|
|
307
308
|
requestNameTitle: row.requestNameTitle,
|
|
308
309
|
creater: row.creater,
|
|
309
310
|
createrName: row.createrName,
|
|
@@ -4,11 +4,13 @@ import { TIME_DESCRIPTIONS, SORT_OPTIONS } from '../read.js';
|
|
|
4
4
|
import { planTodoOutput } from './todoOutputPlanner.js';
|
|
5
5
|
import { assertKnownKeys, buildSkillTiming, CATEGORY_VALUES, DEFAULT_CATEGORY, DEFAULT_TOP_N, FETCH_PAGE_SIZE, GROUP_BY_VALUES, OUTPUT_MODE_VALUES, readOutputMode, STAGE_VALUES, workflowSuccess, } from './todoSmartConvert.core.js';
|
|
6
6
|
import { collectRawTodos } from './todoSmartConvert.collect.js';
|
|
7
|
+
import { prepareTodoQuery } from './todoSmartConvert.prepareQuery.js';
|
|
8
|
+
import { enrichWorkflowClarification } from './workflowClarification.js';
|
|
7
9
|
import { runSmartConvert } from './todoSmartConvert.aggregate.js';
|
|
8
10
|
import { runGroup } from './todoSmartConvert.group.js';
|
|
9
11
|
import { inferStage, readStage } from './todoSmartConvert.pipeline.js';
|
|
10
|
-
import { runSmartGroup, assemblePriorityGroup, stripPriorityRawFields } from './todoSmartConvert.smartGroup.js';
|
|
11
|
-
import { runSummary, runSummaryContext } from './todoSmartConvert.summary.js';
|
|
12
|
+
import { runSmartGroup, assemblePriorityGroup, stripPriorityRawFields, totalTodoCount } from './todoSmartConvert.smartGroup.js';
|
|
13
|
+
import { readFinalGroups, runSummary, runSummaryContext } from './todoSmartConvert.summary.js';
|
|
12
14
|
import { runSubGroup } from './todoSmartConvert.subGroup.js';
|
|
13
15
|
import { runGroupSummary, runGroupSummaryContext } from './todoSmartConvert.groupSummary.js';
|
|
14
16
|
import { runSmartGroupAdd } from './todoSmartConvert.smartGroupAdd.js';
|
|
@@ -18,13 +20,13 @@ const inputSchema = schemaOf({
|
|
|
18
20
|
type: 'string',
|
|
19
21
|
enum: [...OUTPUT_MODE_VALUES],
|
|
20
22
|
description: 'query:标题清单,默认最多500条,明确扩大时最多1000条;summary:完整摘要,默认及最多100条。'
|
|
21
|
-
+ '
|
|
23
|
+
+ 'collect 无时间条件时按各自条数阈值降级,最低近7天;prepareQuery 不自动改时间范围;不传保留历史取数及降级规则。',
|
|
22
24
|
},
|
|
23
25
|
stage: {
|
|
24
26
|
type: 'string',
|
|
25
27
|
enum: [...STAGE_VALUES],
|
|
26
28
|
default: 'auto',
|
|
27
|
-
description: '阶段:auto、collect、group、smartGroup、summaryContext、summary、groupSummaryContext、groupSummary、smartGroupAdd 或 aggregate。',
|
|
29
|
+
description: '阶段:prepareQuery 准备原生列表查询报文,读取同条件总数及标准列表生成工作流分布,不返回明细或保存ID;其余 auto、collect、group、smartGroup、summaryContext、summary、groupSummaryContext、groupSummary、smartGroupAdd 或 aggregate。',
|
|
28
30
|
},
|
|
29
31
|
items: {
|
|
30
32
|
type: 'array',
|
|
@@ -76,7 +78,7 @@ const inputSchema = schemaOf({
|
|
|
76
78
|
limit: {
|
|
77
79
|
type: 'integer',
|
|
78
80
|
minimum: 1,
|
|
79
|
-
description: 'collect 取数条数:outputMode=query 默认500、最多1000,summary 默认及最多100;显式模式严格限制返回条数。'
|
|
81
|
+
description: 'prepareQuery 默认及最多读取1000条统计分布,CLI与组件各自每页请求500;collect 取数条数:outputMode=query 默认500、最多1000,summary 默认及最多100;显式模式严格限制返回条数。'
|
|
80
82
|
+ '未指定 outputMode 时保留历史行为:不传不限条数,传入值为整页停止阈值。单页最多 ' + FETCH_PAGE_SIZE + ' 条。',
|
|
81
83
|
},
|
|
82
84
|
pageSize: {
|
|
@@ -217,6 +219,25 @@ export const workflowTodoSmartConvertOperations = [{
|
|
|
217
219
|
warnings: warning ? [...extraWarnings, warning] : extraWarnings,
|
|
218
220
|
};
|
|
219
221
|
};
|
|
222
|
+
if (stage === 'prepareQuery') {
|
|
223
|
+
try {
|
|
224
|
+
const result = await prepareTodoQuery(args, env);
|
|
225
|
+
return finish(env, args, startedAt, stage, result, { branch: 'todo-query', stage }, result.warnings);
|
|
226
|
+
}
|
|
227
|
+
catch (error) {
|
|
228
|
+
throw await enrichWorkflowClarification(error, args, env);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (stage === 'view') {
|
|
232
|
+
if (!Array.isArray(args.wfIdGroup))
|
|
233
|
+
throw workflowValidationError('final_groups_required', 'stage=view 需要 wfIdGroup');
|
|
234
|
+
const groups = await readFinalGroups({ wfIdGroup: args.wfIdGroup }, env);
|
|
235
|
+
const final = withPriorityView({
|
|
236
|
+
smartSummaryTitle: typeof args.smartSummaryTitle === 'string' ? args.smartSummaryTitle : '',
|
|
237
|
+
totalCount: totalTodoCount(groups), wfIdGroup: groups,
|
|
238
|
+
}, [], { stripRawFields: true });
|
|
239
|
+
return finish(env, args, startedAt, stage, final.data, { branch: 'todo-smart-convert', stage, deterministic: true });
|
|
240
|
+
}
|
|
220
241
|
if ((stage === 'group' || stage === 'smartGroup' || stage === 'aggregate') && !hasItems) {
|
|
221
242
|
throw workflowValidationError('items_required', 'stage=' + stage + ' 需要 items:先执行 stage=collect,再回灌 data.items。'
|
|
222
243
|
+ '若目标是完整待办汇总交付,请不要手动逐阶段调用——改用编排脚本 todo-summary.cjs 的 run 一键执行'
|
|
@@ -323,7 +344,13 @@ export const workflowTodoSmartConvertOperations = [{
|
|
|
323
344
|
});
|
|
324
345
|
}
|
|
325
346
|
if (stage === 'collect' || !hasItems) {
|
|
326
|
-
|
|
347
|
+
let result;
|
|
348
|
+
try {
|
|
349
|
+
result = await collectRawTodos(args, env);
|
|
350
|
+
}
|
|
351
|
+
catch (error) {
|
|
352
|
+
throw await enrichWorkflowClarification(error, args, env);
|
|
353
|
+
}
|
|
327
354
|
return finish(env, args, startedAt, 'collect', result, {
|
|
328
355
|
branch: 'todo-smart-convert', stage: 'collect',
|
|
329
356
|
}, result.warnings);
|