weaver-work-cli 0.1.70 → 0.1.71
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-5P33NAUN.js} +22 -5
- package/dist/chunks/{archive-oa-VXXO4RTB.js → archive-oa-YTY5D7DG.js} +17 -5
- package/dist/chunks/{asset-45U6TY7I.js → asset-3Q5MFQBX.js} +22 -5
- package/dist/chunks/{asset-idle-YCRBMTIT.js → asset-idle-PQPNYIS7.js} +15 -5
- package/dist/chunks/{attachment-content-DMU7KNZ7.js → attachment-content-7CN7JB6B.js} +3 -3
- package/dist/chunks/{blog-5AML4WMG.js → blog-MFHHK6ZR.js} +25 -5
- package/dist/chunks/{caizhilian-3P7BUNHT.js → caizhilian-OZ435AYW.js} +22 -8
- package/dist/chunks/{calendar-2HUXM3CZ.js → calendar-TNJXS5UC.js} +15 -5
- package/dist/chunks/{chunk-H2NRTGZR.js → chunk-2DNCKZRX.js} +3 -3
- package/dist/chunks/{chunk-DVFA3ODS.js → chunk-35A56FJ7.js} +12 -0
- package/dist/chunks/{chunk-HG6INLH6.js → chunk-6MMSLE6K.js} +23 -6
- package/dist/chunks/{chunk-UVWW5ABZ.js → chunk-B4NINGP2.js} +3 -3
- package/dist/chunks/{chunk-LRKKKO5A.js → chunk-DRJYPXKC.js} +3 -4
- package/dist/chunks/{chunk-KDOJW5LH.js → chunk-EJLP63UO.js} +1 -1
- package/dist/chunks/{chunk-HAORST2G.js → chunk-FRMDHZSN.js} +11 -11
- package/dist/chunks/{chunk-GWM5TLIK.js → chunk-G7ZM2VOX.js} +34 -34
- package/dist/chunks/{chunk-LSVA7QA6.js → chunk-GB2MCJPG.js} +3 -1
- package/dist/chunks/{chunk-L2A3COWV.js → chunk-ICNUOWLL.js} +4 -4
- package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
- package/dist/chunks/{chunk-7CINV2BU.js → chunk-LU2SPJYY.js} +2 -2
- package/dist/chunks/{chunk-E7VWE2XI.js → chunk-MD5RXRI3.js} +3 -3
- package/dist/chunks/{chunk-VZUH3LKI.js → chunk-MZVQKQP5.js} +167 -157
- package/dist/chunks/{chunk-X6PMJQGO.js → chunk-OFCF23FY.js} +6 -6
- package/dist/chunks/{chunk-IVCOZCAW.js → chunk-OPTJ6IF7.js} +1 -1
- package/dist/chunks/{chunk-727VKJQK.js → chunk-OZ7CJC7W.js} +2 -2
- package/dist/chunks/{chunk-T24EBWAZ.js → chunk-P3AFNAJ6.js} +48 -21
- package/dist/chunks/{chunk-LJE7RZNC.js → chunk-Q3EXRNB4.js} +1 -1
- package/dist/chunks/{chunk-QYDSTYGG.js → chunk-SKWKCLJX.js} +3 -3
- package/dist/chunks/{chunk-DSBV4GRK.js → chunk-SSS75WXW.js} +3 -3
- package/dist/chunks/{chunk-I5XB4MZT.js → chunk-SUWR5QEG.js} +94 -65
- package/dist/chunks/{chunk-XIBMZEDB.js → chunk-VJWVB55R.js} +2 -2
- package/dist/chunks/{chunk-EHH363SP.js → chunk-VMVMEIL3.js} +4 -4
- package/dist/chunks/chunk-WM33BSIL.js +136 -0
- package/dist/chunks/{chunk-GFOFUH6O.js → chunk-X2C5CGGM.js} +52 -51
- package/dist/chunks/{chunk-4W6BSNIL.js → chunk-XLSJC6JZ.js} +6 -6
- package/dist/chunks/{chunk-U3OO3IZF.js → chunk-YN5SD4TX.js} +20 -7
- package/dist/chunks/{conflict-YW5BULJ3.js → conflict-Y4PXZ2YQ.js} +2 -2
- package/dist/chunks/{contract-3PMHUASH.js → contract-C3BGUMBM.js} +48 -5
- package/dist/chunks/{cowork-FZBTTBYX.js → cowork-2AWG4QLA.js} +37 -8
- package/dist/chunks/{create-flow-5OBS3B3V.js → create-flow-LOUOK46Z.js} +6 -6
- package/dist/chunks/{data-2YZ6A6TL.js → data-BSFYMXVO.js} +99 -184
- package/dist/chunks/{ebuilder-form-AWPTMZBZ.js → ebuilder-form-LAAMTD2Y.js} +17 -7
- package/dist/chunks/{ehr-MNPR4TE5.js → ehr-36KEX5SH.js} +62 -13
- package/dist/chunks/{entry-mode-L65OWPFM.js → entry-mode-6N2IGCS4.js} +3 -3
- package/dist/chunks/{env-XW7LYIME.js → env-QYLS3EB3.js} +2 -2
- package/dist/chunks/{esb-GSB5QCEX.js → esb-PTYS3E67.js} +17 -7
- package/dist/chunks/{factory-MHFZZAGH.js → factory-LPFPKZ4T.js} +1 -1
- package/dist/chunks/{fna-XBSNUS2V.js → fna-JNHCLRDE.js} +15 -5
- package/dist/chunks/{group-chat-EEOLO5NM.js → group-chat-QP2WX4QJ.js} +3 -3
- package/dist/chunks/{host-2UMNXX5H.js → host-57LSRSE7.js} +4 -4
- package/dist/chunks/{host-NVDG3NC6.js → host-7BVR7CQ3.js} +4 -4
- package/dist/chunks/{host-SYPCA63D.js → host-C2BLBIID.js} +4 -4
- package/dist/chunks/{host-XVWBOSEN.js → host-K2ZKNXME.js} +4 -4
- package/dist/chunks/{host-R7BP3CTI.js → host-NS36QFLR.js} +6 -4
- package/dist/chunks/{host-BD44ASOD.js → host-QXFKQXNX.js} +4 -4
- package/dist/chunks/{hrm-FZUDJAND.js → hrm-FSGO4NSH.js} +15 -6
- package/dist/chunks/{im-F5NENPD7.js → im-2BFGS2XO.js} +16 -6
- package/dist/chunks/{invoice-DS6FLU55.js → invoice-JKLTTHSZ.js} +27 -6
- package/dist/chunks/{jiuchuanhui-JCBUR563.js → jiuchuanhui-PTABJE7V.js} +19 -6
- package/dist/chunks/{lazy-dispatch-F6O2EPGR.js → lazy-dispatch-YN2ZP3CS.js} +6 -6
- package/dist/chunks/{mail-ZEOSANEJ.js → mail-YNO7ZZUK.js} +116 -97
- package/dist/chunks/{meeting-PCD5EPBF.js → meeting-NIDHDBCB.js} +29 -16
- package/dist/chunks/{minute-doc-WTZJVCHG.js → minute-doc-G3QAT7DE.js} +4 -4
- package/dist/chunks/{okr-OZUMTMCL.js → okr-QC52G6AJ.js} +15 -5
- package/dist/chunks/{operations-LQY3FTPH.js → operations-2WHIF5WV.js} +1 -1
- package/dist/chunks/{operations-UTUWFJTX.js → operations-MQV32ITT.js} +5 -5
- package/dist/chunks/{performance-SMVTPK6T.js → performance-3MQ3AHDQ.js} +92 -7
- package/dist/chunks/{plan-C2NENH42.js → plan-ISINIEPY.js} +15 -5
- package/dist/chunks/{project-FAJ2P3UR.js → project-IJ6DVKT7.js} +18 -5
- package/dist/chunks/{reception-NH6MJFPR.js → reception-3H5LUG2I.js} +17 -7
- package/dist/chunks/{recruit-stage-DPEFHLSE.js → recruit-stage-MIOJXP6W.js} +412 -85
- package/dist/chunks/{registry-ZQ7OONCB.js → registry-3GQRYP2R.js} +12 -12
- package/dist/chunks/{registry-3B3OAJYX.js → registry-3S7AVMXR.js} +4 -4
- package/dist/chunks/{registry-FTPUUHWC.js → registry-NHHKOEU3.js} +5 -5
- package/dist/chunks/{room-recommend-73NBN3RU.js → room-recommend-IOKBJVYP.js} +4 -4
- package/dist/chunks/{schedule-SDBOBBUQ.js → schedule-IB6EUARH.js} +4 -4
- package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-N2TK3CEF.js} +19 -6
- package/dist/chunks/{workflow-OWHWLAOX.js → workflow-RINBAL2M.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 +38 -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/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/index.js +11 -2
- package/dist/shortcuts/reception/manifest.js +2 -2
- package/dist/shortcuts/reception/operations/ask.js +3 -0
- package/dist/shortcuts/recruit-stage/index.js +22 -3
- package/dist/shortcuts/recruit-stage/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -16
- package/dist/shortcuts/recruit-stage/operations/profile.js +186 -0
- package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +76 -47
- package/dist/shortcuts/recruit-stage/operations/search.js +151 -16
- package/dist/shortcuts/recruit-stage/operations/tag.js +17 -3
- package/dist/shortcuts/recruit-stage/shared.js +11 -1
- 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/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/references/attend-write.md +1 -1
- 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-recruit-stage/SKILL.md +125 -20
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +359 -0
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +87 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +9 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +1 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +177 -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
|
@@ -40,6 +40,11 @@ import {
|
|
|
40
40
|
toPageQuery,
|
|
41
41
|
toPositiveInt
|
|
42
42
|
} from "./chunk-UPVAQJKS.js";
|
|
43
|
+
import {
|
|
44
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
45
|
+
manifestView,
|
|
46
|
+
schemaOptionsOf
|
|
47
|
+
} from "./chunk-WM33BSIL.js";
|
|
43
48
|
import {
|
|
44
49
|
shouldReportPlatformError,
|
|
45
50
|
toPlatformError
|
|
@@ -53,13 +58,13 @@ import {
|
|
|
53
58
|
createE10RequestRuntime,
|
|
54
59
|
isE10SessionExpiredResponse,
|
|
55
60
|
requireE10Session
|
|
56
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-DRJYPXKC.js";
|
|
57
62
|
import {
|
|
58
63
|
E10_SESSION_EXPIRED_MESSAGE
|
|
59
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-IZCQU5D5.js";
|
|
60
65
|
import {
|
|
61
66
|
getActiveProfile
|
|
62
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-SUWR5QEG.js";
|
|
63
68
|
import {
|
|
64
69
|
isCliError,
|
|
65
70
|
toErrorEnvelope
|
|
@@ -1176,29 +1181,63 @@ var ehrAttendAppealResultApply = {
|
|
|
1176
1181
|
var recalcSchema = {
|
|
1177
1182
|
beginDate: SCHEMA_DATE,
|
|
1178
1183
|
endDate: SCHEMA_DATE,
|
|
1179
|
-
|
|
1184
|
+
scope: {
|
|
1185
|
+
type: "string",
|
|
1186
|
+
enum: ["all", "specified"],
|
|
1187
|
+
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"
|
|
1188
|
+
},
|
|
1189
|
+
onlyEmpIds: { type: "array", items: SCHEMA_ID, description: "\u8303\u56F4\u4EBA\u5458 ID\uFF1Bscope=specified \u65F6\u5FC5\u586B\u4E14\u81F3\u5C11 1 \u4EBA" }
|
|
1180
1190
|
};
|
|
1191
|
+
function resolveRecalcScope(args) {
|
|
1192
|
+
const rawScope = args.scope;
|
|
1193
|
+
if (rawScope !== "all" && rawScope !== "specified") {
|
|
1194
|
+
throw ehrValidationError(
|
|
1195
|
+
"scope_required",
|
|
1196
|
+
"scope \u5FC5\u586B\uFF0C\u53EA\u80FD\u662F all \u6216 specified\uFF1B\u4E0D\u4F1A\u518D\u628A\u7F3A\u7701\u5F53\u4F5C\u5168\u90E8\u4EBA\u5458",
|
|
1197
|
+
{
|
|
1198
|
+
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",
|
|
1199
|
+
received: rawScope === void 0 ? "(\u672A\u4F20)" : rawScope
|
|
1200
|
+
}
|
|
1201
|
+
);
|
|
1202
|
+
}
|
|
1203
|
+
const onlyEmpIds = toIdList(args.onlyEmpIds, "onlyEmpIds");
|
|
1204
|
+
if (rawScope === "specified") {
|
|
1205
|
+
if (!onlyEmpIds?.length) {
|
|
1206
|
+
throw ehrValidationError("scope_empty", "scope=specified \u65F6 onlyEmpIds \u5FC5\u586B\u4E14\u81F3\u5C11 1 \u4EBA", {
|
|
1207
|
+
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"
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
return { scope: "specified", onlyEmpIds };
|
|
1211
|
+
}
|
|
1212
|
+
if (onlyEmpIds?.length) {
|
|
1213
|
+
throw ehrValidationError("scope_conflict", "scope=all \u65F6\u4E0D\u5F97\u540C\u65F6\u4F20 onlyEmpIds", {
|
|
1214
|
+
hint: "\u53EA\u91CD\u7B97\u90E8\u5206\u4EBA\u5458\u8BF7\u628A scope \u6539\u4E3A specified\uFF1B\u5426\u5219\u53BB\u6389 onlyEmpIds"
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
return { scope: "all" };
|
|
1218
|
+
}
|
|
1181
1219
|
var ehrAttendReportRecalcPrepare = {
|
|
1182
1220
|
name: "ehr.attend.report.recalc.prepare",
|
|
1183
1221
|
resource: "attend",
|
|
1184
1222
|
method: "report.recalc.prepare",
|
|
1185
1223
|
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",
|
|
1224
|
+
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
1225
|
capability: "attend",
|
|
1188
1226
|
risk: WRITE,
|
|
1189
1227
|
requiresConfirmation: true,
|
|
1190
|
-
inputSchema: schemaOf({ ...recalcSchema }, { required: ["beginDate", "endDate"] }),
|
|
1228
|
+
inputSchema: schemaOf({ ...recalcSchema }, { required: ["beginDate", "endDate", "scope"] }),
|
|
1191
1229
|
handler: async (args, { host, continuation }) => {
|
|
1192
1230
|
const { beginDate, endDate } = args;
|
|
1193
1231
|
if (beginDate > endDate) {
|
|
1194
1232
|
throw ehrValidationError("date_range_invalid", "beginDate \u4E0D\u5F97\u665A\u4E8E endDate");
|
|
1195
1233
|
}
|
|
1196
|
-
const onlyEmpIds =
|
|
1234
|
+
const { scope, onlyEmpIds } = resolveRecalcScope(args);
|
|
1197
1235
|
const preview = {
|
|
1198
1236
|
beginDate,
|
|
1199
1237
|
endDate,
|
|
1200
|
-
|
|
1201
|
-
|
|
1238
|
+
scope,
|
|
1239
|
+
onlyEmpIds: onlyEmpIds ?? null,
|
|
1240
|
+
scopeText: scope === "all" ? "\u5168\u90E8\u4EBA\u5458" : `\u6307\u5B9A ${onlyEmpIds.length} \u4EBA`
|
|
1202
1241
|
};
|
|
1203
1242
|
const session = await host.getSession();
|
|
1204
1243
|
const token = await continuation.issue(
|
|
@@ -1231,7 +1270,7 @@ var ehrAttendReportRecalcApply = {
|
|
|
1231
1270
|
requiresConfirmation: true,
|
|
1232
1271
|
inputSchema: schemaOf(
|
|
1233
1272
|
{ ...recalcSchema, confirm: { const: true }, continuation: { type: "string", minLength: 1 } },
|
|
1234
|
-
{ required: ["beginDate", "endDate", "confirm", "continuation"] }
|
|
1273
|
+
{ required: ["beginDate", "endDate", "scope", "confirm", "continuation"] }
|
|
1235
1274
|
),
|
|
1236
1275
|
handler: async (args, env) => {
|
|
1237
1276
|
requireConfirm(args, "ehr.attend.report.recalc.apply");
|
|
@@ -1240,8 +1279,13 @@ var ehrAttendReportRecalcApply = {
|
|
|
1240
1279
|
if (payload.beginDate !== args.beginDate || payload.endDate !== args.endDate) {
|
|
1241
1280
|
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
1281
|
}
|
|
1282
|
+
const { scope, onlyEmpIds } = resolveRecalcScope(args);
|
|
1283
|
+
const preparedIds = payload.onlyEmpIds ?? null;
|
|
1284
|
+
const currentIds = onlyEmpIds ?? null;
|
|
1285
|
+
if (payload.scope !== scope || JSON.stringify(preparedIds) !== JSON.stringify(currentIds)) {
|
|
1286
|
+
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");
|
|
1287
|
+
}
|
|
1243
1288
|
const body = { beginDate: args.beginDate, endDate: args.endDate };
|
|
1244
|
-
const onlyEmpIds = toIdList(args.onlyEmpIds, "onlyEmpIds");
|
|
1245
1289
|
if (onlyEmpIds?.length) body.onlyEmpIds = onlyEmpIds;
|
|
1246
1290
|
let response;
|
|
1247
1291
|
try {
|
|
@@ -6599,8 +6643,13 @@ var ehrShortcut = {
|
|
|
6599
6643
|
category: "shortcut",
|
|
6600
6644
|
register({ program, action }) {
|
|
6601
6645
|
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
|
-
|
|
6646
|
+
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) => {
|
|
6647
|
+
const schema = schemaOptionsOf(options);
|
|
6648
|
+
ctx.output.write(manifestView(ehrManifest, schema), {
|
|
6649
|
+
json: true,
|
|
6650
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
6651
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
6652
|
+
});
|
|
6604
6653
|
}));
|
|
6605
6654
|
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
6655
|
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-LU2SPJYY.js";
|
|
9
|
+
import "./chunk-Q3EXRNB4.js";
|
|
10
|
+
import "./chunk-EJLP63UO.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-Q3EXRNB4.js";
|
|
10
|
+
import "./chunk-EJLP63UO.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-GB2MCJPG.js";
|
|
10
10
|
import {
|
|
11
11
|
createEsbHost
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B4NINGP2.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-DRJYPXKC.js";
|
|
29
|
+
import "./chunk-IZCQU5D5.js";
|
|
30
|
+
import "./chunk-SUWR5QEG.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-DRJYPXKC.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-SUWR5QEG.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-FRMDHZSN.js";
|
|
10
|
+
import "./chunk-Q3EXRNB4.js";
|
|
11
|
+
import "./chunk-EJLP63UO.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
createEsbHost,
|
|
7
7
|
isEsbFlowUnavailable,
|
|
8
8
|
triggerResultCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B4NINGP2.js";
|
|
10
10
|
import "./chunk-TXUG266F.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DRJYPXKC.js";
|
|
12
|
+
import "./chunk-IZCQU5D5.js";
|
|
13
|
+
import "./chunk-SUWR5QEG.js";
|
|
14
14
|
import "./chunk-UG5G54VL.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
extractApiBusinessError,
|
|
6
6
|
isAtustRedirect,
|
|
7
7
|
isLoginExpired
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MD5RXRI3.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-DRJYPXKC.js";
|
|
11
|
+
import "./chunk-IZCQU5D5.js";
|
|
12
|
+
import "./chunk-SUWR5QEG.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
15
15
|
export {
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
pickEbuilderDataKey,
|
|
8
8
|
resolveApiPrefix,
|
|
9
9
|
routeEbuilderPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OZ7CJC7W.js";
|
|
11
11
|
import "./chunk-Z3GDFVJR.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DRJYPXKC.js";
|
|
13
|
+
import "./chunk-IZCQU5D5.js";
|
|
14
|
+
import "./chunk-SUWR5QEG.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
17
17
|
export {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
businessMessage,
|
|
5
5
|
createHrmHost,
|
|
6
6
|
isBusinessSuccess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SSS75WXW.js";
|
|
8
8
|
import "./chunk-56EZERK4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-DRJYPXKC.js";
|
|
10
|
+
import "./chunk-IZCQU5D5.js";
|
|
11
|
+
import "./chunk-SUWR5QEG.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-YN5SD4TX.js";
|
|
12
13
|
import "./chunk-P5GQRWDC.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-DRJYPXKC.js";
|
|
15
|
+
import "./chunk-IZCQU5D5.js";
|
|
16
|
+
import "./chunk-SUWR5QEG.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
|
dirname,
|
|
8
8
|
mkdir,
|
|
9
9
|
writeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SKWKCLJX.js";
|
|
11
11
|
import "./chunk-IC62NFM5.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DRJYPXKC.js";
|
|
13
|
+
import "./chunk-IZCQU5D5.js";
|
|
14
|
+
import "./chunk-SUWR5QEG.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-SSS75WXW.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-DRJYPXKC.js";
|
|
26
|
+
import "./chunk-IZCQU5D5.js";
|
|
27
|
+
import "./chunk-SUWR5QEG.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-SKWKCLJX.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-DRJYPXKC.js";
|
|
26
|
+
import "./chunk-IZCQU5D5.js";
|
|
27
|
+
import "./chunk-SUWR5QEG.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-2DNCKZRX.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-DRJYPXKC.js";
|
|
25
|
+
import "./chunk-IZCQU5D5.js";
|
|
26
|
+
import "./chunk-SUWR5QEG.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));
|