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.
Files changed (107) hide show
  1. package/dist/chunks/{archive-WUZKAEZ6.js → archive-SJTC5265.js} +12 -8
  2. package/dist/chunks/{asset-ZPC5VWZM.js → asset-XM3Y4FVU.js} +12 -7
  3. package/dist/chunks/{attachment-content-NRBGS5XG.js → attachment-content-IXIBOET6.js} +3 -3
  4. package/dist/chunks/{chunk-2BAZJCG7.js → chunk-3NJQTG6X.js} +36 -27
  5. package/dist/chunks/{chunk-IN6NXQ26.js → chunk-3Q5F4C5B.js} +47 -27
  6. package/dist/chunks/{chunk-NNXZMBIB.js → chunk-6OK4LW76.js} +7 -7
  7. package/dist/chunks/{chunk-5QYE52LG.js → chunk-7M5OYRK2.js} +18 -9
  8. package/dist/chunks/{chunk-YT73QQMS.js → chunk-BJNSTCJK.js} +1 -1
  9. package/dist/chunks/{chunk-EYEJW5SG.js → chunk-C5IIIT4D.js} +4 -4
  10. package/dist/chunks/{chunk-G7PQWD4L.js → chunk-DVFA3ODS.js} +38 -10
  11. package/dist/chunks/{chunk-ATEXBEPD.js → chunk-LCM5SSGJ.js} +4 -1
  12. package/dist/chunks/{chunk-GOZ75GHU.js → chunk-LXXR2RRE.js} +73 -69
  13. package/dist/chunks/{chunk-SAADVUK6.js → chunk-O7KPHPXQ.js} +35 -35
  14. package/dist/chunks/{chunk-VWQGF3KW.js → chunk-OKUJY5YB.js} +3627 -1227
  15. package/dist/chunks/{chunk-C4YQJFZV.js → chunk-PAWXVT6H.js} +22 -11
  16. package/dist/chunks/{chunk-YFX5JKOY.js → chunk-QHKY4WZA.js} +2 -2
  17. package/dist/chunks/{chunk-5FQT7GSN.js → chunk-QO6JYDIW.js} +3 -3
  18. package/dist/chunks/{chunk-AAOYOPHW.js → chunk-X7ZTM4XG.js} +1 -1
  19. package/dist/chunks/{chunk-M7IEDTRI.js → chunk-Y7RGBRLG.js} +3 -3
  20. package/dist/chunks/{chunk-BZ6HAY2U.js → chunk-YSEHTSHS.js} +8 -8
  21. package/dist/chunks/{conflict-LJYKIUJM.js → conflict-CEXRX2KP.js} +2 -2
  22. package/dist/chunks/{contract-N5WNHKHI.js → contract-PM3EUPZC.js} +38 -20
  23. package/dist/chunks/{create-flow-75MCKXGI.js → create-flow-DG6D7U2L.js} +6 -6
  24. package/dist/chunks/{data-QKWI5325.js → data-3G4GQS5P.js} +13 -1
  25. package/dist/chunks/{ebuilder-form-ZONRROK4.js → ebuilder-form-5ENYH7IF.js} +1 -1
  26. package/dist/chunks/{employee-PGMY6NI6.js → employee-QX57HEWS.js} +1 -1
  27. package/dist/chunks/{entry-mode-3PI6A7JD.js → entry-mode-KMP66KHE.js} +3 -3
  28. package/dist/chunks/{env-FI62FOKK.js → env-SW6CTETI.js} +2 -2
  29. package/dist/chunks/{factory-HLS4SDQM.js → factory-ETQAICPA.js} +1 -1
  30. package/dist/chunks/{group-chat-MFBVOLKY.js → group-chat-GTYMCBYS.js} +3 -3
  31. package/dist/chunks/{hrm-XKL27NX2.js → hrm-5WSMSKPX.js} +3 -3
  32. package/dist/chunks/{im-NDYIMASG.js → im-P7GNBRG6.js} +1 -1
  33. package/dist/chunks/{invoice-MOGNB6HN.js → invoice-2QCVNXBG.js} +9 -3
  34. package/dist/chunks/{jiuchuanhui-3T5X7SB7.js → jiuchuanhui-FHGFYAHU.js} +4 -1
  35. package/dist/chunks/{meeting-ROWDB3DO.js → meeting-3PTTPUSG.js} +11 -11
  36. package/dist/chunks/{minute-doc-ABMO2UDX.js → minute-doc-3IMRJDJV.js} +2 -2
  37. package/dist/chunks/{okr-VZXRQGS4.js → okr-OIWJRYWY.js} +7 -1
  38. package/dist/chunks/{operations-62N6EP3C.js → operations-LQY3FTPH.js} +1 -1
  39. package/dist/chunks/{org-NFE7X7FK.js → org-MWWIFNAO.js} +1 -1
  40. package/dist/chunks/{reception-3FT2F66K.js → reception-2VSWJQ5N.js} +4 -2
  41. package/dist/chunks/{recruit-stage-WPGB5BDJ.js → recruit-stage-KHJYQE3I.js} +4 -1
  42. package/dist/chunks/{registry-JMNOXRST.js → registry-4S3RXXWS.js} +3 -3
  43. package/dist/chunks/{registry-E5RQJVWN.js → registry-AC33ZZVH.js} +1 -1
  44. package/dist/chunks/{registry-NLAO2W6T.js → registry-FXBOGH2X.js} +1 -1
  45. package/dist/chunks/{registry-QV6IPRVM.js → registry-PHPYTXS4.js} +11 -11
  46. package/dist/chunks/{room-recommend-P54PQTCN.js → room-recommend-BKCPAXQG.js} +4 -4
  47. package/dist/chunks/{schedule-BEBFGMT6.js → schedule-Q3MPSZV6.js} +4 -4
  48. package/dist/chunks/{smart-extract-DEBLJPCQ.js → smart-extract-TYYKC244.js} +28 -17
  49. package/dist/chunks/{workflow-LBFFZZN2.js → workflow-GEDHALMY.js} +1 -1
  50. package/dist/index.js +15 -15
  51. package/dist/shortcuts/archive/operations/archive-info.js +9 -5
  52. package/dist/shortcuts/asset/manifest.js +8 -3
  53. package/dist/shortcuts/contract/manifest.js +38 -20
  54. package/dist/shortcuts/data/manifest.js +13 -1
  55. package/dist/shortcuts/ebuilder-form/manifest.js +38 -10
  56. package/dist/shortcuts/hrm/operations/employee.js +22 -11
  57. package/dist/shortcuts/hrm/operations/org.js +18 -9
  58. package/dist/shortcuts/hrm/operations/position.js +24 -12
  59. package/dist/shortcuts/hrm/operations/resolve.js +18 -10
  60. package/dist/shortcuts/im/operations/group-read.js +4 -1
  61. package/dist/shortcuts/invoice/manifest.js +2 -1
  62. package/dist/shortcuts/invoice/operations/get.js +2 -0
  63. package/dist/shortcuts/invoice/operations/shared.js +2 -0
  64. package/dist/shortcuts/invoice/projection.js +4 -1
  65. package/dist/shortcuts/jiuchuanhui/manifest.js +4 -1
  66. package/dist/shortcuts/meeting/operations/attachment-content.js +25 -16
  67. package/dist/shortcuts/meeting/operations/eb/member-expand.js +1 -0
  68. package/dist/shortcuts/meeting/operations/invitation.js +1 -1
  69. package/dist/shortcuts/meeting/operations/link.js +20 -17
  70. package/dist/shortcuts/okr/operations/read.js +7 -1
  71. package/dist/shortcuts/reception/manifest.js +2 -0
  72. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -1
  73. package/dist/shortcuts/smart-extract/operations/structure.js +13 -10
  74. package/dist/shortcuts/smart-extract/operations/target.js +15 -7
  75. package/dist/shortcuts/workflow/endpoints.js +2 -0
  76. package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +1759 -0
  77. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +581 -0
  78. package/dist/shortcuts/workflow/operations/deepRead.js +738 -0
  79. package/dist/shortcuts/workflow/operations/read.js +50 -24
  80. package/dist/shortcuts/workflow/operations/registry.js +4 -0
  81. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +9 -0
  82. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +3 -0
  83. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +5 -0
  84. package/docs/invoice.md +2 -0
  85. package/package.json +1 -1
  86. package/scripts/package-skill.mjs +13 -2
  87. package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
  88. package/skills/weaver-e10-workflow/SKILL.md +15 -3
  89. package/skills/weaver-e10-workflow/aiDeepRead/config.json +151 -0
  90. package/skills/weaver-e10-workflow/aiDeepRead/templates//345/215/225/345/215/241/347/211/207-demo.html +64 -0
  91. package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +390 -0
  92. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +6 -2
  93. package/skills/weaver-e10-workflow/references/workflow-deep-read.md +237 -0
  94. package/skills/weaver-e10-workflow/tools/ai-deep-read.cjs +80 -0
  95. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +154 -8
  96. package/skills/weaver-e10-yepiaotong/SKILL.md +30 -2
  97. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +2 -0
  98. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
  99. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +1 -0
  100. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +2 -0
  101. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +4 -4
  102. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +16 -2
  103. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +44 -9
  104. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +3 -1
  105. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +16 -2
  106. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +61 -2
  107. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
@@ -4,9 +4,9 @@ import {
4
4
  getHrmOperation,
5
5
  hasHrmOperation,
6
6
  hrmOperationDefinitions
7
- } from "./chunk-IN6NXQ26.js";
8
- import "./chunk-C4YQJFZV.js";
9
- import "./chunk-5QYE52LG.js";
7
+ } from "./chunk-3Q5F4C5B.js";
8
+ import "./chunk-PAWXVT6H.js";
9
+ import "./chunk-7M5OYRK2.js";
10
10
  import "./chunk-JEQHNNSS.js";
11
11
  import "./chunk-56EZERK4.js";
12
12
  import "./chunk-UG5G54VL.js";
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  getImOperation,
5
5
  imOperationDefinitions
6
- } from "./chunk-ATEXBEPD.js";
6
+ } from "./chunk-LCM5SSGJ.js";
7
7
  import "./chunk-IC62NFM5.js";
8
8
  import "./chunk-KMRT7NAT.js";
9
9
  import "./chunk-UG5G54VL.js";
@@ -4,7 +4,7 @@ import {
4
4
  getWorkflowOperation,
5
5
  hasWorkflowOperation,
6
6
  workflowOperationDefinitions
7
- } from "./chunk-VWQGF3KW.js";
7
+ } from "./chunk-OKUJY5YB.js";
8
8
  import "./chunk-HP7JIYMT.js";
9
9
  import "./chunk-WRXSAVKO.js";
10
10
  import "./chunk-4WCVRDC5.js";
@@ -4,18 +4,18 @@ import {
4
4
  getMeetingOperation,
5
5
  hasMeetingOperation,
6
6
  meetingOperationDefinitions
7
- } from "./chunk-GOZ75GHU.js";
8
- import "./chunk-SAADVUK6.js";
9
- import "./chunk-NNXZMBIB.js";
10
- import "./chunk-2BAZJCG7.js";
7
+ } from "./chunk-LXXR2RRE.js";
8
+ import "./chunk-O7KPHPXQ.js";
9
+ import "./chunk-6OK4LW76.js";
10
+ import "./chunk-3NJQTG6X.js";
11
11
  import "./chunk-WMRNO6IU.js";
12
- import "./chunk-BZ6HAY2U.js";
13
- import "./chunk-YFX5JKOY.js";
14
- import "./chunk-5FQT7GSN.js";
15
- import "./chunk-EYEJW5SG.js";
16
- import "./chunk-YT73QQMS.js";
17
- import "./chunk-AAOYOPHW.js";
18
- import "./chunk-M7IEDTRI.js";
12
+ import "./chunk-YSEHTSHS.js";
13
+ import "./chunk-QHKY4WZA.js";
14
+ import "./chunk-QO6JYDIW.js";
15
+ import "./chunk-C5IIIT4D.js";
16
+ import "./chunk-BJNSTCJK.js";
17
+ import "./chunk-X7ZTM4XG.js";
18
+ import "./chunk-Y7RGBRLG.js";
19
19
  import "./chunk-7BDPM5ST.js";
20
20
  import "./chunk-FDBAFANU.js";
21
21
  import "./chunk-UG5G54VL.js";
@@ -7,10 +7,10 @@ import {
7
7
  loadRooms,
8
8
  recommendRooms,
9
9
  rememberFrequentRoom
10
- } from "./chunk-EYEJW5SG.js";
11
- import "./chunk-YT73QQMS.js";
12
- import "./chunk-AAOYOPHW.js";
13
- import "./chunk-M7IEDTRI.js";
10
+ } from "./chunk-C5IIIT4D.js";
11
+ import "./chunk-BJNSTCJK.js";
12
+ import "./chunk-X7ZTM4XG.js";
13
+ import "./chunk-Y7RGBRLG.js";
14
14
  import "./chunk-7BDPM5ST.js";
15
15
  import "./chunk-UG5G54VL.js";
16
16
  import "./chunk-BUSC6UAE.js";
@@ -8,10 +8,10 @@ import {
8
8
  resolveMeetingScheduleTypeIds,
9
9
  resolveMemberIdsByName,
10
10
  runScheduleConflictFlow
11
- } from "./chunk-5FQT7GSN.js";
12
- import "./chunk-YT73QQMS.js";
13
- import "./chunk-AAOYOPHW.js";
14
- import "./chunk-M7IEDTRI.js";
11
+ } from "./chunk-QO6JYDIW.js";
12
+ import "./chunk-BJNSTCJK.js";
13
+ import "./chunk-X7ZTM4XG.js";
14
+ import "./chunk-Y7RGBRLG.js";
15
15
  import "./chunk-7BDPM5ST.js";
16
16
  import "./chunk-UG5G54VL.js";
17
17
  import "./chunk-BUSC6UAE.js";
@@ -1144,16 +1144,19 @@ var formStructure = {
1144
1144
  name: "smart-extract.form.structure",
1145
1145
  risk: "read",
1146
1146
  summary: "\u53D6\u8868\u5355\u7ED3\u6784\u5E76\u5F52\u4E00\u5316\uFF1A\u4F20 workflowId(+nodeId\uFF0C\u7F3A\u7701\u81EA\u52A8\u53D6\u53D1\u8D77\u8282\u70B9) \u8D70\u6D41\u7A0B\u8282\u70B9\u5B57\u6BB5\uFF0C\u4F20 formId \u8D70 EB \u8868\u5355\u3002\u8F93\u51FA mainFieldsStr/subFieldsStr \u538B\u7F29\u4E32\uFF0C\u53EF\u76F4\u63A5\u8FDB\u63D0\u793A\u8BCD\u3002",
1147
- inputSchema: schemaOf({
1148
- workflowId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u6A21\u677F ID\uFF08wf\uFF09" },
1149
- nodeId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u8282\u70B9 ID\uFF1B\u4E0D\u4F20\u65F6\u81EA\u52A8\u53D6\u53D1\u8D77\u8282\u70B9" },
1150
- formId: { ...SCHEMA_ID, description: "EB \u8868\u5355 ID\uFF08\u4E0E workflowId \u4E8C\u9009\u4E00\uFF09" },
1151
- targetFieldIdList: {
1152
- type: "array",
1153
- items: { type: "string" },
1154
- description: "\u53EA\u8F93\u51FA\u8FD9\u4E9B\u5B57\u6BB5 ID\uFF08\u53EF\u9009\uFF09"
1155
- }
1156
- }),
1147
+ inputSchema: {
1148
+ ...schemaOf({
1149
+ workflowId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u6A21\u677F ID\uFF08wf\uFF09" },
1150
+ nodeId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u8282\u70B9 ID\uFF1B\u4E0D\u4F20\u65F6\u81EA\u52A8\u53D6\u53D1\u8D77\u8282\u70B9" },
1151
+ formId: { ...SCHEMA_ID, description: "EB \u8868\u5355 ID\uFF08\u4E0E workflowId \u4E8C\u9009\u4E00\uFF09" },
1152
+ targetFieldIdList: {
1153
+ type: "array",
1154
+ items: { type: "string" },
1155
+ description: "\u53EA\u8F93\u51FA\u8FD9\u4E9B\u5B57\u6BB5 ID\uFF08\u53EF\u9009\uFF09"
1156
+ }
1157
+ }),
1158
+ anyOf: [{ required: ["workflowId"] }, { required: ["formId"] }]
1159
+ },
1157
1160
  handler: async (args, env) => {
1158
1161
  const workflowId = optionalId(args.workflowId, "workflowId");
1159
1162
  const formId = optionalId(args.formId, "formId");
@@ -2602,13 +2605,21 @@ var targetResolve = {
2602
2605
  name: "smart-extract.target.resolve",
2603
2606
  risk: "read",
2604
2607
  summary: "\u628A\u76EE\u6807\u6536\u655B\u6210 ID\uFF1AworkflowId/formId/objId \u76F4\u63A5\u56DE\u663E\u6821\u9A8C\uFF1B\u7ED9 workflowKeyword \u65F6\u5217\u51FA\u5F53\u524D\u7528\u6237\u53EF\u53D1\u8D77\u7684\u6D41\u7A0B\u5E76\u505A\u540D\u79F0\u5339\u914D\u3002\u8FD4\u56DE modeType \u4E0E\u547D\u4E2D\u9879\u3002",
2605
- inputSchema: schemaOf({
2606
- workflowId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u6A21\u677F ID" },
2607
- formId: { ...SCHEMA_ID, description: "EB \u8868\u5355 ID" },
2608
- objId: { ...SCHEMA_ID, description: "EB \u5EFA\u6A21\u5BF9\u8C61 ID\uFF08\u4F1A\u81EA\u52A8\u8F6C\u6362\u6210 formId\uFF09" },
2609
- workflowKeyword: { type: "string", description: "\u6D41\u7A0B\u540D\u79F0\u5173\u952E\u5B57\uFF08\u53EA\u5728\u53EF\u53D1\u8D77\u6D41\u7A0B\u91CC\u505A\u5305\u542B\u5339\u914D\uFF09" },
2610
- limit: { type: "integer", description: "\u5173\u952E\u5B57\u5339\u914D\u8FD4\u56DE\u6761\u6570\u4E0A\u9650\uFF0C\u9ED8\u8BA4 10" }
2611
- }),
2608
+ inputSchema: {
2609
+ ...schemaOf({
2610
+ workflowId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u6A21\u677F ID" },
2611
+ formId: { ...SCHEMA_ID, description: "EB \u8868\u5355 ID" },
2612
+ objId: { ...SCHEMA_ID, description: "EB \u5EFA\u6A21\u5BF9\u8C61 ID\uFF08\u4F1A\u81EA\u52A8\u8F6C\u6362\u6210 formId\uFF09" },
2613
+ workflowKeyword: { type: "string", description: "\u6D41\u7A0B\u540D\u79F0\u5173\u952E\u5B57\uFF08\u53EA\u5728\u53EF\u53D1\u8D77\u6D41\u7A0B\u91CC\u505A\u5305\u542B\u5339\u914D\uFF09" },
2614
+ limit: { type: "integer", description: "\u5173\u952E\u5B57\u5339\u914D\u8FD4\u56DE\u6761\u6570\u4E0A\u9650\uFF0C\u9ED8\u8BA4 10" }
2615
+ }),
2616
+ anyOf: [
2617
+ { required: ["workflowId"] },
2618
+ { required: ["formId"] },
2619
+ { required: ["objId"] },
2620
+ { required: ["workflowKeyword"] }
2621
+ ]
2622
+ },
2612
2623
  handler: async (args, env) => {
2613
2624
  const workflowId = optionalId(args.workflowId, "workflowId");
2614
2625
  const formId = optionalId(args.formId, "formId");
@@ -17,7 +17,7 @@ import {
17
17
  validateRuleFile,
18
18
  workflowOperationDefinitions,
19
19
  workflowSuccess
20
- } from "./chunk-VWQGF3KW.js";
20
+ } from "./chunk-OKUJY5YB.js";
21
21
  import {
22
22
  createWorkflowContinuationSigner
23
23
  } from "./chunk-HP7JIYMT.js";
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var builtinShortcuts = [
41
41
  lazyShortcut({
42
42
  name: "invoice",
43
43
  description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
44
- load: async () => (await import("./chunks/invoice-MOGNB6HN.js")).invoiceShortcut
44
+ load: async () => (await import("./chunks/invoice-2QCVNXBG.js")).invoiceShortcut
45
45
  }),
46
46
  lazyShortcut({
47
47
  name: "ehr",
@@ -51,7 +51,7 @@ var builtinShortcuts = [
51
51
  lazyShortcut({
52
52
  name: "recruit-stage",
53
53
  description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
54
- load: async () => (await import("./chunks/recruit-stage-WPGB5BDJ.js")).recruitStageShortcut
54
+ load: async () => (await import("./chunks/recruit-stage-KHJYQE3I.js")).recruitStageShortcut
55
55
  }),
56
56
  lazyShortcut({
57
57
  name: "performance",
@@ -66,7 +66,7 @@ var builtinShortcuts = [
66
66
  lazyShortcut({
67
67
  name: "archive",
68
68
  description: "E10 \u6587\u4E66\u5B9A\u6863\u6848\u7BA1\u7406 CLI",
69
- load: async () => (await import("./chunks/archive-WUZKAEZ6.js")).archiveShortcut
69
+ load: async () => (await import("./chunks/archive-SJTC5265.js")).archiveShortcut
70
70
  }),
71
71
  lazyShortcut({
72
72
  name: "archive-oa",
@@ -86,7 +86,7 @@ var builtinShortcuts = [
86
86
  lazyShortcut({
87
87
  name: "hrm",
88
88
  description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
89
- load: async () => (await import("./chunks/hrm-XKL27NX2.js")).hrmShortcut
89
+ load: async () => (await import("./chunks/hrm-5WSMSKPX.js")).hrmShortcut
90
90
  }),
91
91
  lazyShortcut({
92
92
  name: "mail",
@@ -96,12 +96,12 @@ var builtinShortcuts = [
96
96
  lazyShortcut({
97
97
  name: "meeting",
98
98
  description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
99
- load: async () => (await import("./chunks/meeting-ROWDB3DO.js")).meetingShortcut
99
+ load: async () => (await import("./chunks/meeting-3PTTPUSG.js")).meetingShortcut
100
100
  }),
101
101
  lazyShortcut({
102
102
  name: "okr",
103
103
  description: "\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406 CLI\uFF08\u76EE\u6807\u67E5\u8BE2/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\uFF09",
104
- load: async () => (await import("./chunks/okr-VZXRQGS4.js")).okrShortcut
104
+ load: async () => (await import("./chunks/okr-OIWJRYWY.js")).okrShortcut
105
105
  }),
106
106
  lazyShortcut({
107
107
  name: "plan",
@@ -116,17 +116,17 @@ var builtinShortcuts = [
116
116
  lazyShortcut({
117
117
  name: "ebuilder-form",
118
118
  description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
119
- load: async () => (await import("./chunks/ebuilder-form-ZONRROK4.js")).ebuilderFormShortcut
119
+ load: async () => (await import("./chunks/ebuilder-form-5ENYH7IF.js")).ebuilderFormShortcut
120
120
  }),
121
121
  lazyShortcut({
122
122
  name: "jiuchuanhui",
123
123
  description: "\u6CDB\u5FAEE10\u4E5D\u6C1A\u6C47\u8425\u9500\u7BA1\u7406 CLI\uFF08\u5BA2\u6237/\u8054\u7CFB\u4EBA/\u5546\u673A/\u7EBF\u7D22/\u8054\u7CFB\u8BA1\u5212/\u516C\u6D77\uFF09",
124
- load: async () => (await import("./chunks/jiuchuanhui-3T5X7SB7.js")).jiuchuanhuiShortcut
124
+ load: async () => (await import("./chunks/jiuchuanhui-FHGFYAHU.js")).jiuchuanhuiShortcut
125
125
  }),
126
126
  lazyShortcut({
127
127
  name: "asset",
128
128
  description: "E10 \u8D44\u4EA7\u7BA1\u7406\uFF08\u8D44\u7BA1\u5BB6\uFF09CLI",
129
- load: async () => (await import("./chunks/asset-ZPC5VWZM.js")).assetShortcut
129
+ load: async () => (await import("./chunks/asset-XM3Y4FVU.js")).assetShortcut
130
130
  }),
131
131
  lazyShortcut({
132
132
  name: "asset-idle",
@@ -136,7 +136,7 @@ var builtinShortcuts = [
136
136
  lazyShortcut({
137
137
  name: "im",
138
138
  description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
139
- load: async () => (await import("./chunks/im-NDYIMASG.js")).imShortcut
139
+ load: async () => (await import("./chunks/im-P7GNBRG6.js")).imShortcut
140
140
  }),
141
141
  lazyShortcut({
142
142
  name: "project",
@@ -146,7 +146,7 @@ var builtinShortcuts = [
146
146
  lazyShortcut({
147
147
  name: "workflow",
148
148
  description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
149
- load: async () => (await import("./chunks/workflow-LBFFZZN2.js")).workflowShortcut
149
+ load: async () => (await import("./chunks/workflow-GEDHALMY.js")).workflowShortcut
150
150
  }),
151
151
  lazyShortcut({
152
152
  name: "blog",
@@ -161,22 +161,22 @@ var builtinShortcuts = [
161
161
  lazyShortcut({
162
162
  name: "contract",
163
163
  description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
164
- load: async () => (await import("./chunks/contract-N5WNHKHI.js")).contractShortcut
164
+ load: async () => (await import("./chunks/contract-PM3EUPZC.js")).contractShortcut
165
165
  }),
166
166
  lazyShortcut({
167
167
  name: "reception",
168
168
  description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
169
- load: async () => (await import("./chunks/reception-3FT2F66K.js")).receptionShortcut
169
+ load: async () => (await import("./chunks/reception-2VSWJQ5N.js")).receptionShortcut
170
170
  }),
171
171
  lazyShortcut({
172
172
  name: "smart-extract",
173
173
  description: "\u6CDB\u5FAEE10\u667A\u80FD\u62BD\u53D6 CLI\uFF08\u8868\u5355\u7ED3\u6784 / \u9644\u4EF6\u6B63\u6587 / \u6821\u9A8C\u5E76\u843D\u5E93\uFF0C\u8FD4\u56DE aiExtraId\uFF09",
174
- load: async () => (await import("./chunks/smart-extract-DEBLJPCQ.js")).smartExtractShortcut
174
+ load: async () => (await import("./chunks/smart-extract-TYYKC244.js")).smartExtractShortcut
175
175
  }),
176
176
  lazyShortcut({
177
177
  name: "data",
178
178
  description: "\u6CDB\u5FAEE10\u6570\u636E\u52A9\u624B CLI\uFF08\u6570\u636E\u6E90\u67E5\u8BE2 / \u914D\u7F6E\u4E2D\u5FC3 / \u573A\u666F\u5B9A\u4F4D\uFF09",
179
- load: async () => (await import("./chunks/data-QKWI5325.js")).dataShortcut
179
+ load: async () => (await import("./chunks/data-3G4GQS5P.js")).dataShortcut
180
180
  })
181
181
  ];
182
182
  function shortcutMetadata() {
@@ -21,11 +21,15 @@ const archiveInfoGet = {
21
21
  summary: '查看档案条目的基本信息(年度/案卷号/起止件号/文件日期/保管期限/密级/库位等);输入为档案标识 {档案ID}_{表单ID}(可来自借阅车 arc_dangan)',
22
22
  capability: 'archive',
23
23
  risk: READ,
24
- inputSchema: schemaOf({
25
- arcDangan: { type: 'string', description: '{档案ID}_{表单ID},与 dataId+formId 二选一' },
26
- dataId: { type: 'string', pattern: '^\\d+$', description: '档案数据 ID(arc_dangan 拆解前半段)' },
27
- formId: { type: 'string', pattern: '^\\d+$', description: '档案所属表单 ID(arc_dangan 拆解后半段)' },
28
- }, { description: '查询档案基本信息;arcDangan 与 dataId+formId 至少提供一组' }),
24
+ inputSchema: {
25
+ ...schemaOf({
26
+ arcDangan: { type: 'string', description: '{档案ID}_{表单ID},与 dataId+formId 二选一' },
27
+ dataId: { type: 'string', pattern: '^\\d+$', description: '档案数据 ID(arc_dangan 拆解前半段)' },
28
+ formId: { type: 'string', pattern: '^\\d+$', description: '档案所属表单 ID(arc_dangan 拆解后半段)' },
29
+ }, { description: '查询档案基本信息;arcDangan 与 dataId+formId 至少提供一组' }),
30
+ // 两组定位方式至少给一组:只给 arcDangan 时由它拆出 dataId+formId(见 handler 的 id_pair_required)
31
+ anyOf: [{ required: ['arcDangan'] }, { required: ['dataId', 'formId'] }],
32
+ },
29
33
  handler: async (args, { host }) => {
30
34
  let pair;
31
35
  if (args.arcDangan !== undefined) {
@@ -83,6 +83,8 @@ export const ziguanjiaOperations = [
83
83
  asset_name: { type: 'string' },
84
84
  with_view_link: { type: 'boolean', default: true, description: '是否给命中记录附带「查看详情」链接(默认 true)' },
85
85
  },
86
+ // id / asset_number / asset_name 至少给一个,否则运行时直接报 input_required
87
+ anyOf: [{ required: ['id'] }, { required: ['asset_number'] }, { required: ['asset_name'] }],
86
88
  },
87
89
  },
88
90
  {
@@ -139,10 +141,11 @@ export const ziguanjiaOperations = [
139
141
  type: 'object',
140
142
  additionalProperties: false,
141
143
  properties: {
142
- house_name: { type: 'string', description: '地点名称,按名称过滤取 ID' },
144
+ house_name: { type: 'string', description: '地点名称,按名称过滤取 ID(必填)' },
143
145
  page_no: { type: 'integer', minimum: 1, default: 1 },
144
146
  page_size: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
145
147
  },
148
+ required: ['house_name'],
146
149
  },
147
150
  },
148
151
  {
@@ -153,10 +156,11 @@ export const ziguanjiaOperations = [
153
156
  type: 'object',
154
157
  additionalProperties: false,
155
158
  properties: {
156
- status_name: { type: 'string', description: '状态名称,按名称过滤取 ID' },
159
+ status_name: { type: 'string', description: '状态名称,按名称过滤取 ID(必填)' },
157
160
  page_no: { type: 'integer', minimum: 1, default: 1 },
158
161
  page_size: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
159
162
  },
163
+ required: ['status_name'],
160
164
  },
161
165
  },
162
166
  {
@@ -167,10 +171,11 @@ export const ziguanjiaOperations = [
167
171
  type: 'object',
168
172
  additionalProperties: false,
169
173
  properties: {
170
- type_name: { type: 'string', description: '类型名称,按名称过滤取 ID' },
174
+ type_name: { type: 'string', description: '类型名称,按名称过滤取 ID(必填)' },
171
175
  page_no: { type: 'integer', minimum: 1, default: 1 },
172
176
  page_size: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
173
177
  },
178
+ required: ['type_name'],
174
179
  },
175
180
  },
176
181
  {
@@ -107,14 +107,28 @@ const contractAssistantOperationContracts = ([
107
107
  pageNo: { type: 'integer', minimum: 1 },
108
108
  pageSize: { type: 'integer', minimum: 1, maximum: 200 },
109
109
  }),
110
- assistantRead('contract.assistant.rule.group.query', {
111
- method: 'POST',
112
- path: '/api/ebd/contract/ai/config/queryCustomConfigRules',
113
- }, { config_id: idString, configId: idString }, []),
114
- assistantRead('contract.assistant.element.query', {
115
- method: 'POST',
116
- path: '/api/ebd/contract/ai/config/queryElementConfigRules',
117
- }, { config_id: idString, configId: idString }, []),
110
+ {
111
+ name: 'contract.assistant.rule.group.query',
112
+ risk: 'read',
113
+ auth: AUTH,
114
+ fixed: { method: 'POST', path: '/api/ebd/contract/ai/config/queryCustomConfigRules' },
115
+ // config_id / configId 二选一:handler 为 requireId(input.config_id ?? input.configId)
116
+ inputSchema: {
117
+ ...readSchema({ config_id: idString, configId: idString }),
118
+ anyOf: [{ required: ['config_id'] }, { required: ['configId'] }],
119
+ },
120
+ },
121
+ {
122
+ name: 'contract.assistant.element.query',
123
+ risk: 'read',
124
+ auth: AUTH,
125
+ fixed: { method: 'POST', path: '/api/ebd/contract/ai/config/queryElementConfigRules' },
126
+ // config_id / configId 二选一:handler 为 requireId(input.config_id ?? input.configId)
127
+ inputSchema: {
128
+ ...readSchema({ config_id: idString, configId: idString }),
129
+ anyOf: [{ required: ['config_id'] }, { required: ['configId'] }],
130
+ },
131
+ },
118
132
  assistantRead('contract.assistant.flow.list', {
119
133
  method: 'POST',
120
134
  path: '/api/ebd/contract/tool/permission/list/page',
@@ -545,18 +559,22 @@ const quoteContracts = [
545
559
  name: 'contract.ledger.aggregate',
546
560
  risk: 'read',
547
561
  fixed: { local: true, kind: 'ledger-aggregate' },
548
- inputSchema: readSchema({
549
- ref: { type: 'string', minLength: 1, description: '单个 refId(weaver-work-cli refs 暂存结果)' },
550
- refs: { type: 'array', items: { type: 'string' }, description: '多个 refId:分批取数后合并统计' },
551
- file: { type: 'string', maxLength: 4096, description: '直接给结果 JSON 文件路径(与 ref/refs 可同时使用)' },
552
- refsDir: { type: 'string', maxLength: 4096, description: 'refs 根目录;默认 ~/.weaver-work-cli/state/refs' },
553
- by: { type: 'array', items: { type: 'string' }, description: '分组字段(语义键,如 xsjl / khmc);不传只出总计' },
554
- sum: { type: 'array', items: { type: 'string' }, description: '求和字段(金额,如 htzje / yxje)' },
555
- where: { type: 'array', items: { type: 'string' }, description: '过滤条件,形如 xsjl=吴洋洋(子串匹配)' },
556
- dedupe: { type: 'boolean', description: '按 id / form_data_id / rowKey / ebrecord_rowkey 去重(分批窗口重叠时使用)' },
557
- detail: { type: 'boolean', description: '输出命中明细(签订日期/合同号/客户/销售经理/合同总金额)' },
558
- limit: { type: 'integer', minimum: 1, maximum: 1000, description: '明细最多返回条数,默认 20' },
559
- }),
562
+ inputSchema: {
563
+ ...readSchema({
564
+ ref: { type: 'string', minLength: 1, description: '单个 refId(weaver-work-cli refs 暂存结果)' },
565
+ refs: { type: 'array', items: { type: 'string' }, description: '多个 refId:分批取数后合并统计' },
566
+ file: { type: 'string', maxLength: 4096, description: '直接给结果 JSON 文件路径(与 ref/refs 可同时使用)' },
567
+ refsDir: { type: 'string', maxLength: 4096, description: 'refs 根目录;默认 ~/.weaver-work-cli/state/refs' },
568
+ by: { type: 'array', items: { type: 'string' }, description: '分组字段(语义键,如 xsjl / khmc);不传只出总计' },
569
+ sum: { type: 'array', items: { type: 'string' }, description: '求和字段(金额,如 htzje / yxje)' },
570
+ where: { type: 'array', items: { type: 'string' }, description: '过滤条件,形如 xsjl=吴洋洋(子串匹配)' },
571
+ dedupe: { type: 'boolean', description: '按 id / form_data_id / rowKey / ebrecord_rowkey 去重(分批窗口重叠时使用)' },
572
+ detail: { type: 'boolean', description: '输出命中明细(签订日期/合同号/客户/销售经理/合同总金额)' },
573
+ limit: { type: 'integer', minimum: 1, maximum: 1000, description: '明细最多返回条数,默认 20' },
574
+ }),
575
+ // 结果来源三选一:handler 无来源时抛 source_required(ledger.ts)
576
+ anyOf: [{ required: ['ref'] }, { required: ['refs'] }, { required: ['file'] }],
577
+ },
560
578
  },
561
579
  {
562
580
  name: 'contract.ledger.metrics',
@@ -31,7 +31,12 @@ const INPUT_SCHEMAS = {
31
31
  'data.ds.count': { required: ['group', 'table'], optional: ['where', 'source_type', 'app_id'] },
32
32
  'data.noun.list': { required: ['skill'], optional: ['source_type', 'source_group', 'source_table'] },
33
33
  'data.noun.scope': { required: ['ids'], optional: [] },
34
- 'data.attribution.metric': { required: [], optional: ['ids', 'group_ids', 'item_ids'] },
34
+ 'data.attribution.metric': {
35
+ required: [],
36
+ optional: ['ids', 'group_ids', 'item_ids'],
37
+ // 至少其一:handler 三者全空即抛 missing_argument(attribution.ts parseAttributionScopeIds)
38
+ anyOf: [{ required: ['ids'] }, { required: ['group_ids'] }, { required: ['item_ids'] }],
39
+ },
35
40
  'data.field.name2id': { required: ['module', 'type', 'name'], optional: ['form_param', 'eb_browser_param', 'property_type'] },
36
41
  'data.field.options': { required: ['field_name', 'obj_id', 'group'], optional: ['source_type'] },
37
42
  'data.conf.get': { required: ['key'], optional: ['type', 'group'] },
@@ -58,6 +63,12 @@ const INPUT_SCHEMAS = {
58
63
  'method', 'fields', 'raw', 'show_params', 'full', 'with_example', 'no_example',
59
64
  'dry_run', 'timeout',
60
65
  ],
66
+ // conf_key + group 与本地 confAttrs(conf_file / attrs)二选一(module.ts 头部两条校验)
67
+ anyOf: [
68
+ { required: ['conf_key', 'group'] },
69
+ { required: ['conf_file'] },
70
+ { required: ['attrs'] },
71
+ ],
61
72
  },
62
73
  'data.attend.statis': { required: [], optional: ['user', 'begin', 'end'] },
63
74
  };
@@ -71,6 +82,7 @@ function inputSchemaOf(name) {
71
82
  type: 'object',
72
83
  properties,
73
84
  required: spec.required,
85
+ ...(spec.anyOf ? { anyOf: spec.anyOf } : {}),
74
86
  additionalProperties: false,
75
87
  };
76
88
  }
@@ -81,6 +81,8 @@ export const ebuilderFormOperations = [
81
81
  orderParams: { type: 'array' },
82
82
  passid: { type: 'string' },
83
83
  cid: { type: 'string' },
84
+ }, {
85
+ anyOf: [{ required: ['context'] }, { required: ['listId', 'appId'] }, { required: ['menuKeywords'] }, { required: ['menu'] }, { required: ['url'] }],
84
86
  }),
85
87
  },
86
88
  {
@@ -107,6 +109,8 @@ export const ebuilderFormOperations = [
107
109
  pageFilter: {},
108
110
  customConfig: { type: 'object' },
109
111
  refPluginPackageId: { type: 'string' },
112
+ }, {
113
+ anyOf: [{ required: ['context'] }, { required: ['hostPageId', 'appId'] }, { required: ['menuKeywords'] }, { required: ['menu'] }, { required: ['url'] }],
110
114
  }),
111
115
  },
112
116
  {
@@ -123,6 +127,15 @@ export const ebuilderFormOperations = [
123
127
  enableMerge: { type: ['boolean', 'string'], default: true },
124
128
  customParam: {},
125
129
  params: {},
130
+ }, {
131
+ anyOf: [
132
+ { required: ['context'] },
133
+ { required: ['url'] },
134
+ { required: ['menuKeywords'] },
135
+ { required: ['menu'] },
136
+ { required: ['objId'] },
137
+ { required: ['listId', 'appId', 'listKind'] },
138
+ ],
126
139
  }),
127
140
  },
128
141
  {
@@ -130,16 +143,31 @@ export const ebuilderFormOperations = [
130
143
  summary: '按字段元数据 ID 读取选择类字段选项',
131
144
  risk: 'read',
132
145
  fixed: { path: '/api/ebuilder/common/ds/options' },
133
- inputSchema: schema({
134
- ...contextProperties,
135
- fieldName: { type: 'string', pattern: '^\\d+$' },
136
- fieldId: { type: 'string', pattern: '^\\d+$' },
137
- sourceType: { type: 'string', default: 'FORM' },
138
- groupId: { type: 'string' },
139
- optionLevel: { type: ['integer', 'string'], default: 1 },
140
- }, {
141
- anyOf: [{ required: ['fieldName'] }, { required: ['fieldId'] }],
142
- }),
146
+ inputSchema: {
147
+ ...schema({
148
+ ...contextProperties,
149
+ fieldName: { type: 'string', pattern: '^\\d+$' },
150
+ fieldId: { type: 'string', pattern: '^\\d+$' },
151
+ sourceType: { type: 'string', default: 'FORM' },
152
+ groupId: { type: 'string' },
153
+ optionLevel: { type: ['integer', 'string'], default: 1 },
154
+ }),
155
+ // 两条同时成立:① fieldName / fieldId 二选一;② 上下文至少要能给出一组(resolveContext 最终要求 objId)
156
+ allOf: [
157
+ { anyOf: [{ required: ['fieldName'] }, { required: ['fieldId'] }] },
158
+ {
159
+ anyOf: [
160
+ { required: ['context'] },
161
+ { required: ['objId'] },
162
+ { required: ['listId', 'appId'] },
163
+ { required: ['hostPageId', 'appId'] },
164
+ { required: ['menuKeywords'] },
165
+ { required: ['menu'] },
166
+ { required: ['url'] },
167
+ ],
168
+ },
169
+ ],
170
+ },
143
171
  },
144
172
  {
145
173
  name: 'ebuilder-form.mapping.get',
@@ -205,17 +205,28 @@ const employeeQuery = {
205
205
  action: 'hrm.employee.query',
206
206
  summary: '按工号/姓名/手机/邮箱(keyword 自动推断或显式字段)查询员工;默认在职,status 传 ["6"] 查离职;默认每行只回人员信息',
207
207
  risk: READ,
208
- inputSchema: schemaOf({
209
- keyword: { type: 'string', description: '查询关键词,自动推断:含 @→邮箱;11 位纯数字→手机;纯数字或字母开头含数字→工号;其余→姓名(模糊)' },
210
- username: { type: 'string', description: '姓名(模糊匹配)' },
211
- job_num: { type: 'string', description: '工号(模糊匹配)' },
212
- mobile: { type: 'string', description: '手机号(模糊匹配)' },
213
- email: { type: 'string', description: '邮箱(模糊匹配)' },
214
- status: { type: 'array', items: { type: 'string', enum: [...EMPLOYEE_STATUS] }, description: '默认 ["normal"] 在职;["6"] 离职。不能单独作为收敛条件' },
215
- full: { type: 'boolean', description: '默认 false:每行只回人员信息(id/name/department/position/statusCode/link);true:回完整行(另含 userid/cid/mobile/departmentId/deptLink)' },
216
- all: { type: 'boolean', description: 'true = 自动翻页拉全量(最多 50 页);结果多时建议直接传,避免只拿到第一页' },
217
- ...SCHEMA_PAGE,
218
- }),
208
+ inputSchema: {
209
+ ...schemaOf({
210
+ keyword: { type: 'string', description: '查询关键词,自动推断:含 @→邮箱;11 位纯数字→手机;纯数字或字母开头含数字→工号;其余→姓名(模糊)' },
211
+ username: { type: 'string', description: '姓名(模糊匹配)' },
212
+ job_num: { type: 'string', description: '工号(模糊匹配)' },
213
+ mobile: { type: 'string', description: '手机号(模糊匹配)' },
214
+ email: { type: 'string', description: '邮箱(模糊匹配)' },
215
+ status: { type: 'array', items: { type: 'string', enum: [...EMPLOYEE_STATUS] }, description: '默认 ["normal"] 在职;["6"] 离职。不能单独作为收敛条件' },
216
+ full: { type: 'boolean', description: '默认 false:每行只回人员信息(id/name/department/position/statusCode/link);true:回完整行(另含 userid/cid/mobile/departmentId/deptLink)' },
217
+ all: { type: 'boolean', description: 'true = 自动翻页拉全量(最多 50 页);结果多时建议直接传,避免只拿到第一页' },
218
+ ...SCHEMA_PAGE,
219
+ }),
220
+ anyOf: [
221
+ { required: ['keyword'] },
222
+ { required: ['username'] },
223
+ { required: ['job_num'] },
224
+ { required: ['mobile'] },
225
+ { required: ['email'] },
226
+ // all:true 是「无收敛条件拉全员」的显式开关(见 resolveEmployeeCondition),all:false 不算条件
227
+ { required: ['all'], properties: { all: { const: true } } },
228
+ ],
229
+ },
219
230
  handler: async (args, { host }) => {
220
231
  const { field, value } = resolveEmployeeCondition(args);
221
232
  const status = Array.isArray(args.status) && args.status.length > 0 ? args.status : ['normal'];
@@ -15,15 +15,24 @@ const orgQuery = {
15
15
  action: 'hrm.org.query',
16
16
  summary: '按名称/编号/上级组织查询分部或部门(type 区分;不传 type 时默认部门,可用 type 切分部分部)',
17
17
  risk: READ,
18
- inputSchema: schemaOf({
19
- type: { type: 'string', enum: [...ORG_TYPES], description: 'subcompany 分部 / department 部门;不传默认 department' },
20
- name: { type: 'string', description: '名称(模糊包含匹配)' },
21
- code: { type: 'string', description: '编号(模糊包含匹配)' },
22
- parent: { type: 'array', items: SCHEMA_ID, description: '上级部门 id 数组(部门挂在部门下,department)' },
23
- subcompany: { type: 'array', items: SCHEMA_ID, description: '上级分部 id 数组(部门挂在分部下,department)' },
24
- supSubDepartment: { type: 'array', items: SCHEMA_ID, description: '上级分部 id 数组(分部挂在分部下,subcompany)' },
25
- ...SCHEMA_PAGE,
26
- }),
18
+ inputSchema: {
19
+ ...schemaOf({
20
+ type: { type: 'string', enum: [...ORG_TYPES], description: 'subcompany 分部 / department 部门;不传默认 department' },
21
+ name: { type: 'string', description: '名称(模糊包含匹配)' },
22
+ code: { type: 'string', description: '编号(模糊包含匹配)' },
23
+ parent: { type: 'array', items: SCHEMA_ID, description: '上级部门 id 数组(部门挂在部门下,department)' },
24
+ subcompany: { type: 'array', items: SCHEMA_ID, description: '上级分部 id 数组(部门挂在分部下,department)' },
25
+ supSubDepartment: { type: 'array', items: SCHEMA_ID, description: '上级分部 id 数组(分部挂在分部下,subcompany)' },
26
+ ...SCHEMA_PAGE,
27
+ }),
28
+ anyOf: [
29
+ { required: ['name'] },
30
+ { required: ['code'] },
31
+ { required: ['parent'] },
32
+ { required: ['subcompany'] },
33
+ { required: ['supSubDepartment'] },
34
+ ],
35
+ },
27
36
  handler: async (args, { host }) => {
28
37
  const type = args.type === undefined ? 'department' : String(args.type);
29
38
  if (!ORG_TYPES.includes(type)) {