weaver-work-cli 0.1.56 → 0.1.58
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-QGM5MLQE.js → attachment-content-TP6WDNC6.js} +3 -3
- package/dist/chunks/{caizhilian-QJ4FLSQJ.js → caizhilian-5NM4X5HG.js} +1 -1
- package/dist/chunks/{chunk-7EBV7Q3R.js → chunk-2FHP4PYS.js} +50 -27
- package/dist/chunks/{chunk-DVR2EDUU.js → chunk-6YWHRXEQ.js} +17 -1
- package/dist/chunks/{chunk-FDAJC7R4.js → chunk-AQOPPNTR.js} +2 -2
- package/dist/chunks/{chunk-6DVL5IN5.js → chunk-CI2RF3AJ.js} +7 -4
- package/dist/chunks/{chunk-WHJIUKJW.js → chunk-FM7B5BIR.js} +206 -39
- package/dist/chunks/{chunk-L2LMBFG5.js → chunk-I3BFBBP2.js} +1 -1
- package/dist/chunks/{chunk-6MS3RLPO.js → chunk-MQBMMJUV.js} +2 -2
- package/dist/chunks/{chunk-XU3FL3AW.js → chunk-QNPIY5R6.js} +4 -4
- package/dist/chunks/{chunk-AHJZIMCX.js → chunk-U2DWV6JC.js} +1 -1
- package/dist/chunks/{chunk-WMB3SMXI.js → chunk-WINR2Q6K.js} +27 -4
- package/dist/chunks/{chunk-UI66EMOR.js → chunk-XR5BGFNT.js} +4 -4
- package/dist/chunks/{chunk-TJUAGZU7.js → chunk-ZHPCNM2S.js} +6 -6
- package/dist/chunks/{conflict-VAFFPUY3.js → conflict-Y3ESXYIA.js} +2 -2
- package/dist/chunks/{create-flow-TVYE3IOH.js → create-flow-JHQSA6JF.js} +6 -6
- package/dist/chunks/{data-WVICO3DT.js → data-ZVS3BWPT.js} +3 -5
- package/dist/chunks/{env-BVVFIN4P.js → env-LQBLL3MZ.js} +2 -2
- package/dist/chunks/{factory-RCQ36LLE.js → factory-X7PN6B3B.js} +1 -1
- package/dist/chunks/{group-chat-YFZDUUY3.js → group-chat-PPFY7SPV.js} +3 -3
- package/dist/chunks/{invoice-V6KD4TZE.js → invoice-7JGSEWT5.js} +18 -6
- package/dist/chunks/{lazy-dispatch-JHGFCKJN.js → lazy-dispatch-GCA6HDOB.js} +1 -1
- package/dist/chunks/{meeting-JOHV4RH3.js → meeting-GMRQZFJP.js} +16 -12
- package/dist/chunks/{minute-doc-JLS4KMFZ.js → minute-doc-JXH3MNC7.js} +5 -5
- package/dist/chunks/{operations-ZPWBMYKE.js → operations-6NXJ7RTE.js} +1 -1
- package/dist/chunks/{registry-LITYOH2W.js → registry-WZCCBI5L.js} +10 -10
- package/dist/chunks/{room-recommend-62MECG4J.js → room-recommend-CKU5NF2E.js} +4 -4
- package/dist/chunks/{schedule-6QRXIBGU.js → schedule-DEFAO2RY.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/internal/e10/auth/commands.js +29 -1
- package/dist/shortcuts/caizhilian/operations/files.js +4 -1
- package/dist/shortcuts/caizhilian/operations/handlers/document.js +33 -4
- package/dist/shortcuts/data/index.js +0 -1
- package/dist/shortcuts/data/manifest.js +1 -1
- package/dist/shortcuts/data/operations/module.js +2 -3
- package/dist/shortcuts/invoice/manifest.js +8 -3
- package/dist/shortcuts/invoice/operations/reim.js +10 -3
- package/dist/shortcuts/meeting/host.js +6 -1
- package/dist/shortcuts/meeting/minute-doc.js +3 -2
- package/dist/shortcuts/meeting/operations/compose-outcome.js +4 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +29 -3
- package/dist/shortcuts/meeting/operations/eb/crm-search.js +20 -0
- package/dist/shortcuts/meeting/operations/eb/decision-task-reassign.js +113 -0
- package/dist/shortcuts/meeting/operations/eb/decision.js +41 -1
- package/dist/shortcuts/meeting/operations/eb/factory.js +4 -4
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb-fallback.js +3 -0
- package/dist/shortcuts/meeting/operations/registry.js +14 -1
- package/dist/shortcuts/meeting/operations/shared.js +4 -0
- package/docs/data.md +1 -1
- package/docs/e10-auth.md +5 -0
- package/docs/invoice.md +1 -1
- package/package.json +1 -1
- package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
- package/skills/weaver-e10-caizhilian/references/document.md +1 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +2 -2
- package/skills/weaver-e10-data/references/config-center.md +0 -1
- package/skills/weaver-e10-jucailin/SKILL.md +6 -6
- package/skills/weaver-e10-jucailin/references/recruit-read.md +3 -2
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-write.md +15 -8
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +3 -1
- package/skills/weaver-e10-meeting/SKILL.md +14 -4
- package/skills/weaver-e10-recruit-stage/SKILL.md +42 -14
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +61 -20
- package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +194 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +5 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +4 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +1 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +25 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +3 -2
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +23 -13
- package/skills/weaver-e10-yepiaotong.zip +0 -0
|
@@ -204,9 +204,16 @@ export class InvoiceReimRequestsListOperation {
|
|
|
204
204
|
widened = true;
|
|
205
205
|
result = await query(start);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
return
|
|
207
|
+
const projected = projectRequestListResult(result);
|
|
208
|
+
assertBusinessSuccess(projected, `${this.name}_failed`, '接口返回业务失败');
|
|
209
|
+
return {
|
|
210
|
+
status: 'COMPLETE',
|
|
211
|
+
data: {
|
|
212
|
+
result: projected,
|
|
213
|
+
workflow: workflow(this.name, 'COMPLETE'),
|
|
214
|
+
query: { cusCreateDateStart: start, cusCreateDateEnd: endDate, widened },
|
|
215
|
+
},
|
|
216
|
+
};
|
|
210
217
|
}
|
|
211
218
|
}
|
|
212
219
|
export class InvoiceReimWorkflowResolveOperation {
|
|
@@ -209,7 +209,12 @@ export function createMeetingHost(ctx, dependencies = {}) {
|
|
|
209
209
|
exitCode: 1,
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
// 「接口类型不一致」是 EB 侧动作流类型配错(如 update 接口配成"新建数据"),
|
|
213
|
+
// 不是参数问题:直接给可执行提示,省得调用方反复试参数。
|
|
214
|
+
const typeMismatchHint = /接口类型不一致/.test(message)
|
|
215
|
+
? ';EB 应用里该动作流类型与调用方式不符:update 类接口需配成「修改数据」,create 类需配成「新建数据」'
|
|
216
|
+
: '';
|
|
217
|
+
throw new MeetingCliError('api', 'business_error', `${message}${typeMismatchHint}`, {
|
|
213
218
|
code,
|
|
214
219
|
details: { code, message },
|
|
215
220
|
exitCode: 1,
|
|
@@ -93,7 +93,8 @@ export async function ensureMinuteDoc(env, input) {
|
|
|
93
93
|
});
|
|
94
94
|
const dir = join(meetingStateDir(env.ctx), 'minute-docs');
|
|
95
95
|
await mkdir(dir, { recursive: true });
|
|
96
|
-
|
|
96
|
+
// 文档名取 basename(file_path):文件名必须是「纪要标题」,不能是 <id>.docx
|
|
97
|
+
const filePath = join(dir, `${fileName}.docx`);
|
|
97
98
|
await writeFile(filePath, buf);
|
|
98
99
|
const upload = await getMeetingOperation('meeting.attachment.upload').handler({ file: filePath, name: `${fileName}.docx`, module: 'meeting', refId: mtId }, env);
|
|
99
100
|
const fileId = String(upload?.data?.fileId ?? '').trim();
|
|
@@ -135,7 +136,7 @@ export async function ensureMinuteDoc(env, input) {
|
|
|
135
136
|
id,
|
|
136
137
|
mt_id: mtId,
|
|
137
138
|
doc_file: fileId,
|
|
138
|
-
...(docId ? { mt_minutes:
|
|
139
|
+
...(docId ? { mt_minutes: docId } : {}),
|
|
139
140
|
file_type: '0',
|
|
140
141
|
minutes_status: '2',
|
|
141
142
|
}, env);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { meetingSuccess } from './types.js';
|
|
9
9
|
import { meetingValidationError } from '../errors.js';
|
|
10
|
+
import { meetingUrlMap } from './eb/meeting-link.js';
|
|
10
11
|
const composeOutcome = {
|
|
11
12
|
name: 'meeting.outcome.compose',
|
|
12
13
|
resource: 'outcome',
|
|
@@ -159,9 +160,12 @@ const composeOutcome = {
|
|
|
159
160
|
detail1: details,
|
|
160
161
|
}, env);
|
|
161
162
|
const decisionApplied = await publishApply.handler({ confirm: true, continuation: decisionPrepared?.data?.continuation }, env);
|
|
163
|
+
const urlMap = await meetingUrlMap(env, [mtId]);
|
|
164
|
+
const meetingUrl = urlMap.get(mtId) ?? '';
|
|
162
165
|
return meetingSuccess('meeting.outcome.compose', {
|
|
163
166
|
status: 'COMPLETE',
|
|
164
167
|
mtId,
|
|
168
|
+
...(meetingUrl ? { meetingUrl } : {}),
|
|
165
169
|
minuteId,
|
|
166
170
|
minuteDoc,
|
|
167
171
|
minutesStatus: '2',
|
|
@@ -1093,6 +1093,18 @@ export async function resolveWorkflowId(env, args) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
// 固化优先(2026-10-30):自用固定流程,省一次设置查询,也不受 mt_new_wf 配置影响。
|
|
1095
1095
|
// 只有登录环境命中固化配置才启用(避免拿生产的流程 id 去撞测试环境)。
|
|
1096
|
+
// 流程记忆优先:上次成功用过的流程直接沿用,不读应用设置、不探测权限。
|
|
1097
|
+
if (String(args.flowChoice ?? '') !== 'ask') {
|
|
1098
|
+
const remembered = await readFlowPick(env).catch(() => null);
|
|
1099
|
+
if (remembered?.workflowId) {
|
|
1100
|
+
return {
|
|
1101
|
+
workflowId: remembered.workflowId,
|
|
1102
|
+
candidates: [remembered.workflowId],
|
|
1103
|
+
source: 'memory',
|
|
1104
|
+
...(remembered.name ? { label: remembered.name } : {}),
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1096
1108
|
const fixed = await fixedFlowIdsForEnv(env);
|
|
1097
1109
|
if (fixed.ids.length > 0) {
|
|
1098
1110
|
return {
|
|
@@ -1298,6 +1310,9 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1298
1310
|
},
|
|
1299
1311
|
}, { required: ['mt_name'] }),
|
|
1300
1312
|
handler: async (args, env) => {
|
|
1313
|
+
// 预检各阶段耗时(debugTimings:true 时随结果返回)
|
|
1314
|
+
const marks = (env.__meetingTimings ??= {});
|
|
1315
|
+
const mark = (key, from) => { marks[key] = (marks[key] ?? 0) + (Date.now() - from); };
|
|
1301
1316
|
// ⚠️ 2026-10-30 顺序调整:**先确认四要素(名称 / 时间 / 参会人 / 地点),最后才定流程**。
|
|
1302
1317
|
// 流程探测与选择整体后移到房间闸门之后(见下方「流程闸门」);这里先占位,
|
|
1303
1318
|
// 好让前面的时间/会议室选择分支仍能带出"当前用的是哪条流程"(此刻通常还是空的)。
|
|
@@ -1756,9 +1771,11 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1756
1771
|
includeSchedule: true,
|
|
1757
1772
|
}).catch(noteFailure('参会人**日程空闲**检测'))
|
|
1758
1773
|
: Promise.resolve(null);
|
|
1774
|
+
const enrichStarted = Date.now();
|
|
1759
1775
|
const [roomRec, memberConflict, free, roomConflict] = await Promise.all([
|
|
1760
1776
|
roomTask, conflictTask, availabilityTask, roomConflictTask,
|
|
1761
1777
|
]);
|
|
1778
|
+
mark('enrichMs', enrichStarted);
|
|
1762
1779
|
timings.parallelMs = Date.now() - startedAt;
|
|
1763
1780
|
// 参会人冲突 / 共同空闲时段**已经并行算完了**。即使接下来要先让用户选会议室,
|
|
1764
1781
|
// 也必须把这两项结论一起交出去 —— 否则用户选完房才知道时间撞了,等于白选一次
|
|
@@ -2048,7 +2065,9 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2048
2065
|
? '调用方传入'
|
|
2049
2066
|
: (resolved.source === 'fixed'
|
|
2050
2067
|
? `固化配置(${resolved.label ?? '默认'})`
|
|
2051
|
-
: '
|
|
2068
|
+
: (resolved.source === 'memory'
|
|
2069
|
+
? `沿用上次使用的流程${resolved.label ? `(${resolved.label})` : ''}`
|
|
2070
|
+
: '应用设置配置'));
|
|
2052
2071
|
let probes = [];
|
|
2053
2072
|
let loadedForms = new Map();
|
|
2054
2073
|
// 固化自用场景:多个流程都能发起时自动取优先级最高的,不再打断用户去选(2026-10-30 要求)。
|
|
@@ -2056,7 +2075,9 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2056
2075
|
if (!workflowId && candidates.length > 1) {
|
|
2057
2076
|
// 有多个建会流程候选:**逐个探测当前人员能否发起**(createForm 能载入 = 有发起权限)。
|
|
2058
2077
|
// 并行探测:每个流程一次 createForm(内含多次 OA 请求),串行会成倍放大等待。
|
|
2078
|
+
const probeStarted = Date.now();
|
|
2059
2079
|
let probed = await probeWorkflowCandidates(env, candidates);
|
|
2080
|
+
mark('flowProbeMs', probeStarted);
|
|
2060
2081
|
probes = probed.probes;
|
|
2061
2082
|
loadedForms = probed.loadedForms;
|
|
2062
2083
|
let launchable = probes.filter((probe) => probe.launchable);
|
|
@@ -2178,7 +2199,9 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2178
2199
|
let form = loadedForms.get(workflowId);
|
|
2179
2200
|
if (!form) {
|
|
2180
2201
|
try {
|
|
2202
|
+
const formStarted = Date.now();
|
|
2181
2203
|
form = await loadCreateForm(env, workflowId);
|
|
2204
|
+
mark('formLoadMs', formStarted);
|
|
2182
2205
|
}
|
|
2183
2206
|
catch (error) {
|
|
2184
2207
|
throw meetingValidationError('flow_not_launchable', `当前账号**没有发起建会流程的权限**(或流程已停用):建会流程 ${workflowId} 的表单载入失败 —— `
|
|
@@ -2247,10 +2270,13 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2247
2270
|
const value = main[id];
|
|
2248
2271
|
if (value === undefined || value === null || value === '')
|
|
2249
2272
|
continue;
|
|
2250
|
-
|
|
2273
|
+
// Ebuilder 组件(如「参会客户」)的 isMultiple 可能缺省,但服务端只认数组:
|
|
2274
|
+
// 缺省时不要按单选折叠成对象,否则提交报"不是数组"。
|
|
2275
|
+
const keepArray = field.isMultiple === true || String(field.componentKey ?? '') === 'Ebuilder';
|
|
2276
|
+
if (keepArray && !Array.isArray(value)) {
|
|
2251
2277
|
main[id] = [value];
|
|
2252
2278
|
}
|
|
2253
|
-
else if (
|
|
2279
|
+
else if (!keepArray && Array.isArray(value) && value.length === 1) {
|
|
2254
2280
|
main[id] = value[0];
|
|
2255
2281
|
}
|
|
2256
2282
|
}
|
|
@@ -51,6 +51,26 @@ function pickFirst(row, keys) {
|
|
|
51
51
|
const value = row[key];
|
|
52
52
|
if (value === undefined || value === null)
|
|
53
53
|
continue;
|
|
54
|
+
// ESB 常把单值也包成数组(`mc: ["客户名"]`、`sjID: ["5750…"]`):
|
|
55
|
+
// 数组要取首个非空元素,不能当对象跳过(以前这里 continue ⇒ 数据被吞成空行)。
|
|
56
|
+
if (Array.isArray(value)) {
|
|
57
|
+
const first = value.find((item) => item !== undefined && item !== null && String(item).trim() !== '');
|
|
58
|
+
if (first === undefined)
|
|
59
|
+
continue;
|
|
60
|
+
if (typeof first === 'object') {
|
|
61
|
+
const nested = asRecord(first);
|
|
62
|
+
if (nested) {
|
|
63
|
+
const inner = pickFirst(nested, keys) || pickFirst(nested, ['id', 'name']);
|
|
64
|
+
if (inner)
|
|
65
|
+
return inner;
|
|
66
|
+
}
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
const text = String(first).trim();
|
|
70
|
+
if (text !== '')
|
|
71
|
+
return text;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
54
74
|
if (typeof value === 'object') {
|
|
55
75
|
const nested = asRecord(value);
|
|
56
76
|
if (nested) {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 改派决议任务执行人:update_mt_decision_task 只认 detail1 的完成状态,
|
|
3
|
+
* **改不了执行人**(返回成功但数据不变)。可行路径只有「建新任务 + 删旧任务」。
|
|
4
|
+
*/
|
|
5
|
+
import { meetingSuccess } from '../types.js';
|
|
6
|
+
import { meetingValidationError } from '../../errors.js';
|
|
7
|
+
function fieldId(value) {
|
|
8
|
+
if (Array.isArray(value)) {
|
|
9
|
+
const first = value[0];
|
|
10
|
+
return String(first?.id ?? '').trim();
|
|
11
|
+
}
|
|
12
|
+
if (value && typeof value === 'object')
|
|
13
|
+
return String(value.id ?? '').trim();
|
|
14
|
+
return String(value ?? '').trim();
|
|
15
|
+
}
|
|
16
|
+
async function resolveEmployeeId(env, token) {
|
|
17
|
+
const value = String(token ?? '').trim();
|
|
18
|
+
if (/^\d{8,}$/.test(value))
|
|
19
|
+
return { id: value, name: value };
|
|
20
|
+
const { hrmEmployeeOperations } = await import('../../../hrm/operations/employee.js');
|
|
21
|
+
const query = hrmEmployeeOperations.find((operation) => operation.name === 'hrm.employee.query');
|
|
22
|
+
if (!query)
|
|
23
|
+
throw meetingValidationError('employee_query_unavailable', '无法解析姓名:员工查询操作不可用');
|
|
24
|
+
const found = await query.handler({ keyword: value, pageSize: 20 }, env);
|
|
25
|
+
const rows = (found?.data?.rows ?? []);
|
|
26
|
+
const exact = rows.filter((row) => String(row.name ?? '').trim() === value);
|
|
27
|
+
if (exact.length === 1)
|
|
28
|
+
return { id: String(exact[0].id), name: value };
|
|
29
|
+
if (rows.length === 1)
|
|
30
|
+
return { id: String(rows[0].id), name: String(rows[0].name ?? value) };
|
|
31
|
+
throw meetingValidationError(exact.length > 1 ? 'employee_ambiguous' : 'employee_not_found', exact.length > 1 ? `姓名「${value}」命中多人,请改用员工 id` : `未找到员工「${value}」`, { candidates: (exact.length > 1 ? exact : rows).slice(0, 10).map((row) => ({ id: row.id, name: row.name })) });
|
|
32
|
+
}
|
|
33
|
+
const reassign = {
|
|
34
|
+
name: 'meeting.eb.decisionTask.reassign',
|
|
35
|
+
resource: 'eb',
|
|
36
|
+
method: 'meeting.eb.decisionTask.reassign',
|
|
37
|
+
action: 'meeting.eb.decisionTask.reassign',
|
|
38
|
+
summary: '改派决议任务执行人(建新任务+删旧任务;update 接口改不了执行人)',
|
|
39
|
+
capability: 'eb.decisionTask',
|
|
40
|
+
risk: 'high-risk-write',
|
|
41
|
+
requiresConfirmation: true,
|
|
42
|
+
inputSchema: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
additionalProperties: false,
|
|
45
|
+
properties: {
|
|
46
|
+
confirm: { type: 'boolean', description: '可省略(默认执行);传 false 阻止' },
|
|
47
|
+
mt_id: { type: 'string', minLength: 1 },
|
|
48
|
+
to_executor: { type: 'string', minLength: 1, description: '新执行人:姓名或员工 id' },
|
|
49
|
+
from_executor: { type: 'string', description: '只改派原执行人是此人(姓名/id)的任务;省略=全部' },
|
|
50
|
+
ids: { type: 'array', items: { type: 'string' }, description: '只改指定任务 id' },
|
|
51
|
+
},
|
|
52
|
+
required: ['mt_id', 'to_executor'],
|
|
53
|
+
},
|
|
54
|
+
handler: async (args, env) => {
|
|
55
|
+
if (args.confirm === false)
|
|
56
|
+
throw meetingValidationError('confirmation_required', 'confirm=false,未执行');
|
|
57
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
58
|
+
const mtId = String(args.mt_id ?? '').trim();
|
|
59
|
+
const target = await resolveEmployeeId(env, String(args.to_executor ?? ''));
|
|
60
|
+
const from = String(args.from_executor ?? '').trim();
|
|
61
|
+
const fromId = from === '' ? '' : (await resolveEmployeeId(env, from)).id;
|
|
62
|
+
const onlyIds = new Set((args.ids ?? []).map((id) => String(id).trim()).filter((id) => id !== ''));
|
|
63
|
+
const listOp = getMeetingOperation('meeting.eb.decisionTask.list');
|
|
64
|
+
const listed = await listOp.handler({ mt_id: mtId, all: true }, env);
|
|
65
|
+
const rows = (listed?.data?.rows ?? [])
|
|
66
|
+
.map((row) => row?.mainTable ?? row)
|
|
67
|
+
.filter((row) => onlyIds.size === 0 || onlyIds.has(String(row?.id ?? '')))
|
|
68
|
+
.filter((row) => fromId === '' || fieldId(row?.executors) === fromId);
|
|
69
|
+
const createPrepare = getMeetingOperation('meeting.eb.decisionTask.create.prepare');
|
|
70
|
+
const createApply = getMeetingOperation('meeting.eb.decisionTask.create.apply');
|
|
71
|
+
const deletePrepare = getMeetingOperation('meeting.eb.decisionTask.delete.prepare');
|
|
72
|
+
const deleteApply = getMeetingOperation('meeting.eb.decisionTask.delete.apply');
|
|
73
|
+
const created = [];
|
|
74
|
+
const failed = [];
|
|
75
|
+
for (const row of rows) {
|
|
76
|
+
const oldId = String(row?.id ?? '').trim();
|
|
77
|
+
const title = String(row?.decision_title ?? '').trim();
|
|
78
|
+
try {
|
|
79
|
+
const prepared = await createPrepare.handler({
|
|
80
|
+
mt_id: mtId,
|
|
81
|
+
relate_decision: fieldId(row?.relate_decision),
|
|
82
|
+
decision_title: title,
|
|
83
|
+
executors: target.id,
|
|
84
|
+
rummager: fieldId(row?.rummager) || target.id,
|
|
85
|
+
begin_datetime: String(row?.begin_datetime ?? ''),
|
|
86
|
+
end_datetime: String(row?.end_datetime ?? ''),
|
|
87
|
+
detail1: [{ executor: target.id, finish_status: '0', finish_date: '' }],
|
|
88
|
+
}, env);
|
|
89
|
+
const applied = await createApply.handler({ confirm: true, continuation: prepared?.data?.continuation }, env);
|
|
90
|
+
const newId = String((applied?.data?.dataIds ?? [])[0] ?? '').trim();
|
|
91
|
+
if (!newId)
|
|
92
|
+
throw new Error('创建未返回 id');
|
|
93
|
+
const delPrepared = await deletePrepare.handler({ id: oldId }, env);
|
|
94
|
+
await deleteApply.handler({ confirm: true, continuation: delPrepared?.data?.continuation }, env);
|
|
95
|
+
created.push({ oldId, newId, title });
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
failed.push({ id: oldId, title, error: String(error?.message ?? error).slice(0, 160) });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return meetingSuccess('meeting.eb.decisionTask.reassign', {
|
|
102
|
+
status: failed.length === 0 ? 'COMPLETE' : (created.length > 0 ? 'PARTIAL' : 'FAILED'),
|
|
103
|
+
mtId,
|
|
104
|
+
toExecutor: target,
|
|
105
|
+
matched: rows.length,
|
|
106
|
+
reassigned: created.length,
|
|
107
|
+
created,
|
|
108
|
+
failed,
|
|
109
|
+
hint: '回查 decisionTask.list 看 executors 是否为新人;旧任务已删除',
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
export const meetingEbDecisionTaskReassignOperations = [reassign];
|
|
@@ -169,7 +169,47 @@ function normalizeDecisionRows(input) {
|
|
|
169
169
|
throw meetingValidationError('invalid_detail', 'detail1 必须是数组,每个元素为一条决议明细', { node: 'detail1' });
|
|
170
170
|
}
|
|
171
171
|
return input.map((row, index) => {
|
|
172
|
-
const source = (row && typeof row === 'object' ? row : {});
|
|
172
|
+
const source = (row && typeof row === 'object' ? { ...row } : {});
|
|
173
|
+
// 字段别名容错:模型常写 title/executor/start/end,统一映射成 CLI 字段名,
|
|
174
|
+
// 避免"字段名需要调整"再回一轮。
|
|
175
|
+
const pick = (...names) => names
|
|
176
|
+
.map((name) => source[name])
|
|
177
|
+
.find((value) => value !== undefined && value !== null && String(value).trim() !== '');
|
|
178
|
+
if (source.decision_title === undefined) {
|
|
179
|
+
const title = pick('title', 'task', 'task_title', 'decisionTitle');
|
|
180
|
+
if (title !== undefined)
|
|
181
|
+
source.decision_title = title;
|
|
182
|
+
}
|
|
183
|
+
if (source.executors === undefined) {
|
|
184
|
+
const executors = pick('executor', 'owner', 'assignee');
|
|
185
|
+
if (executors !== undefined)
|
|
186
|
+
source.executors = Array.isArray(executors) ? executors.join(',') : executors;
|
|
187
|
+
}
|
|
188
|
+
if (source.begin_datetime === undefined) {
|
|
189
|
+
const begin = pick('start', 'begin', 'start_time', 'startTime');
|
|
190
|
+
if (begin !== undefined)
|
|
191
|
+
source.begin_datetime = begin;
|
|
192
|
+
}
|
|
193
|
+
if (source.end_datetime === undefined) {
|
|
194
|
+
const end = pick('end', 'due', 'deadline', 'end_time', 'endTime');
|
|
195
|
+
if (end !== undefined)
|
|
196
|
+
source.end_datetime = end;
|
|
197
|
+
}
|
|
198
|
+
if (source.rummager === undefined) {
|
|
199
|
+
const checker = pick('checker', 'reviewer');
|
|
200
|
+
if (checker !== undefined)
|
|
201
|
+
source.rummager = checker;
|
|
202
|
+
}
|
|
203
|
+
// 日期容错:只写 2026-11-18 时补 09:00;带 T 的 ISO 归一成空格
|
|
204
|
+
for (const key of ['begin_datetime', 'end_datetime']) {
|
|
205
|
+
const raw = String(source[key] ?? '').trim();
|
|
206
|
+
if (raw === '')
|
|
207
|
+
continue;
|
|
208
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(raw))
|
|
209
|
+
source[key] = raw + ' 09:00';
|
|
210
|
+
else
|
|
211
|
+
source[key] = raw.replace('T', ' ').slice(0, 16);
|
|
212
|
+
}
|
|
173
213
|
return {
|
|
174
214
|
// 明细序号与两个状态字段给默认值:调用方通常不关心,缺了会让列表顺序不稳/状态为空。
|
|
175
215
|
sort_number: String(index + 1),
|
|
@@ -373,8 +373,8 @@ function buildReadOperation(endpoint) {
|
|
|
373
373
|
collected.push(...pageRows);
|
|
374
374
|
if (totalKnown > 0 && collected.length >= totalKnown)
|
|
375
375
|
break;
|
|
376
|
-
if (pageRows.length
|
|
377
|
-
break; //
|
|
376
|
+
if (pageRows.length === 0)
|
|
377
|
+
break; // 只认空页/总数,单页条数不固定(有的接口只回 5)
|
|
378
378
|
}
|
|
379
379
|
const allRows = Object.keys(mainTableFilters).length === 0
|
|
380
380
|
? collected
|
|
@@ -778,7 +778,7 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
|
|
|
778
778
|
properties[field] = isDate
|
|
779
779
|
? { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$', description: `${field}(yyyy-MM-dd HH:mm,不带秒)` }
|
|
780
780
|
: isSecondDate
|
|
781
|
-
? { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}
|
|
781
|
+
? { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}(?::\\d{2})?$', description: `${field}(yyyy-MM-dd HH:mm:ss,带秒)` }
|
|
782
782
|
: { type: 'string', description: `${field}${required ? '(必填)' : ''}` };
|
|
783
783
|
}
|
|
784
784
|
for (const spec of endpoint.details ?? []) {
|
|
@@ -796,7 +796,7 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
|
|
|
796
796
|
(spec.dateFields ?? []).includes(field)
|
|
797
797
|
? { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$', description: `${field}(yyyy-MM-dd HH:mm)` }
|
|
798
798
|
: (spec.secondDateFields ?? []).includes(field)
|
|
799
|
-
? { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}
|
|
799
|
+
? { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}(?::\\d{2})?$', description: `${field}(yyyy-MM-dd HH:mm:ss,带秒)` }
|
|
800
800
|
: { type: 'string', description: `${field}${requiredFields.includes(field) ? '(必填)' : ''}` },
|
|
801
801
|
])),
|
|
802
802
|
required: requiredFields,
|
|
@@ -11,6 +11,7 @@ import { meetingEbCreateFlowOperations } from './create-flow.js';
|
|
|
11
11
|
import { meetingEbGroupChatOperations } from './group-chat.js';
|
|
12
12
|
import { attachMeetingUrls } from './meeting-link.js';
|
|
13
13
|
import { meetingEbDecisionTaskBatchOperations } from './decision-task-batch.js';
|
|
14
|
+
import { meetingEbDecisionTaskReassignOperations } from './decision-task-reassign.js';
|
|
14
15
|
/**
|
|
15
16
|
* 会议 EB 版(eBuilder)operations。
|
|
16
17
|
*
|
|
@@ -297,6 +298,7 @@ export const meetingEbOperations = [
|
|
|
297
298
|
...decisionPublishAliases,
|
|
298
299
|
...minuteCreateAliases,
|
|
299
300
|
...meetingEbDecisionTaskBatchOperations,
|
|
301
|
+
...meetingEbDecisionTaskReassignOperations,
|
|
300
302
|
...meetingEbScheduleOperations,
|
|
301
303
|
...meetingEbCrmOperations,
|
|
302
304
|
...meetingEbCreateFlowOperations,
|
|
@@ -72,6 +72,9 @@ const NO_FALLBACK_SUBTYPES = new Set([
|
|
|
72
72
|
'target_changed',
|
|
73
73
|
'env_unavailable',
|
|
74
74
|
'env_fallback',
|
|
75
|
+
// 服务端业务错(如「update_meeting_sign_info接口类型不一致」):参数/配置问题,
|
|
76
|
+
// 换标准版不可能解决,只会让调用方白跑一轮并掩盖真实错误。
|
|
77
|
+
'business_error',
|
|
75
78
|
]);
|
|
76
79
|
function describe(error) {
|
|
77
80
|
if (error instanceof MeetingCliError) {
|
|
@@ -59,7 +59,20 @@ function buildRegistry() {
|
|
|
59
59
|
if (registry.has(definition.name)) {
|
|
60
60
|
throw new Error(`duplicate meeting operation: ${definition.name}`);
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
// debugTimings:把各阶段耗时随结果返回(默认不返回,避免污染正常输出)。
|
|
63
|
+
const original = definition.handler;
|
|
64
|
+
registry.set(definition.name, {
|
|
65
|
+
...definition,
|
|
66
|
+
handler: async (args, env) => {
|
|
67
|
+
const startedAt = Date.now();
|
|
68
|
+
const result = await original(args, env);
|
|
69
|
+
if (args?.debugTimings === true && result && typeof result === 'object') {
|
|
70
|
+
const marks = { ...(env?.__meetingTimings ?? {}) };
|
|
71
|
+
result.data = { ...(result.data ?? {}), timings: { ...marks, totalMs: Date.now() - startedAt } };
|
|
72
|
+
}
|
|
73
|
+
return result;
|
|
74
|
+
},
|
|
75
|
+
});
|
|
63
76
|
}
|
|
64
77
|
return registry;
|
|
65
78
|
}
|
|
@@ -37,6 +37,10 @@ export function assertDateTimeMinute(value, label) {
|
|
|
37
37
|
* `begin_datetime`/`end_datetime` 是不带秒的 —— **同一应用里两种格式并存**,故分别校验。
|
|
38
38
|
*/
|
|
39
39
|
export function assertDateTimeSecond(value, label) {
|
|
40
|
+
// 允许只写 HH:mm:服务端要秒,但调用方不必知道——这里补齐 :00(2026-11-17 用户反馈补签因此被误判为"接口报错")。
|
|
41
|
+
if (typeof value === 'string' && /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(value)) {
|
|
42
|
+
return `${value}:00`;
|
|
43
|
+
}
|
|
40
44
|
if (typeof value !== 'string' || !/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(value)) {
|
|
41
45
|
throw meetingValidationError('datetime_invalid', `${label} 必须是 yyyy-MM-dd HH:mm:ss 格式(带秒)`);
|
|
42
46
|
}
|
package/docs/data.md
CHANGED
|
@@ -91,7 +91,7 @@ weaver-work-cli auth login --base-url <E10 域名>
|
|
|
91
91
|
|
|
92
92
|
- `--show-params` 只打印入/出参说明;`--dry-run` 只组装不发送(凭据脱敏);`--raw` 原样输出响应体。
|
|
93
93
|
- **`body` 必须传对象,不能传已序列化的 JSON 字符串**:运行时会再 `JSON.stringify` 一次,传字符串会发出"被转义的 JSON 字面量",服务端表现为 HTTP 200 + 业务 500/400。form 提交走 `form` 字段。
|
|
94
|
-
- `--
|
|
94
|
+
- `--fields` 只保留指定行字段,不限制返回行数。
|
|
95
95
|
- **`/api/hrm/` 路径命中黑名单**(退出码 6):人员 / 部门 / 岗位一律走 `weaver-work-cli hrm`。
|
|
96
96
|
- **`hasSearchRight=false` 是权限受限的终端态**:结果字段必为空,命令以退出码 4 结束。不得交付为「无数据」,也不得换参重试。
|
|
97
97
|
|
package/docs/e10-auth.md
CHANGED
|
@@ -124,6 +124,11 @@ XiaoE 宿主(网页端 `XIAOE_CLIENT_TYPE=cloud`、桌面客户端 `client`)
|
|
|
124
124
|
`WORKBUDDY_AGENT_TYPE`、`CODEX_AGENT_TYPE`,再根据 `WORKBUDDY_*` / `CODEX_*`
|
|
125
125
|
环境变量推断当前宿主,最后回落为 `weaver-work-cli`。浏览器授权地址会同时携带
|
|
126
126
|
`agent_type=<value>` 和 `from=<value>`,其中 `from` 用于 E10 授权确认页展示客户端名称。
|
|
127
|
+
授权页还会带一个 `promotionKeyword`,取值由 `agent_type` 归一化成稳定的渠道标识,供 E10
|
|
128
|
+
统计登录来源:豆包 `doubao`、WorkBuddy `workbuddy`、千问 `qianwen`(宿主 key 为 `qwen`)、
|
|
129
|
+
智能小 E `xiaoe`(`agent_type` 为 `XiaoE`)、Codex `codex`;中文写法(如「豆包」「通义千问」)
|
|
130
|
+
同样能归类。终端手工登录(回落为 `weaver-work-cli`)或无法归类的自定义 `agent_type` 不下发
|
|
131
|
+
该参数,避免污染统计。
|
|
127
132
|
授权完成后的本地回调页会为已识别的桌面宿主显示应用打开弹层。CLI 内置 WorkBuddy
|
|
128
133
|
(`workbuddy://`)、智能小 E(`xiaoe-client://`)和 Codex(`codex://`)映射;其他
|
|
129
134
|
智能体在 `agent_type` 本身是合法协议名时,默认按 `<agent_type>://` 唤起。Windows/macOS
|
package/docs/invoice.md
CHANGED
|
@@ -71,7 +71,7 @@ weaver-work-cli --json invoice list --fields number,detailUrl
|
|
|
71
71
|
| `invoice.delete.prepare/apply` | 高风险写 | 固定软删除 `flag=0`,确认后执行并回查 |
|
|
72
72
|
| `invoice.browse-field.data` | 只读 | 基于详情接口生成流程表单发票浏览按钮 JSON |
|
|
73
73
|
| `invoice.reim.file-ocr.preview` | 文件识别预览 | 对 E10 fileId 调用报销场景的发票识别接口,只保留成功项 |
|
|
74
|
-
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100`;结束日取传入的 `cusCreateDateEnd` 或东八区当天,发给接口时再 + 1 天;未传 `cusCreateDateStart` 时取结束日前 7 天,第 1 页为空自动放宽到结束日前 1 个月再查一次,`scene="phone"`(话费)时取结束日前 90
|
|
74
|
+
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100`;结束日取传入的 `cusCreateDateEnd` 或东八区当天,发给接口时再 + 1 天;未传 `cusCreateDateStart` 时取结束日前 7 天,第 1 页为空自动放宽到结束日前 1 个月再查一次,`scene="phone"`(话费)时取结束日前 90 天且不放宽;列表在 `data.result.data`,另有 `data.query`(实际 `cusCreateDateStart`、业务结束日 `cusCreateDateEnd`、`widened`);每条只输出 `requestid` / `workflowid` / `requestname` / `flowStatus` / `creatorId` / `creatorName` / `createTime` |
|
|
75
75
|
| `invoice.reim.workflow.resolve` | 只读 | 根据事前申请 ID 获取报销工作流;无事前申请时传空数组 |
|
|
76
76
|
| `invoice.reim.candidates.list` | 只读 | 按日期自动翻页拉取未报销发票,分成 `available`(可报)/ `assigned`(已挂单)两组并给出金额合计 |
|
|
77
77
|
| `invoice.reim.employee-superiors` | 只读 | 获取当前人员和上级信息 |
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ display_name_en: Weaver E10 Document Management
|
|
|
5
5
|
description: "泛微E10采知连知识管理:文档创建/搜索/编辑/比对、文件夹与权限共享、标签参与人、附件封面、文件采集与上传。当用户处理采知连/知识库的文档、文件夹、共享权限或附件时使用。"
|
|
6
6
|
description_zh: "泛微E10采知连知识管理:文档创建/搜索/编辑/比对、文件夹与权限共享、标签参与人、附件封面、文件采集与上传。当用户处理采知连/知识库的文档、文件夹、共享权限或附件时使用。"
|
|
7
7
|
description_en: "Weaver E10 caizhilian knowledge management: document create/search/edit/compare, folders and sharing permissions, tags and participants, attachments and covers, file collection and upload. Use this skill when the user works with caizhilian or knowledge-base documents, folders, sharing permissions, or attachments."
|
|
8
|
-
version: 1.1.
|
|
8
|
+
version: 1.1.44
|
|
9
9
|
author: 泛微网络科技股份有限公司
|
|
10
10
|
tags: [文档管理, 知识库, 泛微E10, document-management, knowledge-base]
|
|
11
11
|
agent_created: true
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
| `caizhilian.document.create-html` | `name`、`folder_id`、`folder_type`、`author_id` | `summary` 传 HTML 正文 |
|
|
31
31
|
| `caizhilian.document.create-markdown` | `name`、`folder_id`、`folder_type`、`author_id` | `summary` 传 Markdown 文本,或 `file_path` 指向本地 `.md`/`.markdown`(读到内容后覆盖 `summary`) |
|
|
32
32
|
| `caizhilian.document.create-office` | `file_path`、`folder_id`、`folder_type`、`author_id` | 只接受 `.doc/.docx/.xls/.xlsx/.ppt/.pptx`;`name` 缺省取文件名(不含扩展名) |
|
|
33
|
-
| `caizhilian.document.create-by-upload` | `file_paths`、`folder_id`、`folder_type` | `author_id` 缺省取当前登录人;`file_paths`
|
|
33
|
+
| `caizhilian.document.create-by-upload` | `file_paths`、`folder_id`、`folder_type` | `author_id` 缺省取当前登录人;`file_paths` 接受字符串或数组,去重保序,上传并发默认 8(环境变量 `WEAVER_CAIZHILIAN_UPLOAD_MAX_WORKERS` 可调 1~32) |
|
|
34
34
|
|
|
35
35
|
公共可选字段:`participant_ids`、`abstract_text`、`keywords`、`auto_invalidate_date`(`YYYY-MM-DD`)、`tags`、`virtual_folder_ids`、`doc_category`(`0`=普通,`1`=重要)、
|
|
36
36
|
`cover_picture_id`(`create-by-upload` 无 `cover_picture_id`)。
|
|
@@ -6056,7 +6056,7 @@
|
|
|
6056
6056
|
}
|
|
6057
6057
|
],
|
|
6058
6058
|
"artifactBaseline": {
|
|
6059
|
-
"aggregateSha256": "
|
|
6059
|
+
"aggregateSha256": "ddb7bd2bc4cb2b694b568cc451caba12061fd4e053eb9b60ab3934356c1303d5",
|
|
6060
6060
|
"files": [
|
|
6061
6061
|
{
|
|
6062
6062
|
"path": "docs/_catalog.md",
|
|
@@ -6126,7 +6126,7 @@
|
|
|
6126
6126
|
{
|
|
6127
6127
|
"path": "skills/weaver-e10-caizhilian/SKILL.md",
|
|
6128
6128
|
"size": 34205,
|
|
6129
|
-
"sha256": "
|
|
6129
|
+
"sha256": "35e2e6d029f07dd3a15ca0a0cd1c29fef9f78df82344d1b5b5eec9fa0f828a62"
|
|
6130
6130
|
},
|
|
6131
6131
|
{
|
|
6132
6132
|
"path": "src/internal/e10/request-runtime.ts",
|
|
@@ -47,7 +47,6 @@ weaver-work-cli --json data module call --group WORKFLOW --conf-key API_WORKFLOW
|
|
|
47
47
|
| `--query <k=v&k2=v2>` | 业务参数(query 串,与 `--args` 合并) |
|
|
48
48
|
| `--header <k: v>` / `--headers <json\|@file>` | 额外请求头 |
|
|
49
49
|
| `--method GET\|POST\|FORM` | 默认取 `confAttrs.http_method` |
|
|
50
|
-
| `--limit <n>` | 行数上限,默认 **50**(`0` = 不截断) |
|
|
51
50
|
| `--fields <a,b\|@f>` | 只保留这些行字段 |
|
|
52
51
|
| `--raw` | 原样输出响应体 |
|
|
53
52
|
| `--show-params` | 只打印入/出参说明,**不调接口** |
|
|
@@ -3,11 +3,11 @@ name: weaver-e10-jucailin
|
|
|
3
3
|
agent_created: true
|
|
4
4
|
display_name: 泛微E10聚才林人事管理
|
|
5
5
|
display_name_en: Weaver E10 Jucailin HR Management Skill
|
|
6
|
-
description: 泛微E10聚才林人事管理,帮您处理人事日常事宜:[出勤]-查考勤数据做报表统计、考勤打卡(PC端签到签退)、发考勤流程处理考勤异常;[薪酬]-查工资、社保公积金、调薪记录;[招聘]-帮您找人才、管招聘需求、生成职位JD
|
|
7
|
-
description_zh: 泛微E10聚才林人事管理,帮您处理人事日常事宜:[出勤]-查考勤数据做报表统计、考勤打卡(PC端签到签退)、发考勤流程处理考勤异常;[薪酬]-查工资、社保公积金、调薪记录;[招聘]-帮您找人才、管招聘需求、生成职位JD
|
|
8
|
-
description_en: "Weaver E10 Jucailin HR Management: your assistant for daily HR tasks. [Attendance] Check attendance data, generate reports & statistics, clock in/out on PC, and start attendance workflows to handle attendance exceptions. [Payroll] View pay slips, social security & housing fund, and salary adjustment records. [Recruitment] Find candidates, manage recruitment requisitions, generate job descriptions (JD), import resumes to build candidate profiles, view candidate pipeline records, arrange interviews,
|
|
6
|
+
description: 泛微E10聚才林人事管理,帮您处理人事日常事宜:[出勤]-查考勤数据做报表统计、考勤打卡(PC端签到签退)、发考勤流程处理考勤异常;[薪酬]-查工资、社保公积金、调薪记录;[招聘]-帮您找人才、管招聘需求、生成职位JD、导入简历建人才、查应聘者台账、安排面试、办入职、看招聘统计(Offer 发起已移交流程组);[人事基础]-查员工信息、组织编制及从不同维度汇总人事报表。
|
|
7
|
+
description_zh: 泛微E10聚才林人事管理,帮您处理人事日常事宜:[出勤]-查考勤数据做报表统计、考勤打卡(PC端签到签退)、发考勤流程处理考勤异常;[薪酬]-查工资、社保公积金、调薪记录;[招聘]-帮您找人才、管招聘需求、生成职位JD、导入简历建人才、查应聘者台账、安排面试、办入职、看招聘统计(Offer 发起已移交流程组);[人事基础]-查员工信息、组织编制及从不同维度汇总人事报表。
|
|
8
|
+
description_en: "Weaver E10 Jucailin HR Management: your assistant for daily HR tasks. [Attendance] Check attendance data, generate reports & statistics, clock in/out on PC, and start attendance workflows to handle attendance exceptions. [Payroll] View pay slips, social security & housing fund, and salary adjustment records. [Recruitment] Find candidates, manage recruitment requisitions, generate job descriptions (JD), import resumes to build candidate profiles, view candidate pipeline records, arrange interviews, handle onboarding, and view recruitment statistics (offer initiation has been handed over to the workflow team). [HR Basics] Look up employee information, organizational headcount, and compile HR reports from various dimensions."
|
|
9
9
|
category: business
|
|
10
|
-
version: 2.1.
|
|
10
|
+
version: 2.1.2
|
|
11
11
|
author: 泛微网络科技股份有限公司
|
|
12
12
|
permissions: [network]
|
|
13
13
|
execution:
|
|
@@ -61,7 +61,7 @@ weaver-work-cli --json ehr run <operation> --input -
|
|
|
61
61
|
| 人才库搜索、招聘需求 / 职位 / 岗位 / JD / 入职 / 录用列表、人才详情卡片、**我待填的面试反馈 / 面评(AI 面试已录)** | [`references/recruit-read.md`](references/recruit-read.md) |
|
|
62
62
|
| **面试进展全局汇总**(这周面了多少场、多少人待反馈/待查看、按面试官分组)、"我还有多少面试评价没填 / 面评 / 评估表没填" | [`references/recruit-interview-overview.md`](references/recruit-interview-overview.md) |
|
|
63
63
|
| **标签库检索**(标签池里有哪些标签、按名字/组找标签、为什么标签看起来杂) | [`references/recruit-tag.md`](references/recruit-tag.md) |
|
|
64
|
-
|
|
|
64
|
+
| 办理入职(写,prepare→apply);🔴 **Offer 发起已移交「流程组」统一接管**(2026-11-17),本技能不再提供——用户问「发 Offer」直接告知走流程组入口,不调用 operation | [`references/recruit-write.md`](references/recruit-write.md) |
|
|
65
65
|
| **招聘统计**(发了多少职位、招了多少人、渠道效果、各阶段转化) | [`references/recruit-create.md`](references/recruit-create.md) |
|
|
66
66
|
| **标签库**:标签太多/混入非 HR 标签、按名称找标签、按标签组找标签、标签池有没有分组 | [`references/recruit-tag.md`](references/recruit-tag.md) |
|
|
67
67
|
| **闭环串场**:搜人 → 汇总反馈,"把上周投后端的人捞出来,然后告诉我谁还没反馈" | [`references/recruit-screening-to-interview-sop.md`](references/recruit-screening-to-interview-sop.md) |
|
|
@@ -71,7 +71,7 @@ weaver-work-cli --json ehr run <operation> --input -
|
|
|
71
71
|
|
|
72
72
|
## 高频写操作速查(免读 references 即可用;完整协议/错误处理见 references/recruit-write.md)
|
|
73
73
|
|
|
74
|
-
统一协议:**prepare 出确认摘要 → 用户明确确认 → apply 带 `confirm:true` + prepare 返回的 `continuation`**;未确认就 apply
|
|
74
|
+
统一协议:**prepare 出确认摘要 → 用户明确确认 → apply 带 `confirm:true` + prepare 返回的 `continuation`**;未确认就 apply 会被拒绝。面试通知/催评会触达真实的人,必须用户明确同意。🔴 **Offer 发起已移交「流程组」统一接管**(2026-11-17),不在本技能写操作范围内。
|
|
75
75
|
|
|
76
76
|
新建人才:
|
|
77
77
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## 何时使用
|
|
4
4
|
|
|
5
5
|
需要查询招聘模块数据时使用:人才库搜索、招聘需求 / 职位 / 岗位 / JD / 入职 / 录用列表、人才详情卡片。全部为只读操作。
|
|
6
|
-
**说法等价**(详见招聘助手技能 `references/recruit-utterance-glossary.md`,全技能唯一口径):职位 = 岗位 = 岗 = JD = 在招职位 / 职缺;人才 = 候选人 = 应聘者 = 人选 = 求职者。「这个岗位有哪些人选」「这个 JD 的录用情况」「查下这个人选」都按同一对象路由,不追问叫法差异;内部 `type=position` / `positionId`
|
|
6
|
+
**说法等价**(详见招聘助手技能 `references/recruit-utterance-glossary.md`,全技能唯一口径):职位 = 岗位 = 岗 = JD = 在招职位 / 职缺;人才 = 候选人 = 应聘者 = 人选 = 求职者。「这个岗位有哪些人选」「这个 JD 的录用情况」「查下这个人选」都按同一对象路由,不追问叫法差异;内部 `type=position` / `positionId` 等参数名不变。招聘**写操作**(新建人才、安排面试、入职办理、面试反馈等)已单独提供,走 prepare→apply 确认协议,见 [`recruit-write.md`](recruit-write.md)。🔴 **Offer 发起已移交「流程组」统一接管**(2026-11-17),不属本技能写操作范围;用户问「发 Offer」直接告知走流程组入口,不调用 operation。
|
|
7
7
|
|
|
8
8
|
## 输入要点
|
|
9
9
|
|
|
@@ -136,7 +136,8 @@ weaver-work-cli --json ehr run ehr.recruit.stats --input-json '{"modules":["tale
|
|
|
136
136
|
- 姓名、手机号都是**模糊匹配**,多人命中时必须列出候选让用户选择,不得自动取第一条。
|
|
137
137
|
- `candidate.card` 会完整读取候选人的面试反馈与沟通备注,属敏感个人信息;回复用户时给摘要与关键字段,不要原样粘贴完整 JSON。
|
|
138
138
|
- 手机号、身份证等敏感字段不要回显给与业务无关的对话。
|
|
139
|
-
-
|
|
139
|
+
- 需要变更数据(新建人才/安排面试/办理入职/面试反馈)时,使用 `recruit-write.md` 的写操作协议,不要用只读接口编造变更。
|
|
140
|
+
- 🔴 **Offer 发起已移交「流程组」统一接管**(2026-11-17),不属本技能写操作范围:用户问「发 Offer」直接告知走流程组入口,**不要调用 operation、不要引导到 recruit-write.md**。录用台账**查询**仍可用(`candidate.list type=offer`、`stats` modules 含 offer)。
|
|
140
141
|
|
|
141
142
|
## 面试待办:`ehr.recruit.interview.feedbackTodo`
|
|
142
143
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
| 场景 | 用哪组 |
|
|
13
13
|
|---|---|
|
|
14
|
-
|
|
|
14
|
+
| 常规招聘:查列表、搜人才、人才详情、新建人才、办入职、面试反馈催评、招聘统计、上下文自检 | `ehr.recruit.*`(本技能原有,默认走这组) |
|
|
15
15
|
| 需要下列**专用能力**时 | `recruit-stage.*`(本文) |
|
|
16
16
|
|
|
17
17
|
`recruit-stage.*` 的专用能力(只有这组有):
|