weaver-work-cli 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/chunks/{archive-UMGX72K6.js → archive-FVFY6GZN.js} +2 -2
- package/dist/chunks/{archive-oa-N2IYBLF3.js → archive-oa-NW3OD4UV.js} +2 -2
- package/dist/chunks/{asset-GLEGKFG5.js → asset-7QJKMIDV.js} +2 -2
- package/dist/chunks/{attachment-content-AQNX5N3S.js → attachment-content-OSAVA6K3.js} +3 -2
- package/dist/chunks/{blog-E44OTVDA.js → blog-I7SDPNW4.js} +2 -2
- package/dist/chunks/{caizhilian-DQUFZXZL.js → caizhilian-O37ZIQNY.js} +2 -2
- package/dist/chunks/{calendar-JKPIRKFD.js → calendar-7KXE4ED3.js} +2 -2
- package/dist/chunks/{chunk-4YC43QQ4.js → chunk-2FLWXFVS.js} +4 -4
- package/dist/chunks/{chunk-QWY6PGL6.js → chunk-2LV74IWP.js} +361 -56
- package/dist/chunks/chunk-3SO6QL6U.js +73 -0
- package/dist/chunks/{chunk-DW6AUUKS.js → chunk-6ATGWRZM.js} +6 -4
- package/dist/chunks/chunk-BYATLLEF.js +68 -0
- package/dist/chunks/chunk-BYBSCN4X.js +932 -0
- package/dist/chunks/{chunk-2GA5ZIQL.js → chunk-D223PTXU.js} +1 -0
- package/dist/chunks/{chunk-H7J4DC5R.js → chunk-EEWPQE3O.js} +2 -2
- package/dist/chunks/{chunk-6RKD4DRZ.js → chunk-GFPXQIY2.js} +2 -2
- package/dist/chunks/{chunk-C6R3B2ML.js → chunk-HEL5XTYI.js} +12 -6
- package/dist/chunks/{chunk-CVZ2JOSW.js → chunk-IHUYP6LO.js} +1 -1
- package/dist/chunks/{chunk-YRVDW4WN.js → chunk-ILMBNVSG.js} +2 -2
- package/dist/chunks/{chunk-G3QJULO2.js → chunk-KAS45KNR.js} +1 -1
- package/dist/chunks/{chunk-H6XSTSLM.js → chunk-MEEFGWTM.js} +54 -196
- package/dist/chunks/{chunk-GCG2NMWR.js → chunk-MQ2I5AA3.js} +4 -2
- package/dist/chunks/chunk-NHA62QD7.js +774 -0
- package/dist/chunks/{chunk-WKI2FBIQ.js → chunk-OCU4RLHC.js} +641 -309
- package/dist/chunks/{chunk-WSKBSQ2U.js → chunk-PRHJGPMA.js} +2 -2
- package/dist/chunks/{chunk-6EFWDL7Y.js → chunk-Q6LWB5HX.js} +2 -2
- package/dist/chunks/{chunk-IURUFGZK.js → chunk-RBGOMK4Y.js} +50 -33
- package/dist/chunks/chunk-VBCFFFGT.js +226 -0
- package/dist/chunks/{ebuilder-form-V5FG2EHC.js → chunk-WRRJ4GG2.js} +22 -1148
- package/dist/chunks/{chunk-E4Z23GHM.js → chunk-WY74UBJ6.js} +264 -750
- package/dist/chunks/conflict-SFNEVJY5.js +21 -0
- package/dist/chunks/continuation-RN6PZN2M.js +11 -0
- package/dist/chunks/cowork-CKWYHXYB.js +2508 -0
- package/dist/chunks/ebuilder-form-KOLJRVZD.js +121 -0
- package/dist/chunks/{ehr-HMFY6VIL.js → ehr-WFOC3B4D.js} +1174 -20
- package/dist/chunks/{esb-ZYSVB7SG.js → esb-LJZTN663.js} +4 -4
- package/dist/chunks/{fna-B7RKPAZD.js → fna-F7QRIIZC.js} +2 -2
- package/dist/chunks/{host-45WED2KK.js → host-BCGUVEWX.js} +3 -3
- package/dist/chunks/host-BQBRHVR3.js +23 -0
- package/dist/chunks/{host-I4Z6BFYX.js → host-DGE2TZD4.js} +3 -3
- package/dist/chunks/{host-KNZ52LJZ.js → host-KXPTEWFS.js} +3 -3
- package/dist/chunks/{host-OCH2BCCV.js → host-VQ6JJXGQ.js} +3 -3
- package/dist/chunks/{hrm-2KAZGUHI.js → hrm-NI6XAKW5.js} +3 -3
- package/dist/chunks/{im-ACJJWH4U.js → im-7TRTF3KT.js} +88 -12
- package/dist/chunks/{invoice-ZK3WCX2U.js → invoice-AOXWJKYT.js} +3 -3
- package/dist/chunks/{jiuchuanhui-5PQD3IL2.js → jiuchuanhui-7NQWEZAW.js} +2 -2
- package/dist/chunks/{lazy-dispatch-JQXBW3GM.js → lazy-dispatch-RNS4EE4S.js} +4 -4
- package/dist/chunks/{mail-S2HDDXO2.js → mail-VDHJAB4O.js} +3 -3
- package/dist/chunks/{meeting-QVN3I37L.js → meeting-GA7XCNNP.js} +214 -43
- package/dist/chunks/{okr-QNG4VC2Q.js → okr-TQIRERPQ.js} +2 -2
- package/dist/chunks/operations-5QL3AECO.js +11 -0
- package/dist/chunks/{plan-A25EMW6U.js → plan-4RY4LN2P.js} +2 -2
- package/dist/chunks/{project-G6XV66DZ.js → project-D6XT2OC5.js} +2 -2
- package/dist/chunks/{registry-DC6KR3NH.js → registry-JHRIDQ3A.js} +4 -4
- package/dist/chunks/{registry-2VLUAESA.js → registry-OZSMDVPP.js} +2 -2
- package/dist/chunks/{registry-TI3CIUXF.js → registry-QKMI43Q6.js} +8 -6
- package/dist/chunks/{registry-7C5UMIPL.js → registry-VOGKFFTR.js} +2 -2
- package/dist/chunks/{room-recommend-WRTHO6Y2.js → room-recommend-D4EUOOWY.js} +4 -3
- package/dist/chunks/{schedule-KFIITGSK.js → schedule-XPFBHPCV.js} +4 -3
- package/dist/chunks/{workflow-DJ7SYWAF.js → workflow-HLBZRWIY.js} +172 -6
- package/dist/index.js +30 -25
- package/dist/internal/e10/auth-recovery.js +14 -4
- package/dist/shortcuts/contract/host.js +34 -59
- package/dist/shortcuts/cowork/continuation.js +70 -0
- package/dist/shortcuts/cowork/errors.js +59 -0
- package/dist/shortcuts/cowork/host.js +172 -0
- package/dist/shortcuts/cowork/index.js +166 -0
- package/dist/shortcuts/cowork/manifest.js +65 -0
- package/dist/shortcuts/cowork/operations/discuss-write.js +277 -0
- package/dist/shortcuts/cowork/operations/item-write.js +380 -0
- package/dist/shortcuts/cowork/operations/member-write.js +283 -0
- package/dist/shortcuts/cowork/operations/permission-write.js +286 -0
- package/dist/shortcuts/cowork/operations/read.js +423 -0
- package/dist/shortcuts/cowork/operations/registry.js +39 -0
- package/dist/shortcuts/cowork/operations/review-write.js +157 -0
- package/dist/shortcuts/cowork/operations/shared.js +215 -0
- package/dist/shortcuts/cowork/operations/types.js +24 -0
- package/dist/shortcuts/cowork/operations.js +19 -0
- package/dist/shortcuts/ehr/host.js +4 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +757 -0
- package/dist/shortcuts/ehr/operations/recruit-position.js +367 -0
- package/dist/shortcuts/ehr/operations/recruit-stats.js +133 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +8 -16
- package/dist/shortcuts/ehr/operations/recruit.js +35 -10
- package/dist/shortcuts/ehr/operations/registry.js +6 -0
- package/dist/shortcuts/im/diagnostics.js +97 -0
- package/dist/shortcuts/im/host.js +58 -31
- package/dist/shortcuts/im/index.js +7 -2
- package/dist/shortcuts/im/operations/at-mention.js +127 -0
- package/dist/shortcuts/im/operations/file-user.js +10 -2
- package/dist/shortcuts/im/operations/group-read.js +26 -5
- package/dist/shortcuts/im/operations/group-write.js +35 -28
- package/dist/shortcuts/im/operations/msg-sync.js +7 -2
- package/dist/shortcuts/im/operations/msg-write.js +76 -10
- package/dist/shortcuts/im/operations/quote-mention.js +119 -0
- package/dist/shortcuts/im/operations/session.js +1 -1
- package/dist/shortcuts/im/operations/shared.js +10 -0
- package/dist/shortcuts/im/operations/types.js +13 -0
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/mail/host.js +4 -1
- package/dist/shortcuts/meeting/host.js +27 -34
- package/dist/shortcuts/meeting/operations/create.js +4 -1
- package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -0
- package/dist/shortcuts/meeting/operations/eb/conflict.js +78 -7
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +168 -26
- package/dist/shortcuts/meeting/operations/eb/factory.js +69 -1
- package/dist/shortcuts/meeting/operations/eb/index.js +16 -3
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +14 -3
- package/dist/shortcuts/meeting/operations/eb-fallback.js +159 -0
- package/dist/shortcuts/meeting/operations/env.js +93 -46
- package/dist/shortcuts/meeting/operations/form-fields.js +110 -0
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/meeting/operations/standard-guard.js +71 -0
- package/dist/shortcuts/meeting/operations.js +16 -0
- package/dist/shortcuts/workflow/index.js +110 -1
- package/dist/shortcuts/workflow/operations/form.js +24 -3
- package/dist/shortcuts/workflow/operations/read.js +104 -23
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +448 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupStore.js +106 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/businessRules.js +47 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +30 -23
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +1 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.groupSummary.js +2 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +2 -4
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +138 -181
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.summary.js +12 -7
- package/docs/e10-auth.md +1 -1
- package/docs/im.md +8 -1
- package/docs/todo-smart-convert/README.md +1 -1
- package/docs/todo-smart-convert/data-contract.md +2 -2
- package/docs/todo-smart-convert/subgroup-rules.md +6 -0
- package/package.json +1 -1
- package/skill-template/domains/yimiaoban.md +3 -3
- package/skill-template/skill-template.md +1 -1
- package/skills/weaver-e10-blog/SKILL.md +5 -5
- package/skills/weaver-e10-caizhilian/SKILL.md +5 -5
- package/skills/weaver-e10-calendar/SKILL.md +5 -5
- package/skills/weaver-e10-esb/SKILL.md +5 -5
- package/skills/weaver-e10-hrm/SKILL.md +5 -5
- package/skills/weaver-e10-jinchengda/SKILL.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +5 -5
- package/skills/weaver-e10-jucailin/SKILL.md +18 -12
- package/skills/weaver-e10-jucailin/references/recruit-create.md +104 -0
- package/skills/weaver-e10-mail/SKILL.md +5 -5
- package/skills/weaver-e10-meeting/SKILL.md +171 -25
- package/skills/weaver-e10-meeting/references/meeting-eb.md +4 -3
- package/skills/weaver-e10-meeting/references/meeting-queries.md +9 -6
- package/skills/weaver-e10-meeting/references/meeting-verification.md +8 -6
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-okr/SKILL.md +5 -5
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-plan/SKILL.md +5 -5
- package/skills/weaver-e10-shared/SKILL.md +12 -12
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -4
- package/skills/weaver-e10-wenshuding/SKILL.md +5 -5
- package/skills/weaver-e10-workflow/SKILL.md +29 -5
- package/skills/weaver-e10-workflow/aigroup/default.json +88 -0
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +66 -14
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +12 -10
- package/skills/weaver-e10-workflow/references/workflow-view.md +2 -2
- package/skills/weaver-e10-workflow/tools/todo-serve.cjs +239 -0
- package/skills/weaver-e10-workflow/{scripts → tools}/todo-summary.cjs +218 -28
- package/skills/weaver-e10-yepiaotong/SKILL.md +10 -8
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +7 -7
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +10 -10
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +40 -37
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +27 -38
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +37 -29
- package/skills/weaver-e10-yimiaoban/SKILL.md +156 -33
- package/skills/weaver-e10-yimiaoban/references/ding-write.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/error-codes.md +5 -1
- package/skills/weaver-e10-yimiaoban/references/group-read.md +5 -1
- package/skills/weaver-e10-yimiaoban/references/group-write.md +6 -4
- package/skills/weaver-e10-yimiaoban/references/msg-read.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +34 -2
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +5 -2
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +79 -58
- package/skills/weaver-e10-yimiaoban/references/user-remind.md +2 -2
- package/skills/weaver-e10-ziguanjia/SKILL.md +5 -5
|
@@ -3,12 +3,12 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createE10RequestRuntime,
|
|
5
5
|
requireE10Session
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ATGWRZM.js";
|
|
7
7
|
import {
|
|
8
8
|
E10_REAUTH_GUIDANCE,
|
|
9
9
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
10
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D223PTXU.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
14
|
} from "./chunk-LUSPKZKY.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-AJ62BGAW.js";
|
|
20
20
|
import {
|
|
21
21
|
clearInvoiceTokenForSession
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EEWPQE3O.js";
|
|
23
23
|
import {
|
|
24
24
|
E10AuthSession,
|
|
25
25
|
XIAOE_AGENT_TYPE,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
setActiveProfile,
|
|
49
49
|
switchActiveProfile,
|
|
50
50
|
tryXiaoEUnifiedLogin
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-D223PTXU.js";
|
|
52
52
|
import {
|
|
53
53
|
CliError,
|
|
54
54
|
isCliError,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IHUYP6LO.js";
|
|
8
8
|
import {
|
|
9
9
|
EB_BASE,
|
|
10
10
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
meetingSuccess,
|
|
14
14
|
queryBody,
|
|
15
15
|
schemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MEEFGWTM.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/meeting/operations/eb/room-recommend.ts
|
|
19
19
|
var ROOMS_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -120,7 +120,7 @@ async function loadFrequentRooms(env, options = {}) {
|
|
|
120
120
|
const counts = /* @__PURE__ */ new Map();
|
|
121
121
|
let requests = 0;
|
|
122
122
|
try {
|
|
123
|
-
const { getMeetingOperation } = await import("./registry-
|
|
123
|
+
const { getMeetingOperation } = await import("./registry-QKMI43Q6.js");
|
|
124
124
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
125
125
|
for (let pageNo = 1; pageNo <= 5; pageNo += 1) {
|
|
126
126
|
const page = await listOp.handler(
|
|
@@ -250,9 +250,15 @@ async function recommendRooms(env, input) {
|
|
|
250
250
|
return left.name.localeCompare(right.name, "zh-Hans-CN");
|
|
251
251
|
});
|
|
252
252
|
if (candidates.length === 0) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
if (roomData.rooms.length === 0) {
|
|
254
|
+
warnings.push(
|
|
255
|
+
'EB \u4F1A\u8BAE\u5BA4\u8868\uFF08`uf_mt_room_base`\uFF09\u67E5\u4E0D\u5230\u4EFB\u4F55\u8BB0\u5F55\uFF08roomsTotal=0\uFF09\u3002\u53EF\u80FD\u662F\uFF1A\u2460 \u8BE5\u73AF\u5883\u786E\u5B9E\u8FD8\u6CA1\u5EFA\u8FC7\u4F1A\u8BAE\u5BA4\uFF1B\u2461 \u4F1A\u8BAE\u5E94\u7528\u7684\u300C\u4F1A\u8BAE\u5BA4\u5217\u8868\u300D\u63A5\u53E3/\u89C6\u56FE\u672A\u914D\u7F6E\uFF08`query_meeting_room_list` \u8BFB\u4E0D\u5230\u6570\u636E\uFF0C\u4F46\u8868\u91CC\u53EF\u80FD\u6709\uFF09\u3002**\u7EDD\u5BF9\u4E0D\u8981\u6539\u7528 `meeting.room.list`** \u2014\u2014 \u90A3\u662F\u6807\u51C6\u7248\u4F1A\u8BAE\u5E94\u7528\u7684\u4F1A\u8BAE\u5BA4\uFF0C\u4E0E EB \u662F\u4E24\u5957\u5B8C\u5168\u4E0D\u901A\u7684\u6570\u636E\uFF0C\u62FF\u7ED9\u7528\u6237\u7B49\u4E8E\u51ED\u7A7A\u634F\u9020\u623F\u95F4\u3002\u8BF7\u5982\u5B9E\u544A\u77E5\u7528\u6237"EB \u4F1A\u8BAE\u5BA4\u67E5\u4E0D\u5230"\uFF0C\u5E76\u8BF7\u7BA1\u7406\u5458\u68C0\u67E5\u4F1A\u8BAE\u5BA4\u914D\u7F6E\uFF0C\u6216\u8BA9\u7528\u6237\u76F4\u63A5\u63D0\u4F9B\u4F1A\u8BAE\u5BA4\u540D\u79F0/\u6539\u7528\u7EBF\u4E0A\u4F1A\u8BAE\u3002'
|
|
256
|
+
);
|
|
257
|
+
} else {
|
|
258
|
+
warnings.push(
|
|
259
|
+
`\u6CA1\u6709\u6EE1\u8DB3\u6761\u4EF6\u7684\u7A7A\u95F2\u4F1A\u8BAE\u5BA4\uFF08\u5171 ${roomData.rooms.length} \u95F4\uFF0C\u53EF\u7528 ${usable.length} \u95F4\uFF0C\u8BE5\u65F6\u6BB5\u88AB\u5360\u7528 ${busyCount} \u95F4${memberCount ? `\uFF0C\u4EBA\u6570 ${memberCount}` : ""}\uFF09\u2014\u2014\u8BF7\u653E\u5BBD\u4EBA\u6570/\u5730\u70B9/\u8BBE\u5907\u8981\u6C42\uFF0C\u6216\u6539\u4E3A\u7EBF\u4E0A\u4F1A\u8BAE\u3002`
|
|
260
|
+
);
|
|
261
|
+
}
|
|
256
262
|
}
|
|
257
263
|
return {
|
|
258
264
|
best: candidates[0] ?? null,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VBCFFFGT.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
E10ApiError,
|
|
14
14
|
createE10RequestRuntime,
|
|
15
15
|
requireE10Session
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6ATGWRZM.js";
|
|
17
17
|
import {
|
|
18
18
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
19
19
|
getActiveProfile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D223PTXU.js";
|
|
21
21
|
|
|
22
22
|
// src/shortcuts/esb/host.ts
|
|
23
23
|
var ESB_PATHS = {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isEsbFlowUnavailable
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ILMBNVSG.js";
|
|
6
6
|
import {
|
|
7
7
|
esbValidationError
|
|
8
8
|
} from "./chunk-GPMFD4RD.js";
|
|
@@ -85,9 +85,6 @@ var SCHEMA_ID_LIST = { type: "array", items: SCHEMA_ID };
|
|
|
85
85
|
var SCHEMA_DATETIME_MINUTE = { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$" };
|
|
86
86
|
var SCHEMA_DATE = { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2}$" };
|
|
87
87
|
|
|
88
|
-
// src/shortcuts/meeting/operations/eb/factory.ts
|
|
89
|
-
import { createHash } from "node:crypto";
|
|
90
|
-
|
|
91
88
|
// src/shortcuts/meeting/operations/shared.ts
|
|
92
89
|
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set([
|
|
93
90
|
"cookie",
|
|
@@ -197,6 +194,9 @@ async function assertMeetingExists(id, host, operation) {
|
|
|
197
194
|
}
|
|
198
195
|
}
|
|
199
196
|
|
|
197
|
+
// src/shortcuts/meeting/operations/eb/factory.ts
|
|
198
|
+
import { createHash } from "node:crypto";
|
|
199
|
+
|
|
200
200
|
// src/shortcuts/meeting/operations/eb/attendance-summary.ts
|
|
201
201
|
function toText(value) {
|
|
202
202
|
return value === void 0 || value === null ? "" : String(value).trim();
|
|
@@ -776,6 +776,7 @@ var EB_ENDPOINTS = [
|
|
|
776
776
|
queryParams: ["manager", "departmentId", "mr_type", "room_attr"],
|
|
777
777
|
summarizeRows: summarizeRoomRows,
|
|
778
778
|
summary: "EB \u7248\u4F1A\u8BAE\u5BA4\u5217\u8868\uFF08query_meeting_room_list + count\uFF09\uFF1A\u81EA\u5E26 statusText \u4E0E\u72B6\u6001\u5B57\u5178",
|
|
779
|
+
emptyHint: 'EB \u4F1A\u8BAE\u5BA4\u8868\uFF08`uf_mt_room_base`\uFF09\u67E5\u4E0D\u5230\u4EFB\u4F55\u8BB0\u5F55\u3002\u53EF\u80FD\u662F\uFF1A\u2460 \u8BE5\u73AF\u5883\u786E\u5B9E\u8FD8\u6CA1\u5EFA\u8FC7\u4F1A\u8BAE\u5BA4\uFF1B\u2461 \u4F1A\u8BAE\u5E94\u7528\u7684\u300C\u4F1A\u8BAE\u5BA4\u5217\u8868\u300D\u63A5\u53E3/\u89C6\u56FE\u672A\u914D\u7F6E\u597D\uFF08`query_meeting_room_list` \u8BFB\u4E0D\u5230\u6570\u636E\uFF0C\u4F46\u8868\u91CC\u6709\u6570\u636E\uFF09\u3002**\u8FD9\u4E0D\u4EE3\u8868"\u73AF\u5883\u662F\u6807\u51C6\u7248"\u2014\u2014\u7EDD\u5BF9\u4E0D\u8981\u6539\u7528 `meeting.room.list`**\uFF1A\u90A3\u662F\u6807\u51C6\u7248\u4F1A\u8BAE\u5E94\u7528\u7684\u4F1A\u8BAE\u5BA4\uFF0C\u4E0E EB \u5B8C\u5168\u662F\u4E24\u5957\u6570\u636E\uFF0C\u62FF\u7ED9\u7528\u6237\u5C31\u662F\u51ED\u7A7A\u634F\u9020\u623F\u95F4\u3002\u8BF7\u5982\u5B9E\u544A\u8BC9\u7528\u6237"EB \u4F1A\u8BAE\u5BA4\u67E5\u4E0D\u5230"\uFF0C\u5E76\u8BF7\u7BA1\u7406\u5458\u68C0\u67E5\u4F1A\u8BAE\u5E94\u7528\u7684\u4F1A\u8BAE\u5BA4\u914D\u7F6E\u3002',
|
|
779
780
|
notes: [
|
|
780
781
|
'**status\uFF1A`0` = \u6B63\u5E38\uFF08\u53EF\u7528\uFF09\u3001`1` = \u5C01\u5B58\uFF08\u4E0D\u53EF\u7528\uFF09** \u2014\u2014 \u4E0D\u662F"\u542F\u7528/\u505C\u7528"\uFF0C`0` \u624D\u662F\u6B63\u5E38\u3002',
|
|
781
782
|
"\u660E\u7EC6\u5728 `data.progress.items[]`\uFF1A`statusText` \u5DF2\u628A\u7F16\u7801\u7FFB\u6210\u4E2D\u6587\uFF0C`summary.unusable` \u76F4\u63A5\u5217\u51FA\u4E0D\u53EF\u7528\u7684\u623F\u95F4\u540D\uFF1B\u9700\u8981\u539F\u59CB\u7F16\u7801\u65F6\u770B `status`\u3002",
|
|
@@ -1734,6 +1735,9 @@ function buildReadOperation(endpoint) {
|
|
|
1734
1735
|
const progress = summarized === void 0 ? void 0 : summarized !== null && typeof summarized === "object" ? { ...summarized, page: pageMeta } : { value: summarized, page: pageMeta };
|
|
1735
1736
|
const effectiveTotal = Math.max(resolvedTotal, rows.length);
|
|
1736
1737
|
const pageWarnings = [];
|
|
1738
|
+
if (effectiveTotal === 0 && endpoint.emptyHint) {
|
|
1739
|
+
pageWarnings.push(endpoint.emptyHint);
|
|
1740
|
+
}
|
|
1737
1741
|
if (effectiveTotal > rows.length) {
|
|
1738
1742
|
const missing = effectiveTotal - rows.length;
|
|
1739
1743
|
pageWarnings.push(
|
|
@@ -1855,6 +1859,21 @@ function normalizeEbWrite(endpoint, args, userId) {
|
|
|
1855
1859
|
const hours = typeof mainTable.begin_datetime === "string" && typeof mainTable.end_datetime === "string" ? diffHours(mainTable.begin_datetime, mainTable.end_datetime) : void 0;
|
|
1856
1860
|
if (hours !== void 0) mainTable.mt_hours = hours;
|
|
1857
1861
|
}
|
|
1862
|
+
let extraApplied = [];
|
|
1863
|
+
let extraSkipped = [];
|
|
1864
|
+
const extra = args.extraFields;
|
|
1865
|
+
if (extra && typeof extra === "object" && !Array.isArray(extra)) {
|
|
1866
|
+
for (const [rawKey, value] of Object.entries(extra)) {
|
|
1867
|
+
const key = String(rawKey).trim();
|
|
1868
|
+
if (!key) continue;
|
|
1869
|
+
if (mainTable[key] !== void 0) {
|
|
1870
|
+
extraSkipped.push(key);
|
|
1871
|
+
continue;
|
|
1872
|
+
}
|
|
1873
|
+
mainTable[key] = value;
|
|
1874
|
+
extraApplied.push(key);
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1858
1877
|
const required = endpoint.kind === "delete" ? endpoint.batchDeleteFields ?? ["id"] : endpoint.requiredFields ?? [];
|
|
1859
1878
|
const missing = required.filter((field) => mainTable[field] === void 0);
|
|
1860
1879
|
if (missing.length > 0) {
|
|
@@ -1919,7 +1938,12 @@ function normalizeEbWrite(endpoint, args, userId) {
|
|
|
1919
1938
|
for (const node of Object.keys(details)) operateType[node] = "cover";
|
|
1920
1939
|
}
|
|
1921
1940
|
}
|
|
1922
|
-
return {
|
|
1941
|
+
return {
|
|
1942
|
+
mainTable,
|
|
1943
|
+
details,
|
|
1944
|
+
operateType,
|
|
1945
|
+
...extraApplied.length > 0 || extraSkipped.length > 0 ? { extraFields: { applied: extraApplied, skipped: extraSkipped } } : {}
|
|
1946
|
+
};
|
|
1923
1947
|
}
|
|
1924
1948
|
function buildWriteInputSchema(endpoint, includeConfirm) {
|
|
1925
1949
|
const properties = {};
|
|
@@ -1927,6 +1951,12 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
|
|
|
1927
1951
|
properties.confirm = { const: true };
|
|
1928
1952
|
properties.continuation = { type: "string", minLength: 1 };
|
|
1929
1953
|
}
|
|
1954
|
+
if (endpoint.interfacePk === "create_meeting" || endpoint.interfacePk === "change_meeting") {
|
|
1955
|
+
properties.conflictAck = {
|
|
1956
|
+
type: "boolean",
|
|
1957
|
+
description: "\u53C2\u4F1A\u4EBA\u65F6\u95F4\u51B2\u7A81\u65F6\u4ECD\u6309\u539F\u65F6\u95F4\u5EFA\u4F1A/\u6539\u671F\uFF08\u9ED8\u8BA4 false\uFF09\u3002\u51B2\u7A81\u65F6 CLI \u4F1A\u5148\u62D2\u7EDD\u5E76\u8FD4\u56DE\u51B2\u7A81\u660E\u7EC6\u4E0E\u5F53\u5929\u53EF\u9009\u65F6\u6BB5\uFF0C\u8BF7**\u7528\u9009\u9879\u65B9\u5F0F\u8BA9\u7528\u6237\u786E\u8BA4**\uFF1B\u7528\u6237\u786E\u8BA4\u7EE7\u7EED\u540E\u624D\u5E26 conflictAck=true \u91CD\u65B0\u63D0\u4EA4\u3002"
|
|
1958
|
+
};
|
|
1959
|
+
}
|
|
1930
1960
|
if (endpoint.kind === "delete") {
|
|
1931
1961
|
if (endpoint.batchDeleteFields && endpoint.batchDeleteFields.length > 0) {
|
|
1932
1962
|
for (const field of endpoint.batchDeleteFields) {
|
|
@@ -1960,6 +1990,10 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
|
|
|
1960
1990
|
}
|
|
1961
1991
|
};
|
|
1962
1992
|
}
|
|
1993
|
+
properties.extraFields = {
|
|
1994
|
+
type: "object",
|
|
1995
|
+
description: '\u81EA\u5B9A\u4E49\u5B57\u6BB5\u900F\u4F20\uFF0C\u5F62\u5982 {"\u5B57\u6BB5\u540D": \u503C}\uFF1A\u7528\u4E8E\u79DF\u6237\u5728\u8868\u5355\u4E0A\u65B0\u589E\u3001\u4E0D\u5728\u672C\u63A5\u53E3\u5185\u7F6E\u5B57\u6BB5\u6E05\u5355\u91CC\u7684\u5B57\u6BB5\uFF08\u4F8B\u5982\u53C2\u4F1A\u5BA2\u6237 crm_members\u3001\u81EA\u5EFA\u7684\u8054\u7CFB\u65B9\u5F0F\u5B57\u6BB5\uFF09\u3002\u5B57\u6BB5\u540D\u5FC5\u987B\u662F\u8868\u5355\u771F\u5B9E dataKey \u6216\u5B57\u6BB5 id\uFF08\u7528 meeting.form.fields \u67E5\uFF09\uFF1B\u4E0E\u5185\u7F6E\u5B57\u6BB5\u540C\u540D\u65F6\u4EE5\u5185\u7F6E\u5B57\u6BB5\u4E3A\u51C6\uFF0C\u5E76\u5728 warnings \u91CC\u8BF4\u660E'
|
|
1996
|
+
};
|
|
1963
1997
|
if (endpoint.detailCover) {
|
|
1964
1998
|
properties.detail1Mode = {
|
|
1965
1999
|
type: "string",
|
|
@@ -2023,6 +2057,17 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2023
2057
|
}
|
|
2024
2058
|
const extras = {};
|
|
2025
2059
|
const warnings = preflight ? await preflight({ endpoint, args, payload, env, extras }) : [];
|
|
2060
|
+
const extraInfo = payload.extraFields;
|
|
2061
|
+
if (extraInfo && extraInfo.applied.length > 0) {
|
|
2062
|
+
warnings.push(
|
|
2063
|
+
`\u5DF2\u900F\u4F20 ${extraInfo.applied.length} \u4E2A\u81EA\u5B9A\u4E49\u5B57\u6BB5\uFF1A${extraInfo.applied.join("\u3001")}\u2014\u2014\u8FD9\u4E9B\u4E0D\u5728\u5185\u7F6E\u5B57\u6BB5\u6E05\u5355\u91CC\uFF0C\u6309\u4F60\u7ED9\u7684\u539F\u6837\u63D0\u4EA4\uFF1B\u82E5\u670D\u52A1\u7AEF\u8868\u5355\u6CA1\u914D\u8FD9\u4E2A\u5B57\u6BB5\u4F1A\u88AB\u9759\u9ED8\u4E22\u5F03\uFF0C\u63D0\u4EA4\u540E\u8BF7\u56DE\u8BFB\u786E\u8BA4\uFF08\u53EF\u7528 meeting.form.fields \u6838\u5BF9\u771F\u5B9E\u5B57\u6BB5\u540D\uFF09`
|
|
2064
|
+
);
|
|
2065
|
+
}
|
|
2066
|
+
if (extraInfo && extraInfo.skipped.length > 0) {
|
|
2067
|
+
warnings.push(
|
|
2068
|
+
`\u8FD9\u4E9B\u81EA\u5B9A\u4E49\u5B57\u6BB5\u4E0E\u5185\u7F6E\u5B57\u6BB5\u91CD\u540D\uFF0C\u5DF2\u5FFD\u7565\u4F60\u7684\u53D6\u503C\u3001\u6CBF\u7528\u5185\u7F6E\u5B57\u6BB5\uFF1A${extraInfo.skipped.join("\u3001")}\uFF08\u8981\u4F20\u81EA\u5B9A\u4E49\u53E3\u5F84\u8BF7\u6539\u7528\u4E0D\u51B2\u7A81\u7684\u5B57\u6BB5\u540D\uFF09`
|
|
2069
|
+
);
|
|
2070
|
+
}
|
|
2026
2071
|
if (endpoint.detailCover && Object.keys(payload.details).length > 0 && payload.operateType.detail1 !== "cover") {
|
|
2027
2072
|
warnings.push(
|
|
2028
2073
|
'detail1 \u9ED8\u8BA4\u662F\u300C\u66F4\u65B0\u8FFD\u52A0\u300D\uFF1A\u672C\u6B21\u4F1A\u65B0\u589E\u660E\u7EC6\u884C\uFF0C**\u4E0D\u4F1A**\u8986\u76D6 sort_number \u76F8\u540C\u7684\u65E7\u884C\uFF08\u771F\u673A\u5B9E\u6D4B\uFF1A2 \u884C \u2192 \u4F20 1 \u884C \u2192 \u53D8 3 \u884C\uFF09\u3002\u8981\u6574\u7EC4\u66FF\u6362\u8BF7\u4F20 detail1Mode: "cover"'
|
|
@@ -2080,6 +2125,10 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2080
2125
|
{ expected: lease.payload, actual: payload }
|
|
2081
2126
|
);
|
|
2082
2127
|
}
|
|
2128
|
+
if (endpoint.interfacePk === "create_meeting") {
|
|
2129
|
+
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-SFNEVJY5.js");
|
|
2130
|
+
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2131
|
+
}
|
|
2083
2132
|
const pkQuery = writePkQuery(endpoint, payload);
|
|
2084
2133
|
let response;
|
|
2085
2134
|
try {
|
|
@@ -2127,194 +2176,6 @@ function buildEbOperations(endpoints, options = {}) {
|
|
|
2127
2176
|
return endpoints.flatMap((endpoint) => isWriteKind(endpoint.kind) ? buildWriteOperations(endpoint, options.preflight, options.afterWrite) : [buildReadOperation(endpoint)]);
|
|
2128
2177
|
}
|
|
2129
2178
|
|
|
2130
|
-
// src/shortcuts/meeting/operations/env.ts
|
|
2131
|
-
import { existsSync } from "node:fs";
|
|
2132
|
-
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
2133
|
-
import { homedir } from "node:os";
|
|
2134
|
-
import { resolve } from "node:path";
|
|
2135
|
-
var EB_SMOKE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/query_meeting_baseset";
|
|
2136
|
-
var STD_CALENDAR_PATH = "/api/meeting/detail/getCalendarBaseData";
|
|
2137
|
-
function stateRoot(ctx) {
|
|
2138
|
-
const configured = ctx?.config?.path();
|
|
2139
|
-
if (configured) return resolve(configured, "..");
|
|
2140
|
-
return process.env.WEAVER_WORK_CLI_HOME || process.env.WORK_CLI_HOME || resolve(homedir(), ".weaver-work-cli");
|
|
2141
|
-
}
|
|
2142
|
-
function meetingStateDir(ctx) {
|
|
2143
|
-
return resolve(stateRoot(ctx), "meeting");
|
|
2144
|
-
}
|
|
2145
|
-
function cacheFile(ctx) {
|
|
2146
|
-
return resolve(stateRoot(ctx), "meeting", "env-mode.json");
|
|
2147
|
-
}
|
|
2148
|
-
function emptyCache() {
|
|
2149
|
-
return { schemaVersion: 1, environments: {} };
|
|
2150
|
-
}
|
|
2151
|
-
async function readCache(ctx) {
|
|
2152
|
-
const file = cacheFile(ctx);
|
|
2153
|
-
if (!existsSync(file)) return emptyCache();
|
|
2154
|
-
try {
|
|
2155
|
-
const parsed = JSON.parse(await readFile(file, "utf8"));
|
|
2156
|
-
if (!parsed || typeof parsed !== "object" || !parsed.environments) return emptyCache();
|
|
2157
|
-
return parsed;
|
|
2158
|
-
} catch {
|
|
2159
|
-
return emptyCache();
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
|
-
async function writeCache(ctx, baseUrl, mode, smokePath) {
|
|
2163
|
-
try {
|
|
2164
|
-
const file = cacheFile(ctx);
|
|
2165
|
-
await mkdir(resolve(file, ".."), { recursive: true });
|
|
2166
|
-
const cache = await readCache(ctx);
|
|
2167
|
-
cache.environments[baseUrl] = { mode, smokePath, detectedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
2168
|
-
await writeFile(file, JSON.stringify(cache, null, 2), "utf8");
|
|
2169
|
-
return void 0;
|
|
2170
|
-
} catch (error) {
|
|
2171
|
-
return `\u73AF\u5883\u6A21\u5F0F\u7F13\u5B58\u5199\u5165\u5931\u8D25\uFF08\u4E0D\u5F71\u54CD\u672C\u6B21\u7ED3\u679C\uFF0C\u4E0B\u6B21\u4F1A\u91CD\u65B0\u5192\u70DF\uFF09\uFF1A${error instanceof Error ? error.message : String(error)}`;
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
async function resolveMeetingEnvMode(host, ctx, options = {}) {
|
|
2175
|
-
const session = await host.getSession();
|
|
2176
|
-
if (options.refresh !== true) {
|
|
2177
|
-
const cache = await readCache(ctx);
|
|
2178
|
-
const cached = cache.environments[session.baseUrl];
|
|
2179
|
-
if (cached && (cached.mode === "eb" || cached.mode === "standard")) {
|
|
2180
|
-
return {
|
|
2181
|
-
mode: cached.mode,
|
|
2182
|
-
smokePath: cached.smokePath,
|
|
2183
|
-
fromCache: true,
|
|
2184
|
-
detectedAt: cached.detectedAt
|
|
2185
|
-
};
|
|
2186
|
-
}
|
|
2187
|
-
}
|
|
2188
|
-
let ebError;
|
|
2189
|
-
try {
|
|
2190
|
-
await host.request({
|
|
2191
|
-
method: "POST",
|
|
2192
|
-
path: EB_SMOKE_PATH,
|
|
2193
|
-
operation: "meeting.env.detect",
|
|
2194
|
-
// EB list 的 datajson 内必须出现 mainTable 节点(空对象即可):缺失时服务端报
|
|
2195
|
-
// “mainTable解析异常,请参照文档修正数据格式”,冒烟会**假失败**并把 EB 环境误判为
|
|
2196
|
-
// 标准版(2026-09-20 真机复现)。
|
|
2197
|
-
body: { datajson: { mainTable: {}, header: { operator: session.userId } } },
|
|
2198
|
-
// EB 响应不含 code/status(形如 {datajson:{datas:[...]}}),默认的 isBusinessSuccess
|
|
2199
|
-
// 会判为 false → 冒烟假失败 → EB 环境被误判为标准版。
|
|
2200
|
-
acceptBusiness: ebBusinessSuccess
|
|
2201
|
-
});
|
|
2202
|
-
const warning = await writeCache(ctx, session.baseUrl, "eb", EB_SMOKE_PATH);
|
|
2203
|
-
return { mode: "eb", smokePath: EB_SMOKE_PATH, fromCache: false, warning };
|
|
2204
|
-
} catch (error) {
|
|
2205
|
-
ebError = error;
|
|
2206
|
-
}
|
|
2207
|
-
try {
|
|
2208
|
-
await host.request({
|
|
2209
|
-
method: "GET",
|
|
2210
|
-
path: STD_CALENDAR_PATH,
|
|
2211
|
-
operation: "meeting.env.detect"
|
|
2212
|
-
});
|
|
2213
|
-
const ebDetail = ebError instanceof Error ? `${ebError.type ?? "api"}/${ebError.subtype ?? "error"}: ${ebError.message}` : String(ebError);
|
|
2214
|
-
const warning = await writeCache(ctx, session.baseUrl, "standard", STD_CALENDAR_PATH);
|
|
2215
|
-
return {
|
|
2216
|
-
mode: "standard",
|
|
2217
|
-
smokePath: STD_CALENDAR_PATH,
|
|
2218
|
-
fromCache: false,
|
|
2219
|
-
ebSmokeFailed: true,
|
|
2220
|
-
ebSmokeError: ebDetail,
|
|
2221
|
-
warning
|
|
2222
|
-
};
|
|
2223
|
-
} catch (stdError) {
|
|
2224
|
-
throw meetingValidationError(
|
|
2225
|
-
"env_unavailable",
|
|
2226
|
-
"\u5F53\u524D\u73AF\u5883 EB \u7248\u4E0E\u6807\u51C6\u7248\u4F1A\u8BAE\u63A5\u53E3\u5192\u70DF\u5747\u672A\u901A\u8FC7\uFF0C\u8BF7\u786E\u8BA4\u4F1A\u8BAE\u5E94\u7528\u5DF2\u5B89\u88C5\u4E14\u63A5\u53E3\u5DF2\u914D\u7F6E\u5B8C\u6574",
|
|
2227
|
-
{
|
|
2228
|
-
eb: ebError instanceof Error ? ebError.message : String(ebError),
|
|
2229
|
-
standard: stdError instanceof Error ? stdError.message : String(stdError)
|
|
2230
|
-
}
|
|
2231
|
-
);
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
var meetingEnvDetect = {
|
|
2235
|
-
name: "meeting.env.detect",
|
|
2236
|
-
resource: "env",
|
|
2237
|
-
method: "detect",
|
|
2238
|
-
action: "meeting.env.detect",
|
|
2239
|
-
summary: "\u63A2\u6D4B\u5F53\u524D\u73AF\u5883\u4F1A\u8BAE\u6A21\u5F0F\uFF1A\u9ED8\u8BA4\u6309 baseUrl \u8BFB\u7F13\u5B58\uFF1B\u672A\u547D\u4E2D\u6216 refresh=true \u65F6 EB \u7248\u5192\u70DF\u4F18\u5148\u3001\u5931\u8D25\u56DE\u9000\u6807\u51C6\u7248\uFF0C\u6210\u529F\u540E\u56FA\u5316\u7F13\u5B58",
|
|
2240
|
-
capability: "env",
|
|
2241
|
-
risk: "read",
|
|
2242
|
-
inputSchema: {
|
|
2243
|
-
type: "object",
|
|
2244
|
-
additionalProperties: false,
|
|
2245
|
-
properties: {
|
|
2246
|
-
refresh: { type: "boolean", description: 'true=\u5FFD\u7565\u7F13\u5B58\u5F3A\u5236\u91CD\u65B0\u5192\u70DF\u5E76\u66F4\u65B0\u7F13\u5B58\uFF08\u7528\u6237\u8BF4"\u91CD\u65B0\u63A2\u6D4B/\u5237\u65B0\u6A21\u5F0F"\u65F6\u4F7F\u7528\uFF09' },
|
|
2247
|
-
profileId: SCHEMA_ID
|
|
2248
|
-
}
|
|
2249
|
-
},
|
|
2250
|
-
handler: async (args, { host, ctx }) => {
|
|
2251
|
-
const result = await resolveMeetingEnvMode(host, ctx, { refresh: args.refresh === true });
|
|
2252
|
-
const { warning, ...data } = result;
|
|
2253
|
-
return meetingSuccess(
|
|
2254
|
-
"meeting.env.detect",
|
|
2255
|
-
data,
|
|
2256
|
-
warning ? { warnings: [warning] } : void 0
|
|
2257
|
-
);
|
|
2258
|
-
}
|
|
2259
|
-
};
|
|
2260
|
-
var meetingCalendarBase = {
|
|
2261
|
-
name: "meeting.calendar.base",
|
|
2262
|
-
resource: "env",
|
|
2263
|
-
method: "calendar.base",
|
|
2264
|
-
action: "meeting.calendar.base",
|
|
2265
|
-
summary: "\u67E5\u8BE2\u65E5\u5386/\u5EFA\u4F1A\u57FA\u7840\u4FE1\u606F\uFF08getCalendarBaseData\uFF09\uFF1AonlyFlowCreate / workFlowBaseIds / repeatWorkFlowBaseIds / existWorkFlow",
|
|
2266
|
-
capability: "env",
|
|
2267
|
-
risk: "read",
|
|
2268
|
-
inputSchema: { type: "object", additionalProperties: false, properties: {} },
|
|
2269
|
-
handler: async (_args, { host }) => {
|
|
2270
|
-
const response = await host.request({
|
|
2271
|
-
method: "GET",
|
|
2272
|
-
path: STD_CALENDAR_PATH,
|
|
2273
|
-
operation: "meeting.calendar.base"
|
|
2274
|
-
});
|
|
2275
|
-
const createBaseData = response?.data?.createBaseData ?? response?.createBaseData ?? null;
|
|
2276
|
-
return meetingSuccess("meeting.calendar.base", { createBaseData, raw: response });
|
|
2277
|
-
}
|
|
2278
|
-
};
|
|
2279
|
-
var meetingDetailField = {
|
|
2280
|
-
name: "meeting.detail.field",
|
|
2281
|
-
resource: "meeting",
|
|
2282
|
-
method: "detail.field",
|
|
2283
|
-
action: "meeting.detail.field",
|
|
2284
|
-
summary: "\u67E5\u8BE2\u4F1A\u8BAE\u8BE6\u60C5\u8868\u5355\u7ED3\u6784\u4E0E options\uFF08getMeetingDetailField\uFF09\uFF1Aid / operateType / fromWorkflow / isReadOnly",
|
|
2285
|
-
capability: "meeting",
|
|
2286
|
-
risk: "read",
|
|
2287
|
-
inputSchema: {
|
|
2288
|
-
type: "object",
|
|
2289
|
-
additionalProperties: false,
|
|
2290
|
-
properties: {
|
|
2291
|
-
id: SCHEMA_ID,
|
|
2292
|
-
operateType: { type: "string", description: "\u64CD\u4F5C\u7C7B\u578B\uFF0C\u5982 SUBMIT/UPDATE/CHANGE" },
|
|
2293
|
-
fromWorkflow: { type: "integer", enum: [0, 1] },
|
|
2294
|
-
isReadOnly: { type: "integer", enum: [0, 1] }
|
|
2295
|
-
},
|
|
2296
|
-
required: ["id"]
|
|
2297
|
-
},
|
|
2298
|
-
handler: async (args, { host }) => {
|
|
2299
|
-
const query = { id: String(args.id) };
|
|
2300
|
-
if (args.operateType !== void 0) query.operateType = args.operateType;
|
|
2301
|
-
if (args.fromWorkflow !== void 0) query.fromWorkflow = args.fromWorkflow;
|
|
2302
|
-
if (args.isReadOnly !== void 0) query.isReadOnly = args.isReadOnly;
|
|
2303
|
-
const response = await host.request({
|
|
2304
|
-
method: "GET",
|
|
2305
|
-
path: "/api/meeting/detail/getMeetingDetailField",
|
|
2306
|
-
operation: "meeting.detail.field",
|
|
2307
|
-
query
|
|
2308
|
-
});
|
|
2309
|
-
return meetingSuccess("meeting.detail.field", { data: response?.data ?? response });
|
|
2310
|
-
}
|
|
2311
|
-
};
|
|
2312
|
-
var meetingEnvOperations = [
|
|
2313
|
-
meetingEnvDetect,
|
|
2314
|
-
meetingCalendarBase,
|
|
2315
|
-
meetingDetailField
|
|
2316
|
-
];
|
|
2317
|
-
|
|
2318
2179
|
export {
|
|
2319
2180
|
MeetingCliError,
|
|
2320
2181
|
meetingValidationError,
|
|
@@ -2350,8 +2211,5 @@ export {
|
|
|
2350
2211
|
writeBody,
|
|
2351
2212
|
extractEbRows,
|
|
2352
2213
|
normalizeEbWrite,
|
|
2353
|
-
buildEbOperations
|
|
2354
|
-
meetingStateDir,
|
|
2355
|
-
resolveMeetingEnvMode,
|
|
2356
|
-
meetingEnvOperations
|
|
2214
|
+
buildEbOperations
|
|
2357
2215
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
meetingStateDir
|
|
5
|
+
} from "./chunk-VBCFFFGT.js";
|
|
3
6
|
import {
|
|
4
7
|
SCHEMA_ID,
|
|
5
|
-
meetingStateDir,
|
|
6
8
|
meetingSuccess,
|
|
7
9
|
meetingValidationError,
|
|
8
10
|
schemaOf
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MEEFGWTM.js";
|
|
10
12
|
|
|
11
13
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
12
14
|
import { mkdir, writeFile } from "node:fs/promises";
|