weaver-work-cli 0.1.73 → 0.1.76
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/README.md +37 -1
- package/dist/chunks/{archive-THZV4ND4.js → archive-ENBSUMHV.js} +14 -9
- package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-7BFPQ6M5.js} +10 -7
- package/dist/chunks/{asset-RGPROZYH.js → asset-V5SUD3PW.js} +10 -7
- package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-3CEL7WFX.js} +7 -4
- package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-24RL44SE.js} +3 -3
- package/dist/chunks/{blog-7U3QZPIF.js → blog-FLI4SS3P.js} +10 -7
- package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-7WCTKCCP.js} +10 -7
- package/dist/chunks/{calendar-KINM64E4.js → calendar-G726HUUH.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
- package/dist/chunks/{chunk-4BXR6CNB.js → chunk-2KW7AI6P.js} +2 -2
- package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
- package/dist/chunks/chunk-2UV4IZIT.js +473 -0
- package/dist/chunks/{chunk-R3MK2RBN.js → chunk-5E2FDXBU.js} +1 -1
- package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
- package/dist/chunks/chunk-7DE3VMZD.js +35 -0
- package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-AZC53XSQ.js} +1 -1
- package/dist/chunks/{chunk-6HT73VOI.js → chunk-BWFCTE43.js} +2 -2
- package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
- package/dist/chunks/{chunk-IU6UB2TD.js → chunk-FPWCCRKT.js} +48 -6
- package/dist/chunks/{chunk-LLCMOZ5L.js → chunk-H6N6U2D6.js} +11 -11
- package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
- package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-F4HM25K4.js → chunk-KJA7CRES.js} +1 -1
- package/dist/chunks/chunk-L5SCNJKX.js +1166 -0
- package/dist/chunks/{chunk-TV46Q4NY.js → chunk-MS7MKBGJ.js} +74 -68
- package/dist/chunks/{chunk-XZBYRYWX.js → chunk-NZQRW4KL.js} +2 -2
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/chunk-OVTCWLNQ.js +1346 -0
- package/dist/chunks/{chunk-NUP4RYZK.js → chunk-PMRNIGKZ.js} +2 -2
- package/dist/chunks/{chunk-2CHGUYMG.js → chunk-Q7RXCK2Y.js} +4 -4
- package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
- package/dist/chunks/{chunk-7QFVXP2X.js → chunk-R4PN3OFK.js} +8 -7
- package/dist/chunks/{chunk-L7TYG5SN.js → chunk-RVEKGVZU.js} +2 -2
- package/dist/chunks/{chunk-2XED2FKY.js → chunk-SQFKBWTR.js} +38 -36
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-IBSJJGXL.js → chunk-T7HVQ2WP.js} +2 -2
- package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TBCKK6LH.js} +2 -2
- package/dist/chunks/{chunk-JMJBPP4B.js → chunk-UDBQJLQF.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-4I26YMBY.js → chunk-WHI6YAUE.js} +7 -3
- package/dist/chunks/{chunk-BWYVS62Z.js → chunk-WJQJ7YEX.js} +4 -4
- package/dist/chunks/{chunk-GAMGDNTF.js → chunk-XNN5PZTI.js} +1 -1
- package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
- package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
- package/dist/chunks/cli-DFLV57LO.js +226 -0
- package/dist/chunks/commands-J52MJ6NF.js +70 -0
- package/dist/chunks/{conflict-VPAR7E6F.js → conflict-72Q6DM4I.js} +2 -2
- package/dist/chunks/{contract-DDXAO2DZ.js → contract-IRNRQ5FY.js} +12446 -5964
- package/dist/chunks/{cowork-34QCHMDD.js → cowork-GZDODGKF.js} +11 -8
- package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-UGTDI7SP.js} +6 -6
- package/dist/chunks/{data-CLQ62QGD.js → data-HTQZRPPI.js} +6 -3
- package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-GHNIZ7ET.js} +9 -6
- package/dist/chunks/{ehr-LCNAVMK5.js → ehr-PHIBBUIG.js} +23 -16
- package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-5WOXFE67.js} +3 -3
- package/dist/chunks/{env-RDKWAARB.js → env-H4ALHESA.js} +2 -2
- package/dist/chunks/{esb-ANKPUU65.js → esb-ATRKVHCD.js} +10 -7
- package/dist/chunks/{factory-434B7RAT.js → factory-COX6AVK7.js} +1 -1
- package/dist/chunks/{fna-AKBSG5HI.js → fna-IKYI3SST.js} +13 -8
- package/dist/chunks/{group-chat-PROTW22R.js → group-chat-ZIWQQO4G.js} +3 -3
- package/dist/chunks/{host-5R2SNFWD.js → host-6UOXYOOY.js} +6 -3
- package/dist/chunks/{host-7FJW4E7R.js → host-EJSJSLVK.js} +6 -3
- package/dist/chunks/{host-WO4L5G5I.js → host-EYNLB6S4.js} +6 -3
- package/dist/chunks/{host-PDJAKCT7.js → host-OT4KNR3G.js} +6 -3
- package/dist/chunks/{host-CGXUFQO4.js → host-UY4LQPN4.js} +6 -3
- package/dist/chunks/{host-XIYG4F4B.js → host-XXGDQM7D.js} +6 -3
- package/dist/chunks/{hrm-WGODDTEH.js → hrm-5JQ7QZ6A.js} +8 -5
- package/dist/chunks/{im-YKTKAJU3.js → im-2YJW3EI5.js} +7 -4
- package/dist/chunks/{invoice-PVYCCCVM.js → invoice-37HR6L3W.js} +956 -566
- package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-KBWUZ7WT.js} +17 -10
- package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-MZ3EZYDL.js} +22 -8
- package/dist/chunks/{mail-BNB5S4NW.js → mail-YBKUM6HM.js} +11 -8
- package/dist/chunks/{meeting-O2KDJH66.js → meeting-XE6CTXYA.js} +22 -18
- package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-4BA2R5EA.js} +4 -4
- package/dist/chunks/{okr-LWFGWOE7.js → okr-HW7IULIR.js} +10 -7
- package/dist/chunks/{operations-532PN5OB.js → operations-4P2UYVLH.js} +7 -4
- package/dist/chunks/{performance-7W5COCFU.js → performance-PM2G6L3E.js} +6 -3
- package/dist/chunks/{plan-ZVY3IYTL.js → plan-3YYGZ7ZM.js} +10 -7
- package/dist/chunks/{project-SA62B7MH.js → project-XREEXFU2.js} +10 -7
- package/dist/chunks/{reception-NGIONPQ3.js → reception-7G3J2MA6.js} +8 -4
- package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-TSQWOGQD.js} +199 -74
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-N7P3W2RD.js → registry-3VTB3KLV.js} +7 -4
- package/dist/chunks/registry-7UDUWYB5.js +30 -0
- package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-FO3HLPNB.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-6UP27HQ4.js → schedule-DHNNOHVS.js} +4 -4
- package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-T5Z4AULN.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-V5ALD6QZ.js → workflow-MAGCHWYZ.js} +15 -10
- package/dist/cli.js +40 -0
- package/dist/cmd/action.js +3 -1
- package/dist/cmd/doctor/index.js +1 -1
- package/dist/cmd/e10/index.js +1 -1
- package/dist/cmd/identity/index.js +5 -8
- package/dist/cmd/index.js +2 -0
- package/dist/cmd/setup/index.js +1 -1
- package/dist/cmd/update/index.js +38 -0
- package/dist/core/manifest-view.js +1 -1
- package/dist/core/output.js +8 -1
- package/dist/core/runtime-agent.js +13 -0
- package/dist/core/update-notice.js +23 -0
- package/dist/index.js +105 -198
- package/dist/internal/e10/auth/agent-host-key.js +16 -0
- package/dist/internal/e10/auth/agent-hosts.js +45 -9
- package/dist/internal/e10/auth/commands.js +66 -36
- package/dist/internal/e10/auth/session.js +30 -15
- package/dist/internal/e10/auth/xiaoe.js +4 -20
- package/dist/internal/e10/auth-recovery.js +44 -4
- package/dist/internal/e10/context.js +5 -2
- package/dist/internal/update/bootstrap.js +96 -0
- package/dist/internal/update/npm.js +78 -0
- package/dist/internal/update/service.js +252 -0
- package/dist/internal/update/store.js +135 -0
- package/dist/shortcuts/archive/index.js +2 -2
- package/dist/shortcuts/archive/manifest.js +1 -0
- package/dist/shortcuts/archive/operations/search.js +3 -1
- package/dist/shortcuts/archive-oa/index.js +1 -1
- package/dist/shortcuts/asset/index.js +1 -1
- package/dist/shortcuts/asset-idle/index.js +1 -1
- package/dist/shortcuts/blog/index.js +1 -1
- package/dist/shortcuts/caizhilian/index.js +1 -1
- package/dist/shortcuts/calendar/index.js +1 -1
- package/dist/shortcuts/contract/data/bi-config.js +156 -0
- package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
- package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
- package/dist/shortcuts/contract/data/report-renderers.js +414 -0
- package/dist/shortcuts/contract/data/report-spec.js +132 -0
- package/dist/shortcuts/contract/error-actions.js +114 -0
- package/dist/shortcuts/contract/host.js +12 -3
- package/dist/shortcuts/contract/index.js +17 -1
- package/dist/shortcuts/contract/manifest.js +398 -3
- package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
- package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
- package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
- package/dist/shortcuts/contract/operations/collection-node.js +229 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
- package/dist/shortcuts/contract/operations/draft-build.js +940 -0
- package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
- package/dist/shortcuts/contract/operations/first-screen.js +3 -2
- package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
- package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
- package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
- package/dist/shortcuts/contract/operations/ledger.js +4 -1
- package/dist/shortcuts/contract/operations/metrics.js +9 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
- package/dist/shortcuts/contract/operations/page.js +9 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
- package/dist/shortcuts/contract/operations/registry.js +20 -0
- package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
- package/dist/shortcuts/contract/operations/viewlink.js +334 -0
- package/dist/shortcuts/cowork/index.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +1 -1
- package/dist/shortcuts/ehr/index.js +2 -2
- package/dist/shortcuts/ehr/manifest.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-position.js +7 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +7 -6
- package/dist/shortcuts/ehr/operations/recruit.js +318 -248
- package/dist/shortcuts/ehr/operations/shared.js +22 -2
- package/dist/shortcuts/esb/index.js +1 -1
- package/dist/shortcuts/fna/index.js +1 -1
- package/dist/shortcuts/fna/manifest.js +1 -0
- package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
- package/dist/shortcuts/hrm/index.js +1 -1
- package/dist/shortcuts/invoice/business-response.js +13 -0
- package/dist/shortcuts/invoice/calendar.js +24 -0
- package/dist/shortcuts/invoice/host.js +26 -15
- package/dist/shortcuts/invoice/index.js +3 -3
- package/dist/shortcuts/invoice/invoice-record.js +7 -2
- package/dist/shortcuts/invoice/manifest.js +179 -155
- package/dist/shortcuts/invoice/operations/get.js +9 -3
- package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
- package/dist/shortcuts/invoice/operations/registry.js +4 -5
- package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
- package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
- package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
- package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
- package/dist/shortcuts/invoice/operations/reim.js +2 -126
- package/dist/shortcuts/invoice/operations/shared.js +15 -17
- package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
- package/dist/shortcuts/invoice/projection.js +14 -0
- package/dist/shortcuts/invoice/read-enrichment.js +123 -0
- package/dist/shortcuts/jiuchuanhui/index.js +2 -2
- package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
- package/dist/shortcuts/mail/index.js +2 -2
- package/dist/shortcuts/meeting/index.js +1 -1
- package/dist/shortcuts/meeting/manifest.js +1 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
- package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
- package/dist/shortcuts/meeting/operations/invitation.js +4 -4
- package/dist/shortcuts/meeting/operations/link.js +3 -1
- package/dist/shortcuts/okr/index.js +1 -1
- package/dist/shortcuts/performance/index.js +1 -1
- package/dist/shortcuts/plan/index.js +1 -1
- package/dist/shortcuts/project/index.js +1 -1
- package/dist/shortcuts/reception/manifest.js +2 -2
- package/dist/shortcuts/recruit-stage/context.js +10 -2
- package/dist/shortcuts/recruit-stage/index.js +16 -3
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +17 -8
- package/dist/shortcuts/recruit-stage/operations/list.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +178 -35
- package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +4 -2
- package/dist/shortcuts/recruit-stage/shared.js +27 -53
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
- package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/manifest.js +1 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
- package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
- package/dist/shortcuts/workflow/operations/form.js +8 -2
- package/docs/agent-invoice.md +28 -2
- package/docs/contract.md +6 -1
- package/docs/e10-auth.md +25 -7
- package/docs/invoice.md +60 -9
- package/docs/operation-manual.md +15 -0
- package/package.json +2 -2
- package/skill-template/business-info.json +28 -0
- package/skill-template/domains/jinchengda.md +13 -1
- package/skill-template/domains/yepiaotong.md +36 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
- package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
- package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
- package/skills/weaver-e10-meeting/SKILL.md +13 -0
- package/skills/weaver-e10-okr/SKILL.md +11 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
- package/skills/weaver-e10-performance/SKILL.md +131 -39
- package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
- package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
- package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
- package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
- package/skills/weaver-e10-plan/SKILL.md +10 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
- package/skills/weaver-e10-recruit-stage/SKILL.md +230 -202
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +74 -46
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +201 -36
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +336 -27
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +20 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +6 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +32 -25
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +16 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +148 -40
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +32 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +41 -41
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +5 -1
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +41 -28
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +23 -26
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +44 -36
- package/skills/weaver-e10-shared/SKILL.md +40 -5
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
- package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
- package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
- package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
- package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
- package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
- package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
- package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
- package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
- package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
- package/skills/weaver-e10-yepiaotong.zip +0 -0
- package/dist/chunks/chunk-ICP53R52.js +0 -2849
- package/dist/chunks/registry-RIQ67ZT7.js +0 -27
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
|
@@ -4,24 +4,45 @@
|
|
|
4
4
|
*
|
|
5
5
|
* 设计目标(2026-11-28 复盘固化):
|
|
6
6
|
* 1. 把原来「取数脚本 → 冲突脚本 → 报告脚本」三次往返压成一次;
|
|
7
|
-
* 2. stdout
|
|
7
|
+
* 2. stdout 只给紧凑摘要 + **唯一交付物 `reportFile`**;中间文件/地址收进 `_internal`,不作交付;
|
|
8
8
|
* 3. 全程 process.execPath 调 dist/index.js,不 spawn .cmd/.ps1(Windows 下 EINVAL)。
|
|
9
9
|
*
|
|
10
10
|
* 用法:
|
|
11
11
|
* node lib/interview-summary.mjs --recent 14 --out-dir <目录> [--print-rows]
|
|
12
12
|
* node lib/interview-summary.mjs --recent 7 --out-dir <目录>
|
|
13
13
|
*/
|
|
14
|
-
import { execFileSync } from 'node:child_process';
|
|
14
|
+
import { execFile, execFileSync } from 'node:child_process';
|
|
15
15
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
16
16
|
import { dirname, join, resolve } from 'node:path';
|
|
17
17
|
import { fileURLToPath } from 'node:url';
|
|
18
|
-
import { tmpdir } from 'node:os';
|
|
18
|
+
import { homedir, tmpdir } from 'node:os';
|
|
19
|
+
import { publishReport } from './report-attachment.mjs';
|
|
19
20
|
|
|
20
21
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
21
22
|
const SKILL_DIR = resolve(__dirname, '..');
|
|
22
23
|
const TEMPLATE = join(SKILL_DIR, 'templates', 'interview-summary.html');
|
|
23
24
|
const CONFLICT_SCRIPT = join(__dirname, 'interview-conflict.mjs');
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* 面试管理列表链接(2026-11-29 修正):
|
|
28
|
+
* 自用系统部署了宽屏壳页(`/sp/ebdpage/view/...`),优先用它;其他环境(101/188 等)虽然
|
|
29
|
+
* selfUse 也常为 1、但没有部署壳页,套壳页 ID 会 404,故退回原生列表页(`/sp/ebdfpage/list/...`)。
|
|
30
|
+
* 此前一律输出原生列表页,导致自用环境报告里的「面试管理」指向旧页面。
|
|
31
|
+
*/
|
|
32
|
+
const INTERVIEW_SHELL_BY_HOST = {
|
|
33
|
+
'www.e-cology.com.cn': '1343150652801163269',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
function interviewListUrl(baseUrl, listId) {
|
|
37
|
+
const base = String(baseUrl || '').replace(/\/+$/, '');
|
|
38
|
+
if (!base) return '';
|
|
39
|
+
let host = '';
|
|
40
|
+
try { host = new URL(base).hostname.toLowerCase(); } catch { host = ''; }
|
|
41
|
+
const shell = INTERVIEW_SHELL_BY_HOST[host];
|
|
42
|
+
if (shell) return `${base}/sp/ebdpage/view/${shell}`;
|
|
43
|
+
return listId ? `${base}/sp/ebdfpage/list/${listId}` : '';
|
|
44
|
+
}
|
|
45
|
+
|
|
25
46
|
function fail(message, extra) {
|
|
26
47
|
console.error(JSON.stringify({ ok: false, message, ...extra }, null, 2));
|
|
27
48
|
process.exit(1);
|
|
@@ -33,43 +54,51 @@ function resolveCliEntry() {
|
|
|
33
54
|
if (fromEnv && existsSync(fromEnv)) return fromEnv;
|
|
34
55
|
|
|
35
56
|
const execDir = dirname(process.execPath);
|
|
36
|
-
|
|
57
|
+
// 🔴 全局根优先:node 自带 node_modules 里可能躺着旧版 weaver-work-cli(实测 WorkBuddy 运行时
|
|
58
|
+
// 22.22.2-6 下有一份无 baseUrl 字段的旧包),先命中会静默用旧契约。
|
|
59
|
+
// 不用 `npm root -g`:Node 20+ 不能直接 exec .cmd(CVE-2024-27980),会静默失败退回旧包。
|
|
60
|
+
const candidates = [];
|
|
61
|
+
if (process.platform === 'win32' && process.env.APPDATA) {
|
|
62
|
+
candidates.push(join(process.env.APPDATA, 'npm', 'node_modules', 'weaver-work-cli', 'dist', 'index.js'));
|
|
63
|
+
}
|
|
64
|
+
candidates.push(
|
|
65
|
+
'/usr/local/lib/node_modules/weaver-work-cli/dist/index.js',
|
|
66
|
+
'/usr/lib/node_modules/weaver-work-cli/dist/index.js',
|
|
67
|
+
join(homedir(), '.npm-global', 'lib', 'node_modules', 'weaver-work-cli', 'dist', 'index.js'),
|
|
37
68
|
join(execDir, 'node_modules', 'weaver-work-cli', 'dist', 'index.js'),
|
|
38
69
|
join(execDir, '..', 'lib', 'node_modules', 'weaver-work-cli', 'dist', 'index.js'),
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
const npmRoot = execFileSync(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['root', '-g'], {
|
|
42
|
-
encoding: 'utf8',
|
|
43
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
44
|
-
}).trim();
|
|
45
|
-
if (npmRoot) candidates.push(join(npmRoot, 'weaver-work-cli', 'dist', 'index.js'));
|
|
46
|
-
} catch {
|
|
47
|
-
/* npm 不可用时只靠前两个候选 */
|
|
48
|
-
}
|
|
70
|
+
);
|
|
49
71
|
for (const c of candidates) if (c && existsSync(c)) return c;
|
|
50
72
|
return null;
|
|
51
73
|
}
|
|
52
74
|
|
|
53
75
|
function parseArgs(argv) {
|
|
54
|
-
const opts = { recent: 14, outDir: join(tmpdir(), "recruit-interview-out"), printRows: false };
|
|
76
|
+
const opts = { recent: 14, outDir: join(tmpdir(), "recruit-interview-out"), printRows: false, segmentDays: 0 };
|
|
55
77
|
for (let i = 0; i < argv.length; i += 1) {
|
|
56
78
|
const a = argv[i];
|
|
57
79
|
if (a === '--recent') opts.recent = Number(argv[++i]) || 14;
|
|
58
80
|
else if (a === '--out-dir') opts.outDir = resolve(argv[++i] || '.');
|
|
59
81
|
else if (a === '--print-rows') opts.printRows = true;
|
|
82
|
+
else if (a === '--segment-days') opts.segmentDays = Number(argv[++i]) || 0;
|
|
60
83
|
}
|
|
61
84
|
return opts;
|
|
62
85
|
}
|
|
63
86
|
|
|
87
|
+
/** 报告默认只落盘(file 模式),由 present_files 交付;http 模式仅手动兼容 */
|
|
88
|
+
|
|
64
89
|
function runCli(cliEntry, operation, jsonArgs) {
|
|
65
90
|
const argsFile = join(tmpdir(), `recruit-summary-args-${Date.now()}-${Math.random().toString(36).slice(2)}.json`);
|
|
66
91
|
writeFileSync(argsFile, JSON.stringify(jsonArgs), 'utf8');
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
);
|
|
72
|
-
|
|
92
|
+
// 多环境:RECRUIT_CLI_PROFILE=10-12-105-188 时透传 --profile,与 write-helper 同口径;
|
|
93
|
+
// 不透传会静默连到 CLI 默认档(实测 188 场景下报告数据取自自用环境)。
|
|
94
|
+
const cliProfile = String(process.env.RECRUIT_CLI_PROFILE || '').trim();
|
|
95
|
+
const cliArgs = [cliEntry, '--json'];
|
|
96
|
+
if (cliProfile) cliArgs.push('--profile', cliProfile);
|
|
97
|
+
cliArgs.push('recruit-stage', 'run', operation, '--input', argsFile, '--allow-file-input');
|
|
98
|
+
const stdout = execFileSync(process.execPath, cliArgs, { encoding: 'utf8', maxBuffer: 134217728 });
|
|
99
|
+
const braceAt = stdout.indexOf('{');
|
|
100
|
+
if (braceAt < 0) fail('CLI 未返回 JSON 信封', { stage: 'list', detail: String(stdout || '').slice(0, 200) });
|
|
101
|
+
const envelope = JSON.parse(stdout.slice(braceAt));
|
|
73
102
|
if (!envelope.ok) {
|
|
74
103
|
const err = envelope.error || {};
|
|
75
104
|
fail('面试台账查询失败', { stage: 'list', type: err.type, subtype: err.subtype, detail: err.message });
|
|
@@ -77,6 +106,109 @@ function runCli(cliEntry, operation, jsonArgs) {
|
|
|
77
106
|
return envelope.data || {};
|
|
78
107
|
}
|
|
79
108
|
|
|
109
|
+
/** 异步版取数:同步 execFileSync 无法并发,分段并行取数需要异步。 */
|
|
110
|
+
function runCliAsync(cliEntry, operation, jsonArgs) {
|
|
111
|
+
const argsFile = join(tmpdir(), `recruit-summary-args-${Date.now()}-${Math.random().toString(36).slice(2)}.json`);
|
|
112
|
+
writeFileSync(argsFile, JSON.stringify(jsonArgs), 'utf8');
|
|
113
|
+
const cliProfile = String(process.env.RECRUIT_CLI_PROFILE || '').trim();
|
|
114
|
+
const cliArgs = [cliEntry, '--json'];
|
|
115
|
+
if (cliProfile) cliArgs.push('--profile', cliProfile);
|
|
116
|
+
cliArgs.push('recruit-stage', 'run', operation, '--input', argsFile, '--allow-file-input');
|
|
117
|
+
return new Promise((resolve, reject) => {
|
|
118
|
+
execFile(process.execPath, cliArgs, { encoding: 'utf8', maxBuffer: 134217728 }, (err, stdout) => {
|
|
119
|
+
if (err) { reject(err); return; }
|
|
120
|
+
const braceAt = String(stdout || '').indexOf('{');
|
|
121
|
+
if (braceAt < 0) { reject(new Error('CLI 未返回 JSON 信封')); return; }
|
|
122
|
+
try {
|
|
123
|
+
const envelope = JSON.parse(String(stdout).slice(braceAt));
|
|
124
|
+
if (!envelope.ok) {
|
|
125
|
+
const e = envelope.error || {};
|
|
126
|
+
reject(new Error(`面试台账查询失败:${e.message || e.subtype || 'unknown'}`));
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
resolve(envelope.data || {});
|
|
130
|
+
} catch (parseErr) { reject(parseErr); }
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const DAY_MS = 86400000;
|
|
136
|
+
const dayStart = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
137
|
+
const dayKey = (d) => {
|
|
138
|
+
const p = (n) => String(n).padStart(2, '0');
|
|
139
|
+
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())}`;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** 限并发的 map,避免一次性打爆服务端。 */
|
|
143
|
+
async function mapLimit(items, limit, fn) {
|
|
144
|
+
const ret = new Array(items.length);
|
|
145
|
+
let cursor = 0;
|
|
146
|
+
const size = Math.max(1, Math.min(limit, items.length));
|
|
147
|
+
await Promise.all(Array.from({ length: size }, async () => {
|
|
148
|
+
while (cursor < items.length) {
|
|
149
|
+
const idx = cursor;
|
|
150
|
+
cursor += 1;
|
|
151
|
+
ret[idx] = await fn(items[idx], idx);
|
|
152
|
+
}
|
|
153
|
+
}));
|
|
154
|
+
return ret;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 取面试台账,两条路径:
|
|
159
|
+
* ① 默认:单次 all:true 全量取(CLI 内部翻页),不丢行、请求最少;
|
|
160
|
+
* ② 大窗口:recent 超过 SEGMENT_THRESHOLD 天时按 segmentDays 分段并行,
|
|
161
|
+
* 每段只保留落在该段日期区间的行,去重合并,避免单次超大响应串行翻页。
|
|
162
|
+
* 分段不会减少总请求量,收益在「并行 + 每段一页内取完」,因此仅对大窗口启用。
|
|
163
|
+
*/
|
|
164
|
+
const SEGMENT_THRESHOLD = 14;
|
|
165
|
+
|
|
166
|
+
async function fetchInterviewData(cliEntry, opts) {
|
|
167
|
+
const recent = opts.recent;
|
|
168
|
+
const seg = opts.segmentDays > 0 ? opts.segmentDays : 0;
|
|
169
|
+
const baseArgs = { type: 'interview', sort: 'start_time', pageSize: 200, all: true };
|
|
170
|
+
|
|
171
|
+
if (!seg || recent <= SEGMENT_THRESHOLD) {
|
|
172
|
+
return runCli(cliEntry, 'recruit-stage.list', { ...baseArgs, recent });
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const today = dayStart(new Date());
|
|
176
|
+
const segCount = Math.ceil(recent / seg);
|
|
177
|
+
const segments = [];
|
|
178
|
+
for (let k = 0; k < segCount; k += 1) {
|
|
179
|
+
segments.push({
|
|
180
|
+
startDay: k * seg + 1,
|
|
181
|
+
endDay: Math.min((k + 1) * seg, recent),
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const results = await mapLimit(segments, 4, async (s) => {
|
|
186
|
+
const data = await runCliAsync(cliEntry, 'recruit-stage.list', { ...baseArgs, recent: s.endDay });
|
|
187
|
+
// 🔴 只卡下界,不设上界:`recent=endDay` 已把下界限制在「今天-(endDay-1)天」,
|
|
188
|
+
// 而台账里存在已排定的**未来**场次(如下一周),设上界会把它们全部误过滤掉
|
|
189
|
+
// (2026-11-29 实测:21 天窗口曾只剩 4 场,实际应 20 场)。
|
|
190
|
+
const lowerKey = dayKey(new Date(today.getTime() - (s.endDay - 1) * DAY_MS));
|
|
191
|
+
const rows = (Array.isArray(data.rows) ? data.rows : []).filter((r) => {
|
|
192
|
+
const k = String(r.start_time || '').slice(0, 10);
|
|
193
|
+
return k >= lowerKey;
|
|
194
|
+
});
|
|
195
|
+
return { data, rows };
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
const seen = new Set();
|
|
199
|
+
const rows = [];
|
|
200
|
+
for (const r of results) {
|
|
201
|
+
for (const row of r.rows) {
|
|
202
|
+
const key = String(row.form_data_id || `${row.candidate_name}|${row.start_time}|${row.position_name}`);
|
|
203
|
+
if (seen.has(key)) continue;
|
|
204
|
+
seen.add(key);
|
|
205
|
+
rows.push(row);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
const first = results[0] || { data: {} };
|
|
209
|
+
return { ...first.data, rows };
|
|
210
|
+
}
|
|
211
|
+
|
|
80
212
|
function stamp(d = new Date()) {
|
|
81
213
|
const p = (n) => String(n).padStart(2, '0');
|
|
82
214
|
return `${d.getFullYear()}${p(d.getMonth() + 1)}${p(d.getDate())}_${p(d.getHours())}${p(d.getMinutes())}${p(d.getSeconds())}`;
|
|
@@ -91,7 +223,7 @@ function countBy(rows, key) {
|
|
|
91
223
|
return Object.fromEntries([...m.entries()].sort((a, b) => b[1] - a[1]));
|
|
92
224
|
}
|
|
93
225
|
|
|
94
|
-
function main() {
|
|
226
|
+
async function main() {
|
|
95
227
|
const opts = parseArgs(process.argv.slice(2));
|
|
96
228
|
|
|
97
229
|
const cliEntry = resolveCliEntry();
|
|
@@ -101,16 +233,11 @@ function main() {
|
|
|
101
233
|
});
|
|
102
234
|
}
|
|
103
235
|
|
|
104
|
-
const data =
|
|
105
|
-
type: 'interview',
|
|
106
|
-
recent: opts.recent,
|
|
107
|
-
sort: 'start_time',
|
|
108
|
-
pageSize: 200,
|
|
109
|
-
});
|
|
236
|
+
const data = await fetchInterviewData(cliEntry, opts);
|
|
110
237
|
|
|
111
238
|
const rows = Array.isArray(data.rows) ? data.rows : [];
|
|
112
239
|
if (!rows.length) {
|
|
113
|
-
console.log(JSON.stringify({ ok: true, recentDays: opts.recent, total: 0, message: '窗口内没有面试安排' }, null, 2));
|
|
240
|
+
console.log(JSON.stringify({ ok: true, recentDays: opts.recent, total: 0, count: 0, dateFrom: '', dateTo: '', message: '窗口内没有面试安排' }, null, 2));
|
|
114
241
|
return;
|
|
115
242
|
}
|
|
116
243
|
|
|
@@ -128,15 +255,18 @@ function main() {
|
|
|
128
255
|
conflicts.error = 'conflict_check_failed';
|
|
129
256
|
}
|
|
130
257
|
|
|
131
|
-
|
|
132
|
-
const
|
|
258
|
+
// CLI 的 env 只有 hostname(无协议/端口),不能反推;优先用回传的完整 baseUrl。
|
|
259
|
+
const envHost = data.env || '';
|
|
260
|
+
const baseUrl = String(data.baseUrl || '').replace(/\/+$/, '')
|
|
261
|
+
|| (envHost ? (envHost.startsWith('http') ? envHost.split('/').slice(0, 3).join('/') : `https://${envHost}`) : '');
|
|
133
262
|
|
|
134
263
|
const summaryData = {
|
|
135
264
|
baseUrl,
|
|
136
265
|
generatedAt: new Date().toISOString().slice(0, 16).replace('T', ' '),
|
|
137
266
|
recentDays: opts.recent,
|
|
138
267
|
interviewObjId: '',
|
|
139
|
-
|
|
268
|
+
// 自用环境给宽屏壳页;其他环境退回原生列表页(见 interviewListUrl 注释)
|
|
269
|
+
listUrl: interviewListUrl(baseUrl, data.listId),
|
|
140
270
|
rows: rows.map((r) => ({
|
|
141
271
|
formDataId: r.form_data_id,
|
|
142
272
|
talentId: '',
|
|
@@ -166,14 +296,37 @@ function main() {
|
|
|
166
296
|
writeFileSync(reportFile, html, 'utf8');
|
|
167
297
|
}
|
|
168
298
|
|
|
299
|
+
// 仅附件模式:只校验/返回绝对 reportFile,不启动服务;present_files 负责上传
|
|
300
|
+
let reportError = '';
|
|
301
|
+
if (reportFile) {
|
|
302
|
+
try {
|
|
303
|
+
publishReport(reportFile);
|
|
304
|
+
} catch (e) {
|
|
305
|
+
reportError = String(e?.message || e);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
169
309
|
const sorted = rows
|
|
170
310
|
.slice()
|
|
171
311
|
.sort((a, b) => String(a.start_time).localeCompare(String(b.start_time)));
|
|
172
312
|
|
|
313
|
+
// ISS-007(2026-11-30):正文第一行「近 N 天 X 场(起 ~ 止)」所需的起止日期直接下发,
|
|
314
|
+
// 免得模型为了取首末日期再读一次 rows 文件(rowsFile 路径刻意不进 stdout,只给 reportFile)。
|
|
315
|
+
// 取的是「实际面试场次的起止日」,不是查询窗口;空 start_time 的行不参与计算。
|
|
316
|
+
const dayOf = (v) => {
|
|
317
|
+
const s = String(v || '').trim();
|
|
318
|
+
return /^\d{4}-\d{2}-\d{2}/.test(s) ? s.slice(0, 10) : '';
|
|
319
|
+
};
|
|
320
|
+
const days = sorted.map((r) => dayOf(r.start_time)).filter(Boolean);
|
|
321
|
+
const dateFrom = days.length ? days[0] : '';
|
|
322
|
+
const dateTo = days.length ? days[days.length - 1] : '';
|
|
323
|
+
|
|
173
324
|
const compact = {
|
|
174
325
|
ok: true,
|
|
175
326
|
recentDays: opts.recent,
|
|
176
327
|
count: rows.length,
|
|
328
|
+
dateFrom,
|
|
329
|
+
dateTo,
|
|
177
330
|
byType: countBy(rows, 'interview_type'),
|
|
178
331
|
byStatus: countBy(rows, 'union_status'),
|
|
179
332
|
conflicts: (conflicts.conflicts || []).length,
|
|
@@ -181,18 +334,30 @@ function main() {
|
|
|
181
334
|
aiPressureWindows: ((conflicts.aiPressure || {}).windows || []).length,
|
|
182
335
|
checked: conflicts.checked || 0,
|
|
183
336
|
aiExcluded: conflicts.aiExcluded || 0,
|
|
184
|
-
|
|
337
|
+
...(conflicts.error ? { conflictsError: conflicts.error } : {}),
|
|
185
338
|
reportFile,
|
|
186
|
-
|
|
339
|
+
...(reportError ? { reportError } : {}),
|
|
340
|
+
// 🔴 stdout 只允许出现一个交付物路径:reportFile。
|
|
341
|
+
// rowsFile(中间数据)与 baseUrl(系统地址)收进 _internal 并标注非交付,
|
|
342
|
+
// 防止 Agent 把中间 JSON 当成第二个产物发给用户(2026-11-29 定稿)。
|
|
343
|
+
_internal: { note: '内部排障用,禁止作为交付物输出给用户' },
|
|
187
344
|
};
|
|
188
345
|
console.log(JSON.stringify(compact, null, 2));
|
|
189
346
|
|
|
190
347
|
if (opts.printRows) {
|
|
191
348
|
for (const r of sorted) {
|
|
349
|
+
const round = [r.interview_rounds, r.interview_session].filter(Boolean).join('/');
|
|
192
350
|
const where = r.participation ? r.participation.value || r.participation.mode : '';
|
|
193
|
-
console.log([r.start_time, r.candidate_name, r.position_name, r.interview_type, r.interviewer, r.union_status, where].join(' | '));
|
|
351
|
+
console.log([r.start_time, r.candidate_name, r.position_name, round, r.interview_type, r.interviewer, r.union_status, where].join(' | '));
|
|
194
352
|
}
|
|
195
353
|
}
|
|
196
354
|
}
|
|
197
355
|
|
|
198
|
-
main()
|
|
356
|
+
main().catch((e) => {
|
|
357
|
+
console.error(JSON.stringify({ ok: false, message: String((e && e.message) || e) }, null, 2));
|
|
358
|
+
process.exit(1);
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|