weaver-work-cli 0.1.60 → 0.1.62

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 (139) hide show
  1. package/dist/chunks/{archive-4SQAVTIB.js → archive-S2VKZWQ3.js} +2 -2
  2. package/dist/chunks/{archive-oa-W2UEJ67L.js → archive-oa-HEDSIUUY.js} +2 -2
  3. package/dist/chunks/{asset-EGZEABBI.js → asset-HYH4W357.js} +2 -2
  4. package/dist/chunks/{asset-idle-EBUZBB6M.js → asset-idle-N7REBNGL.js} +2 -2
  5. package/dist/chunks/{attachment-content-I6WHKGR2.js → attachment-content-VYYA75FR.js} +3 -3
  6. package/dist/chunks/{blog-2YKMWOWI.js → blog-SLMZZICV.js} +2 -2
  7. package/dist/chunks/{caizhilian-5NM4X5HG.js → caizhilian-RV43KKBT.js} +4 -4
  8. package/dist/chunks/{calendar-H4QTJCUY.js → calendar-DMVZ4OLY.js} +2 -2
  9. package/dist/chunks/{chunk-VLL6JOB4.js → chunk-6XSSAUNW.js} +4 -4
  10. package/dist/chunks/{chunk-VQWPQTEY.js → chunk-BIA2NKUG.js} +4 -4
  11. package/dist/chunks/{chunk-VMCCRWFO.js → chunk-BQYX2UX5.js} +2 -2
  12. package/dist/chunks/{chunk-XF7S6FQW.js → chunk-DTCQFTHW.js} +1 -1
  13. package/dist/chunks/{chunk-CPG6NLN4.js → chunk-E5YD5JWR.js} +1 -1
  14. package/dist/chunks/{chunk-PH7N4UFT.js → chunk-EGANE35F.js} +1 -1
  15. package/dist/chunks/{chunk-Z4IPY5GV.js → chunk-H6YOMI3U.js} +2 -2
  16. package/dist/chunks/{chunk-HHH4K3YY.js → chunk-ILALC2N6.js} +1 -1
  17. package/dist/chunks/{chunk-WINR2Q6K.js → chunk-KXJA42EA.js} +86 -19
  18. package/dist/chunks/{chunk-CQ4OVCKG.js → chunk-KY3R42RS.js} +2 -2
  19. package/dist/chunks/{chunk-WVH5ESDA.js → chunk-NRYDJN4J.js} +1 -1
  20. package/dist/chunks/{chunk-TGM7BWEH.js → chunk-P6TXQK75.js} +2 -2
  21. package/dist/chunks/{chunk-6YWHRXEQ.js → chunk-QBDXJS2W.js} +119 -9
  22. package/dist/chunks/{chunk-2IGZUMNG.js → chunk-SHX7XBYR.js} +180 -18
  23. package/dist/chunks/{chunk-P7RXQDCA.js → chunk-T2KVJFWJ.js} +4 -4
  24. package/dist/chunks/{chunk-FMNCSYIG.js → chunk-TEZHIB6T.js} +2 -2
  25. package/dist/chunks/{chunk-HMIIVM2L.js → chunk-UBGWIXU3.js} +97 -45
  26. package/dist/chunks/{chunk-5N222HK6.js → chunk-UBRWONP4.js} +2 -2
  27. package/dist/chunks/{chunk-7U5YHCW7.js → chunk-UQFPF4EX.js} +2 -2
  28. package/dist/chunks/{chunk-4GG72JAT.js → chunk-V2LASYKO.js} +2 -2
  29. package/dist/chunks/{chunk-BDBTZVYA.js → chunk-VBFBMM7G.js} +55 -55
  30. package/dist/chunks/{chunk-YHSOCGKO.js → chunk-VNYOUAWV.js} +11 -11
  31. package/dist/chunks/{chunk-SFM3M2L3.js → chunk-WIWDVETN.js} +19 -3
  32. package/dist/chunks/{chunk-44KJ7WFA.js → chunk-XT77MP54.js} +2 -2
  33. package/dist/chunks/{chunk-JFKMPRZB.js → chunk-YI2YMW5N.js} +50 -3
  34. package/dist/chunks/{conflict-QMDLS2EW.js → conflict-GFJRS6I7.js} +2 -2
  35. package/dist/chunks/{contract-LLRKMLQQ.js → contract-U3ZGNRWB.js} +2 -2
  36. package/dist/chunks/{cowork-2RDFBZWB.js → cowork-EX7PKIDK.js} +2 -2
  37. package/dist/chunks/{create-flow-5ODJ7WJO.js → create-flow-EJZD434E.js} +6 -6
  38. package/dist/chunks/{data-LVDFIRNG.js → data-FOODGAMF.js} +278 -121
  39. package/dist/chunks/{ebuilder-form-7WA6X6ZI.js → ebuilder-form-I2EOKODG.js} +3 -3
  40. package/dist/chunks/{ehr-52GBKNJR.js → ehr-TE4RFNID.js} +2 -2
  41. package/dist/chunks/{entry-mode-73BJML22.js → entry-mode-ZOLSXEGX.js} +9 -5
  42. package/dist/chunks/{env-OHFS76HV.js → env-TID5NFR6.js} +2 -2
  43. package/dist/chunks/{esb-HJSXCEOM.js → esb-7L6MHYLB.js} +4 -4
  44. package/dist/chunks/{factory-FRTA2LP4.js → factory-OG7BPMH5.js} +1 -1
  45. package/dist/chunks/{fna-OBACRT3J.js → fna-6V2ENR3Y.js} +2 -2
  46. package/dist/chunks/{group-chat-KBFRPCR2.js → group-chat-5DKPWIHL.js} +3 -3
  47. package/dist/chunks/{host-TTSGY5NZ.js → host-3DLYA54R.js} +3 -3
  48. package/dist/chunks/{host-KJT3G5D2.js → host-GOJHHTPY.js} +3 -3
  49. package/dist/chunks/{host-KOWUMNAY.js → host-OGBHL75G.js} +3 -3
  50. package/dist/chunks/{host-MFXRA2MY.js → host-ONZC6AE7.js} +3 -3
  51. package/dist/chunks/{host-W4JCNRFS.js → host-TJ5VVHM7.js} +3 -3
  52. package/dist/chunks/{host-2BKMPWDH.js → host-VTPAWDZV.js} +3 -3
  53. package/dist/chunks/{hrm-AK3WGBMN.js → hrm-2N7NFQDZ.js} +3 -3
  54. package/dist/chunks/{im-JZSBPO4Z.js → im-XCH47ZBN.js} +3 -3
  55. package/dist/chunks/{invoice-6XDMPCWB.js → invoice-5KJ7T774.js} +198 -331
  56. package/dist/chunks/{jiuchuanhui-K4EQU6GK.js → jiuchuanhui-PL6DRPBM.js} +2 -2
  57. package/dist/chunks/{lazy-dispatch-GCA6HDOB.js → lazy-dispatch-UATEN7H7.js} +5 -5
  58. package/dist/chunks/{mail-IKVCQCVZ.js → mail-Q7Z4CQ4D.js} +2 -2
  59. package/dist/chunks/{meeting-ARHVWK7G.js → meeting-5E3BNARL.js} +13 -13
  60. package/dist/chunks/{minute-doc-547KSYKR.js → minute-doc-NXRE5C77.js} +4 -4
  61. package/dist/chunks/{okr-KV43FPPX.js → okr-3O3XNYOK.js} +2 -2
  62. package/dist/chunks/{operations-6NXJ7RTE.js → operations-EZWG72FH.js} +4 -4
  63. package/dist/chunks/performance-Y7CPNSOR.js +1295 -0
  64. package/dist/chunks/{plan-WOYR4WEG.js → plan-BLGPZF5M.js} +2 -2
  65. package/dist/chunks/{project-CQJKBUIL.js → project-6MZMLJMP.js} +2 -2
  66. package/dist/chunks/{reception-MPBU3JXC.js → reception-F2VT2X52.js} +2 -2
  67. package/dist/chunks/{recruit-stage-USTTRHOX.js → recruit-stage-4ETIBMIW.js} +2 -2
  68. package/dist/chunks/{registry-GURQG4ZV.js → registry-3FYSWV3U.js} +3 -3
  69. package/dist/chunks/{registry-SS5J2FZQ.js → registry-7RS74TCK.js} +4 -4
  70. package/dist/chunks/{registry-H5HQ5QNH.js → registry-I4DVPDMU.js} +11 -11
  71. package/dist/chunks/{room-recommend-3UBROMZE.js → room-recommend-GWCVKCXW.js} +4 -4
  72. package/dist/chunks/{schedule-FTUQML6O.js → schedule-6AN63MJQ.js} +4 -4
  73. package/dist/chunks/{smart-extract-APX2PNIN.js → smart-extract-SR4SJJKN.js} +3 -3
  74. package/dist/chunks/{workflow-WMPW3WSB.js → workflow-KF7FA2UQ.js} +7 -7
  75. package/dist/cmd/refs/index.js +124 -4
  76. package/dist/core/output.js +199 -26
  77. package/dist/core/refs.js +36 -0
  78. package/dist/index.js +38 -33
  79. package/dist/internal/e10/auth/xiaoe.js +25 -3
  80. package/dist/shortcuts/caizhilian/operations/files.js +86 -15
  81. package/dist/shortcuts/data/index.js +12 -2
  82. package/dist/shortcuts/data/manifest.js +4 -2
  83. package/dist/shortcuts/data/operations/attribution.js +229 -0
  84. package/dist/shortcuts/data/operations/ds.js +87 -90
  85. package/dist/shortcuts/data/operations/index.js +3 -1
  86. package/dist/shortcuts/index.js +5 -0
  87. package/dist/shortcuts/invoice/manifest.js +30 -62
  88. package/dist/shortcuts/invoice/operations/registry.js +2 -2
  89. package/dist/shortcuts/invoice/operations/reim-customer.js +111 -0
  90. package/dist/shortcuts/invoice/operations/shared.js +0 -204
  91. package/dist/shortcuts/meeting/operations/eb/create-flow.js +84 -16
  92. package/dist/shortcuts/meeting/operations/eb/entry-mode.js +61 -7
  93. package/dist/shortcuts/performance/continuation.js +74 -0
  94. package/dist/shortcuts/performance/errors.js +65 -0
  95. package/dist/shortcuts/performance/host.js +105 -0
  96. package/dist/shortcuts/performance/index.js +109 -0
  97. package/dist/shortcuts/performance/manifest.js +30 -0
  98. package/dist/shortcuts/performance/operations/hrm-resolve.js +114 -0
  99. package/dist/shortcuts/performance/operations/registry.js +44 -0
  100. package/dist/shortcuts/performance/operations/scheme-detail.js +70 -0
  101. package/dist/shortcuts/performance/operations/scheme-draft.js +116 -0
  102. package/dist/shortcuts/performance/operations/scheme-publish.js +158 -0
  103. package/dist/shortcuts/performance/operations/types.js +32 -0
  104. package/dist/shortcuts/performance/scheme-validate.js +307 -0
  105. package/dist/shortcuts/performance/shared.js +158 -0
  106. package/docs/agent-invoice.md +1 -1
  107. package/docs/agent-io-channel-design.md +67 -3
  108. package/docs/data.md +2 -1
  109. package/docs/invoice.md +0 -2
  110. package/package.json +1 -1
  111. package/scripts/xiaoe_env.py +6 -1
  112. package/skill-template/business-info.json +19 -0
  113. package/skill-template/domains/performance.md +18 -0
  114. package/skill-template/domains/yepiaotong.md +0 -1
  115. package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
  116. package/skills/weaver-e10-data/references/datasource.md +2 -1
  117. package/skills/weaver-e10-meeting/SKILL.md +5 -3
  118. package/skills/weaver-e10-performance/SKILL.md +202 -0
  119. package/skills/weaver-e10-performance/agents/openai.yaml +74 -0
  120. package/skills/weaver-e10-performance/references/default-assembly.md +108 -0
  121. package/skills/weaver-e10-performance/references/entity-resolution.md +69 -0
  122. package/skills/weaver-e10-performance/references/enums-and-normalization.md +80 -0
  123. package/skills/weaver-e10-performance/references/examples.md +146 -0
  124. package/skills/weaver-e10-performance/references/extraction-guide.md +144 -0
  125. package/skills/weaver-e10-performance/references/scheme-edit-req-fields.md +185 -0
  126. package/skills/weaver-e10-performance/references/scheme-setting-page.md +62 -0
  127. package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +483 -0
  128. package/skills/weaver-e10-shared/references/json-output-contract.md +5 -0
  129. package/skills/weaver-e10-yepiaotong/SKILL.md +16 -9
  130. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +9 -7
  131. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +15 -11
  132. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +29 -25
  133. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +89 -0
  134. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +35 -37
  135. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +66 -63
  136. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +50 -71
  137. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -95
  138. package/dist/shortcuts/invoice/operations/browse-field.js +0 -17
  139. package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +0 -204
@@ -0,0 +1,185 @@
1
+ # SchemeEditReq 全字段参考
2
+
3
+ `/edit` 与 `/applyScheme` 的共用入参。字段按处理方式分三层,**这是本 skill 组装参数的核心心智模型**:
4
+
5
+ - **A 层 · 文档可抽取**:从考核文档中读出,文档没有就不填;
6
+ - **B 层 · 需实体解析**:文档中出现的是"人名/部门名",必须换成系统内真实 id(见 [entity-resolution.md](entity-resolution.md));
7
+ - **C 层 · 默认值**:由组装规则填充(见 [default-assembly.md](default-assembly.md)),文档中通常没有对应描述。
8
+
9
+ ## A 层:文档可抽取字段
10
+
11
+ | 字段 | 类型 | 文档中的对应内容 |
12
+ |---|---|---|
13
+ | `name` | String | 方案标题,如"2026年研发中心季度绩效考核方案" |
14
+ | `dateType` | String 枚举 | "月度/季度/半年/年度考核" |
15
+ | `total` | Float | 分制(100 / 1000 / 5 …)。系统不存在的分制会自动创建,任意数值安全 |
16
+ | `countType` | Integer | 计分方式 1~4,见枚举表 |
17
+ | `assessmentDescription` | String | 考核说明章节原文;`assessmentStatus=true` 才生效 |
18
+ | `teffectTime` | Date `yyyy-MM-dd` | 生效日期 |
19
+ | `failureTime` | Date `yyyy-MM-dd` | 失效日期 |
20
+ | `distributeTime` | Long(时间戳,毫秒) | 自动分发时间;填写会使 `dateTypeSet` 变为 `custom` |
21
+ | `forbidTime` | Long(时间戳,毫秒) | 评分截止时间;同上 |
22
+ | `forbidApproveTime` | int(天数) | 审批截止天数 |
23
+ | `basicData` | List\<Map\> | **指标表格**,每行一个指标,行结构见下文 |
24
+ | `checkType` | List\<Object\> | 指标分类(业绩/能力/态度…),仅 `openCheckType=true` 时使用 |
25
+ | `plusList` / `minusList` | List\<Object\> | 加分项 / 减分项,结构见下文;填了须同时置 `includePlusItem`/`includeMinusItem`=true |
26
+ | `remark` | Boolean | 是否开启评分备注 |
27
+ | `reward` / `rewardName` | Boolean/String | 奖金模式开关与奖金名称 |
28
+ | `showTargetColumn` | Boolean | 是否显示目标值列;任一指标有目标值时应为 true |
29
+ | `openCheckType` | Boolean | 是否开启指标分类维度 |
30
+ | `weightSum` / `typeWeightSum` / `eachWeightSum` | Boolean | 三种"权重之和须为100%"约束开关,对应文档中的权重约束条款 |
31
+ | `openNextTarget` | Boolean | 是否开启下次目标 |
32
+ | `openCorrection` | Boolean + `openCorrectionScope`{max,min} | 修正分开关与上下限(文档出现"修正分±N"时) |
33
+ | `scoreLimit` | Boolean | 常规评分受分制限制(默认 true) |
34
+ | `includeInterviewItem` + `interviewStepList` | Boolean + List | 绩效面谈开关与面谈节点 |
35
+ | `priority` | Boolean | 是否优先用该方案生成评分 |
36
+ | `seeTotal` / `seeScoreDetail` / `seePlusItem` / `seeMinusItem` / `seeDistributionAdjust` / `seeAfterFinish` | Boolean | 被评分人查看权限开关,对应文档"结果公开范围"条款 |
37
+ | `commitContent` / `commitDay` / `commitRemindTime`、`overtimeContent` / `overtimeDay` / `overRemindTime` | String/int | 提交提醒与超时提醒内容/天数/时间,对应文档提醒章节(`remindSetting=custom` 时) |
38
+
39
+ ## B 层:需实体解析字段
40
+
41
+ | 字段 | 文档内容 → 目标 |
42
+ |---|---|
43
+ | `schemeLinkList` | "研发一部、张三" → 部门 id / 人员 id 的数组,**必填**,无默认值 |
44
+ | `kpsStepList[].stepOperators[].operater` | 具名评分人("由王五评分")→ 人员 id;关系型评分人("直接上级")不需要 id,见 entity-resolution.md |
45
+ | `flowStepList[].stepOperators[]` | 审批人,同上 |
46
+ | `fieldFilters` | 人员条件过滤(HRM 字段条件),复杂结构,一般不生成 |
47
+
48
+ ## C 层:默认值字段(组装规则填充)
49
+
50
+ | 字段 | 默认 | 说明 |
51
+ |---|---|---|
52
+ | `weightMode` | `"simple"` | 权重模式;文档描述多评分人不同权重时仍可保持 simple |
53
+ | `kpsDistributeType` / `flowDistributeType` | `"flow"` | 评分/审批分发方式(流程分发=顺序);文档写"同时评分"用 `"par"` |
54
+ | `createMode` | `"default"` | 指标新建方式 |
55
+ | `basicHeader` | 标准表头数组 | 见 default-assembly.md |
56
+ | `stepWeightList` | 按 kpsStepList 生成 | 步骤权重,见 default-assembly.md |
57
+ | `seeSetting` | `"default"` | 查看权限模式 default/custom |
58
+ | `remindSetting` | `"default"` | 提醒模式;需自定义提醒内容时 `"custom"` 并填 `remindOrdinaryData`/`remindTimeData`(结构复杂,非必需不生成) |
59
+ | `dateTypeSet` | `"setting"` | 周期时间设置;填了 distributeTime/forbidTime 自动 `"custom"` |
60
+ | `detailId` | 首次 edit 不填 | 指标明细 id(hr_kpi_details 主键)。首次暂存由服务端生成;**再次提交(尤其 applyScheme 发布)必须带上**(从 detail 回读的 `data.detailId` 取),缺失会重复插入明细导致方案损坏 |
61
+ | `scoreLimit` | `true` | |
62
+ | `operatingTargetList` | 不填 | 被评分人可增删改指标权限(add/edit/delete) |
63
+
64
+ ## 嵌套结构定义
65
+
66
+ ### schemeLinkList 元素(SchemeLinkReq)——必填
67
+
68
+ ```jsonc
69
+ { "id": "123", // 人员id/部门id/分部id,**字符串形式**;targetType=11(所有人)时填 "0"
70
+ "targetType": 1, // 见下表
71
+ "name": "研发一部", // 仅展示用,可选
72
+ "role_level": 0, // targetType=10 角色级别时用
73
+ "position_level": 0,
74
+ "seclevel": null // 安全级别区间 {"max":..,"min":..},一般不填
75
+ }
76
+ ```
77
+
78
+ | targetType | 含义 |
79
+ |---|---|
80
+ | 1 | 人员(id=人员id) |
81
+ | 2 / 3 | 部门 / 部门含下级 |
82
+ | 5 / 6 | 分部 / 分部含下级 |
83
+ | 10 | 角色(配 role_level) |
84
+ | 11 | 所有人(id=0) |
85
+ | 12 | 岗位+指定部门(id=岗位id) |
86
+ | 13 | 岗位+指定分部(id=岗位id) |
87
+ | 1311 | 岗位+总部(id=岗位id,岗位类默认用这个) |
88
+ | 14 / 1411 | 群组+安全级别 / 群组(少见;出现群组表述列为待确认) |
89
+
90
+ ### 🔴 id 一律用字符串传递(精度要求)
91
+
92
+ 服务端 id 是 18 位 Long。JSON 数字在 JS 侧只有 53 位精度,直接传数字(如 `2845271565560807131`)会被就近取整成另一个 id,导致查到/修改到错误的方案或对象。
93
+
94
+ - `id`、`detailId`、`schemeLinkList[].id` 以及各类节点 id **统一传字符串**:`{"id": "1234567890123456789"}`。
95
+ - `hrm.resolve` 返回的 `id` 本身就是字符串,**原样透传**,不要 `Number()` 转换。
96
+ - 只有 `distributeTime` / `forbidTime`(毫秒时间戳)和权重、分制等数值字段用数字。
97
+ - 详情查询、草稿暂存、发布三处都要遵守;`detailId` 同样必须字符串。
98
+
99
+ ### basicData 行结构(Map 的键)——核心
100
+
101
+ ```jsonc
102
+ {
103
+ "dataRow": 1, // 行号,从1连续递增
104
+ "indicatorMode": "qualitative", // 定性qualitative / 定量quantify
105
+ "indicatorType": "需求按时交付率", // 指标名称
106
+ "indicatorDescription": "...", // 指标描述/评分标准
107
+ "weight": "40", // 权重(数字字符串,不带%)
108
+ "defaultTarget": "≥95%", // 目标值(可选)
109
+ "scoreScope": "followTotal", // 评分范围(可选),见枚举表
110
+ "checkType": "xxx", // 所属分类id(openCheckType时,与checkType[].id一致)
111
+ "customInputScope": "0-10", // scoreScope=customScope 时的范围
112
+ "appointScoreData": "...", // scoreScope=appointScore 时的指定分值
113
+ "targetId": null, // 关联指标库指标id(可选,不确定就不填)
114
+ "targetHasEdit": true
115
+ }
116
+ ```
117
+
118
+ 定量指标(quantify)额外支持键:`dataSource`、`dataSourceMode`、`scoreFormula`、`unit` 等(关联数据源取数,一般不生成,保持最简)。
119
+
120
+ ### 🔴 三个必守的落库口径(2026-11 真机事故后固化)
121
+
122
+ **1. `defaultTarget` 只接受数字**
123
+ 服务端字段是 `Float`/`Double`(`SchemeIndicator.defaultTarget`)。文字目标(如「当月验收 12 万元或回款 7 万元以上」)传进去会被**静默丢成 null**,不要因此把定量指标改成定性。正确做法:文字目标写进 `indicatorDescription`(如 `…;目标:当月验收 12 万元或回款 7 万元以上`),`defaultTarget` 只填数字(`95`、`12`)。CLI 已自动迁移并给 WARN。
124
+
125
+ **2. 有加减分项就必须给对应评分人节点**
126
+ `plusList` 非空 → 必须 `includePlusItem=true` 且 `plusStepList` 至少一个节点(`stepType: "kpiplus"`);`minusList` 非空 → 必须 `includeMinusItem=true` 且 `minusStepList`(`stepType: "kpiminus"`)。缺了评分人**不会落库**(表现为"减分项没有评分人")。默认节点:`[{"stepType":"kpiminus","stepOperators":[{"operateType":"directSuperior"}]}]`。CLI 已自动补齐并给 WARN。
127
+
128
+ **3. 覆盖式暂存(带 `id`)必须带 `detailId`**
129
+ 只传 `id` 不传 `detailId` 会让服务端**重复插入**指标明细,之后该方案 detail 永久 500、前端也不显示,无法自愈。CLI 已自动从 detail 回读补 `detailId`;若 detail 本身读不出来,CLI 直接拒绝写入(`detail_unreadable`)——此时应新建方案,不要在旧方案上反复重试。
130
+
131
+ ### plusList / minusList 元素(SchemeItemReq)
132
+
133
+ ```jsonc
134
+ { "name": "重大故障抢险", // 加/减分项名称
135
+ "description": "...", // 描述
136
+ "maxScore": 5, // 上限分值(Float,减分项为正数上限)
137
+ "sort": 1,
138
+ "scoreScope": "followTotal",
139
+ "lockTarget": false, "newTarget": false, "targetId": null, "targetHasEdit": false }
140
+ ```
141
+
142
+ ### kpsStepList 等节点元素(FlowStepReq)
143
+
144
+ ```jsonc
145
+ {
146
+ "sort": 1, // 节点顺序,从1递增
147
+ "stepType": "kpikps", // kpikps评分/kpiflow审批/kpiplus加分评分/kpiminus减分评分/interview面谈
148
+ "raterType": "all", // 多人评分模式,默认 all
149
+ "checkKps": false, // 该节点是否有权限查看评分
150
+ "checkSignature": false, // 是否需要签名
151
+ "stepWeight": 60, // 节点权重(多评分人加权时)
152
+ "scoreMinNum": null, "scoreMaxNum": null, // 评分上下限(可选)
153
+ "interviewOrder": null, // 面谈节点专用:beforeScore/beforeFlow/afterFlow
154
+ "stepOperators": [ { "operateType": "directSuperior", "operater": null } ]
155
+ }
156
+ ```
157
+
158
+ ### stepOperators 元素(FlowOperatorReq)
159
+
160
+ `operateType` 合法值(具名人员才需要 `operater`):
161
+
162
+ | operateType | 含义 |
163
+ |---|---|
164
+ | `fixedMan` | 固定人员(`operater`=人员id) |
165
+ | `directSuperior` | 直接上级("直接上级/上级"评分) |
166
+ | `indirectSuperior` | 间接上级 |
167
+ | `otherSuperior` | 其他上级 |
168
+ | `assessmentMan` | 被考核人本人(自评) |
169
+ | `subordinates` | 下级 |
170
+ | `samePositionMan` / `sameGradeMan` / `sameDepartmentMan` | 同岗位/同职级/同部门人员 |
171
+
172
+ ### stepWeightList 元素(FlowStepWeightReq)
173
+
174
+ ```jsonc
175
+ { "indicatorMode": "qualitative", "indicatorRow": 1, "stepIndex": 0, "weight": 60 }
176
+ // 语义:第 (indicatorRow) 行、模式为 indicatorMode 的指标,由第 (stepIndex+1) 个评分节点评分时所占权重
177
+ // 单评分人时:每行一条、weight=100、stepIndex=0
178
+ ```
179
+
180
+ ### checkType 元素(SchemeCheckTypeReq)
181
+
182
+ ```jsonc
183
+ { "id": "9000000001", // 自定义数字id(字符串),basicData[].checkType 引用它
184
+ "typeName": "业绩指标", "weight": 60, "rowLine": "", "scoreLimit": null }
185
+ ```
@@ -0,0 +1,62 @@
1
+ # 方案设置页的输出形态:`open_web` 卡片 + Markdown 链接兜底
2
+
3
+ ## 基础信息
4
+
5
+ | 项目 | 内容 |
6
+ |---|---|
7
+ | 主输出 | `<browsertool>` 块(`toolId: open_web`,**不带 commands/expect**),在小E 智能体内直接打开页面 |
8
+ | 兜底输出 | 同轮再给一条 **Markdown 链接**「打开绩效方案列表」,宿主视图撞登录墙时在浏览器打开 |
9
+ | 用途 | **草稿创建成功后立即给出**:与方案预览同轮输出,引导用户去列表页继续完善;**不要用弹窗催发布** |
10
+ | 页面地址 | `/sp/performance/schemeSetting`(站内路径,完整 URL = 会话 origin + 该路径) |
11
+ | origin 来源 | CLI 会话(`weaver-work-cli auth status` 的 baseUrl 或任一接口回包完整 URL 的协议+主机+端口);🔴 禁止写死域名 |
12
+
13
+ ## 输出格式(定稿)
14
+
15
+ ```html
16
+ <browsertool>
17
+ {
18
+ "version": "1.0",
19
+ "callId": "open-scheme-setting",
20
+ "toolId": "open_web",
21
+ "arguments": {
22
+ "src": "{origin}/sp/performance/schemeSetting",
23
+ "title": "绩效方案设置",
24
+ "activate": true,
25
+ "width": 1200
26
+ }
27
+ }
28
+ </browsertool>
29
+ ```
30
+
31
+ 紧随其后(块外正文)输出:
32
+
33
+ ```markdown
34
+ [打开绩效方案列表]({origin}/sp/performance/schemeSetting)(若上方卡片打不开或显示登录页,用此链接在已登录 E10 的浏览器中打开)
35
+ ```
36
+
37
+ ## 规则表
38
+
39
+ | 键 | 必填 | 取值 |
40
+ |---|---|---|
41
+ | `toolId` | ✅ | 固定 `open_web` |
42
+ | `arguments.src` | ✅ | `{origin}/sp/performance/schemeSetting`,绝对 http/https |
43
+ | `arguments.title` | 建议 | 「绩效方案设置」 |
44
+ | `arguments.activate` | 可选 | `true` |
45
+ | `arguments.width` | 可选 | 1200 |
46
+ | `commands` / `expect` | 🔴 **不写** | E10 页面不接 `xiaoe-workspace-sdk.js`,带命令必超时 |
47
+
48
+ ## 各形态结论(实测证据,勿回退)
49
+
50
+ | 形态 | 结论 |
51
+ |---|---|
52
+ | **`open_web` 不带 commands(采用)** | browsertool 渲染说明 §三原生支持「打开网页」;无回包等待不会超时;落点是宿主工作区视图 |
53
+ | **Markdown 链接(兜底)** | ✅ 实测可点击、浏览器已登录 E10 时免登录打开 |
54
+ | `fill_form` 卡片 | ❌ 禁止:非表单页会执行真实填单动作并卡死在「正在填单」(recruit-stage 2026-10-21 实测 + 本技能 2026-11 复现) |
55
+ | 右栏 iframe 内嵌 | ❌ SameSite 拿不到 E10 会话,落到扫码页(recruit-stage 实测) |
56
+
57
+ ## 硬规矩
58
+
59
+ 1. `<browsertool>` 块不放进代码块、标签成对闭合、JSON 完整。
60
+ 2. origin 只取自 CLI 会话;取不到时不输出卡片、说明缺什么。
61
+ 3. 卡片与兜底链接同轮一起给,附一句说明。
62
+ 4. 打开页面不代替 `performance.scheme.detail` 回读核对。