weaver-work-cli 0.1.49 → 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.
- package/README.md +1 -1
- package/dist/chunks/{attachment-content-MU2LPI5P.js → attachment-content-MBYYSQIX.js} +3 -3
- package/dist/chunks/{chunk-ZKEUGS2U.js → chunk-7UOXOGFL.js} +4 -4
- package/dist/chunks/{chunk-72MI3MBX.js → chunk-ATEXBEPD.js} +55 -15
- package/dist/chunks/{chunk-3NV2ETZR.js → chunk-D3TDNRFE.js} +8 -8
- package/dist/chunks/{chunk-6GWU63YF.js → chunk-DZOC77ZD.js} +1 -1
- package/dist/chunks/{chunk-K3BT54CU.js → chunk-IRMA3GVP.js} +1 -1
- package/dist/chunks/{chunk-3X7VOSBA.js → chunk-KLZ3ULQQ.js} +1 -1
- package/dist/chunks/{chunk-YLCYX7LE.js → chunk-KMRT7NAT.js} +18 -5
- package/dist/chunks/{chunk-NBEWUR7L.js → chunk-LALWNK6M.js} +167 -44
- package/dist/chunks/{chunk-BRRW7CWA.js → chunk-LM2H7SZI.js} +26 -26
- package/dist/chunks/{chunk-KV5SOWMS.js → chunk-LTRLF6MM.js} +4 -4
- package/dist/chunks/{chunk-D2QRZUW4.js → chunk-RPRFIG6I.js} +35 -28
- package/dist/chunks/{chunk-GEOMANP7.js → chunk-RWFRZSIP.js} +2 -2
- package/dist/chunks/{chunk-EJVA5ZVB.js → chunk-ZRHKGQRQ.js} +2 -2
- package/dist/chunks/{conflict-6347A7YK.js → conflict-D2HYKBMH.js} +2 -2
- package/dist/chunks/{contract-N6P2HIIE.js → contract-MFOFMM2J.js} +4284 -254
- package/dist/chunks/{create-flow-7WG7LVX5.js → create-flow-7ZATJVTM.js} +6 -6
- package/dist/chunks/{data-QO7QWOIV.js → data-WK5CQXNF.js} +17 -32
- package/dist/chunks/{env-LHRKSLG6.js → env-5DO4YENS.js} +2 -2
- package/dist/chunks/{factory-2H7Z4RWJ.js → factory-3M7D7WJC.js} +1 -1
- package/dist/chunks/{fna-ZVB2IILI.js → fna-ECOYBQYL.js} +328 -5
- package/dist/chunks/{group-chat-EW6PNDDT.js → group-chat-B2HT5NEO.js} +3 -3
- package/dist/chunks/{im-3RCNL5GT.js → im-TN2JYVGJ.js} +2 -2
- package/dist/chunks/{invoice-FXWH5GPO.js → invoice-V7ZTITUO.js} +726 -206
- package/dist/chunks/{meeting-N2FQBHXI.js → meeting-HZOX3CBB.js} +10 -10
- package/dist/chunks/{msg-parse-4GSQ2WTO.js → msg-parse-FPFVPMYI.js} +5 -1
- package/dist/chunks/{reception-MYOKJULO.js → reception-QGPNTGHG.js} +98 -82
- package/dist/chunks/{recruit-stage-FKWS5UQF.js → recruit-stage-XCMVEQA2.js} +718 -131
- package/dist/chunks/{registry-BUTEDK3C.js → registry-E5RQJVWN.js} +2 -2
- package/dist/chunks/{registry-7VZ6YJUF.js → registry-KYPFFQIH.js} +1 -1
- package/dist/chunks/{registry-CKUVBS53.js → registry-SJHSBO5G.js} +10 -10
- package/dist/chunks/{room-recommend-MBCYENQ2.js → room-recommend-5AHR4YQV.js} +4 -4
- package/dist/chunks/{schedule-5IFMCXME.js → schedule-KZPJUPC2.js} +4 -4
- package/dist/chunks/smart-extract-IXHCZE4R.js +2846 -0
- package/dist/chunks/{workflow-2TRU2ZSP.js → workflow-UHKCZJMY.js} +1 -1
- package/dist/index.js +14 -9
- package/dist/shortcuts/contract/host.js +11 -0
- package/dist/shortcuts/contract/index.js +13 -0
- package/dist/shortcuts/contract/manifest.js +204 -0
- package/dist/shortcuts/contract/operations/card-action.js +585 -0
- package/dist/shortcuts/contract/operations/card-ebdf-list.js +315 -0
- package/dist/shortcuts/contract/operations/card-plan.js +327 -0
- package/dist/shortcuts/contract/operations/card-risk-report.js +565 -0
- package/dist/shortcuts/contract/operations/elements-build.js +714 -0
- package/dist/shortcuts/contract/operations/elements-spec.js +216 -0
- package/dist/shortcuts/contract/operations/first-screen.js +563 -0
- package/dist/shortcuts/contract/operations/flow.js +81 -25
- package/dist/shortcuts/contract/operations/modeltext.js +132 -0
- package/dist/shortcuts/contract/operations/op-resolver.js +22 -0
- package/dist/shortcuts/contract/operations/performance.js +58 -7
- package/dist/shortcuts/contract/operations/quote.js +410 -22
- package/dist/shortcuts/contract/operations/registry.js +22 -0
- package/dist/shortcuts/contract/operations/review.js +73 -58
- package/dist/shortcuts/contract/operations/save-recognize.js +151 -0
- package/dist/shortcuts/contract/operations/summary-validate.js +293 -0
- package/dist/shortcuts/contract/operations/summary.js +4 -2
- package/dist/shortcuts/contract/operations/upload.js +48 -7
- package/dist/shortcuts/contract/prewarm-cache.js +90 -0
- package/dist/shortcuts/contract/prewarm.js +88 -0
- package/dist/shortcuts/contract/upload-cache.js +49 -4
- package/dist/shortcuts/data/index.js +1 -6
- package/dist/shortcuts/data/manifest.js +2 -2
- package/dist/shortcuts/data/operations/index.js +1 -1
- package/dist/shortcuts/data/operations/query.js +23 -46
- package/dist/shortcuts/fna/host.js +4 -2
- package/dist/shortcuts/fna/manifest.js +14 -5
- package/dist/shortcuts/fna/operations/audit.js +334 -0
- package/dist/shortcuts/fna/operations/registry.js +2 -0
- package/dist/shortcuts/im/operations/at-mention.js +6 -3
- package/dist/shortcuts/im/operations/msg-parse.js +35 -5
- package/dist/shortcuts/im/operations/msg-sync.js +3 -1
- package/dist/shortcuts/im/operations/msg-write.js +57 -9
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/index.js +0 -12
- package/dist/shortcuts/invoice/manifest.js +201 -50
- package/dist/shortcuts/invoice/operations/registry.js +4 -2
- package/dist/shortcuts/invoice/operations/reim-relation.js +438 -0
- package/dist/shortcuts/invoice/operations/shared.js +3 -19
- package/dist/shortcuts/invoice/operations/upload-and-validate.js +109 -73
- package/dist/shortcuts/meeting/operations/from-group-chat.js +16 -2
- package/dist/shortcuts/reception/constants.js +3 -7
- package/dist/shortcuts/reception/operations/leads.js +30 -6
- package/dist/shortcuts/reception/operations/panels.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -2
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +6 -2
- package/dist/shortcuts/recruit-stage/operations/list.js +217 -1
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +144 -158
- package/dist/shortcuts/recruit-stage/operations/search.js +348 -0
- package/dist/shortcuts/recruit-stage/shared.js +5 -0
- package/dist/shortcuts/recruit-stage/tag-lookup.js +136 -0
- package/dist/shortcuts/smart-extract/constants.js +79 -0
- package/dist/shortcuts/smart-extract/continuation.js +71 -0
- package/dist/shortcuts/smart-extract/errors.js +68 -0
- package/dist/shortcuts/smart-extract/host.js +191 -0
- package/dist/shortcuts/smart-extract/index.js +105 -0
- package/dist/shortcuts/smart-extract/ledger.js +70 -0
- package/dist/shortcuts/smart-extract/manifest.js +35 -0
- package/dist/shortcuts/smart-extract/operations/attachment.js +212 -0
- package/dist/shortcuts/smart-extract/operations/batch.js +67 -0
- package/dist/shortcuts/smart-extract/operations/config.js +118 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +489 -0
- package/dist/shortcuts/smart-extract/operations/preview.js +174 -0
- package/dist/shortcuts/smart-extract/operations/registry.js +34 -0
- package/dist/shortcuts/smart-extract/operations/save.js +355 -0
- package/dist/shortcuts/smart-extract/operations/shared.js +191 -0
- package/dist/shortcuts/smart-extract/operations/structure.js +401 -0
- package/dist/shortcuts/smart-extract/operations/target.js +167 -0
- package/dist/shortcuts/smart-extract/operations/types.js +22 -0
- package/dist/shortcuts/smart-extract/operations/validate.js +408 -0
- package/dist/shortcuts/workflow/operations/read.js +77 -15
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +140 -24
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +42 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -6
- package/docs/SKILL.md +1 -1
- package/docs/_catalog.md +4 -1
- package/docs/agent-invoice.md +5 -7
- package/docs/data.md +5 -1
- package/docs/fna.md +24 -4
- package/docs/invoice.md +7 -5
- package/docs/smart-extract.md +156 -0
- package/package.json +1 -1
- package/skill-template/business-info.json +21 -1
- package/skill-template/domains/qiyecheng.md +6 -2
- package/skill-template/domains/smart-extract.md +16 -0
- package/skill-template/domains/yepiaotong.md +2 -2
- package/skills/weaver-e10-data/references/scene-and-misc.md +4 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +159 -11
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +13 -8
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +44 -2
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +220 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +68 -33
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +26 -15
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +128 -0
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +90 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +96 -2
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +167 -5
- package/skills/weaver-e10-jinchengda/scripts/contract_first_screen.py +200 -0
- package/skills/weaver-e10-jinchengda/scripts/fill_contract_from_quote.py +572 -0
- package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +997 -0
- package/skills/weaver-e10-jinchengda/scripts/quote_screen.py +560 -0
- package/skills/weaver-e10-jinchengda/scripts/triage_contract.py +894 -0
- package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +93 -0
- package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +118 -0
- package/skills/weaver-e10-qiyecheng/SKILL.md +58 -7
- package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +118 -0
- package/skills/weaver-e10-qiyecheng/references/budget.md +14 -0
- package/skills/weaver-e10-qiyecheng/references/catalog.md +42 -3
- package/skills/weaver-e10-qiyecheng/references/expense-center.md +8 -0
- package/skills/weaver-e10-qiyecheng/references/expense-chart.md +9 -0
- package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +13 -0
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +14 -0
- package/skills/weaver-e10-qiyecheng/references/self-hosted-mode.md +239 -0
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +153 -40
- package/skills/weaver-e10-reception-flow/SKILL.md +43 -6
- package/skills/weaver-e10-reception-flow/references/guide.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +62 -4
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +42 -8
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +79 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +11 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +3 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +153 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +7 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +66 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +156 -40
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +122 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +36 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +157 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +35 -0
- package/skills/weaver-e10-smart-extract/SKILL.md +169 -0
- package/skills/weaver-e10-smart-extract/references/api-contract.md +71 -0
- package/skills/weaver-e10-smart-extract/references/result-format.md +102 -0
- package/skills/weaver-e10-smart-extract/references/troubleshooting.md +105 -0
- package/skills/weaver-e10-workflow/SKILL.md +2 -1
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +29 -6
- package/skills/weaver-e10-workflow/references/workflow-query.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +162 -10
- package/skills/weaver-e10-yepiaotong/SKILL.md +53 -35
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +19 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +19 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +8 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +407 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +18 -53
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +97 -39
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +96 -7
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +5 -38
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +14 -14
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +8 -4
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +139 -94
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +131 -58
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +110 -43
- package/skills/weaver-e10-yimiaoban/SKILL.md +8 -6
- package/skills/weaver-e10-yimiaoban/references/msg-read.md +20 -0
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +7 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +18 -15
- package/dist/shortcuts/invoice/operations/validate-preview.js +0 -40
- package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +0 -279
- package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +0 -450
- package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +0 -358
- package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +0 -40
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-
|
|
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-
|
|
53
|
+
load: async () => (await import("./chunks/recruit-stage-XCMVEQA2.js")).recruitStageShortcut
|
|
54
54
|
}),
|
|
55
55
|
lazyShortcut({
|
|
56
56
|
name: "cowork",
|
|
@@ -75,7 +75,7 @@ var builtinShortcuts = [
|
|
|
75
75
|
lazyShortcut({
|
|
76
76
|
name: "fna",
|
|
77
77
|
description: "\u6CDB\u5FAEE10\u9F50\u4E1A\u6210\u8D39\u63A7\u4E2D\u5FC3\uFF08\u9884\u7B97/\u8D39\u7528\u4E2D\u5FC3/\u501F\u6B3E\u7BA1\u7406/\u53D1\u7968\u6838\u9500\uFF09CLI",
|
|
78
|
-
load: async () => (await import("./chunks/fna-
|
|
78
|
+
load: async () => (await import("./chunks/fna-ECOYBQYL.js")).fnaShortcut
|
|
79
79
|
}),
|
|
80
80
|
lazyShortcut({
|
|
81
81
|
name: "hrm",
|
|
@@ -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-
|
|
93
|
+
load: async () => (await import("./chunks/meeting-HZOX3CBB.js")).meetingShortcut
|
|
94
94
|
}),
|
|
95
95
|
lazyShortcut({
|
|
96
96
|
name: "okr",
|
|
@@ -130,7 +130,7 @@ var builtinShortcuts = [
|
|
|
130
130
|
lazyShortcut({
|
|
131
131
|
name: "im",
|
|
132
132
|
description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
|
|
133
|
-
load: async () => (await import("./chunks/im-
|
|
133
|
+
load: async () => (await import("./chunks/im-TN2JYVGJ.js")).imShortcut
|
|
134
134
|
}),
|
|
135
135
|
lazyShortcut({
|
|
136
136
|
name: "project",
|
|
@@ -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-
|
|
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-
|
|
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
|
-
load: async () => (await import("./chunks/reception-
|
|
163
|
+
load: async () => (await import("./chunks/reception-QGPNTGHG.js")).receptionShortcut
|
|
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
|
|
164
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-
|
|
173
|
+
load: async () => (await import("./chunks/data-WK5CQXNF.js")).dataShortcut
|
|
169
174
|
})
|
|
170
175
|
];
|
|
171
176
|
function shortcutMetadata() {
|
|
@@ -108,6 +108,17 @@ export function contractBusinessStatus(path, value) {
|
|
|
108
108
|
}
|
|
109
109
|
return { ok: true, code: errcode || undefined, message: textOf(messageNode, ['errmsg', 'msg']) };
|
|
110
110
|
}
|
|
111
|
+
// 智能填单识别记录保存 `/api/ai/application/smartfill/**`:成功码是顶层 code=200(或 0)且 status 非 false,
|
|
112
|
+
// 响应里既没有 message 节点也没有 errcode。落到末尾兜底会因 errcode === undefined 被判成失败。
|
|
113
|
+
if (path.startsWith('/api/ai/application/smartfill/')) {
|
|
114
|
+
const code = root.code ?? messageNode.code ?? messageNode.errcode;
|
|
115
|
+
const ok = (code === 0 || code === '0' || code === 200 || code === '200') && root.status !== false && root.fail !== true;
|
|
116
|
+
return {
|
|
117
|
+
ok,
|
|
118
|
+
code: code === undefined ? undefined : String(code),
|
|
119
|
+
message: textOf(root, ['msg', 'message']) ?? textOf(messageNode, ['msg', 'errmsg']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
111
122
|
const errcode = messageNode.errcode ?? root.errcode;
|
|
112
123
|
const ok = errcode === '0' || errcode === 0 || errcode === '200' || errcode === 200;
|
|
113
124
|
return { ok, code: errcode === undefined ? undefined : String(errcode), message: textOf(messageNode, ['errmsg', 'msg']) };
|
|
@@ -363,6 +363,13 @@ export const contractShortcut = {
|
|
|
363
363
|
{ flag: '--sclx <types>', description: '8 risk review (contract pre-review); 1/2/3 disabled', key: 'sclx' },
|
|
364
364
|
]);
|
|
365
365
|
const flow = contract.command('flow').description('Contract flow entry commands');
|
|
366
|
+
registerCommand(flow, 'save-recognize-record', 'Save extracted form elements as a recognize record and return aiExtraId', 'contract.flow.save-recognize-record', [
|
|
367
|
+
{ flag: '--flow <name>', description: 'optional flow preset: 契约锁 / 新客户 / 老客户增值 / 常规二次销售' },
|
|
368
|
+
{ flag: '--attachment-ids <ids>', description: 'comma separated attachment ids', key: 'attachmentIds' },
|
|
369
|
+
{ flag: '--attachment-field-id <id>', description: 'contract file field id; its value is passed to the flow component via customParams', key: 'attachmentFieldId' },
|
|
370
|
+
{ flag: '--attachment-file-id <id>', description: 'fileId for the contract file field (defaults to the first attachment id)', key: 'attachmentFileId' },
|
|
371
|
+
{ flag: '--workflow-id <id>', description: 'workflow template id; required when flow is not one of the four presets', key: 'workflowId' },
|
|
372
|
+
]);
|
|
366
373
|
registerCommand(flow, 'page', 'Build the flow create page url', 'contract.flow.page', [
|
|
367
374
|
{ flag: '--flow <name>', description: '契约锁 / 新客户 / 老客户增值 / 常规二次销售', key: 'flow' },
|
|
368
375
|
]);
|
|
@@ -482,6 +489,12 @@ export const contractShortcut = {
|
|
|
482
489
|
{ flag: '--keep-remark', description: 'keep remark column', key: 'keepRemark', kind: 'bool' },
|
|
483
490
|
{ flag: '--include-zero', description: 'keep zero-qty/amount items', key: 'includeZero', kind: 'bool' },
|
|
484
491
|
]);
|
|
492
|
+
registerCommand(quote, 'extract', 'Extract .docx quote into tables/paragraphs (no semantics)', 'contract.quote.extract', [
|
|
493
|
+
{ flag: '--path <file>', description: 'quote docx path', key: 'path' },
|
|
494
|
+
]);
|
|
495
|
+
registerCommand(quote, 'normalize', 'Validate and normalize model-produced quote JSON', 'contract.quote.normalize', [
|
|
496
|
+
{ flag: '--data <file>', description: 'model JSON path', key: 'data' },
|
|
497
|
+
]);
|
|
485
498
|
registerCommand(quote, 'fill', 'Fill a real .docx contract template with data JSON', 'contract.quote.fill', [
|
|
486
499
|
{ flag: '--template <file>', description: 'real contract template docx', key: 'template' },
|
|
487
500
|
{ flag: '--data <file>', description: 'data JSON path', key: 'data' },
|
|
@@ -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',
|
|
@@ -488,6 +616,22 @@ const quoteContracts = [
|
|
|
488
616
|
includeZero: { type: 'boolean' },
|
|
489
617
|
}, ['path']),
|
|
490
618
|
},
|
|
619
|
+
{
|
|
620
|
+
name: 'contract.quote.extract',
|
|
621
|
+
risk: 'read-with-upload',
|
|
622
|
+
fixed: { local: true, kind: 'docx-extract' },
|
|
623
|
+
inputSchema: readSchema({
|
|
624
|
+
path: { type: 'string', minLength: 1 },
|
|
625
|
+
}, ['path']),
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
name: 'contract.quote.normalize',
|
|
629
|
+
risk: 'read',
|
|
630
|
+
fixed: { local: true, kind: 'quote-normalize' },
|
|
631
|
+
inputSchema: readSchema({
|
|
632
|
+
data: { type: 'string', minLength: 1 },
|
|
633
|
+
}, ['data']),
|
|
634
|
+
},
|
|
491
635
|
{
|
|
492
636
|
name: 'contract.quote.fill',
|
|
493
637
|
risk: 'read-with-upload',
|
|
@@ -576,6 +720,29 @@ export const contractOperations = [
|
|
|
576
720
|
fixed: { method: 'GET', path: '/api/ebd/contract/tplinfo/getById' },
|
|
577
721
|
inputSchema: readSchema({ id: idString }, ['id']),
|
|
578
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
|
+
},
|
|
579
746
|
{
|
|
580
747
|
name: 'contract.clause.tree',
|
|
581
748
|
risk: 'read',
|
|
@@ -1181,6 +1348,43 @@ export const contractOperations = [
|
|
|
1181
1348
|
path: { type: 'string', minLength: 1, maxLength: 1000 },
|
|
1182
1349
|
}, ['flow', 'path']),
|
|
1183
1350
|
},
|
|
1351
|
+
{
|
|
1352
|
+
name: 'contract.flow.save-recognize-record',
|
|
1353
|
+
risk: 'write',
|
|
1354
|
+
auth: AUTH,
|
|
1355
|
+
fixed: {
|
|
1356
|
+
method: 'POST',
|
|
1357
|
+
path: '/api/ai/application/smartfill/data/saveRecognizeRecord',
|
|
1358
|
+
note: '要素抽取结果先存成识别记录,返回的 aiExtraId 再随 customParams 传给流程组件',
|
|
1359
|
+
},
|
|
1360
|
+
inputSchema: readSchema({
|
|
1361
|
+
flow: {
|
|
1362
|
+
type: 'string',
|
|
1363
|
+
maxLength: 64,
|
|
1364
|
+
description: '可选流程预设(契约锁 / 新客户 / 老客户增值 / 常规二次销售);也可传自定义流程名,此时必须同时给 workflowId',
|
|
1365
|
+
},
|
|
1366
|
+
recognizeResult: {
|
|
1367
|
+
description: '识别结果;传 JSON 对象或其字符串均可,CLI 统一序列化为字符串',
|
|
1368
|
+
anyOf: [{ type: 'string' }, { type: 'object' }],
|
|
1369
|
+
},
|
|
1370
|
+
attachmentIds: { type: 'string', maxLength: 4000, description: '本次全部附件 ID,英文逗号分隔' },
|
|
1371
|
+
attachmentFieldId: {
|
|
1372
|
+
type: 'string',
|
|
1373
|
+
pattern: '^[1-9]\\d*$',
|
|
1374
|
+
description: '合同文件字段 ID(取自该流程表单字段定义);传入后该字段与文件 ID 会一起写进 customParams,由流程组件回填附件',
|
|
1375
|
+
},
|
|
1376
|
+
attachmentFileId: {
|
|
1377
|
+
type: 'string',
|
|
1378
|
+
maxLength: 64,
|
|
1379
|
+
description: '合同文件的 fileId;不传时取 attachmentIds 的首个文件',
|
|
1380
|
+
},
|
|
1381
|
+
workflowId: {
|
|
1382
|
+
type: 'string',
|
|
1383
|
+
pattern: '^[1-9]\\d*$',
|
|
1384
|
+
description: '流程模板 ID;不传时取 flow 的预设 workflowId。与 flow 至少传一个',
|
|
1385
|
+
},
|
|
1386
|
+
}, ['recognizeResult']),
|
|
1387
|
+
},
|
|
1184
1388
|
{
|
|
1185
1389
|
name: 'contract.recommend.doc',
|
|
1186
1390
|
risk: 'read',
|