weaver-work-cli 0.1.69 → 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-7BEDNQ3O.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-3TZURS7M.js → chunk-EJLP63UO.js} +1 -1
- package/dist/chunks/{chunk-FMAZ42HS.js → chunk-FRMDHZSN.js} +11 -11
- package/dist/chunks/{chunk-MLJK4KLE.js → chunk-G7ZM2VOX.js} +34 -34
- package/dist/chunks/{chunk-LSVA7QA6.js → chunk-GB2MCJPG.js} +3 -1
- package/dist/chunks/{chunk-3CBURKSY.js → chunk-ICNUOWLL.js} +4 -4
- package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
- package/dist/chunks/{chunk-BEYEXCWU.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-67AN5YJT.js → chunk-OFCF23FY.js} +9 -9
- package/dist/chunks/{chunk-ERAE4GHX.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-4XYRTXRR.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-YR3K53BU.js → chunk-VJWVB55R.js} +2 -2
- package/dist/chunks/{chunk-JAIZY37Z.js → chunk-VMVMEIL3.js} +4 -4
- package/dist/chunks/chunk-WM33BSIL.js +136 -0
- package/dist/chunks/{chunk-6DH73Q5H.js → chunk-X2C5CGGM.js} +52 -51
- package/dist/chunks/{chunk-ELF5TPSG.js → chunk-XLSJC6JZ.js} +6 -6
- package/dist/chunks/{chunk-U3OO3IZF.js → chunk-YN5SD4TX.js} +20 -7
- package/dist/chunks/{conflict-VKCRXHUV.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-WYPLBLRK.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-BCJ7RPFC.js → entry-mode-6N2IGCS4.js} +3 -3
- package/dist/chunks/{env-SCVCHBN2.js → env-QYLS3EB3.js} +2 -2
- package/dist/chunks/{esb-GSB5QCEX.js → esb-PTYS3E67.js} +17 -7
- package/dist/chunks/{factory-CBXYOEBF.js → factory-LPFPKZ4T.js} +1 -1
- package/dist/chunks/{fna-XBSNUS2V.js → fna-JNHCLRDE.js} +15 -5
- package/dist/chunks/{group-chat-RFL4U7RF.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-PY2WEBUH.js → jiuchuanhui-PTABJE7V.js} +1294 -1134
- 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-N2AGGLVI.js → meeting-NIDHDBCB.js} +29 -16
- package/dist/chunks/{minute-doc-C62EZOJH.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-GBKM5G2Y.js → performance-3MQ3AHDQ.js} +97 -11
- 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-7US3QQXV.js → registry-3GQRYP2R.js} +12 -12
- package/dist/chunks/{registry-Y2HWS6JS.js → registry-3S7AVMXR.js} +4 -4
- package/dist/chunks/{registry-FTPUUHWC.js → registry-NHHKOEU3.js} +5 -5
- package/dist/chunks/{room-recommend-LMNF76YS.js → room-recommend-IOKBJVYP.js} +4 -4
- package/dist/chunks/{schedule-4QE2THAP.js → schedule-IB6EUARH.js} +4 -4
- package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-N2TK3CEF.js} +19 -6
- package/dist/chunks/{workflow-KXYTQZ2H.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/cache.js +49 -35
- package/dist/shortcuts/jiuchuanhui/host.js +37 -5
- package/dist/shortcuts/jiuchuanhui/index.js +57 -7
- package/dist/shortcuts/jiuchuanhui/manifest.js +38 -1
- package/dist/shortcuts/jiuchuanhui/operations/customer-quick.js +110 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +11 -56
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +9 -16
- package/dist/shortcuts/jiuchuanhui/operations/generic.js +8 -30
- package/dist/shortcuts/jiuchuanhui/operations/registry.js +8 -2
- package/dist/shortcuts/jiuchuanhui/operations/shared.js +0 -10
- 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/operations/flow-detail.js +5 -4
- 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/aiDeepRead/collect.js +5 -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/jiuchuanhui.md +17 -5
- 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 +51 -90
- package/skills/weaver-e10-jiuchuanhui/references/cache.md +17 -13
- package/skills/weaver-e10-jiuchuanhui/references/clue.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +49 -11
- package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +3 -3
- package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +9 -7
- 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 +9 -7
- package/skills/weaver-e10-performance/agents/openai.yaml +4 -2
- package/skills/weaver-e10-performance/references/flow-assess.md +19 -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-workflow/SKILL.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +8 -3
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -3,21 +3,21 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
meetingOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-X2C5CGGM.js";
|
|
7
|
+
import "./chunk-G7ZM2VOX.js";
|
|
8
|
+
import "./chunk-XLSJC6JZ.js";
|
|
9
|
+
import "./chunk-VJWVB55R.js";
|
|
10
10
|
import "./chunk-WMRNO6IU.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-FRMDHZSN.js";
|
|
12
|
+
import "./chunk-LU2SPJYY.js";
|
|
13
|
+
import "./chunk-ICNUOWLL.js";
|
|
14
|
+
import "./chunk-VMVMEIL3.js";
|
|
15
|
+
import "./chunk-OPTJ6IF7.js";
|
|
16
16
|
import {
|
|
17
17
|
degradeMeetingEnvToStandard,
|
|
18
18
|
meetingStateDir,
|
|
19
19
|
readCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Q3EXRNB4.js";
|
|
21
21
|
import {
|
|
22
22
|
MeetingCliError,
|
|
23
23
|
asObject,
|
|
@@ -25,7 +25,12 @@ import {
|
|
|
25
25
|
meetingAuthError,
|
|
26
26
|
meetingNetworkError,
|
|
27
27
|
meetingValidationError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EJLP63UO.js";
|
|
29
|
+
import {
|
|
30
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
31
|
+
manifestView,
|
|
32
|
+
schemaOptionsOf
|
|
33
|
+
} from "./chunk-WM33BSIL.js";
|
|
29
34
|
import {
|
|
30
35
|
reportPlatformError
|
|
31
36
|
} from "./chunk-MD5CW4B6.js";
|
|
@@ -37,13 +42,13 @@ import {
|
|
|
37
42
|
createE10RequestRuntime,
|
|
38
43
|
isE10SessionExpiredResponse,
|
|
39
44
|
requireE10Session
|
|
40
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DRJYPXKC.js";
|
|
41
46
|
import {
|
|
42
47
|
E10_SESSION_EXPIRED_MESSAGE
|
|
43
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-IZCQU5D5.js";
|
|
44
49
|
import {
|
|
45
50
|
getActiveProfile
|
|
46
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SUWR5QEG.js";
|
|
47
52
|
import {
|
|
48
53
|
isCliError,
|
|
49
54
|
toErrorEnvelope
|
|
@@ -675,8 +680,16 @@ var meetingShortcut = {
|
|
|
675
680
|
category: "shortcut",
|
|
676
681
|
register({ program, action }) {
|
|
677
682
|
const meeting = program.command("meeting").description("\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406\uFF08\u6A21\u5F0F\u63A2\u6D4B/\u4F1A\u8BAE\u5217\u8868/\u4F1A\u8BAE\u5BA4/\u7C7B\u578B/\u51B2\u7A81\u68C0\u6D4B/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09");
|
|
678
|
-
meeting.command("schema").description("Print meeting operation manifest for agents").action(action((ctx) => {
|
|
679
|
-
|
|
683
|
+
meeting.command("schema").description("Print meeting 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) => {
|
|
684
|
+
const schema = schemaOptionsOf(options);
|
|
685
|
+
ctx.output.write(
|
|
686
|
+
manifestView(meetingManifest, schema),
|
|
687
|
+
{
|
|
688
|
+
json: true,
|
|
689
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
690
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
691
|
+
}
|
|
692
|
+
);
|
|
680
693
|
}));
|
|
681
694
|
meeting.command("ops").description('\u5217\u51FA\u5168\u90E8\u4F1A\u8BAE operation\uFF08\u7EAF\u6587\u672C\u4E0D\u538B\u7F29\uFF09\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u80FD\u529B"\u7528\u8FD9\u4E2A\uFF0C\u4E0D\u8981\u7528 schema').option("--grep <keyword>", "\u53EA\u770B\u540D\u5B57\u6216\u6458\u8981\u547D\u4E2D\u5173\u952E\u8BCD\u7684\uFF08\u4E0D\u533A\u5206\u5927\u5C0F\u5199\uFF09").option("--capability <name>", "\u53EA\u770B\u67D0\u4E2A\u80FD\u529B\u5206\u7EC4\uFF0C\u5982 eb / meeting / room / conflict / sign").option("--json", "JSON \u8F93\u51FA\uFF08\u6CE8\u610F\uFF1AJSON \u8D70\u4FE1\u5C01\u538B\u7F29\uFF0C\u6761\u76EE\u591A\u65F6\u4F1A\u88AB\u622A\u65AD\uFF0C\u67E5\u5168\u91CF\u8BF7\u7528\u6587\u672C\uFF09").action(action((ctx, ...rest) => {
|
|
682
695
|
const options = rest.find((item) => item && typeof item === "object" && typeof item.opts !== "function") ?? {};
|
|
@@ -65,8 +65,8 @@ async function ensureMinuteDoc(env, input) {
|
|
|
65
65
|
const id = String(input.id ?? "").trim();
|
|
66
66
|
const mtId = String(input.mtId ?? "").trim();
|
|
67
67
|
if (!id || !mtId) return null;
|
|
68
|
-
const { getMeetingOperation } = await import("./registry-
|
|
69
|
-
const { meetingStateDir } = await import("./env-
|
|
68
|
+
const { getMeetingOperation } = await import("./registry-3GQRYP2R.js");
|
|
69
|
+
const { meetingStateDir } = await import("./env-QYLS3EB3.js");
|
|
70
70
|
const { mkdir, writeFile } = await import("node:fs/promises");
|
|
71
71
|
const { join } = await import("node:path");
|
|
72
72
|
const subject = String(input.subject ?? "").trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
|
|
@@ -89,8 +89,8 @@ async function ensureMinuteDoc(env, input) {
|
|
|
89
89
|
let docId = "";
|
|
90
90
|
let docError = "";
|
|
91
91
|
try {
|
|
92
|
-
const { executeCaizhilianOperation } = await import("./operations-
|
|
93
|
-
const { createCaizhilianHost } = await import("./host-
|
|
92
|
+
const { executeCaizhilianOperation } = await import("./operations-MQV32ITT.js");
|
|
93
|
+
const { createCaizhilianHost } = await import("./host-NS36QFLR.js");
|
|
94
94
|
const { createCaizhilianContinuationSigner } = await import("./continuation-GW6PRWK3.js");
|
|
95
95
|
const caizhilianEnv = {
|
|
96
96
|
ctx: env.ctx,
|
|
@@ -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,
|
|
@@ -2461,8 +2466,13 @@ var okrShortcut = {
|
|
|
2461
2466
|
category: "shortcut",
|
|
2462
2467
|
register({ program, action }) {
|
|
2463
2468
|
const okr = program.command("okr").description("\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406\uFF08\u76EE\u6807\u5217\u8868/\u8BE6\u60C5/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\u3001\u94FE\u8DEF\u5224\u5B9A\uFF09");
|
|
2464
|
-
okr.command("schema").description("Print okr operation manifest for agents").action(action((ctx) => {
|
|
2465
|
-
|
|
2469
|
+
okr.command("schema").description("Print okr 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) => {
|
|
2470
|
+
const schema = schemaOptionsOf(options);
|
|
2471
|
+
ctx.output.write(manifestView(okrManifest, schema), {
|
|
2472
|
+
json: true,
|
|
2473
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
2474
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
2475
|
+
});
|
|
2466
2476
|
}));
|
|
2467
2477
|
okr.command("run").description("Run an okr operation with JSON input").argument("<operation>", "operation name, e.g. okr.list").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
2468
2478
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executeEbuilderFormOperation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-35A56FJ7.js";
|
|
6
6
|
import "./chunk-Z3GDFVJR.js";
|
|
7
7
|
import "./chunk-7BDPM5ST.js";
|
|
8
8
|
import "./chunk-UG5G54VL.js";
|
|
@@ -2,13 +2,13 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executeCaizhilianOperation
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-P3AFNAJ6.js";
|
|
6
|
+
import "./chunk-YN5SD4TX.js";
|
|
7
7
|
import "./chunk-P5GQRWDC.js";
|
|
8
8
|
import "./chunk-7BDPM5ST.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 {
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
createE10RequestRuntime,
|
|
9
9
|
isE10SessionExpiredResponse,
|
|
10
10
|
requireE10Session
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DRJYPXKC.js";
|
|
12
12
|
import {
|
|
13
13
|
E10_SESSION_EXPIRED_MESSAGE
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IZCQU5D5.js";
|
|
15
15
|
import {
|
|
16
16
|
getActiveProfile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SUWR5QEG.js";
|
|
18
18
|
import {
|
|
19
19
|
CliError,
|
|
20
20
|
isCliError,
|
|
@@ -311,6 +311,29 @@ var stepFields = {
|
|
|
311
311
|
interviewOrder: { type: ["string", "null"] },
|
|
312
312
|
stepOperators: objectItems({ operateType: stringField, operater: { type: ["integer", "string", "null"] } })
|
|
313
313
|
};
|
|
314
|
+
var remindContentItem = {
|
|
315
|
+
type: "object",
|
|
316
|
+
additionalProperties: true,
|
|
317
|
+
properties: {
|
|
318
|
+
id: { type: ["string", "null"], description: "\u5185\u5BB9\u8BB0\u5F55 id\uFF08\u670D\u52A1\u7AEF\u751F\u6210\uFF0C\u56DE\u4F20\u65F6\u539F\u6837\u5E26\u4E0A\uFF09" },
|
|
319
|
+
langId: { type: "integer", description: "\u8BED\u8A00 id\uFF08\u4E2D\u6587=7\uFF09" },
|
|
320
|
+
value: { type: "string", description: "\u63D0\u9192\u5185\u5BB9\u6587\u6848\uFF0C\u53EF\u542B {\u5B57\u6BB5} \u5360\u4F4D\u7B26" },
|
|
321
|
+
targetId: { type: ["string", "null"], description: "\u5185\u5BB9\u6A21\u677F id\uFF0C\u5B57\u7B26\u4E32\u5F62\u5F0F" }
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
var remindSettingItem = {
|
|
325
|
+
type: "object",
|
|
326
|
+
additionalProperties: true,
|
|
327
|
+
properties: {
|
|
328
|
+
remindEventName: { type: "string", description: "\u63D0\u9192\u4E8B\u4EF6\u540D\u3002\u666E\u901A\u63D0\u9192\uFF1AschemeSubmitRemind/schemeBackRemind/distributeDiscontRemind/distributeFileRemind/commitRemind/auditRemind/complateRemind/startFlowRemind/flowBackedRemind/flowBackRemind/commitedRemind/flowApprovedRemind\uFF1B\u5B9A\u65F6\u63D0\u9192\uFF1AscoreEndRemind/approveEndRemind/scoreOverTimeRemind/approveOverTimeRemind/appealsOverTimeRemind" },
|
|
329
|
+
remindTarget: { type: "string", description: "\u63D0\u9192\u5BF9\u8C61\uFF1Aapprover \u5BA1\u6279\u4EBA / submiter \u63D0\u4EA4\u4EBA / distributionManager \u5206\u5E03\u8D1F\u8D23\u4EBA / scorer \u8BC4\u5206\u4EBA / kpiUser \u88AB\u8BC4\u5206\u4EBA / appealsManager \u7533\u8BC9\u5904\u7406\u4EBA\u3002\u7531\u4E8B\u4EF6\u51B3\u5B9A\uFF0C\u6309\u670D\u52A1\u7AEF\u9ED8\u8BA4\u503C\u539F\u6837\u5E26\u56DE\uFF0C\u4E0D\u8981\u81EA\u9020" },
|
|
330
|
+
remindStatus: { type: "boolean", description: "\u662F\u5426\u542F\u7528" },
|
|
331
|
+
remindDay: { type: "integer", description: "\u622A\u6B62\u65E5\u671F\u524D N \u5929\uFF08\u4EC5\u5B9A\u65F6\u63D0\u9192\u9700\u8981\uFF1B\u666E\u901A\u63D0\u9192\u586B 0\uFF09" },
|
|
332
|
+
remindTime: { type: "string", description: '\u63D0\u9192\u65F6\u523B HH:mm\uFF0C\u5982 "08:00"\uFF08\u4EC5\u5B9A\u65F6\u63D0\u9192\u9700\u8981\uFF09' },
|
|
333
|
+
timeRule: { type: "string", enum: ["serverTime", "localTime"], description: "\u65F6\u95F4\u57FA\u51C6\uFF1AserverTime \u6309\u670D\u52A1\u5668\u65F6\u95F4 / localTime \u6309\u5F53\u5730\u65F6\u95F4\u3002\u771F\u673A\u56DE\u8BFB\u62A5\u6587\u901A\u5E38\u4E0D\u542B\u8BE5\u5B57\u6BB5\uFF08\u7F3A\u7701\u6309 serverTime\uFF09\uFF0C\u539F\u6837\u5E26\u56DE\u65F6\u4E0D\u5FC5\u8865\u5199" },
|
|
334
|
+
remindContentData: { type: "array", items: remindContentItem, description: "\u591A\u8BED\u8A00\u63D0\u9192\u5185\u5BB9" }
|
|
335
|
+
}
|
|
336
|
+
};
|
|
314
337
|
var schemeEditReqSchema = {
|
|
315
338
|
id: { type: "string", description: "\u65B9\u6848 id\uFF0C\u5B57\u7B26\u4E32\u5F62\u5F0F\uFF0818 \u4F4D Long \u8F6C JSON \u6570\u5B57\u4F1A\u4E22\u7CBE\u5EA6\uFF09\u3002\u9996\u6B21\u6682\u5B58\u4E0D\u4F20\uFF1B\u518D\u6B21\u6682\u5B58/\u53D1\u5E03\u5FC5\u4F20\uFF08\u8986\u76D6\u5F0F\u66F4\u65B0\uFF09" },
|
|
316
339
|
detailId: { type: "string", description: "\u6307\u6807\u660E\u7EC6 id\uFF0C\u5B57\u7B26\u4E32\u5F62\u5F0F\uFF08\u53D1\u5E03\u65F6\u5FC5\u4F20\uFF1B\u7F3A\u5931\u4F1A\u5BFC\u81F4 hr_kpi_details \u91CD\u590D\u63D2\u5165\u3001detail \u6C38\u4E45 500\uFF09" },
|
|
@@ -384,8 +407,16 @@ var schemeEditReqSchema = {
|
|
|
384
407
|
createMode: stringField,
|
|
385
408
|
fieldFilters: { type: "array", items: { type: "object", additionalProperties: true } },
|
|
386
409
|
operatingTargetList: { type: "array", items: { type: "object", additionalProperties: true } },
|
|
387
|
-
remindOrdinaryData: {
|
|
388
|
-
|
|
410
|
+
remindOrdinaryData: {
|
|
411
|
+
type: "array",
|
|
412
|
+
items: remindSettingItem,
|
|
413
|
+
description: '\u666E\u901A\uFF08\u4E8B\u4EF6\u578B\uFF09\u63D0\u9192\u914D\u7F6E\u3002\u26A0\uFE0F \u5FC5\u987B\u4E0E remindTimeData \u540C\u65F6\u975E\u7A7A\uFF1A\u670D\u52A1\u7AEF\u4EFB\u4E00\u4E3A\u7A7A\u5219\u6574\u5757\u63D0\u9192\u8BBE\u7F6E\u4E0D\u843D\u5E93\u3002\u9996\u9009\u505A\u6CD5\u662F\u4ECE scheme.detail \u7684 data \u56DE\u8BFB\u540E\uFF0C\u53EA\u6539 remindStatus/remindDay/remindTime \u518D\u539F\u6837\u5E26\u56DE\uFF0C\u4E0D\u8981\u51ED\u7A7A\u6784\u9020\uFF1B\u56DE\u8BFB\u8BB0\u5F55\u8FD8\u5E26 id/creator/tenantKey/createTime/deleteType/schemeId \u7B49\u670D\u52A1\u7AEF\u5B57\u6BB5\uFF0C\u539F\u6837\u5E26\u56DE\u5373\u53EF\uFF0C\u666E\u901A\u63D0\u9192\u56DE\u8BFB\u4E0D\u542B remindTime \u952E\u3002\u793A\u4F8B\uFF1A[{"remindEventName":"commitRemind","remindTarget":"scorer","remindStatus":true,"remindDay":0,"timeRule":"serverTime","remindContentData":[{"langId":7,"value":"\u60A8\u6709\u8003\u6838\u8BC4\u5206\u5F85\u63D0\u4EA4"}]}]'
|
|
414
|
+
},
|
|
415
|
+
remindTimeData: {
|
|
416
|
+
type: "array",
|
|
417
|
+
items: remindSettingItem,
|
|
418
|
+
description: '\u5B9A\u65F6\uFF08\u622A\u6B62/\u8D85\u65F6\uFF09\u63D0\u9192\u914D\u7F6E\u3002\u26A0\uFE0F \u5FC5\u987B\u4E0E remindOrdinaryData \u540C\u65F6\u975E\u7A7A\uFF1B\u5B9A\u65F6\u63D0\u9192\u9700 remindDay + remindTime\uFF08\u771F\u673A\u62A5\u6587\u5F62\u5982 "08:00"\uFF09\u3002\u56DE\u8BFB\u8BB0\u5F55\u8FD8\u5E26 id/creator/tenantKey/createTime/deleteType/schemeId \u7B49\u670D\u52A1\u7AEF\u5B57\u6BB5\uFF0C\u539F\u6837\u5E26\u56DE\u5373\u53EF\u3002\u793A\u4F8B\uFF1A[{"remindEventName":"scoreEndRemind","remindTarget":"scorer","remindStatus":true,"remindDay":3,"remindTime":"08:00","timeRule":"serverTime","remindContentData":[{"langId":7,"value":"\u8BC4\u5206\u5C06\u4E8E 3 \u5929\u540E\u622A\u6B62"}]}]'
|
|
419
|
+
},
|
|
389
420
|
teffectTime: { type: "string", description: "\u751F\u6548\u65E5\u671F yyyy-MM-dd\uFF08\u6587\u6863\u672A\u63D0\u53CA\u65F6\u9ED8\u8BA4\u5F53\u5929\uFF09" },
|
|
390
421
|
failureTime: { type: "string", description: "\u5931\u6548\u65E5\u671F yyyy-MM-dd\uFF08\u53EF\u9009\uFF09" },
|
|
391
422
|
dateTypeSet: { type: "string", enum: ["setting", "custom"], description: "\u81EA\u52A8\u65F6\u95F4\u9879\u6A21\u5F0F\uFF1B\u586B distributeTime/forbidTime \u65F6\u5E94\u4E3A custom" },
|
|
@@ -546,6 +577,11 @@ function validateScheme(req) {
|
|
|
546
577
|
if (req.includeInterviewItem === true && (!Array.isArray(req.interviewStepList) || req.interviewStepList.length === 0)) {
|
|
547
578
|
issues.push({ level: "error", message: "includeInterviewItem=true \u65F6 interviewStepList \u81F3\u5C11\u4E00\u4E2A\u8282\u70B9" });
|
|
548
579
|
}
|
|
580
|
+
const hasRemindOrdinary = Array.isArray(req.remindOrdinaryData) && req.remindOrdinaryData.length > 0;
|
|
581
|
+
const hasRemindTime = Array.isArray(req.remindTimeData) && req.remindTimeData.length > 0;
|
|
582
|
+
if (hasRemindOrdinary !== hasRemindTime) {
|
|
583
|
+
issues.push({ level: "warn", message: "remindOrdinaryData \u4E0E remindTimeData \u5FC5\u987B\u540C\u65F6\u975E\u7A7A\uFF1A\u670D\u52A1\u7AEF\u4EFB\u4E00\u4E3A\u7A7A\u5219\u6574\u5757\u63D0\u9192\u8BBE\u7F6E\u4E0D\u843D\u5E93\uFF08\u5F53\u524D\u53EA\u586B\u4E86\u4E00\u4E2A\uFF0C\u81EA\u5B9A\u4E49\u63D0\u9192\u4E0D\u4F1A\u751F\u6548\uFF09" });
|
|
584
|
+
}
|
|
549
585
|
const basicData = Array.isArray(req.basicData) ? req.basicData : [];
|
|
550
586
|
const weights = basicData.map((row) => num(row?.weight)).filter((w) => w !== null);
|
|
551
587
|
if (basicData.length && weights.length === basicData.length) {
|
|
@@ -1703,10 +1739,11 @@ async function assess(args, env) {
|
|
|
1703
1739
|
return pfSuccess("performance.flow.assess", {
|
|
1704
1740
|
...context,
|
|
1705
1741
|
scoringHints: [
|
|
1706
|
-
"\
|
|
1707
|
-
"\
|
|
1708
|
-
"\
|
|
1709
|
-
"\
|
|
1742
|
+
"\u8BC4\u5206\u5FC5\u987B\u7531 AI \u81EA\u5DF1\u7ED9\u51FA\uFF1A\u7981\u6B62\u5411\u7528\u6237\u8BE2\u95EE\u300C\u8FD9\u9879\u8BE5\u6253\u591A\u5C11\u5206\u300D",
|
|
1743
|
+
"\u4F9D\u636E\u4F18\u5148\u7EA7\uFF1A\u2460\u6307\u6807\u63CF\u8FF0/\u7B49\u7EA7\u6807\u51C6 \u2461\u5B9A\u91CF(\u76EE\u6807\u503C+\u5B9E\u9645\u503C)\u2192\u8FBE\u6210\u7387\u6620\u5C04 \u2462\u5B9E\u9645\u503C\u7F3A\u5931\u6216\u53D6\u6570\u5931\u8D25\u2192\u66FF\u4EE3\u8BC1\u636E\uFF0C\u4ECD\u65E0\u5219\u4E2D\u6027\u9884\u8BC4 \u2463\u5B9A\u6027\u65E0\u91CF\u5316\u2192\u4E13\u4E1A\u5224\u65AD\uFF0C\u65E0\u65C1\u8BC1\u5219\u4E2D\u6027\u9884\u8BC4",
|
|
1744
|
+
"\u4E2D\u6027\u9884\u8BC4 = \u6EE1\u5206\xD770%\uFF08\u56DB\u820D\u4E94\u5165 0.01\uFF09\uFF0C\u7406\u7531\u91CC\u5FC5\u987B\u6CE8\u660E\u300C\u6309\u4E2D\u6027\u6C34\u5E73\u9884\u8BC4\u300D\uFF0C\u7528\u6237\u53EF\u5728\u8BE6\u60C5\u9875\u8C03\u6574",
|
|
1745
|
+
"\u6570\u636E\u6E90 error \u5B57\u6BB5\u975E\u7A7A\u7684\u6307\u6807\u7167\u5E38\u7ED9\u5206\u5E76\u5728\u7406\u7531\u6CE8\u660E\u300C\u53D6\u6570\u5931\u8D25\u300D\uFF0C\u4E0D\u5F97\u8DF3\u8FC7\u8BE5\u884C\u6216\u7559\u7A7A",
|
|
1746
|
+
"\u4E0D\u5F97\u7F16\u9020\u5B9E\u9645\u503C\uFF1B\u8BC4\u5206\u4E0A\u9650\u4E3A\u6EE1\u5206\uFF08maxScore\uFF09\uFF0C\u8D85\u51FA\u4F1A\u88AB\u62D2\u7EDD\uFF0C\u4E0D\u505A\u9759\u9ED8\u622A\u65AD"
|
|
1710
1747
|
]
|
|
1711
1748
|
});
|
|
1712
1749
|
}
|
|
@@ -2131,14 +2168,63 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
2131
2168
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2132
2169
|
}
|
|
2133
2170
|
}
|
|
2171
|
+
function performanceManifestIndex() {
|
|
2172
|
+
return {
|
|
2173
|
+
schemaVersion: performanceManifest.schemaVersion,
|
|
2174
|
+
name: performanceManifest.name,
|
|
2175
|
+
title: performanceManifest.title,
|
|
2176
|
+
version: performanceManifest.version,
|
|
2177
|
+
host: performanceManifest.host,
|
|
2178
|
+
status: performanceManifest.status,
|
|
2179
|
+
sourceSkill: performanceManifest.sourceSkill,
|
|
2180
|
+
capabilities: performanceManifest.capabilities,
|
|
2181
|
+
operationCount: performanceManifest.operations.length,
|
|
2182
|
+
operations: performanceManifest.operations.map((operation) => {
|
|
2183
|
+
const schema = operation.inputSchema;
|
|
2184
|
+
return {
|
|
2185
|
+
name: operation.name,
|
|
2186
|
+
resource: operation.resource,
|
|
2187
|
+
summary: operation.summary,
|
|
2188
|
+
...operation.capability ? { capability: operation.capability } : {},
|
|
2189
|
+
risk: operation.risk,
|
|
2190
|
+
...operation.requiresConfirmation ? { requiresConfirmation: true } : {},
|
|
2191
|
+
required: schema.required ?? [],
|
|
2192
|
+
propertyCount: Object.keys(schema.properties ?? {}).length
|
|
2193
|
+
};
|
|
2194
|
+
}),
|
|
2195
|
+
withheldOperations: performanceManifest.withheldOperations,
|
|
2196
|
+
operationsHint: "\u9ED8\u8BA4\u53EA\u5217 operation \u4E0E\u5FC5\u9700\u5B57\u6BB5\uFF1B\u5B57\u6BB5\u7C7B\u578B/\u679A\u4E3E/\u793A\u4F8B\u7528 `performance schema --operation <name>` \u5355\u53D6\uFF0C\u6574\u4EFD manifest \u7528 `performance schema --full`\uFF08\u7EA6 129 KB\uFF0C\u8D85\u9884\u7B97\u4F1A\u843D ref\uFF09\u3002"
|
|
2197
|
+
};
|
|
2198
|
+
}
|
|
2199
|
+
function findPerformanceOperationContract(name) {
|
|
2200
|
+
const full = name.startsWith("performance.") ? name : `performance.${name}`;
|
|
2201
|
+
const matched = performanceManifest.operations.find((operation) => operation.name === full);
|
|
2202
|
+
if (!matched) {
|
|
2203
|
+
throw pfValidationError("operation_unknown", `\u7EE9\u6548\u6A21\u5757\u4E0D\u652F\u6301\u64CD\u4F5C\uFF1A${name}\u3002\u53EF\u7528\u64CD\u4F5C\u89C1 performance schema \u7D22\u5F15`);
|
|
2204
|
+
}
|
|
2205
|
+
return matched;
|
|
2206
|
+
}
|
|
2134
2207
|
var performanceShortcut = {
|
|
2135
2208
|
name: "performance",
|
|
2136
2209
|
description: "\u6CDB\u5FAEE10\u7EE9\u6548\u65B9\u6848\uFF08\u6587\u6863\u5BFC\u5165 \u2192 \u8349\u7A3F \u2192 \u786E\u8BA4\u53D1\u5E03\uFF09CLI",
|
|
2137
2210
|
category: "shortcut",
|
|
2138
2211
|
register({ program, action }) {
|
|
2139
2212
|
const pf = program.command("performance").description("\u6CDB\u5FAEE10\u7EE9\u6548\u65B9\u6848\uFF08\u5B9E\u4F53\u89E3\u6790/\u843D\u8349\u7A3F/\u56DE\u8BFB\u6838\u5BF9/\u786E\u8BA4\u53D1\u5E03\uFF09");
|
|
2140
|
-
pf.command("schema").description("Print performance operation
|
|
2141
|
-
|
|
2213
|
+
pf.command("schema").description("Print performance operation index for agents").option("--list", "\u53EA\u5217\u64CD\u4F5C\u7D22\u5F15\uFF08name/summary/risk\uFF09\uFF0C\u4E0E\u9ED8\u8BA4\u8F93\u51FA\u4E00\u81F4\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD").option("--operation <name>", "print one operation with its full inputSchema").option("--full", "print the whole manifest (about 129 KB; stdout may be trimmed to a ref)").action(action((ctx, options) => {
|
|
2214
|
+
const opts = asOptions(options);
|
|
2215
|
+
const requested = String(opts.operation ?? "").trim();
|
|
2216
|
+
if (requested && opts.full === true) {
|
|
2217
|
+
throw pfValidationError("option_conflict", "\u4E0D\u80FD\u540C\u65F6\u4F20 --operation \u548C --full");
|
|
2218
|
+
}
|
|
2219
|
+
if (opts.full === true) {
|
|
2220
|
+
ctx.output.write(performanceManifest, { json: true });
|
|
2221
|
+
return;
|
|
2222
|
+
}
|
|
2223
|
+
if (requested) {
|
|
2224
|
+
ctx.output.write(findPerformanceOperationContract(requested), { json: true });
|
|
2225
|
+
return;
|
|
2226
|
+
}
|
|
2227
|
+
ctx.output.write(performanceManifestIndex(), { json: true });
|
|
2142
2228
|
}));
|
|
2143
2229
|
pf.command("run").description("Run a performance operation with JSON input").argument("<operation>", "operation name, e.g. performance.scheme.draft.prepare").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
2144
2230
|
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,
|
|
@@ -1999,8 +2004,13 @@ var planShortcut = {
|
|
|
1999
2004
|
category: "shortcut",
|
|
2000
2005
|
register({ program, action }) {
|
|
2001
2006
|
const plan = program.command("plan").description("\u6CDB\u5FAEE10\u8BA1\u5212\u62A5\u544A\uFF08\u62A5\u544A\u8BE6\u60C5/\u5217\u8868/\u65B0\u5EFA/\u4FEE\u6539/\u53D1\u5E03/\u64A4\u56DE/\u63D0\u4EA4\u63D0\u9192/\u8BC4\u8BBA\uFF09");
|
|
2002
|
-
plan.command("schema").description("Print plan operation manifest for agents").action(action((ctx) => {
|
|
2003
|
-
|
|
2007
|
+
plan.command("schema").description("Print plan 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) => {
|
|
2008
|
+
const schema = schemaOptionsOf(options);
|
|
2009
|
+
ctx.output.write(manifestView(planManifest, schema), {
|
|
2010
|
+
json: true,
|
|
2011
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
2012
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
2013
|
+
});
|
|
2004
2014
|
}));
|
|
2005
2015
|
plan.command("run").description("Run a plan operation with JSON input").argument("<operation>", "operation name, e.g. plan.report.get").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
2006
2016
|
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";
|
|
@@ -11,13 +16,13 @@ import {
|
|
|
11
16
|
createE10RequestRuntime,
|
|
12
17
|
isE10SessionExpiredResponse,
|
|
13
18
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DRJYPXKC.js";
|
|
15
20
|
import {
|
|
16
21
|
E10_SESSION_EXPIRED_MESSAGE
|
|
17
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IZCQU5D5.js";
|
|
18
23
|
import {
|
|
19
24
|
getActiveProfile
|
|
20
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SUWR5QEG.js";
|
|
21
26
|
import {
|
|
22
27
|
CliError,
|
|
23
28
|
isCliError,
|
|
@@ -1035,6 +1040,7 @@ function createOperations(namePrefix, target) {
|
|
|
1035
1040
|
action: prepareName,
|
|
1036
1041
|
summary: `\u9884\u89C8\u5E76\u751F\u6210${target.entity === "task" ? "\u4EFB\u52A1" : "\u9879\u76EE"}\u521B\u5EFA\u5199\u5165 continuation\uFF0C\u4E0D\u53D1\u751F\u5199\u5165`,
|
|
1037
1042
|
risk: "read-before-write",
|
|
1043
|
+
requiresConfirmation: true,
|
|
1038
1044
|
inputSchema: schemaOf({ records: SCHEMA_RECORDS }, { required: ["records"] }),
|
|
1039
1045
|
handler: async (args, env) => {
|
|
1040
1046
|
const operator = await operatorId(env.host);
|
|
@@ -1092,6 +1098,7 @@ function updateOperations(namePrefix, target) {
|
|
|
1092
1098
|
action: prepareName,
|
|
1093
1099
|
summary: `\u56DE\u67E5\u5E76\u9884\u89C8${target.entity === "task" ? "\u4EFB\u52A1" : "\u9879\u76EE"}\u66F4\u65B0\uFF0C\u751F\u6210 continuation\uFF0C\u4E0D\u53D1\u751F\u5199\u5165`,
|
|
1094
1100
|
risk: "read-before-write",
|
|
1101
|
+
requiresConfirmation: true,
|
|
1095
1102
|
inputSchema: schemaOf({ id: SCHEMA_ID_STRING, fields: SCHEMA_FIELDS }, { required: ["id", "fields"] }),
|
|
1096
1103
|
handler: async (args, env) => {
|
|
1097
1104
|
const id = idString(args.id, "id");
|
|
@@ -1160,6 +1167,7 @@ function deleteOperations(namePrefix, target) {
|
|
|
1160
1167
|
action: prepareName,
|
|
1161
1168
|
summary: `\u56DE\u67E5${target.entity === "task" ? "\u4EFB\u52A1" : "\u9879\u76EE"}\u5E76\u751F\u6210\u4E0D\u53EF\u9006\u5220\u9664 continuation\uFF0C\u4E0D\u53D1\u751F\u5220\u9664`,
|
|
1162
1169
|
risk: "read-before-write",
|
|
1170
|
+
requiresConfirmation: true,
|
|
1163
1171
|
inputSchema: schemaOf({ id: SCHEMA_ID_STRING }, { required: ["id"] }),
|
|
1164
1172
|
handler: async (args, env) => {
|
|
1165
1173
|
const id = idString(args.id, "id");
|
|
@@ -1374,8 +1382,13 @@ var projectShortcut = {
|
|
|
1374
1382
|
category: "shortcut",
|
|
1375
1383
|
register({ program, action }) {
|
|
1376
1384
|
const project = program.command("project").description("\u6CDB\u5FAEE10\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406\uFF08\u9879\u76EE/\u4EFB\u52A1\u67E5\u8BE2\u4E0E\u786E\u8BA4\u5199\u5165\uFF09");
|
|
1377
|
-
project.command("schema").description("Print project operation manifest for agents").action(action((ctx) => {
|
|
1378
|
-
|
|
1385
|
+
project.command("schema").description("Print project 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) => {
|
|
1386
|
+
const schema = schemaOptionsOf(options);
|
|
1387
|
+
ctx.output.write(manifestView(projectManifest, schema), {
|
|
1388
|
+
json: true,
|
|
1389
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
1390
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
1391
|
+
});
|
|
1379
1392
|
}));
|
|
1380
1393
|
project.command("run").description("Run a project operation with JSON input").argument("<operation>", "operation name, e.g. project.task.list").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
1381
1394
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -3,16 +3,21 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
stateRoot
|
|
5
5
|
} from "./chunk-AJ62BGAW.js";
|
|
6
|
+
import {
|
|
7
|
+
MANIFEST_LIST_COMPACT_PATHS,
|
|
8
|
+
manifestView,
|
|
9
|
+
schemaOptionsOf
|
|
10
|
+
} from "./chunk-WM33BSIL.js";
|
|
6
11
|
import {
|
|
7
12
|
E10ApiError,
|
|
8
13
|
createE10RequestRuntime,
|
|
9
14
|
getE10Session,
|
|
10
15
|
requireE10Session
|
|
11
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DRJYPXKC.js";
|
|
12
17
|
import {
|
|
13
18
|
E10_AUTH_REQUIRED_MESSAGE
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-IZCQU5D5.js";
|
|
20
|
+
import "./chunk-SUWR5QEG.js";
|
|
16
21
|
import {
|
|
17
22
|
CliError,
|
|
18
23
|
isCliError,
|
|
@@ -2319,8 +2324,8 @@ var receptionOperationNames = [...REGISTRY.keys()];
|
|
|
2319
2324
|
var receptionOperations = [
|
|
2320
2325
|
{
|
|
2321
2326
|
name: "reception.ask",
|
|
2322
|
-
risk: "read",
|
|
2323
|
-
summary: "\u6309 7 \u9879\u62BD\u53D6\u7ED3\u679C\u51FA\u4EA4\u4E92\u9762\u677F\uFF1A\u5BA2\u6237\u9700\u6C42\uFF08\u5DF2\u660E\u786E\u5219\u8DF3\u8FC7\uFF09+ \u63A5\u5F85\u7EC6\u8282\uFF08\u5E38\u9A7B\uFF09+ \u662F\u5426\u4F1A\u8BAE\uFF08\u5FC5\u95EE\uFF0C\u539F\u8BDD\u660E\u786E\u63D0\u53CA\u4F1A\u8BAE\u5BA4\u624D\u8DF3\u8FC7\uFF09\u3002\u8FD4\u56DE runId \u4F9B doc \u4F7F\u7528\u3002",
|
|
2327
|
+
risk: "read-with-side-effect",
|
|
2328
|
+
summary: "\u6309 7 \u9879\u62BD\u53D6\u7ED3\u679C\u51FA\u4EA4\u4E92\u9762\u677F\uFF1A\u5BA2\u6237\u9700\u6C42\uFF08\u5DF2\u660E\u786E\u5219\u8DF3\u8FC7\uFF09+ \u63A5\u5F85\u7EC6\u8282\uFF08\u5E38\u9A7B\uFF09+ \u662F\u5426\u4F1A\u8BAE\uFF08\u5FC5\u95EE\uFF0C\u539F\u8BDD\u660E\u786E\u63D0\u53CA\u4F1A\u8BAE\u5BA4\u624D\u8DF3\u8FC7\uFF09\u3002\u8FD4\u56DE runId \u4F9B doc \u4F7F\u7528\uFF1B\u6BCF\u6B21\u8C03\u7528\u4F1A\u5728\u672C\u5730\u65B0\u5EFA\u4E00\u4EFD run \u8BB0\u5F55\uFF08\u65E0\u670D\u52A1\u7AEF\u5199\u5165\uFF09\uFF0C\u4E0D\u8981\u5F53\u7EAF\u8BFB\u53D6\u53CD\u590D\u91CD\u8BD5\u3002",
|
|
2324
2329
|
inputSchema: {
|
|
2325
2330
|
type: "object",
|
|
2326
2331
|
additionalProperties: false,
|
|
@@ -2627,8 +2632,13 @@ var receptionShortcut = {
|
|
|
2627
2632
|
register({ program, action }) {
|
|
2628
2633
|
assertManifestMatchesRegistry();
|
|
2629
2634
|
const reception = program.command("reception").description("\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B\uFF1A\u51FA\u9762\u677F \u2192 \u51FA\u4E24\u4EFD\u4EA7\u7269\u5E76\u6302\u9644\u4EF6 \u2192 \u8F93\u51FA\u586B\u5355\u9875 browsertool");
|
|
2630
|
-
reception.command("schema").description("\u8F93\u51FA operation \u5408\u7EA6\uFF08Agent \u81EA\u67E5\u5165\u53E3\uFF09").action(action((ctx) => {
|
|
2631
|
-
|
|
2635
|
+
reception.command("schema").description("\u8F93\u51FA operation \u5408\u7EA6\uFF08Agent \u81EA\u67E5\u5165\u53E3\uFF09").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) => {
|
|
2636
|
+
const schema = schemaOptionsOf(options);
|
|
2637
|
+
ctx.output.write(manifestView(receptionManifest, schema), {
|
|
2638
|
+
json: true,
|
|
2639
|
+
// 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
|
|
2640
|
+
...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
|
|
2641
|
+
});
|
|
2632
2642
|
}));
|
|
2633
2643
|
reception.command("run").description("\u6309 operation \u540D\u6267\u884C\uFF08reception.ask / reception.doc / reception.render\uFF09").argument("<operation>", "operation \u540D\uFF0C\u5982 reception.ask").option("--input <path>", "JSON \u5165\u53C2\u6587\u4EF6\uFF0C- \u8868\u793A stdin").option("--input-json <json>", "\u5185\u8054 JSON \u5165\u53C2").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").action(action(async (ctx, operation, options) => {
|
|
2634
2644
|
const opts = asOptions(options);
|