weaver-work-cli 0.1.50 → 0.1.52

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 (167) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/{attachment-content-EJYIOJPH.js → attachment-content-MBYYSQIX.js} +3 -3
  3. package/dist/chunks/{chunk-RYFRGTUV.js → chunk-7UOXOGFL.js} +4 -4
  4. package/dist/chunks/{chunk-BFKLQLBK.js → chunk-D3TDNRFE.js} +7 -7
  5. package/dist/chunks/{chunk-3NCFFHB2.js → chunk-DZOC77ZD.js} +1 -1
  6. package/dist/chunks/{chunk-K67FODVC.js → chunk-IRMA3GVP.js} +1 -1
  7. package/dist/chunks/{chunk-WNJUGI2F.js → chunk-KLZ3ULQQ.js} +1 -1
  8. package/dist/chunks/{chunk-6T53BSWZ.js → chunk-LALWNK6M.js} +9 -0
  9. package/dist/chunks/{chunk-HARQF5IP.js → chunk-LM2H7SZI.js} +25 -25
  10. package/dist/chunks/{chunk-YB3AJYPY.js → chunk-LTRLF6MM.js} +4 -4
  11. package/dist/chunks/{chunk-7ECB22G3.js → chunk-RPRFIG6I.js} +23 -23
  12. package/dist/chunks/{chunk-MCZG6HPM.js → chunk-RWFRZSIP.js} +2 -2
  13. package/dist/chunks/{chunk-7AYQJSFY.js → chunk-ZRHKGQRQ.js} +2 -2
  14. package/dist/chunks/{conflict-C4UDHCWV.js → conflict-D2HYKBMH.js} +2 -2
  15. package/dist/chunks/{contract-VUC6JOPG.js → contract-MFOFMM2J.js} +3837 -262
  16. package/dist/chunks/{create-flow-6OG2LYBD.js → create-flow-7ZATJVTM.js} +6 -6
  17. package/dist/chunks/{data-QO7QWOIV.js → data-WK5CQXNF.js} +17 -32
  18. package/dist/chunks/{env-WP57TF2S.js → env-5DO4YENS.js} +2 -2
  19. package/dist/chunks/{factory-VUXI7N5C.js → factory-3M7D7WJC.js} +1 -1
  20. package/dist/chunks/{group-chat-UQRGXILK.js → group-chat-B2HT5NEO.js} +3 -3
  21. package/dist/chunks/{invoice-E7GOITEU.js → invoice-V7ZTITUO.js} +725 -205
  22. package/dist/chunks/{meeting-4BBLVAWM.js → meeting-HZOX3CBB.js} +10 -10
  23. package/dist/chunks/{recruit-stage-FKWS5UQF.js → recruit-stage-XCMVEQA2.js} +718 -131
  24. package/dist/chunks/{registry-V4CHRQDI.js → registry-KYPFFQIH.js} +1 -1
  25. package/dist/chunks/{registry-5CRCN2TV.js → registry-SJHSBO5G.js} +10 -10
  26. package/dist/chunks/{room-recommend-AYR3UG7R.js → room-recommend-5AHR4YQV.js} +4 -4
  27. package/dist/chunks/{schedule-JZEFIXUS.js → schedule-KZPJUPC2.js} +4 -4
  28. package/dist/chunks/smart-extract-IXHCZE4R.js +2846 -0
  29. package/dist/chunks/{workflow-3ZAF2J5E.js → workflow-UHKCZJMY.js} +1 -1
  30. package/dist/index.js +11 -6
  31. package/dist/shortcuts/contract/manifest.js +151 -0
  32. package/dist/shortcuts/contract/operations/card-action.js +585 -0
  33. package/dist/shortcuts/contract/operations/card-ebdf-list.js +315 -0
  34. package/dist/shortcuts/contract/operations/card-plan.js +327 -0
  35. package/dist/shortcuts/contract/operations/card-risk-report.js +565 -0
  36. package/dist/shortcuts/contract/operations/elements-build.js +714 -0
  37. package/dist/shortcuts/contract/operations/elements-spec.js +216 -0
  38. package/dist/shortcuts/contract/operations/first-screen.js +563 -0
  39. package/dist/shortcuts/contract/operations/flow.js +81 -25
  40. package/dist/shortcuts/contract/operations/modeltext.js +132 -0
  41. package/dist/shortcuts/contract/operations/op-resolver.js +22 -0
  42. package/dist/shortcuts/contract/operations/quote.js +131 -25
  43. package/dist/shortcuts/contract/operations/registry.js +20 -0
  44. package/dist/shortcuts/contract/operations/review.js +73 -58
  45. package/dist/shortcuts/contract/operations/summary-validate.js +293 -0
  46. package/dist/shortcuts/contract/operations/summary.js +4 -2
  47. package/dist/shortcuts/contract/operations/upload.js +48 -7
  48. package/dist/shortcuts/contract/prewarm-cache.js +90 -0
  49. package/dist/shortcuts/contract/prewarm.js +88 -0
  50. package/dist/shortcuts/contract/upload-cache.js +49 -4
  51. package/dist/shortcuts/data/index.js +1 -6
  52. package/dist/shortcuts/data/manifest.js +2 -2
  53. package/dist/shortcuts/data/operations/index.js +1 -1
  54. package/dist/shortcuts/data/operations/query.js +23 -46
  55. package/dist/shortcuts/index.js +5 -0
  56. package/dist/shortcuts/invoice/index.js +0 -12
  57. package/dist/shortcuts/invoice/manifest.js +200 -49
  58. package/dist/shortcuts/invoice/operations/registry.js +4 -2
  59. package/dist/shortcuts/invoice/operations/reim-relation.js +438 -0
  60. package/dist/shortcuts/invoice/operations/shared.js +3 -19
  61. package/dist/shortcuts/invoice/operations/upload-and-validate.js +109 -73
  62. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -2
  63. package/dist/shortcuts/recruit-stage/operations/jd-create.js +6 -2
  64. package/dist/shortcuts/recruit-stage/operations/list.js +217 -1
  65. package/dist/shortcuts/recruit-stage/operations/resume-import.js +144 -158
  66. package/dist/shortcuts/recruit-stage/operations/search.js +348 -0
  67. package/dist/shortcuts/recruit-stage/shared.js +5 -0
  68. package/dist/shortcuts/recruit-stage/tag-lookup.js +136 -0
  69. package/dist/shortcuts/smart-extract/constants.js +79 -0
  70. package/dist/shortcuts/smart-extract/continuation.js +71 -0
  71. package/dist/shortcuts/smart-extract/errors.js +68 -0
  72. package/dist/shortcuts/smart-extract/host.js +191 -0
  73. package/dist/shortcuts/smart-extract/index.js +105 -0
  74. package/dist/shortcuts/smart-extract/ledger.js +70 -0
  75. package/dist/shortcuts/smart-extract/manifest.js +35 -0
  76. package/dist/shortcuts/smart-extract/operations/attachment.js +212 -0
  77. package/dist/shortcuts/smart-extract/operations/batch.js +67 -0
  78. package/dist/shortcuts/smart-extract/operations/config.js +118 -0
  79. package/dist/shortcuts/smart-extract/operations/fill.js +489 -0
  80. package/dist/shortcuts/smart-extract/operations/preview.js +174 -0
  81. package/dist/shortcuts/smart-extract/operations/registry.js +34 -0
  82. package/dist/shortcuts/smart-extract/operations/save.js +355 -0
  83. package/dist/shortcuts/smart-extract/operations/shared.js +191 -0
  84. package/dist/shortcuts/smart-extract/operations/structure.js +401 -0
  85. package/dist/shortcuts/smart-extract/operations/target.js +167 -0
  86. package/dist/shortcuts/smart-extract/operations/types.js +22 -0
  87. package/dist/shortcuts/smart-extract/operations/validate.js +408 -0
  88. package/dist/shortcuts/workflow/operations/read.js +19 -1
  89. package/docs/SKILL.md +1 -1
  90. package/docs/_catalog.md +3 -0
  91. package/docs/agent-invoice.md +5 -7
  92. package/docs/data.md +5 -1
  93. package/docs/fna.md +14 -1
  94. package/docs/invoice.md +7 -5
  95. package/docs/smart-extract.md +156 -0
  96. package/package.json +1 -1
  97. package/skill-template/business-info.json +16 -1
  98. package/skill-template/domains/qiyecheng.md +2 -0
  99. package/skill-template/domains/smart-extract.md +16 -0
  100. package/skill-template/domains/yepiaotong.md +2 -2
  101. package/skills/weaver-e10-data/references/scene-and-misc.md +4 -3
  102. package/skills/weaver-e10-jinchengda/SKILL.md +159 -11
  103. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +8 -3
  104. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +4 -3
  105. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +8 -7
  106. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -6
  107. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +3 -1
  108. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
  109. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +128 -0
  110. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +90 -0
  111. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +124 -5
  112. package/skills/weaver-e10-jinchengda/scripts/contract_first_screen.py +200 -0
  113. package/skills/weaver-e10-jinchengda/scripts/fill_contract_from_quote.py +572 -0
  114. package/skills/weaver-e10-jinchengda/scripts/quote_screen.py +560 -0
  115. package/skills/weaver-e10-jinchengda/scripts/triage_contract.py +894 -0
  116. package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +10 -0
  117. package/skills/weaver-e10-qiyecheng/SKILL.md +37 -0
  118. package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +14 -0
  119. package/skills/weaver-e10-qiyecheng/references/budget.md +14 -0
  120. package/skills/weaver-e10-qiyecheng/references/catalog.md +25 -0
  121. package/skills/weaver-e10-qiyecheng/references/expense-center.md +8 -0
  122. package/skills/weaver-e10-qiyecheng/references/expense-chart.md +9 -0
  123. package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +13 -0
  124. package/skills/weaver-e10-qiyecheng/references/loan-management.md +14 -0
  125. package/skills/weaver-e10-qiyecheng/references/self-hosted-mode.md +239 -0
  126. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +34 -27
  127. package/skills/weaver-e10-recruit-stage/SKILL.md +62 -4
  128. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +42 -8
  129. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +79 -0
  130. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +11 -3
  131. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +3 -2
  132. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +153 -0
  133. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +7 -4
  134. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
  135. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +66 -0
  136. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +156 -42
  137. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +122 -0
  138. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +36 -8
  139. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +157 -0
  140. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +35 -0
  141. package/skills/weaver-e10-smart-extract/SKILL.md +169 -0
  142. package/skills/weaver-e10-smart-extract/references/api-contract.md +71 -0
  143. package/skills/weaver-e10-smart-extract/references/result-format.md +102 -0
  144. package/skills/weaver-e10-smart-extract/references/troubleshooting.md +105 -0
  145. package/skills/weaver-e10-workflow/references/workflow-query.md +1 -1
  146. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  147. package/skills/weaver-e10-yepiaotong/SKILL.md +46 -33
  148. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -0
  149. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +1 -1
  150. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +19 -2
  151. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +8 -2
  152. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +407 -0
  153. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +12 -8
  154. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +97 -39
  155. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +91 -2
  156. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +1 -1
  157. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +12 -12
  158. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +8 -4
  159. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +136 -91
  160. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +109 -23
  161. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +110 -43
  162. package/dist/shortcuts/invoice/operations/validate-preview.js +0 -40
  163. package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +0 -279
  164. package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +0 -450
  165. package/skills/weaver-e10-jinchengda/scripts/render_ebdf_list_card.py +0 -265
  166. package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +0 -358
  167. package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +0 -40
@@ -14,7 +14,7 @@ import {
14
14
  validateRuleFile,
15
15
  workflowOperationDefinitions,
16
16
  workflowSuccess
17
- } from "./chunk-6T53BSWZ.js";
17
+ } from "./chunk-LALWNK6M.js";
18
18
  import {
19
19
  createWorkflowHost
20
20
  } from "./chunk-HFXK54M4.js";
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ var builtinShortcuts = [
40
40
  lazyShortcut({
41
41
  name: "invoice",
42
42
  description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
43
- load: async () => (await import("./chunks/invoice-E7GOITEU.js")).invoiceShortcut
43
+ load: async () => (await import("./chunks/invoice-V7ZTITUO.js")).invoiceShortcut
44
44
  }),
45
45
  lazyShortcut({
46
46
  name: "ehr",
@@ -50,7 +50,7 @@ var builtinShortcuts = [
50
50
  lazyShortcut({
51
51
  name: "recruit-stage",
52
52
  description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
53
- load: async () => (await import("./chunks/recruit-stage-FKWS5UQF.js")).recruitStageShortcut
53
+ load: async () => (await import("./chunks/recruit-stage-XCMVEQA2.js")).recruitStageShortcut
54
54
  }),
55
55
  lazyShortcut({
56
56
  name: "cowork",
@@ -90,7 +90,7 @@ var builtinShortcuts = [
90
90
  lazyShortcut({
91
91
  name: "meeting",
92
92
  description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
93
- load: async () => (await import("./chunks/meeting-4BBLVAWM.js")).meetingShortcut
93
+ load: async () => (await import("./chunks/meeting-HZOX3CBB.js")).meetingShortcut
94
94
  }),
95
95
  lazyShortcut({
96
96
  name: "okr",
@@ -140,7 +140,7 @@ var builtinShortcuts = [
140
140
  lazyShortcut({
141
141
  name: "workflow",
142
142
  description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
143
- load: async () => (await import("./chunks/workflow-3ZAF2J5E.js")).workflowShortcut
143
+ load: async () => (await import("./chunks/workflow-UHKCZJMY.js")).workflowShortcut
144
144
  }),
145
145
  lazyShortcut({
146
146
  name: "blog",
@@ -155,17 +155,22 @@ var builtinShortcuts = [
155
155
  lazyShortcut({
156
156
  name: "contract",
157
157
  description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
158
- load: async () => (await import("./chunks/contract-VUC6JOPG.js")).contractShortcut
158
+ load: async () => (await import("./chunks/contract-MFOFMM2J.js")).contractShortcut
159
159
  }),
160
160
  lazyShortcut({
161
161
  name: "reception",
162
162
  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",
163
163
  load: async () => (await import("./chunks/reception-QGPNTGHG.js")).receptionShortcut
164
164
  }),
165
+ lazyShortcut({
166
+ name: "smart-extract",
167
+ 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",
168
+ load: async () => (await import("./chunks/smart-extract-IXHCZE4R.js")).smartExtractShortcut
169
+ }),
165
170
  lazyShortcut({
166
171
  name: "data",
167
172
  description: "\u6CDB\u5FAEE10\u6570\u636E\u52A9\u624B CLI\uFF08\u6570\u636E\u6E90\u67E5\u8BE2 / \u914D\u7F6E\u4E2D\u5FC3 / \u573A\u666F\u5B9A\u4F4D\uFF09",
168
- load: async () => (await import("./chunks/data-QO7QWOIV.js")).dataShortcut
173
+ load: async () => (await import("./chunks/data-WK5CQXNF.js")).dataShortcut
169
174
  })
170
175
  ];
171
176
  function shortcutMetadata() {
@@ -455,6 +455,134 @@ const quoteContracts = [
455
455
  baseUrl: { type: 'string', minLength: 1, maxLength: 2048, description: '可选:当前 E10 环境地址,缺省取登录会话' },
456
456
  }, ['data', 'out']),
457
457
  },
458
+ {
459
+ name: 'contract.card.plan',
460
+ risk: 'read',
461
+ fixed: { local: true, kind: 'card-plan' },
462
+ inputSchema: readSchema({
463
+ context: {
464
+ type: 'object',
465
+ description: '上下文状态对象(scene / docType / flowKey / reviewed / submitted 等);优先于 contextFile / contextJson',
466
+ },
467
+ contextFile: { type: 'string', minLength: 1, maxLength: 4096, description: '上下文状态 JSON 文件路径' },
468
+ contextJson: { type: 'string', minLength: 1, description: '上下文状态 JSON 字符串' },
469
+ }),
470
+ },
471
+ {
472
+ name: 'contract.card.ebdf-list',
473
+ risk: 'local-file-write',
474
+ fixed: { local: true, kind: 'ebdf-list-card' },
475
+ inputSchema: readSchema({
476
+ menu: { type: 'string', description: '菜单名或别名(直销合同/直销业绩/合同收款/项目验收/渠道订单/渠道订单-商务)' },
477
+ pageId: { type: 'string', pattern: '^\\d{6,}$', description: '直接给 pageId;与 menu 二选一,同时给时以 pageId 为准' },
478
+ origin: { type: 'string', minLength: 1, description: '必填:scheme+host,不带路径或 query,不含 {baseUrl}' },
479
+ title: { type: 'string', description: '卡片标题,默认取菜单名' },
480
+ callId: { type: 'string', description: '默认 ebdf-list-<菜单>-<YYYYMMDDHHmm>-01' },
481
+ comParamPairs: { type: 'array', items: { type: 'string' }, description: '形如 field_<字段id>=<值>,可多条;与 comParamsJson 互斥' },
482
+ comParamsJson: { type: 'string', description: 'comParams 对象的 JSON 字符串;与 comParamPairs 互斥' },
483
+ out: { type: 'string', maxLength: 4096, description: '可选:卡片 JSON 输出路径' },
484
+ }, ['origin']),
485
+ },
486
+ {
487
+ name: 'contract.card.risk-report',
488
+ risk: 'local-file-write',
489
+ fixed: { local: true, kind: 'risk-report-card' },
490
+ inputSchema: readSchema({
491
+ ref: { type: 'string', maxLength: 4096, description: 'CLI 落盘的审查结果 JSON(含 envelope);与 data 二选一' },
492
+ data: { type: 'string', maxLength: 4096, description: '已归一化的 report_data.json;与 ref 二选一' },
493
+ out: { type: 'string', maxLength: 4096, description: '可选:HTML 输出路径(不传则不落盘,报告仅作卡片交付)' },
494
+ payload: { type: 'string', maxLength: 4096, description: '可选:同时输出 browsertool payload JSON 的路径' },
495
+ dumpData: { type: 'string', maxLength: 4096, description: '可选:只抽取数据并保存到此路径' },
496
+ template: { type: 'string', maxLength: 4096, description: '可选:自定义模板路径;缺省用内置模板' },
497
+ contract: { type: 'string', description: '合同名称' },
498
+ partyA: { type: 'string', description: '甲方' },
499
+ partyB: { type: 'string', description: '乙方' },
500
+ reviewDate: { type: 'string', description: '审查日期' },
501
+ fileId: { type: 'string', description: '审查 fileId(打开详情用)' },
502
+ fileName: { type: 'string', description: '审查文件名' },
503
+ aiid: { type: 'string', description: '审查助手 id,默认 1326842382967570463' },
504
+ baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
505
+ cardId: { type: 'string', description: '卡片唯一 id' },
506
+ callId: { type: 'string', description: 'payload callId' },
507
+ title: { type: 'string', description: '卡片标题' },
508
+ }),
509
+ },
510
+ {
511
+ name: 'contract.card.action',
512
+ risk: 'local-file-write',
513
+ fixed: { local: true, kind: 'action-card-render' },
514
+ inputSchema: readSchema({
515
+ context: { type: 'object', description: '上下文状态对象(scene / docType / flowKey / reviewed / submitted 等);优先于 contextFile / contextJson' },
516
+ contextFile: { type: 'string', maxLength: 4096, description: '上下文状态 JSON 文件路径;都缺省时按产物目录找 card_context.json / first_screen_result.json' },
517
+ contextJson: { type: 'string', description: '上下文状态 JSON 字符串' },
518
+ fileId: { type: 'string', description: '审查/流程用的 fileId' },
519
+ fileName: { type: 'string', description: '合同文件名(打开审查详情用)' },
520
+ flowKey: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '合同流程类型;决定「发起流程」卡是否生成' },
521
+ companyName: { type: 'string', description: '对方企业全称;决定「查对方资信」卡是否生成' },
522
+ summaryHtml: { type: 'string', maxLength: 4096, description: '摘要 HTML 文件路径(内嵌为「查看合同摘要」内容)' },
523
+ reportHtml: { type: 'string', maxLength: 4096, description: '审查报告 HTML 文件路径(内嵌为「导出审查报告」内容)' },
524
+ compareHtml: { type: 'string', maxLength: 4096, description: '比对报告 HTML 文件路径(内嵌为「生成比对报告」内容)' },
525
+ aiExtraId: { type: 'string', description: '要素预填识别记录 ID;缺省从 context 的 aiExtraId 取' },
526
+ attachmentFieldId: { type: 'string', description: '合同文件在表单上的附件字段 ID;缺省从 context 取' },
527
+ baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
528
+ aiid: { type: 'string', description: '审查助手 id,默认 1326842382967570463' },
529
+ cardId: { type: 'string', description: '卡片唯一 id,默认 card-<YYYYMMDDHHmm>' },
530
+ callId: { type: 'string', description: 'payload callId,默认 contract-card-<stamp>-01' },
531
+ title: { type: 'string', description: '卡片标题,默认「可做的 N 件事」' },
532
+ only: { type: 'string', description: '只输出指定动作,逗号分隔(如 launch-flow);仍由本操作生成' },
533
+ template: { type: 'string', maxLength: 4096, description: '可选:自定义模板路径;缺省用内置模板' },
534
+ out: { type: 'string', maxLength: 4096, description: '可选:写入 browsertool 文件;不传则只在结果中返回' },
535
+ }),
536
+ },
537
+ {
538
+ name: 'contract.elements.build',
539
+ risk: 'local-file-write',
540
+ fixed: { local: true, kind: 'elements-build' },
541
+ inputSchema: readSchema({
542
+ triage: { type: 'string', minLength: 1, maxLength: 4096, description: 'triage.json 路径(抽正文与要素的产物)' },
543
+ fileId: { type: 'string', minLength: 1, description: 'flow.launch 返回的 workflow fileId' },
544
+ flow: { type: 'string', minLength: 1, description: '新客户 / 契约锁 / 常规二次销售 / 老客户增值' },
545
+ sourceText: { type: 'string', maxLength: 4096, description: '合同正文纯文本路径;缺省取 triage 同目录 contract_text.txt' },
546
+ fileIds: { type: 'array', items: { type: 'string' }, description: '多文件时的附件 ID 列表(与 text_sources.json 文件数一致才用于 origin 归属)' },
547
+ workflowId: { type: 'string', description: '流程 ID;无内置字段表时配合 attachmentFieldId 出最小记录' },
548
+ attachmentFieldId: { type: 'string', description: '合同文件字段 ID;无内置字段表时必填,仅登记附件兜底' },
549
+ out: { type: 'string', maxLength: 4096, description: '可选:recognize.json 输出路径' },
550
+ }, ['triage', 'fileId', 'flow']),
551
+ },
552
+ {
553
+ name: 'contract.firstscreen.run',
554
+ risk: 'local-file-write',
555
+ fixed: { local: true, kind: 'first-screen-orchestration' },
556
+ inputSchema: readSchema({
557
+ file: { type: 'string', minLength: 1, maxLength: 4096, description: '主合同文件绝对路径' },
558
+ outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '产物目录(放中间 JSON、summary.html、card.html)' },
559
+ attach: { type: 'array', items: { type: 'string' }, description: '随附文件(协议/补充协议/清单);预审一并上传,发起流程的附件字段只挂主文件' },
560
+ flow: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '留空则从 triage.json 的 flowKey 读取' },
561
+ triage: { type: 'string', maxLength: 4096, description: 'triage.json 路径;缺省取 outDir/triage.json' },
562
+ aiFill: { type: 'string', maxLength: 4096, description: 'ai_fill.json(elements + summary 合并);给了就自动拆出 summary_data.json' },
563
+ summaryData: { type: 'string', maxLength: 4096, description: 'summary_data.json 路径;不传则跳过摘要渲染' },
564
+ recognizeFile: { type: 'string', maxLength: 4096, description: 'recognizeResult 的 JSON 文件;不传则用内置字段表自动组装,拿不到就降级' },
565
+ companyName: { type: 'string', description: '对方主体全称,用于资信卡' },
566
+ counterparty: { type: 'boolean', description: '是否存在可查的对方主体' },
567
+ skipUpload: { type: 'boolean', description: '跳过预审上传(仅需流程页时)' },
568
+ baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
569
+ aiid: { type: 'string', description: '审查助手 id(透传给卡片)' },
570
+ printCard: { type: 'boolean', description: '把成品卡片 HTML 一并返回(data.cardHtmlContent)' },
571
+ }, ['file', 'outDir']),
572
+ },
573
+ {
574
+ name: 'contract.summary.validate',
575
+ risk: 'local-file-write',
576
+ fixed: { local: true, kind: 'summary-validate' },
577
+ inputSchema: readSchema({
578
+ summary: { type: 'string', minLength: 1, maxLength: 4096, description: '模型生成的 summary_data.json 路径' },
579
+ text: { type: 'string', maxLength: 4096, description: '可选:contract_text.txt,用于金额回查' },
580
+ triage: { type: 'string', maxLength: 4096, description: '可选:triage.json;配合 elements 合流要素' },
581
+ elements: { type: 'string', maxLength: 4096, description: '可选:模型语义提取的 elements.json' },
582
+ outSummary: { type: 'string', maxLength: 4096, description: '可选:校验通过后落地的 summary_data.json 路径' },
583
+ strict: { type: 'boolean', description: '可选:WARN 也视为不通过(仅影响 data.pass,不改变 fails)' },
584
+ }, ['summary']),
585
+ },
458
586
  {
459
587
  name: 'contract.file.download',
460
588
  risk: 'local-file-write',
@@ -592,6 +720,29 @@ export const contractOperations = [
592
720
  fixed: { method: 'GET', path: '/api/ebd/contract/tplinfo/getById' },
593
721
  inputSchema: readSchema({ id: idString }, ['id']),
594
722
  },
723
+ {
724
+ // 范文库(「合同范文管理」EB 表单)。本技能内「模板」== 「范文」,
725
+ // 与合同模板库 tplinfo(contract.template.*)是互不相通的两个对象。
726
+ name: 'contract.modeltext.list',
727
+ risk: 'read',
728
+ auth: AUTH,
729
+ fixed: {
730
+ method: 'POST',
731
+ path: '/api/ebuilder/form/list/getListDatas',
732
+ defaults: {
733
+ passid: '1290191829260230657',
734
+ cid: '1290191829260230657',
735
+ listId: '1290191833571975256',
736
+ },
737
+ headers: { ebbusinessid: '1290191833571975256' },
738
+ note: '分页以 body.current 传页码;真实总数取 pagination.mainRecordTotal',
739
+ },
740
+ inputSchema: readSchema({
741
+ pageNo: { type: 'integer', minimum: 1, default: 1 },
742
+ pageSize: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
743
+ tableuid: { type: 'string', description: '数据表 uid;省略时由服务端按视图解析' },
744
+ }),
745
+ },
595
746
  {
596
747
  name: 'contract.clause.tree',
597
748
  risk: 'read',