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
|
@@ -36,10 +36,16 @@ import {
|
|
|
36
36
|
resolveSecondAuthToken,
|
|
37
37
|
schemaOf,
|
|
38
38
|
toIdList,
|
|
39
|
+
toMenuList,
|
|
39
40
|
toNumber,
|
|
40
41
|
toPageQuery,
|
|
41
42
|
toPositiveInt
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DRUND2PJ.js";
|
|
44
|
+
import {
|
|
45
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
46
|
+
manifestView,
|
|
47
|
+
schemaOptionsOf
|
|
48
|
+
} from "./chunk-WM33BSIL.js";
|
|
43
49
|
import {
|
|
44
50
|
shouldReportPlatformError,
|
|
45
51
|
toPlatformError
|
|
@@ -53,13 +59,13 @@ import {
|
|
|
53
59
|
createE10RequestRuntime,
|
|
54
60
|
isE10SessionExpiredResponse,
|
|
55
61
|
requireE10Session
|
|
56
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-IU6UB2TD.js";
|
|
57
63
|
import {
|
|
58
64
|
E10_SESSION_EXPIRED_MESSAGE
|
|
59
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-IZCQU5D5.js";
|
|
60
66
|
import {
|
|
61
67
|
getActiveProfile
|
|
62
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-AMAPQVBT.js";
|
|
63
69
|
import {
|
|
64
70
|
isCliError,
|
|
65
71
|
toErrorEnvelope
|
|
@@ -1176,29 +1182,63 @@ var ehrAttendAppealResultApply = {
|
|
|
1176
1182
|
var recalcSchema = {
|
|
1177
1183
|
beginDate: SCHEMA_DATE,
|
|
1178
1184
|
endDate: SCHEMA_DATE,
|
|
1179
|
-
|
|
1185
|
+
scope: {
|
|
1186
|
+
type: "string",
|
|
1187
|
+
enum: ["all", "specified"],
|
|
1188
|
+
description: "\u91CD\u7B97\u8303\u56F4\uFF0C\u5FC5\u586B\uFF1Aall=\u5168\u90E8\u4EBA\u5458\uFF08\u5F71\u54CD\u9762\u6700\u5927\uFF0C\u5FC5\u987B\u7531\u8C03\u7528\u65B9\u663E\u5F0F\u58F0\u660E\uFF09\uFF1Bspecified=\u4EC5\u91CD\u7B97 onlyEmpIds \u4E2D\u7684\u4EBA\u5458"
|
|
1189
|
+
},
|
|
1190
|
+
onlyEmpIds: { type: "array", items: SCHEMA_ID, description: "\u8303\u56F4\u4EBA\u5458 ID\uFF1Bscope=specified \u65F6\u5FC5\u586B\u4E14\u81F3\u5C11 1 \u4EBA" }
|
|
1180
1191
|
};
|
|
1192
|
+
function resolveRecalcScope(args) {
|
|
1193
|
+
const rawScope = args.scope;
|
|
1194
|
+
if (rawScope !== "all" && rawScope !== "specified") {
|
|
1195
|
+
throw ehrValidationError(
|
|
1196
|
+
"scope_required",
|
|
1197
|
+
"scope \u5FC5\u586B\uFF0C\u53EA\u80FD\u662F all \u6216 specified\uFF1B\u4E0D\u4F1A\u518D\u628A\u7F3A\u7701\u5F53\u4F5C\u5168\u90E8\u4EBA\u5458",
|
|
1198
|
+
{
|
|
1199
|
+
hint: "\u53EA\u91CD\u7B97\u90E8\u5206\u4EBA\u5458\uFF1Ascope=specified + onlyEmpIds=[\u2026]\uFF1B\u786E\u9700\u5168\u91CF\u91CD\u7B97\uFF1Ascope=all\uFF08\u987B\u663E\u5F0F\u4F20\u5165\uFF09",
|
|
1200
|
+
received: rawScope === void 0 ? "(\u672A\u4F20)" : rawScope
|
|
1201
|
+
}
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
const onlyEmpIds = toIdList(args.onlyEmpIds, "onlyEmpIds");
|
|
1205
|
+
if (rawScope === "specified") {
|
|
1206
|
+
if (!onlyEmpIds?.length) {
|
|
1207
|
+
throw ehrValidationError("scope_empty", "scope=specified \u65F6 onlyEmpIds \u5FC5\u586B\u4E14\u81F3\u5C11 1 \u4EBA", {
|
|
1208
|
+
hint: "\u8865\u4E0A\u8981\u91CD\u7B97\u7684\u4EBA\u5458 ID\uFF1B\u5982\u679C\u8981\u5168\u91CF\u91CD\u7B97\uFF0C\u8BF7\u663E\u5F0F\u6539\u4F20 scope=all"
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
return { scope: "specified", onlyEmpIds };
|
|
1212
|
+
}
|
|
1213
|
+
if (onlyEmpIds?.length) {
|
|
1214
|
+
throw ehrValidationError("scope_conflict", "scope=all \u65F6\u4E0D\u5F97\u540C\u65F6\u4F20 onlyEmpIds", {
|
|
1215
|
+
hint: "\u53EA\u91CD\u7B97\u90E8\u5206\u4EBA\u5458\u8BF7\u628A scope \u6539\u4E3A specified\uFF1B\u5426\u5219\u53BB\u6389 onlyEmpIds"
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
return { scope: "all" };
|
|
1219
|
+
}
|
|
1181
1220
|
var ehrAttendReportRecalcPrepare = {
|
|
1182
1221
|
name: "ehr.attend.report.recalc.prepare",
|
|
1183
1222
|
resource: "attend",
|
|
1184
1223
|
method: "report.recalc.prepare",
|
|
1185
1224
|
action: "ehr.attend.report.recalc.prepare",
|
|
1186
|
-
summary: "\u51C6\u5907\u8003\u52E4\u62A5\u8868\u91CD\u7B97\uFF1A\u6821\u9A8C\u65E5\u671F\u8303\u56F4\u4E0E\u4EBA\u5458\u8303\u56F4\u5E76\u751F\u6210\u786E\u8BA4\u9884\u89C8\uFF0C\u4E0D\u89E6\u53D1\u91CD\u7B97",
|
|
1225
|
+
summary: "\u51C6\u5907\u8003\u52E4\u62A5\u8868\u91CD\u7B97\uFF1A\u6821\u9A8C\u65E5\u671F\u8303\u56F4\u4E0E\u4EBA\u5458\u8303\u56F4\u5E76\u751F\u6210\u786E\u8BA4\u9884\u89C8\uFF0C\u4E0D\u89E6\u53D1\u91CD\u7B97\uFF1Bscope \u5FC5\u586B\uFF0C\u4E0D\u4F20\u4E0D\u4F1A\u9ED8\u8BA4\u5168\u90E8\u4EBA\u5458",
|
|
1187
1226
|
capability: "attend",
|
|
1188
1227
|
risk: WRITE,
|
|
1189
1228
|
requiresConfirmation: true,
|
|
1190
|
-
inputSchema: schemaOf({ ...recalcSchema }, { required: ["beginDate", "endDate"] }),
|
|
1229
|
+
inputSchema: schemaOf({ ...recalcSchema }, { required: ["beginDate", "endDate", "scope"] }),
|
|
1191
1230
|
handler: async (args, { host, continuation }) => {
|
|
1192
1231
|
const { beginDate, endDate } = args;
|
|
1193
1232
|
if (beginDate > endDate) {
|
|
1194
1233
|
throw ehrValidationError("date_range_invalid", "beginDate \u4E0D\u5F97\u665A\u4E8E endDate");
|
|
1195
1234
|
}
|
|
1196
|
-
const onlyEmpIds =
|
|
1235
|
+
const { scope, onlyEmpIds } = resolveRecalcScope(args);
|
|
1197
1236
|
const preview = {
|
|
1198
1237
|
beginDate,
|
|
1199
1238
|
endDate,
|
|
1200
|
-
|
|
1201
|
-
|
|
1239
|
+
scope,
|
|
1240
|
+
onlyEmpIds: onlyEmpIds ?? null,
|
|
1241
|
+
scopeText: scope === "all" ? "\u5168\u90E8\u4EBA\u5458" : `\u6307\u5B9A ${onlyEmpIds.length} \u4EBA`
|
|
1202
1242
|
};
|
|
1203
1243
|
const session = await host.getSession();
|
|
1204
1244
|
const token = await continuation.issue(
|
|
@@ -1231,7 +1271,7 @@ var ehrAttendReportRecalcApply = {
|
|
|
1231
1271
|
requiresConfirmation: true,
|
|
1232
1272
|
inputSchema: schemaOf(
|
|
1233
1273
|
{ ...recalcSchema, confirm: { const: true }, continuation: { type: "string", minLength: 1 } },
|
|
1234
|
-
{ required: ["beginDate", "endDate", "confirm", "continuation"] }
|
|
1274
|
+
{ required: ["beginDate", "endDate", "scope", "confirm", "continuation"] }
|
|
1235
1275
|
),
|
|
1236
1276
|
handler: async (args, env) => {
|
|
1237
1277
|
requireConfirm(args, "ehr.attend.report.recalc.apply");
|
|
@@ -1240,8 +1280,13 @@ var ehrAttendReportRecalcApply = {
|
|
|
1240
1280
|
if (payload.beginDate !== args.beginDate || payload.endDate !== args.endDate) {
|
|
1241
1281
|
throw ehrValidationError("target_changed", "\u91CD\u7B97\u65E5\u671F\u8303\u56F4\u4E0E prepare \u65F6\u7684\u5FEB\u7167\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u91CD\u65B0\u6267\u884C prepare");
|
|
1242
1282
|
}
|
|
1283
|
+
const { scope, onlyEmpIds } = resolveRecalcScope(args);
|
|
1284
|
+
const preparedIds = payload.onlyEmpIds ?? null;
|
|
1285
|
+
const currentIds = onlyEmpIds ?? null;
|
|
1286
|
+
if (payload.scope !== scope || JSON.stringify(preparedIds) !== JSON.stringify(currentIds)) {
|
|
1287
|
+
throw ehrValidationError("target_changed", "\u91CD\u7B97\u4EBA\u5458\u8303\u56F4\u4E0E prepare \u65F6\u7684\u5FEB\u7167\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u91CD\u65B0\u6267\u884C prepare");
|
|
1288
|
+
}
|
|
1243
1289
|
const body = { beginDate: args.beginDate, endDate: args.endDate };
|
|
1244
|
-
const onlyEmpIds = toIdList(args.onlyEmpIds, "onlyEmpIds");
|
|
1245
1290
|
if (onlyEmpIds?.length) body.onlyEmpIds = onlyEmpIds;
|
|
1246
1291
|
let response;
|
|
1247
1292
|
try {
|
|
@@ -4524,13 +4569,13 @@ async function findWorkPlaceMenu(env, cache) {
|
|
|
4524
4569
|
});
|
|
4525
4570
|
const flat = [];
|
|
4526
4571
|
(function walk(nodes) {
|
|
4527
|
-
for (const n of nodes
|
|
4572
|
+
for (const n of toMenuList(nodes)) {
|
|
4528
4573
|
if (n && typeof n === "object") {
|
|
4529
4574
|
flat.push(n);
|
|
4530
|
-
walk(n.children
|
|
4575
|
+
walk(n.children ?? n.childs);
|
|
4531
4576
|
}
|
|
4532
4577
|
}
|
|
4533
|
-
})(r?.data
|
|
4578
|
+
})(r?.data);
|
|
4534
4579
|
return pick(flat);
|
|
4535
4580
|
} catch {
|
|
4536
4581
|
return null;
|
|
@@ -6599,8 +6644,13 @@ var ehrShortcut = {
|
|
|
6599
6644
|
category: "shortcut",
|
|
6600
6645
|
register({ program, action }) {
|
|
6601
6646
|
const ehr = program.command("ehr").description("\u6CDB\u5FAEE10\u805A\u624D\u6797\uFF08\u4EBA\u4E8B\u6863\u6848/\u51FA\u52E4\u7BA1\u7406/\u85AA\u916C\u7BA1\u7406\uFF09");
|
|
6602
|
-
ehr.command("schema").description("Print ehr operation manifest for agents").action(action((ctx) => {
|
|
6603
|
-
|
|
6647
|
+
ehr.command("schema").description("Print ehr operation manifest for agents").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
|
|
6648
|
+
const schema = schemaOptionsOf(options);
|
|
6649
|
+
ctx.output.write(manifestView(ehrManifest, schema), {
|
|
6650
|
+
json: true,
|
|
6651
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
6652
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
6653
|
+
});
|
|
6604
6654
|
}));
|
|
6605
6655
|
ehr.command("run").description("Run an ehr operation with JSON input").argument("<operation>", "operation name, e.g. ehr.attend.summary.get").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
6606
6656
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
meetingEntryOperations,
|
|
6
6
|
readEntryChoice,
|
|
7
7
|
verifyEntryToken
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-XZBYRYWX.js";
|
|
9
|
+
import "./chunk-F4HM25K4.js";
|
|
10
|
+
import "./chunk-4I26YMBY.js";
|
|
11
11
|
import "./chunk-7BDPM5ST.js";
|
|
12
12
|
import "./chunk-UG5G54VL.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
meetingStateDir,
|
|
7
7
|
readCache,
|
|
8
8
|
resolveMeetingEnvMode
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-F4HM25K4.js";
|
|
10
|
+
import "./chunk-4I26YMBY.js";
|
|
11
11
|
import "./chunk-7BDPM5ST.js";
|
|
12
12
|
import "./chunk-UG5G54VL.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -6,23 +6,28 @@ import {
|
|
|
6
6
|
assertNoForbiddenKeys,
|
|
7
7
|
esbManifest,
|
|
8
8
|
getEsbOperation
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R3MK2RBN.js";
|
|
10
10
|
import {
|
|
11
11
|
createEsbHost
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L7TYG5SN.js";
|
|
13
13
|
import {
|
|
14
14
|
createEsbContinuationSigner
|
|
15
15
|
} from "./chunk-UL5XUQ25.js";
|
|
16
16
|
import {
|
|
17
17
|
esbValidationError
|
|
18
18
|
} from "./chunk-TXUG266F.js";
|
|
19
|
+
import {
|
|
20
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
21
|
+
manifestView,
|
|
22
|
+
schemaOptionsOf
|
|
23
|
+
} from "./chunk-WM33BSIL.js";
|
|
19
24
|
import {
|
|
20
25
|
reportPlatformError
|
|
21
26
|
} from "./chunk-MD5CW4B6.js";
|
|
22
27
|
import "./chunk-7BDPM5ST.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-IU6UB2TD.js";
|
|
29
|
+
import "./chunk-IZCQU5D5.js";
|
|
30
|
+
import "./chunk-AMAPQVBT.js";
|
|
26
31
|
import {
|
|
27
32
|
isCliError,
|
|
28
33
|
toErrorEnvelope
|
|
@@ -132,8 +137,13 @@ var esbShortcut = {
|
|
|
132
137
|
category: "shortcut",
|
|
133
138
|
register({ program, action }) {
|
|
134
139
|
const esb = program.command("esb").description("\u6CDB\u5FAEE10 ESB \u4E2D\u5FC3\u81EA\u5B9A\u4E49\u89E6\u53D1\u52A8\u4F5C\u6D41\uFF08\u53D6\u5165\u53C2\u6A21\u677F / \u786E\u8BA4\u540E\u89E6\u53D1\uFF09");
|
|
135
|
-
esb.command("schema").description("Print esb operation manifest for agents").action(action((ctx) => {
|
|
136
|
-
|
|
140
|
+
esb.command("schema").description("Print esb operation manifest for agents").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
|
|
141
|
+
const schema = schemaOptionsOf(options);
|
|
142
|
+
ctx.output.write(manifestView(esbManifest, schema), {
|
|
143
|
+
json: true,
|
|
144
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
145
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
146
|
+
});
|
|
137
147
|
}));
|
|
138
148
|
esb.command("run").description("Run an esb operation with JSON input").argument("<operation>", "operation name, e.g. esb.trigger.prepare").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
139
149
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
|
+
manifestView,
|
|
6
|
+
schemaOptionsOf
|
|
7
|
+
} from "./chunk-WM33BSIL.js";
|
|
3
8
|
import {
|
|
4
9
|
reportPlatformError
|
|
5
10
|
} from "./chunk-MD5CW4B6.js";
|
|
@@ -12,13 +17,13 @@ import {
|
|
|
12
17
|
createE10RequestRuntime,
|
|
13
18
|
isE10SessionExpiredResponse,
|
|
14
19
|
requireE10Session
|
|
15
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IU6UB2TD.js";
|
|
16
21
|
import {
|
|
17
22
|
E10_SESSION_EXPIRED_MESSAGE
|
|
18
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IZCQU5D5.js";
|
|
19
24
|
import {
|
|
20
25
|
getActiveProfile
|
|
21
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AMAPQVBT.js";
|
|
22
27
|
import {
|
|
23
28
|
CliError,
|
|
24
29
|
isCliError,
|
|
@@ -1834,8 +1839,13 @@ var fnaShortcut = {
|
|
|
1834
1839
|
category: "shortcut",
|
|
1835
1840
|
register({ program, action }) {
|
|
1836
1841
|
const fna = program.command("fna").description("\u6CDB\u5FAEE10\u9F50\u4E1A\u6210\u8D39\u63A7\u4E2D\u5FC3\uFF08\u9884\u7B97\u67E5\u8BE2/\u8D39\u7528\u4E2D\u5FC3/\u501F\u6B3E\u7BA1\u7406/\u53D1\u7968\u6838\u9500\uFF09");
|
|
1837
|
-
fna.command("schema").description("Print fna operation manifest for agents").action(action((ctx) => {
|
|
1838
|
-
|
|
1842
|
+
fna.command("schema").description("Print fna operation manifest for agents").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
|
|
1843
|
+
const schema = schemaOptionsOf(options);
|
|
1844
|
+
ctx.output.write(manifestView(fnaManifest, schema), {
|
|
1845
|
+
json: true,
|
|
1846
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
1847
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
1848
|
+
});
|
|
1839
1849
|
}));
|
|
1840
1850
|
fna.command("run").description("Run an fna operation with JSON input").argument("<operation>", "operation name, e.g. fna.expense.reimbursed.sum").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
1841
1851
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ensureMeetingGroupChat,
|
|
7
7
|
meetingEbGroupChatOperations,
|
|
8
8
|
savePendingForm
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-LLCMOZ5L.js";
|
|
10
|
+
import "./chunk-F4HM25K4.js";
|
|
11
|
+
import "./chunk-4I26YMBY.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
extractApiBusinessError,
|
|
6
6
|
isAtustRedirect,
|
|
7
7
|
isLoginExpired
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZWLWXHJC.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-IU6UB2TD.js";
|
|
11
|
+
import "./chunk-IZCQU5D5.js";
|
|
12
|
+
import "./chunk-AMAPQVBT.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
15
15
|
export {
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
createEsbHost,
|
|
7
7
|
isEsbFlowUnavailable,
|
|
8
8
|
triggerResultCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L7TYG5SN.js";
|
|
10
10
|
import "./chunk-TXUG266F.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-IU6UB2TD.js";
|
|
12
|
+
import "./chunk-IZCQU5D5.js";
|
|
13
|
+
import "./chunk-AMAPQVBT.js";
|
|
14
14
|
import "./chunk-UG5G54VL.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
businessMessage,
|
|
5
5
|
createHrmHost,
|
|
6
6
|
isBusinessSuccess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6HT73VOI.js";
|
|
8
8
|
import "./chunk-56EZERK4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-IU6UB2TD.js";
|
|
10
|
+
import "./chunk-IZCQU5D5.js";
|
|
11
|
+
import "./chunk-AMAPQVBT.js";
|
|
12
12
|
import "./chunk-UG5G54VL.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
14
14
|
export {
|
|
@@ -4,21 +4,23 @@ import {
|
|
|
4
4
|
CAIZHILAN_MAX_DOWNLOAD_BYTES,
|
|
5
5
|
CAIZHILAN_TIMEOUT_MS,
|
|
6
6
|
CAIZHILAN_TRANSFER_TIMEOUT_MS,
|
|
7
|
+
CAIZHILIAN_BUSINESS_FALLBACK_MESSAGE,
|
|
7
8
|
assertCaizhilianPath,
|
|
8
9
|
caizhilianBusinessMessage,
|
|
9
10
|
createCaizhilianHost,
|
|
10
11
|
isCaizhilianBusinessSuccess
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NUP4RYZK.js";
|
|
12
13
|
import "./chunk-P5GQRWDC.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IU6UB2TD.js";
|
|
15
|
+
import "./chunk-IZCQU5D5.js";
|
|
16
|
+
import "./chunk-AMAPQVBT.js";
|
|
16
17
|
import "./chunk-UG5G54VL.js";
|
|
17
18
|
import "./chunk-BUSC6UAE.js";
|
|
18
19
|
export {
|
|
19
20
|
CAIZHILAN_MAX_DOWNLOAD_BYTES,
|
|
20
21
|
CAIZHILAN_TIMEOUT_MS,
|
|
21
22
|
CAIZHILAN_TRANSFER_TIMEOUT_MS,
|
|
23
|
+
CAIZHILIAN_BUSINESS_FALLBACK_MESSAGE,
|
|
22
24
|
assertCaizhilianPath,
|
|
23
25
|
caizhilianBusinessMessage,
|
|
24
26
|
createCaizhilianHost,
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
pickEbuilderDataKey,
|
|
8
8
|
resolveApiPrefix,
|
|
9
9
|
routeEbuilderPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JMJBPP4B.js";
|
|
11
11
|
import "./chunk-Z3GDFVJR.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-IU6UB2TD.js";
|
|
13
|
+
import "./chunk-IZCQU5D5.js";
|
|
14
|
+
import "./chunk-AMAPQVBT.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
17
17
|
export {
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
dirname,
|
|
8
8
|
mkdir,
|
|
9
9
|
writeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4BXR6CNB.js";
|
|
11
11
|
import "./chunk-IC62NFM5.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-IU6UB2TD.js";
|
|
13
|
+
import "./chunk-IZCQU5D5.js";
|
|
14
|
+
import "./chunk-AMAPQVBT.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
17
17
|
export {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createHrmHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6HT73VOI.js";
|
|
6
6
|
import {
|
|
7
7
|
getHrmOperation,
|
|
8
8
|
hrmOperationDefinitions
|
|
@@ -16,12 +16,15 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
hrmValidationError
|
|
18
18
|
} from "./chunk-56EZERK4.js";
|
|
19
|
+
import {
|
|
20
|
+
manifestView
|
|
21
|
+
} from "./chunk-WM33BSIL.js";
|
|
19
22
|
import {
|
|
20
23
|
reportPlatformError
|
|
21
24
|
} from "./chunk-MD5CW4B6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-IU6UB2TD.js";
|
|
26
|
+
import "./chunk-IZCQU5D5.js";
|
|
27
|
+
import "./chunk-AMAPQVBT.js";
|
|
25
28
|
import {
|
|
26
29
|
isCliError,
|
|
27
30
|
toErrorEnvelope
|
|
@@ -206,8 +209,14 @@ var hrmShortcut = {
|
|
|
206
209
|
category: "shortcut",
|
|
207
210
|
register({ program, action }) {
|
|
208
211
|
const hrm = program.command("hrm").description("\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5\u67E5\u8BE2/\u7EC4\u7EC7\u67B6\u6784/\u5C97\u4F4D\u67E5\u8BE2\uFF09");
|
|
209
|
-
hrm.command("schema").description("Print hrm operation manifest for agents").option("--full", "print full manifest with complete inputSchema").action(action((ctx, options) => {
|
|
210
|
-
|
|
212
|
+
hrm.command("schema").description("Print hrm operation manifest for agents").option("--list", "\u53EA\u5217\u64CD\u4F5C\u7D22\u5F15\uFF08name/summary/\u53C2\u6570\u540D/\u5FC5\u586B\u9879\uFF09\uFF0C\u4E0E\u9ED8\u8BA4\u8F93\u51FA\u4E00\u81F4\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").option("--full", "print full manifest with complete inputSchema").action(action((ctx, options) => {
|
|
213
|
+
const opts = asOptions(options);
|
|
214
|
+
const requested = String(opts.operation ?? "").trim();
|
|
215
|
+
if (requested) {
|
|
216
|
+
ctx.output.write(manifestView(hrmManifest, { operation: requested }), { json: true });
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (opts.full === true) {
|
|
211
220
|
ctx.output.write(hrmManifest, { json: true });
|
|
212
221
|
return;
|
|
213
222
|
}
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createImHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4BXR6CNB.js";
|
|
6
6
|
import {
|
|
7
7
|
createImContinuationSigner
|
|
8
8
|
} from "./chunk-KIHNAS25.js";
|
|
@@ -16,10 +16,15 @@ import {
|
|
|
16
16
|
imValidationError
|
|
17
17
|
} from "./chunk-IC62NFM5.js";
|
|
18
18
|
import "./chunk-KMRT7NAT.js";
|
|
19
|
+
import {
|
|
20
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
21
|
+
manifestView,
|
|
22
|
+
schemaOptionsOf
|
|
23
|
+
} from "./chunk-WM33BSIL.js";
|
|
19
24
|
import "./chunk-7BDPM5ST.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-IU6UB2TD.js";
|
|
26
|
+
import "./chunk-IZCQU5D5.js";
|
|
27
|
+
import "./chunk-AMAPQVBT.js";
|
|
23
28
|
import {
|
|
24
29
|
isCliError,
|
|
25
30
|
toErrorEnvelope
|
|
@@ -335,8 +340,13 @@ var imShortcut = {
|
|
|
335
340
|
category: "shortcut",
|
|
336
341
|
register({ program, action }) {
|
|
337
342
|
const im = program.command("im").description("\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF1A\u6D88\u606F/\u7FA4\u7EC4/\u4F1A\u8BDD/\u7CFB\u7EDF\u6D88\u606F").option("--trace", "\u6BCF\u4E2A E10 \u8BF7\u6C42\u5728 stderr \u6253\u4E00\u884C [trace]\uFF08method/path/op/status/\u8017\u65F6\uFF0C\u4E0D\u542B\u51ED\u8BC1\uFF09");
|
|
338
|
-
im.command("schema").description("Print im operation manifest for agents").action(action((ctx) => {
|
|
339
|
-
|
|
343
|
+
im.command("schema").description("Print im operation manifest for agents").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
|
|
344
|
+
const schema = schemaOptionsOf(options);
|
|
345
|
+
ctx.output.write(manifestView(imManifest, schema), {
|
|
346
|
+
json: true,
|
|
347
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
348
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
349
|
+
});
|
|
340
350
|
}));
|
|
341
351
|
withJsonInputOptions(im.command("run").description("Run an im operation with JSON input").argument("<operation>", "operation name, e.g. im.msg.sync.group")).action(action(async (ctx, operation, options) => {
|
|
342
352
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -8,7 +8,12 @@ import {
|
|
|
8
8
|
invoicePartialError,
|
|
9
9
|
invoiceValidationError,
|
|
10
10
|
isInvoiceNetworkError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GWJLAF6B.js";
|
|
12
|
+
import {
|
|
13
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
14
|
+
manifestView,
|
|
15
|
+
schemaOptionsOf
|
|
16
|
+
} from "./chunk-WM33BSIL.js";
|
|
12
17
|
import {
|
|
13
18
|
reportPlatformError
|
|
14
19
|
} from "./chunk-MD5CW4B6.js";
|
|
@@ -16,9 +21,9 @@ import {
|
|
|
16
21
|
CONTINUATION_TTL_MS,
|
|
17
22
|
CONTINUATION_TTL_SECONDS
|
|
18
23
|
} from "./chunk-7BDPM5ST.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-IU6UB2TD.js";
|
|
25
|
+
import "./chunk-IZCQU5D5.js";
|
|
26
|
+
import "./chunk-AMAPQVBT.js";
|
|
22
27
|
import {
|
|
23
28
|
isCliError,
|
|
24
29
|
toErrorEnvelope
|
|
@@ -1065,6 +1070,7 @@ var invoiceOperations = [
|
|
|
1065
1070
|
{
|
|
1066
1071
|
name: "invoice.import.prepare",
|
|
1067
1072
|
risk: "read-before-write",
|
|
1073
|
+
requiresConfirmation: true,
|
|
1068
1074
|
inputSchema: {
|
|
1069
1075
|
type: "object",
|
|
1070
1076
|
additionalProperties: false,
|
|
@@ -1091,6 +1097,7 @@ var invoiceOperations = [
|
|
|
1091
1097
|
{
|
|
1092
1098
|
name: "invoice.import.apply",
|
|
1093
1099
|
risk: "high-risk-write",
|
|
1100
|
+
requiresConfirmation: true,
|
|
1094
1101
|
inputSchema: {
|
|
1095
1102
|
type: "object",
|
|
1096
1103
|
additionalProperties: false,
|
|
@@ -1113,6 +1120,7 @@ var invoiceOperations = [
|
|
|
1113
1120
|
{
|
|
1114
1121
|
name: "invoice.add.prepare",
|
|
1115
1122
|
risk: "read-before-write",
|
|
1123
|
+
requiresConfirmation: true,
|
|
1116
1124
|
inputSchema: {
|
|
1117
1125
|
type: "object",
|
|
1118
1126
|
additionalProperties: false,
|
|
@@ -1127,6 +1135,7 @@ var invoiceOperations = [
|
|
|
1127
1135
|
{
|
|
1128
1136
|
name: "invoice.add.apply",
|
|
1129
1137
|
risk: "high-risk-write",
|
|
1138
|
+
requiresConfirmation: true,
|
|
1130
1139
|
inputSchema: {
|
|
1131
1140
|
type: "object",
|
|
1132
1141
|
additionalProperties: false,
|
|
@@ -1142,6 +1151,7 @@ var invoiceOperations = [
|
|
|
1142
1151
|
{
|
|
1143
1152
|
name: "invoice.update.prepare",
|
|
1144
1153
|
risk: "read-before-write",
|
|
1154
|
+
requiresConfirmation: true,
|
|
1145
1155
|
inputSchema: {
|
|
1146
1156
|
type: "object",
|
|
1147
1157
|
additionalProperties: false,
|
|
@@ -1176,6 +1186,7 @@ var invoiceOperations = [
|
|
|
1176
1186
|
{
|
|
1177
1187
|
name: "invoice.update.apply",
|
|
1178
1188
|
risk: "high-risk-write",
|
|
1189
|
+
requiresConfirmation: true,
|
|
1179
1190
|
inputSchema: {
|
|
1180
1191
|
type: "object",
|
|
1181
1192
|
additionalProperties: false,
|
|
@@ -1205,6 +1216,7 @@ var invoiceOperations = [
|
|
|
1205
1216
|
{
|
|
1206
1217
|
name: "invoice.delete.prepare",
|
|
1207
1218
|
risk: "read-before-write",
|
|
1219
|
+
requiresConfirmation: true,
|
|
1208
1220
|
inputSchema: {
|
|
1209
1221
|
type: "object",
|
|
1210
1222
|
additionalProperties: false,
|
|
@@ -1219,6 +1231,7 @@ var invoiceOperations = [
|
|
|
1219
1231
|
{
|
|
1220
1232
|
name: "invoice.delete.apply",
|
|
1221
1233
|
risk: "high-risk-write",
|
|
1234
|
+
requiresConfirmation: true,
|
|
1222
1235
|
inputSchema: {
|
|
1223
1236
|
type: "object",
|
|
1224
1237
|
additionalProperties: false,
|
|
@@ -4627,8 +4640,16 @@ var invoiceShortcut = {
|
|
|
4627
4640
|
category: "shortcut",
|
|
4628
4641
|
register({ program, action }) {
|
|
4629
4642
|
const invoice = program.command("invoice").description("E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406");
|
|
4630
|
-
invoice.command("schema").description("Print invoice operation manifest for agents").action(action((ctx) => {
|
|
4631
|
-
|
|
4643
|
+
invoice.command("schema").description("Print invoice operation manifest for agents").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
|
|
4644
|
+
const schema = schemaOptionsOf(options);
|
|
4645
|
+
ctx.output.write(
|
|
4646
|
+
manifestView(invoiceManifest, schema),
|
|
4647
|
+
{
|
|
4648
|
+
json: true,
|
|
4649
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
4650
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
4651
|
+
}
|
|
4652
|
+
);
|
|
4632
4653
|
}));
|
|
4633
4654
|
withInvoiceOptions(invoice.command("run").description("Run an invoice operation with JSON input").argument("<operation>", "operation name, e.g. invoice.list")).action(action(async (ctx, operation, options) => {
|
|
4634
4655
|
await executeAndPrint(ctx, String(operation), await inputFrom(options), projectionFrom(options));
|