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
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-WRXSAVKO.js";
|
|
16
16
|
import {
|
|
17
17
|
stringifyForStdout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JJONWB5N.js";
|
|
19
19
|
import {
|
|
20
20
|
stateRoot
|
|
21
21
|
} from "./chunk-AJ62BGAW.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-IZCQU5D5.js";
|
|
31
31
|
import {
|
|
32
32
|
hasXiaoEEnv
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-QVKRNL7L.js";
|
|
34
34
|
|
|
35
35
|
// src/shortcuts/workflow/operations/form.ts
|
|
36
36
|
import { randomUUID } from "node:crypto";
|
|
@@ -10061,7 +10061,8 @@ var workflowCreateForm = {
|
|
|
10061
10061
|
resource: "workflow",
|
|
10062
10062
|
method: "createForm",
|
|
10063
10063
|
action: "workflow.createForm",
|
|
10064
|
-
summary: "\u6309\u5DE5\u4F5C\u6D41\u53C2\u6570\u89E3\u6790\u53EF\u53D1\u8D77\u7684\u5DE5\u4F5C\u6D41\u5E76\u8F7D\u5165\u53D1\u8D77\u8868\u5355\
|
|
10064
|
+
summary: "\u6309\u5DE5\u4F5C\u6D41\u53C2\u6570\u89E3\u6790\u53EF\u53D1\u8D77\u7684\u5DE5\u4F5C\u6D41\u5E76\u8F7D\u5165\u53D1\u8D77\u8868\u5355\uFF0C\u8FD4\u56DE context \u53E5\u67C4 + \u5B57\u6BB5\u6E05\u5355\uFF1B\u53EA\u53D6\u6570\u4E0D\u586B\u53C2\u3002",
|
|
10065
|
+
notes: "loadBase/loadFrame/loadMinor/formLayout \u5408\u5E76\u4E3A runtime \u4E0E frame\uFF0C\u4EA7\u51FA context \u53E5\u67C4 + \u5B57\u6BB5\u6E05\u5355 + fileUploadParams + \u8BE5\u5DE5\u4F5C\u6D41\u7684\u53D1\u8D77\u504F\u597D\u3002\u53EA\u53D6\u6570\u3001\u4E0D\u586B\u53C2\uFF08\u4E0D\u518D\u8C03\u667A\u80FD\u4F53\uFF09\uFF1A\u6A21\u578B\u636E\u6B64\u81EA\u5DF1\u62FC data \u540E\u4EA4\u7ED9 createRequest\u3002",
|
|
10065
10066
|
capability: "create",
|
|
10066
10067
|
risk: "read",
|
|
10067
10068
|
requiresConfirmation: false,
|
|
@@ -10110,7 +10111,8 @@ var workflowCreateRequestDirect = {
|
|
|
10110
10111
|
resource: "workflow",
|
|
10111
10112
|
method: "createRequestDirect",
|
|
10112
10113
|
action: "workflow.createRequestDirect",
|
|
10113
|
-
summary: "\u53D6\u6570\uFF08\u4E0D\u53D1\u8D77\u3001\u4E0D\
|
|
10114
|
+
summary: "\u53D6\u6570\uFF08\u4E0D\u53D1\u8D77\u3001\u4E0D\u5199\u5E93\uFF09\uFF1A\u8F7D\u5165\u53D1\u8D77\u8868\u5355\u540E\u8FD4\u56DE fields\u3001historyRequestData\u3001userMemory\uFF0C\u4F9B\u62FC data \u540E\u8C03 createRequest\u3002",
|
|
10115
|
+
notes: "\u5C0Fe \u73AF\u5883\u4E0D\u8BFB\u8BB0\u5FC6\uFF0C\u4E5F\u4E0D\u8FD4\u56DE userMemory\u3002\u4E0D\u8FD4\u56DE\u7CFB\u7EDF\u5B57\u6BB5\uFF08\u6807\u9898/\u7D27\u6025\u7A0B\u5EA6/\u5BC6\u7EA7\u7684\u9ED8\u8BA4\u503C\u4E0E\u9009\u9879\uFF09\uFF0C\u4E5F\u4E0D\u8FD4\u56DE\u53E5\u67C4\u3001form\u3001continuation\u3002\u8F93\u51FA\u8D85\u8FC7 2 \u4E07\u5B57\u7B26\u65F6\u4F9D\u6B21\u964D\u7EA7\uFF1A\u5148\u8BA9 historyRequestData \u53D8\u6210\u7A7A\u6570\u7EC4\uFF0C\u4ECD\u8D85\u518D\u8BA9 userMemory \u53D8\u6210\u7A7A\u4E32\uFF08\u952E\u90FD\u4FDD\u7559\uFF09\u3002\u8017\u65F6\u5168\u90E8\u6536\u5728 timing \u4E00\u4E2A\u952E\u91CC\uFF1A{durationMs, apiDurations, apiSlowest, authMs}\u3002",
|
|
10114
10116
|
capability: "read",
|
|
10115
10117
|
risk: "read",
|
|
10116
10118
|
requiresConfirmation: false,
|
|
@@ -13516,7 +13518,8 @@ var workflowAiDeepReadBatchSubmit = {
|
|
|
13516
13518
|
resource: "workflow",
|
|
13517
13519
|
method: "aiDeepReadBatchSubmit",
|
|
13518
13520
|
action: "workflow.aiDeepReadBatchSubmit",
|
|
13519
|
-
summary:
|
|
13521
|
+
summary: "\u6279\u91CF\u63D0\u4EA4\uFF08\u6C47\u603B\u5BA1\u6279\u76F4\u901A\u5F0F\uFF09\uFF1A\u5BF9 aiDeepRead \u9009\u51FA\u7684\u6D41\u7A0B\u8C03 batchSubmit\uFF0CrequestIds \u4E0E operateUserIds \u5FC5\u4F20\u3002",
|
|
13522
|
+
notes: '2026-11-25 \u7528\u6237\u5B9A\u7A3F\uFF1A\u63D0\u793A\u8BCD\u300C\u6C47\u603B\u5BA1\u6279\u300D\u5F00\u5934\u4E14\u8BC9\u6C42\u662F\u63D0\u4EA4\uFF08\u63D0\u4EA4/\u6279\u51C6/\u540C\u610F\uFF09\u65F6\u8C03\u7528\u3002POST /api/workflow/core/flow/batchSubmit\uFF0CrequestIds \u4E0E operateUserIds \u5FC5\u4F20\u7F3A\u4E00\u4E0D\u53EF\uFF08operateUserIds = \u6BCF\u6761\u6D41\u7A0B\u5F53\u524D\u64CD\u4F5C\u4EBA userId\uFF0C\u5148\u67E5\u5F85\u529E\u83B7\u53D6\uFF09\uFF0Cremark \u53EF\u9009\uFF1B\u5176\u4F59\u62A5\u6587\u5B57\u6BB5\u5168\u90E8\u56FA\u5B9A\uFF08batchSubmitListParams={"fromAiDeepRead":"1"}\u3001conditionId/handWrittenSign \u7A7A\u3001isAsync/isMobile/isSelectAll=false\uFF09\uFF1B\u4E0D\u505A\u5FEB\u7167\u95E8\u7981/\u7F6E\u5DF2\u529E/\u5206\u7C7B\uFF08\u90A3\u662F workflow.batchSubmit \u7684\u804C\u8D23\uFF09\u3002',
|
|
13520
13523
|
capability: "batch",
|
|
13521
13524
|
risk: "high-risk-write",
|
|
13522
13525
|
requiresConfirmation: true,
|
|
@@ -13582,7 +13585,8 @@ function workflowDeepReadOperations() {
|
|
|
13582
13585
|
resource: "workflow",
|
|
13583
13586
|
method: "aiDeepRead",
|
|
13584
13587
|
action: "workflow.aiDeepRead",
|
|
13585
|
-
summary: "AI \u8BE6\u8BFB\uFF1A\
|
|
13588
|
+
summary: "AI \u8BE6\u8BFB\uFF1A\u6309 requestId \u5355\u6761\u8BE6\u8BFB\uFF0C\u6216\u6279\u91CF\u53D6\u524D N \u6761\u9010\u6761\u8BE6\u8BFB\uFF08\u89E6\u53D1\u8BCD ai\u8BE6\u8BFB / \u6C47\u603B\u5BA1\u6279\uFF09\u3002",
|
|
13589
|
+
notes: "\u2460 \u6309 requestId \u5BF9\u5355\u6761\u6D41\u7A0B\u8BE6\u8BFB\uFF08\u89E6\u53D1\u8BCD ai\u8BE6\u8BFB\uFF09\uFF1B\u2461 \u6309 workflowId \u62C9\u53D6\u524D N \u6761\uFF08N = batchAiRead.count\uFF0C\u9ED8\u8BA4 20\uFF09\u9010\u6761\u8BE6\u8BFB\uFF08\u89E6\u53D1\u8BCD \u6C47\u603B\u5BA1\u6279\uFF09\uFF1B\u2462 \u5168\u5C40\u6C47\u603B\u5BA1\u6279\uFF082026-11-23\uFF1A\u89E6\u53D1\u8BCD \u6C47\u603B\u5BA1\u6279\u4E14\u4E0D\u5E26 ID\uFF09\u6309 config.fetch.workflowIds \u96C6\u5408\u8FC7\u6EE4\u53D6\u524D N \u6761\uFF08N = batchAiRead.globalCount\uFF0C\u9ED8\u8BA4 50\uFF09\u9010\u6761\u8BE6\u8BFB\uFF1B\u2463 originData \u56DE\u653E\uFF082026-11-24\uFF1A\u5E26 originDataId\uFF09\u5217\u8868\u53D6\u6570\u8D70 <skill>/originData/ \u6587\u4EF6\u56DE\u653E\uFF08todo_query_* \u62A5\u6587\u53D6\u6587\u4EF6\u4ECD\u8C03\u63A5\u53E3\u3001params \u8865\u5145\u6CE8\u5165 workflowids = config.fetch.workflowIds / todo_summary_* \u4E0D\u8C03\u63A5\u53E3\u76F4\u63A5\u7528\u6587\u4EF6\u54CD\u5E94\u4F53\uFF09\uFF0C\u4E0D\u9700\u8981 requestId/workflowId\uFF0C\u53EF\u5E26 workflowName\u2014\u2014\u5E26\u5219\u6309\u5217\u8868\u884C workflowName \u7CBE\u786E\u76F8\u7B49\u8FC7\u6EE4\uFF08query \u56DE\u653E\u7FFB\u9875\u8865\u8DB3 / summary \u56DE\u653E\u4E0D\u8865\u8DB3\uFF09\u4E14\u7167\u5E38\u8FC7\u767D\u540D\u5355\u3002\u2460\u2461 \u987B\u540C\u65F6\u5E26 workflowName \u4E14\u5728\u767D\u540D\u5355\u5185\uFF1B\u2462 \u4E0D\u9700\u8981 workflowName\uFF0C\u4F46 config \u672A\u914D\u7F6E\u96C6\u5408\u65F6\u62A5\u9519\u7EC8\u6B62\uFF1B\u6BCF\u6B21\u89E6\u53D1 aiDeepRead \u5148\u6E05\u7406 <skill>/originData/ \u53EA\u4FDD\u7559\u5F53\u5929\u6587\u4EF6\uFF082026-11-24 \u7528\u6237\u5B9A\u7A3F\uFF09\uFF1B\u6279\u91CF\u6A21\u5F0F\u53EF\u5E26 receiveTime/days \u63A5\u6536\u65F6\u95F4\u7A97\u53E3\uFF082026-11-25 \u7528\u6237\u5B9A\u7A3F\uFF1A\u590D\u7528 workflow.search \u6761\u4EF6\u89E3\u6790\u6CE8\u5165 formDatas.receivedatetime\uFF0C\u63D0\u793A\u8BCD\u5E26\u300C\u8FD1\u4E00\u5468\u300D\u7B49\u65F6\u95F4\u6761\u4EF6\u76F4\u63A5\u4F20\u53C2\u4E0D\u518D\u6F84\u6E05\uFF1BbyRequest/\u56DE\u653E\u6A21\u5F0F\u4E0D\u751F\u6548\uFF09\uFF1B\u6279\u91CF\u6A21\u5F0F\u8FD8\u53EF\u5E26 search \u9644\u52A0\u6761\u4EF6\u5BF9\u8C61\uFF082026-11-25 \u7528\u6237\u5B9A\u7A3F\uFF1A\u952E\u540D\u4E0E workflow.search \u6761\u4EF6\u53C2\u6570\u540C\u540D\uFF0C\u590D\u7528\u5176\u5168\u90E8\u6761\u4EF6\u89E3\u6790\u2014\u2014\u53D1\u8D77\u4EBA/\u90E8\u95E8/\u5206\u90E8/\u672A\u64CD\u4F5C\u8005/\u6765\u6E90/\u5DE5\u4F5C\u6D41\u7C7B\u578B/\u6807\u9898/\u7F16\u53F7/\u5DE5\u53F7/\u7D27\u6025\u7A0B\u5EA6/\u8282\u70B9/\u6D41\u7A0B\u72B6\u6001/\u521B\u5EFA\u4E0E\u5B8C\u6210\u65F6\u95F4/filterFields \u8868\u5355\u5B57\u6BB5/exRequestId \u7B49\uFF1BbyTodo \u4E0B\u4E0D\u652F\u6301 filterFields\uFF0CbyRequest/\u56DE\u653E\u6A21\u5F0F\u5FFD\u7565\u5E76 warning\uFF09\u3002",
|
|
13586
13590
|
capability: "view",
|
|
13587
13591
|
risk: "read",
|
|
13588
13592
|
inputSchema: schemaOf({
|
|
@@ -14006,7 +14010,8 @@ function workflowDeepReadRenderOperations() {
|
|
|
14006
14010
|
resource: "workflow",
|
|
14007
14011
|
method: "aiDeepReadRender",
|
|
14008
14012
|
action: "workflow.aiDeepReadRender",
|
|
14009
|
-
summary: "AI \u8BE6\u8BFB\u7B2C\u4E09\u9636\u6BB5\u6E32\u67D3\
|
|
14013
|
+
summary: "AI \u8BE6\u8BFB\u7B2C\u4E09\u9636\u6BB5\u6E32\u67D3\uFF1A\u7528 collect \u7F13\u5B58 + \u4E24\u6BB5\u7ED3\u8BBA + ai \u5206\u7EC4\uFF0C\u6309 skill \u6A21\u677F\u751F\u6210\u81EA\u5305\u542B HTML\u3002",
|
|
14014
|
+
notes: "\u8F93\u5165 collect \u4E3B\u7F13\u5B58\u8DEF\u5F84 + agent \u4E24\u6BB5\u7ED3\u8BBA\uFF08\u6BCF\u6761 \u8BE6\u60C5\u7ED3\u8BBA/\u610F\u89C1\u7ED3\u8BBA\uFF0C2026-11-18 \u4E8C\u6B21\u5B9A\u7A3F\uFF09+ ai \u5206\u7EC4\u5F52\u7C7B + \u9636\u6BB5\u8017\u65F6\u884C\uFF0C\u6309 skill \u6A21\u677F\u751F\u6210\u81EA\u5305\u542B HTML\u3002\u7B5B\u9009\u6761\u8BA1\u6570\u4E0E\u5361\u7247\u5206\u6876\u540C\u6E90\u4E8E\u7F13\u5B58\u4E2D\u7684 grouping\uFF0C0 \u8BA1\u6570\u6876\u4E0D\u6E32\u67D3\u3002",
|
|
14010
14015
|
capability: "view",
|
|
14011
14016
|
risk: "read",
|
|
14012
14017
|
inputSchema: schemaOf({
|
|
@@ -15,16 +15,20 @@ import {
|
|
|
15
15
|
getE10AuthRoot,
|
|
16
16
|
hasXiaoEEnv,
|
|
17
17
|
isTlsTrustErrorCode,
|
|
18
|
-
isXiaoERuntimeAgent,
|
|
19
18
|
lastXiaoEFailure,
|
|
20
19
|
looksLikeTlsTrustMessage,
|
|
21
20
|
readErrorCauseCode,
|
|
22
21
|
readProfileConfig,
|
|
22
|
+
resolveActiveProfileForHost,
|
|
23
|
+
resolveSessionHostKey,
|
|
23
24
|
resolveXiaoEPreferredBaseUrl,
|
|
24
25
|
summarizeE10TlsPolicy,
|
|
25
26
|
summarizeXiaoEFailureKind,
|
|
26
27
|
tryXiaoEUnifiedLogin
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QVKRNL7L.js";
|
|
29
|
+
import {
|
|
30
|
+
isXiaoERuntimeAgent
|
|
31
|
+
} from "./chunk-7DE3VMZD.js";
|
|
28
32
|
import {
|
|
29
33
|
CliError,
|
|
30
34
|
toErrorEnvelope
|
|
@@ -469,6 +473,7 @@ function globalOptions(ctx) {
|
|
|
469
473
|
function canAutomaticallyRecoverXiaoE(ctx, currentSession) {
|
|
470
474
|
const options = globalOptions(ctx);
|
|
471
475
|
if (options.auth) return false;
|
|
476
|
+
if (resolveSessionHostKey(ctx.env || process.env, options) === "workbuddy") return false;
|
|
472
477
|
return hasXiaoEEnv(ctx.env || process.env, options) || currentSession?.loginSource === "xiaoe-unified" || isXiaoERuntimeAgent(currentSession?.agentType);
|
|
473
478
|
}
|
|
474
479
|
function recoveryLogger(ctx) {
|
|
@@ -497,14 +502,17 @@ async function recoverXiaoEAuthSessionWithDiagnostics(ctx, currentSession) {
|
|
|
497
502
|
});
|
|
498
503
|
if (!canAutomaticallyRecoverXiaoE(ctx, currentSession)) return emptyOutcome();
|
|
499
504
|
const options = globalOptions(ctx);
|
|
500
|
-
const
|
|
505
|
+
const hostKey = resolveSessionHostKey(ctx.env || process.env, options);
|
|
506
|
+
const profile = options.profile || resolveActiveProfileForHost(ctx.env, options);
|
|
501
507
|
const config = readProfileConfig(profile);
|
|
502
508
|
const baseUrl = resolveXiaoEPreferredBaseUrl({
|
|
503
509
|
explicitBaseUrl: currentSession?.getBaseUrl() || options.baseUrl,
|
|
504
510
|
profileBaseUrl: config.baseUrl,
|
|
505
511
|
env: ctx.env
|
|
506
512
|
});
|
|
507
|
-
const key = `${
|
|
513
|
+
const key = `${getE10AuthRoot()}
|
|
514
|
+
${hostKey}
|
|
515
|
+
${profile}
|
|
508
516
|
${baseUrl}`;
|
|
509
517
|
const existing = recoveryInFlight.get(key);
|
|
510
518
|
if (existing) return existing;
|
|
@@ -518,7 +526,8 @@ ${baseUrl}`;
|
|
|
518
526
|
allowBundledEnvScript: true,
|
|
519
527
|
allowTokenScript: true,
|
|
520
528
|
tenantKeyFallback: currentSession?.tenantKey || config.tenantKey,
|
|
521
|
-
profileHint: profile,
|
|
529
|
+
profileHint: options.profile || (hostKey === "xiaoe" && !currentSession ? void 0 : profile),
|
|
530
|
+
hostKey: "xiaoe",
|
|
522
531
|
diagnostics,
|
|
523
532
|
logger: recoveryLogger(ctx)
|
|
524
533
|
});
|
|
@@ -551,6 +560,36 @@ ${baseUrl}`;
|
|
|
551
560
|
if (recoveryInFlight.get(key) === recovery) recoveryInFlight.delete(key);
|
|
552
561
|
}
|
|
553
562
|
}
|
|
563
|
+
var workBuddyLoginInFlight = /* @__PURE__ */ new Map();
|
|
564
|
+
async function recoverWorkBuddyAuthSession(ctx, login = async (context, options) => {
|
|
565
|
+
const { runBrowserLogin } = await import("./commands-J52MJ6NF.js");
|
|
566
|
+
const previousMachineMode = context.logger.machineMode;
|
|
567
|
+
context.logger.machineMode = true;
|
|
568
|
+
try {
|
|
569
|
+
return await runBrowserLogin(context, options, { machine: true });
|
|
570
|
+
} finally {
|
|
571
|
+
context.logger.machineMode = previousMachineMode;
|
|
572
|
+
}
|
|
573
|
+
}) {
|
|
574
|
+
const options = globalOptions(ctx);
|
|
575
|
+
if (options.auth || resolveSessionHostKey(ctx.env || process.env, options) !== "workbuddy") return null;
|
|
576
|
+
const profile = options.profile || resolveActiveProfileForHost(ctx.env, options);
|
|
577
|
+
const key = `${getE10AuthRoot()}
|
|
578
|
+
${profile}
|
|
579
|
+
${options.baseUrl || ""}`;
|
|
580
|
+
const existing = workBuddyLoginInFlight.get(key);
|
|
581
|
+
if (existing) return existing;
|
|
582
|
+
const recovery = (async () => {
|
|
583
|
+
await login(ctx, { agentType: "workbuddy" });
|
|
584
|
+
return E10AuthSession.fromOptions(options, ctx.cwd, { skipProfileEnrichment: true }, ctx.env);
|
|
585
|
+
})();
|
|
586
|
+
workBuddyLoginInFlight.set(key, recovery);
|
|
587
|
+
try {
|
|
588
|
+
return await recovery;
|
|
589
|
+
} finally {
|
|
590
|
+
if (workBuddyLoginInFlight.get(key) === recovery) workBuddyLoginInFlight.delete(key);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
554
593
|
function sameE10SessionIdentity(current, recovered) {
|
|
555
594
|
const currentBaseUrl = current.getBaseUrl().replace(/\/+$/u, "").toLowerCase();
|
|
556
595
|
const recoveredBaseUrl = recovered.getBaseUrl().replace(/\/+$/u, "").toLowerCase();
|
|
@@ -612,7 +651,7 @@ function xiaoERecoveryFailedError(diagnostics, resultSessionExpired = false, env
|
|
|
612
651
|
}
|
|
613
652
|
async function getE10Session(ctx, load = {}) {
|
|
614
653
|
const options = ctx.getGlobalOptions();
|
|
615
|
-
return E10AuthSession.fromOptions(options, ctx.cwd, load);
|
|
654
|
+
return E10AuthSession.fromOptions(options, ctx.cwd, load, ctx.env);
|
|
616
655
|
}
|
|
617
656
|
async function requireE10Session(ctx, load = {}) {
|
|
618
657
|
const options = ctx.getGlobalOptions();
|
|
@@ -644,6 +683,9 @@ async function requireE10Session(ctx, load = {}) {
|
|
|
644
683
|
throw xiaoERecoveryFailedError(outcome?.diagnostics, false, ctx.env);
|
|
645
684
|
}
|
|
646
685
|
}
|
|
686
|
+
if (!session) {
|
|
687
|
+
session = await recoverWorkBuddyAuthSession(ctx);
|
|
688
|
+
}
|
|
647
689
|
if (!session) {
|
|
648
690
|
throw new CliError(E10_AUTH_REQUIRED_MESSAGE, 3 /* AuthError */);
|
|
649
691
|
}
|
|
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KJA7CRES.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WHI6YAUE.js";
|
|
11
11
|
|
|
12
12
|
// src/shortcuts/meeting/operations/eb/group-chat.ts
|
|
13
13
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
|
|
|
16
16
|
var GROUP_FIELD = "imchat_groupid";
|
|
17
17
|
var PENDING_DIR = "pending-forms";
|
|
18
18
|
async function buildEsbEnv(env) {
|
|
19
|
-
const { createEsbHost } = await import("./host-
|
|
19
|
+
const { createEsbHost } = await import("./host-EJSJSLVK.js");
|
|
20
20
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
21
21
|
return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
|
|
22
22
|
}
|
|
23
23
|
async function buildImEnv(env) {
|
|
24
|
-
const { createImHost } = await import("./host-
|
|
24
|
+
const { createImHost } = await import("./host-XXGDQM7D.js");
|
|
25
25
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
26
26
|
return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
|
|
27
27
|
}
|
|
28
28
|
async function buildWorkflowEnv(env) {
|
|
29
|
-
const { createWorkflowHost } = await import("./host-
|
|
29
|
+
const { createWorkflowHost } = await import("./host-6UOXYOOY.js");
|
|
30
30
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
31
31
|
return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
|
|
32
32
|
}
|
|
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
159
159
|
if (addressText === "[object Object]") addressText = "";
|
|
160
160
|
if (addressText) {
|
|
161
161
|
try {
|
|
162
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
162
|
+
const { resolveAddressRoom } = await import("./create-flow-UGTDI7SP.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
168
168
|
if (addressText) mainTable.address = addressText;
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
const { getEsbOperation } = await import("./registry-
|
|
171
|
+
const { getEsbOperation } = await import("./registry-3VTB3KLV.js");
|
|
172
172
|
const esbEnv = await buildEsbEnv(env);
|
|
173
173
|
const prepare = getEsbOperation("esb.trigger.prepare");
|
|
174
174
|
const apply = getEsbOperation("esb.trigger.apply");
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-COX6AVK7.js");
|
|
205
205
|
const session = await env.host.getSession();
|
|
206
206
|
await env.host.request({
|
|
207
207
|
method: "POST",
|
|
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
219
219
|
return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const { getMeetingOperation } = await import("./registry-
|
|
222
|
+
const { getMeetingOperation } = await import("./registry-7UDUWYB5.js");
|
|
223
223
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
224
224
|
const read = await detail.handler({ id }, env);
|
|
225
225
|
const main = read?.data?.data ?? read?.data?.main ?? {};
|
|
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
235
235
|
}
|
|
236
236
|
async function searchMyRequests(env, options = {}) {
|
|
237
237
|
try {
|
|
238
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
238
|
+
const { getWorkflowOperation } = await import("./registry-F4YFZLOD.js");
|
|
239
239
|
const op = getWorkflowOperation("workflow.search");
|
|
240
240
|
const wfEnv = await buildWorkflowEnv(env);
|
|
241
241
|
const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
|
|
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
|
|
|
267
267
|
const target = String(requestId).trim();
|
|
268
268
|
if (target === "") return null;
|
|
269
269
|
try {
|
|
270
|
-
const { getMeetingOperation } = await import("./registry-
|
|
270
|
+
const { getMeetingOperation } = await import("./registry-7UDUWYB5.js");
|
|
271
271
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
272
272
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
273
273
|
const page = await list.handler({ pageSize: 30 }, env);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
emitUpdateNotice,
|
|
5
|
+
withUpdateNotice
|
|
6
|
+
} from "./chunk-257JXJGD.js";
|
|
3
7
|
import {
|
|
4
8
|
refsDir,
|
|
5
9
|
refsIndexPath
|
|
@@ -819,10 +823,15 @@ var Output = class {
|
|
|
819
823
|
const globalOptions = this.ctx.getGlobalOptions();
|
|
820
824
|
const useJson = globalOptions.json || options.json || !options.text;
|
|
821
825
|
if (!useJson) {
|
|
826
|
+
emitUpdateNotice();
|
|
822
827
|
console.log(options.text);
|
|
823
828
|
return;
|
|
824
829
|
}
|
|
825
|
-
console.log(stringifyForStdout(this.prepare(value, options), options.compactPaths));
|
|
830
|
+
console.log(stringifyForStdout(withUpdateNotice(this.prepare(value, options)), options.compactPaths));
|
|
831
|
+
}
|
|
832
|
+
/** Keep stderr a single JSON envelope, even when a version reminder is pending. */
|
|
833
|
+
error(value, spaces = 2) {
|
|
834
|
+
console.error(JSON.stringify(withUpdateNotice(value), null, spaces));
|
|
826
835
|
}
|
|
827
836
|
prepare(value, options) {
|
|
828
837
|
const threshold = resultThresholdChars(this.ctx);
|
|
@@ -884,6 +893,7 @@ var Output = class {
|
|
|
884
893
|
};
|
|
885
894
|
}
|
|
886
895
|
raw(message) {
|
|
896
|
+
emitUpdateNotice();
|
|
887
897
|
console.log(message);
|
|
888
898
|
}
|
|
889
899
|
/**
|