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
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
hasMeetingOperation,
|
|
6
6
|
meetingOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LOVAIGM2.js";
|
|
8
|
+
import "./chunk-5CY37VLS.js";
|
|
9
|
+
import "./chunk-4OB22YKE.js";
|
|
10
|
+
import "./chunk-G3ZM57PD.js";
|
|
11
11
|
import "./chunk-WMRNO6IU.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QAMIIFP6.js";
|
|
13
|
+
import "./chunk-IGICM3WJ.js";
|
|
14
|
+
import "./chunk-HEJPVXD3.js";
|
|
15
|
+
import "./chunk-SHBDXEUE.js";
|
|
16
|
+
import "./chunk-I4C2KR2G.js";
|
|
17
|
+
import "./chunk-BY3WDJO5.js";
|
|
18
|
+
import "./chunk-TNFIUZ4H.js";
|
|
19
19
|
import "./chunk-7BDPM5ST.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-6VCQLZXE.js";
|
|
21
21
|
import "./chunk-UG5G54VL.js";
|
|
22
22
|
import "./chunk-BUSC6UAE.js";
|
|
23
23
|
export {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
getWorkflowOperation,
|
|
5
5
|
hasWorkflowOperation,
|
|
6
6
|
workflowOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GOBNIGWS.js";
|
|
8
8
|
import "./chunk-HP7JIYMT.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
10
|
import "./chunk-SHX7XBYR.js";
|
|
11
11
|
import "./chunk-AJ62BGAW.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-TJN4PIYO.js";
|
|
14
|
+
import "./chunk-6VCQLZXE.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
17
17
|
export {
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getHrmOperation,
|
|
5
5
|
hasHrmOperation,
|
|
6
6
|
hrmOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-IN6NXQ26.js";
|
|
8
|
+
import "./chunk-C4YQJFZV.js";
|
|
9
9
|
import "./chunk-5QYE52LG.js";
|
|
10
10
|
import "./chunk-JEQHNNSS.js";
|
|
11
11
|
import "./chunk-56EZERK4.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
esbOperationDefinitions,
|
|
5
5
|
getEsbOperation,
|
|
6
6
|
hasEsbOperation
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-6G2JARDK.js";
|
|
8
|
+
import "./chunk-GQK6WLOS.js";
|
|
9
9
|
import "./chunk-TXUG266F.js";
|
|
10
10
|
import "./chunk-7BDPM5ST.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-RV2JAA5I.js";
|
|
12
|
+
import "./chunk-TJN4PIYO.js";
|
|
13
|
+
import "./chunk-6VCQLZXE.js";
|
|
14
14
|
import "./chunk-UG5G54VL.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
loadRooms,
|
|
8
8
|
recommendRooms,
|
|
9
9
|
rememberFrequentRoom
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-SHBDXEUE.js";
|
|
11
|
+
import "./chunk-I4C2KR2G.js";
|
|
12
|
+
import "./chunk-BY3WDJO5.js";
|
|
13
|
+
import "./chunk-TNFIUZ4H.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
resolveMeetingScheduleTypeIds,
|
|
9
9
|
resolveMemberIdsByName,
|
|
10
10
|
runScheduleConflictFlow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HEJPVXD3.js";
|
|
12
|
+
import "./chunk-I4C2KR2G.js";
|
|
13
|
+
import "./chunk-BY3WDJO5.js";
|
|
14
|
+
import "./chunk-TNFIUZ4H.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
createE10RequestRuntime,
|
|
16
16
|
isE10SessionExpiredResponse,
|
|
17
17
|
requireE10Session
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RV2JAA5I.js";
|
|
19
|
+
import "./chunk-TJN4PIYO.js";
|
|
19
20
|
import {
|
|
20
21
|
getActiveProfile
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-SHYQUBY3.js";
|
|
22
|
+
} from "./chunk-6VCQLZXE.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createWorkflowHost
|
|
5
|
+
} from "./chunk-THMBDCRA.js";
|
|
3
6
|
import {
|
|
4
7
|
USER_INTENT_RULE_FILE,
|
|
5
8
|
aigroupUserDir,
|
|
@@ -14,13 +17,10 @@ import {
|
|
|
14
17
|
validateRuleFile,
|
|
15
18
|
workflowOperationDefinitions,
|
|
16
19
|
workflowSuccess
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GOBNIGWS.js";
|
|
18
21
|
import {
|
|
19
22
|
createWorkflowContinuationSigner
|
|
20
23
|
} from "./chunk-HP7JIYMT.js";
|
|
21
|
-
import {
|
|
22
|
-
createWorkflowHost
|
|
23
|
-
} from "./chunk-P6TXQK75.js";
|
|
24
24
|
import {
|
|
25
25
|
CLARIFICATION_SUBTYPE,
|
|
26
26
|
WorkflowCliError,
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
reportPlatformError
|
|
33
33
|
} from "./chunk-6N4JPNFL.js";
|
|
34
34
|
import "./chunk-7BDPM5ST.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-RV2JAA5I.js";
|
|
36
|
+
import "./chunk-TJN4PIYO.js";
|
|
37
|
+
import "./chunk-6VCQLZXE.js";
|
|
38
38
|
import {
|
|
39
39
|
isCliError,
|
|
40
40
|
toErrorEnvelope
|
|
@@ -112,6 +112,9 @@ function clarificationEnvelope(error, operation) {
|
|
|
112
112
|
}
|
|
113
113
|
function clarificationNote(reason, candidateCount) {
|
|
114
114
|
const base = "\u8FD9\u4E0D\u662F\u5931\u8D25\uFF0C\u4E5F**\u4E0D\u4EE3\u8868\u67E5\u8BE2\u5DF2\u6267\u884C**\uFF1A\u672C\u6B21\u67E5\u8BE2\u5DF2\u505C\u6B62\uFF0C\u6CA1\u6709\u8FD4\u56DE\u4EFB\u4F55\u6D41\u7A0B\u6570\u636E\u3002";
|
|
115
|
+
if (reason === "no_matching_todos") {
|
|
116
|
+
return "\u5DF2\u6309\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u6838\u5B9E\u5168\u90E8\u5339\u914D\u5DE5\u4F5C\u6D41\u7684\u5F85\u529E\u6570\u91CF\uFF0C\u7ED3\u679C\u5747\u4E3A0\u3002\u8BF7\u5982\u5B9E\u544A\u77E5\u7528\u6237\u5F53\u524D\u6761\u4EF6\u4E0B\u6CA1\u6709\u5F85\u529E\uFF1B\u4E0D\u8981\u5F39\u51FA\u7A7A\u9009\u62E9\u6846\u3001\u81EA\u52A8\u7ED1\u5B9A\u5DE5\u4F5C\u6D41\u6216\u8981\u6C42\u7528\u6237\u91CD\u65B0\u63D0\u4F9B\u540D\u79F0\u3002";
|
|
117
|
+
}
|
|
115
118
|
if (reason === "workflow_required") {
|
|
116
119
|
return "\u672C\u6B21\u547D\u4EE4**\u6CA1\u6709\u62FF\u5230\u5FC5\u586B\u5165\u53C2 `workflow`**\uFF08\u6CA1\u5199\u8FD9\u4E2A\u952E\u3001\u7A7A\u6570\u7EC4\u3001\u7A7A\u5B57\u7B26\u4E32\u90FD\u7B97\u6CA1\u7ED9\uFF09\u2014\u2014\u547D\u4EE4\u505C\u5728\u4E86\u67E5\u8BE2\u4E4B\u524D\uFF1A**\u6CA1\u6709\u53D1\u8D77\u4EFB\u4F55\u6D41\u7A0B**\uFF0C\u4E5F\u6CA1\u6709\u53BB\u67E5\u53EF\u53D1\u8D77\u5217\u8868\uFF0C\u8FD9\u65E2\u4E0D\u662F\u6267\u884C\u5931\u8D25\uFF0C\u4E5F\u4E0D\u4EE3\u8868\u300C\u6CA1\u6709\u5339\u914D\u7684\u6D41\u7A0B\u300D\u3002\u8BF7\u5148\u5411\u7528\u6237\u786E\u8BA4\u8981\u53D1\u8D77\u54EA\u4E2A\u6D41\u7A0B\uFF08**\u5FC5\u987B\u95EE\uFF0C\u4E0D\u8981\u81EA\u5DF1\u731C\uFF0C\u4E5F\u4E0D\u8981\u62FF\u76F8\u4F3C\u7684\u540D\u5B57\u4EE3\u66FF**\uFF09\uFF0C\u518D\u6309 `requiredInput.workflow` \u7ED9\u51FA\u7684\u5F62\u6001\u628A\u5165\u53C2\u8865\u4E0A\u3001\u91CD\u53D1\u540C\u4E00\u6761\u547D\u4EE4\u3002\u6CE8\u610F `--input` \u63A5\u6536\u7684\u662F**\u6587\u4EF6\u8DEF\u5F84**\uFF08`-` \u8868\u793A\u6807\u51C6\u8F93\u5165\uFF09\uFF0C\u5185\u8054 JSON \u8981\u7528 `--input-json`\u3002";
|
|
117
120
|
}
|
package/dist/index.js
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
firstPositionalToken,
|
|
8
8
|
registerCommands,
|
|
9
9
|
toCommandMetadata
|
|
10
|
-
} from "./chunks/chunk-
|
|
10
|
+
} from "./chunks/chunk-QZYKZ7MQ.js";
|
|
11
11
|
import "./chunks/chunk-SHX7XBYR.js";
|
|
12
12
|
import "./chunks/chunk-AJ62BGAW.js";
|
|
13
|
-
import "./chunks/chunk-
|
|
13
|
+
import "./chunks/chunk-SDPC7BG2.js";
|
|
14
14
|
import "./chunks/chunk-6N4JPNFL.js";
|
|
15
|
-
import "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-
|
|
17
|
-
import "./chunks/chunk-
|
|
15
|
+
import "./chunks/chunk-RV2JAA5I.js";
|
|
16
|
+
import "./chunks/chunk-TJN4PIYO.js";
|
|
17
|
+
import "./chunks/chunk-6VCQLZXE.js";
|
|
18
18
|
import "./chunks/chunk-UG5G54VL.js";
|
|
19
19
|
import "./chunks/chunk-BUSC6UAE.js";
|
|
20
20
|
|
|
@@ -31,7 +31,7 @@ function lazyShortcut(definition) {
|
|
|
31
31
|
placeholder.allowExcessArguments(true);
|
|
32
32
|
placeholder.helpOption(false);
|
|
33
33
|
placeholder.action(async () => {
|
|
34
|
-
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-
|
|
34
|
+
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-OYE6QV24.js");
|
|
35
35
|
await dispatchLazyShortcut(definition, shortcutMetadata());
|
|
36
36
|
});
|
|
37
37
|
}
|
|
@@ -41,142 +41,142 @@ var builtinShortcuts = [
|
|
|
41
41
|
lazyShortcut({
|
|
42
42
|
name: "invoice",
|
|
43
43
|
description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
|
|
44
|
-
load: async () => (await import("./chunks/invoice-
|
|
44
|
+
load: async () => (await import("./chunks/invoice-4WY32PR2.js")).invoiceShortcut
|
|
45
45
|
}),
|
|
46
46
|
lazyShortcut({
|
|
47
47
|
name: "ehr",
|
|
48
48
|
description: "\u6CDB\u5FAEE10\u805A\u624D\u6797\uFF08\u4EBA\u4E8B/\u51FA\u52E4/\u85AA\u916C\uFF09CLI",
|
|
49
|
-
load: async () => (await import("./chunks/ehr-
|
|
49
|
+
load: async () => (await import("./chunks/ehr-QQH2DYYA.js")).ehrShortcut
|
|
50
50
|
}),
|
|
51
51
|
lazyShortcut({
|
|
52
52
|
name: "recruit-stage",
|
|
53
53
|
description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
|
|
54
|
-
load: async () => (await import("./chunks/recruit-stage-
|
|
54
|
+
load: async () => (await import("./chunks/recruit-stage-4HQ6OGXT.js")).recruitStageShortcut
|
|
55
55
|
}),
|
|
56
56
|
lazyShortcut({
|
|
57
57
|
name: "performance",
|
|
58
58
|
description: "\u6CDB\u5FAEE10\u7EE9\u6548\u65B9\u6848\uFF08\u6587\u6863\u5BFC\u5165/\u5B9E\u4F53\u89E3\u6790/\u843D\u8349\u7A3F/\u786E\u8BA4\u53D1\u5E03\uFF09CLI",
|
|
59
|
-
load: async () => (await import("./chunks/performance-
|
|
59
|
+
load: async () => (await import("./chunks/performance-4VBKUPFO.js")).performanceShortcut
|
|
60
60
|
}),
|
|
61
61
|
lazyShortcut({
|
|
62
62
|
name: "cowork",
|
|
63
63
|
description: "\u6CDB\u5FAEE10\u534F\u4F5C\u533A\uFF08\u534F\u4F5C\u4E8B\u9879/\u8BA8\u8BBA/\u5BA1\u6279/\u5171\u4EAB\u6743\u9650\uFF09CLI",
|
|
64
|
-
load: async () => (await import("./chunks/cowork-
|
|
64
|
+
load: async () => (await import("./chunks/cowork-FZAXE6FO.js")).coworkShortcut
|
|
65
65
|
}),
|
|
66
66
|
lazyShortcut({
|
|
67
67
|
name: "archive",
|
|
68
68
|
description: "E10 \u6587\u4E66\u5B9A\u6863\u6848\u7BA1\u7406 CLI",
|
|
69
|
-
load: async () => (await import("./chunks/archive-
|
|
69
|
+
load: async () => (await import("./chunks/archive-BLDYBZDX.js")).archiveShortcut
|
|
70
70
|
}),
|
|
71
71
|
lazyShortcut({
|
|
72
72
|
name: "archive-oa",
|
|
73
73
|
description: "E10 \u6863\u6848\u5B9A\u4F4D\u4E0E OA \u5546\u52A1\u5408\u540C\u501F\u9605 CLI",
|
|
74
|
-
load: async () => (await import("./chunks/archive-oa-
|
|
74
|
+
load: async () => (await import("./chunks/archive-oa-3GJ3TWXR.js")).archiveOaShortcut
|
|
75
75
|
}),
|
|
76
76
|
lazyShortcut({
|
|
77
77
|
name: "calendar",
|
|
78
78
|
description: "\u6CDB\u5FAEE10\u65E5\u7A0B\u7BA1\u7406 CLI\uFF08\u521B\u5EFA/\u67E5\u8BE2/\u66F4\u65B0/\u5220\u9664/\u5B57\u5178\uFF09",
|
|
79
|
-
load: async () => (await import("./chunks/calendar-
|
|
79
|
+
load: async () => (await import("./chunks/calendar-E26ZIH7S.js")).calendarShortcut
|
|
80
80
|
}),
|
|
81
81
|
lazyShortcut({
|
|
82
82
|
name: "fna",
|
|
83
83
|
description: "\u6CDB\u5FAEE10\u9F50\u4E1A\u6210\u8D39\u63A7\u4E2D\u5FC3\uFF08\u9884\u7B97/\u8D39\u7528\u4E2D\u5FC3/\u501F\u6B3E\u7BA1\u7406/\u53D1\u7968\u6838\u9500\uFF09CLI",
|
|
84
|
-
load: async () => (await import("./chunks/fna-
|
|
84
|
+
load: async () => (await import("./chunks/fna-3V2TL6B2.js")).fnaShortcut
|
|
85
85
|
}),
|
|
86
86
|
lazyShortcut({
|
|
87
87
|
name: "hrm",
|
|
88
88
|
description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
|
|
89
|
-
load: async () => (await import("./chunks/hrm-
|
|
89
|
+
load: async () => (await import("./chunks/hrm-OL3IKN7C.js")).hrmShortcut
|
|
90
90
|
}),
|
|
91
91
|
lazyShortcut({
|
|
92
92
|
name: "mail",
|
|
93
93
|
description: "\u6CDB\u5FAEE10\u90AE\u4EF6\u7BA1\u7406 CLI",
|
|
94
|
-
load: async () => (await import("./chunks/mail-
|
|
94
|
+
load: async () => (await import("./chunks/mail-PZV2KNRU.js")).mailShortcut
|
|
95
95
|
}),
|
|
96
96
|
lazyShortcut({
|
|
97
97
|
name: "meeting",
|
|
98
98
|
description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
|
|
99
|
-
load: async () => (await import("./chunks/meeting-
|
|
99
|
+
load: async () => (await import("./chunks/meeting-6SOBCC6N.js")).meetingShortcut
|
|
100
100
|
}),
|
|
101
101
|
lazyShortcut({
|
|
102
102
|
name: "okr",
|
|
103
103
|
description: "\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406 CLI\uFF08\u76EE\u6807\u67E5\u8BE2/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\uFF09",
|
|
104
|
-
load: async () => (await import("./chunks/okr-
|
|
104
|
+
load: async () => (await import("./chunks/okr-B76FW5M2.js")).okrShortcut
|
|
105
105
|
}),
|
|
106
106
|
lazyShortcut({
|
|
107
107
|
name: "plan",
|
|
108
108
|
description: "\u6CDB\u5FAEE10\u8BA1\u5212\u62A5\u544A CLI\uFF08\u67E5\u8BE2/\u65B0\u5EFA/\u4FEE\u6539/\u53D1\u5E03/\u64A4\u56DE/\u63D0\u4EA4\u63D0\u9192/\u8BC4\u8BBA\uFF09",
|
|
109
|
-
load: async () => (await import("./chunks/plan-
|
|
109
|
+
load: async () => (await import("./chunks/plan-HBNZRQTI.js")).planShortcut
|
|
110
110
|
}),
|
|
111
111
|
lazyShortcut({
|
|
112
112
|
name: "esb",
|
|
113
113
|
description: "\u6CDB\u5FAEE10 ESB \u4E2D\u5FC3\u81EA\u5B9A\u4E49\u89E6\u53D1\u52A8\u4F5C\u6D41 CLI",
|
|
114
|
-
load: async () => (await import("./chunks/esb-
|
|
114
|
+
load: async () => (await import("./chunks/esb-I5ZFHJUK.js")).esbShortcut
|
|
115
115
|
}),
|
|
116
116
|
lazyShortcut({
|
|
117
117
|
name: "ebuilder-form",
|
|
118
118
|
description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
|
|
119
|
-
load: async () => (await import("./chunks/ebuilder-form-
|
|
119
|
+
load: async () => (await import("./chunks/ebuilder-form-DEYHX6M7.js")).ebuilderFormShortcut
|
|
120
120
|
}),
|
|
121
121
|
lazyShortcut({
|
|
122
122
|
name: "jiuchuanhui",
|
|
123
123
|
description: "\u6CDB\u5FAEE10\u4E5D\u6C1A\u6C47\u8425\u9500\u7BA1\u7406 CLI\uFF08\u5BA2\u6237/\u8054\u7CFB\u4EBA/\u5546\u673A/\u7EBF\u7D22/\u8054\u7CFB\u8BA1\u5212/\u516C\u6D77\uFF09",
|
|
124
|
-
load: async () => (await import("./chunks/jiuchuanhui-
|
|
124
|
+
load: async () => (await import("./chunks/jiuchuanhui-L6SHLONH.js")).jiuchuanhuiShortcut
|
|
125
125
|
}),
|
|
126
126
|
lazyShortcut({
|
|
127
127
|
name: "asset",
|
|
128
128
|
description: "E10 \u8D44\u4EA7\u7BA1\u7406\uFF08\u8D44\u7BA1\u5BB6\uFF09CLI",
|
|
129
|
-
load: async () => (await import("./chunks/asset-
|
|
129
|
+
load: async () => (await import("./chunks/asset-AFXJN4CK.js")).assetShortcut
|
|
130
130
|
}),
|
|
131
131
|
lazyShortcut({
|
|
132
132
|
name: "asset-idle",
|
|
133
133
|
description: "E10 \u95F2\u7F6E\u8D44\u4EA7\u5224\u5B9A\u7ED3\u679C\u67E5\u8BE2 CLI\uFF08\u5206\u9875\u83B7\u53D6/\u805A\u5408\u7EDF\u8BA1\uFF09",
|
|
134
|
-
load: async () => (await import("./chunks/asset-idle-
|
|
134
|
+
load: async () => (await import("./chunks/asset-idle-VUJXWGWJ.js")).assetIdleShortcut
|
|
135
135
|
}),
|
|
136
136
|
lazyShortcut({
|
|
137
137
|
name: "im",
|
|
138
138
|
description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
|
|
139
|
-
load: async () => (await import("./chunks/im-
|
|
139
|
+
load: async () => (await import("./chunks/im-YXQWUF3R.js")).imShortcut
|
|
140
140
|
}),
|
|
141
141
|
lazyShortcut({
|
|
142
142
|
name: "project",
|
|
143
143
|
description: "\u6CDB\u5FAEE10\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406 CLI\uFF08\u9879\u76EE/\u4EFB\u52A1\u67E5\u8BE2\u4E0E\u786E\u8BA4\u5199\u5165\uFF09",
|
|
144
|
-
load: async () => (await import("./chunks/project-
|
|
144
|
+
load: async () => (await import("./chunks/project-IV6FWK74.js")).projectShortcut
|
|
145
145
|
}),
|
|
146
146
|
lazyShortcut({
|
|
147
147
|
name: "workflow",
|
|
148
148
|
description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
|
|
149
|
-
load: async () => (await import("./chunks/workflow-
|
|
149
|
+
load: async () => (await import("./chunks/workflow-6HV7H5PC.js")).workflowShortcut
|
|
150
150
|
}),
|
|
151
151
|
lazyShortcut({
|
|
152
152
|
name: "blog",
|
|
153
153
|
description: "\u6CDB\u5FAEE10\u5DE5\u4F5C\u65E5\u62A5 CLI\uFF08\u67E5\u8BE2/\u53D1\u5E03/\u7F16\u8F91/\u8BC4\u8BBA/\u70B9\u8D5E/\u63D0\u9192/\u5BFC\u51FA\uFF09",
|
|
154
|
-
load: async () => (await import("./chunks/blog-
|
|
154
|
+
load: async () => (await import("./chunks/blog-EREB35VU.js")).blogShortcut
|
|
155
155
|
}),
|
|
156
156
|
lazyShortcut({
|
|
157
157
|
name: "caizhilian",
|
|
158
158
|
description: "\u6CDB\u5FAEE10\u91C7\u77E5\u8FDE\uFF08\u6587\u6863\u4E2D\u5FC3\uFF09CLI",
|
|
159
|
-
load: async () => (await import("./chunks/caizhilian-
|
|
159
|
+
load: async () => (await import("./chunks/caizhilian-ATM2JO5S.js")).caizhilianShortcut
|
|
160
160
|
}),
|
|
161
161
|
lazyShortcut({
|
|
162
162
|
name: "contract",
|
|
163
163
|
description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
|
|
164
|
-
load: async () => (await import("./chunks/contract-
|
|
164
|
+
load: async () => (await import("./chunks/contract-PLO2V2NO.js")).contractShortcut
|
|
165
165
|
}),
|
|
166
166
|
lazyShortcut({
|
|
167
167
|
name: "reception",
|
|
168
168
|
description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
|
|
169
|
-
load: async () => (await import("./chunks/reception-
|
|
169
|
+
load: async () => (await import("./chunks/reception-BR5YURT6.js")).receptionShortcut
|
|
170
170
|
}),
|
|
171
171
|
lazyShortcut({
|
|
172
172
|
name: "smart-extract",
|
|
173
173
|
description: "\u6CDB\u5FAEE10\u667A\u80FD\u62BD\u53D6 CLI\uFF08\u8868\u5355\u7ED3\u6784 / \u9644\u4EF6\u6B63\u6587 / \u6821\u9A8C\u5E76\u843D\u5E93\uFF0C\u8FD4\u56DE aiExtraId\uFF09",
|
|
174
|
-
load: async () => (await import("./chunks/smart-extract-
|
|
174
|
+
load: async () => (await import("./chunks/smart-extract-QKAEAZGM.js")).smartExtractShortcut
|
|
175
175
|
}),
|
|
176
176
|
lazyShortcut({
|
|
177
177
|
name: "data",
|
|
178
178
|
description: "\u6CDB\u5FAEE10\u6570\u636E\u52A9\u624B CLI\uFF08\u6570\u636E\u6E90\u67E5\u8BE2 / \u914D\u7F6E\u4E2D\u5FC3 / \u573A\u666F\u5B9A\u4F4D\uFF09",
|
|
179
|
-
load: async () => (await import("./chunks/data-
|
|
179
|
+
load: async () => (await import("./chunks/data-7NXMWET4.js")).dataShortcut
|
|
180
180
|
})
|
|
181
181
|
];
|
|
182
182
|
function shortcutMetadata() {
|
|
@@ -353,7 +353,25 @@ export function resolvePromotionKeyword(agentType) {
|
|
|
353
353
|
const matched = PROMOTION_KEYWORD_RULES.find(({ aliases }) => aliases.some((alias) => normalized.startsWith(alias)));
|
|
354
354
|
return matched ? matched.keyword : '';
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
/**
|
|
357
|
+
* 推广来源标识(`promotionSource`):E10「推广来源」字典里的泛微标识。
|
|
358
|
+
*
|
|
359
|
+
* 字典由 E10 侧维护(千问-et 连接器 188、豆包-et 连接器 187、workbuddy-et 连接器 186),
|
|
360
|
+
* 这里按 `promotionKeyword` 反查。字典里没有对应行的(如小 e、Codex)不下发,
|
|
361
|
+
* 由 E10 按未标注来源处理,不要臆造编号。
|
|
362
|
+
*/
|
|
363
|
+
const PROMOTION_SOURCES = {
|
|
364
|
+
qianwen: '188',
|
|
365
|
+
doubao: '187',
|
|
366
|
+
workbuddy: '186',
|
|
367
|
+
};
|
|
368
|
+
/** 由推广关键字反查 `promotionSource`;字典里没有时返回空串(调用方不下发该参数)。 */
|
|
369
|
+
export function resolvePromotionSource(promotionKeyword) {
|
|
370
|
+
if (!promotionKeyword)
|
|
371
|
+
return '';
|
|
372
|
+
return PROMOTION_SOURCES[promotionKeyword] || '';
|
|
373
|
+
}
|
|
374
|
+
export function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType, promotionKeyword = resolvePromotionKeyword(agentType), promotionSource = resolvePromotionSource(promotionKeyword)) {
|
|
357
375
|
const authorizeParams = new URLSearchParams({
|
|
358
376
|
redirect_uri: redirectUri,
|
|
359
377
|
response_type: 'code',
|
|
@@ -363,6 +381,8 @@ export function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType, promotionK
|
|
|
363
381
|
});
|
|
364
382
|
if (promotionKeyword)
|
|
365
383
|
authorizeParams.set('promotionKeyword', promotionKeyword);
|
|
384
|
+
if (promotionSource)
|
|
385
|
+
authorizeParams.set('promotionSource', promotionSource);
|
|
366
386
|
return `${baseUrl}/papi/sso/oauth2.0/authorize?${authorizeParams.toString()}`;
|
|
367
387
|
}
|
|
368
388
|
/** Node's HTTP parser exposes the first unread bytes when TLS is sent to an HTTP listener. */
|
|
@@ -79,12 +79,16 @@ const XIAOE_SCRIPT_DIAGNOSTIC_MAX_LENGTH = 2_000;
|
|
|
79
79
|
* - `0000` / `200` 成功,`data.eteamId` 是 E10 一次性票据;
|
|
80
80
|
* - `3006` Authorization 缺失或被拒(`token无效,禁止登录!`)→ 登录态失效;
|
|
81
81
|
* - `2001` `未找到可用的e10系统`——domain 在该小E 账号下匹配不到已绑定的 E10
|
|
82
|
-
*
|
|
82
|
+
* 系统。匹配是**严格字符串**:必须 `https://` + 主机名,**带端口也会失配**
|
|
83
|
+
* (实测 `https://www.e-cology.com.cn:443` 就是 2001,去掉端口才 0000),
|
|
84
|
+
* 带路径同样失配;主机名大小写不影响;
|
|
85
|
+
* - `3005` 同一个 小E 账号在别处登录(旧会话被顶掉);
|
|
83
86
|
* - `4000` domain 命中 eteams 但该账号没建过通用型应用。
|
|
84
87
|
* 只打裸业务码没法区分这几种,恢复日志会全部归到「凭证不可用」。
|
|
85
88
|
*/
|
|
86
89
|
const XIAOE_EXCHANGE_CODE_HINTS = {
|
|
87
|
-
'2001': 'The XiaoE account is not bound to an E10 system on this domain; check the E10 baseUrl and the XiaoE-side binding.',
|
|
90
|
+
'2001': 'The XiaoE account is not bound to an E10 system on this domain; check the E10 baseUrl and the XiaoE-side binding. The domain must be a bare https:// host: a port or a path never matches.',
|
|
91
|
+
'3005': 'The same XiaoE account signed in elsewhere; sign in to the XiaoE client again.',
|
|
88
92
|
'3006': 'The XiaoE session token was rejected; sign in to the XiaoE client again.',
|
|
89
93
|
'4000': 'No generic app has been created for this domain on the eteams side.',
|
|
90
94
|
};
|
|
@@ -184,6 +184,23 @@ function responseText(response) {
|
|
|
184
184
|
}
|
|
185
185
|
return '';
|
|
186
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* 业务侧的「无权限」文案。E10 某些接口(如 /api/bs/hr/**、/api/bs/hrm/**)在**用户权限不足**时
|
|
189
|
+
* 也返回 `code: 401` + `message: 没有权限`,与「登录态失效」同码。
|
|
190
|
+
*
|
|
191
|
+
* 2026-11-18 实测:`ehr.hr.report.dept.table` 被这两条混同后,CLI 会先尝试一次 XiaoE 会话恢复
|
|
192
|
+
* (约 1.1 s)再重发同一个请求,命中同样的 401,最终才报错——一次权限不足 = 两次请求 + 1.1 s 白等。
|
|
193
|
+
* 因此带这些文案的 401 一律按**业务错误**处理,不触发认证恢复。
|
|
194
|
+
*/
|
|
195
|
+
const PERMISSION_DENIED_MARKERS = [
|
|
196
|
+
'没有权限',
|
|
197
|
+
'无权限',
|
|
198
|
+
'权限不足',
|
|
199
|
+
'无操作权限',
|
|
200
|
+
'permission denied',
|
|
201
|
+
'forbidden',
|
|
202
|
+
'access denied',
|
|
203
|
+
];
|
|
187
204
|
/**
|
|
188
205
|
* Detect only explicit authentication rejection signals. A bare HTTP 403 is
|
|
189
206
|
* deliberately excluded because E10 also uses it for ordinary permission
|
|
@@ -192,11 +209,20 @@ function responseText(response) {
|
|
|
192
209
|
* 3xx 只在「跳到登录页」或「无法判定」时才算认证失败:下载接口把文件交接给
|
|
193
210
|
* 文件服务时同样返回 302,那不是登录失效,重新登录既无用也会白白换一次票据。
|
|
194
211
|
*/
|
|
195
|
-
export function isE10AuthenticationRequired(response) {
|
|
212
|
+
export function isE10AuthenticationRequired(response, options = {}) {
|
|
196
213
|
if (isE10SessionExpiredResponse(response))
|
|
197
214
|
return true;
|
|
198
|
-
if (responseCodes(response.value).some((code) => AUTH_REQUIRED_CODES.has(code)))
|
|
215
|
+
if (responseCodes(response.value).some((code) => AUTH_REQUIRED_CODES.has(code))) {
|
|
216
|
+
// 文案明确是「权限不足」→ 业务错误,不做会话恢复(见 PERMISSION_DENIED_MARKERS 注释)。
|
|
217
|
+
// 该判定只在调用方显式声明 scope(当前为 /api/recruit/*)时启用:其他模块保持历史行为,
|
|
218
|
+
// 由调用方决定是否收窄,避免全局改变非目标模块的失败路径。
|
|
219
|
+
if (options.permissionDeniedAsBusiness) {
|
|
220
|
+
const text = responseText(response).toLowerCase();
|
|
221
|
+
if (PERMISSION_DENIED_MARKERS.some((marker) => text.includes(marker.toLowerCase())))
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
199
224
|
return true;
|
|
225
|
+
}
|
|
200
226
|
const text = responseText(response).toLowerCase();
|
|
201
227
|
if (!text)
|
|
202
228
|
return false;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CliError, ExitCode } from '../../core/errors.js';
|
|
2
2
|
import { classifyE10Redirect, isE10AuthenticationRequired, recoverXiaoEAuthSession, sameE10SessionIdentity, } from './auth-recovery.js';
|
|
3
3
|
import { startFetchTiming } from './fetch-timing.js';
|
|
4
|
+
import { startRequestTrace } from './request-trace.js';
|
|
4
5
|
import { readErrorCauseCode } from './network-error.js';
|
|
5
6
|
import { E10_XIAOE_RECOVERY_FAILED_MESSAGE } from './auth/messages.js';
|
|
6
7
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
@@ -77,7 +78,11 @@ export class E10RequestRuntime {
|
|
|
77
78
|
if (!mutable.streamBody
|
|
78
79
|
// 已交接给文件服务的响应不是 E10 的接口回答,登录态不该由它判定。
|
|
79
80
|
&& !attempt.fromFileRedirect
|
|
80
|
-
&& isE10AuthenticationRequired(authenticationProbe(mutable, attempt.parsed)
|
|
81
|
+
&& isE10AuthenticationRequired(authenticationProbe(mutable, attempt.parsed), {
|
|
82
|
+
// 🔴 范围收窄(2026-11-18 用户口径):只有招聘接口才把「没有权限」当业务错误;
|
|
83
|
+
// 其他模块(出勤/薪酬/人事基础等)保持历史行为,不因本优化改变失败路径。
|
|
84
|
+
permissionDeniedAsBusiness: mutable.path.startsWith('/api/recruit/'),
|
|
85
|
+
})
|
|
81
86
|
&& await this.recoverExpiredSession(requestEteamsId)) {
|
|
82
87
|
// Authentication rejection is a definitive pre-business failure. Retry
|
|
83
88
|
// exactly once with the new session; never retry transport/partial errors.
|
|
@@ -95,7 +100,11 @@ export class E10RequestRuntime {
|
|
|
95
100
|
const url = withQuery(this.session.getBaseUrl(), request.path, request.query);
|
|
96
101
|
const headers = this.composeHeaders(request, trustedHeaders);
|
|
97
102
|
const init = this.buildFetchInit(request, headers);
|
|
98
|
-
const
|
|
103
|
+
const traceDone = startRequestTrace(request);
|
|
104
|
+
const response = await this.fetchWithTimeout(url, init, request.timeoutMs).catch((error) => {
|
|
105
|
+
traceDone?.({ ok: false, note: 'fetch-error' });
|
|
106
|
+
throw error;
|
|
107
|
+
});
|
|
99
108
|
// 二进制下载:E10 常以 302 把文件交接给文件服务/对象存储。这里直接跟过去
|
|
100
109
|
// 取字节,既不会把「文件流」当成登录失效,也不会触发无谓的重新登录。
|
|
101
110
|
const followed = request.responseType === 'binary'
|
|
@@ -111,7 +120,10 @@ export class E10RequestRuntime {
|
|
|
111
120
|
});
|
|
112
121
|
}
|
|
113
122
|
return {
|
|
114
|
-
parsed: await this.readResponse(followed.response, request.responseType, request.bigIntStrings, request.maxResponseBytes, request.timeoutMs)
|
|
123
|
+
parsed: await this.readResponse(followed.response, request.responseType, request.bigIntStrings, request.maxResponseBytes, request.timeoutMs).then((parsed) => {
|
|
124
|
+
traceDone?.({ ok: followed.response.ok, status: followed.response.status });
|
|
125
|
+
return parsed;
|
|
126
|
+
}),
|
|
115
127
|
fromFileRedirect: followed.followed,
|
|
116
128
|
};
|
|
117
129
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 请求级耗时追踪(`E10_TRACE_REQ=1` 开启)。
|
|
3
|
+
*
|
|
4
|
+
* 为什么放在 `E10RequestRuntime`:所有 shortcut(ehr / recruit-stage / workflow …)都从这里发请求,
|
|
5
|
+
* 一处埋点即可覆盖全部能力,不需要每个 operation 各写一遍 `mark()`。
|
|
6
|
+
*
|
|
7
|
+
* 输出规范:
|
|
8
|
+
* - 每条请求一行 `[req N] GET /api/xxx 123ms`,写 **stderr**,不影响 `--json` 的 stdout 纯净度;
|
|
9
|
+
* - 进程退出时补一行 `[req-summary] count=.. total=..`,并按 path 聚合给出热点。
|
|
10
|
+
*
|
|
11
|
+
* 未开启时 `startRequestTrace()` 返回 `null`,调用方走 `?.()` 短路,非追踪路径零额外开销。
|
|
12
|
+
*/
|
|
13
|
+
const items = [];
|
|
14
|
+
let exitHookRegistered = false;
|
|
15
|
+
let seqCounter = 0;
|
|
16
|
+
/** 进程内起点:用来观察「第一个请求发出前,CLI 自己花了多少时间」 */
|
|
17
|
+
const startedAtBase = Date.now();
|
|
18
|
+
function enabled() {
|
|
19
|
+
return process.env.E10_TRACE_REQ === '1';
|
|
20
|
+
}
|
|
21
|
+
function ensureExitHook() {
|
|
22
|
+
if (exitHookRegistered)
|
|
23
|
+
return;
|
|
24
|
+
exitHookRegistered = true;
|
|
25
|
+
process.on('exit', () => {
|
|
26
|
+
if (items.length === 0)
|
|
27
|
+
return;
|
|
28
|
+
const total = items.reduce((sum, item) => sum + item.ms, 0);
|
|
29
|
+
const lines = [
|
|
30
|
+
`[req-summary] count=${items.length} total=${total}ms avg=${Math.round(total / items.length)}ms`,
|
|
31
|
+
];
|
|
32
|
+
// 按路径前缀(前 3 段)聚合,暴露「同一接口被反复调用」的 N+1
|
|
33
|
+
const groups = new Map();
|
|
34
|
+
for (const item of items) {
|
|
35
|
+
const key = item.path.split('/').filter(Boolean).slice(0, 3).join('/');
|
|
36
|
+
const prev = groups.get(key) ?? { count: 0, ms: 0 };
|
|
37
|
+
groups.set(key, { count: prev.count + 1, ms: prev.ms + item.ms });
|
|
38
|
+
}
|
|
39
|
+
for (const [key, value] of [...groups.entries()].sort((a, b) => b[1].ms - a[1].ms)) {
|
|
40
|
+
lines.push(`[req-group] /${key} ×${value.count} ${value.ms}ms`);
|
|
41
|
+
}
|
|
42
|
+
process.stderr.write(`${lines.join('\n')}\n`);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export function startRequestTrace(request) {
|
|
46
|
+
if (!enabled())
|
|
47
|
+
return null;
|
|
48
|
+
ensureExitHook();
|
|
49
|
+
seqCounter += 1;
|
|
50
|
+
const seq = seqCounter;
|
|
51
|
+
const method = (request.method ?? 'GET').toUpperCase();
|
|
52
|
+
const offset = Date.now() - startedAtBase;
|
|
53
|
+
const startedAt = Date.now();
|
|
54
|
+
let done = false;
|
|
55
|
+
return (outcome) => {
|
|
56
|
+
if (done)
|
|
57
|
+
return;
|
|
58
|
+
done = true;
|
|
59
|
+
const ms = Date.now() - startedAt;
|
|
60
|
+
items.push({ seq, method, path: request.path, ms, ok: outcome.ok, note: outcome.note });
|
|
61
|
+
const status = outcome.status === undefined ? '' : ` ${outcome.status}`;
|
|
62
|
+
const note = outcome.note ? ` ${outcome.note}` : '';
|
|
63
|
+
process.stderr.write(`[req ${String(seq).padStart(2)}] t=+${offset}ms ${method} ${request.path} ${ms}ms${status}${note}\n`);
|
|
64
|
+
};
|
|
65
|
+
}
|