weaver-work-cli 0.1.59 → 0.1.60
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/{attachment-content-TP6WDNC6.js → attachment-content-I6WHKGR2.js} +3 -3
- package/dist/chunks/{chunk-MQBMMJUV.js → chunk-7U5YHCW7.js} +2 -2
- package/dist/chunks/{chunk-FM7B5BIR.js → chunk-BDBTZVYA.js} +44 -36
- package/dist/chunks/{chunk-I3BFBBP2.js → chunk-CPG6NLN4.js} +1 -1
- package/dist/chunks/{chunk-U2DWV6JC.js → chunk-HHH4K3YY.js} +1 -1
- package/dist/chunks/{chunk-2FHP4PYS.js → chunk-HMIIVM2L.js} +49 -25
- package/dist/chunks/chunk-JFKMPRZB.js +64 -0
- package/dist/chunks/{chunk-XR5BGFNT.js → chunk-P7RXQDCA.js} +10 -4
- package/dist/chunks/{chunk-QNPIY5R6.js → chunk-VLL6JOB4.js} +4 -4
- package/dist/chunks/{chunk-AQOPPNTR.js → chunk-VQWPQTEY.js} +2 -2
- package/dist/chunks/{chunk-CI2RF3AJ.js → chunk-XF7S6FQW.js} +1 -1
- package/dist/chunks/{chunk-ZHPCNM2S.js → chunk-YHSOCGKO.js} +6 -6
- package/dist/chunks/{conflict-Y3ESXYIA.js → conflict-QMDLS2EW.js} +2 -2
- package/dist/chunks/{create-flow-JHQSA6JF.js → create-flow-5ODJ7WJO.js} +6 -6
- package/dist/chunks/{data-ZVS3BWPT.js → data-LVDFIRNG.js} +0 -2
- package/dist/chunks/entry-mode-73BJML22.js +15 -0
- package/dist/chunks/{env-LQBLL3MZ.js → env-OHFS76HV.js} +2 -2
- package/dist/chunks/{factory-X7PN6B3B.js → factory-FRTA2LP4.js} +1 -1
- package/dist/chunks/{group-chat-PPFY7SPV.js → group-chat-KBFRPCR2.js} +3 -3
- package/dist/chunks/{meeting-GMRQZFJP.js → meeting-ARHVWK7G.js} +11 -10
- package/dist/chunks/{minute-doc-JXH3MNC7.js → minute-doc-547KSYKR.js} +2 -2
- package/dist/chunks/{registry-WZCCBI5L.js → registry-H5HQ5QNH.js} +11 -10
- package/dist/chunks/{room-recommend-CKU5NF2E.js → room-recommend-3UBROMZE.js} +4 -4
- package/dist/chunks/{schedule-DEFAO2RY.js → schedule-FTUQML6O.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/shortcuts/data/operations/ds.js +0 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +32 -1
- package/dist/shortcuts/meeting/operations/eb/entry-mode.js +62 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +11 -0
- package/dist/shortcuts/meeting/operations/registry.js +4 -0
- package/package.json +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +14 -3
- package/dist/chunks/{ebuilder-form-TWSXS5NA.js → ebuilder-form-7WA6X6ZI.js} +3 -3
|
@@ -248,6 +248,8 @@ export async function recommendRooms(env, input) {
|
|
|
248
248
|
const usable = roomData.rooms.filter((room) => room.status === '0');
|
|
249
249
|
let busyCount = 0;
|
|
250
250
|
const candidates = [];
|
|
251
|
+
/** 描述/名称命中「接待」定位的房间 id:带客户时作为硬筛选池,而不是加分项。 */
|
|
252
|
+
const purposeHitIds = new Set();
|
|
251
253
|
for (const room of usable) {
|
|
252
254
|
const isBusy = busy.ids.has(room.id);
|
|
253
255
|
if (isBusy) {
|
|
@@ -316,6 +318,8 @@ export async function recommendRooms(env, input) {
|
|
|
316
318
|
if (hostHit) {
|
|
317
319
|
reasons.push(`带客户优先:${descHit ? `描述含「${desc.slice(0, 30)}」` : `名称含「${hostHit[1]}」`}`);
|
|
318
320
|
score += 35;
|
|
321
|
+
if (!isBusy)
|
|
322
|
+
purposeHitIds.add(room.id);
|
|
319
323
|
}
|
|
320
324
|
}
|
|
321
325
|
if (isBusy) {
|
|
@@ -339,6 +343,13 @@ export async function recommendRooms(env, input) {
|
|
|
339
343
|
reasons,
|
|
340
344
|
});
|
|
341
345
|
}
|
|
346
|
+
// 定位优先(带客户场景):只要库里有「接待」定位的房间,就只在这些房间里排序。
|
|
347
|
+
// 常规/容量分再高也不能顶掉定位,否则会把客户安排到普通茶室。
|
|
348
|
+
if (requirement.hasCustomer === true && purposeHitIds.size > 0) {
|
|
349
|
+
const preferred = candidates.filter((candidate) => purposeHitIds.has(candidate.id));
|
|
350
|
+
if (preferred.length > 0)
|
|
351
|
+
candidates.splice(0, candidates.length, ...preferred);
|
|
352
|
+
}
|
|
342
353
|
candidates.sort((left, right) => {
|
|
343
354
|
if (right.score !== left.score)
|
|
344
355
|
return right.score - left.score;
|
|
@@ -66,6 +66,10 @@ function buildRegistry() {
|
|
|
66
66
|
handler: async (args, env) => {
|
|
67
67
|
const startedAt = Date.now();
|
|
68
68
|
const result = await original(args, env);
|
|
69
|
+
const entryResolved = env?.__entryResolved;
|
|
70
|
+
if (entryResolved && result && typeof result === 'object') {
|
|
71
|
+
result.data = { ...(result.data ?? {}), entryResolved };
|
|
72
|
+
}
|
|
69
73
|
if (args?.debugTimings === true && result && typeof result === 'object') {
|
|
70
74
|
const marks = { ...(env?.__meetingTimings ?? {}) };
|
|
71
75
|
result.data = { ...(result.data ?? {}), timings: { ...marks, totalMs: Date.now() - startedAt } };
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ display_name_en: Weaver E10 Meeting Management
|
|
|
5
5
|
description: "泛微 E10 会议管理:查会议、预约建会(推荐会议室、查冲突与空闲时段)、改期/改地点/改参会人、取消删除、流程建会、会议室查询与推荐、生成邀请函、读取会议附件、回执签到、纪要与决议任务、参会二维码。详见 description_zh。"
|
|
6
6
|
description_zh: "泛微 E10 会议管理:查询会议与详情、预约建会(自动推荐会议室、检测参会人冲突与日程空闲、楼层定位)、改期/换地点/改参会人、取消删除、流程建会、生成邀请函(可自动写入表单文档字段)、会议室查询与推荐、纪要/议题/决议、附件读取、回执签到、参会二维码。认证与会话由 weaver-e10-shared 提供。"
|
|
7
7
|
description_en: "Weaver E10 meeting management: [Meetings] query today/week/my meetings and details, book meetings with automatic room recommendation, attendee conflict and calendar-availability checks (plus same-day alternative slots), reschedule / change room / change attendees, cancel, delete; flow-based booking with automatic invitation when the app only allows workflow creation; [Rooms] occupancy queries and smart recommendation by capacity, equipment and personal usage; [Invitation] generate invitation docx from real meeting data; [Content] list and read meeting/topic attachments and extract document text; receipts, sign-in, minutes, topics, decisions and decision tasks; [QR] render text into attendee/sign-in QR images. Auth and session are provided by weaver-e10-shared."
|
|
8
|
-
version: 2.55.
|
|
8
|
+
version: 2.55.55
|
|
9
9
|
author: 泛微网络科技股份有限公司
|
|
10
10
|
agent_created: true
|
|
11
11
|
requires:
|
|
@@ -179,9 +179,20 @@ CLI 能正常返回业务结果 = 登录有效;只有返回 `auth not found` /
|
|
|
179
179
|
⛔ **不要用 `meeting.eb.room.list` 拉全量再自己筛**:全量清单约 240KB,会触发 `resultPersisted` 落盘
|
|
180
180
|
(stdout 只剩 10 行预览),模型去读 refs 文件常常"结构对不上",白耗 2~3 轮。
|
|
181
181
|
真要全量清单:`meeting.eb.room.list` 后按提示用 `--input-ref <refId> --pick data.rows` 取,**不要 Read 那个文件**。
|
|
182
|
-
**带客户时**(用户话里出现「接待/招待/贵宾/客户来访」或传了 `crm_members
|
|
183
|
-
|
|
182
|
+
**带客户时**(用户话里出现「接待/招待/贵宾/客户来访」或传了 `crm_members`)先按**会议室定位**筛选:
|
|
183
|
+
只在名称/描述含「接待/招待/贵宾/商务」且该时段空闲的房间里排序,**不再和普通茶室比常用/容量分**。
|
|
184
|
+
库里没有空闲的接待类房间时,才退回全部房间并明确提示"无空闲接待房,以下为普通会议室"。
|
|
185
|
+
只有「客户」二字不算接待类(避免培训室误判)。
|
|
184
186
|
只想看全部房间用 `meeting.eb.room.list`(`statusText=正常` 才是可用)。
|
|
187
|
+
- **用户明确说「发起流程 / 创建流程 / 直接发起表单」→ 不弹确认,但仍要推荐会议室**:直接 `create.flow.prepare` 带 `skipPreflight:true`(或调流程工具 `direct_form`);该开关**只跳过时段/房间候选与冲突确认**,会议室仍自动推荐并填入(带客户时按接待类优先)。缺字段由表单/服务端提示,不提前拦。
|
|
188
|
+
- **建会入口先问一次(且只问一次)**:选项「① 直接发起流程」「② 推荐会议室 / 人员冲突检测」。
|
|
189
|
+
- ⛔ **先看上下文再决定问不问**:若已有流程工具返回 `choice=assist`,或用户已明确说"用会议助手 / 帮我推荐 / 走你们的逻辑",→ **禁止再问**,直接走②的业务逻辑。
|
|
190
|
+
- 用户已说"直接发起流程 / 创建流程 / 自己填表单" → 走 `skipPreflight`,不预检、不推荐。
|
|
191
|
+
- 其余情况 → 用选项控件问一次;选②后按下列三步执行,**中途不得再弹同类选择**。
|
|
192
|
+
- 流程工具返回 `choice` 后先落标记:`meeting.entry.record`(`choice` 传 `assist` 或 `direct_form`,`source` 传 `flow_tool`);`prepare/quick` 返回 `entryResolved` 时**禁止再问入口**。
|
|
193
|
+
- 直接调用会议 skill(没经过工具)时没有标记,按上面规则问一次,并 `meeting.entry.record`(`source` 传 `meeting_skill`)。
|
|
194
|
+
- 调 `create.flow.prepare/quick` 时把入口结论带上:`entryMode:"assist"`(选②)或 `"direct_form"`(选①),便于追溯且避免二次询问。
|
|
195
|
+
- 时间仍按「上午 09:00–12:00 / 下午 13:00–18:00 / 晚上 18:00–21:00」直接定,不因入口询问而改成时段候选。
|
|
185
196
|
- **⛔ 建会只走这三步,不要再加任何前置查询(不要查 baseSet、不要查 schema、不要先查会议室/冲突)**:
|
|
186
197
|
```bash
|
|
187
198
|
# ① 预检:按「时间候选 → 会议室候选 → 冲突 → 流程」的顺序逐关推进,全部确认后才给确认摘要(不提交)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createEbuilderFormHost
|
|
5
|
+
} from "./chunk-5N222HK6.js";
|
|
3
6
|
import {
|
|
4
7
|
createEbuilderFormContinuationSigner
|
|
5
8
|
} from "./chunk-YWX377BY.js";
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
ebuilderFormManifest,
|
|
8
11
|
executeEbuilderFormOperation
|
|
9
12
|
} from "./chunk-G7PQWD4L.js";
|
|
10
|
-
import {
|
|
11
|
-
createEbuilderFormHost
|
|
12
|
-
} from "./chunk-5N222HK6.js";
|
|
13
13
|
import {
|
|
14
14
|
ebuilderValidationError
|
|
15
15
|
} from "./chunk-Z3GDFVJR.js";
|