weaver-work-cli 0.1.54 → 0.1.57

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 (189) hide show
  1. package/dist/chunks/{archive-ZQ4A4TV6.js → archive-4SQAVTIB.js} +3 -2
  2. package/dist/chunks/{archive-oa-57R2FYHV.js → archive-oa-W2UEJ67L.js} +137 -8
  3. package/dist/chunks/{asset-ZOJVBWZH.js → asset-EGZEABBI.js} +3 -2
  4. package/dist/chunks/{asset-idle-XGB5IPGT.js → asset-idle-EBUZBB6M.js} +3 -2
  5. package/dist/chunks/{attachment-content-2EPEI4HV.js → attachment-content-QGM5MLQE.js} +4 -3
  6. package/dist/chunks/{blog-QSHLZSFW.js → blog-2YKMWOWI.js} +3 -2
  7. package/dist/chunks/{caizhilian-KCQYFH72.js → caizhilian-QJ4FLSQJ.js} +5 -4
  8. package/dist/chunks/{calendar-DLGMRJQA.js → calendar-H4QTJCUY.js} +3 -2
  9. package/dist/chunks/{chunk-XPQN4E5O.js → chunk-44KJ7WFA.js} +300 -55
  10. package/dist/chunks/{chunk-CZNZKOHR.js → chunk-4GG72JAT.js} +2 -2
  11. package/dist/chunks/{chunk-YIKSL36S.js → chunk-5N222HK6.js} +2 -2
  12. package/dist/chunks/{chunk-XHMJBRLZ.js → chunk-6DVL5IN5.js} +4 -1
  13. package/dist/chunks/{chunk-JJRIT2ZN.js → chunk-6MS3RLPO.js} +5 -334
  14. package/dist/chunks/{chunk-QUDHSMG3.js → chunk-7EBV7Q3R.js} +112 -27
  15. package/dist/chunks/{chunk-CNVZETM5.js → chunk-AHJZIMCX.js} +1 -1
  16. package/dist/chunks/{chunk-TGAGQV4I.js → chunk-CQ4OVCKG.js} +2 -2
  17. package/dist/chunks/{chunk-2BQESR2U.js → chunk-DVR2EDUU.js} +99 -34
  18. package/dist/chunks/{chunk-7KKI5KDY.js → chunk-FDAJC7R4.js} +4 -4
  19. package/dist/chunks/{chunk-GR76ZDDX.js → chunk-FMNCSYIG.js} +2 -2
  20. package/dist/chunks/{chunk-6LGLI46Q.js → chunk-L2LMBFG5.js} +1 -1
  21. package/dist/chunks/{chunk-DLY5GUXX.js → chunk-PH7N4UFT.js} +1 -1
  22. package/dist/chunks/{chunk-U6R6FZHD.js → chunk-SFM3M2L3.js} +286 -93
  23. package/dist/chunks/chunk-SHYQUBY3.js +48 -0
  24. package/dist/chunks/{chunk-HFXK54M4.js → chunk-TGM7BWEH.js} +2 -2
  25. package/dist/chunks/{chunk-Z7B7QSR2.js → chunk-TJUAGZU7.js} +11 -11
  26. package/dist/chunks/{chunk-LYOFRYC4.js → chunk-UI66EMOR.js} +4 -4
  27. package/dist/chunks/{chunk-762M5XJS.js → chunk-VMCCRWFO.js} +2 -2
  28. package/dist/chunks/{chunk-FE3CQAAM.js → chunk-WHJIUKJW.js} +681 -48
  29. package/dist/chunks/{chunk-PGO4ILMQ.js → chunk-WMB3SMXI.js} +1 -1
  30. package/dist/chunks/chunk-WMRNO6IU.js +337 -0
  31. package/dist/chunks/{chunk-6NXT4ICB.js → chunk-WVH5ESDA.js} +1 -1
  32. package/dist/chunks/{chunk-O6RIBG5E.js → chunk-XU3FL3AW.js} +4 -4
  33. package/dist/chunks/{chunk-Z6UUBY37.js → chunk-Z4IPY5GV.js} +2 -2
  34. package/dist/chunks/{conflict-K2IAKKFR.js → conflict-VAFFPUY3.js} +2 -2
  35. package/dist/chunks/{contract-LJRAXVZU.js → contract-LLRKMLQQ.js} +2655 -1319
  36. package/dist/chunks/{cowork-3ACICHDQ.js → cowork-2RDFBZWB.js} +3 -2
  37. package/dist/chunks/{create-flow-UL37MZGP.js → create-flow-TVYE3IOH.js} +6 -6
  38. package/dist/chunks/{data-WK5CQXNF.js → data-WVICO3DT.js} +57 -11
  39. package/dist/chunks/{ebuilder-form-CBYI6CQ6.js → ebuilder-form-TWSXS5NA.js} +7 -6
  40. package/dist/chunks/{ehr-XI4BIVR2.js → ehr-52GBKNJR.js} +3 -2
  41. package/dist/chunks/{env-BZDB5OVZ.js → env-BVVFIN4P.js} +2 -2
  42. package/dist/chunks/{esb-4BQHNP5C.js → esb-HJSXCEOM.js} +5 -4
  43. package/dist/chunks/{factory-VD3YI6N7.js → factory-RCQ36LLE.js} +1 -1
  44. package/dist/chunks/{fna-ECOYBQYL.js → fna-OBACRT3J.js} +72 -3
  45. package/dist/chunks/{group-chat-DHNVO76L.js → group-chat-YFZDUUY3.js} +3 -3
  46. package/dist/chunks/{host-TUOIOEMC.js → host-2BKMPWDH.js} +4 -3
  47. package/dist/chunks/{host-3TNBMDTR.js → host-KJT3G5D2.js} +4 -3
  48. package/dist/chunks/{host-7OWWPLM4.js → host-KOWUMNAY.js} +4 -3
  49. package/dist/chunks/{host-M4XP5URR.js → host-MFXRA2MY.js} +4 -3
  50. package/dist/chunks/{host-7NTIBSPK.js → host-TTSGY5NZ.js} +4 -3
  51. package/dist/chunks/{host-G3VU7SDW.js → host-W4JCNRFS.js} +4 -3
  52. package/dist/chunks/{hrm-YGIR3HGF.js → hrm-AK3WGBMN.js} +4 -3
  53. package/dist/chunks/{im-TN2JYVGJ.js → im-JZSBPO4Z.js} +4 -3
  54. package/dist/chunks/{invoice-V7ZTITUO.js → invoice-7JGSEWT5.js} +22 -9
  55. package/dist/chunks/{jiuchuanhui-ASFZBMPU.js → jiuchuanhui-K4EQU6GK.js} +3 -2
  56. package/dist/chunks/{lazy-dispatch-XSAHDK6Z.js → lazy-dispatch-JHGFCKJN.js} +5 -4
  57. package/dist/chunks/{mail-M3HJF5ER.js → mail-IKVCQCVZ.js} +3 -2
  58. package/dist/chunks/{meeting-OWG4O2XH.js → meeting-JOHV4RH3.js} +14 -12
  59. package/dist/chunks/minute-doc-JLS4KMFZ.js +156 -0
  60. package/dist/chunks/{okr-EVX7FB5G.js → okr-KV43FPPX.js} +3 -2
  61. package/dist/chunks/{operations-J7PUIVWZ.js → operations-ZPWBMYKE.js} +5 -4
  62. package/dist/chunks/{plan-2QJQEPBO.js → plan-WOYR4WEG.js} +3 -2
  63. package/dist/chunks/{project-XELELW2T.js → project-CQJKBUIL.js} +3 -2
  64. package/dist/chunks/{reception-QGPNTGHG.js → reception-MPBU3JXC.js} +3 -2
  65. package/dist/chunks/{recruit-stage-XCMVEQA2.js → recruit-stage-USTTRHOX.js} +3 -2
  66. package/dist/chunks/{registry-CJOVECZD.js → registry-GURQG4ZV.js} +3 -2
  67. package/dist/chunks/{registry-ASYCWF2U.js → registry-LITYOH2W.js} +12 -10
  68. package/dist/chunks/{registry-QJCZ2GVG.js → registry-SS5J2FZQ.js} +5 -4
  69. package/dist/chunks/{room-recommend-LSVAMGKV.js → room-recommend-62MECG4J.js} +4 -4
  70. package/dist/chunks/{schedule-7QOPRUU4.js → schedule-6QRXIBGU.js} +4 -4
  71. package/dist/chunks/{smart-extract-FOUYNIG3.js → smart-extract-APX2PNIN.js} +3 -2
  72. package/dist/chunks/{workflow-YHXFIU63.js → workflow-WMPW3WSB.js} +5 -4
  73. package/dist/index.js +33 -32
  74. package/dist/internal/e10/auth/agent-host-key.js +68 -0
  75. package/dist/internal/e10/auth/agent-hosts.js +250 -0
  76. package/dist/internal/e10/auth/commands.js +99 -30
  77. package/dist/internal/e10/auth/paths.js +9 -0
  78. package/dist/internal/e10/auth/session.js +17 -0
  79. package/dist/internal/e10/auth/xiaoe.js +37 -3
  80. package/dist/shortcuts/archive-oa/operations/contract-modules.js +106 -0
  81. package/dist/shortcuts/archive-oa/operations/contract.js +38 -4
  82. package/dist/shortcuts/archive-oa/operations/registry.js +2 -1
  83. package/dist/shortcuts/contract/index.js +6 -7
  84. package/dist/shortcuts/contract/manifest.js +101 -24
  85. package/dist/shortcuts/contract/ooxml/docx-table.js +75 -3
  86. package/dist/shortcuts/contract/ooxml/xlsx.js +49 -13
  87. package/dist/shortcuts/contract/operations/card-action.js +113 -12
  88. package/dist/shortcuts/contract/operations/card-ebdf-list.js +29 -7
  89. package/dist/shortcuts/contract/operations/card-plan.js +75 -9
  90. package/dist/shortcuts/contract/operations/card-risk-report.js +2 -2
  91. package/dist/shortcuts/contract/operations/card.js +1 -1
  92. package/dist/shortcuts/contract/operations/clause-library.js +88 -16
  93. package/dist/shortcuts/contract/operations/compare-screen.js +378 -0
  94. package/dist/shortcuts/contract/operations/compare.js +1 -1
  95. package/dist/shortcuts/contract/operations/credit-page.js +1 -1
  96. package/dist/shortcuts/contract/operations/docx-slots.js +1000 -0
  97. package/dist/shortcuts/contract/operations/flow.js +2 -2
  98. package/dist/shortcuts/contract/operations/quote-to-contract.js +495 -0
  99. package/dist/shortcuts/contract/operations/quote.js +2 -229
  100. package/dist/shortcuts/contract/operations/recommend.js +1 -1
  101. package/dist/shortcuts/contract/operations/registry.js +6 -2
  102. package/dist/shortcuts/contract/operations/review.js +230 -4
  103. package/dist/shortcuts/contract/operations/save-recognize.js +122 -3
  104. package/dist/shortcuts/contract/operations/template.js +11 -10
  105. package/dist/shortcuts/data/operations/ds.js +5 -5
  106. package/dist/shortcuts/data/operations/shared.js +76 -4
  107. package/dist/shortcuts/fna/manifest.js +7 -2
  108. package/dist/shortcuts/fna/operations/budget.js +68 -0
  109. package/dist/shortcuts/invoice/manifest.js +8 -3
  110. package/dist/shortcuts/invoice/operations/reim.js +10 -3
  111. package/dist/shortcuts/meeting/minute-doc.js +153 -0
  112. package/dist/shortcuts/meeting/operations/compose-outcome.js +176 -0
  113. package/dist/shortcuts/meeting/operations/eb/catalog.js +1 -1
  114. package/dist/shortcuts/meeting/operations/eb/create-flow.js +26 -0
  115. package/dist/shortcuts/meeting/operations/eb/decision-task-batch.js +144 -0
  116. package/dist/shortcuts/meeting/operations/eb/decision.js +92 -4
  117. package/dist/shortcuts/meeting/operations/eb/index.js +133 -4
  118. package/dist/shortcuts/meeting/operations/eb/meeting-link.js +90 -0
  119. package/dist/shortcuts/meeting/operations/from-group-chat.js +46 -0
  120. package/dist/shortcuts/meeting/operations/minute-content.js +61 -0
  121. package/dist/shortcuts/meeting/operations/registry.js +14 -1
  122. package/dist/shortcuts/meeting/operations/self-check.js +49 -0
  123. package/dist/shortcuts/workflow/endpoints.js +2 -0
  124. package/dist/shortcuts/workflow/operations/read.js +114 -8
  125. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +72 -46
  126. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +41 -0
  127. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +46 -11
  128. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +18 -1
  129. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroupAdd.js +51 -0
  130. package/docs/e10-auth.md +78 -0
  131. package/docs/fna.md +8 -3
  132. package/docs/invoice.md +1 -1
  133. package/package.json +4 -2
  134. package/scripts/pack-offline.mjs +228 -0
  135. package/scripts/package-skill.mjs +14 -5
  136. package/skill-template/business-info.json +3 -0
  137. package/skill-template/domains/qiyecheng.md +4 -3
  138. package/skills/weaver-e10-archive-oa/SKILL.md +6 -1
  139. package/skills/weaver-e10-archive-oa/references/contract-search.md +91 -4
  140. package/skills/weaver-e10-jinchengda/SKILL.md +100 -81
  141. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +11 -6
  142. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +5 -4
  143. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +38 -12
  144. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +1 -1
  145. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
  146. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +20 -6
  147. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +8 -3
  148. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +56 -13
  149. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +7 -0
  150. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
  151. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +11 -5
  152. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
  153. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
  154. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +38 -7
  155. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +13 -25
  156. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +9 -8
  157. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +8 -6
  158. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +10 -7
  159. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +2 -2
  160. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +3 -1
  161. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +26 -18
  162. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +4 -4
  163. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -13
  164. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +5 -3
  165. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +105 -49
  166. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  167. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +3 -6
  168. package/skills/weaver-e10-meeting/SKILL.md +47 -9
  169. package/skills/weaver-e10-qiyecheng/SKILL.md +16 -7
  170. package/skills/weaver-e10-qiyecheng/references/budget.md +77 -3
  171. package/skills/weaver-e10-qiyecheng/references/catalog.md +6 -4
  172. package/skills/weaver-e10-qiyecheng/references/getEnabledTemplate-api.md +255 -0
  173. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +70 -25
  174. package/skills/weaver-e10-workflow/SKILL.md +54 -40
  175. package/skills/weaver-e10-workflow/references/todo-dialogue.md +134 -0
  176. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +102 -80
  177. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +23 -13
  178. package/skills/weaver-e10-workflow/references/workflow-query.md +68 -46
  179. package/skills/weaver-e10-workflow/references/workflow-view.md +21 -13
  180. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +317 -332
  181. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -0
  182. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +23 -13
  183. package/skills/weaver-e10-yepiaotong.zip +0 -0
  184. package/dist/shortcuts/contract/ooxml/docx.js +0 -295
  185. package/dist/shortcuts/contract/operations/docx-fillfromquote.js +0 -532
  186. package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +0 -178
  187. package/skills/weaver-e10-jinchengda/references/source-manifest.json +0 -1270
  188. package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +0 -998
  189. package/skills/weaver-e10-workflow/tools/todo-serve.cjs +0 -327
@@ -10,8 +10,65 @@ const GROUP_BASE = '/api/ebd/contract/clausegroup';
10
10
  /** 条款库鉴权固定业务头,来源见 clause-library.md「权限鉴权」。 */
11
11
  const CLAUSE_HEADERS = { ebbusinessid: '10000000000000000' };
12
12
  /**
13
- * 条款库 CRUD 前的强制鉴权门。
14
- * 放行依据只有 data.checkPermission === true;hasLicense / privateDeploy / isRelease 不作为放行依据。
13
+ * 非抛错式鉴权探测(查询条款 / 展示条款用)。
14
+ * 与 assertClausePermission 的区别:无权限时不抛错,交给调用方走「返回条款数据 + 提示上传合同」分支。
15
+ */
16
+ export async function probeClausePermission(host) {
17
+ try {
18
+ const value = await host.contractRequest({
19
+ method: 'GET',
20
+ path: PERMISSION_PATH,
21
+ query: { moduleFlag: 'termComponent' },
22
+ headers: CLAUSE_HEADERS,
23
+ });
24
+ const data = (value?.data ?? {});
25
+ const permitted = !(value?.status === false || value?.fail === true) && data.checkPermission === true;
26
+ return {
27
+ permitted,
28
+ hasLicense: data.hasLicense,
29
+ privateDeploy: data.privateDeploy,
30
+ ...(permitted ? {} : { reason: 'checkPermissionV2 未返回 data.checkPermission=true' }),
31
+ };
32
+ }
33
+ catch (error) {
34
+ return {
35
+ permitted: false,
36
+ reason: error instanceof ContractCliError ? error.message : '条款库鉴权接口调用失败',
37
+ };
38
+ }
39
+ }
40
+ /**
41
+ * 条款库查询后的统一分支约定(写进返回体,直接决定出卡还是铺数据):
42
+ * - permitted=true → 直接出条款库页面卡片(ClauseLibraryPage 组件),不在对话里铺条款清单;
43
+ * - permitted=false → 把条款数据完整返回前台展示,并提示用户可上传一份合同做条款插入引用。
44
+ */
45
+ export function clauseAccessBranch(probe, baseUrl) {
46
+ const pageUrl = clauseLibraryPageUrl(baseUrl);
47
+ if (probe.permitted) {
48
+ return {
49
+ permission: true,
50
+ displayMode: 'component',
51
+ openComponent: true,
52
+ pageUrl,
53
+ component: { app: '@weapp/contract', compName: 'ClauseLibraryPage', path: '/sp/contract/terms-library' },
54
+ nextAction: 'open-clause-library',
55
+ hint: '有条款管理维护权限:直接输出条款库页面卡片(ClauseLibraryPage 组件)打开条款库,禁止把条款清单平铺在对话里',
56
+ };
57
+ }
58
+ return {
59
+ permission: false,
60
+ displayMode: 'data',
61
+ openComponent: false,
62
+ pageUrl,
63
+ nextAction: 'show-clause-data-then-quote',
64
+ hint: '无条款管理维护权限:把条款数据完整展示给用户(编号、名称、所属分类、条款正文要逐条给出),不要在无数据时给页面卡',
65
+ uploadPrompt: '可以上传一份合同(.docx),我按章节定位把需要的条款插入引用进去,并自动跳过重复条款',
66
+ reason: probe.reason,
67
+ };
68
+ }
69
+ /**
70
+ * 条款库维护(写)前的强制鉴权门。
71
+ * 维护类操作必须具备权限,未放行即中止;查询类不走这里,改用 probeClausePermission 探测后分支。
15
72
  */
16
73
  export async function assertClausePermission(host) {
17
74
  const value = await host.contractRequest({
@@ -23,7 +80,7 @@ export async function assertClausePermission(host) {
23
80
  const data = (value?.data ?? {});
24
81
  const denied = value?.status === false || value?.fail === true || data.checkPermission !== true;
25
82
  if (denied) {
26
- throw contractPolicyError('clause_no_permission', '暂无权限访问条款库(checkPermissionV2 未返回 data.checkPermission=true);已中止后续所有条款库接口,不要重试或换接口绕行', { path: PERMISSION_PATH, status: value?.status, fail: value?.fail, hasLicense: data.hasLicense });
83
+ throw contractPolicyError('clause_no_permission', '暂无条款管理维护权限(checkPermissionV2 未返回 data.checkPermission=true),不能执行条款库维护;请改为展示条款清单数据(含条款正文),并提示用户可上传一份合同做条款插入引用,不要重试或换接口绕行', { path: PERMISSION_PATH, status: value?.status, fail: value?.fail, hasLicense: data.hasLicense });
27
84
  }
28
85
  return {
29
86
  checkPermission: true,
@@ -32,7 +89,7 @@ export async function assertClausePermission(host) {
32
89
  dataInfo: data.dataInfo,
33
90
  };
34
91
  }
35
- /** 所有条款库 operation 统一在入口处鉴权,包括查询类。 */
92
+ /** 写操作(维护类)统一在入口处强制鉴权。 */
36
93
  class ClauseGatedOperation {
37
94
  name;
38
95
  inner;
@@ -45,6 +102,24 @@ class ClauseGatedOperation {
45
102
  return this.inner.execute(input, context);
46
103
  }
47
104
  }
105
+ /** 查询类 operation:先探测权限,把展示分支(开组件 / 铺数据)附在返回体里,不拦截。 */
106
+ export class ClauseProbeOperation {
107
+ name;
108
+ inner;
109
+ constructor(name, inner) {
110
+ this.name = name;
111
+ this.inner = inner;
112
+ }
113
+ async execute(input, context) {
114
+ const result = await this.inner.execute(input, context);
115
+ const probe = await probeClausePermission(context.host);
116
+ const session = await context.host.getSession();
117
+ return {
118
+ ...result,
119
+ data: { ...(result.data ?? {}), ...clauseAccessBranch(probe, session.baseUrl) },
120
+ };
121
+ }
122
+ }
48
123
  /** 从分页接口的多种返回形状里取记录数组。 */
49
124
  function recordsOf(value) {
50
125
  const data = value?.data ?? {};
@@ -90,23 +165,22 @@ async function listClauseGroups(host, query) {
90
165
  export const contractClausePermissionOperation = {
91
166
  name: 'contract.clause.permission',
92
167
  async execute(_input, { host }) {
93
- const permission = await assertClausePermission(host);
168
+ const probe = await probeClausePermission(host);
94
169
  const session = await host.getSession();
95
170
  return {
96
171
  status: 'COMPLETE',
97
- data: { ...permission, url: clauseLibraryPageUrl(session.baseUrl) },
172
+ data: { ...probe, url: clauseLibraryPageUrl(session.baseUrl), ...clauseAccessBranch(probe, session.baseUrl) },
98
173
  };
99
174
  },
100
175
  };
101
- export const contractClauseTypeListOperation = new ClauseGatedOperation('contract.clause.types', new ContractReadOperation('contract.clause.types', {
176
+ export const contractClauseTypeListOperation = new ClauseProbeOperation('contract.clause.types', new ContractReadOperation('contract.clause.types', {
102
177
  method: 'GET',
103
178
  path: `${TREE_BASE}/queryAllCluseType`,
104
179
  shape: (value) => ({ code: value.code, msg: value.msg, types: value.data }),
105
180
  }));
106
- export const contractClauseCheckOperation = {
181
+ export const contractClauseCheckOperation = new ClauseProbeOperation('contract.clause.check', {
107
182
  name: 'contract.clause.check',
108
183
  async execute(input, { host }) {
109
- await assertClausePermission(host);
110
184
  // 判重只允许传 clauseName + belongId;缺 belongId 会静默返回「不存在」,必须在这里拦住。
111
185
  const clauseName = requireNonEmptyString(input.clauseName, 'clauseName', 200).trim();
112
186
  const belongId = requireId(input.belongId, 'belongId');
@@ -122,11 +196,10 @@ export const contractClauseCheckOperation = {
122
196
  data: { clauseName, belongId, exists, raw: data },
123
197
  };
124
198
  },
125
- };
126
- export const contractClauseBrowserOperation = {
199
+ });
200
+ export const contractClauseBrowserOperation = new ClauseProbeOperation('contract.clause.browser', {
127
201
  name: 'contract.clause.browser',
128
202
  async execute(input, { host }) {
129
- await assertClausePermission(host);
130
203
  const name = requireNonEmptyString(input.name, 'name', 200).trim();
131
204
  const value = await host.contractRequest({
132
205
  method: 'POST',
@@ -146,11 +219,10 @@ export const contractClauseBrowserOperation = {
146
219
  },
147
220
  };
148
221
  },
149
- };
150
- export const contractClauseSubcompanyOperation = {
222
+ });
223
+ export const contractClauseSubcompanyOperation = new ClauseProbeOperation('contract.clause.subcompany', {
151
224
  name: 'contract.clause.subcompany',
152
225
  async execute(input, { host }) {
153
- await assertClausePermission(host);
154
226
  const name = typeof input.name === 'string' ? input.name.trim() : '';
155
227
  try {
156
228
  const value = await host.contractRequest({
@@ -188,7 +260,7 @@ export const contractClauseSubcompanyOperation = {
188
260
  };
189
261
  }
190
262
  },
191
- };
263
+ });
192
264
  // ---------------------------------------------------------------- 写操作
193
265
  function pairContractType(input) {
194
266
  const id = input.contractType;
@@ -0,0 +1,378 @@
1
+ import { contractValidationError } from '../errors.js';
2
+ import { CARD_TEMPLATE, renderActionCard, selfCheckActionCard, verifyBrowsertoolText } from './card-action.js';
3
+ import { resolveOperation } from './op-resolver.js';
4
+ /**
5
+ * 合同比对一条链路(2026-11-16 用户指定)。
6
+ *
7
+ * 背景:此前一次比对要模型自己串 `compare.upload` → `compare.diff` → 手写报告 HTML →
8
+ * `card.action` 四步,每步一次工具往返;且报告 HTML 必须先落盘再出卡,否则卡片自检报
9
+ * `内容常量 var C 为空`。实测因此多耗 3 轮、其中一次还把 10KB HTML 内联进 JSON 参数,
10
+ * 触发 180 秒超时、整轮无产物。
11
+ *
12
+ * 本 operation 把四步收进一个进程内调用链,一次命令返回可裸输出的 `<browsertool>`:
13
+ * upload(docCompared) → diff → 报告 HTML(本地渲染,不落盘)→ 行为卡片 + 自检
14
+ *
15
+ * 与既有约定的关系:
16
+ * - 报告**不落本地文件**:卡片「生成比对报告」走 artifact,面板右上角自带下载,
17
+ * 再次 present_files 属重复交付(2026-11-16 用户明确取消)。
18
+ * - 报告 HTML 由本命令按 `contract-compare-report.md` 的口径生成,禁止模型手写,
19
+ * 避免双引号 / 转义 / 章节误挂一类问题。
20
+ * - 卡片仍走 `renderActionCard` + `selfCheckActionCard`,交付判据不变:
21
+ * `selfCheckPassed === true` 且 `selfCheck` 为空。
22
+ *
23
+ * 章节归属按契约文档 §2.2:正文章标题不带「第X章」,带编号的只出现在目录,
24
+ * 因此这里不做「第X章」正则匹配,而是按缔约信息 / 封面关键词与页码定位,
25
+ * 落到「封面(正文前)」「缔约信息区(正文前)」「正文条款」三类。
26
+ */
27
+ const DEFAULT_BASE = 'https://www.e-cology.com.cn';
28
+ const DEFAULT_AIID = '1326842382967570463';
29
+ function isRecord(value) {
30
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
31
+ }
32
+ function str(value) {
33
+ return typeof value === 'string' ? value : typeof value === 'number' ? String(value) : '';
34
+ }
35
+ function num(value) {
36
+ const parsed = Number(value);
37
+ return Number.isFinite(parsed) ? parsed : 0;
38
+ }
39
+ function stampNow() {
40
+ const now = new Date();
41
+ const pad = (value) => String(value).padStart(2, '0');
42
+ return `${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}${pad(now.getHours())}${pad(now.getMinutes())}${pad(now.getSeconds())}`;
43
+ }
44
+ function humanTime() {
45
+ const now = new Date();
46
+ const pad = (value) => String(value).padStart(2, '0');
47
+ return `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} ${pad(now.getHours())}:${pad(now.getMinutes())}`;
48
+ }
49
+ /** 只用于文件名、条款名等纯文本位置;接口给的 base/compare 已带高亮,不能二次转义。 */
50
+ function esc(value) {
51
+ return str(value)
52
+ .replace(/&/gu, '&amp;')
53
+ .replace(/</gu, '&lt;')
54
+ .replace(/>/gu, '&gt;');
55
+ }
56
+ async function callOperation(name, input, context) {
57
+ const operation = resolveOperation(name);
58
+ const result = await operation.execute(input, context);
59
+ return isRecord(result?.data) ? result.data : {};
60
+ }
61
+ /** 按接口 type 逐条计数,合计恒等于 changes.length;同一处被拆成多条时照实各计一条。 */
62
+ function statOf(changes, percentage, serviceTime) {
63
+ let insert = 0;
64
+ let deleted = 0;
65
+ let changed = 0;
66
+ for (const item of changes) {
67
+ const type = str(item.type).toLowerCase();
68
+ if (type === 'insert')
69
+ insert += 1;
70
+ else if (type === 'delete')
71
+ deleted += 1;
72
+ else if (type === 'change' || type === 'replace')
73
+ changed += 1;
74
+ }
75
+ return { total: changes.length, insert, delete: deleted, change: changed, percentage, serviceTime };
76
+ }
77
+ function typeLabel(type) {
78
+ const value = type.toLowerCase();
79
+ if (value === 'insert')
80
+ return { label: '新增', cls: 'ins' };
81
+ if (value === 'delete')
82
+ return { label: '删除', cls: 'del' };
83
+ if (value === 'change' || value === 'replace')
84
+ return { label: '修改', cls: 'chg' };
85
+ return { label: type || '差异', cls: 'oth' };
86
+ }
87
+ function zoneOf(item) {
88
+ const content = [str(item.baseOriginal), str(item.compareOriginal), str(item.countText)].join(' ');
89
+ if (/(联系人|联系电话|电话|传真|邮箱|开户行|账号|税号|地址)/u.test(content))
90
+ return 'party';
91
+ if (/(签订时间|签订日期|签订地点|合同编号|合同名称)/u.test(content))
92
+ return 'cover';
93
+ return 'body';
94
+ }
95
+ function clauseOf(item) {
96
+ const content = [str(item.baseOriginal), str(item.compareOriginal), str(item.countText)].join(' ');
97
+ if (/(签订时间|签订日期)/u.test(content))
98
+ return '签订时间';
99
+ if (/签订地点/u.test(content))
100
+ return '签订地点';
101
+ if (/联系人/u.test(content))
102
+ return '联系人';
103
+ if (/电话/u.test(content))
104
+ return '联系电话';
105
+ if (/传真/u.test(content))
106
+ return '传真';
107
+ if (/邮箱/u.test(content))
108
+ return '电子邮箱';
109
+ if (/地址/u.test(content))
110
+ return '地址';
111
+ if (/合同编号/u.test(content))
112
+ return '合同编号';
113
+ if (/合同名称/u.test(content))
114
+ return '合同名称';
115
+ return '其他条款';
116
+ }
117
+ function pageOf(item) {
118
+ const side = isRecord(item.right) ? item.right : isRecord(item.left) ? item.left : {};
119
+ const positions = Array.isArray(side.positions) ? side.positions : [];
120
+ const first = positions.length > 0 && isRecord(positions[0]) ? positions[0] : {};
121
+ const page = num(first.page);
122
+ return page >= 0 ? page + 1 : 0;
123
+ }
124
+ // ---------------------------------------------------------------- 报告渲染
125
+ const REPORT_CSS = [
126
+ ".rp{background:#f5f6f8;padding:20px 16px 32px;font-size:13.5px;line-height:1.7;color:#1f2329;font-family:Microsoft YaHei,PingFang SC,sans-serif}",
127
+ '.rp h1{font-size:20px;margin:0 0 6px;color:#1a56b8}',
128
+ '.rp .sub{color:#8a939e;font-size:12px;margin-bottom:16px}',
129
+ '.rp .card{background:#fff;border:1px solid #e3e6eb;border-radius:10px;padding:20px 22px;margin-bottom:14px}',
130
+ '.rp h2{font-size:15px;margin:0 0 14px;padding-left:9px;border-left:3px solid #1a56b8;color:#1f2329}',
131
+ '.rp .pair{display:flex;flex-direction:column;gap:6px}',
132
+ '.rp .file{background:#fcfcfd;border:1px solid #e3e6eb;border-radius:8px;padding:10px 14px}',
133
+ '.rp .file .tag{display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;margin-right:8px}',
134
+ '.rp .tag.base{background:#eaf0fe;color:#1a56b8}',
135
+ '.rp .tag.target{background:#f6ffed;color:#237804}',
136
+ '.rp .arrow{text-align:center;color:#a0a8b3;font-size:12px}',
137
+ '.rp .stats{display:flex;gap:12px;margin:16px 0 10px}',
138
+ '.rp .stat{flex:1;text-align:center;border:1px solid #e3e6eb;border-radius:8px;padding:12px 6px}',
139
+ '.rp .stat .n{display:block;font-size:22px;font-weight:700}',
140
+ '.rp .stat .l{display:block;font-size:12px;color:#5c6570;margin-top:2px}',
141
+ '.rp .stat.total .n{color:#1a56b8}',
142
+ '.rp .stat.add .n{color:#237804}',
143
+ '.rp .stat.del .n{color:#a8071a}',
144
+ '.rp .stat.chg .n{color:#b26a00}',
145
+ '.rp .note{color:#5c6570;font-size:12px;margin:0 0 14px}',
146
+ '.rp table{width:100%;border-collapse:collapse;font-size:13px}',
147
+ '.rp th{background:#fafbfc;text-align:left;font-weight:600;color:#5c6570;padding:9px 10px;border-bottom:1px solid #e3e6eb}',
148
+ '.rp td{padding:9px 10px;border-bottom:1px solid #f0f2f5;vertical-align:top}',
149
+ '.rp td.l{background:#fcfcfd;width:38%}',
150
+ '.rp td.r{background:#fbfdff;width:38%}',
151
+ '.rp .pill{display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;border:1px solid #e3e6eb;color:#5c6570;background:#fafbfc}',
152
+ '.rp .pill.ins{color:#237804;background:#f6ffed;border-color:#b7eb8f}',
153
+ '.rp .pill.del{color:#a8071a;background:#fff1f0;border-color:#ffa39e}',
154
+ '.rp .pill.chg{color:#b26a00;background:#fff7e6;border-color:#ffd591}',
155
+ '.rp .hint{color:#8a939e;font-size:12px;margin-top:10px}',
156
+ '.rp summary{cursor:pointer;font-size:15px;font-weight:600;color:#1a56b8;padding:4px 0;list-style:none;outline:none}',
157
+ '.rp summary::-webkit-details-marker{display:none}',
158
+ '.rp summary .arw{display:inline-block;margin-right:6px}',
159
+ '.rp summary .tip{float:right;font-size:12px;font-weight:400;color:#a0a8b3}',
160
+ '.rp .sec{margin-top:14px}',
161
+ '.rp .sec h3{font-size:13.5px;margin:0 0 8px;color:#1f2329}',
162
+ '.rp .none{color:#237804}',
163
+ ].join(' ');
164
+ function detailRows(changes) {
165
+ return changes
166
+ .map((item, index) => {
167
+ const meta = typeLabel(str(item.type));
168
+ return `<tr><td>${index + 1}</td><td><span class='pill ${meta.cls}'>${esc(meta.label)}</span></td><td class='l'>${str(item.base)}</td><td class='r'>${str(item.compare)}</td></tr>`;
169
+ })
170
+ .join('');
171
+ }
172
+ function zoneBlocks(changes) {
173
+ const groups = [
174
+ ['cover', '封面(正文前)'],
175
+ ['party', '缔约信息区(正文前)'],
176
+ ['body', '正文条款'],
177
+ ];
178
+ const blocks = [];
179
+ for (const [key, label] of groups) {
180
+ const group = changes.filter((item) => zoneOf(item) === key);
181
+ if (group.length === 0) {
182
+ blocks.push(`<div class='sec'><h3>${label} —— <span class='none'>0 处差异</span></h3><p class='hint'>该区块未检出差异。</p></div>`);
183
+ continue;
184
+ }
185
+ const rows = group
186
+ .map((item) => {
187
+ const meta = typeLabel(str(item.type));
188
+ const page = pageOf(item);
189
+ const clause = clauseOf(item);
190
+ const position = `${label} · ${clause}${page > 0 ? `(第 ${page} 页)` : ''}`;
191
+ return `<tr><td>${esc(clause)}</td><td><span class='pill ${meta.cls}'>${esc(meta.label)}</span></td><td>${esc(position)}</td><td class='l'>${str(item.base)}</td><td class='r'>${str(item.compare)}</td></tr>`;
192
+ })
193
+ .join('');
194
+ blocks.push(`<div class='sec'><h3>${label} —— ${group.length} 处差异</h3><table><thead><tr><th style='width:22%'>差异条款</th><th style='width:62px'>类型</th><th style='width:24%'>位置</th><th>改动前</th><th>改动后</th></tr></thead><tbody>${rows}</tbody></table></div>`);
195
+ }
196
+ return blocks.join('');
197
+ }
198
+ function renderReportHtml(args) {
199
+ const { stat } = args;
200
+ const similarity = stat.percentage > 0 ? `文本相似度 ${(stat.percentage * 100).toFixed(2)}%` : '文本相似度未返回';
201
+ const cost = stat.serviceTime > 0 ? `比对耗时约 ${Math.round(stat.serviceTime / 1000)} 秒` : '';
202
+ const summaryLine = `两版合同共检出 ${stat.total} 处差异,${similarity}${cost ? `,${cost}` : ''}。`;
203
+ const detail = stat.total > 0 ? detailRows(args.changes) : `<tr><td colspan='4' class='hint'>两版未检出差异。</td></tr>`;
204
+ return [
205
+ '<!DOCTYPE html>',
206
+ "<html lang='zh-CN'>",
207
+ '<head>',
208
+ "<meta charset='UTF-8'>",
209
+ '<title>合同比对报告</title>',
210
+ `<style>${REPORT_CSS}</style>`,
211
+ '</head>',
212
+ '<body>',
213
+ "<div class='rp'>",
214
+ '<h1>合同比对报告</h1>',
215
+ `<div class='sub'>生成时间:${esc(args.generatedAt)} | 数据来源:今承达文本比对服务</div>`,
216
+ "<div class='card'>",
217
+ '<h2>一、比对信息</h2>',
218
+ "<div class='pair'>",
219
+ `<div class='file'><span class='tag base'>基准合同</span>${esc(args.baseFileName)}</div>`,
220
+ "<div class='arrow'>↓ 与 ↓</div>",
221
+ `<div class='file'><span class='tag target'>比对合同</span>${esc(args.compareFileName)}</div>`,
222
+ '</div>',
223
+ "<div class='stats'>",
224
+ `<div class='stat total'><span class='n'>${stat.total}</span><span class='l'>变化合计</span></div>`,
225
+ `<div class='stat add'><span class='n'>${stat.insert}</span><span class='l'>新增</span></div>`,
226
+ `<div class='stat del'><span class='n'>${stat.delete}</span><span class='l'>删除</span></div>`,
227
+ `<div class='stat chg'><span class='n'>${stat.change}</span><span class='l'>修改</span></div>`,
228
+ '</div>',
229
+ `<p class='note'>${esc(summaryLine)}</p>`,
230
+ '<h2>差异详情</h2>',
231
+ "<table><thead><tr><th style='width:44px'>#</th><th style='width:66px'>类型</th><th>基准合同内容</th><th>比对合同内容</th></tr></thead>",
232
+ `<tbody>${detail}</tbody></table>`,
233
+ "<p class='hint'>上表为接口返回的原文片段,彩色文字即接口标注的改动位置(橙=修改、绿=新增、红=删除)。</p>",
234
+ '</div>',
235
+ "<div class='card'>",
236
+ "<details open><summary><span class='arw'>▶</span>二、按合同章节 / 条款展示差异点<span class='tip'>点击展开</span></summary>",
237
+ zoneBlocks(args.changes),
238
+ '</details>',
239
+ '</div>',
240
+ '</div>',
241
+ '</body>',
242
+ '</html>',
243
+ ].join('\n');
244
+ }
245
+ // ---------------------------------------------------------------- operation
246
+ export const contractCompareScreenOperation = {
247
+ name: 'contract.comparescreen.run',
248
+ async execute(input, context) {
249
+ const paths = Array.isArray(input.files) ? input.files : [];
250
+ let baseFileId = str(input.baseFileId).trim();
251
+ let compareFileId = str(input.compareFileId).trim();
252
+ let baseFileName = str(input.baseFileName).trim();
253
+ let compareFileName = str(input.compareFileName).trim();
254
+ if (paths.length > 0) {
255
+ if (paths.length !== 2) {
256
+ throw contractValidationError('files_count_invalid', '文档比对需要恰好 2 个文件:基准文件在前,比对文件在后');
257
+ }
258
+ const uploaded = await callOperation('contract.compare.upload', { paths }, context);
259
+ const files = Array.isArray(uploaded.files) ? uploaded.files : [];
260
+ if (files.length !== 2 || !str(files[0]?.fileId) || !str(files[1]?.fileId)) {
261
+ throw contractValidationError('upload_no_fileid', '比对文件上传未拿到 fileId,已停止,不打开比对页');
262
+ }
263
+ baseFileId = str(files[0].fileId);
264
+ compareFileId = str(files[1].fileId);
265
+ baseFileName = baseFileName || str(files[0].name);
266
+ compareFileName = compareFileName || str(files[1].name);
267
+ }
268
+ if (!baseFileId || !compareFileId) {
269
+ throw contractValidationError('file_ids_required', '请提供 files(2 个本地路径)或 baseFileId + compareFileId');
270
+ }
271
+ const diffData = await callOperation('contract.compare.diff', { baseFileId, compareFileId }, context);
272
+ const envelope = isRecord(diffData.result) ? diffData.result : {};
273
+ const body = isRecord(envelope.data) ? envelope.data : {};
274
+ if (String(body.compareStatus ?? '') !== 'true') {
275
+ throw contractValidationError('compare_failed', `比对未成功:${str(envelope.msg) || '接口未返回 compareStatus=true'}`);
276
+ }
277
+ const compare = isRecord(body.contractCompare) ? body.contractCompare : {};
278
+ const changes = Array.isArray(compare.changes) ? compare.changes : [];
279
+ baseFileName = str(compare.basicFileName) || baseFileName;
280
+ compareFileName = str(compare.targetFileName) || compareFileName;
281
+ const stat = statOf(changes, num(compare.percentage), num(compare.serviceTime));
282
+ // 报告只进卡片:artifact 面板右上角自带下载,不再落本地 .html 文件。
283
+ const reportHtml = renderReportHtml({
284
+ baseFileName,
285
+ compareFileName,
286
+ changes,
287
+ stat,
288
+ generatedAt: humanTime(),
289
+ });
290
+ const baseUrl = (str(input.baseUrl) || DEFAULT_BASE).replace(/\/+$/u, '');
291
+ const aiid = str(input.aiid) || DEFAULT_AIID;
292
+ const stamp = stampNow();
293
+ const cardCtx = {
294
+ compared: true,
295
+ scene: 'doc',
296
+ docType: 'contract',
297
+ comparePair: { baseFileId, baseFileName, compareFileId, compareFileName },
298
+ };
299
+ const cfg = {
300
+ base: baseUrl,
301
+ aiid,
302
+ card_id: `card-${stamp}`,
303
+ call_id: `contract-compare-${stamp}-01`,
304
+ compare_html: reportHtml,
305
+ base_file: { fileId: baseFileId, fileName: baseFileName },
306
+ compare_file: { fileId: compareFileId, fileName: compareFileName },
307
+ only: [],
308
+ title: str(input.title) || undefined,
309
+ };
310
+ const rendered = renderActionCard(cardCtx, cfg, CARD_TEMPLATE);
311
+ const slimChanges = changes.map((item) => ({
312
+ type: str(item.type),
313
+ zone: zoneOf(item),
314
+ clause: clauseOf(item),
315
+ page: pageOf(item),
316
+ base: str(item.baseOriginal),
317
+ compare: str(item.compareOriginal),
318
+ }));
319
+ if (!rendered.payload) {
320
+ return {
321
+ status: 'COMPLETE',
322
+ data: {
323
+ noCard: true,
324
+ planned: rendered.planned,
325
+ cardCount: 0,
326
+ baseFileId,
327
+ compareFileId,
328
+ baseFileName,
329
+ compareFileName,
330
+ stats: stat,
331
+ changes: slimChanges,
332
+ hint: rendered.hint || '过滤后无可用动作(按 contract-action-engine.md §7 处理)',
333
+ },
334
+ };
335
+ }
336
+ const check = selfCheckActionCard(rendered.payload, {
337
+ fileId: '',
338
+ fileName: baseFileName,
339
+ aiid,
340
+ summaryHtml: '',
341
+ reportHtml: '',
342
+ compareHtml: reportHtml,
343
+ baseFileId,
344
+ compareFileId,
345
+ });
346
+ const text = `<browsertool>\n${JSON.stringify(rendered.payload, null, 1)}\n</browsertool>`;
347
+ for (const problem of verifyBrowsertoolText(text).problems) {
348
+ const message = `browsertool 文本校验:${problem}`;
349
+ if (!check.problems.includes(message))
350
+ check.problems.push(message);
351
+ }
352
+ return {
353
+ status: 'COMPLETE',
354
+ data: {
355
+ noCard: false,
356
+ baseFileId,
357
+ compareFileId,
358
+ baseFileName,
359
+ compareFileName,
360
+ stats: stat,
361
+ changes: slimChanges,
362
+ planned: rendered.planned,
363
+ cardCount: rendered.cardCount,
364
+ title: str(rendered.payload.arguments?.title),
365
+ reportHtmlLength: reportHtml.length,
366
+ selfCheck: check.problems,
367
+ selfCheckWarnings: check.warnings,
368
+ selfCheckChecks: check.checks,
369
+ selfCheckPassed: check.problems.length === 0,
370
+ browsertool: text,
371
+ note: check.problems.length
372
+ ? '自检未通过,禁止交付;请按 selfCheck 修正后重跑'
373
+ : '一条命令完成上传、比对、报告与出卡;报告不落本地文件,卡片 artifact 面板自带下载',
374
+ },
375
+ };
376
+ },
377
+ };
378
+ export const contractCompareScreenOperations = [contractCompareScreenOperation];
@@ -166,7 +166,7 @@ export const contractCompareOperations = [
166
166
  status: 'COMPLETE',
167
167
  data: {
168
168
  url: comparePageUrl(session.baseUrl, { fileId: baseFileId, fileName: baseFileName }, { fileId: compareFileId, fileName: compareFileName }),
169
- page: { width: 1000 },
169
+ page: { width: 1300 },
170
170
  note: 'url 保持字面方括号与中文原样,不做整体编码',
171
171
  },
172
172
  };
@@ -25,7 +25,7 @@ export const contractCreditPageOperations = [
25
25
  data: {
26
26
  names,
27
27
  url: creditPageUrl(session.baseUrl, names),
28
- page: { title: '资信查询', activate: true, width: 1000 },
28
+ page: { title: '资信查询', activate: true, width: 1300 },
29
29
  note: '本能力只打开资信页面,不调用资信数据接口;从合同抽取的主体必须先让用户确认全称',
30
30
  },
31
31
  };