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
package/README.md
CHANGED
|
@@ -172,6 +172,39 @@ npm unlink -g weaver-work-cli
|
|
|
172
172
|
npm uninstall -g weaver-work-cli
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
+
## CLI 版本检查与更新
|
|
176
|
+
|
|
177
|
+
非 XiaoE 的 npm 全局安装在使用时触发版本检查:同一安装路径在 24 小时内最多自动检查一次。
|
|
178
|
+
其余调用只读本地缓存,不启动 npm、不联网;检查总超时最多约 3 秒,失败也冷却 24 小时且不阻断业务。
|
|
179
|
+
`--help`、`--version` 不触发检查。没有定时任务或常驻后台进程,CLI 不运行就不检查。
|
|
180
|
+
源码和 `npm link` 开发环境跳过自动检查;项目内安装不做全局覆盖升级,应由项目的包管理器维护。
|
|
181
|
+
XiaoE 使用宿主管理的版本,跳过 CLI 自行检查和更新;宿主需保留 `XIAOE_*` 标记或传入
|
|
182
|
+
`--runtime-agent xiaoe`。不要让宿主更新器与 CLI 自更新器同时管理同一安装路径。
|
|
183
|
+
|
|
184
|
+
发现新版时,业务仍然正常执行。对象形式的 JSON 结果会附加 `cliUpdate`;文本、原始输出或数组
|
|
185
|
+
通过 stderr 的 `[weaver-work-cli:update]` 返回提示,不改变原有 stdout 形态和业务退出码。
|
|
186
|
+
提示包含当前/最新版本、`hostAction: "ask_user"`、`confirmationToken` 和命令参数数组 `commands`。
|
|
187
|
+
Agent 应调用宿主自己的提问/确认工具:用户确认后执行 `commands.update`,选择稍后则执行
|
|
188
|
+
`commands.later`。纯 shell 的 CLI 无法直接调用宿主 ask,也不在 stdin 上等待交互。
|
|
189
|
+
同一版本的自动提醒最多每天一次,「稍后」延后 24 小时;发现另一新版可重新提示。
|
|
190
|
+
|
|
191
|
+
```text
|
|
192
|
+
weaver-work-cli update status
|
|
193
|
+
weaver-work-cli update check
|
|
194
|
+
weaver-work-cli update apply --confirm "<提示中的 confirmationToken>"
|
|
195
|
+
weaver-work-cli update defer --confirm "<提示中的 confirmationToken>"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
`status` 只读取缓存;`check` 是显式的立即检查,会绕过自动检查与提醒的冷却。
|
|
199
|
+
`apply` 必须携带用户已确认提示中的 token,只安装确认的具体版本;npm 源或安装位置变化后需重新检查确认。
|
|
200
|
+
更新会等待其他业务进程退出(最长 30 秒),期间新进程需稍后重试;npm 安装超时为 120 秒。
|
|
201
|
+
更新原地覆盖,不保存历史运行时、不自动重跑业务、不使用 sudo;失败可能需要用原安装方式重新安装修复,
|
|
202
|
+
不提供自动回滚。CLI 更新不会自动刷新已经拷贝到各宿主目录的 Skill。
|
|
203
|
+
|
|
204
|
+
缓存和进程互斥文件按安装路径隔离,默认位于 `~/.weaver-work-cli/state/updates/<安装路径摘要>/`,
|
|
205
|
+
沿用 `WEAVER_WORK_CLI_HOME` / `WORK_CLI_HOME`。需要关闭检查(例如 CI 或固定版本环境)时设置
|
|
206
|
+
`WEAVER_WORK_CLI_UPDATE=off`;该设置也禁用 `update apply`。旧版用户需要先升级到包含本机制的版本。
|
|
207
|
+
|
|
175
208
|
## 常用命令
|
|
176
209
|
|
|
177
210
|
```text
|
|
@@ -233,7 +266,10 @@ E10 配置/映射 → 当前 profile → `https://www.e-cology.com.cn`”解析
|
|
|
233
266
|
|
|
234
267
|
业务命令缺少可读取的本地会话时,若当前环境已通过 `XIAOE_*`、`--runtime-agent xiaoe`
|
|
235
268
|
等运行时标记识别为 XiaoE,CLI 会先静默尝试统一登录,再继续原业务操作;失败时返回
|
|
236
|
-
`authentication/xiaoe_credential_unavailable
|
|
269
|
+
`authentication/xiaoe_credential_unavailable`,提示已尝试自动获取。WorkBuddy 缺少匹配会话时
|
|
270
|
+
自动发起渠道为 `workbuddy` 的浏览器 OAuth,授权完成后继续原操作;其他宿主首次认证仍需显式选择登录方式。
|
|
271
|
+
WorkBuddy 与 XiaoE 分别保存登录态,只接受归属当前宿主的 `agentType`,即使域名相同也不共用凭据;
|
|
272
|
+
宿主记录缺失或损坏时不借用全局 profile。`identity whoami` 也支持缺少会话时自动获取。
|
|
237
273
|
`auth status --no-check` 等本地状态查询不会触发登录。已有 XiaoE 会话达到 `expiryTimes` 时,CLI 会在业务请求发出前静默换取新会话;接口层明确判定失效(HTTP 401/302、业务码 `-2` 或登录页)时,
|
|
238
274
|
公共 E10 请求运行时会根据持久化会话的 `agentType` / `loginSource` 静默换取一次新会话并把被拒绝的请求重放一次;该恢复不依赖 shared Skill、Agent、`XIAOE_*` 或 `--runtime-agent xiaoe`。这个过程不向
|
|
239
275
|
stdout/stderr 输出中间“登录”步骤,并会合并同一 profile 的并发换票。流式请求、网络错误、
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
8
8
|
manifestView,
|
|
9
9
|
schemaOptionsOf
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
reportPlatformError
|
|
13
|
-
} from "./chunk-MD5CW4B6.js";
|
|
10
|
+
} from "./chunk-2QCCXPNU.js";
|
|
14
11
|
import {
|
|
15
12
|
CONTINUATION_TTL_MS
|
|
16
13
|
} from "./chunk-7BDPM5ST.js";
|
|
14
|
+
import {
|
|
15
|
+
reportPlatformError
|
|
16
|
+
} from "./chunk-MD5CW4B6.js";
|
|
17
17
|
import {
|
|
18
18
|
E10ApiError,
|
|
19
19
|
createE10RequestRuntime,
|
|
20
20
|
isE10SessionExpiredResponse,
|
|
21
21
|
requireE10Session
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FPWCCRKT.js";
|
|
23
23
|
import {
|
|
24
24
|
E10_SESSION_EXPIRED_MESSAGE
|
|
25
25
|
} from "./chunk-IZCQU5D5.js";
|
|
@@ -27,7 +27,10 @@ import {
|
|
|
27
27
|
getActiveProfile,
|
|
28
28
|
hasXiaoEEnv,
|
|
29
29
|
writeWithRetry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QVKRNL7L.js";
|
|
31
|
+
import "./chunk-Y3C6MDL7.js";
|
|
32
|
+
import "./chunk-7DE3VMZD.js";
|
|
33
|
+
import "./chunk-2BZ7TY4M.js";
|
|
31
34
|
import {
|
|
32
35
|
CliError,
|
|
33
36
|
isCliError,
|
|
@@ -1487,7 +1490,8 @@ var searchRun = {
|
|
|
1487
1490
|
resource: "search",
|
|
1488
1491
|
method: "run",
|
|
1489
1492
|
action: "archive.search.run",
|
|
1490
|
-
summary: "\u6309\u5173\u952E\u8BCD\u5168\u6587\u68C0\u7D22\u6863\u6848\uFF08\u53EF\u501F\u6863\u6848\u5217\u8868\uFF09\uFF0C\u652F\u6301\u5206\u9875\uFF1B\
|
|
1493
|
+
summary: "\u6309\u5173\u952E\u8BCD\u5168\u6587\u68C0\u7D22\u6863\u6848\uFF08\u53EF\u501F\u6863\u6848\u5217\u8868\uFF09\uFF0C\u652F\u6301\u5206\u9875\uFF1B\u7ED3\u679C\u884C\u5E26\u5C55\u793A\u5B57\u6BB5\u4E0E id/formId\uFF0C\u53EF\u76F4\u63A5\u52A0\u5165\u501F\u9605\u8F66\u6216\u53D1\u8D77\u501F\u9605\u3002",
|
|
1494
|
+
notes: "\u6BCF\u884C\u9664\u539F\u59CB\u5B57\u6BB5\u5916\u4F1A\u9644\u5E26 level/fonds/category/dateLabel/dateValue/viewPath \u5C55\u793A\u5B57\u6BB5\uFF1B\u7ED3\u679C\u884C\u7684 id \u4E0E formId \u7528\u4E8E\u52A0\u5165\u501F\u9605\u8F66\u3001\u53D1\u8D77\u501F\u9605\u6216\u62FC\u63A5 archiveView \u94FE\u63A5\u3002",
|
|
1491
1495
|
capability: "search",
|
|
1492
1496
|
risk: READ,
|
|
1493
1497
|
inputSchema: schemaOf(
|
|
@@ -3076,6 +3080,7 @@ var archiveOperations = archiveOperationDefinitions().map((definition) => ({
|
|
|
3076
3080
|
name: definition.name,
|
|
3077
3081
|
resource: definition.resource,
|
|
3078
3082
|
summary: definition.summary,
|
|
3083
|
+
...definition.notes ? { notes: definition.notes } : {},
|
|
3079
3084
|
...definition.capability ? { capability: definition.capability } : {},
|
|
3080
3085
|
risk: definition.risk,
|
|
3081
3086
|
...definition.requiresConfirmation ? { requiresConfirmation: true } : {},
|
|
@@ -3208,7 +3213,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
3208
3213
|
ctx.output.write(successEnvelope(result), { json: true });
|
|
3209
3214
|
} catch (error) {
|
|
3210
3215
|
reportPlatformError(error);
|
|
3211
|
-
|
|
3216
|
+
ctx.output.error(failureEnvelope(error));
|
|
3212
3217
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
3213
3218
|
}
|
|
3214
3219
|
}
|
|
@@ -3248,7 +3253,7 @@ async function executeSearchPrint(ctx, input, format, outputPath) {
|
|
|
3248
3253
|
ctx.output.raw(formatSearchText(rows, meta));
|
|
3249
3254
|
} catch (error) {
|
|
3250
3255
|
reportPlatformError(error);
|
|
3251
|
-
|
|
3256
|
+
ctx.output.error(failureEnvelope(error));
|
|
3252
3257
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
3253
3258
|
}
|
|
3254
3259
|
}
|
|
@@ -4,25 +4,28 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS
|
|
13
10
|
} from "./chunk-7BDPM5ST.js";
|
|
11
|
+
import {
|
|
12
|
+
reportPlatformError
|
|
13
|
+
} from "./chunk-MD5CW4B6.js";
|
|
14
14
|
import {
|
|
15
15
|
E10ApiError,
|
|
16
16
|
createE10RequestRuntime,
|
|
17
17
|
isE10SessionExpiredResponse,
|
|
18
18
|
requireE10Session
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FPWCCRKT.js";
|
|
20
20
|
import {
|
|
21
21
|
E10_SESSION_EXPIRED_MESSAGE
|
|
22
22
|
} from "./chunk-IZCQU5D5.js";
|
|
23
23
|
import {
|
|
24
24
|
getActiveProfile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QVKRNL7L.js";
|
|
26
|
+
import "./chunk-Y3C6MDL7.js";
|
|
27
|
+
import "./chunk-7DE3VMZD.js";
|
|
28
|
+
import "./chunk-2BZ7TY4M.js";
|
|
26
29
|
import {
|
|
27
30
|
CliError,
|
|
28
31
|
isCliError,
|
|
@@ -1903,7 +1906,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1903
1906
|
ctx.output.write(successEnvelope(result), { json: true });
|
|
1904
1907
|
} catch (error) {
|
|
1905
1908
|
reportPlatformError(error);
|
|
1906
|
-
|
|
1909
|
+
ctx.output.error(failureEnvelope(error));
|
|
1907
1910
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1908
1911
|
}
|
|
1909
1912
|
}
|
|
@@ -4,24 +4,27 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS
|
|
13
10
|
} from "./chunk-7BDPM5ST.js";
|
|
11
|
+
import {
|
|
12
|
+
reportPlatformError
|
|
13
|
+
} from "./chunk-MD5CW4B6.js";
|
|
14
14
|
import {
|
|
15
15
|
createE10RequestRuntime,
|
|
16
16
|
isE10SessionExpiredResponse,
|
|
17
17
|
requireE10Session
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPWCCRKT.js";
|
|
19
19
|
import {
|
|
20
20
|
E10_SESSION_EXPIRED_MESSAGE
|
|
21
21
|
} from "./chunk-IZCQU5D5.js";
|
|
22
22
|
import {
|
|
23
23
|
getActiveProfile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QVKRNL7L.js";
|
|
25
|
+
import "./chunk-Y3C6MDL7.js";
|
|
26
|
+
import "./chunk-7DE3VMZD.js";
|
|
27
|
+
import "./chunk-2BZ7TY4M.js";
|
|
25
28
|
import {
|
|
26
29
|
CliError,
|
|
27
30
|
isCliError,
|
|
@@ -2048,7 +2051,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
2048
2051
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
2049
2052
|
} catch (error) {
|
|
2050
2053
|
reportPlatformError(error);
|
|
2051
|
-
|
|
2054
|
+
ctx.output.error(failureEnvelope(error));
|
|
2052
2055
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2053
2056
|
}
|
|
2054
2057
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
8
8
|
import {
|
|
9
9
|
reportPlatformError
|
|
10
10
|
} from "./chunk-MD5CW4B6.js";
|
|
@@ -13,13 +13,16 @@ import {
|
|
|
13
13
|
createE10RequestRuntime,
|
|
14
14
|
isE10SessionExpiredResponse,
|
|
15
15
|
requireE10Session
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FPWCCRKT.js";
|
|
17
17
|
import {
|
|
18
18
|
E10_SESSION_EXPIRED_MESSAGE
|
|
19
19
|
} from "./chunk-IZCQU5D5.js";
|
|
20
20
|
import {
|
|
21
21
|
getActiveProfile
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QVKRNL7L.js";
|
|
23
|
+
import "./chunk-Y3C6MDL7.js";
|
|
24
|
+
import "./chunk-7DE3VMZD.js";
|
|
25
|
+
import "./chunk-2BZ7TY4M.js";
|
|
23
26
|
import {
|
|
24
27
|
CliError,
|
|
25
28
|
isCliError,
|
|
@@ -656,7 +659,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
656
659
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
657
660
|
} catch (error) {
|
|
658
661
|
reportPlatformError(error);
|
|
659
|
-
|
|
662
|
+
ctx.output.error(failureEnvelope(error));
|
|
660
663
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
661
664
|
}
|
|
662
665
|
}
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T7HVQ2WP.js";
|
|
12
12
|
import "./chunk-WMRNO6IU.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-KJA7CRES.js";
|
|
14
|
+
import "./chunk-WHI6YAUE.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,24 +4,27 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS
|
|
13
10
|
} from "./chunk-7BDPM5ST.js";
|
|
11
|
+
import {
|
|
12
|
+
reportPlatformError
|
|
13
|
+
} from "./chunk-MD5CW4B6.js";
|
|
14
14
|
import {
|
|
15
15
|
createE10RequestRuntime,
|
|
16
16
|
isE10SessionExpiredResponse,
|
|
17
17
|
requireE10Session
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPWCCRKT.js";
|
|
19
19
|
import {
|
|
20
20
|
E10_SESSION_EXPIRED_MESSAGE
|
|
21
21
|
} from "./chunk-IZCQU5D5.js";
|
|
22
22
|
import {
|
|
23
23
|
getActiveProfile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QVKRNL7L.js";
|
|
25
|
+
import "./chunk-Y3C6MDL7.js";
|
|
26
|
+
import "./chunk-7DE3VMZD.js";
|
|
27
|
+
import "./chunk-2BZ7TY4M.js";
|
|
25
28
|
import {
|
|
26
29
|
CliError,
|
|
27
30
|
isCliError,
|
|
@@ -1992,7 +1995,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1992
1995
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1993
1996
|
} catch (error) {
|
|
1994
1997
|
reportPlatformError(error);
|
|
1995
|
-
|
|
1998
|
+
ctx.output.error(failureEnvelope(error));
|
|
1996
1999
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1997
2000
|
}
|
|
1998
2001
|
}
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
caizhilianManifest,
|
|
5
5
|
caizhilianOperationDefinitions,
|
|
6
6
|
executeCaizhilianOperation
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XNN5PZTI.js";
|
|
8
8
|
import {
|
|
9
9
|
createCaizhilianHost
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PMRNIGKZ.js";
|
|
11
11
|
import {
|
|
12
12
|
createCaizhilianContinuationSigner
|
|
13
13
|
} from "./chunk-VRPH24IC.js";
|
|
@@ -18,14 +18,17 @@ import {
|
|
|
18
18
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
19
19
|
manifestView,
|
|
20
20
|
schemaOptionsOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2QCCXPNU.js";
|
|
22
|
+
import "./chunk-7BDPM5ST.js";
|
|
22
23
|
import {
|
|
23
24
|
reportPlatformError
|
|
24
25
|
} from "./chunk-MD5CW4B6.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-IU6UB2TD.js";
|
|
26
|
+
import "./chunk-FPWCCRKT.js";
|
|
27
27
|
import "./chunk-IZCQU5D5.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QVKRNL7L.js";
|
|
29
|
+
import "./chunk-Y3C6MDL7.js";
|
|
30
|
+
import "./chunk-7DE3VMZD.js";
|
|
31
|
+
import "./chunk-2BZ7TY4M.js";
|
|
29
32
|
import {
|
|
30
33
|
isCliError,
|
|
31
34
|
toErrorEnvelope
|
|
@@ -110,7 +113,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
110
113
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
111
114
|
} catch (error) {
|
|
112
115
|
reportPlatformError(error);
|
|
113
|
-
|
|
116
|
+
ctx.output.error(failureEnvelope(error));
|
|
114
117
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
115
118
|
}
|
|
116
119
|
}
|
|
@@ -4,26 +4,29 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS,
|
|
13
10
|
CONTINUATION_TTL_SECONDS
|
|
14
11
|
} from "./chunk-7BDPM5ST.js";
|
|
12
|
+
import {
|
|
13
|
+
reportPlatformError
|
|
14
|
+
} from "./chunk-MD5CW4B6.js";
|
|
15
15
|
import {
|
|
16
16
|
E10ApiError,
|
|
17
17
|
createE10RequestRuntime,
|
|
18
18
|
isE10SessionExpiredResponse,
|
|
19
19
|
requireE10Session
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FPWCCRKT.js";
|
|
21
21
|
import {
|
|
22
22
|
E10_SESSION_EXPIRED_MESSAGE
|
|
23
23
|
} from "./chunk-IZCQU5D5.js";
|
|
24
24
|
import {
|
|
25
25
|
getActiveProfile
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QVKRNL7L.js";
|
|
27
|
+
import "./chunk-Y3C6MDL7.js";
|
|
28
|
+
import "./chunk-7DE3VMZD.js";
|
|
29
|
+
import "./chunk-2BZ7TY4M.js";
|
|
27
30
|
import {
|
|
28
31
|
CliError,
|
|
29
32
|
isCliError,
|
|
@@ -1216,7 +1219,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1216
1219
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1217
1220
|
} catch (error) {
|
|
1218
1221
|
reportPlatformError(error);
|
|
1219
|
-
|
|
1222
|
+
ctx.output.error(failureEnvelope(error));
|
|
1220
1223
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1221
1224
|
}
|
|
1222
1225
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/core/update-notice.ts
|
|
5
|
+
var notice;
|
|
6
|
+
var delivered = false;
|
|
7
|
+
function setUpdateNotice(value) {
|
|
8
|
+
notice = value;
|
|
9
|
+
delivered = false;
|
|
10
|
+
}
|
|
11
|
+
function withUpdateNotice(value) {
|
|
12
|
+
if (!notice) return value;
|
|
13
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
14
|
+
delivered = true;
|
|
15
|
+
return { ...value, cliUpdate: notice };
|
|
16
|
+
}
|
|
17
|
+
emitUpdateNotice();
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
function emitUpdateNotice() {
|
|
21
|
+
if (!notice || delivered) return;
|
|
22
|
+
delivered = true;
|
|
23
|
+
process.stderr.write("[weaver-work-cli:update] " + JSON.stringify(notice) + "\n");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
setUpdateNotice,
|
|
28
|
+
withUpdateNotice,
|
|
29
|
+
emitUpdateNotice
|
|
30
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/core/package-paths.ts
|
|
5
|
+
import { existsSync, realpathSync } from "node:fs";
|
|
6
|
+
import { dirname, join, resolve } from "node:path";
|
|
7
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
|
+
var cachedRoot;
|
|
9
|
+
function entryDirectory(entry) {
|
|
10
|
+
const absoluteEntry = resolve(entry);
|
|
11
|
+
try {
|
|
12
|
+
return dirname(realpathSync(absoluteEntry));
|
|
13
|
+
} catch {
|
|
14
|
+
return dirname(absoluteEntry);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function packageRootDir() {
|
|
18
|
+
if (cachedRoot) return cachedRoot;
|
|
19
|
+
const seeds = [];
|
|
20
|
+
const entry = process.argv[1];
|
|
21
|
+
if (entry) seeds.push(entryDirectory(entry));
|
|
22
|
+
seeds.push(dirname(fileURLToPath(import.meta.url)));
|
|
23
|
+
for (const seed of seeds) {
|
|
24
|
+
let dir = seed;
|
|
25
|
+
for (let depth = 0; depth < 10; depth += 1) {
|
|
26
|
+
if (existsSync(join(dir, "package.json"))) {
|
|
27
|
+
cachedRoot = dir;
|
|
28
|
+
return dir;
|
|
29
|
+
}
|
|
30
|
+
const parent = dirname(dir);
|
|
31
|
+
if (parent === dir) break;
|
|
32
|
+
dir = parent;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
cachedRoot = process.cwd();
|
|
36
|
+
return cachedRoot;
|
|
37
|
+
}
|
|
38
|
+
function packagePath(...segments) {
|
|
39
|
+
return join(packageRootDir(), ...segments);
|
|
40
|
+
}
|
|
41
|
+
function packageFileUrl(...segments) {
|
|
42
|
+
return pathToFileURL(packagePath(...segments));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
packageRootDir,
|
|
47
|
+
packagePath,
|
|
48
|
+
packageFileUrl
|
|
49
|
+
};
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FPWCCRKT.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE
|
|
17
17
|
} from "./chunk-IZCQU5D5.js";
|
|
18
18
|
import {
|
|
19
19
|
getActiveProfile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QVKRNL7L.js";
|
|
21
21
|
|
|
22
22
|
// src/shortcuts/im/host.ts
|
|
23
23
|
import { createHash } from "node:crypto";
|
|
@@ -57,7 +57,7 @@ function suggestionsOf(manifest, wanted) {
|
|
|
57
57
|
}
|
|
58
58
|
function schemaHintOf(manifest) {
|
|
59
59
|
const domain = domainOf(manifest) || "<domain>";
|
|
60
|
-
return `\u672C\u6E05\u5355\u53EA\u542B name/summary/risk\u3002\u53D6\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5165\u53C2\u5951\u7EA6\uFF08\u542B inputSchema\uFF09\uFF1Aweaver-work-cli ${domain} schema --operation <name>`;
|
|
60
|
+
return `\u672C\u6E05\u5355\u53EA\u542B name/summary/risk\uFF08summary \u9650 120 \u5B57\uFF0C\u5B8C\u6574\u8BF4\u660E\u5728 notes\uFF09\u3002\u53D6\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5165\u53C2\u5951\u7EA6\uFF08\u542B inputSchema \u4E0E notes\uFF09\uFF1Aweaver-work-cli ${domain} schema --operation <name>`;
|
|
61
61
|
}
|
|
62
62
|
function operationHintOf(manifest) {
|
|
63
63
|
const domain = domainOf(manifest) || "<domain>";
|