weaver-work-cli 0.1.70 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{archive-VUTREF3P.js → archive-THZV4ND4.js} +22 -5
- package/dist/chunks/{archive-oa-VXXO4RTB.js → archive-oa-PQ23OLEV.js} +17 -5
- package/dist/chunks/{asset-45U6TY7I.js → asset-RGPROZYH.js} +22 -5
- package/dist/chunks/{asset-idle-YCRBMTIT.js → asset-idle-Z2PDX7NA.js} +15 -5
- package/dist/chunks/{attachment-content-DMU7KNZ7.js → attachment-content-R3RPVOYE.js} +3 -3
- package/dist/chunks/{blog-5AML4WMG.js → blog-7U3QZPIF.js} +25 -5
- package/dist/chunks/{caizhilian-3P7BUNHT.js → caizhilian-3AB42GCV.js} +22 -8
- package/dist/chunks/{calendar-2HUXM3CZ.js → calendar-KINM64E4.js} +15 -5
- package/dist/chunks/{chunk-EHH363SP.js → chunk-2CHGUYMG.js} +4 -4
- package/dist/chunks/{chunk-GWM5TLIK.js → chunk-2XED2FKY.js} +34 -34
- package/dist/chunks/{chunk-DVFA3ODS.js → chunk-35A56FJ7.js} +12 -0
- package/dist/chunks/{chunk-QYDSTYGG.js → chunk-4BXR6CNB.js} +3 -3
- package/dist/chunks/{chunk-KDOJW5LH.js → chunk-4I26YMBY.js} +1 -1
- package/dist/chunks/{chunk-X6PMJQGO.js → chunk-4YXAK6OA.js} +19 -8
- package/dist/chunks/{chunk-HG6INLH6.js → chunk-54ST55IJ.js} +28 -7
- package/dist/chunks/{chunk-DSBV4GRK.js → chunk-6HT73VOI.js} +3 -3
- package/dist/chunks/{chunk-4W6BSNIL.js → chunk-7QFVXP2X.js} +6 -6
- package/dist/chunks/{chunk-I5XB4MZT.js → chunk-AMAPQVBT.js} +95 -65
- package/dist/chunks/{chunk-L2A3COWV.js → chunk-BWYVS62Z.js} +4 -4
- package/dist/chunks/{chunk-UPVAQJKS.js → chunk-DRUND2PJ.js} +130 -79
- package/dist/chunks/{chunk-LJE7RZNC.js → chunk-F4HM25K4.js} +1 -1
- package/dist/chunks/{chunk-T24EBWAZ.js → chunk-GAMGDNTF.js} +48 -21
- package/dist/chunks/{chunk-H2NRTGZR.js → chunk-GWJLAF6B.js} +3 -3
- package/dist/chunks/{chunk-XIBMZEDB.js → chunk-IBSJJGXL.js} +2 -2
- package/dist/chunks/{chunk-VZUH3LKI.js → chunk-ICP53R52.js} +167 -157
- package/dist/chunks/{chunk-LRKKKO5A.js → chunk-IU6UB2TD.js} +3 -4
- package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
- package/dist/chunks/{chunk-727VKJQK.js → chunk-JMJBPP4B.js} +2 -2
- package/dist/chunks/{chunk-UVWW5ABZ.js → chunk-L7TYG5SN.js} +3 -3
- package/dist/chunks/{chunk-HAORST2G.js → chunk-LLCMOZ5L.js} +11 -11
- package/dist/chunks/{chunk-U3OO3IZF.js → chunk-NUP4RYZK.js} +20 -7
- package/dist/chunks/{chunk-IVCOZCAW.js → chunk-PAFOLIYQ.js} +1 -1
- package/dist/chunks/{chunk-LSVA7QA6.js → chunk-R3MK2RBN.js} +3 -1
- package/dist/chunks/{chunk-GFOFUH6O.js → chunk-TV46Q4NY.js} +52 -51
- package/dist/chunks/chunk-WM33BSIL.js +136 -0
- package/dist/chunks/{chunk-7CINV2BU.js → chunk-XZBYRYWX.js} +2 -2
- package/dist/chunks/{chunk-E7VWE2XI.js → chunk-ZWLWXHJC.js} +3 -3
- package/dist/chunks/{conflict-YW5BULJ3.js → conflict-VPAR7E6F.js} +2 -2
- package/dist/chunks/{contract-3PMHUASH.js → contract-DDXAO2DZ.js} +48 -5
- package/dist/chunks/{cowork-FZBTTBYX.js → cowork-34QCHMDD.js} +37 -8
- package/dist/chunks/{create-flow-5OBS3B3V.js → create-flow-52PU2OBI.js} +6 -6
- package/dist/chunks/{data-2YZ6A6TL.js → data-CLQ62QGD.js} +99 -184
- package/dist/chunks/{ebuilder-form-AWPTMZBZ.js → ebuilder-form-W5R7Q22S.js} +17 -7
- package/dist/chunks/{ehr-MNPR4TE5.js → ehr-LCNAVMK5.js} +67 -17
- package/dist/chunks/{entry-mode-L65OWPFM.js → entry-mode-6Z3ZV3DE.js} +3 -3
- package/dist/chunks/{env-XW7LYIME.js → env-RDKWAARB.js} +2 -2
- package/dist/chunks/{esb-GSB5QCEX.js → esb-ANKPUU65.js} +17 -7
- package/dist/chunks/{factory-MHFZZAGH.js → factory-434B7RAT.js} +1 -1
- package/dist/chunks/{fna-XBSNUS2V.js → fna-AKBSG5HI.js} +15 -5
- package/dist/chunks/{group-chat-EEOLO5NM.js → group-chat-PROTW22R.js} +3 -3
- package/dist/chunks/{host-NVDG3NC6.js → host-5R2SNFWD.js} +4 -4
- package/dist/chunks/{host-2UMNXX5H.js → host-7FJW4E7R.js} +4 -4
- package/dist/chunks/{host-XVWBOSEN.js → host-CGXUFQO4.js} +4 -4
- package/dist/chunks/{host-R7BP3CTI.js → host-PDJAKCT7.js} +6 -4
- package/dist/chunks/{host-SYPCA63D.js → host-WO4L5G5I.js} +4 -4
- package/dist/chunks/{host-BD44ASOD.js → host-XIYG4F4B.js} +4 -4
- package/dist/chunks/{hrm-FZUDJAND.js → hrm-WGODDTEH.js} +15 -6
- package/dist/chunks/{im-F5NENPD7.js → im-YKTKAJU3.js} +16 -6
- package/dist/chunks/{invoice-DS6FLU55.js → invoice-PVYCCCVM.js} +27 -6
- package/dist/chunks/{jiuchuanhui-JCBUR563.js → jiuchuanhui-RKOQW7BY.js} +19 -6
- package/dist/chunks/{lazy-dispatch-F6O2EPGR.js → lazy-dispatch-DW45AFQ5.js} +6 -6
- package/dist/chunks/{mail-ZEOSANEJ.js → mail-BNB5S4NW.js} +116 -97
- package/dist/chunks/{meeting-PCD5EPBF.js → meeting-O2KDJH66.js} +29 -16
- package/dist/chunks/{minute-doc-WTZJVCHG.js → minute-doc-JUCG56GY.js} +4 -4
- package/dist/chunks/{okr-OZUMTMCL.js → okr-LWFGWOE7.js} +15 -5
- package/dist/chunks/{operations-LQY3FTPH.js → operations-2WHIF5WV.js} +1 -1
- package/dist/chunks/{operations-UTUWFJTX.js → operations-532PN5OB.js} +5 -5
- package/dist/chunks/{performance-SMVTPK6T.js → performance-7W5COCFU.js} +92 -7
- package/dist/chunks/{plan-C2NENH42.js → plan-ZVY3IYTL.js} +15 -5
- package/dist/chunks/{project-FAJ2P3UR.js → project-SA62B7MH.js} +18 -5
- package/dist/chunks/{reception-NH6MJFPR.js → reception-NGIONPQ3.js} +128 -49
- package/dist/chunks/{recruit-stage-DPEFHLSE.js → recruit-stage-WOSN6MGP.js} +1264 -197
- package/dist/chunks/{registry-FTPUUHWC.js → registry-N7P3W2RD.js} +5 -5
- package/dist/chunks/{registry-3B3OAJYX.js → registry-R72GWXOG.js} +4 -4
- package/dist/chunks/{registry-ZQ7OONCB.js → registry-RIQ67ZT7.js} +12 -12
- package/dist/chunks/{room-recommend-73NBN3RU.js → room-recommend-KCGIVUFR.js} +4 -4
- package/dist/chunks/{schedule-SDBOBBUQ.js → schedule-6UP27HQ4.js} +4 -4
- package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-DDOQSPRB.js} +19 -6
- package/dist/chunks/{workflow-OWHWLAOX.js → workflow-V5ALD6QZ.js} +22 -8
- package/dist/cmd/auth/index.js +23 -0
- package/dist/cmd/e10/index.js +2 -1
- package/dist/cmd/index.js +2 -0
- package/dist/core/manifest-view.js +207 -0
- package/dist/core/output.js +42 -8
- package/dist/index.js +35 -35
- package/dist/internal/e10/auth/crypto.js +18 -8
- package/dist/internal/e10/auth/error-log.js +1 -2
- package/dist/internal/e10/auth/messages.js +2 -3
- package/dist/internal/e10/auth/xiaoe.js +1 -1
- package/dist/internal/e10/tls-policy.js +61 -13
- package/dist/shortcuts/archive/index.js +11 -2
- package/dist/shortcuts/archive/operations/download.js +1 -0
- package/dist/shortcuts/archive/operations/flow-url.js +3 -0
- package/dist/shortcuts/archive/operations/prelib.js +2 -0
- package/dist/shortcuts/archive/operations/upload.js +1 -0
- package/dist/shortcuts/archive-oa/index.js +11 -2
- package/dist/shortcuts/archive-oa/operations/borrow-car.js +2 -0
- package/dist/shortcuts/asset/index.js +11 -2
- package/dist/shortcuts/asset/manifest.js +7 -0
- package/dist/shortcuts/asset-idle/index.js +11 -2
- package/dist/shortcuts/blog/index.js +11 -2
- package/dist/shortcuts/blog/manifest.js +10 -0
- package/dist/shortcuts/caizhilian/host.js +20 -4
- package/dist/shortcuts/caizhilian/index.js +12 -2
- package/dist/shortcuts/caizhilian/manifest.js +4 -25
- package/dist/shortcuts/caizhilian/operations/handlers/search.js +34 -0
- package/dist/shortcuts/caizhilian/operations/registry.js +25 -1
- package/dist/shortcuts/calendar/index.js +11 -2
- package/dist/shortcuts/contract/index.js +11 -2
- package/dist/shortcuts/contract/manifest.js +32 -0
- package/dist/shortcuts/contract/operations/write.js +3 -0
- package/dist/shortcuts/cowork/index.js +21 -5
- package/dist/shortcuts/cowork/manifest.js +3 -0
- package/dist/shortcuts/cowork/operations/discuss-write.js +2 -0
- package/dist/shortcuts/cowork/operations/item-write.js +3 -0
- package/dist/shortcuts/cowork/operations/member-write.js +2 -0
- package/dist/shortcuts/cowork/operations/permission-write.js +2 -0
- package/dist/shortcuts/cowork/operations/review-write.js +1 -0
- package/dist/shortcuts/data/errors.js +16 -29
- package/dist/shortcuts/data/host.js +16 -7
- package/dist/shortcuts/data/index.js +12 -41
- package/dist/shortcuts/data/manifest.js +5 -44
- package/dist/shortcuts/data/operations/attend.js +2 -2
- package/dist/shortcuts/data/operations/conf.js +0 -88
- package/dist/shortcuts/data/operations/ds.js +4 -4
- package/dist/shortcuts/data/operations/index.js +1 -5
- package/dist/shortcuts/data/operations/module.js +40 -14
- package/dist/shortcuts/data/operations/query.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +11 -2
- package/dist/shortcuts/ebuilder-form/manifest.js +12 -0
- package/dist/shortcuts/ehr/index.js +11 -2
- package/dist/shortcuts/ehr/operations/attend-write.js +51 -8
- package/dist/shortcuts/ehr/operations/recruit-position.js +4 -3
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +3 -3
- package/dist/shortcuts/ehr/operations/recruit.js +206 -82
- package/dist/shortcuts/ehr/operations/shared.js +31 -0
- package/dist/shortcuts/esb/index.js +11 -2
- package/dist/shortcuts/esb/manifest.js +2 -0
- package/dist/shortcuts/fna/index.js +11 -2
- package/dist/shortcuts/hrm/index.js +11 -1
- package/dist/shortcuts/im/index.js +11 -2
- package/dist/shortcuts/invoice/index.js +11 -2
- package/dist/shortcuts/invoice/manifest.js +8 -0
- package/dist/shortcuts/jiuchuanhui/index.js +15 -1
- package/dist/shortcuts/jiuchuanhui/manifest.js +2 -0
- package/dist/shortcuts/mail/errors.js +14 -0
- package/dist/shortcuts/mail/index.js +23 -6
- package/dist/shortcuts/mail/manifest.js +11 -4
- package/dist/shortcuts/mail/operations/mail-blacklist.js +6 -6
- package/dist/shortcuts/mail/operations/mail-contacts.js +10 -10
- package/dist/shortcuts/mail/operations/mail-manage.js +15 -14
- package/dist/shortcuts/mail/operations/mail-read.js +7 -25
- package/dist/shortcuts/mail/operations/mail-send.js +12 -12
- package/dist/shortcuts/mail/operations/mail-sign.js +10 -10
- package/dist/shortcuts/mail/operations/mail-template.js +10 -10
- package/dist/shortcuts/meeting/index.js +11 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +1 -0
- package/dist/shortcuts/okr/index.js +11 -2
- package/dist/shortcuts/performance/index.js +62 -3
- package/dist/shortcuts/performance/scheme-validate.js +7 -0
- package/dist/shortcuts/performance/shared.js +40 -2
- package/dist/shortcuts/plan/index.js +11 -2
- package/dist/shortcuts/project/index.js +11 -2
- package/dist/shortcuts/project/operations/write.js +3 -0
- package/dist/shortcuts/reception/constants.js +22 -0
- package/dist/shortcuts/reception/index.js +15 -2
- package/dist/shortcuts/reception/manifest.js +17 -3
- package/dist/shortcuts/reception/operations/ask.js +3 -0
- package/dist/shortcuts/reception/operations/doc.js +24 -11
- package/dist/shortcuts/reception/operations/docrender.js +18 -1
- package/dist/shortcuts/reception/operations/render-assets.js +93 -22
- package/dist/shortcuts/recruit-stage/context.js +12 -6
- package/dist/shortcuts/recruit-stage/index.js +22 -3
- package/dist/shortcuts/recruit-stage/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +19 -10
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +487 -38
- package/dist/shortcuts/recruit-stage/operations/list.js +72 -1
- package/dist/shortcuts/recruit-stage/operations/profile.js +194 -0
- package/dist/shortcuts/recruit-stage/operations/registry.js +20 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +258 -63
- package/dist/shortcuts/recruit-stage/operations/search.js +226 -27
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +122 -0
- package/dist/shortcuts/recruit-stage/operations/tag.js +17 -3
- package/dist/shortcuts/recruit-stage/shared.js +158 -4
- package/dist/shortcuts/smart-extract/index.js +11 -2
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/save.js +2 -0
- package/dist/shortcuts/workflow/index.js +21 -1
- package/dist/shortcuts/workflow/operations/form.js +36 -2
- package/dist/shortcuts/workflow/operations/read.js +2 -2
- package/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/contract.md +1 -0
- package/docs/data.md +22 -22
- package/docs/e10-auth.md +41 -33
- package/docs/ehr.md +2 -0
- package/docs/reception.md +4 -3
- package/package.json +1 -1
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/scripts/pysite/sitecustomize.py +41 -0
- package/skill-template/domains/data.md +4 -4
- package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
- package/skills/weaver-e10-caizhilian/references/org-browser.md +1 -0
- package/skills/weaver-e10-cowork/SKILL.md +3 -1
- package/skills/weaver-e10-data/SKILL.md +12 -16
- package/skills/weaver-e10-data/references/config-center.md +6 -7
- package/skills/weaver-e10-data/references/datasource.md +1 -1
- package/skills/weaver-e10-data/references/scene-and-misc.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +6 -4
- package/skills/weaver-e10-jiuchuanhui/references/clue.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +18 -8
- package/skills/weaver-e10-jiuchuanhui/references/sale.md +2 -2
- package/skills/weaver-e10-jucailin/SKILL.md +7 -3
- package/skills/weaver-e10-jucailin/references/attend-write.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
- package/skills/weaver-e10-mail/SKILL.md +4 -1
- package/skills/weaver-e10-mail/references/mail-read.md +4 -2
- package/skills/weaver-e10-mail/references/safety-boundaries.md +1 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-performance/SKILL.md +8 -6
- package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
- package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +557 -75
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +67 -44
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +279 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +198 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +697 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +507 -0
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +87 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +19 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +19 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +15 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +37 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +64 -28
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +43 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +41 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +25 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +51 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +63 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +58 -33
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +5 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +11 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +106 -0
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +325 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +265 -0
- package/skills/weaver-e10-shared/SKILL.md +22 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
- package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
package/docs/ehr.md
CHANGED
|
@@ -117,6 +117,8 @@ HR 报表类接口走 `application/x-www-form-urlencoded`(`sourceType=LOGIC` +
|
|
|
117
117
|
4. 关键参数与 `prepare` 快照不一致时触发 `target_changed`,必须重新 `prepare`。
|
|
118
118
|
5. 网络中断抛出 `partial/write_uncertain`(退出码 `partial`),**禁止自动重试**,先做只读回查。
|
|
119
119
|
|
|
120
|
+
**报表重算的范围是必填项**:`scope` 只能是 `all` 或 `specified`。`specified` 必须带非空 `onlyEmpIds`,`all` 不得同时带 `onlyEmpIds`。省略 `scope` 会返回 `scope_required`,**不会再把缺省当作全部人员**——重算是全公司级破坏面,范围必须由调用方显式声明后才签发 continuation。
|
|
121
|
+
|
|
120
122
|
PC 打卡凭证 `sign` = `md5("wea" + "web" + empId + ETEAMSID + tenantKey 小写) + "ver"`,在 `apply` 阶段按当前会话实时构造,continuation 中不携带签名材料。
|
|
121
123
|
|
|
122
124
|
## 调用示例
|
package/docs/reception.md
CHANGED
|
@@ -48,14 +48,15 @@ weaver-work-cli --json reception run reception.ask --input-json '{"known":{"cust
|
|
|
48
48
|
|
|
49
49
|
| operation | risk | 作用 |
|
|
50
50
|
|---|---|---|
|
|
51
|
-
| `reception.ask` | read | 按 7 项抽取结果算缺口、出面板,返回 `runId
|
|
51
|
+
| `reception.ask` | read-with-side-effect | 按 7 项抽取结果算缺口、出面板,返回 `runId`;**每次调用会在本地落一份 run 记录** |
|
|
52
52
|
| `reception.doc` | read | 渲染行程单 docx + 内部参考 md,上传两份附件拿 fileid |
|
|
53
53
|
| `reception.render` | read | 按快照拼 `customParams`,输出 `<browsertool>` |
|
|
54
54
|
| `reception.docRender` | read | `doc` + `render` 合成一步 |
|
|
55
55
|
| `reception.restaurantRooms` | read | 实查「小食堂包厢」,产出可直接喂给 `--restaurant-rooms-file` 的候选 |
|
|
56
56
|
|
|
57
|
-
全链路 **零写请求**(`writePolicy: none
|
|
58
|
-
|
|
57
|
+
全链路 **零写请求**(`writePolicy: none`):只上传附件,流程由用户在页面上提交,也没有 continuation 票据。
|
|
58
|
+
|
|
59
|
+
唯一的例外是 `reception.ask`:它会 `newRunId()` 并在 `stateDir/reception/runs/` 写一份 run 记录供 `doc` 复用。这**不是服务端写入**,但确实留下本地状态——同一份输入重复调用会得到不同 `runId`,所以它是 `read-with-side-effect`,不能当纯读取反复重试。
|
|
59
60
|
|
|
60
61
|
## 会议与小餐厅口径
|
|
61
62
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""让宿主机上的 Python 进程按 `WEAVER_E10_TLS_INSECURE` 决定是否校验证书。
|
|
2
|
+
|
|
3
|
+
背景:CLI 只能控制自己(及其子进程)的请求。技能自带的 Python 脚本(例如 eBuilder 的
|
|
4
|
+
`ebuilder_http.py`、`get_nlist_config.py` 直接用 `http.client` / `urllib.request`)是 Agent
|
|
5
|
+
另起的进程,需要与 CLI 使用同一套证书策略。
|
|
6
|
+
|
|
7
|
+
Python 标准库没有「关掉校验」的环境变量,但 `site` 模块启动时会自动 import `sitecustomize`,
|
|
8
|
+
所以把本文件放到 `PYTHONPATH` 里就能覆盖整台机器上的所有 Python 进程。
|
|
9
|
+
|
|
10
|
+
用法(三选一):
|
|
11
|
+
1. 环境变量:PYTHONPATH=<本文件所在目录>(可与原有 PYTHONPATH 用 : 拼接)
|
|
12
|
+
2. 拷进 site-packages:python3 -c "import site; print(site.getsitepackages()[0])"
|
|
13
|
+
3. 由 weaver-work-cli 派生的 Python 子进程自动带上(见 src/internal/e10/tls-policy.ts)
|
|
14
|
+
|
|
15
|
+
行为:读 `WEAVER_E10_TLS_INSECURE`,**默认按 0(严格校验)**,不做任何改动;只有显式设为
|
|
16
|
+
1/true/yes/on 时才跳过校验,与 CLI 侧口径一致。跳过时仅改两处:
|
|
17
|
+
- `ssl._create_default_https_context`:`http.client.HTTPSConnection` 与
|
|
18
|
+
`urllib.request.urlopen` 默认走它;
|
|
19
|
+
- `ssl.create_default_context`:requests/urllib3 这类显式建上下文的库会走它。
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
import os
|
|
23
|
+
import ssl
|
|
24
|
+
|
|
25
|
+
_INSECURE_VALUES = ("1", "true", "yes", "on")
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _should_skip():
|
|
29
|
+
# 未设置 / 值写错时按 0 处理(严格校验);只有显式写这几种值才跳过。
|
|
30
|
+
value = os.environ.get("WEAVER_E10_TLS_INSECURE", "").strip().lower()
|
|
31
|
+
return value in _INSECURE_VALUES
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
if _should_skip():
|
|
35
|
+
ssl._create_default_https_context = ssl._create_unverified_context
|
|
36
|
+
|
|
37
|
+
def _unverified_default_context(*_args, **_kwargs):
|
|
38
|
+
# 丢掉 cafile/capath/cadata:调用方要的「可信上下文」在这里统一降级为不校验。
|
|
39
|
+
return ssl._create_unverified_context()
|
|
40
|
+
|
|
41
|
+
ssl.create_default_context = _unverified_default_context
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
本业务域用于泛微 E10 问数(数据源取数 /
|
|
1
|
+
本业务域用于泛微 E10 问数(数据源取数 / 配置中心读取 / 场景定位 / 受门禁保护的模块接口调用,共 8 族 28 个只读 operation)。入口 `SKILL.md` 先路由到 `weaver-e10-shared/SKILL.md`,再给出通道选择表、取数纪律、退出码与退休边界。具体用法拆到 `references/`:
|
|
2
2
|
|
|
3
3
|
- `datasource.md`:`ds groups/find/describe/tables/fields/fields-dsl` 发现链路,`list/chart/stat/count` 取数四件套,条件树 `--where` 两种写法,`--stat` 的 `aggregator` 枚举,平台范围提示判读。
|
|
4
|
-
- `config-center.md`:`conf`
|
|
4
|
+
- `config-center.md`:`conf` 七个只读/解析子命令与 `confType` 前缀推导;`module call` 的 confAttrs 驱动、`--show-params` / `--dry-run` 工作流、名称只读门禁、保留头与 HRM 黑名单、`hasSearchRight=false` 的终端态。
|
|
5
5
|
- `scene-and-misc.md`:`scene` 场景召回(后端 keyword 优先、本地打分兜底、过滤方式走 stderr)、`noun` 词库、`field` 的名称→id 与选项字典分工、`attend` 假期余额按 `key` 取值、`query` 裸 DSL。
|
|
6
6
|
|
|
7
7
|
调优重点:
|
|
8
8
|
|
|
9
|
-
- `weaver-work-cli data schema` 是 operation
|
|
9
|
+
- `weaver-work-cli data schema` 是 operation 合约第一信息源;`withheldOperations` 当前为空。历史名称和退休写命令会在请求前返回 `validation/unknown_operation`,直接说明不可用,不引导用户绕过。
|
|
10
10
|
- **先选通道再取数**:流程类走 WORKFLOW 模块接口,人员/部门/岗位走 `weaver-work-cli hrm`(data 对 `/api/hrm/` 有黑名单,退出码 6),文档走配置中心 DOCUMENT,只有表单类业务数据才走数据源。
|
|
11
11
|
- **先 `ds describe` 再取数**:字段名、`tableId`、聚合口径都从元数据里取,不凭表名猜字段;`groupId`/`tableId` 等 19 位雪花号一律按字符串传。
|
|
12
12
|
- `ds find` 的真实语义是「抓窗口 + 本地过滤」——后端 `/ds/listByPage` 当前忽略 `name`,**未命中 ≠ 表不存在**,输出里的 `nameFilter.note` 会说明窗口大小。
|
|
13
13
|
- 便捷命令输出**原始响应体**(保住旧 `e10-data` 调用的 jq 路径),`data run` 才输出统一信封;两者共用同一份实现。
|
|
14
|
-
-
|
|
14
|
+
- 退出码语义遵从框架:1 API/配置/2xx 非 JSON,2 用法,3 认证,4 网络,6 policy。`hasSearchRight=false` 时结果为空但退出码 6,**不得交付为「无数据」**。
|
|
15
15
|
- `tipTimeout=true` 是平台拒绝查询(不是 0 行),`tipTimelimit=true` 是范围被收窄(不能当全区间结论),文案原样转述。
|
|
@@ -106,7 +106,7 @@ Windows/PowerShell 下不要使用 `printf`、`$HOME/...`、`~/...`、bash 反
|
|
|
106
106
|
| 宿主平台代执行文件采集 | 宿主调用 CLI、消费 JSON,并遵守执行与脱敏纪律 | [`host-executor-prompt.md`](references/host-executor-prompt.md) / [`host-platform-integration.md`](references/host-platform-integration.md) |
|
|
107
107
|
| 文件上传(本地文件上传到文件服务) | `caizhilian run caizhilian.file-upload.contract` / `.prepare` / `.upload.prepare` / `.upload.apply` | [`file-upload.md`](references/file-upload.md) |
|
|
108
108
|
| 任何写操作的确认链、票据报错、写结果不确定 | `<name>.prepare` -> 用户确认 -> `<name>.apply --continuation TOKEN --yes` | [`write-protocol.md`](references/write-protocol.md) |
|
|
109
|
-
|
|
|
109
|
+
| withheld 能力(4 项:环境列表 / 配置查看 / 重载配置 / 切换环境) | 无 caizhilian 命令,改用框架命令 | [`withheld.md`](references/withheld.md) |
|
|
110
110
|
|
|
111
111
|
文件上传支持秒传、普通流式上传和分片流式上传;成功必须有非空文件 ID、大小校验与私有回执。
|
|
112
112
|
上传协议的 `lastModified`、`lastModifiedDate` 必须使用相同的整数毫秒值,由 CLI 自动处理;
|
|
@@ -101,4 +101,5 @@ weaver-work-cli --json caizhilian run caizhilian.user.current
|
|
|
101
101
|
| `empty_response` / `response_shape` | 服务端返回结构与预期不符 | 停止,把原始 message 交给用户 |
|
|
102
102
|
| `session_unavailable` / `session_expired` | 未登录或登录态失效 | 按 `agent-entry.md` 引导重新登录,不要在业务侧猜 |
|
|
103
103
|
| `http_error` / `business_error` | 接口返回非成功码 | 转述服务端 message,不要重试写操作 |
|
|
104
|
+
| `business_error`(message=本租户未开通分部功能) | `search-subcompany` 收到服务端裸失败信封 `{"code":500,"status":false,"fail":true}` 且无错误文案 | 该租户未开通分部功能,与入参无关,**不要重试**;引导用户到 E10 界面确认或联系管理员;`error.details.raw` 有原始响应可转述 |
|
|
104
105
|
| `network` (retryable) | 网络抖动 | 最多重试一次,仍失败则停止并告知用户 |
|
|
@@ -7,7 +7,7 @@ description: E10协作模块技能,认证由weaver-e10-shared与weaver-work-cl
|
|
|
7
7
|
description_zh: E10协作模块技能,经weaver-e10-shared托管的CLI会话直调协作REST接口,支持按主题查询协作列表、查询协作详情,在协作区版块或帖子下发表交流、发评论与回复讨论,以及审批与退出、共享权限、行为等操作;秒级返回结构化结果;禁用浏览器自动化路径,所有接口地址与会话凭证由weaver-work-cli统一提供。
|
|
8
8
|
description_en: E10 Cowork skill that calls cowork REST APIs directly with a CLI-managed session described by weaver-e10-shared, supporting list-by-topic, detail queries, publishing and replying to discussions and comments in cowork sections, approval/quit, share-permission and behavior operations in seconds; browser automation disabled; all endpoint URLs and credentials are provided by weaver-work-cli.
|
|
9
9
|
category: business
|
|
10
|
-
version: 2.0.
|
|
10
|
+
version: 2.0.6
|
|
11
11
|
author: 泛微网络科技股份有限公司
|
|
12
12
|
permissions: [network]
|
|
13
13
|
execution:
|
|
@@ -30,6 +30,8 @@ cliHelp: "weaver-work-cli cowork --help"
|
|
|
30
30
|
|
|
31
31
|
所有协作能力都通过 `weaver-work-cli cowork` 执行:`schema` 看合约,`run <operation>` 跑具体动作。认证、Cookie/eteamsid/UA 由 CLI 统一注入,本技能不接触任何凭证。
|
|
32
32
|
|
|
33
|
+
**schema 首屏可能不是全量(务必先看这三个字段)**:`cowork schema` 输出超过输出预算时会被压成预览,`operations` 只留前若干条,`withheldOperations`(本模块扣下的能力,如浏览选择器、点赞组件、权限单元高级配置)也可能被截短。先看 `previewOmitted`(原始总条数)、`withheldCount`(扣下的能力总数,与 `withheldOperations` 实际条数不一致就说明被截了)、`recovery.readRemainingItems`(取全量的命令)。**不要因为首屏没列到某条就判定"不支持"**;确实被扣下的能力,按 [`safety-boundaries.md`](references/safety-boundaries.md) 的替代做法回答用户。
|
|
34
|
+
|
|
33
35
|
## 触发条件
|
|
34
36
|
|
|
35
37
|
用户提到协作、协作事项、协作区、讨论/回复、发交流、发评论、留言、发帖、跟帖、回复帖子、工作协作、参与人、共享权限、申请加入、审批我的协作、我关注的/我收藏的/我的事项/相关我等,即进入本技能。
|
|
@@ -18,7 +18,7 @@ cliHelp: "weaver-work-cli data --help"
|
|
|
18
18
|
**CRITICAL — 开始前 MUST 直接执行本技能的业务命令(`weaver-work-cli --json data run ...`);不要预先读取共享规则,也不要先跑 `auth status`、`doctor --e10`、`auth xiaoe` 等登录或状态检查。** 小e(XiaoE)环境下登录由 CLI 自己在公共会话加载层完成:进程内存在任意 `XIAOE_*` 环境变量(含 `XIAOE_CLIENT_TYPE=client|cloud`,分别表示桌面客户端与网页端)时,缺少本地会话会自动换取登录信息并继续执行原请求,已有会话被拒绝为失效时静默恢复并原样重放 1 次,换票结果落盘供后续命令复用。Agent 不参与该过程,**也不得在思考过程或回复中描述登录、换票、重登、会话恢复等中间步骤**,只呈现业务结果。仅以下三种情形才读取 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md):① 命令不可用(`command not found` / 退出码 127),或返回 `authentication` / `session_expired` 且 CLI 自动恢复后仍失败、`subtype=xiaoe_credential_unavailable`;② 即将执行写入/删除/导入类操作(确认、continuation 与回查协议);③ 需要判定是否传 `--is-connector`。若共享规则不存在、CLI 未安装或读取失败,说明本技能的必需依赖缺失,必须调用宿主提供的提问/确认弹框,向用户说明必须补齐 `weaver-work-cli` 与共享 skill `weaver-e10-shared`(不补齐本技能无法执行)及补齐计划,并把下面两条待执行命令原样完整展示在确认信息中;Agent 不能在未确认时自行安装。用户明确确认后,Agent 必须直接代为按顺序执行且每条仅执行一次,不得要求或引导用户手动执行:① 缺 CLI 时执行 `npm install -g weaver-work-cli`;② 再执行 `weaver-work-cli skills install shared --target-dir <SKILLS_ROOT>` 装回共享 skill,`<SKILLS_ROOT>` 取本 SKILL.md 所在目录的上一级绝对目录(即与本技能同级的 skills 根目录),不要省略 `--target-dir`——省略会装进默认目录,导致本技能依然读不到共享规则。命令均成功后重新读取共享规则;仍读不到就停止并把结果报告用户,不得凭猜测继续。**
|
|
19
19
|
**`--is-connector` 判据**:用户明确使用连接器、或上下文要求用连接器完成任务 → 传 `true`;本次任务或上下文直接选择单独技能 → 不传;用户没有明确说明时,按**正在运行的这份 Skill 是哪一级**定——**用户级(条目标 `(user)`)不传,连接器级(标 `(connector)`)传**(同名 Skill 只会运行用户级那一份)。传 `true` 时不要再写 `--profile` / `--base-url`。完整规则见 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md)。
|
|
20
20
|
|
|
21
|
-
本技能是 E10 问数的**取数通道**:从数据源拉明细 / 聚合 / 计数、从配置中心读接口定义并调用、按关键词定位场景与数据集。全部
|
|
21
|
+
本技能是 E10 问数的**取数通道**:从数据源拉明细 / 聚合 / 计数、从配置中心读接口定义并调用、按关键词定位场景与数据集。全部 **28 个 operation 都是只读**;`data.conf.add`、`add-file`、`update`、`delete` 已退休,不得尝试调用。
|
|
22
22
|
|
|
23
23
|
## 命令入口
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ weaver-work-cli data schema
|
|
|
28
28
|
weaver-work-cli --json data run <operation> --input -
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
`schema` 是唯一事实来源:
|
|
31
|
+
`schema` 是唯一事实来源:28 个 operation 的 `inputSchema`、便捷命令路径,以及当前为空的 `withheldOperations`。**未出现在 `schema` 里的能力一律不可用**,会在认证和网络请求前返回 `validation/unknown_operation`;不要拼接口路径直连。
|
|
32
32
|
|
|
33
33
|
## 认证
|
|
34
34
|
|
|
@@ -74,30 +74,26 @@ weaver-work-cli --json data run <operation> --input -
|
|
|
74
74
|
| `data ds count` 等便捷命令 | **原始响应体**(如 `.data.total`、`.data.records`),与旧 `e10-data` 逐字一致 |
|
|
75
75
|
| `data run data.ds.count` | `{schemaVersion, ok, operation, data, warnings}` 信封 |
|
|
76
76
|
|
|
77
|
-
**判定成功不要只看退出码**:`hasSearchRight=false` 时结果照常返回但退出码为
|
|
77
|
+
**判定成功不要只看退出码**:`hasSearchRight=false` 时结果照常返回但退出码为 6(权限受限的终端态),**不能当"没有数据"交付**。
|
|
78
78
|
|
|
79
79
|
## 失败处理
|
|
80
80
|
|
|
81
81
|
| 退出码 | 含义 | Agent 动作 |
|
|
82
82
|
| --- | --- | --- |
|
|
83
83
|
| 0 | 正常(**空结果也算正常**) | 继续 |
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
| 8 | 用法错误(缺参 / JSON 非法 / 未知 operation) | 按提示补参;**不要反复换 JSON 格式猜参数** |
|
|
84
|
+
| 1 | API / 配置 / 2xx 非 JSON 等通用错误 | 读 `error.type/subtype`,停止猜测 |
|
|
85
|
+
| 2 | 用法错误(缺参 / JSON 非法 / 未知 operation) | 按提示补参;不要反复换 JSON 格式猜参数 |
|
|
86
|
+
| 3 | 未登录 / 凭据失效 | 读共享认证规则,按共享流程处理;不自行登录 |
|
|
87
|
+
| 4 | 请求失败(HTTP / 网络) | 读 stderr 的 `error.subtype`,不盲目重试 |
|
|
88
|
+
| 6 | 权限、HRM 黑名单、module 名称门禁 | 按 subtype 终止或改走 `hrm`;不绕过 |
|
|
90
89
|
|
|
91
90
|
**平台范围提示必须原样转述**:响应里的 `tipTimeout=true` 表示数据范围过大、平台拒绝查询(**不是 0 行**);`tipTimelimit=true` 表示数据已返回但实际范围被收窄(**不能当全区间结论**)。两者都带平台原文 `*Msg`,直接引用,不要改写或忽略。
|
|
92
91
|
|
|
93
|
-
##
|
|
92
|
+
## 退休与安全边界
|
|
94
93
|
|
|
95
|
-
`
|
|
96
|
-
|
|
97
|
-
- `data
|
|
98
|
-
- `data.field.id2name` → 已停用,选项值显示映射走 `data field options`。
|
|
99
|
-
- `data.refusal.get` / `data.refusal.rules` → 拒答话术属宿主平台职责,本技能不做拒答判定。
|
|
100
|
-
- `data.exp.*` → 专家包版本管理属 `weaver-work-cli skills repo`。
|
|
94
|
+
- `data.conf.add` / `add-file` / `update` / `delete` 已退休;不得构造替代请求写配置。
|
|
95
|
+
- `data.doc.count` / `data.doc.list`、`data.field.id2name`、`data.refusal.get` / `rules`、`data.exp.*` 未注册;遇到 `validation/unknown_operation` 即停止,不得绕过。
|
|
96
|
+
- `data module call` 的真实调用只允许名称可明确判定为读取的接口;写语义为 `policy/module_write_interface_blocked`,未知语义为 `policy/module_read_interface_unverified`。仅 `--show-params` / `--dry-run` 可预览而不发送请求。
|
|
101
97
|
|
|
102
98
|
## 平台兼容
|
|
103
99
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# 配置中心与模块接口调用(`data conf` / `data module call`)
|
|
2
2
|
|
|
3
|
-
E10 的"接口清单"不在代码里,而在**配置中心**(`chatBi` config map)。`conf`
|
|
3
|
+
E10 的"接口清单"不在代码里,而在**配置中心**(`chatBi` config map)。`conf` 族只负责读/解析配置,`module call` 在只读名称门禁下按配置里的 `confAttrs` 组参并调用读取接口。
|
|
4
4
|
|
|
5
|
-
## `conf
|
|
5
|
+
## `conf`:配置读取与解析
|
|
6
6
|
|
|
7
7
|
| 命令 | 用途 |
|
|
8
8
|
| --- | --- |
|
|
@@ -12,9 +12,6 @@ E10 的"接口清单"不在代码里,而在**配置中心**(`chatBi` config
|
|
|
12
12
|
| `data conf group <confType> <confGroup>` | 取回整组配置(`--key` 只取其中一条) |
|
|
13
13
|
| `data conf group-file <file>` | 批量取多个分组(`[{confType, confGroup}]`) |
|
|
14
14
|
| `data conf resolve <text>` / `resolve-file <path>` | 把文本里的 `#{KEY}` 替换成配置值 |
|
|
15
|
-
| `data conf add <key> --value` / `add-file <file>` | 新增(已存在默认跳过,`--force` 重建) |
|
|
16
|
-
| `data conf update <key> --value/--name/--attrs` | 更新 |
|
|
17
|
-
| `data conf delete <key>` | 删除 |
|
|
18
15
|
|
|
19
16
|
### confType 怎么定
|
|
20
17
|
|
|
@@ -27,7 +24,7 @@ E10 的"接口清单"不在代码里,而在**配置中心**(`chatBi` config
|
|
|
27
24
|
| `WF_` | `wf` |
|
|
28
25
|
| `API_` | `api` |
|
|
29
26
|
|
|
30
|
-
推导不出来会直接报 `conf_type_unknown`(退出码
|
|
27
|
+
推导不出来会直接报 `conf_type_unknown`(退出码 2),此时必须显式 `--type`(如 `ebu` / `pmo` / `contract` / `partner` 这类域级分组)。
|
|
31
28
|
|
|
32
29
|
`confGroup` 只在 `confType=api` 或显式传 `--group` 时下发——别给没有分组列的类型硬塞分组。同一 `confKey` 在不同 `confGroup` 下可以是不同配置,内部按 `组|键` 区分。
|
|
33
30
|
|
|
@@ -64,7 +61,9 @@ weaver-work-cli --json data module call --group WORKFLOW --conf-key API_WORKFLOW
|
|
|
64
61
|
|
|
65
62
|
### 硬性规则
|
|
66
63
|
|
|
67
|
-
-
|
|
64
|
+
- **配置写操作已退休**:`data conf add`、`add-file`、`update`、`delete` 不存在;不得尝试通过 `module call` 或手工请求绕过。
|
|
65
|
+
- **`module call` 真实请求必须通过读取名称门禁**:写语义接口返回 `policy/module_write_interface_blocked`,未能明确验证读取语义的接口返回 `policy/module_read_interface_unverified`,均为退出码 6。`--show-params` / `--dry-run` 仅预览,不触发门禁也不发送业务请求。
|
|
66
|
+
- **`hasSearchRight=false` 是权限受限的终端态**:响应里其余字段必为空,命令以**退出码 6**结束。必须如实告知"权限受限",**不重试、不换参、不交付为「无数据」**。
|
|
68
67
|
- **`/api/hrm/`、`/api/bs/hrm/`、`/api/app/hrm/` 命中黑名单**(退出码 6):人员 / 部门 / 岗位一律走 `weaver-work-cli hrm`。
|
|
69
68
|
- **`token` 属运行时保留头**:发票云之类必须带 token 的接口由 CLI 内置换取,走 `--header token: xxx` 会被运行时剥掉。这是 CLI 侧的实现细节,Agent 不需要、也不应该自己拼 token。
|
|
70
69
|
- **HTTP 200 不代表业务成功**:业务失败码会抛 `api/business_error`,看 `error.subtype` / `error.message`。
|
|
@@ -114,7 +114,7 @@ weaver-work-cli --json data ds count --group <groupId> --table <tableId> --where
|
|
|
114
114
|
|
|
115
115
|
`relationship`:`"1"` = AND(默认),`"0"` = OR。内嵌组的子节点会自动编号并回填 `parentNode`。
|
|
116
116
|
|
|
117
|
-
**叶子必须有 `fieldId`(或 `conditionId`)**,缺了直接抛 `where_invalid`(退出码
|
|
117
|
+
**叶子必须有 `fieldId`(或 `conditionId`)**,缺了直接抛 `where_invalid`(退出码 2),不会被静默忽略——这是刻意设计的,避免"看起来过滤了其实没过滤"。
|
|
118
118
|
|
|
119
119
|
## `--stat` 与 `--order`
|
|
120
120
|
|
|
@@ -56,7 +56,7 @@ weaver-work-cli --json data field name2id --module hrm --type <browserType> --na
|
|
|
56
56
|
|
|
57
57
|
`--field-name` / `--obj-id` / `--group` 的真实值从 `ds describe` / `ds fields` 的返回里取。
|
|
58
58
|
|
|
59
|
-
**`id2name`
|
|
59
|
+
**`id2name` 未注册**:选项值显示映射一律走 `field options`;调用历史名称会在请求前报 `validation/unknown_operation`。
|
|
60
60
|
|
|
61
61
|
## `attend`:考勤假期余额
|
|
62
62
|
|
|
@@ -69,7 +69,7 @@ weaver-work-cli --json data attend statis --user <人员ID> --begin 2026-01-01 -
|
|
|
69
69
|
- 返回 `data.vacationBalanceList[]`,每条形如 `{ id, title, data:[{name, value, key}] }`,`key` ∈ `lastRemaining`(历年可请)/ `remaining`(今年可请)/ `total`(总计可请)。
|
|
70
70
|
- **按 `key` 取值,不要按下标**:条目数因假种而异(实测年假只有一条 `key=total`,带薪病假 / 带薪事假各三条)。
|
|
71
71
|
- 覆盖年假 / 带薪病假 / 带薪事假三种。**其余假种(婚假 / 产假 / 育儿假 …)不在本命令范围**,走 `POST_EHR_GET_REPORT_LIST` 那条配置(`data module call`)。
|
|
72
|
-
- 无查询权限时退出码
|
|
72
|
+
- 无查询权限时退出码 6(`policy/permission_denied`),如实告知,不重试。
|
|
73
73
|
|
|
74
74
|
## `query`:裸 DSL
|
|
75
75
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: weaver-e10-jiuchuanhui
|
|
3
3
|
display_name: 泛微九氚汇营销管理
|
|
4
4
|
display_name_en: Weaver Jiuchuanhui Marketing Management
|
|
5
|
-
description: "泛微 E10 九氚汇营销管理(CRM)。用于查询我的客户、查询成功客户、查询公海客户,以及管理客户、联系人、商机(销售机会)、销售线索、联系计划和跟进记录。覆盖客户查重与转移、公海客户领取与释放、商机阶段与赢单/输单、线索转客户。人员、权限、字段和工商信息查询用于支持当前 CRM
|
|
5
|
+
description: "泛微 E10 九氚汇营销管理(CRM)。用于查询我的客户、查询成功客户、查询公海客户,以及管理客户、联系人、商机(销售机会)、销售线索、联系计划和跟进记录。覆盖客户查重与转移、公海客户领取与释放、商机阶段与赢单/输单、线索转客户。人员、权限、字段和工商信息查询用于支持当前 CRM 任务。分页查询默认只取 10 条,单页最多 100 条,禁止自行循环翻页。"
|
|
6
6
|
description_zh: "泛微 E10 九氚汇营销管理。覆盖客户、联系人、商机、线索全生命周期:创建、查询、搜索、修改、转移、公海领取/释放、查重、联系计划、联系记录、商机赢单/输单/无效/暂停/重启、线索转客户,并通过 prepare/apply 确认链处理全部高风险写操作。"
|
|
7
7
|
description_en: "Full-lifecycle CRM operations for customers, contacts, opportunities and clues in Weaver E10 Jiuchuanhui marketing management, including confirmed writes for create, update, transfer, pool claim/release, stage changes and clue-to-customer conversion."
|
|
8
8
|
version: 2.1.1
|
|
@@ -91,7 +91,7 @@ cliHelp: "weaver-work-cli jiuchuanhui --help"
|
|
|
91
91
|
处理链:
|
|
92
92
|
|
|
93
93
|
- 客户创建:先执行 `jiuchuanhui.customer.duplicate.check`。同一任务、同一 E10 身份、同一客户全称和简称的已有查重结果可以复用。有疑似重复时表格展示并让用户确认;若客户在公海提醒可领取。确认继续后按 `customer.create.prepare` → 用户确认 → `customer.create.apply` 执行。
|
|
94
|
-
-
|
|
94
|
+
- 客户修改/转移/释放/领取:按 [客户规则](references/customer.md) 组装完整入参。转移、释放、领取的 `prepare` 使用 [各自的 `mainTable` 结构](references/customer.md#转移与公海写操作)。目标 ID、必填参数和前置事实已确认时,直接执行 `prepare` → 用户确认 → `apply`。目标未明确时用 `customer.search` 定位,只有确需详情、状态或归属时补 `customer.get`。
|
|
95
95
|
- 联系人:只给姓名未指明所属事项时,先 `contact.by-entity.search` 或搜索候选并让用户选择;创建/修改走 `contact.create/update.prepare -> apply`。联系人随客户创建(`detail2`)时不要重复调用 `contact.create`。
|
|
96
96
|
- 商机:赢单/输单/无效/暂停/重启/转移/关联联系人/联系记录,全部先确认商机唯一,再 `sale.*.prepare` -> 用户确认影响与不可逆性 -> `sale.*.apply`。赢单/输单/无效属于高影响状态变更,执行前必须提示不可逆或关键影响;输单必须先确定输单原因,暂停必须有暂停原因,重启需先确认目标商机处于可重启状态(否则不得重启)。
|
|
97
97
|
- 线索:状态变更覆盖放弃/分配/转移/有效/无效,先确认线索唯一、目标状态/人员明确 -> `clue.status-change.prepare` -> 用户确认 -> `.apply`。线索转已有客户走 `clue.to-customer`;转新客户走 `customer.create` 且传 `source_module_id=<clueId>`,成功后不要再额外修改线索。
|
|
@@ -102,10 +102,12 @@ cliHelp: "weaver-work-cli jiuchuanhui --help"
|
|
|
102
102
|
|
|
103
103
|
只读 operation 的 `data` 是接口原始响应。`meta.httpStatus` 记录 HTTP 状态,`ok:true` 表示 CLI 已将响应输出。按本次实际字段确认业务含义,避免假定列表、详情和总数使用固定键。请求了总数时查看顶层 `countResponse` 和 `meta.countHttpStatus`。
|
|
104
104
|
|
|
105
|
-
-
|
|
105
|
+
- **分页查询(MUST)**。九氚汇所有支持分页的业务查询默认只取第一页 10 条。用户明确指定数量时按指定数量取一页,单页最多 100 条。用户要求超过 100 条或全量时,本次只查一页,最多 100 条,并说明限制。禁止自行循环翻页、并发拉取多页或补查更多记录。用户明确要求下一页时,沿用上一页的筛选条件和页大小,只查下一页。用户直接指定页码时,只查该页。
|
|
106
|
+
- 只有用户明确需要准确总数、没有可复用的准确总数且操作支持独立统计时,才传 `count:true`。禁止逐页拉取数据来计数。
|
|
107
|
+
- 通用 `customer.search` 显式传 `mine`、`all`、`customerSea` 三个范围键,其中选中范围传 `""`,其余传 `"-1"`。未指定时沿用「我的客户」,用户指定的范围和条件按原意保留。快捷查询由 CLI 组装范围键。
|
|
106
108
|
- 已知唯一 ID 时直接查询详情,或在满足该业务的状态、归属等前提后直接 `prepare`。同一任务、同一 E10 身份、同一目标和查询条件下,已有结果能回答当前问题时直接复用。仅补查仍缺的事实。
|
|
107
109
|
- 一次明确确认只提交一次 `.apply`。确认后如目标、登录上下文或待提交参数变化,重新 `prepare` 并取得确认。
|
|
108
|
-
-
|
|
110
|
+
- 用当前页回应用户请求。仅根据接口已返回的分页信息说明是否还有更多。
|
|
109
111
|
- 列表、卡片及详情中的关联事项名称渲染为可点击链接 `https://{baseUrl}/sp/ebdfpage/card/0/{objId}/{dataId}`,`objId` 优先取缓存中的 `discovery["objId:{tag}"]`。对象数组字段展示全部对象的有效值,空数组按空值处理。
|
|
110
112
|
- 客户列表展示名称、负责人、类型、状态、行业、最近跟进、创建时间。商机列表展示名称、客户、负责人、阶段、金额、预计成交、最近跟进。线索列表展示名称、客户或公司、处理人、状态、来源、最近跟进、创建时间。缺失字段用 `-`。
|
|
111
113
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
Windows PowerShell:
|
|
31
31
|
|
|
32
32
|
```powershell
|
|
33
|
-
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.search --input-json '{"clue_name":"示例"
|
|
33
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.search --input-json '{"clue_name":"示例"}'
|
|
34
34
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.get --input-json '{"id":"500001"}'
|
|
35
35
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.status-change.prepare --input-json '{"mainTable":{"clueid":"500001","type":"2","newmanager":"USER_ID"}}'
|
|
36
36
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.status-change.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
@@ -40,7 +40,7 @@ weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.to-customer.prepare --in
|
|
|
40
40
|
macOS/Linux(bash/zsh):
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.search --input-json '{"clue_name":"示例"
|
|
43
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.search --input-json '{"clue_name":"示例"}'
|
|
44
44
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.get --input-json '{"id":"500001"}'
|
|
45
45
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.status-change.prepare --input-json '{"mainTable":{"clueid":"500001","type":"2","newmanager":"USER_ID"}}'
|
|
46
46
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.clue.status-change.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
@@ -14,7 +14,7 @@ weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.success.search
|
|
|
14
14
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.open-sea.customers.search
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
- 三个快捷查询都接受 `customer_name`、`pageNo`、`pageSize` 和 `count
|
|
17
|
+
- 三个快捷查询都接受 `customer_name`、`pageNo`、`pageSize` 和 `count`。默认只取第一页 10 条,单页最多 100 条。只有用户明确指定页码或要求下一页时才查相应的一页。只有需要准确总数时才使用 `count:true`。
|
|
18
18
|
- `customer.success.search` 以当前租户状态字典中唯一的「成功」或「成功客户」状态为准,优先复用当前用户的配置缓存。缺少命中时按页查状态字典。状态缺失、不唯一或字典未查全时,停止客户查询并说明原因。范围默认 `mine`,也可显式传 `all` 或 `open-sea`。
|
|
19
19
|
- `customer.open-sea.customers.search` 返回公海范围中的客户记录。公海名称和 ID 通过 `customer.open-sea.search` 查询。
|
|
20
20
|
- 需要负责人、地区等更多条件时使用 `customer.search`,按本页的原始查询契约传参。
|
|
@@ -29,13 +29,23 @@ weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.open-sea.customers.s
|
|
|
29
29
|
| `jiuchuanhui.customer.type/status/industry.search` | 只读 | 分页字段,用于取选项 ID |
|
|
30
30
|
| `jiuchuanhui.customer.open-sea.search` | 只读 | 公海名称、ID 等公海选项,条件走 query |
|
|
31
31
|
| `jiuchuanhui.customer.update.prepare/apply` | 高风险写 | `form`:主表+明细修改,按配置 `data_key` 组装 |
|
|
32
|
-
| `jiuchuanhui.customer.transfer.prepare/apply` | 高风险写 | `customerId`(必填)、`employee_MappingId`(目标人员 ID,优先)或 `employeeName`(人员名称),二者至少传一个;动作流 `uniqueIndent` 与触发人 `employeeId` 由 CLI 固定注入 |
|
|
33
|
-
| `jiuchuanhui.customer.open-sea.release.prepare/apply` | 高风险写 | `customerId`、`openSeaId`(均必填,缺一不可);释放影响需用户确认;动作流 `uniqueIndent` 与触发人 `employeeId` 由 CLI 固定注入 |
|
|
34
|
-
| `jiuchuanhui.customer.open-sea.claim.prepare/apply` | 高风险写 | `customer_id`(注意下划线命名) |
|
|
35
32
|
| `jiuchuanhui.customer.duplicate.check` | 只读 | `mainTable.name`(原始名称)、`mainTable.simpleName`(归一化简称,均必填),动作流 `uniqueIndent=D5D0A1C30E7B404B842987C0AD3B749D` |
|
|
36
33
|
| `jiuchuanhui.customer.contact-record.create.prepare/apply` | 高风险写 | `customerId`、`comment_content`(必填);可选 `type`/`rating`/`contact_information`/`contacts`/`next_time`/`next_content`/`next_contact_information`/`next_contacts`/`sync_salechance`/`rel_remind`。`type` 为**评论类型**(销售记录/外勤记录/系统记录/客服记录等),与商机联系记录的 `type`(联系类型)**取值体系不同,勿混用** |
|
|
37
34
|
| `jiuchuanhui.customer.contact-record.batch.prepare/apply` | 高风险写 | `entityList`(客户 ID 数组,一次最多 20 个)、`content`(统一联系内容,必填);批量部分成功需人工核对 |
|
|
38
35
|
|
|
36
|
+
## 转移与公海写操作
|
|
37
|
+
|
|
38
|
+
这三项 `prepare` 的顶层必填字段是 `mainTable`(JSON 对象)。业务字段放在 `mainTable` 内,字段名保持原样,ID 使用字符串。
|
|
39
|
+
|
|
40
|
+
| `prepare` operation | `--input-json` 完整结构 | 字段要求 |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| `jiuchuanhui.customer.open-sea.claim.prepare` | `{"mainTable":{"customer_id":"CUSTOMER_ID"}}` | `customer_id` 必填,使用下划线命名。 |
|
|
43
|
+
| `jiuchuanhui.customer.open-sea.release.prepare` | `{"mainTable":{"customerId":"CUSTOMER_ID","openSeaId":"OPEN_SEA_ID"}}` | `customerId` 和 `openSeaId` 均必填。 |
|
|
44
|
+
| `jiuchuanhui.customer.transfer.prepare` | `{"mainTable":{"customerId":"CUSTOMER_ID","employee_MappingId":"USER_ID"}}` | `customerId` 必填。目标人员优先传 `employee_MappingId`,也可在 `mainTable` 内传 `employeeName`,两者至少提供一个。 |
|
|
45
|
+
|
|
46
|
+
- 入参确定后直接调用对应 `prepare`。结构或字段有疑问时,先用 `weaver-work-cli --json jiuchuanhui schema --operation <完整操作名>` 核对当前 CLI 的 `inputSchema`。
|
|
47
|
+
- `prepare` 只校验入参并生成预览和 `continuation`。用户确认预览后,调用对应的 `apply`,顶层只传 `{"continuation":"PREPARE_CONTINUATION","confirm":true}`。动作流标识和触发人由 CLI 注入。
|
|
48
|
+
|
|
39
49
|
## 输入要点
|
|
40
50
|
|
|
41
51
|
- 创建/修改前先读缓存 `config/customer_create_api.json`(或 `customer_update_api.json`)的 `detail.mainFields`/`detail.detailFields`;只使用 `isInput:"1"` 字段,按 `data_key` 组装,`isRequired:"1"` 缺失时追问,禁止占位值。
|
|
@@ -66,7 +76,7 @@ Windows PowerShell:
|
|
|
66
76
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.duplicate.check --input-json '{"mainTable":{"name":"示例科技有限公司","simpleName":"示例科技"}}'
|
|
67
77
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.prepare --input-json '{"form":{"mainTable":{"manager":"USER_ID","customer_name":"示例科技有限公司"}}}'
|
|
68
78
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
69
|
-
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json '{"customer_name":"小康","mine":"","all":"-1","customerSea":"-1"
|
|
79
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json '{"customer_name":"小康","mine":"","all":"-1","customerSea":"-1"}'
|
|
70
80
|
```
|
|
71
81
|
|
|
72
82
|
macOS/Linux(bash/zsh):
|
|
@@ -75,13 +85,12 @@ macOS/Linux(bash/zsh):
|
|
|
75
85
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.duplicate.check --input-json '{"mainTable":{"name":"示例科技有限公司","simpleName":"示例科技"}}'
|
|
76
86
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.prepare --input-json '{"form":{"mainTable":{"manager":"USER_ID","customer_name":"示例科技有限公司"}}}'
|
|
77
87
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
78
|
-
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json '{"customer_name":"小康","mine":"","all":"-1","customerSea":"-1"
|
|
88
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json '{"customer_name":"小康","mine":"","all":"-1","customerSea":"-1"}'
|
|
79
89
|
```
|
|
80
90
|
|
|
81
91
|
## 输出处理
|
|
82
92
|
|
|
83
93
|
- CLI 创建结果的 ID 列表位于 `data.dataIds`。列表和详情查询的 `data` 是接口原始响应,按本次实际字段读取;请求总数时查看顶层 `countResponse`。
|
|
84
|
-
- 列表默认只取第一页 `pageNo=1`、`pageSize=10`;只有用户要求翻页才继续。
|
|
85
94
|
- 客户名称渲染为可点击链接 `https://{baseUrl}/sp/ebdfpage/card/0/{objId}/{dataId}`,`objId` 取缓存 `discovery["objId:uf_jch_customer"]`。
|
|
86
95
|
|
|
87
96
|
## 注意
|
|
@@ -93,6 +102,7 @@ weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json
|
|
|
93
102
|
## 失败处理
|
|
94
103
|
|
|
95
104
|
- 参数缺失/不支持:说明具体问题并停止,不猜测、不替换、不重试。
|
|
96
|
-
- `
|
|
105
|
+
- `prepare` 返回 `validation/input_invalid` 且提示 `mainTable` 必须是 JSON 对象时,说明本次停在入参校验,业务动作流尚未触发。用上方结构定位问题,禁止试探性重试。
|
|
106
|
+
- `apply` 返回 `permission/claim_forbidden` 时,原样反馈 `error.message`,结束当前领取。
|
|
97
107
|
- `api/business_error`:`message` 常是框架给的「执行失败!」,真实原因看 `error.details.businessMessage`(动作流出参里的 `msg`),需要原始上下文时看 `error.details.response`(超 4,096 字符会压缩成 `preview` 或只留 `keys`);两者缺省时退回 `message`。
|
|
98
108
|
- `partial/write_uncertain`:停止提交。`customer.get` 能核实结果时查询一次,按可验证结果反馈。
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
Windows PowerShell:
|
|
35
35
|
|
|
36
36
|
```powershell
|
|
37
|
-
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"sale_name":"示例"
|
|
37
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"sale_name":"示例"}'
|
|
38
38
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.get --input-json '{"id":"200001"}'
|
|
39
39
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.prepare --input-json '{"mainTable":{"saleId":"200001"}}'
|
|
40
40
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
@@ -45,7 +45,7 @@ weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.link-contacts.prepare --
|
|
|
45
45
|
macOS/Linux(bash/zsh):
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"sale_name":"示例"
|
|
48
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"sale_name":"示例"}'
|
|
49
49
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.get --input-json '{"id":"200001"}'
|
|
50
50
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.prepare --input-json '{"mainTable":{"saleId":"200001"}}'
|
|
51
51
|
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
@@ -7,7 +7,7 @@ description: 用于处理泛微E10聚才林人事日常事务:考勤——查
|
|
|
7
7
|
description_zh: 用于处理泛微E10聚才林人事日常事务:考勤——查考勤做报表、PC打卡、考勤异常流程;薪酬——查工资、社保公积金、调薪记录;招聘——人才库、招聘需求、职位JD、简历建档、应聘台账、面试安排、办入职、招聘统计与实施配置咨询;人事——员工信息、组织编制与人事报表。当用户提到考勤、工资、招聘、人才、面试、入职等场景时使用。
|
|
8
8
|
description_en: "Used for daily HR tasks in Weaver E10 Jucailin. Attendance: records, reports, PC clock in/out, exception workflows. Payroll: pay slips, social security & housing fund, salary adjustments. Recruitment: talent pool, requisitions, job JD, resume import, candidate pipeline, interview scheduling, onboarding, recruitment statistics and implementation consulting. HR basics: employee info, org headcount, HR reports. Use when the user mentions attendance, payroll, recruitment, talent, interviews, or onboarding."
|
|
9
9
|
category: business
|
|
10
|
-
version: 2.2.
|
|
10
|
+
version: 2.2.2
|
|
11
11
|
author: 泛微网络科技股份有限公司
|
|
12
12
|
permissions: [network]
|
|
13
13
|
visibility: public
|
|
@@ -103,7 +103,7 @@ weaver-work-cli --json ehr run <operation> --input -
|
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
105
|
weaver-work-cli --json ehr run ehr.recruit.candidate.create.prepare --input-json '{"name":"张三","mobile":"13800000000"}'
|
|
106
|
-
# 用户确认后同参数 apply(加 confirm 与 continuation
|
|
106
|
+
# 用户确认后同参数 apply(加 confirm 与 continuation);人才卡片/人才库链接按 [`references/recruit-output-links.md`](references/recruit-output-links.md) 固定路由拼,不搬 CLI 的 talentCardUrl/talentListLocateUrl
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
安排面试:
|
|
@@ -111,7 +111,11 @@ weaver-work-cli --json ehr run ehr.recruit.candidate.create.prepare --input-json
|
|
|
111
111
|
```bash
|
|
112
112
|
weaver-work-cli --json ehr run ehr.recruit.candidate.interview.arrange.prepare --input-json '{"talentId":"<人才id>","interviewer":"李四","type":"AI面试","session":"初试"}'
|
|
113
113
|
# type 为 AI面试时方案必填:prepare 未带方案会返回 aiPlans 候选清单,列给用户选,绝不自动取第一条
|
|
114
|
-
# apply
|
|
114
|
+
# apply 成功返回人才 id 与面试单页链接;面试管理/看板链接按固定路由拼(见 references/recruit-output-links.md),不搬 interviewLocateUrl,再追加一次 ehr.recruit.interview.feedbackTodo 返回本人待反馈清单
|
|
115
|
+
|
|
116
|
+
## 4.1 招聘页面返回口径(2026-11-28 用户定稿)
|
|
117
|
+
|
|
118
|
+
人才库、人才卡片、面试管理、面试看板、AI 待反馈待办、人岗匹配证据,**一律给 ecode 固定路由**([`references/recruit-output-links.md`](references/recruit-output-links.md)),忽略 CLI 回包的 `talentCardUrl` / `talentListLocateUrl` / `interviewLocateUrl`;入职列表(`entryListUrl`)无 ecode 页面,仍用 CLI 字段。页面未部署的环境只给文字结论、不给死链。
|
|
115
119
|
```
|
|
116
120
|
|
|
117
121
|
## 5. 跨子系统差异(必须先知道)
|
|
@@ -18,7 +18,7 @@ PC 端考勤打卡、创建考勤申诉、处理申诉、触发出勤报表重
|
|
|
18
18
|
- **PC 端打卡**:`type` 必填,取值 `CHECKIN`(上班签到)、`CHECKOUT`(下班签退)、`LEAVE`(外出)、`RETURN`(返回)、`CHECKIN_AND_RETURN`、`CHECKOUT_AND_LEAVE`。
|
|
19
19
|
- **创建申诉**:`attendDay`(格式 `yyyyMMdd`,注意不是 `yyyy-MM-dd`)、`periodId`、`attendInfoKey`、`appeals` 必填。创建前必须先调 `ehr.attend.appeal.formid` 确认 `stillShowAppeal=true`;`prepare` 传入 `userId` 时会自动完成这层校验。
|
|
20
20
|
- **处理申诉**:`id` 与 `handleResult` 必填,`handleResult` 取值 `APPROVE`、`REJECT`、`INVALID`。`suggestion` 最长 500 字。
|
|
21
|
-
- **报表重算**:`beginDate`、`endDate`
|
|
21
|
+
- **报表重算**:`beginDate`、`endDate`、`scope` 必填。`scope=specified` 时必须带非空 `onlyEmpIds`;`scope=all` 才重算全部人员,且不得同时传 `onlyEmpIds`。省略 `scope` 会直接报 `scope_required`,**不会再默认全量**。
|
|
22
22
|
|
|
23
23
|
## 命令
|
|
24
24
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# 招聘页面固定路由(聚才林,2026-11-28 定稿)
|
|
2
|
+
|
|
3
|
+
> 用户定稿:**人才库、人才卡片、面试管理、面试看板、待反馈待办、匹配证据,一律用 ecode 页面**,不再用 CLI 回包里那套 `ebdfpage` 动态链接。
|
|
4
|
+
> path 段固定;origin(协议+主机+端口)取本次 CLI 会话 `baseUrl`,或回包任一完整 URL 的主机段。**包内不写死域名。**
|
|
5
|
+
|
|
6
|
+
| 用途 | 固定 path | 返回场景 |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| 人才库(列表) | `/sp/custom/ecode/recruit-talent` | 搜人、人才库浏览、建档后的列表链接 |
|
|
9
|
+
| 人才卡片(详情) | `/sp/custom/ecode/recruit-talent/card?talentId={talentId}` | 建档、查详情、面试反馈查看 |
|
|
10
|
+
| 面试管理(台账) | `/sp/custom/ecode/recruit-talent/interview` | 安排面试后的列表链接 |
|
|
11
|
+
| 面试安排看板 | `/sp/custom/ecode/recruit-talent/interview-board` | 近 2 周场次 + 三类冲突 |
|
|
12
|
+
| AI 面试待反馈待办 | `/sp/custom/ecode/recruit-talent/interview?tab=%E5%BE%85%E5%8F%8D%E9%A6%88&person=interview&way=AI%E9%9D%A2%E8%AF%95` | 催反馈、清待办 |
|
|
13
|
+
| 人岗匹配证据 | `/sp/custom/ecode/recruit-talent/match?talentId={talentId}` | 匹配结论、追问“凭什么” |
|
|
14
|
+
|
|
15
|
+
## 执行规则
|
|
16
|
+
|
|
17
|
+
1. **忽略** CLI 回包里的 `talentCardUrl`、`talentListLocateUrl`、`interviewLocateUrl` 等 ecode 已有页面对应的动态链接;按上表拼。
|
|
18
|
+
2. `{talentId}` 用本次 operation 返回的人才 id,原样替换,不编码成数字串以外的东西。
|
|
19
|
+
3. 中文 query 必须 URL 编码(上表已给编码后的写法,直接用)。
|
|
20
|
+
4. 入职列表(`entryListUrl`)没有 ecode 页面,**保留 CLI 原字段**;为空就只给文字结论。
|
|
21
|
+
5. **未部署 ecode 页面**的环境:链接先不给,说明“需先部署 recruit-talent-ui”,只给文字结论与名单。
|
|
22
|
+
6. 详情链接只保留职位/面试的 `viewLink`(记录单页),其余一律按上表。
|
|
23
|
+
|
|
24
|
+
## 输出示例
|
|
25
|
+
|
|
26
|
+
```markdown
|
|
27
|
+
[查看 张三 的人才卡片](http://<host:port>/sp/custom/ecode/recruit-talent/card?talentId=1276382457065553922)
|
|
28
|
+
[打开人才库](http://<host:port>/sp/custom/ecode/recruit-talent)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
[打开面试安排看板(近 2 周 + 冲突)](http://<host:port>/sp/custom/ecode/recruit-talent/interview-board)
|
|
33
|
+
```
|
|
@@ -83,6 +83,8 @@ weaver-work-cli --json ehr run ehr.recruit.candidate.interview.arrange.apply --i
|
|
|
83
83
|
|
|
84
84
|
## 产物链接(apply 输出直接含 URL 字段 = baseUrl + 页面路径;地址如何呈现由调用方决定)
|
|
85
85
|
|
|
86
|
+
> 🔴 **2026-11-28 用户定稿**:人才库 / 人才卡片 / 面试管理 / 面试看板 / 待反馈待办 / 匹配证据,**一律改用 ecode 固定路由**([`recruit-output-links.md`](recruit-output-links.md)),**不要**再搬 CLI 回包的 `talentCardUrl`、`talentListLocateUrl`、`interviewLocateUrl`。下表只作“CLI 字段含义”参考;入职列表(`entryListUrl`)无 ecode 页面,仍用 CLI 字段。
|
|
87
|
+
>
|
|
86
88
|
> 需 CLI ≥ 0.1.33(本机 0.1.32 无这些字段,升版后生效)。URL 由 CLI 从环境缓存拼出,**不要手拼、不要编造**;字段为 null 时只给其余链接。
|
|
87
89
|
|
|
88
90
|
| 操作 | apply 输出链接字段 | 形态 |
|
|
@@ -7,7 +7,7 @@ description: 用于处理泛微E10 OA 邮件的收发与管理:查邮件列表
|
|
|
7
7
|
description_zh: 用于处理泛微E10 OA 邮件的收发与管理:查邮件列表与详情、写新邮件、回复、转发、存草稿、上传附件、定时发送、标星、待办、标记已读、逻辑删除、撤回,以及文件夹、联系人分组、附件中心、模板签名、黑名单管理。只处理 E10/OA 邮件系统内的邮件,不含 163/QQ/Gmail/Outlook 等第三方邮箱收发。当用户提到收邮件、发邮件、邮件附件、邮箱等场景时使用。
|
|
8
8
|
description_en: "Used for managing Weaver E10 OA emails: viewing mail lists and details, composing, replying, forwarding, drafts, attachments, scheduled sending, starring, todos, marking read, logical deletion and recall; plus folder, contact group, attachment center, template and signature, and blacklist management. Only covers mails inside the E10/OA mail system, not third-party mailboxes (163/QQ/Gmail/Outlook). Use when the user mentions checking mail, sending mail, attachments, or mailbox."
|
|
9
9
|
category: business
|
|
10
|
-
version: 3.0.
|
|
10
|
+
version: 3.0.6
|
|
11
11
|
author: 泛微网络科技股份有限公司
|
|
12
12
|
permissions: [network]
|
|
13
13
|
visibility: public
|
|
@@ -35,6 +35,8 @@ cliHelp: "weaver-work-cli mail --help"
|
|
|
35
35
|
|
|
36
36
|
认证和登录态只能按共享规则通过 `weaver-work-cli auth ...` 命令判断;禁止直接读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
37
37
|
所有命令通过 `weaver-work-cli --json mail run <operation>` 执行:简单 JSON 优先传 `--input-json '<json>'`,复杂或多行 JSON 先写入 UTF-8 文件再传 `--input <path>`,只有确认当前 shell 能稳定传管道时才使用 `--input -`。调用前先按需读取 references 下对应的文件,查参数结构,不要猜字段;**references 是第一信息源**,`weaver-work-cli mail schema` 是 operation、字段和风险等级的合约来源。
|
|
38
|
+
|
|
39
|
+
**schema 首屏可能不是全量(务必先看这三个字段)**:`mail schema` 输出超过输出预算时会被压成预览——`operations` 只留前若干条,`withheldOperations`(被扣下的能力)也可能被截短。拿到结果先看:① `previewOmitted`(原始总条数);② `withheldCount`(被扣下的能力总数,与 `withheldOperations` 实际条数不一致就说明被截了);③ `recovery.readRemainingItems` 给出的取全量命令。**不要因为首屏没列到某个工具就判定"不支持"**,也不要只看首屏条数安排任务。
|
|
38
40
|
命令示例、提示词和临时说明必须同时兼容 Windows 和 macOS/Linux;涉及 JSON 输入、用户目录、路径分隔符、Python 启动器、文件删除、目录查看或文件比对时,同时给 Windows PowerShell 与 macOS/Linux(bash/zsh)两套示例。Agent 先根据当前系统和 shell 选择对应示例,不确定时用 `node -p "process.platform"` 判断。Windows/PowerShell 下不要使用 `printf`、`$HOME/...`、`~/...`、bash 反斜杠续行、`rm/ls/diff/python3` 等 Unix-only 写法。
|
|
39
41
|
涉及邮件附件、图片、本地文件、远程 URL 文件或邮件正文解析的操作,执行前必须提醒用户:文件内容可能被上传到 E10 邮件系统,并可能进入当前大模型上下文用于理解和处理;必须等待用户明确确认后才继续。
|
|
40
42
|
|
|
@@ -214,6 +216,7 @@ weaver-work-cli --json mail run mail.attachment.upload --input-json '{"file":"./
|
|
|
214
216
|
- 禁止读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
|
|
215
217
|
- 禁止读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
216
218
|
- 永久删除(`mail.delete.batch`)与重发(`mail.resend`)当前未纳入 CLI manifest,已暂缓实现;如确需执行,请在确认风险后以单独授权方式处理,详见 [`safety-boundaries.md`](references/safety-boundaries.md)。
|
|
219
|
+
- 邮件清理日志(`mail.clearlog.list`)已下架:本环境该服务端接口返回 HTTP 404,调用必然失败;用户问到清理日志时如实说明该环境不提供,不要换命令重试。
|
|
217
220
|
- 非邮件类 E10 能力(招聘、薪酬、业票通、通用流程编排)不由本 Skill 承载。
|
|
218
221
|
|
|
219
222
|
## 8. 审计机制
|
|
@@ -61,7 +61,7 @@ weaver-work-cli --json mail run mail.list --input-json '{"folder":"0","keyword":
|
|
|
61
61
|
| `mail.contacts.group.list` | 无 | 联系人分组列表 |
|
|
62
62
|
| `mail.contacts.group.detail` | `id` | 分组详情(含统计) |
|
|
63
63
|
|
|
64
|
-
## mail.template.list / sign.list / blacklist.list / attachment.center
|
|
64
|
+
## mail.template.list / sign.list / blacklist.list / attachment.center
|
|
65
65
|
|
|
66
66
|
| operation | 字段 | 说明 |
|
|
67
67
|
|---|---|---|
|
|
@@ -69,7 +69,9 @@ weaver-work-cli --json mail run mail.list --input-json '{"folder":"0","keyword":
|
|
|
69
69
|
| `mail.sign.list` | 无 | 签名列表 |
|
|
70
70
|
| `mail.blacklist.list` | 无 | 黑名单列表 |
|
|
71
71
|
| `mail.attachment.center` | `keyword`,`page`,`size` | 附件中心列表/搜索 |
|
|
72
|
-
|
|
72
|
+
|
|
73
|
+
> `mail.clearlog.list`(邮件清理日志)已下架:本环境实测该服务端接口 HTTP 404(不存在或未装配),
|
|
74
|
+
> 调用必然失败,不再出现在 `mail schema` 里。用户问清理日志时如实说明该环境不提供,别绕路重试。
|
|
73
75
|
|
|
74
76
|
## mail.sign.qrcode — 二维码名片
|
|
75
77
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|---|---|---|
|
|
9
9
|
| `mail.delete.batch` | 暂缓 | 物理永久删除(`deleteMailResourceBatch`)不可逆、无法撤销,破坏性最强。常规 CLI 不提供;如确需执行,请在确认风险后以单独授权方式处理。 |
|
|
10
10
|
| `mail.resend` | 暂缓 | 重发邮件(`resendMail`)依赖「邮件发送日志 id」(`mailRemindLogId`),源技能未封装日志查询接口,无法获得该 id 时如实提示,不臆造。 |
|
|
11
|
+
| `mail.clearlog.list` | 下架 | 邮件清理日志(`getEmailClearLogList`)在本环境实测返回 HTTP 404,E10 服务端不存在或未装配;调用必然失败,等确认目标版本后恢复。用户问到清理日志时如实说明该环境不提供。 |
|
|
11
12
|
|
|
12
13
|
Agent **不得**调用上述 operation,也不得用 `mail.delete.move`(逻辑删除)冒充物理永久删除。
|
|
13
14
|
|