weaver-work-cli 0.1.67 → 0.1.69
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-WUZKAEZ6.js → archive-VUTREF3P.js} +16 -12
- package/dist/chunks/{archive-oa-PN46RTI2.js → archive-oa-VXXO4RTB.js} +4 -4
- package/dist/chunks/{asset-ZPC5VWZM.js → asset-45U6TY7I.js} +44 -12
- package/dist/chunks/{asset-idle-DHGP3NYY.js → asset-idle-YCRBMTIT.js} +4 -4
- package/dist/chunks/{attachment-content-7SDA6WER.js → attachment-content-7BEDNQ3O.js} +3 -3
- package/dist/chunks/{blog-JC47AIXK.js → blog-5AML4WMG.js} +4 -4
- package/dist/chunks/{caizhilian-IKIHM77A.js → caizhilian-3P7BUNHT.js} +6 -6
- package/dist/chunks/{calendar-GZTSJ57Y.js → calendar-2HUXM3CZ.js} +4 -4
- package/dist/chunks/{chunk-33ANTJWB.js → chunk-3CBURKSY.js} +5 -5
- package/dist/chunks/{chunk-IN6NXQ26.js → chunk-3Q5F4C5B.js} +47 -27
- package/dist/chunks/{chunk-XARLZK6C.js → chunk-3TZURS7M.js} +3 -3
- package/dist/chunks/{chunk-R6GGDZ2C.js → chunk-4XYRTXRR.js} +1 -1
- package/dist/chunks/{chunk-LNWFHNVK.js → chunk-67AN5YJT.js} +379 -55
- package/dist/chunks/{chunk-KS6LXSCA.js → chunk-6DH73Q5H.js} +85 -81
- package/dist/chunks/{chunk-3W5NMGDS.js → chunk-727VKJQK.js} +2 -2
- package/dist/chunks/{chunk-5QYE52LG.js → chunk-7M5OYRK2.js} +18 -9
- package/dist/chunks/{chunk-TXXO4TJT.js → chunk-BEYEXCWU.js} +2 -2
- package/dist/chunks/{chunk-26FCCU5O.js → chunk-DSBV4GRK.js} +3 -3
- package/dist/chunks/{chunk-G7PQWD4L.js → chunk-DVFA3ODS.js} +38 -10
- package/dist/chunks/{chunk-HWA2A25Y.js → chunk-E7VWE2XI.js} +3 -3
- package/dist/chunks/{chunk-DTJZOAO6.js → chunk-ELF5TPSG.js} +7 -7
- package/dist/chunks/{chunk-6ZOSVKMT.js → chunk-ERAE4GHX.js} +1 -1
- package/dist/chunks/{chunk-4PYLZORW.js → chunk-FMAZ42HS.js} +12 -12
- package/dist/chunks/{chunk-TJN4PIYO.js → chunk-GTAFCAVP.js} +2 -0
- package/dist/chunks/{chunk-WSHIOSGM.js → chunk-H2NRTGZR.js} +3 -3
- package/dist/chunks/{chunk-4WCVRDC5.js → chunk-HG6INLH6.js} +13 -0
- package/dist/chunks/{chunk-FDBAFANU.js → chunk-I5XB4MZT.js} +227 -23
- package/dist/chunks/{chunk-RU7ZZQQQ.js → chunk-JAIZY37Z.js} +4 -4
- package/dist/chunks/{chunk-ATEXBEPD.js → chunk-LCM5SSGJ.js} +4 -1
- package/dist/chunks/{chunk-FJUOUSV3.js → chunk-LRKKKO5A.js} +36 -9
- package/dist/chunks/{chunk-HLT6B26P.js → chunk-LSVA7QA6.js} +1 -1
- package/dist/chunks/{chunk-6N4JPNFL.js → chunk-MD5CW4B6.js} +1 -1
- package/dist/chunks/{chunk-MRYKV5HN.js → chunk-MLJK4KLE.js} +37 -37
- package/dist/chunks/{chunk-C4YQJFZV.js → chunk-PAWXVT6H.js} +22 -11
- package/dist/chunks/{chunk-Q6D6PSMH.js → chunk-QYDSTYGG.js} +3 -3
- package/dist/chunks/{chunk-AFZTMYGC.js → chunk-T24EBWAZ.js} +1 -1
- package/dist/chunks/{chunk-6T5X6YWX.js → chunk-U3OO3IZF.js} +3 -3
- package/dist/chunks/{chunk-VLY5RTVO.js → chunk-UVWW5ABZ.js} +3 -3
- package/dist/chunks/{chunk-NP3ZZFGI.js → chunk-VZUH3LKI.js} +16 -5
- package/dist/chunks/{chunk-JU5OPHSY.js → chunk-YR3K53BU.js} +36 -27
- package/dist/chunks/{conflict-DYCSX7CN.js → conflict-VKCRXHUV.js} +2 -2
- package/dist/chunks/{contract-N5WNHKHI.js → contract-3PMHUASH.js} +202 -25
- package/dist/chunks/{cowork-34CBYVQP.js → cowork-FZBTTBYX.js} +4 -4
- package/dist/chunks/{create-flow-PABAGCK2.js → create-flow-WYPLBLRK.js} +6 -6
- package/dist/chunks/{data-QKWI5325.js → data-2YZ6A6TL.js} +32 -5
- package/dist/chunks/{ebuilder-form-ZONRROK4.js → ebuilder-form-AWPTMZBZ.js} +6 -6
- package/dist/chunks/{ehr-2CONM7R6.js → ehr-MNPR4TE5.js} +4 -4
- package/dist/chunks/{employee-PGMY6NI6.js → employee-QX57HEWS.js} +1 -1
- package/dist/chunks/{entry-mode-C2WPJQJM.js → entry-mode-BCJ7RPFC.js} +3 -3
- package/dist/chunks/{env-SEEXUXZF.js → env-SCVCHBN2.js} +2 -2
- package/dist/chunks/{esb-FQASCY2H.js → esb-GSB5QCEX.js} +6 -6
- package/dist/chunks/{factory-WNLDOLJZ.js → factory-CBXYOEBF.js} +1 -1
- package/dist/chunks/{fna-FCLVIWAS.js → fna-XBSNUS2V.js} +4 -4
- package/dist/chunks/{group-chat-DOS4XWUN.js → group-chat-RFL4U7RF.js} +3 -3
- package/dist/chunks/{host-P7G22WNM.js → host-2UMNXX5H.js} +4 -4
- package/dist/chunks/{host-XLCBLNJD.js → host-BD44ASOD.js} +4 -4
- package/dist/chunks/{host-2ED2KC4X.js → host-NVDG3NC6.js} +4 -4
- package/dist/chunks/{host-46NYKDQP.js → host-R7BP3CTI.js} +4 -4
- package/dist/chunks/{host-7IPZKIM4.js → host-SYPCA63D.js} +4 -4
- package/dist/chunks/{host-2UYZEY2V.js → host-XVWBOSEN.js} +4 -4
- package/dist/chunks/{hrm-XKL27NX2.js → hrm-FZUDJAND.js} +20 -14
- package/dist/chunks/{im-NDYIMASG.js → im-F5NENPD7.js} +5 -5
- package/dist/chunks/{invoice-SMODTN2D.js → invoice-DS6FLU55.js} +44 -7
- package/dist/chunks/{jiuchuanhui-3T5X7SB7.js → jiuchuanhui-PY2WEBUH.js} +161 -10
- package/dist/chunks/{lazy-dispatch-K25LTKQY.js → lazy-dispatch-F6O2EPGR.js} +7 -7
- package/dist/chunks/{mail-P7VMUKQW.js → mail-ZEOSANEJ.js} +4 -4
- package/dist/chunks/{meeting-2IWXP5IL.js → meeting-N2AGGLVI.js} +15 -15
- package/dist/chunks/{minute-doc-N4OR5OLP.js → minute-doc-C62EZOJH.js} +4 -4
- package/dist/chunks/{okr-VZXRQGS4.js → okr-OZUMTMCL.js} +11 -5
- package/dist/chunks/{operations-62N6EP3C.js → operations-LQY3FTPH.js} +1 -1
- package/dist/chunks/{operations-MI2BSKZX.js → operations-UTUWFJTX.js} +5 -5
- package/dist/chunks/{org-NFE7X7FK.js → org-MWWIFNAO.js} +1 -1
- package/dist/chunks/{performance-OPEQNW7Y.js → performance-GBKM5G2Y.js} +3 -3
- package/dist/chunks/{plan-TJAS4N5X.js → plan-C2NENH42.js} +4 -4
- package/dist/chunks/{project-CYBGU6K6.js → project-FAJ2P3UR.js} +4 -4
- package/dist/chunks/{reception-3FT2F66K.js → reception-NH6MJFPR.js} +20 -10
- package/dist/chunks/{recruit-stage-WPGB5BDJ.js → recruit-stage-DPEFHLSE.js} +7 -4
- package/dist/chunks/{registry-JMNOXRST.js → registry-4S3RXXWS.js} +3 -3
- package/dist/chunks/{registry-XOUVCSV4.js → registry-7US3QQXV.js} +12 -12
- package/dist/chunks/{registry-E5RQJVWN.js → registry-AC33ZZVH.js} +1 -1
- package/dist/chunks/{registry-QRMXRSCT.js → registry-FTPUUHWC.js} +5 -5
- package/dist/chunks/{registry-ABKBGGGK.js → registry-Y2HWS6JS.js} +4 -4
- package/dist/chunks/{room-recommend-TWIEVY44.js → room-recommend-LMNF76YS.js} +4 -4
- package/dist/chunks/{schedule-XZ4UUX4E.js → schedule-4QE2THAP.js} +4 -4
- package/dist/chunks/{smart-extract-DEBLJPCQ.js → smart-extract-GTYKF5TJ.js} +32 -21
- package/dist/chunks/{workflow-D7LBN5MZ.js → workflow-KXYTQZ2H.js} +81 -12
- package/dist/core/error-codes.js +1 -1
- package/dist/core/host-policy.js +56 -0
- package/dist/core/timing.js +227 -0
- package/dist/index.js +39 -36
- package/dist/internal/e10/auth/commands.js +11 -0
- package/dist/internal/e10/auth/error-log.js +13 -0
- package/dist/internal/e10/auth/messages.js +10 -0
- package/dist/internal/e10/auth/xiaoe.js +12 -2
- package/dist/internal/e10/context.js +39 -12
- package/dist/internal/e10/network-error.js +28 -0
- package/dist/internal/e10/tls-policy.js +260 -0
- package/dist/shortcuts/archive/operations/archive-info.js +9 -5
- package/dist/shortcuts/asset/manifest.js +42 -4
- package/dist/shortcuts/contract/manifest.js +204 -21
- package/dist/shortcuts/data/manifest.js +45 -2
- package/dist/shortcuts/ebuilder-form/manifest.js +38 -10
- package/dist/shortcuts/hrm/index.js +20 -7
- package/dist/shortcuts/hrm/operations/employee.js +22 -11
- package/dist/shortcuts/hrm/operations/org.js +18 -9
- package/dist/shortcuts/hrm/operations/position.js +24 -12
- package/dist/shortcuts/hrm/operations/resolve.js +18 -10
- package/dist/shortcuts/im/operations/group-read.js +4 -1
- package/dist/shortcuts/invoice/manifest.js +44 -1
- package/dist/shortcuts/jiuchuanhui/host.js +76 -4
- package/dist/shortcuts/jiuchuanhui/manifest.js +106 -2
- package/dist/shortcuts/meeting/operations/attachment-content.js +25 -16
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +1 -0
- package/dist/shortcuts/meeting/operations/invitation.js +1 -1
- package/dist/shortcuts/meeting/operations/link.js +20 -17
- package/dist/shortcuts/okr/operations/read.js +7 -1
- package/dist/shortcuts/reception/host.js +19 -5
- package/dist/shortcuts/reception/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -1
- package/dist/shortcuts/smart-extract/operations/structure.js +13 -10
- package/dist/shortcuts/smart-extract/operations/target.js +15 -7
- package/dist/shortcuts/workflow/index.js +55 -5
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +26 -2
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +23 -4
- package/dist/shortcuts/workflow/operations/deepRead.js +295 -4
- package/dist/shortcuts/workflow/operations/read.js +44 -22
- package/dist/shortcuts/workflow/operations/types.js +7 -1
- package/dist/shortcuts/workflow/operations/write.js +20 -2
- package/dist/shortcuts/workflow/operations.js +19 -1
- package/docs/e10-auth.md +48 -1
- package/package.json +1 -1
- package/scripts/xiaoe_env.py +18 -3
- package/skills/weaver-e10-asset-idle/SKILL.md +1 -1
- package/skills/weaver-e10-blog/SKILL.md +2 -2
- package/skills/weaver-e10-calendar/SKILL.md +1 -1
- package/skills/weaver-e10-data/SKILL.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +1 -1
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-hrm/SKILL.md +1 -1
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +1 -0
- package/skills/weaver-e10-jucailin/SKILL.md +84 -17
- package/skills/weaver-e10-jucailin/agents/openai.yaml +2 -1
- package/skills/weaver-e10-jucailin/references/recruit-create.md +7 -8
- package/skills/weaver-e10-jucailin/references/recruit-implement-INDEX.md +41 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-consult-sop.md +77 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-guardrails.md +41 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-data-update-channels.md +31 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-form-external.md +43 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-talent-base-form.md +32 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-collect-update-talent.md +93 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-share-edit.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -11
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +3 -3
- package/skills/weaver-e10-mail/SKILL.md +52 -10
- package/skills/weaver-e10-mail/references/mail-agent-entry.md +1 -2
- package/skills/weaver-e10-meeting/SKILL.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-okr/SKILL.md +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +5 -5
- package/skills/weaver-e10-plan/SKILL.md +2 -2
- package/skills/weaver-e10-plan/references/source-manifest.json +3 -3
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +3 -3
- package/skills/weaver-e10-reception-flow/SKILL.md +53 -16
- package/skills/weaver-e10-shared/SKILL.md +4 -9
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
- package/skills/weaver-e10-shijingran/SKILL.md +14 -6
- package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
- package/skills/weaver-e10-workflow/SKILL.md +11 -11
- package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +92 -12
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +6 -4
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +1 -2
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +44 -8
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +84 -12
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
- package/skills/weaver-e10-ziguanjia/SKILL.md +1 -1
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +1 -2
|
@@ -92,6 +92,8 @@ var ebuilderFormOperations = [
|
|
|
92
92
|
orderParams: { type: "array" },
|
|
93
93
|
passid: { type: "string" },
|
|
94
94
|
cid: { type: "string" }
|
|
95
|
+
}, {
|
|
96
|
+
anyOf: [{ required: ["context"] }, { required: ["listId", "appId"] }, { required: ["menuKeywords"] }, { required: ["menu"] }, { required: ["url"] }]
|
|
95
97
|
})
|
|
96
98
|
},
|
|
97
99
|
{
|
|
@@ -118,6 +120,8 @@ var ebuilderFormOperations = [
|
|
|
118
120
|
pageFilter: {},
|
|
119
121
|
customConfig: { type: "object" },
|
|
120
122
|
refPluginPackageId: { type: "string" }
|
|
123
|
+
}, {
|
|
124
|
+
anyOf: [{ required: ["context"] }, { required: ["hostPageId", "appId"] }, { required: ["menuKeywords"] }, { required: ["menu"] }, { required: ["url"] }]
|
|
121
125
|
})
|
|
122
126
|
},
|
|
123
127
|
{
|
|
@@ -134,6 +138,15 @@ var ebuilderFormOperations = [
|
|
|
134
138
|
enableMerge: { type: ["boolean", "string"], default: true },
|
|
135
139
|
customParam: {},
|
|
136
140
|
params: {}
|
|
141
|
+
}, {
|
|
142
|
+
anyOf: [
|
|
143
|
+
{ required: ["context"] },
|
|
144
|
+
{ required: ["url"] },
|
|
145
|
+
{ required: ["menuKeywords"] },
|
|
146
|
+
{ required: ["menu"] },
|
|
147
|
+
{ required: ["objId"] },
|
|
148
|
+
{ required: ["listId", "appId", "listKind"] }
|
|
149
|
+
]
|
|
137
150
|
})
|
|
138
151
|
},
|
|
139
152
|
{
|
|
@@ -141,16 +154,31 @@ var ebuilderFormOperations = [
|
|
|
141
154
|
summary: "\u6309\u5B57\u6BB5\u5143\u6570\u636E ID \u8BFB\u53D6\u9009\u62E9\u7C7B\u5B57\u6BB5\u9009\u9879",
|
|
142
155
|
risk: "read",
|
|
143
156
|
fixed: { path: "/api/ebuilder/common/ds/options" },
|
|
144
|
-
inputSchema:
|
|
145
|
-
...
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
157
|
+
inputSchema: {
|
|
158
|
+
...schema({
|
|
159
|
+
...contextProperties,
|
|
160
|
+
fieldName: { type: "string", pattern: "^\\d+$" },
|
|
161
|
+
fieldId: { type: "string", pattern: "^\\d+$" },
|
|
162
|
+
sourceType: { type: "string", default: "FORM" },
|
|
163
|
+
groupId: { type: "string" },
|
|
164
|
+
optionLevel: { type: ["integer", "string"], default: 1 }
|
|
165
|
+
}),
|
|
166
|
+
// 两条同时成立:① fieldName / fieldId 二选一;② 上下文至少要能给出一组(resolveContext 最终要求 objId)
|
|
167
|
+
allOf: [
|
|
168
|
+
{ anyOf: [{ required: ["fieldName"] }, { required: ["fieldId"] }] },
|
|
169
|
+
{
|
|
170
|
+
anyOf: [
|
|
171
|
+
{ required: ["context"] },
|
|
172
|
+
{ required: ["objId"] },
|
|
173
|
+
{ required: ["listId", "appId"] },
|
|
174
|
+
{ required: ["hostPageId", "appId"] },
|
|
175
|
+
{ required: ["menuKeywords"] },
|
|
176
|
+
{ required: ["menu"] },
|
|
177
|
+
{ required: ["url"] }
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
154
182
|
},
|
|
155
183
|
{
|
|
156
184
|
name: "ebuilder-form.mapping.get",
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
createE10RequestRuntime,
|
|
10
10
|
isE10AuthenticationRequired,
|
|
11
11
|
requireE10Session
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LRKKKO5A.js";
|
|
13
13
|
import {
|
|
14
14
|
E10_SESSION_EXPIRED_MESSAGE
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GTAFCAVP.js";
|
|
16
16
|
import {
|
|
17
17
|
getActiveProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I5XB4MZT.js";
|
|
19
19
|
|
|
20
20
|
// src/shortcuts/workflow/host.ts
|
|
21
21
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
queryBody,
|
|
14
14
|
toIdCsv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3TZURS7M.js";
|
|
16
16
|
|
|
17
17
|
// src/shortcuts/meeting/operations/eb/conflict.ts
|
|
18
18
|
var ACTIVE_MT_STATUS = "1,2,8,9";
|
|
@@ -146,7 +146,7 @@ async function collectMemberConflicts(members, begin, end, excludeMtId, env, ope
|
|
|
146
146
|
let candidates = allCandidates;
|
|
147
147
|
let prefilterSkipped = 0;
|
|
148
148
|
try {
|
|
149
|
-
const { resolveEmployeeNames } = await import("./create-flow-
|
|
149
|
+
const { resolveEmployeeNames } = await import("./create-flow-WYPLBLRK.js");
|
|
150
150
|
const names = await resolveEmployeeNames(env, members);
|
|
151
151
|
const tokens = [...members, ...names.values()].map((token) => String(token ?? "").trim()).filter((token) => token !== "");
|
|
152
152
|
if (tokens.length > 0) {
|
|
@@ -315,7 +315,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
|
|
|
315
315
|
const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
|
|
316
316
|
const nameLike = items.filter((item) => !/^\d+$/u.test(item));
|
|
317
317
|
if (nameLike.length > 0) {
|
|
318
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
318
|
+
const { resolveMemberIdsByName } = await import("./schedule-4QE2THAP.js");
|
|
319
319
|
const idsByName = await resolveMemberIdsByName(env, nameLike);
|
|
320
320
|
const resolved = items.map((item) => idsByName.get(item) ?? item);
|
|
321
321
|
payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
|
|
@@ -448,7 +448,7 @@ var ebConflictRoom = {
|
|
|
448
448
|
let addressId = String(args.address ?? "").trim();
|
|
449
449
|
let resolvedRoom = null;
|
|
450
450
|
if (!addressId && String(args.room_name ?? "").trim()) {
|
|
451
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
451
|
+
const { resolveAddressRoom } = await import("./create-flow-WYPLBLRK.js");
|
|
452
452
|
const resolved = await resolveAddressRoom(env, String(args.room_name));
|
|
453
453
|
if (!resolved?.id) {
|
|
454
454
|
throw meetingValidationError(
|
|
@@ -584,7 +584,7 @@ async function resolveMemberNames(env, ids) {
|
|
|
584
584
|
const unique = [...new Set(ids.filter((id) => id !== ""))];
|
|
585
585
|
if (unique.length === 0) return map;
|
|
586
586
|
try {
|
|
587
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
587
|
+
const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
|
|
588
588
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
589
589
|
if (!batch) return map;
|
|
590
590
|
const result = await batch.handler({ ids: unique }, env);
|
|
@@ -637,7 +637,7 @@ async function findCommonFreeSlots(env, input) {
|
|
|
637
637
|
let meetings = allMeetings;
|
|
638
638
|
let prefilterSkipped = 0;
|
|
639
639
|
try {
|
|
640
|
-
const { resolveEmployeeNames } = await import("./create-flow-
|
|
640
|
+
const { resolveEmployeeNames } = await import("./create-flow-WYPLBLRK.js");
|
|
641
641
|
const names2 = await resolveEmployeeNames(env, members);
|
|
642
642
|
const tokens = [...members, ...names2.values()].map((token) => String(token ?? "").trim()).filter((token) => token !== "");
|
|
643
643
|
if (tokens.length > 0 && process.env.WEAVER_MEETING_NO_PREFILTER !== "1") {
|
|
@@ -675,7 +675,7 @@ async function findCommonFreeSlots(env, input) {
|
|
|
675
675
|
const scheduleItems = [];
|
|
676
676
|
if (includeSchedule) {
|
|
677
677
|
try {
|
|
678
|
-
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-
|
|
678
|
+
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-4QE2THAP.js");
|
|
679
679
|
const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
|
|
680
680
|
const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
|
|
681
681
|
const flow = await runScheduleConflictFlow(env, {
|
|
@@ -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-4XYRTXRR.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -2,12 +2,12 @@ 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-4XYRTXRR.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3TZURS7M.js";
|
|
11
11
|
|
|
12
12
|
// src/shortcuts/meeting/operations/eb/group-chat.ts
|
|
13
13
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
|
|
|
16
16
|
var GROUP_FIELD = "imchat_groupid";
|
|
17
17
|
var PENDING_DIR = "pending-forms";
|
|
18
18
|
async function buildEsbEnv(env) {
|
|
19
|
-
const { createEsbHost } = await import("./host-
|
|
19
|
+
const { createEsbHost } = await import("./host-2UMNXX5H.js");
|
|
20
20
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
21
21
|
return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
|
|
22
22
|
}
|
|
23
23
|
async function buildImEnv(env) {
|
|
24
|
-
const { createImHost } = await import("./host-
|
|
24
|
+
const { createImHost } = await import("./host-BD44ASOD.js");
|
|
25
25
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
26
26
|
return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
|
|
27
27
|
}
|
|
28
28
|
async function buildWorkflowEnv(env) {
|
|
29
|
-
const { createWorkflowHost } = await import("./host-
|
|
29
|
+
const { createWorkflowHost } = await import("./host-NVDG3NC6.js");
|
|
30
30
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
31
31
|
return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
|
|
32
32
|
}
|
|
@@ -113,7 +113,7 @@ async function findGroupByName(env, name) {
|
|
|
113
113
|
const target = name.trim();
|
|
114
114
|
if (target === "") return null;
|
|
115
115
|
try {
|
|
116
|
-
const { getImOperation } = await import("./registry-
|
|
116
|
+
const { getImOperation } = await import("./registry-AC33ZZVH.js");
|
|
117
117
|
const search = getImOperation("im.group.search");
|
|
118
118
|
const imEnv = await buildImEnv(env);
|
|
119
119
|
const found = await search.handler({ name: target }, imEnv);
|
|
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
159
159
|
if (addressText === "[object Object]") addressText = "";
|
|
160
160
|
if (addressText) {
|
|
161
161
|
try {
|
|
162
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
162
|
+
const { resolveAddressRoom } = await import("./create-flow-WYPLBLRK.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
168
168
|
if (addressText) mainTable.address = addressText;
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
const { getEsbOperation } = await import("./registry-
|
|
171
|
+
const { getEsbOperation } = await import("./registry-FTPUUHWC.js");
|
|
172
172
|
const esbEnv = await buildEsbEnv(env);
|
|
173
173
|
const prepare = getEsbOperation("esb.trigger.prepare");
|
|
174
174
|
const apply = getEsbOperation("esb.trigger.apply");
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-CBXYOEBF.js");
|
|
205
205
|
const session = await env.host.getSession();
|
|
206
206
|
await env.host.request({
|
|
207
207
|
method: "POST",
|
|
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
219
219
|
return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const { getMeetingOperation } = await import("./registry-
|
|
222
|
+
const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
|
|
223
223
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
224
224
|
const read = await detail.handler({ id }, env);
|
|
225
225
|
const main = read?.data?.data ?? read?.data?.main ?? {};
|
|
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
235
235
|
}
|
|
236
236
|
async function searchMyRequests(env, options = {}) {
|
|
237
237
|
try {
|
|
238
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
238
|
+
const { getWorkflowOperation } = await import("./registry-Y2HWS6JS.js");
|
|
239
239
|
const op = getWorkflowOperation("workflow.search");
|
|
240
240
|
const wfEnv = await buildWorkflowEnv(env);
|
|
241
241
|
const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
|
|
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
|
|
|
267
267
|
const target = String(requestId).trim();
|
|
268
268
|
if (target === "") return null;
|
|
269
269
|
try {
|
|
270
|
-
const { getMeetingOperation } = await import("./registry-
|
|
270
|
+
const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
|
|
271
271
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
272
272
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
273
273
|
const page = await list.handler({ pageSize: 30 }, env);
|
|
@@ -7,6 +7,7 @@ var E10_AUTH_REQUIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002$
|
|
|
7
7
|
var E10_XIAOE_RECOVERY_FAILED_MESSAGE = "E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002\u5DF2\u5C1D\u8BD5\u5C0F e \u81EA\u52A8\u91CD\u65B0\u83B7\u53D6\u767B\u5F55\u4FE1\u606F\uFF0C\u4F46\u672A\u53D6\u5F97\u53EF\u7528\u767B\u5F55\u6001\u3002\u8BF7\u5728\u5C0F e \u4E2D\u6062\u590D\u767B\u5F55\u540E\u91CD\u8BD5\u3002";
|
|
8
8
|
var E10_XIAOE_HOST_CREDENTIAL_MISSING_MESSAGE = "E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002\u5C0F e \u7F51\u9875\u7AEF\u672A\u5411\u5F53\u524D\u8FD0\u884C\u73AF\u5883\u6CE8\u5165\u7EDF\u4E00\u767B\u5F55\u51ED\u636E\uFF0C\u81EA\u52A8\u83B7\u53D6\u5DF2\u505C\u6B62\u3002\u8BF7\u68C0\u67E5\u7F51\u9875\u6280\u80FD\u6C99\u7BB1\u7684\u5BBF\u4E3B\u51ED\u636E\u900F\u4F20\u540E\u91CD\u8BD5\u3002";
|
|
9
9
|
var E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE = "\u6682\u65F6\u65E0\u6CD5\u8FDE\u63A5 E10\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
|
|
10
|
+
var E10_XIAOE_TLS_UNTRUSTED_MESSAGE = "E10 \u7F51\u5173\u8BC1\u4E66\u4E0D\u53D7\u4FE1\u4EFB\uFF08\u81EA\u7B7E\u540D\u6216\u79C1\u6709 CA \u7B7E\u53D1\u7684\u8BC1\u4E66\u94FE\uFF09\uFF0C\u81EA\u52A8\u83B7\u53D6\u767B\u5F55\u4FE1\u606F\u5DF2\u505C\u6B62\u3002\u8BF7\u628A\u7F51\u5173 CA \u8BC1\u4E66\uFF08PEM\uFF09\u4EA4\u7ED9 CLI\uFF1A\u8BBE\u7F6E WEAVER_E10_CA_FILE=<CA PEM \u8DEF\u5F84> \u540E\u91CD\u8BD5\uFF1BNode \u4F4E\u4E8E 22.15 \u65F6\u8BE5\u53D8\u91CF\u65E0\u6CD5\u5728\u8FD0\u884C\u65F6\u751F\u6548\uFF0C\u8BF7\u6539\u7528 NODE_EXTRA_CA_CERTS=<CA PEM \u8DEF\u5F84> \u542F\u52A8 CLI\u3002\u4EC5\u5728\u6392\u67E5\u300C\u662F\u4E0D\u662F\u8BC1\u4E66\u95EE\u9898\u300D\u65F6\u53EF\u663E\u5F0F\u8BBE\u7F6E WEAVER_E10_TLS_INSECURE=1 \u4E34\u65F6\u8DF3\u8FC7\u6821\u9A8C\uFF08\u4F1A\u5173\u95ED\u672C\u8FDB\u7A0B\u5168\u90E8\u8BC1\u4E66\u6821\u9A8C\uFF0C\u6362\u7968\u8BF7\u6C42\u643A\u5E26\u7684\u5E73\u53F0\u7968\u636E\u53EF\u80FD\u88AB\u622A\u83B7\uFF0C\u786E\u8BA4\u540E\u7ACB\u523B\u53BB\u6389\uFF09\u3002CLI \u4E0D\u4F1A\u9ED8\u8BA4\u5173\u95ED\u8BC1\u4E66\u6821\u9A8C\u3002";
|
|
10
11
|
var E10_SESSION_EXPIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u5DF2\u5931\u6548\uFF0C\u672C\u6B21\u64CD\u4F5C\u5DF2\u505C\u6B62\u3002${E10_REAUTH_GUIDANCE}`;
|
|
11
12
|
|
|
12
13
|
// src/internal/e10/fetch-timing.ts
|
|
@@ -40,6 +41,7 @@ export {
|
|
|
40
41
|
E10_XIAOE_RECOVERY_FAILED_MESSAGE,
|
|
41
42
|
E10_XIAOE_HOST_CREDENTIAL_MISSING_MESSAGE,
|
|
42
43
|
E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE,
|
|
44
|
+
E10_XIAOE_TLS_UNTRUSTED_MESSAGE,
|
|
43
45
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
44
46
|
createFetchTimingSink,
|
|
45
47
|
runWithFetchTiming,
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
createE10RequestRuntime,
|
|
5
5
|
isE10SessionExpiredResponse,
|
|
6
6
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LRKKKO5A.js";
|
|
8
8
|
import {
|
|
9
9
|
E10_REAUTH_GUIDANCE,
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GTAFCAVP.js";
|
|
12
12
|
import {
|
|
13
13
|
getActiveProfile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I5XB4MZT.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError
|
|
17
17
|
} from "./chunk-UG5G54VL.js";
|
|
@@ -538,6 +538,18 @@ function compactValue(value, arrayLimit, stringLimit, depth = 0, key, path = "",
|
|
|
538
538
|
}
|
|
539
539
|
return value;
|
|
540
540
|
}
|
|
541
|
+
function compactForStdout(value, budgetChars, sink) {
|
|
542
|
+
let current = value;
|
|
543
|
+
let last = [];
|
|
544
|
+
for (const tier of COMPACT_TIERS) {
|
|
545
|
+
const truncations = [];
|
|
546
|
+
current = compactValue(value, tier.array, tier.string, 0, void 0, "", (item) => truncations.push(item));
|
|
547
|
+
last = truncations;
|
|
548
|
+
if (charsOf(current) <= budgetChars) break;
|
|
549
|
+
}
|
|
550
|
+
for (const item of last) sink?.(item);
|
|
551
|
+
return current;
|
|
552
|
+
}
|
|
541
553
|
function compactRecord(value, budgetChars, keepKeys, sink) {
|
|
542
554
|
let current = value;
|
|
543
555
|
let last = [];
|
|
@@ -879,6 +891,7 @@ export {
|
|
|
879
891
|
refMaxCount,
|
|
880
892
|
refMaxBytes,
|
|
881
893
|
charsOf,
|
|
894
|
+
compactForStdout,
|
|
882
895
|
stringifyForStdout,
|
|
883
896
|
Output
|
|
884
897
|
};
|