weaver-work-cli 0.1.47 → 0.1.49
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/dist/chunks/{archive-oa-BBDP7AKJ.js → archive-oa-57R2FYHV.js} +565 -17
- package/dist/chunks/{attachment-content-MCXQBD6N.js → attachment-content-MU2LPI5P.js} +3 -3
- package/dist/chunks/{chunk-J2VEB5K3.js → chunk-2BQESR2U.js} +2 -2
- package/dist/chunks/{chunk-727FH2NI.js → chunk-2IGZUMNG.js} +15 -2
- package/dist/chunks/{chunk-IP4CWQCF.js → chunk-3NV2ETZR.js} +8 -8
- package/dist/chunks/{chunk-OXHHJWNC.js → chunk-3X7VOSBA.js} +1 -1
- package/dist/chunks/chunk-5QYE52LG.js +223 -0
- package/dist/chunks/{chunk-IRMIEDXN.js → chunk-6GWU63YF.js} +1 -1
- package/dist/chunks/{chunk-3YV7PKRL.js → chunk-6QYNE6HE.js} +12 -212
- package/dist/chunks/{chunk-Q4OYAQYH.js → chunk-72MI3MBX.js} +4 -0
- package/dist/chunks/{chunk-AD46OMQK.js → chunk-BRRW7CWA.js} +121 -46
- package/dist/chunks/{chunk-76H3IKH6.js → chunk-D2QRZUW4.js} +221 -37
- package/dist/chunks/{chunk-GSZTA43P.js → chunk-EJVA5ZVB.js} +2 -2
- package/dist/chunks/{chunk-4RWS2YYL.js → chunk-GEOMANP7.js} +3 -3
- package/dist/chunks/{chunk-LIEQJIGM.js → chunk-GR76ZDDX.js} +0 -3
- package/dist/chunks/{chunk-O6CMPO65.js → chunk-IW7A2IQY.js} +16 -146
- package/dist/chunks/chunk-JEQHNNSS.js +158 -0
- package/dist/chunks/{chunk-6V5ZPKHV.js → chunk-K3BT54CU.js} +4 -4
- package/dist/chunks/{chunk-6AXKWFKG.js → chunk-KV5SOWMS.js} +4 -4
- package/dist/chunks/{chunk-JB34OE7R.js → chunk-NBEWUR7L.js} +1 -1
- package/dist/chunks/{chunk-PSOMGA3U.js → chunk-ZKEUGS2U.js} +36 -7
- package/dist/chunks/{conflict-H7EHQXYY.js → conflict-6347A7YK.js} +2 -2
- package/dist/chunks/{contract-3QLAGYQL.js → contract-N6P2HIIE.js} +425 -187
- package/dist/chunks/{create-flow-VRVJEOBX.js → create-flow-7WG7LVX5.js} +6 -6
- package/dist/chunks/data-QO7QWOIV.js +2525 -0
- package/dist/chunks/{ehr-SH2LM3NK.js → ehr-XI4BIVR2.js} +16 -5
- package/dist/chunks/{employee-NOHNXC46.js → employee-DR5Y64TI.js} +2 -1
- package/dist/chunks/{env-66FPSJDV.js → env-LHRKSLG6.js} +2 -2
- package/dist/chunks/{factory-UH2TZBVA.js → factory-2H7Z4RWJ.js} +1 -1
- package/dist/chunks/{group-chat-CAKMMV7K.js → group-chat-EW6PNDDT.js} +3 -3
- package/dist/chunks/{hrm-UNKCCCGP.js → hrm-YGIR3HGF.js} +4 -2
- package/dist/chunks/{im-NJB7ZYMH.js → im-3RCNL5GT.js} +107 -1
- package/dist/chunks/{invoice-UEAHSYAE.js → invoice-FXWH5GPO.js} +2 -71
- package/dist/chunks/{lazy-dispatch-25XGTXLM.js → lazy-dispatch-XSAHDK6Z.js} +3 -3
- package/dist/chunks/{meeting-VTBFW4HI.js → meeting-N2FQBHXI.js} +10 -10
- package/dist/chunks/org-NFE7X7FK.js +12 -0
- package/dist/chunks/{reception-5WITA44R.js → reception-MYOKJULO.js} +905 -116
- package/dist/chunks/{recruit-stage-CAKZTUA7.js → recruit-stage-FKWS5UQF.js} +118 -29
- package/dist/chunks/{registry-VWXWPVAG.js → registry-3UGIWH53.js} +4 -2
- package/dist/chunks/{registry-AQVGHUM6.js → registry-7VZ6YJUF.js} +2 -2
- package/dist/chunks/{registry-PVUZQDDQ.js → registry-BUTEDK3C.js} +1 -1
- package/dist/chunks/{registry-JVQBLFQ5.js → registry-CKUVBS53.js} +10 -10
- package/dist/chunks/{room-recommend-5U55FMXZ.js → room-recommend-MBCYENQ2.js} +4 -4
- package/dist/chunks/{schedule-IDETODCA.js → schedule-5IFMCXME.js} +4 -4
- package/dist/chunks/{workflow-BSYT5TGL.js → workflow-2TRU2ZSP.js} +5 -5
- package/dist/core/refs.js +19 -2
- package/dist/index.js +20 -15
- package/dist/shortcuts/archive-oa/constants.js +42 -0
- package/dist/shortcuts/archive-oa/host.js +2 -2
- package/dist/shortcuts/archive-oa/index.js +38 -0
- package/dist/shortcuts/archive-oa/operations/borrow-car.js +117 -3
- package/dist/shortcuts/archive-oa/operations/contract-modules.js +57 -0
- package/dist/shortcuts/archive-oa/operations/contract.js +23 -8
- package/dist/shortcuts/archive-oa/operations/my-borrow-contract.js +271 -0
- package/dist/shortcuts/archive-oa/operations/registry.js +9 -4
- package/dist/shortcuts/archive-oa/operations/shared.js +41 -5
- package/dist/shortcuts/contract/index.js +9 -1
- package/dist/shortcuts/contract/manifest.js +14 -2
- package/dist/shortcuts/contract/operations/card.js +231 -0
- package/dist/shortcuts/contract/operations/registry.js +2 -0
- package/dist/shortcuts/contract/operations/review.js +16 -5
- package/dist/shortcuts/contract/operations/summary.js +25 -17
- package/dist/shortcuts/data/errors.js +64 -0
- package/dist/shortcuts/data/host.js +140 -0
- package/dist/shortcuts/data/index.js +429 -0
- package/dist/shortcuts/data/manifest.js +133 -0
- package/dist/shortcuts/data/operations/attend.js +62 -0
- package/dist/shortcuts/data/operations/conf.js +384 -0
- package/dist/shortcuts/data/operations/ds.js +686 -0
- package/dist/shortcuts/data/operations/field.js +68 -0
- package/dist/shortcuts/data/operations/index.js +65 -0
- package/dist/shortcuts/data/operations/module.js +383 -0
- package/dist/shortcuts/data/operations/noun.js +102 -0
- package/dist/shortcuts/data/operations/query.js +85 -0
- package/dist/shortcuts/data/operations/scene.js +235 -0
- package/dist/shortcuts/data/operations/shared.js +279 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +22 -5
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +28 -12
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +21 -13
- package/dist/shortcuts/ehr/recruit-stage/shared.js +90 -8
- package/dist/shortcuts/im/index.js +128 -0
- package/dist/shortcuts/im/operations/session.js +6 -0
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/host.js +0 -3
- package/dist/shortcuts/invoice/manifest.js +0 -1
- package/dist/shortcuts/invoice/operations/reim-subsidy.js +1 -71
- package/dist/shortcuts/meeting/operations/eb/conflict.js +26 -3
- package/dist/shortcuts/meeting/operations/eb/continuation-alias.js +63 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +71 -12
- package/dist/shortcuts/meeting/operations/eb/factory.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +200 -0
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/reception/constants.js +11 -0
- package/dist/shortcuts/reception/host.js +33 -1
- package/dist/shortcuts/reception/index.js +22 -1
- package/dist/shortcuts/reception/manifest.js +55 -2
- package/dist/shortcuts/reception/operations/ask.js +37 -1
- package/dist/shortcuts/reception/operations/compose.js +124 -3
- package/dist/shortcuts/reception/operations/doc.js +59 -0
- package/dist/shortcuts/reception/operations/docrender.js +25 -1
- package/dist/shortcuts/reception/operations/leads.js +245 -0
- package/dist/shortcuts/reception/operations/markdown.js +22 -0
- package/dist/shortcuts/reception/operations/panels.js +84 -21
- package/dist/shortcuts/reception/operations/registry.js +2 -0
- package/dist/shortcuts/reception/operations/render.js +76 -3
- package/dist/shortcuts/reception/operations/restaurant-rooms.js +118 -0
- package/dist/shortcuts/reception/operations/restaurant.js +264 -0
- package/dist/shortcuts/reception/operations/restaurantrooms.js +42 -0
- package/dist/shortcuts/reception/operations/schedule.js +7 -1
- package/dist/shortcuts/reception/upload.js +22 -6
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +28 -12
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -13
- package/dist/shortcuts/recruit-stage/shared.js +99 -14
- package/docs/SKILL.md +1 -0
- package/docs/_catalog.md +3 -0
- package/docs/archive-oa.md +4 -2
- package/docs/data.md +149 -0
- package/docs/reception.md +59 -5
- package/package.json +1 -1
- package/scripts/check-skill-sync.mjs +188 -0
- package/scripts/package-skill.mjs +17 -3
- package/skill-template/business-info.json +23 -0
- package/skill-template/domains/archive-oa.md +2 -1
- package/skill-template/domains/data.md +15 -0
- package/skill-template/master-skill-template.md +1 -0
- package/skill-template/skill-template.md +1 -0
- package/skills/weaver-e10-archive-oa/SKILL.md +35 -7
- package/skills/weaver-e10-archive-oa/references/borrow-car.md +32 -7
- package/skills/weaver-e10-archive-oa/references/contract-search.md +105 -4
- package/skills/weaver-e10-archive-oa/references/disabled-capabilities.md +2 -2
- package/skills/weaver-e10-archive-oa/references/my-borrow-contract.md +97 -0
- package/skills/weaver-e10-archive-oa/references/my-borrow.md +6 -1
- package/skills/weaver-e10-archive-oa/references/qys-contract-search.md +48 -2
- package/skills/weaver-e10-calendar/SKILL.md +1 -1
- package/skills/weaver-e10-calendar/references/calendar-query.md +1 -1
- package/skills/weaver-e10-calendar/references/calendar-write.md +9 -9
- package/skills/weaver-e10-cowork/SKILL.md +9 -6
- package/skills/weaver-e10-data/SKILL.md +118 -0
- package/skills/weaver-e10-data/references/config-center.md +90 -0
- package/skills/weaver-e10-data/references/datasource.md +136 -0
- package/skills/weaver-e10-data/references/scene-and-misc.md +82 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +10 -7
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +17 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +263 -35
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +8 -5
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +175 -22
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +124 -19
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +6 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +7 -7
- package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +279 -0
- package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +450 -0
- package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +358 -0
- package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +505 -0
- package/skills/weaver-e10-jucailin/SKILL.md +7 -4
- package/skills/weaver-e10-jucailin/references/recruit-create.md +3 -2
- package/skills/weaver-e10-jucailin/references/recruit-read.md +2 -1
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +3 -3
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +30 -2
- package/skills/weaver-e10-mail/SKILL.md +17 -4
- package/skills/weaver-e10-meeting/SKILL.md +129 -412
- package/skills/weaver-e10-meeting/references/create-flow.md +188 -0
- package/skills/weaver-e10-meeting/references/create-guardrails.md +234 -0
- package/skills/weaver-e10-meeting/references/pitfalls.md +40 -0
- package/skills/weaver-e10-reception-flow/SKILL.md +77 -19
- package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +628 -26
- package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +96 -26
- package/skills/weaver-e10-reception-flow/references/guide.md +4 -3
- package/skills/weaver-e10-reception-flow/scripts/render.py +84 -3
- package/skills/weaver-e10-recruit-stage/SKILL.md +45 -12
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +78 -8
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +5 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +16 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +169 -0
- package/skills/weaver-e10-shijingran/SKILL.md +6 -2
- package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
- package/skills/weaver-e10-workflow/SKILL.md +1 -1
- package/skills/weaver-e10-yepiaotong/SKILL.md +8 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +1 -0
- package/skills/weaver-e10-yimiaoban/SKILL.md +2 -1
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +32 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +3 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
- package/dist/chunks/{ebuilder-form-GWDTKEI2.js → ebuilder-form-CBYI6CQ6.js} +3 -3
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-README.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-SKILL.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-openai.yaml +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-position-templates.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +0 -0
- /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# 数据源取数(`data ds`)
|
|
2
|
+
|
|
3
|
+
数据源族负责「找到表 → 看清字段 → 取数」。全部走 `LOGIC` 数据源(`--source-type ETEAMS` 是另一套内置表,口径不同,除非明确要求不要混用)。
|
|
4
|
+
|
|
5
|
+
## 命令入口
|
|
6
|
+
|
|
7
|
+
| 命令 | operation | 用途 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `data ds groups` | `data.ds.groups` | 内置 58 个分组的清单(只用于 `ds find` 的默认候选集) |
|
|
10
|
+
| `data ds find --name <关键词>` | `data.ds.find` | 跨分组按表名找表 + 通道建议 |
|
|
11
|
+
| `data ds describe --group --table` | `data.ds.describe` | 一次并发取字段元数据 + 词库 + 关联字段预判 |
|
|
12
|
+
| `data ds tables --group` | `data.ds.tables` | 列分组下的数据集清单 |
|
|
13
|
+
| `data ds fields --group --table` | `data.ds.fields` | 字段元数据(`/api/ebuilder/common/ds/fields`) |
|
|
14
|
+
| `data ds fields-dsl --group --table` | `data.ds.fields-dsl` | DSL 口径字段(含 `dataKey` / `formTableId`) |
|
|
15
|
+
| `data ds list --group --table --fields` | `data.ds.list` | 明细取数(`getListDatas`) |
|
|
16
|
+
| `data ds chart --group --table --group-by --stat` | `data.ds.chart` | 分组聚合(`getChartDatas`) |
|
|
17
|
+
| `data ds stat --group --table --stat` | `data.ds.stat` | 统计字段(`getStatDatas`) |
|
|
18
|
+
| `data ds count --group --table` | `data.ds.count` | 计数(`getCountData`) |
|
|
19
|
+
|
|
20
|
+
## `ds find`:抓窗口 + 本地过滤
|
|
21
|
+
|
|
22
|
+
**`/api/dw/newetl/chatBi/ds/listByPage` 当前忽略 `name` 参数。** 所以 `ds find` 的真实语义是:
|
|
23
|
+
|
|
24
|
+
1. 按 `--size`(≤2000,默认 100)× `--pages`(≤50,默认 1)抓取候选分组的前 N 行;
|
|
25
|
+
2. 在本地按表名做关键词过滤(`--loose` 关闭过滤,直接采用后端返回);
|
|
26
|
+
3. 未命中且 `pages × size ≤ 2000` 时,若当前只扫了核心分组,**自动升级全扫**(`--no-escalate` 关闭)。
|
|
27
|
+
|
|
28
|
+
因此 **`未命中 ≠ 该表不存在`**,只代表没落在抓取窗口内。输出的 `nameFilter.note` 会写清本次比对了多少行、窗口多大;要扩大范围就调大 `--size` / `--pages`,或显式 `--groups a,b` / `--all-groups`。
|
|
29
|
+
|
|
30
|
+
- 默认扫描集上限由 `--max-groups`(默认 6)控制,`--groups` 显式指定时以显式为准。
|
|
31
|
+
- EB 分组(`weaver-ebuilder-form-service`)按应用分域,需要限定应用时传 `--app-id <id>`;没传时输出会在 `scopeNote` 里提示。
|
|
32
|
+
- `--concurrency`(默认 10)控制进程内并发;单个分组失败不中断整体,失败明细在 `errors`。
|
|
33
|
+
- 输出顶层 `routeHint.channel` 给出该走哪条通道,**照它走**:
|
|
34
|
+
|
|
35
|
+
| `routeHint.channel` | 含义 |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `WORKFLOW` | 流程类问题走 WORKFLOW 模块接口,不用 DSL、不走数据源 |
|
|
38
|
+
| `DS_EB` | EB 建模表单,走数据源(不做权限前置校验) |
|
|
39
|
+
| `DS_FORM` | 业务表单 / 流程业务表单,走数据源 |
|
|
40
|
+
| `PROJECT/PMO` | 项目类:指标走 DSL,明细/下拉走 PROJECT 模块 |
|
|
41
|
+
| `EHR` / `BLOG_DAILY` / `DOCUMENT` / `CRM` | 对应模块的配置通道(`data module call`) |
|
|
42
|
+
| `ESB` | 动作流,无标准问数通道,需人工确认 |
|
|
43
|
+
| `DS` | 通用数据源通道 |
|
|
44
|
+
|
|
45
|
+
## `ds describe`:先看清再取数
|
|
46
|
+
|
|
47
|
+
一次并发取回字段元数据 + 词库,并给出:
|
|
48
|
+
|
|
49
|
+
- 字段树(含明细表子表节点 `subTableName`);
|
|
50
|
+
- 关联字段预判(可用来判断两个数据集能不能对上);
|
|
51
|
+
- 通道提示 `channelHint`。
|
|
52
|
+
|
|
53
|
+
`--skill <skillKey>` 指定词库来源(默认 `data-source-query`);`--require` 让任何失败分支直接以非 0 退出(默认是把失败挂在输出里继续)。
|
|
54
|
+
|
|
55
|
+
**字段名、`tableId`、聚合口径都从 describe 的返回里取,不要凭表名猜。**
|
|
56
|
+
|
|
57
|
+
## 取数四件套
|
|
58
|
+
|
|
59
|
+
四个命令共用一份 DTO 骨架:`groupId` + `tableId` + 分页 + `dynamicParams`(由登录态自动填充,不需要传)。
|
|
60
|
+
|
|
61
|
+
### 明细:`ds list`
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
weaver-work-cli --json data ds list --group <groupId> --table <tableId> --fields "name,create_time,status" --page 1 --size 20
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`--fields` 支持逗号分隔或 `@fields.txt`。默认 `--size 20`。
|
|
68
|
+
|
|
69
|
+
### 聚合并按维度分组:`ds chart`
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
weaver-work-cli --json data ds chart --group <groupId> --table <tableId> --group-by "department" --stat '[{"fieldId":"amount","aggregator":"SUM"}]'
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 只算统计值不分组:`ds stat`
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
weaver-work-cli --json data ds stat --group <groupId> --table <tableId> --stat '[{"fieldId":"amount","aggregator":"SUM"}]'
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 只要条数:`ds count`
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
weaver-work-cli --json data ds count --group <groupId> --table <tableId> --where '[{"fieldId":"status","conditionValue":"1","compareType":"eq"}]'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**要条数永远用 `ds count`**,不要用 `ds list` 翻页数。
|
|
88
|
+
|
|
89
|
+
## 条件树(`--where`)
|
|
90
|
+
|
|
91
|
+
两种写法,可内联 JSON 或用 `@file.json`:
|
|
92
|
+
|
|
93
|
+
**写法一:条件数组 = AND 根**
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
[
|
|
97
|
+
{ "fieldId": "status", "conditionValue": "1", "compareType": "eq" },
|
|
98
|
+
{ "fieldId": "amount", "conditionValue": "1000", "compareType": "gt" }
|
|
99
|
+
]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**写法二:带 OR 的条件组**
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
[
|
|
106
|
+
{ "fieldId": "status", "conditionValue": "1" },
|
|
107
|
+
{ "relationship": "0", "conditionList": [
|
|
108
|
+
{ "fieldId": "dept", "conditionValue": "10" },
|
|
109
|
+
{ "fieldId": "dept", "conditionValue": "11" }
|
|
110
|
+
] }
|
|
111
|
+
]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
`relationship`:`"1"` = AND(默认),`"0"` = OR。内嵌组的子节点会自动编号并回填 `parentNode`。
|
|
115
|
+
|
|
116
|
+
**叶子必须有 `fieldId`(或 `conditionId`)**,缺了直接抛 `where_invalid`(退出码 8),不会被静默忽略——这是刻意设计的,避免"看起来过滤了其实没过滤"。
|
|
117
|
+
|
|
118
|
+
## `--stat` 与 `--order`
|
|
119
|
+
|
|
120
|
+
- `--stat` 的聚合键是 **`aggregator`**,取值是大写枚举:`SUM` / `COUNT` / `MAX` / `MIN` / `AVG`。缺省 `SUM`。`fieldAlias` 可选。
|
|
121
|
+
- `--order` 形如 `"create_time desc"`,逗号分隔多字段,缺省升序。
|
|
122
|
+
|
|
123
|
+
## 输出判读
|
|
124
|
+
|
|
125
|
+
- 明细在 `.data.records` 或 `.data.data`(随接口而异,**以实际返回为准,不要凭记忆写 jq 路径**,先 `--json` 看一眼结构)。
|
|
126
|
+
- 平台范围提示会提升到输出顶层:`tipTimeout=true` = 数据范围过大、平台拒绝查询(**不是 0 行**);`tipTimelimit=true` = 结果已返回但范围被收窄(**不能当全区间结论**)。`*Msg` 是平台原文,直接转述。
|
|
127
|
+
|
|
128
|
+
## 常见错误
|
|
129
|
+
|
|
130
|
+
| `error.subtype` | 原因 | 处置 |
|
|
131
|
+
| --- | --- | --- |
|
|
132
|
+
| `missing_argument` | 缺 `--group` / `--table` / `--fields` / `--stat` 等必填 | 按提示补参 |
|
|
133
|
+
| `where_invalid` | 条件树缺 `fieldId`、或既不是数组也不是对象 | 按上面两种写法改 |
|
|
134
|
+
| `json_invalid` | `--where` / `--stat` 不是合法 JSON | 修 JSON,或改用 `@file` |
|
|
135
|
+
| `session_expired` | 登录态失效 | 按共享认证流程处理 |
|
|
136
|
+
| `http_error` | 接口 4xx/5xx | 读 `error.details.body`,多为 `groupId`/`tableId` 不对 |
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# 场景定位 / 词库 / 字段翻译 / 考勤 / 裸 DSL
|
|
2
|
+
|
|
3
|
+
## `scene`:场景元数据定位
|
|
4
|
+
|
|
5
|
+
`scene` 只做**元数据定位**(有哪些分组、每组里有哪些接口/数据源),**不取业务数据**。取数仍走 `module call` / `ds` / `hrm`。
|
|
6
|
+
|
|
7
|
+
| 命令 | 用途 |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `data scene groups` | 场景分组骨架 |
|
|
10
|
+
| `data scene items --group <groupId>` | 组内条目(接口 / 数据源,含取数通道参数) |
|
|
11
|
+
| `data scene search --keywords "词1,词2"` | 关键词候选召回(**首选用这个**) |
|
|
12
|
+
|
|
13
|
+
### `scene search` 的判定顺序
|
|
14
|
+
|
|
15
|
+
1. **优先把关键词交给后端**(`keyword` 参数)过滤;
|
|
16
|
+
2. 后端未命中时,`--server-filter auto`(默认)**回退本地打分**(分组名 ×3 + 分组描述、条目名 ×3 + 条目描述);
|
|
17
|
+
3. `--server-filter on` 不做回退(无命中就是无命中);`off` 直接本地打分。
|
|
18
|
+
|
|
19
|
+
实际走了哪条会打到 **stderr**(`# ... 过滤方式 后端 keyword / 本地打分`),不进 JSON。**遇到"召回为空"先看 stderr**,能区分"后端没这能力"和"关键词不对"。
|
|
20
|
+
|
|
21
|
+
- `--client`:`agent`(默认)/ `all` / `connector`。
|
|
22
|
+
- `--max-groups`(默认 3)/ `--max-items`(默认 12)控制候选规模。
|
|
23
|
+
- `--scope-group-id` 限定单个分组,用于"就在这个分组里找"。
|
|
24
|
+
- 输出顶层**一律是数组**(分组数组,元素内 `datasets`),默认与 `--json` 的差异只在字段裁剪,顶层形状不翻转。
|
|
25
|
+
- `groupId` / 数据集 `id` 都是 19 位雪花号,**按字符串传**。
|
|
26
|
+
|
|
27
|
+
### 常见业务错误
|
|
28
|
+
|
|
29
|
+
| 现象 | 含义 |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `code=401`「暂无权限!」 | 该接口在当前环境未开放,或账号无权限 |
|
|
32
|
+
| `code=-1`「token为空或失效」 | 登录态失效,按共享认证流程处理 |
|
|
33
|
+
|
|
34
|
+
## `noun`:词库(名词解释)
|
|
35
|
+
|
|
36
|
+
| 命令 | 用途 |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `data noun list --skill <skillKey>` | 按 skill 取词库;可加 `--source-type` / `--source-group` / `--source-table` 收窄 |
|
|
39
|
+
| `data noun scope --ids <id1,id2>` | 按数据集生效范围批量取(`ids` 直接吃 `scene items` 里的数据集 id) |
|
|
40
|
+
|
|
41
|
+
词库给的是**业务名词口径**(如"在职人数"怎么算、"金额"含不含税)。**口径类问题先查词库再取数**,比猜字段可靠。
|
|
42
|
+
|
|
43
|
+
## `field`:字段值翻译
|
|
44
|
+
|
|
45
|
+
两件事,别混:
|
|
46
|
+
|
|
47
|
+
| 命令 | 管什么 | 走什么 |
|
|
48
|
+
| --- | --- | --- |
|
|
49
|
+
| `data field name2id` | 名称 → 字段值 **id** | 浏览按钮类字段(RelateBrowser / Ebuilder / Workflow),靠 `config.browserParams` |
|
|
50
|
+
| `data field options` | **选项值字典**(id↔name) | Select / Radio / Checkbox |
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
weaver-work-cli --json data field options --group <groupId> --obj-id <tableId> --field-name <字段name>
|
|
54
|
+
weaver-work-cli --json data field name2id --module hrm --type <browserType> --name "云桥测试"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`--field-name` / `--obj-id` / `--group` 的真实值从 `ds describe` / `ds fields` 的返回里取。
|
|
58
|
+
|
|
59
|
+
**`id2name` 已停用**(`schema` 的 `withheldOperations` 里有声明):选项值显示映射一律走 `field options`。
|
|
60
|
+
|
|
61
|
+
## `attend`:考勤假期余额
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
weaver-work-cli --json data attend statis
|
|
65
|
+
weaver-work-cli --json data attend statis --user <人员ID> --begin 2026-01-01 --end 2026-12-31
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
- `--user` 缺省当前登录用户;`--begin` / `--end` 缺省当月。
|
|
69
|
+
- 返回 `data.vacationBalanceList[]`,每条形如 `{ id, title, data:[{name, value, key}] }`,`key` ∈ `lastRemaining`(历年可请)/ `remaining`(今年可请)/ `total`(总计可请)。
|
|
70
|
+
- **按 `key` 取值,不要按下标**:条目数因假种而异(实测年假只有一条 `key=total`,带薪病假 / 带薪事假各三条)。
|
|
71
|
+
- 覆盖年假 / 带薪病假 / 带薪事假三种。**其余假种(婚假 / 产假 / 育儿假 …)不在本命令范围**,走 `POST_EHR_GET_REPORT_LIST` 那条配置(`data module call`)。
|
|
72
|
+
- 无查询权限时退出码 4(`permission_denied`),如实告知,不重试。
|
|
73
|
+
|
|
74
|
+
## `query`:裸 DSL
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
weaver-work-cli --json data query --conn <connId> --model <model> --schema <schema> --dsl @dsl.json
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`POST /api/dw/dsl/executeQueryDsl` 的直接入口,`ds list/chart/stat/count` 的底层就是它。只有在**已经明确需要手写 DSL**(比如指标口径要自定义表达式)时才用;常规取数走上层的 `ds` 四件套。
|
|
81
|
+
|
|
82
|
+
四个 URL query 参数 `dimension` / `confGroup` / `username` / `startDate` **恒定发送**——缺键会失败,空值是合法的(表示"问句里没有这个人 / 没有日期")。`--debug true` 回显 SQL(排查口径问题很有用)。
|
|
@@ -75,7 +75,7 @@ weaver-work-cli --json contract run contract.flow.page --input 'D:\work\tmp\args
|
|
|
75
75
|
|
|
76
76
|
## 什么时候用
|
|
77
77
|
|
|
78
|
-
-
|
|
78
|
+
- **合同预审 / 风险审查**:审查合同、合同预审、AI 审查、上传合同、风险条款、导出审查报告
|
|
79
79
|
- **文档比对**:比对合同、比对两个版本、合同差异、版本对比、导出比对报告
|
|
80
80
|
- **新老客户判定**:最终用户、客户主数据、客户全称查询、新客户还是老客户、老客户二次销售、老客户增值
|
|
81
81
|
- **发起审批**:发起合同、带文件打开流程、保存合同表单、提交审批、催办、审批进度、审批意见
|
|
@@ -108,7 +108,7 @@ S3 只能在这六个出口里选,**不要**把出口之外的动作(工作
|
|
|
108
108
|
| # | 出口 | 用户想做什么 | 主链路 | 细节 |
|
|
109
109
|
|---|---|---|---|---|
|
|
110
110
|
| **E1** | 发起审批 | 把这份合同走审批(**仅四类**:契约锁 / 新客户 / 常规二次销售 / 老客户增值) | `contract.flow.page`(只开页)或 `contract.flow.launch`(带文件回填);或 `workflow.form.info` → `field.options` → `request.create/save/submit` | [`contract-flow-launch.md`](references/contract-flow-launch.md) · [`contract-request-write.md`](references/contract-request-write.md) |
|
|
111
|
-
| **E2** |
|
|
111
|
+
| **E2** | 合同预审(风险审查) | 出风险条款与修改建议 | `contract.review.upload` → 打开页 → `contract.review.export` | [`contract-ai-review.md`](references/contract-ai-review.md) |
|
|
112
112
|
| **E3** | 条款/表单改写 | 改条款、改表单并写回 | `clause.search` / `clause.reference.get` / `workflow.form.info` → diff → 写回 → 回读 | [`contract-clause-reference-save.md`](references/contract-clause-reference-save.md) |
|
|
113
113
|
| **E4** | 抽要素 | 抽履约/风险/专项三项,用于预填核对 | `contract.review.export`(结构化记录)→ 归一化 | [`contract-object-detect.md`](references/contract-object-detect.md) |
|
|
114
114
|
| **E5** | 文本比对 | 比两版差异 | `compare.upload/search/versions` → `compare.page` → `compare.diff` | [`contract-doc-compare.md`](references/contract-doc-compare.md) |
|
|
@@ -134,7 +134,7 @@ S3 只能在这六个出口里选,**不要**把出口之外的动作(工作
|
|
|
134
134
|
| 业绩核算与台账 | [`contract-performance-query.md`](references/contract-performance-query.md) |
|
|
135
135
|
| 报价单转合同 | [`contract-quote-to-contract.md`](references/contract-quote-to-contract.md) |
|
|
136
136
|
| 合同智能助手维护 | [`contract-ai-assistant.md`](references/contract-ai-assistant.md) |
|
|
137
|
-
| **给选项 / 推荐时必出的行为卡片**(`<browsertool>` + `customParams.
|
|
137
|
+
| **给选项 / 推荐时必出的行为卡片**(`<browsertool>` + 形态 B `xiaoeCustomPage`,`customParams.html` 单串内嵌 script,每个动作一张可点卡片) | [`contract-action-card.md`](references/contract-action-card.md) · **可运行骨架** [`contract-action-card-template.html`](references/contract-action-card-template.html) |
|
|
138
138
|
| **点击后走哪条路(`e10Sdk` / `artifact` / `sendQuestion`)的规则边界**——按「内容是否已在手」判定,**不按动作名称**;§5.2 含回归用例 | [`contract-action-card.md`](references/contract-action-card.md) §5.2 |
|
|
139
139
|
| **全量命令清单 + 每条链的处理顺序** | [`contract-command-index.md`](references/contract-command-index.md) |
|
|
140
140
|
| 调用方式 / 子命令 / 退出码 | [`contract-agent-entry.md`](references/contract-agent-entry.md) |
|
|
@@ -151,7 +151,10 @@ S3 只能在这六个出口里选,**不要**把出口之外的动作(工作
|
|
|
151
151
|
| `contract-object-detect.md` | 大(≈28 KB) | **只读需要的段**:判四类 → D1/D2/D3/D4 四段;查客户字段 → §3.0。**不要**读 §5 冲突点、§6 待确认、§7 实测记录(除非用户问规则边界) |
|
|
152
152
|
| `orchestration.md` | 大(≈21 KB) | 首屏分流读 §4.5;选项排序读 §4.2;收口读 §6 |
|
|
153
153
|
| `contract-execution-rules.md` | 大(≈11 KB) | 按需读对应小节,不做全文加载 |
|
|
154
|
-
| `contract-action-card.md` |
|
|
154
|
+
| `contract-action-card.md` | **大(≈46 KB)** | 出卡片时**只读 §0.1 + §1 + §5.3**(摘要传递、条数、发起流程回填、卡片骨架)。**§0.1 与 §5.3 必读**;§0、§2~§4 速览;§6 完整示例、§7 坑位表可跳过 |
|
|
155
|
+
| `contract-field-extract-other-flows.md` | **大(≈36 KB)** | **首屏一律不读**。只有「真的要回填表单字段」时才读 §0 + 目标流程的 §X.1 对应表:先 `Select-String` 定位行号,再按范围取。首屏判类型/出摘要/出卡片**都用不到它** |
|
|
156
|
+
| `contract-field-extract-new-customer.md` | **大(≈19 KB)** | 同上,仅新客户流程真要回填时读 §1/§2 |
|
|
157
|
+
| `contract-ai-review.md` | 中(≈19 KB) | 仅在用户点「合同预审」后才读 |
|
|
155
158
|
| 其余 `contract-*.md` | 小(3~8 KB) | 可整篇读 |
|
|
156
159
|
|
|
157
160
|
**执行顺序**:先用 `Select-String` 定位小节行号 → 用范围读取取该段 → 需要时再扩邻段。禁止"先全文读完再找"。
|
|
@@ -167,9 +170,9 @@ S3 只能在这六个出口里选,**不要**把出口之外的动作(工作
|
|
|
167
170
|
|
|
168
171
|
**每轮工具往返 ≈ 5~10 s,比任何单个 CLI 命令都贵**(实测 `review.upload` 仅 0.97 s)。优化优先合并轮次,不是压缩单命令。
|
|
169
172
|
|
|
170
|
-
**首屏标准 3 轮**:① `terminal`(写参数 + `review.upload` + `flow launch` 合一条命令)+
|
|
173
|
+
**首屏标准 3 轮**:① `terminal`(写参数 + `review.upload` + `flow launch` 合一条命令)+ **本地抽取正文**并行 → ②(仅本地抽不出可读文本时)`parse_document` → ③ 直接输出 `<browsertool>`(三张横向动作卡 + 隐藏摘要容器)→ 最终回复。**不落盘、不 `present_files`、摘要不默认显示**(2026-11-04 用户指定)。**摘要 HTML 只存在于 `<browsertool>` 的 `customParams.html` 里,绝不写成本地文件、绝不用 `present_files` 登记、绝不在对话里给文件路径**——2026-11-05 实测违反过一次,产出多余的 `customParams-*.html` 交付物,属明确禁止行为。
|
|
171
174
|
|
|
172
|
-
|
|
175
|
+
**摘要一律由 CLI 渲染,禁止手写 HTML**(2026-11-09 修正,取代 2026-11-04 的"CLI 无 summary 子命令"判断):CLI **0.1.47 已具备 `contract summary render`,实测可用**(`--data` 输入 JSON、`--out` 输出 HTML,3012 字节样例渲染耗时不到 1 秒)。模型只产出**紧凑数据 JSON(2~3 KB)**,HTML/CSS 由 CLI 按固定模板生成。**禁止**再用 `write_file` 手写摘要 HTML——手写 8~12 KB 是首屏最大耗时来源,且易出双引号/括号错误。JSON 结构、section 类型与丰富度要求见 [`contract-doc-triage.md`](references/contract-doc-triage.md) §5.1/§5.2。
|
|
173
176
|
|
|
174
177
|
四条必守合并技巧:
|
|
175
178
|
|
|
@@ -196,7 +199,7 @@ S3 只能在这六个出口里选,**不要**把出口之外的动作(工作
|
|
|
196
199
|
10. **冲突与不确定就摊开**:规则冲突、规则缺位、证据不足、候选不唯一 → 说明原因让用户选,**不猜、不兜底、不静默降级**(见 `orchestration.md` §3.2 冲突卡)。
|
|
197
200
|
11. **不越权**:禁止 curl / fetch / 浏览器自动化直连 `/api/ebd/**`、`/api/ebuilder/**`、`/api/workflow/**`;禁止绕过 CLI 读取凭据;业务输入不传身份字段。
|
|
198
201
|
12. **"打开页面" ≠ "完成业务"**:不得把"已打开审查页"报成"审查完成",也不得把"已打开流程页"报成"流程已发起"。
|
|
199
|
-
13. **动作集只用行为卡片,不用文字列选项**:给了可选项就必须输出 `<browsertool>` 块,**且必须以裸标签原样输出:禁止包进 ``` 围栏代码块、禁止行内反引号包裹、禁止 HTML 转义、禁止只给 JSON 不给标签(2026-11-04
|
|
202
|
+
13. **动作集只用行为卡片,不用文字列选项**:给了可选项就必须输出 `<browsertool>` 块,**且必须以裸标签原样输出:禁止包进 ``` 围栏代码块、禁止行内反引号包裹、禁止 HTML 转义、禁止只给 JSON 不给标签(2026-11-04 实测踩坑——放进围栏后宿主当普通文本,卡片根本不渲染;示例里的围栏只是结构示意,不是输出格式)**,;**外层 JSON 必填 10 项**:`version`、`callId`、`toolId`=`fill_form`、`arguments.type`=**`e10`**、`arguments.src`=`<baseUrl>/sp/contract/xiaoe-custom-page`、`arguments.width`=`1200`、`arguments.sdkRenderType`=`inline`、`sdkOptions.compName`=`ui.CorsComponent`、`routerProps_pc.initialEntries`、`params_pc.compName`=**`xiaoeCustomPage`**——**缺 `src` 或 `params_pc.compName` 或把 `type` 写成 `browsertool`,整块内容不进渲染链路,卡片完全不出现或只出半截**(2026-11-09 实测,先查这一层再谈体积/符号);**`</browsertool>` 之后一个字都不写,正文禁止逐字段复述卡片结构**(否则屏幕上出现两张卡),`arguments.title` 每轮动态,`sdkOptions.params_pc.customParams.html` 传**形态 B(`xiaoeCustomPage`)单串 HTML**(内嵌 `<script>` 绑点击,每个动作一张整卡可点的卡片,不是一条数据);html 内**零双引号**、script **只用 ES5**、每张卡 `<section>` 带唯一 `id` 并用 `getElementById` 定位(禁共享容器 `querySelector`);`arguments.width` 带 `1300`。**禁止**把 `XiaoeList` 的 `customParams.items[]`(`detailHtml` 只放静态 HTML,`script`/`style`/事件属性会被静默剥掉)用于行为卡片——用户点了毫无反应。**禁止**在正文里用"① ② ③ + 说明"罗列动作,也禁止"你同意我就查""要测哪个"这类反问。**一轮只输出一个 `<browsertool>`**;摘要**不落盘为本地文件、不 `present_files`,也不默认铺在页面上**——其五节内容**写成 script 内的 JS 字符串常量 `var S="..."`**(**禁止**用 `display:none` 容器 + `innerHTML` 动态提取,实测取到空串),作为**第三条横向动作卡「查看合同摘要」**的点击来源(`artifact` 渲染时直接 `raw:{html:S}`,**必须带 `initialArtifactKeys`——与 `artifacts` 同级放在 `contentProps` 内,值取 `artifacts[].id`**)。卡片条目**不写死**——按 [`contract-action-engine.md`](references/contract-action-engine.md) 依上下文动态计算 **1~4 条**,`arguments.title` 写 `可做的 N 件事`(N 必须等于实际条数)。**发起流程卡必须同时写 `customParams` + `fieldAssignKeys` 带字段值;附件字段的 `fileId` 在流程地址与 `customParams` 两处都写,缺一不可**(地址里的 `automaticFormFilling=true` 只让页面侧尽力识别,不携带任何字段值)。见 `contract-action-card.md` §0.1。格式与坑见 [`contract-action-card.md`](references/contract-action-card.md)。
|
|
200
203
|
|
|
201
204
|
## 范围边界
|
|
202
205
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
行为卡片内层模板(contract-action-card-template.html)
|
|
3
|
+
2026-11-09 重写:由「可照抄的样例」改为「供 render_action_card.py 填充的真模板」
|
|
4
|
+
|
|
5
|
+
旧版问题:卡片与 handler 全部写死、button 布局不符合标准卡、只绑 click 无 hover、
|
|
6
|
+
review 缺 params.compName、残留调试文案。照抄必错。
|
|
7
|
+
|
|
8
|
+
占位符(全部由 render_action_card.py 替换):
|
|
9
|
+
{{CARD_ID}} {{CARDS}} {{SUMMARY_JS}} {{COMPARE_JS}} {{REPORT_JS}} {{BODY}}
|
|
10
|
+
|
|
11
|
+
注意:本注释块在渲染时会被丢弃,脚本按「section 开标签含 id 属性」定位正文起点。
|
|
12
|
+
-->
|
|
13
|
+
<section id='{{CARD_ID}}' style='padding:4px 2px;font-family:Microsoft YaHei,PingFang SC,sans-serif'>
|
|
14
|
+
{{CARDS}}
|
|
15
|
+
<p id='tip' style='margin:8px 0 0;color:#b45309;font-size:12px'></p>
|
|
16
|
+
</section>
|
|
17
|
+
<script>(function(){var S={{SUMMARY_JS}};var C={{COMPARE_JS}};var R={{REPORT_JS}};{{BODY}}})();</script>
|