weaver-work-cli 0.1.66 → 0.1.68
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-SJTC5265.js} +12 -8
- package/dist/chunks/{asset-ZPC5VWZM.js → asset-XM3Y4FVU.js} +12 -7
- package/dist/chunks/{attachment-content-NRBGS5XG.js → attachment-content-IXIBOET6.js} +3 -3
- package/dist/chunks/{chunk-2BAZJCG7.js → chunk-3NJQTG6X.js} +36 -27
- package/dist/chunks/{chunk-IN6NXQ26.js → chunk-3Q5F4C5B.js} +47 -27
- package/dist/chunks/{chunk-NNXZMBIB.js → chunk-6OK4LW76.js} +7 -7
- package/dist/chunks/{chunk-5QYE52LG.js → chunk-7M5OYRK2.js} +18 -9
- package/dist/chunks/{chunk-YT73QQMS.js → chunk-BJNSTCJK.js} +1 -1
- package/dist/chunks/{chunk-EYEJW5SG.js → chunk-C5IIIT4D.js} +4 -4
- package/dist/chunks/{chunk-G7PQWD4L.js → chunk-DVFA3ODS.js} +38 -10
- package/dist/chunks/{chunk-ATEXBEPD.js → chunk-LCM5SSGJ.js} +4 -1
- package/dist/chunks/{chunk-GOZ75GHU.js → chunk-LXXR2RRE.js} +73 -69
- package/dist/chunks/{chunk-SAADVUK6.js → chunk-O7KPHPXQ.js} +35 -35
- package/dist/chunks/{chunk-VWQGF3KW.js → chunk-OKUJY5YB.js} +3627 -1227
- package/dist/chunks/{chunk-C4YQJFZV.js → chunk-PAWXVT6H.js} +22 -11
- package/dist/chunks/{chunk-YFX5JKOY.js → chunk-QHKY4WZA.js} +2 -2
- package/dist/chunks/{chunk-5FQT7GSN.js → chunk-QO6JYDIW.js} +3 -3
- package/dist/chunks/{chunk-AAOYOPHW.js → chunk-X7ZTM4XG.js} +1 -1
- package/dist/chunks/{chunk-M7IEDTRI.js → chunk-Y7RGBRLG.js} +3 -3
- package/dist/chunks/{chunk-BZ6HAY2U.js → chunk-YSEHTSHS.js} +8 -8
- package/dist/chunks/{conflict-LJYKIUJM.js → conflict-CEXRX2KP.js} +2 -2
- package/dist/chunks/{contract-N5WNHKHI.js → contract-PM3EUPZC.js} +38 -20
- package/dist/chunks/{create-flow-75MCKXGI.js → create-flow-DG6D7U2L.js} +6 -6
- package/dist/chunks/{data-QKWI5325.js → data-3G4GQS5P.js} +13 -1
- package/dist/chunks/{ebuilder-form-ZONRROK4.js → ebuilder-form-5ENYH7IF.js} +1 -1
- package/dist/chunks/{employee-PGMY6NI6.js → employee-QX57HEWS.js} +1 -1
- package/dist/chunks/{entry-mode-3PI6A7JD.js → entry-mode-KMP66KHE.js} +3 -3
- package/dist/chunks/{env-FI62FOKK.js → env-SW6CTETI.js} +2 -2
- package/dist/chunks/{factory-HLS4SDQM.js → factory-ETQAICPA.js} +1 -1
- package/dist/chunks/{group-chat-MFBVOLKY.js → group-chat-GTYMCBYS.js} +3 -3
- package/dist/chunks/{hrm-XKL27NX2.js → hrm-5WSMSKPX.js} +3 -3
- package/dist/chunks/{im-NDYIMASG.js → im-P7GNBRG6.js} +1 -1
- package/dist/chunks/{invoice-MOGNB6HN.js → invoice-2QCVNXBG.js} +9 -3
- package/dist/chunks/{jiuchuanhui-3T5X7SB7.js → jiuchuanhui-FHGFYAHU.js} +4 -1
- package/dist/chunks/{meeting-ROWDB3DO.js → meeting-3PTTPUSG.js} +11 -11
- package/dist/chunks/{minute-doc-ABMO2UDX.js → minute-doc-3IMRJDJV.js} +2 -2
- package/dist/chunks/{okr-VZXRQGS4.js → okr-OIWJRYWY.js} +7 -1
- package/dist/chunks/{operations-62N6EP3C.js → operations-LQY3FTPH.js} +1 -1
- package/dist/chunks/{org-NFE7X7FK.js → org-MWWIFNAO.js} +1 -1
- package/dist/chunks/{reception-3FT2F66K.js → reception-2VSWJQ5N.js} +4 -2
- package/dist/chunks/{recruit-stage-WPGB5BDJ.js → recruit-stage-KHJYQE3I.js} +4 -1
- package/dist/chunks/{registry-JMNOXRST.js → registry-4S3RXXWS.js} +3 -3
- package/dist/chunks/{registry-E5RQJVWN.js → registry-AC33ZZVH.js} +1 -1
- package/dist/chunks/{registry-NLAO2W6T.js → registry-FXBOGH2X.js} +1 -1
- package/dist/chunks/{registry-QV6IPRVM.js → registry-PHPYTXS4.js} +11 -11
- package/dist/chunks/{room-recommend-P54PQTCN.js → room-recommend-BKCPAXQG.js} +4 -4
- package/dist/chunks/{schedule-BEBFGMT6.js → schedule-Q3MPSZV6.js} +4 -4
- package/dist/chunks/{smart-extract-DEBLJPCQ.js → smart-extract-TYYKC244.js} +28 -17
- package/dist/chunks/{workflow-LBFFZZN2.js → workflow-GEDHALMY.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/shortcuts/archive/operations/archive-info.js +9 -5
- package/dist/shortcuts/asset/manifest.js +8 -3
- package/dist/shortcuts/contract/manifest.js +38 -20
- package/dist/shortcuts/data/manifest.js +13 -1
- package/dist/shortcuts/ebuilder-form/manifest.js +38 -10
- 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 +2 -1
- package/dist/shortcuts/invoice/operations/get.js +2 -0
- package/dist/shortcuts/invoice/operations/shared.js +2 -0
- package/dist/shortcuts/invoice/projection.js +4 -1
- package/dist/shortcuts/jiuchuanhui/manifest.js +4 -1
- 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/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/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +1759 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +581 -0
- package/dist/shortcuts/workflow/operations/deepRead.js +738 -0
- package/dist/shortcuts/workflow/operations/read.js +50 -24
- package/dist/shortcuts/workflow/operations/registry.js +4 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +9 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +3 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +5 -0
- package/docs/invoice.md +2 -0
- package/package.json +1 -1
- package/scripts/package-skill.mjs +13 -2
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +15 -3
- package/skills/weaver-e10-workflow/aiDeepRead/config.json +151 -0
- package/skills/weaver-e10-workflow/aiDeepRead/templates//345/215/225/345/215/241/347/211/207-demo.html +64 -0
- package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +390 -0
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +6 -2
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +237 -0
- package/skills/weaver-e10-workflow/tools/ai-deep-read.cjs +80 -0
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +154 -8
- package/skills/weaver-e10-yepiaotong/SKILL.md +30 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +1 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +16 -2
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +44 -9
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +16 -2
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +61 -2
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -44,11 +44,14 @@ const positionQuery = {
|
|
|
44
44
|
action: 'hrm.position.query',
|
|
45
45
|
summary: '按名称/编号查岗位(快捷搜索名称编号合一;显式 name/code 走高级条件)',
|
|
46
46
|
risk: READ,
|
|
47
|
-
inputSchema:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
inputSchema: {
|
|
48
|
+
...schemaOf({
|
|
49
|
+
keyword: { type: 'string', description: '快捷搜索关键词,名称与编号合一匹配' },
|
|
50
|
+
name: { type: 'string', description: '岗位名称(包含匹配)' },
|
|
51
|
+
code: { type: 'string', description: '岗位编号(精确匹配)' },
|
|
52
|
+
}),
|
|
53
|
+
anyOf: [{ required: ['keyword'] }, { required: ['name'] }, { required: ['code'] }],
|
|
54
|
+
},
|
|
52
55
|
handler: async (args, { host }) => {
|
|
53
56
|
const name = args.name === undefined ? '' : String(args.name).trim();
|
|
54
57
|
const code = args.code === undefined ? '' : String(args.code).trim();
|
|
@@ -127,13 +130,22 @@ const positionList = {
|
|
|
127
130
|
action: 'hrm.position.list',
|
|
128
131
|
summary: '按组织/名称/编号批量查询岗位(岗位地址簿,一次性 + 自动翻页;无过滤需显式 all=true)',
|
|
129
132
|
risk: READ,
|
|
130
|
-
inputSchema:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
inputSchema: {
|
|
134
|
+
...schemaOf({
|
|
135
|
+
org: SCHEMA_ID,
|
|
136
|
+
name: { type: 'string', description: '岗位名称过滤(与 code 二选一)' },
|
|
137
|
+
code: { type: 'string', description: '岗位编号过滤(与 name 二选一)' },
|
|
138
|
+
all: { type: 'boolean', description: '显式确认全量拉取(无 org/name/code 过滤时必填 true)' },
|
|
139
|
+
pageSize: SCHEMA_ID,
|
|
140
|
+
}),
|
|
141
|
+
anyOf: [
|
|
142
|
+
{ required: ['org'] },
|
|
143
|
+
{ required: ['name'] },
|
|
144
|
+
{ required: ['code'] },
|
|
145
|
+
// 无过滤时必须显式 all=true(见 handler 的 full_pull_blocked),all:false 不算
|
|
146
|
+
{ required: ['all'], properties: { all: { const: true } } },
|
|
147
|
+
],
|
|
148
|
+
},
|
|
137
149
|
handler: async (args, { host }) => {
|
|
138
150
|
const hasFilter = args.org !== undefined || args.name !== undefined || args.code !== undefined;
|
|
139
151
|
if (!hasFilter && args.all !== true) {
|
|
@@ -270,16 +270,24 @@ const orgResolve = {
|
|
|
270
270
|
action: 'hrm.org.resolve',
|
|
271
271
|
summary: '按「多维名称 + 部门/分部名称」解析组织:自动取全量多维→精确优先/模糊兜底匹配→按维度查组织;歧义时返回候选待用户确认',
|
|
272
272
|
risk: READ,
|
|
273
|
-
inputSchema:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
273
|
+
inputSchema: {
|
|
274
|
+
...schemaOf({
|
|
275
|
+
virtual: { type: 'string', description: '多维名称(如「行政组织」「1号维度」);精确优先,未命中按包含模糊匹配' },
|
|
276
|
+
name: { type: 'string', description: '部门或分部名称;精确优先,未命中按包含模糊匹配' },
|
|
277
|
+
type: { type: 'string', enum: [...ORG_TYPES], description: `department 部门 / subcompany 分部;不传时同时检索两者、按部门优先定位,并把同名另一类型节点回在 alsoMatched` },
|
|
278
|
+
virtualId: { ...SCHEMA_ID, description: '多维 id;用户确认后复调可直接传,跳过维度名称匹配' },
|
|
279
|
+
orgId: { ...SCHEMA_ID, description: '组织节点 id;用户确认后复调可直接传,跳过名称匹配' },
|
|
280
|
+
maxCandidates: { ...SCHEMA_ID, description: `歧义时最多回传的候选条数,1~${MAX_CANDIDATES_LIMIT},默认 ${MAX_CANDIDATES}` },
|
|
281
|
+
}, {
|
|
282
|
+
description: '首调必填 virtual + name;复调可用 virtualId / orgId 直接定位。结果以 data.status 判定(resolved / ambiguous / not_found)。',
|
|
283
|
+
}),
|
|
284
|
+
anyOf: [
|
|
285
|
+
{ required: ['virtual', 'name'] },
|
|
286
|
+
{ required: ['virtual', 'orgId'] },
|
|
287
|
+
{ required: ['virtualId', 'name'] },
|
|
288
|
+
{ required: ['virtualId', 'orgId'] },
|
|
289
|
+
],
|
|
290
|
+
},
|
|
283
291
|
handler: async (args, { host }) => {
|
|
284
292
|
const typeArg = optionalText(args.type);
|
|
285
293
|
if (typeArg && !ORG_TYPES.includes(typeArg)) {
|
|
@@ -68,7 +68,10 @@ const groupSearch = {
|
|
|
68
68
|
createBegin: { type: 'integer', description: '创建时间下界(unix 秒)' },
|
|
69
69
|
createEnd: { type: 'integer', description: '创建时间上界(unix 秒)' },
|
|
70
70
|
pageSize: { type: 'integer', minimum: 1, maximum: 200, description: '每页大小(默认 100)' },
|
|
71
|
-
}, {
|
|
71
|
+
}, {
|
|
72
|
+
requiredAny: ['name', 'type', 'members', 'owner', 'creator', 'today', 'yesterday', 'createBegin', 'createEnd'],
|
|
73
|
+
description: '至少提供一个搜索条件',
|
|
74
|
+
}),
|
|
72
75
|
handler: async (args, { host }) => {
|
|
73
76
|
const cond = {};
|
|
74
77
|
let mask = 0;
|
|
@@ -120,7 +120,7 @@ const invoicePartySchema = objectSchema({
|
|
|
120
120
|
tcode: { type: 'string' },
|
|
121
121
|
}, [], true);
|
|
122
122
|
const invoiceInfoSchema = objectSchema({
|
|
123
|
-
id: { type: 'string' },
|
|
123
|
+
id: { type: 'string', description: '发票业务 ID;列表和详情返回时与 fid 保持一致。' },
|
|
124
124
|
fid: { type: 'string' },
|
|
125
125
|
code: { type: 'string' },
|
|
126
126
|
number: { type: 'string' },
|
|
@@ -1136,6 +1136,7 @@ export const invoiceOperations = [
|
|
|
1136
1136
|
description: '合同审批流程 requestId 列表;与 cards 二选一',
|
|
1137
1137
|
},
|
|
1138
1138
|
},
|
|
1139
|
+
anyOf: [{ required: ['cards'] }, { required: ['requestIds'] }],
|
|
1139
1140
|
},
|
|
1140
1141
|
outputSchema: issuingContractsOutputSchema,
|
|
1141
1142
|
},
|
|
@@ -6,6 +6,8 @@ export class InvoiceGetOperation {
|
|
|
6
6
|
const result = await getDetail(input, host);
|
|
7
7
|
const infos = Array.isArray(result?.infos) ? result.infos : [];
|
|
8
8
|
for (const item of infos) {
|
|
9
|
+
if (item?.info?.fid !== undefined)
|
|
10
|
+
item.info.id = item.info.fid;
|
|
9
11
|
const fid = item?.info?.fid ?? item?.info?.id;
|
|
10
12
|
if (fid)
|
|
11
13
|
item.detailUrl = invoiceDetailUrl(session.baseUrl, String(fid));
|
|
@@ -560,6 +560,8 @@ export async function listInvoices(input, host, flag) {
|
|
|
560
560
|
const result = await host.invoiceRequest({ path: '/api/inc/sync', method: 'POST', body });
|
|
561
561
|
const items = (result.infos || []).filter((item) => !isRedReversedInvoice(invoiceRecordOf(item))).map((item) => {
|
|
562
562
|
const record = invoiceRecordOf(item);
|
|
563
|
+
if (record.fid !== undefined)
|
|
564
|
+
record.id = record.fid;
|
|
563
565
|
const fid = record.fid ?? record.id;
|
|
564
566
|
if (fid)
|
|
565
567
|
record.detailUrl = invoiceDetailUrl(session.baseUrl, String(fid));
|
|
@@ -11,6 +11,7 @@ export const OUTPUT_VIEWS = ['full', 'summary', 'detail'];
|
|
|
11
11
|
* `EXT_INFO_FIELDS` 来自票面 `ext`(费用说明、城市、备注、起止地等)。
|
|
12
12
|
*/
|
|
13
13
|
export const SUMMARY_ITEM_FIELDS = [
|
|
14
|
+
'id',
|
|
14
15
|
'fid',
|
|
15
16
|
'number',
|
|
16
17
|
'code',
|
|
@@ -55,8 +56,10 @@ export function summarizeInvoiceItem(raw) {
|
|
|
55
56
|
const payer = asRecord(comm.payer);
|
|
56
57
|
const modify = asRecord(item.modify_info);
|
|
57
58
|
const reimList = Array.isArray(asRecord(item.oreim).list_reim) ? asRecord(item.oreim).list_reim : [];
|
|
59
|
+
const fid = text(item.fid ?? item.id);
|
|
58
60
|
const summary = {
|
|
59
|
-
|
|
61
|
+
id: fid,
|
|
62
|
+
fid,
|
|
60
63
|
number: text(item.number),
|
|
61
64
|
code: text(item.code),
|
|
62
65
|
typeName: text(pro.cname),
|
|
@@ -81,7 +81,10 @@ export const jiuchuanhuiOperations = [
|
|
|
81
81
|
inputSchema: {
|
|
82
82
|
type: 'object',
|
|
83
83
|
additionalProperties: false,
|
|
84
|
-
properties: {
|
|
84
|
+
properties: {
|
|
85
|
+
tag: { type: 'string', description: '应用标签;必填,常用 jch-crm-project(不会自动注入默认值)' },
|
|
86
|
+
},
|
|
87
|
+
required: ['tag'],
|
|
85
88
|
},
|
|
86
89
|
},
|
|
87
90
|
{
|
|
@@ -269,10 +269,13 @@ const attachmentList = {
|
|
|
269
269
|
summary: '查询会议/议题的附件清单(返回 fileId):会议附件 mt_accessorys、项目文件 project_files、议题资料 related_materials;直接读 EB 详情原始值,不经摘要层',
|
|
270
270
|
capability: 'attachment',
|
|
271
271
|
risk: 'read',
|
|
272
|
-
inputSchema:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
inputSchema: {
|
|
273
|
+
...schemaOf({
|
|
274
|
+
mtId: { ...SCHEMA_ID, description: '会议 id(查会议附件时必填,与 topicId 二选一)' },
|
|
275
|
+
topicId: { ...SCHEMA_ID, description: '议题 id(查议题资料时用)' },
|
|
276
|
+
}, { required: [] }),
|
|
277
|
+
anyOf: [{ required: ['mtId'] }, { required: ['topicId'] }],
|
|
278
|
+
},
|
|
276
279
|
handler: async (args, env) => {
|
|
277
280
|
const mtId = String(args.mtId ?? '').trim();
|
|
278
281
|
const topicId = String(args.topicId ?? '').trim();
|
|
@@ -306,12 +309,15 @@ const attachmentDownload = {
|
|
|
306
309
|
summary: '按 fileId 下载附件到本地(默认 ~/.weaver-work-cli/meeting/attachments/);也可传 mtId 一次下载该会议全部附件',
|
|
307
310
|
capability: 'attachment',
|
|
308
311
|
risk: 'read',
|
|
309
|
-
inputSchema:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
inputSchema: {
|
|
313
|
+
...schemaOf({
|
|
314
|
+
fileId: { ...SCHEMA_ID, description: '文件 id(与 mtId 二选一)' },
|
|
315
|
+
mtId: { ...SCHEMA_ID, description: '会议 id:一次下载该会议全部附件与项目文件' },
|
|
316
|
+
outDir: { type: 'string', description: '落地目录(默认 <state>/meeting/attachments)' },
|
|
317
|
+
fileName: { type: 'string', description: '指定文件名(仅单文件时生效)' },
|
|
318
|
+
}, { required: [] }),
|
|
319
|
+
anyOf: [{ required: ['fileId'] }, { required: ['mtId'] }],
|
|
320
|
+
},
|
|
315
321
|
handler: async (args, env) => {
|
|
316
322
|
const fileId = String(args.fileId ?? '').trim();
|
|
317
323
|
const mtId = String(args.mtId ?? '').trim();
|
|
@@ -353,12 +359,15 @@ const attachmentExtract = {
|
|
|
353
359
|
summary: '下载附件并抽取纯文本(txt/md/csv/json/docx/xlsx/pptx),返回正文与 txt 落地路径;pdf/图片等不支持格式会明确标注,不编造内容',
|
|
354
360
|
capability: 'attachment',
|
|
355
361
|
risk: 'read',
|
|
356
|
-
inputSchema:
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
+
inputSchema: {
|
|
363
|
+
...schemaOf({
|
|
364
|
+
fileId: { ...SCHEMA_ID, description: '文件 id(与 mtId 二选一)' },
|
|
365
|
+
mtId: { ...SCHEMA_ID, description: '会议 id:抽取该会议全部附件(最多 10 个)' },
|
|
366
|
+
maxChars: { type: 'number', description: '每个文件返回正文的最大字符数(默认 4000,最多 20000)' },
|
|
367
|
+
outDir: { type: 'string', description: '落地目录(默认 <state>/meeting/attachments)' },
|
|
368
|
+
}, { required: [] }),
|
|
369
|
+
anyOf: [{ required: ['fileId'] }, { required: ['mtId'] }],
|
|
370
|
+
},
|
|
362
371
|
handler: async (args, env) => {
|
|
363
372
|
const fileId = String(args.fileId ?? '').trim();
|
|
364
373
|
const mtId = String(args.mtId ?? '').trim();
|
|
@@ -98,6 +98,7 @@ const meetingMemberExpand = {
|
|
|
98
98
|
refresh: { type: 'boolean', description: '忽略缓存重新查(默认 false)' },
|
|
99
99
|
maxDepartments: { type: 'number', description: `分部展开时最多取几个部门,默认 ${MAX_DEPARTMENTS}` },
|
|
100
100
|
},
|
|
101
|
+
anyOf: [{ required: ['keyword'] }, { required: ['keywords'] }],
|
|
101
102
|
},
|
|
102
103
|
handler: async (args, env) => {
|
|
103
104
|
const tokens = [
|
|
@@ -489,7 +489,7 @@ const meetingInvitationRender = {
|
|
|
489
489
|
description: '输出文件完整路径(可选)。缺省写到 ~/.weaver-work-cli/meeting/invitations/邀请函-{会议名}-{日期}.docx',
|
|
490
490
|
},
|
|
491
491
|
},
|
|
492
|
-
required: [],
|
|
492
|
+
anyOf: [{ required: ['mtId'] }, { required: ['mt_name', 'begin_datetime'] }],
|
|
493
493
|
},
|
|
494
494
|
handler: async (args, env) => {
|
|
495
495
|
const mtId = String(args.mtId ?? '').trim();
|
|
@@ -18,23 +18,26 @@ const meetingLink = {
|
|
|
18
18
|
summary: '生成对象详情页链接:EB 版 /sp/ebdfpage/card/0/{objid}/{dataid}(按 tag 解析 objid 并缓存);标准版会议 /sp/meeting/meetingSingle?meetingId=(会议室/会议类型无单页,不附链接)',
|
|
19
19
|
capability: 'link',
|
|
20
20
|
risk: 'read',
|
|
21
|
-
inputSchema:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
inputSchema: {
|
|
22
|
+
...schemaOf({
|
|
23
|
+
dataId: { ...SCHEMA_ID, description: '对象 id:标准版=会议 id;EB 版=表单数据 id(单条查询用)' },
|
|
24
|
+
dataIds: { ...SCHEMA_ID_LIST, description: '批量:一次为多条数据生成链接(列表输出用)' },
|
|
25
|
+
type: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
enum: [...EB_TYPES],
|
|
28
|
+
description: '对象类别(默认 meeting)。映射 EB 表 tag,详见 references/meeting-eb.md 的链接章节',
|
|
29
|
+
},
|
|
30
|
+
tag: { type: 'string', description: '直接指定 EB 表 tag(如 uf_mt_detail),与 type 二选一,优先于 type' },
|
|
31
|
+
mode: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
enum: ['auto', 'eb', 'standard'],
|
|
34
|
+
description: 'auto(默认)=按当前环境模式自动判定;也可显式指定',
|
|
35
|
+
},
|
|
36
|
+
name: { type: 'string', description: '链接显示名;传入后同时返回 markdown 内联链接' },
|
|
37
|
+
refresh: { type: 'boolean', description: 'true=强制重新解析 EB objid(忽略缓存)' },
|
|
38
|
+
}, { required: [] }),
|
|
39
|
+
anyOf: [{ required: ['dataId'] }, { required: ['dataIds'] }],
|
|
40
|
+
},
|
|
38
41
|
handler: async (args, { host, ctx }) => {
|
|
39
42
|
const single = args.dataId !== undefined && args.dataId !== null && String(args.dataId).trim() !== '';
|
|
40
43
|
const batch = Array.isArray(args.dataIds)
|
|
@@ -150,7 +150,13 @@ const okrList = {
|
|
|
150
150
|
match: { type: 'string', enum: ['and', 'or'], default: 'and', description: '多条件关系(仅标准版链路)' },
|
|
151
151
|
page_no: { type: 'integer', minimum: 1, default: 1 },
|
|
152
152
|
page_size: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
|
|
153
|
-
}, {
|
|
153
|
+
}, {
|
|
154
|
+
anyOf: [
|
|
155
|
+
{ required: ['query_scope'], properties: { query_scope: { const: 'all' } } },
|
|
156
|
+
{ required: ['period_type', 'period_range'] },
|
|
157
|
+
],
|
|
158
|
+
description: 'self 模式必填 period_type + period_range;all 模式需显式传 query_scope=all,按需传 name / principalid / status',
|
|
159
|
+
}),
|
|
154
160
|
handler: async (args, { host }) => {
|
|
155
161
|
const { pageNo, pageSize } = pageOf(args);
|
|
156
162
|
const queryScope = resolveQueryScope(args);
|
|
@@ -68,6 +68,7 @@ export const receptionOperations = [
|
|
|
68
68
|
snapshot: { type: 'string', description: '字段快照路径;同时用于推导技能包内 render.py 位置' },
|
|
69
69
|
renderPy: { type: 'string', description: '显式指定 render.py 路径' },
|
|
70
70
|
},
|
|
71
|
+
anyOf: [{ required: ['runId'] }, { required: ['known'] }],
|
|
71
72
|
},
|
|
72
73
|
outputSchema: {
|
|
73
74
|
type: 'object',
|
|
@@ -153,6 +154,7 @@ export const receptionOperations = [
|
|
|
153
154
|
description: '填单页打开形态:drawer 为右侧抽屉(默认)',
|
|
154
155
|
},
|
|
155
156
|
},
|
|
157
|
+
anyOf: [{ required: ['runId'] }, { required: ['known'] }],
|
|
156
158
|
},
|
|
157
159
|
outputSchema: {
|
|
158
160
|
type: 'object',
|
|
@@ -1033,7 +1033,10 @@ export const interviewArrangeOperations = [
|
|
|
1033
1033
|
summary: '预填模式(人工保存):输出人才卡片 URL + 面试管理列表 URL + 选面试方式的 jsExpr,触发表单联动后由 HR 核对保存,不落库',
|
|
1034
1034
|
capability: 'recruit.interview.arrange',
|
|
1035
1035
|
risk: 'read',
|
|
1036
|
-
inputSchema:
|
|
1036
|
+
inputSchema: {
|
|
1037
|
+
...schemaOf(baseInput, {}),
|
|
1038
|
+
anyOf: [{ required: ['talentId'] }, { required: ['mobile'] }, { required: ['name'] }],
|
|
1039
|
+
},
|
|
1037
1040
|
handler: prefill,
|
|
1038
1041
|
},
|
|
1039
1042
|
{
|
|
@@ -323,16 +323,19 @@ const formStructure = {
|
|
|
323
323
|
name: 'smart-extract.form.structure',
|
|
324
324
|
risk: 'read',
|
|
325
325
|
summary: '取表单结构并归一化:传 workflowId(+nodeId,缺省自动取发起节点) 走流程节点字段,传 formId 走 EB 表单。输出 mainFieldsStr/subFieldsStr 压缩串,可直接进提示词。',
|
|
326
|
-
inputSchema:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
326
|
+
inputSchema: {
|
|
327
|
+
...schemaOf({
|
|
328
|
+
workflowId: { ...SCHEMA_ID, description: '流程模板 ID(wf)' },
|
|
329
|
+
nodeId: { ...SCHEMA_ID, description: '流程节点 ID;不传时自动取发起节点' },
|
|
330
|
+
formId: { ...SCHEMA_ID, description: 'EB 表单 ID(与 workflowId 二选一)' },
|
|
331
|
+
targetFieldIdList: {
|
|
332
|
+
type: 'array',
|
|
333
|
+
items: { type: 'string' },
|
|
334
|
+
description: '只输出这些字段 ID(可选)',
|
|
335
|
+
},
|
|
336
|
+
}),
|
|
337
|
+
anyOf: [{ required: ['workflowId'] }, { required: ['formId'] }],
|
|
338
|
+
},
|
|
336
339
|
handler: async (args, env) => {
|
|
337
340
|
const workflowId = optionalId(args.workflowId, 'workflowId');
|
|
338
341
|
const formId = optionalId(args.formId, 'formId');
|
|
@@ -16,13 +16,21 @@ const targetResolve = {
|
|
|
16
16
|
name: 'smart-extract.target.resolve',
|
|
17
17
|
risk: 'read',
|
|
18
18
|
summary: '把目标收敛成 ID:workflowId/formId/objId 直接回显校验;给 workflowKeyword 时列出当前用户可发起的流程并做名称匹配。返回 modeType 与命中项。',
|
|
19
|
-
inputSchema:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
inputSchema: {
|
|
20
|
+
...schemaOf({
|
|
21
|
+
workflowId: { ...SCHEMA_ID, description: '流程模板 ID' },
|
|
22
|
+
formId: { ...SCHEMA_ID, description: 'EB 表单 ID' },
|
|
23
|
+
objId: { ...SCHEMA_ID, description: 'EB 建模对象 ID(会自动转换成 formId)' },
|
|
24
|
+
workflowKeyword: { type: 'string', description: '流程名称关键字(只在可发起流程里做包含匹配)' },
|
|
25
|
+
limit: { type: 'integer', description: '关键字匹配返回条数上限,默认 10' },
|
|
26
|
+
}),
|
|
27
|
+
anyOf: [
|
|
28
|
+
{ required: ['workflowId'] },
|
|
29
|
+
{ required: ['formId'] },
|
|
30
|
+
{ required: ['objId'] },
|
|
31
|
+
{ required: ['workflowKeyword'] },
|
|
32
|
+
],
|
|
33
|
+
},
|
|
26
34
|
handler: async (args, env) => {
|
|
27
35
|
const workflowId = optionalId(args.workflowId, 'workflowId');
|
|
28
36
|
const formId = optionalId(args.formId, 'formId');
|
|
@@ -42,6 +42,8 @@ export const WORKFLOW_ENDPOINTS = {
|
|
|
42
42
|
/** 待办总数 / 列表 */
|
|
43
43
|
TODO_TOTAL: '/api/workflow/list/total/getTodoListTotal',
|
|
44
44
|
TODO_LIST: '/api/workflow/list/data/getTodoListData',
|
|
45
|
+
/** 列表行批量校验(2026-11-23 aiDeepRead 行过滤用:checkBatchOptRes[].canCheck) */
|
|
46
|
+
LIST_AUGMENT_BASE: '/api/workflow/list/augment/getListBaseAugment',
|
|
45
47
|
/** 待办分类树:流程大类/父类型下的工作流名称与归属类型。 */
|
|
46
48
|
TODO_TREE: '/api/workflow/list/tree/getTodoListTree',
|
|
47
49
|
/** 待办分组计数(按工作流/参与节点/参与身份三元组) */
|