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.
Files changed (207) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/{attachment-content-MU2LPI5P.js → attachment-content-MBYYSQIX.js} +3 -3
  3. package/dist/chunks/{chunk-ZKEUGS2U.js → chunk-7UOXOGFL.js} +4 -4
  4. package/dist/chunks/{chunk-72MI3MBX.js → chunk-ATEXBEPD.js} +55 -15
  5. package/dist/chunks/{chunk-3NV2ETZR.js → chunk-D3TDNRFE.js} +8 -8
  6. package/dist/chunks/{chunk-6GWU63YF.js → chunk-DZOC77ZD.js} +1 -1
  7. package/dist/chunks/{chunk-K3BT54CU.js → chunk-IRMA3GVP.js} +1 -1
  8. package/dist/chunks/{chunk-3X7VOSBA.js → chunk-KLZ3ULQQ.js} +1 -1
  9. package/dist/chunks/{chunk-YLCYX7LE.js → chunk-KMRT7NAT.js} +18 -5
  10. package/dist/chunks/{chunk-NBEWUR7L.js → chunk-LALWNK6M.js} +167 -44
  11. package/dist/chunks/{chunk-BRRW7CWA.js → chunk-LM2H7SZI.js} +26 -26
  12. package/dist/chunks/{chunk-KV5SOWMS.js → chunk-LTRLF6MM.js} +4 -4
  13. package/dist/chunks/{chunk-D2QRZUW4.js → chunk-RPRFIG6I.js} +35 -28
  14. package/dist/chunks/{chunk-GEOMANP7.js → chunk-RWFRZSIP.js} +2 -2
  15. package/dist/chunks/{chunk-EJVA5ZVB.js → chunk-ZRHKGQRQ.js} +2 -2
  16. package/dist/chunks/{conflict-6347A7YK.js → conflict-D2HYKBMH.js} +2 -2
  17. package/dist/chunks/{contract-N6P2HIIE.js → contract-MFOFMM2J.js} +4284 -254
  18. package/dist/chunks/{create-flow-7WG7LVX5.js → create-flow-7ZATJVTM.js} +6 -6
  19. package/dist/chunks/{data-QO7QWOIV.js → data-WK5CQXNF.js} +17 -32
  20. package/dist/chunks/{env-LHRKSLG6.js → env-5DO4YENS.js} +2 -2
  21. package/dist/chunks/{factory-2H7Z4RWJ.js → factory-3M7D7WJC.js} +1 -1
  22. package/dist/chunks/{fna-ZVB2IILI.js → fna-ECOYBQYL.js} +328 -5
  23. package/dist/chunks/{group-chat-EW6PNDDT.js → group-chat-B2HT5NEO.js} +3 -3
  24. package/dist/chunks/{im-3RCNL5GT.js → im-TN2JYVGJ.js} +2 -2
  25. package/dist/chunks/{invoice-FXWH5GPO.js → invoice-V7ZTITUO.js} +726 -206
  26. package/dist/chunks/{meeting-N2FQBHXI.js → meeting-HZOX3CBB.js} +10 -10
  27. package/dist/chunks/{msg-parse-4GSQ2WTO.js → msg-parse-FPFVPMYI.js} +5 -1
  28. package/dist/chunks/{reception-MYOKJULO.js → reception-QGPNTGHG.js} +98 -82
  29. package/dist/chunks/{recruit-stage-FKWS5UQF.js → recruit-stage-XCMVEQA2.js} +718 -131
  30. package/dist/chunks/{registry-BUTEDK3C.js → registry-E5RQJVWN.js} +2 -2
  31. package/dist/chunks/{registry-7VZ6YJUF.js → registry-KYPFFQIH.js} +1 -1
  32. package/dist/chunks/{registry-CKUVBS53.js → registry-SJHSBO5G.js} +10 -10
  33. package/dist/chunks/{room-recommend-MBCYENQ2.js → room-recommend-5AHR4YQV.js} +4 -4
  34. package/dist/chunks/{schedule-5IFMCXME.js → schedule-KZPJUPC2.js} +4 -4
  35. package/dist/chunks/smart-extract-IXHCZE4R.js +2846 -0
  36. package/dist/chunks/{workflow-2TRU2ZSP.js → workflow-UHKCZJMY.js} +1 -1
  37. package/dist/index.js +14 -9
  38. package/dist/shortcuts/contract/host.js +11 -0
  39. package/dist/shortcuts/contract/index.js +13 -0
  40. package/dist/shortcuts/contract/manifest.js +204 -0
  41. package/dist/shortcuts/contract/operations/card-action.js +585 -0
  42. package/dist/shortcuts/contract/operations/card-ebdf-list.js +315 -0
  43. package/dist/shortcuts/contract/operations/card-plan.js +327 -0
  44. package/dist/shortcuts/contract/operations/card-risk-report.js +565 -0
  45. package/dist/shortcuts/contract/operations/elements-build.js +714 -0
  46. package/dist/shortcuts/contract/operations/elements-spec.js +216 -0
  47. package/dist/shortcuts/contract/operations/first-screen.js +563 -0
  48. package/dist/shortcuts/contract/operations/flow.js +81 -25
  49. package/dist/shortcuts/contract/operations/modeltext.js +132 -0
  50. package/dist/shortcuts/contract/operations/op-resolver.js +22 -0
  51. package/dist/shortcuts/contract/operations/performance.js +58 -7
  52. package/dist/shortcuts/contract/operations/quote.js +410 -22
  53. package/dist/shortcuts/contract/operations/registry.js +22 -0
  54. package/dist/shortcuts/contract/operations/review.js +73 -58
  55. package/dist/shortcuts/contract/operations/save-recognize.js +151 -0
  56. package/dist/shortcuts/contract/operations/summary-validate.js +293 -0
  57. package/dist/shortcuts/contract/operations/summary.js +4 -2
  58. package/dist/shortcuts/contract/operations/upload.js +48 -7
  59. package/dist/shortcuts/contract/prewarm-cache.js +90 -0
  60. package/dist/shortcuts/contract/prewarm.js +88 -0
  61. package/dist/shortcuts/contract/upload-cache.js +49 -4
  62. package/dist/shortcuts/data/index.js +1 -6
  63. package/dist/shortcuts/data/manifest.js +2 -2
  64. package/dist/shortcuts/data/operations/index.js +1 -1
  65. package/dist/shortcuts/data/operations/query.js +23 -46
  66. package/dist/shortcuts/fna/host.js +4 -2
  67. package/dist/shortcuts/fna/manifest.js +14 -5
  68. package/dist/shortcuts/fna/operations/audit.js +334 -0
  69. package/dist/shortcuts/fna/operations/registry.js +2 -0
  70. package/dist/shortcuts/im/operations/at-mention.js +6 -3
  71. package/dist/shortcuts/im/operations/msg-parse.js +35 -5
  72. package/dist/shortcuts/im/operations/msg-sync.js +3 -1
  73. package/dist/shortcuts/im/operations/msg-write.js +57 -9
  74. package/dist/shortcuts/index.js +5 -0
  75. package/dist/shortcuts/invoice/index.js +0 -12
  76. package/dist/shortcuts/invoice/manifest.js +201 -50
  77. package/dist/shortcuts/invoice/operations/registry.js +4 -2
  78. package/dist/shortcuts/invoice/operations/reim-relation.js +438 -0
  79. package/dist/shortcuts/invoice/operations/shared.js +3 -19
  80. package/dist/shortcuts/invoice/operations/upload-and-validate.js +109 -73
  81. package/dist/shortcuts/meeting/operations/from-group-chat.js +16 -2
  82. package/dist/shortcuts/reception/constants.js +3 -7
  83. package/dist/shortcuts/reception/operations/leads.js +30 -6
  84. package/dist/shortcuts/reception/operations/panels.js +3 -2
  85. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -2
  86. package/dist/shortcuts/recruit-stage/operations/jd-create.js +6 -2
  87. package/dist/shortcuts/recruit-stage/operations/list.js +217 -1
  88. package/dist/shortcuts/recruit-stage/operations/resume-import.js +144 -158
  89. package/dist/shortcuts/recruit-stage/operations/search.js +348 -0
  90. package/dist/shortcuts/recruit-stage/shared.js +5 -0
  91. package/dist/shortcuts/recruit-stage/tag-lookup.js +136 -0
  92. package/dist/shortcuts/smart-extract/constants.js +79 -0
  93. package/dist/shortcuts/smart-extract/continuation.js +71 -0
  94. package/dist/shortcuts/smart-extract/errors.js +68 -0
  95. package/dist/shortcuts/smart-extract/host.js +191 -0
  96. package/dist/shortcuts/smart-extract/index.js +105 -0
  97. package/dist/shortcuts/smart-extract/ledger.js +70 -0
  98. package/dist/shortcuts/smart-extract/manifest.js +35 -0
  99. package/dist/shortcuts/smart-extract/operations/attachment.js +212 -0
  100. package/dist/shortcuts/smart-extract/operations/batch.js +67 -0
  101. package/dist/shortcuts/smart-extract/operations/config.js +118 -0
  102. package/dist/shortcuts/smart-extract/operations/fill.js +489 -0
  103. package/dist/shortcuts/smart-extract/operations/preview.js +174 -0
  104. package/dist/shortcuts/smart-extract/operations/registry.js +34 -0
  105. package/dist/shortcuts/smart-extract/operations/save.js +355 -0
  106. package/dist/shortcuts/smart-extract/operations/shared.js +191 -0
  107. package/dist/shortcuts/smart-extract/operations/structure.js +401 -0
  108. package/dist/shortcuts/smart-extract/operations/target.js +167 -0
  109. package/dist/shortcuts/smart-extract/operations/types.js +22 -0
  110. package/dist/shortcuts/smart-extract/operations/validate.js +408 -0
  111. package/dist/shortcuts/workflow/operations/read.js +77 -15
  112. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +140 -24
  113. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +42 -14
  114. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -6
  115. package/docs/SKILL.md +1 -1
  116. package/docs/_catalog.md +4 -1
  117. package/docs/agent-invoice.md +5 -7
  118. package/docs/data.md +5 -1
  119. package/docs/fna.md +24 -4
  120. package/docs/invoice.md +7 -5
  121. package/docs/smart-extract.md +156 -0
  122. package/package.json +1 -1
  123. package/skill-template/business-info.json +21 -1
  124. package/skill-template/domains/qiyecheng.md +6 -2
  125. package/skill-template/domains/smart-extract.md +16 -0
  126. package/skill-template/domains/yepiaotong.md +2 -2
  127. package/skills/weaver-e10-data/references/scene-and-misc.md +4 -3
  128. package/skills/weaver-e10-jinchengda/SKILL.md +159 -11
  129. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +13 -8
  130. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +5 -4
  131. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +44 -2
  132. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
  133. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +220 -0
  134. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +68 -33
  135. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +26 -15
  136. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
  137. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +128 -0
  138. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +90 -0
  139. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +96 -2
  140. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +167 -5
  141. package/skills/weaver-e10-jinchengda/scripts/contract_first_screen.py +200 -0
  142. package/skills/weaver-e10-jinchengda/scripts/fill_contract_from_quote.py +572 -0
  143. package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +997 -0
  144. package/skills/weaver-e10-jinchengda/scripts/quote_screen.py +560 -0
  145. package/skills/weaver-e10-jinchengda/scripts/triage_contract.py +894 -0
  146. package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +93 -0
  147. package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +118 -0
  148. package/skills/weaver-e10-qiyecheng/SKILL.md +58 -7
  149. package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +118 -0
  150. package/skills/weaver-e10-qiyecheng/references/budget.md +14 -0
  151. package/skills/weaver-e10-qiyecheng/references/catalog.md +42 -3
  152. package/skills/weaver-e10-qiyecheng/references/expense-center.md +8 -0
  153. package/skills/weaver-e10-qiyecheng/references/expense-chart.md +9 -0
  154. package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +13 -0
  155. package/skills/weaver-e10-qiyecheng/references/loan-management.md +14 -0
  156. package/skills/weaver-e10-qiyecheng/references/self-hosted-mode.md +239 -0
  157. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +153 -40
  158. package/skills/weaver-e10-reception-flow/SKILL.md +43 -6
  159. package/skills/weaver-e10-reception-flow/references/guide.md +1 -1
  160. package/skills/weaver-e10-recruit-stage/SKILL.md +62 -4
  161. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +42 -8
  162. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +79 -0
  163. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +11 -3
  164. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +3 -2
  165. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +153 -0
  166. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +7 -4
  167. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
  168. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +66 -0
  169. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +156 -40
  170. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +122 -0
  171. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +36 -8
  172. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +157 -0
  173. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +35 -0
  174. package/skills/weaver-e10-smart-extract/SKILL.md +169 -0
  175. package/skills/weaver-e10-smart-extract/references/api-contract.md +71 -0
  176. package/skills/weaver-e10-smart-extract/references/result-format.md +102 -0
  177. package/skills/weaver-e10-smart-extract/references/troubleshooting.md +105 -0
  178. package/skills/weaver-e10-workflow/SKILL.md +2 -1
  179. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +29 -6
  180. package/skills/weaver-e10-workflow/references/workflow-query.md +1 -1
  181. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  182. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +162 -10
  183. package/skills/weaver-e10-yepiaotong/SKILL.md +53 -35
  184. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -0
  185. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +1 -1
  186. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +19 -2
  187. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +19 -32
  188. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +8 -2
  189. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +407 -0
  190. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +18 -53
  191. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +97 -39
  192. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +96 -7
  193. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +5 -38
  194. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +14 -14
  195. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +8 -4
  196. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +139 -94
  197. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +131 -58
  198. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +110 -43
  199. package/skills/weaver-e10-yimiaoban/SKILL.md +8 -6
  200. package/skills/weaver-e10-yimiaoban/references/msg-read.md +20 -0
  201. package/skills/weaver-e10-yimiaoban/references/msg-write.md +7 -0
  202. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +18 -15
  203. package/dist/shortcuts/invoice/operations/validate-preview.js +0 -40
  204. package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +0 -279
  205. package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +0 -450
  206. package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +0 -358
  207. package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +0 -40
@@ -3,19 +3,19 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  getMeetingOperation,
5
5
  meetingOperationDefinitions
6
- } from "./chunk-D2QRZUW4.js";
7
- import "./chunk-EJVA5ZVB.js";
8
- import "./chunk-3NV2ETZR.js";
9
- import "./chunk-BRRW7CWA.js";
10
- import "./chunk-ZKEUGS2U.js";
11
- import "./chunk-GEOMANP7.js";
12
- import "./chunk-KV5SOWMS.js";
13
- import "./chunk-3X7VOSBA.js";
6
+ } from "./chunk-RPRFIG6I.js";
7
+ import "./chunk-ZRHKGQRQ.js";
8
+ import "./chunk-D3TDNRFE.js";
9
+ import "./chunk-LM2H7SZI.js";
10
+ import "./chunk-7UOXOGFL.js";
11
+ import "./chunk-RWFRZSIP.js";
12
+ import "./chunk-LTRLF6MM.js";
13
+ import "./chunk-KLZ3ULQQ.js";
14
14
  import {
15
15
  degradeMeetingEnvToStandard,
16
16
  meetingStateDir,
17
17
  readCache
18
- } from "./chunk-6GWU63YF.js";
18
+ } from "./chunk-DZOC77ZD.js";
19
19
  import {
20
20
  MeetingCliError,
21
21
  asObject,
@@ -23,7 +23,7 @@ import {
23
23
  meetingAuthError,
24
24
  meetingNetworkError,
25
25
  meetingValidationError
26
- } from "./chunk-K3BT54CU.js";
26
+ } from "./chunk-IRMA3GVP.js";
27
27
  import {
28
28
  reportPlatformError
29
29
  } from "./chunk-6N4JPNFL.js";
@@ -12,13 +12,15 @@ import {
12
12
  extractTxt,
13
13
  extractVideos,
14
14
  getTypeName,
15
+ isMarkdownMsg,
16
+ isMarkdownTxt,
15
17
  parseContent,
16
18
  parseMsg,
17
19
  parseSysMsg,
18
20
  replaceMentions,
19
21
  senderName,
20
22
  substituteTemplate
21
- } from "./chunk-YLCYX7LE.js";
23
+ } from "./chunk-KMRT7NAT.js";
22
24
  import "./chunk-BUSC6UAE.js";
23
25
  export {
24
26
  MSG_TYPES,
@@ -32,6 +34,8 @@ export {
32
34
  extractTxt,
33
35
  extractVideos,
34
36
  getTypeName,
37
+ isMarkdownMsg,
38
+ isMarkdownTxt,
35
39
  parseContent,
36
40
  parseMsg,
37
41
  parseSysMsg,
@@ -44,12 +44,6 @@ var LOGISTICS_HINT = [
44
44
  "\u4F34\u624B\u793C\uFF1A\u5982\u300C\u793C\u76D2\u6BCF\u4EBA1\u4EFD\u300D\u6216\u300C\u4E0D\u7528\u300D",
45
45
  "\u624B\u673A\uFF1A11 \u4F4D\uFF0C\u53EA\u7528\u4E8E\u884C\u7A0B\u5355\u663E\u793A\u63A5\u5F85\u4EBA\u8054\u7CFB\u65B9\u5F0F\uFF08\u7CFB\u7EDF\u4E0D\u67E5\u5458\u5DE5\u624B\u673A\u53F7\uFF09"
46
46
  ].join("\n");
47
- var CUSTOMER_NEED_OPTIONS = [
48
- "\u4E86\u89E3\u6CDB\u5FAE\u4EA7\u54C1\u4E0E\u653F\u52A1\u884C\u4E1A\u89E3\u51B3\u65B9\u6848",
49
- "\u53C2\u89C2\u603B\u90E8\u73AF\u5883\u4E0E\u5C55\u5385\uFF0C\u4E86\u89E3\u516C\u53F8\u5B9E\u529B",
50
- "\u4EA4\u6D41\u5177\u4F53\u9879\u76EE\u5408\u4F5C\u4E0E\u5B9E\u65BD\u7EC6\u8282",
51
- "\u6682\u672A\u786E\u5B9A\uFF0C\u5148\u8FDB\u5F85\u529E"
52
- ];
53
47
  var MEETING_TITLE = "\u662F\u5426\u5B89\u6392\u4F1A\u8BAE\uFF08\u9700\u9884\u7559\u573A\u5730\uFF09";
54
48
  var MEETING_OPTIONS = [
55
49
  { label: "\u662F\uFF0C\u5B89\u6392\u4F1A\u8BAE\u5BA4", value: "\u662F" },
@@ -582,6 +576,103 @@ function createReceptionHost(ctx) {
582
576
  return { getSession, requireRuntime, uploadFile, fetchRestaurantRooms: fetchRestaurantRooms2 };
583
577
  }
584
578
 
579
+ // src/shortcuts/reception/operations/leads.ts
580
+ var MEETING_ROOMS = [
581
+ { id: "100502820000000225", name: "130\u4F1A\u8BAE\u5BA4\uFF08\u4E2D\u5EAD\u5DE6\u4FA7\uFF09", no: "130", where: "\u4E2D\u5EAD\u5DE6\u4FA7", capacity: 12, desc: "\u4FE1\u521B\u4F1A\u8BAE\u5BA4\uFF0C\u63A5\u5F85\u91CD\u8981\u5BA2\u6237\u4F7F\u7528" },
582
+ { id: "100502820000000227", name: "131\u4F1A\u8BAE\u5BA4\uFF08\u524D\u5EAD\u5DE6\u4FA7\uFF09", no: "131", where: "\u524D\u5EAD\u5DE6\u4FA7", capacity: 20, desc: "\u4FE1\u521B\u4F1A\u8BAE\u5BA4\uFF0C\u63A5\u5F85\u91CD\u8981\u5BA2\u6237\u4F7F\u7528" },
583
+ { id: "100502820000000224", name: "129\u4F1A\u8BAE\u5BA4\uFF08\u4E2D\u5EAD\u5DE6\u4FA7\uFF09", no: "129", where: "\u4E2D\u5EAD\u5DE6\u4FA7", capacity: 20, desc: "\u4FE1\u521B\u4F1A\u8BAE\u5BA4\uFF0C\u63A5\u5F85\u91CD\u8981\u5BA2\u6237\u4F7F\u7528" }
584
+ ];
585
+ function normalizeMeetingRoom(value) {
586
+ const text = String(value || "").trim();
587
+ if (!text) return "";
588
+ const exact = MEETING_ROOMS.find((room) => room.name === text);
589
+ if (exact) return exact.name;
590
+ const byId = MEETING_ROOMS.find((room) => room.id === text);
591
+ if (byId) return byId.name;
592
+ const no = text.match(/(?:总部\s*)?(129|130|131)/);
593
+ if (!no) return "";
594
+ const hit = MEETING_ROOMS.find((room) => room.no === no[1]);
595
+ return hit ? hit.name : "";
596
+ }
597
+ function meetingRoomId(value) {
598
+ const name = normalizeMeetingRoom(value);
599
+ const hit = MEETING_ROOMS.find((room) => room.name === name);
600
+ return hit ? hit.id : "";
601
+ }
602
+ function normalizeMeeting(value) {
603
+ const raw = typeof value === "boolean" ? value ? "\u662F" : "\u5426" : String(value ?? "").trim();
604
+ if (!raw) return "";
605
+ if (/^(否|不|无|没|no|n|false|0)/i.test(raw)) return "\u5426";
606
+ if (/^(是|要|需要|安排|定|订|有|yes|y|true|1)/i.test(raw)) return "\u662F";
607
+ if (/(不需要|不用|无需|不安排|不定|不订)/.test(raw)) return "\u5426";
608
+ if (/(需要|安排|预定|预订|定会|开会|座谈)/.test(raw)) return "\u662F";
609
+ return "";
610
+ }
611
+ function applyMeetingPolicy(data) {
612
+ const declared = normalizeMeeting(data.meeting);
613
+ const room = normalizeMeetingRoom(data.meetingRoom);
614
+ const meeting = declared || (room ? "\u662F" : "");
615
+ if (meeting === "\u662F") {
616
+ data.meeting = "\u662F";
617
+ if (room) {
618
+ const hit = MEETING_ROOMS.find((item) => item.name === room);
619
+ const prev = data.meetingRoomMeta || {};
620
+ data.meetingRoom = room;
621
+ data.meetingRoomMeta = {
622
+ ...hit || {},
623
+ ...prev.capacity ? prev : {},
624
+ name: room,
625
+ reason: prev.capacity ? prev.reason || "\u6309\u6307\u5B9A\u623F\u95F4\u9884\u7559" : "\u6309\u6307\u5B9A\u623F\u95F4\u9884\u7559"
626
+ };
627
+ } else {
628
+ const picked = pickMeetingRoom(data.headcount, data.headcountMax);
629
+ data.meetingRoom = picked.name;
630
+ data.meetingRoomMeta = { ...picked };
631
+ }
632
+ return data;
633
+ }
634
+ if (meeting === "\u5426") {
635
+ data.meeting = "\u5426";
636
+ data.meetingRoom = "\u4E0D\u9700\u4F1A\u8BAE\u5BA4";
637
+ data.meetingRoomMeta = { name: "\u4E0D\u9700\u4F1A\u8BAE\u5BA4", where: "", capacity: 0, desc: "", reason: "\u672C\u6B21\u4E0D\u5B89\u6392\u4F1A\u8BAE" };
638
+ return data;
639
+ }
640
+ delete data.meetingRoom;
641
+ delete data.meetingRoomMeta;
642
+ return data;
643
+ }
644
+ function pickMeetingRoom(headcount, headcountMax) {
645
+ const upper = Number(headcountMax) || Number(headcount) || 0;
646
+ if (!upper) return { ...MEETING_ROOMS[1], reason: "\u4EBA\u6570\u672A\u5B9A\uFF0C\u9ED8\u8BA4\u9884\u7559 20 \u4EBA\u95F4" };
647
+ const fits = [...MEETING_ROOMS].filter((room) => room.capacity >= upper).sort((a, b) => a.capacity - b.capacity);
648
+ if (!fits.length) {
649
+ return { ...MEETING_ROOMS[1], reason: `\u6700\u591A ${upper} \u4EBA\uFF0C\u8D85\u51FA 20 \u4EBA\u4E0A\u9650\uFF0C\u9700\u53E6\u627E\u573A\u5730` };
650
+ }
651
+ return { ...fits[0], reason: `\u6700\u591A ${upper} \u4EBA\uFF0C${fits[0].capacity} \u4EBA\u95F4\u53EF\u5BB9\u7EB3` };
652
+ }
653
+ function isGovClient(data = {}) {
654
+ const nature = String(data.nature || "");
655
+ if (/(政府|事业|国企)/.test(nature)) return true;
656
+ return /(局|委|厅|办公室|管委会|街道办|人民政府|法院|检察院|税务|政务)/.test(String(data.customer || ""));
657
+ }
658
+ function solutionLabel(data = {}) {
659
+ if (isGovClient(data)) return "\u6570\u667A\u516C\u6587";
660
+ const name = String(data.customer || "");
661
+ if (/航空|铁路|电力|电网|石油|石化|燃气|水务|烟草|邮政|电信|移动通信|联通|银行|保险|证券/.test(name)) {
662
+ return "\u6570\u667A\u516C\u6587";
663
+ }
664
+ if (/科技|信息技术|网络|软件|互联网|智能|数字|数据/.test(name)) return "AI\u667A\u80FD\u5316";
665
+ return "\u6570\u667A\u4E1A\u8D22";
666
+ }
667
+ function buildNeedOptions(data = {}) {
668
+ return [
669
+ "\u53C2\u89C2\u516C\u53F8\u603B\u90E8\uFF0C\u4E86\u89E3\u516C\u53F8\u5B9E\u529B",
670
+ `\u4E86\u89E3\u6CDB\u5FAE\u4EA7\u54C1\uFF0C\u4E0E${solutionLabel(data)}\u89E3\u51B3\u65B9\u6848`,
671
+ "\u63A8\u8FDB\u9879\u76EE\u8FDB\u5EA6\uFF0C\u4EA4\u6D41\u5B9E\u65BD\u7EC6\u8282",
672
+ "\u6682\u672A\u660E\u786E"
673
+ ];
674
+ }
675
+
585
676
  // src/shortcuts/reception/operations/panels.ts
586
677
  function parseLogistics(text) {
587
678
  const raw = String(text || "").trim();
@@ -704,7 +795,7 @@ function buildPanels(data) {
704
795
  inputType: "single",
705
796
  required: false,
706
797
  allowCustomInput: true,
707
- options: CUSTOMER_NEED_OPTIONS.map((item) => ({ label: item, value: item }))
798
+ options: buildNeedOptions(data).map((item) => ({ label: item, value: item }))
708
799
  });
709
800
  }
710
801
  const mobile = ((data.companions || []).find((item) => item && item.mobile) || {}).mobile || "";
@@ -898,81 +989,6 @@ function tryLoadRun(stateDir, runId) {
898
989
  return readJson(runPath(stateDir, runId));
899
990
  }
900
991
 
901
- // src/shortcuts/reception/operations/leads.ts
902
- var MEETING_ROOMS = [
903
- { id: "100502820000000225", name: "130\u4F1A\u8BAE\u5BA4\uFF08\u4E2D\u5EAD\u5DE6\u4FA7\uFF09", no: "130", where: "\u4E2D\u5EAD\u5DE6\u4FA7", capacity: 12, desc: "\u4FE1\u521B\u4F1A\u8BAE\u5BA4\uFF0C\u63A5\u5F85\u91CD\u8981\u5BA2\u6237\u4F7F\u7528" },
904
- { id: "100502820000000227", name: "131\u4F1A\u8BAE\u5BA4\uFF08\u524D\u5EAD\u5DE6\u4FA7\uFF09", no: "131", where: "\u524D\u5EAD\u5DE6\u4FA7", capacity: 20, desc: "\u4FE1\u521B\u4F1A\u8BAE\u5BA4\uFF0C\u63A5\u5F85\u91CD\u8981\u5BA2\u6237\u4F7F\u7528" },
905
- { id: "100502820000000224", name: "129\u4F1A\u8BAE\u5BA4\uFF08\u4E2D\u5EAD\u5DE6\u4FA7\uFF09", no: "129", where: "\u4E2D\u5EAD\u5DE6\u4FA7", capacity: 20, desc: "\u4FE1\u521B\u4F1A\u8BAE\u5BA4\uFF0C\u63A5\u5F85\u91CD\u8981\u5BA2\u6237\u4F7F\u7528" }
906
- ];
907
- function normalizeMeetingRoom(value) {
908
- const text = String(value || "").trim();
909
- if (!text) return "";
910
- const exact = MEETING_ROOMS.find((room) => room.name === text);
911
- if (exact) return exact.name;
912
- const byId = MEETING_ROOMS.find((room) => room.id === text);
913
- if (byId) return byId.name;
914
- const no = text.match(/(?:总部\s*)?(129|130|131)/);
915
- if (!no) return "";
916
- const hit = MEETING_ROOMS.find((room) => room.no === no[1]);
917
- return hit ? hit.name : "";
918
- }
919
- function meetingRoomId(value) {
920
- const name = normalizeMeetingRoom(value);
921
- const hit = MEETING_ROOMS.find((room) => room.name === name);
922
- return hit ? hit.id : "";
923
- }
924
- function normalizeMeeting(value) {
925
- const raw = typeof value === "boolean" ? value ? "\u662F" : "\u5426" : String(value ?? "").trim();
926
- if (!raw) return "";
927
- if (/^(否|不|无|没|no|n|false|0)/i.test(raw)) return "\u5426";
928
- if (/^(是|要|需要|安排|定|订|有|yes|y|true|1)/i.test(raw)) return "\u662F";
929
- if (/(不需要|不用|无需|不安排|不定|不订)/.test(raw)) return "\u5426";
930
- if (/(需要|安排|预定|预订|定会|开会|座谈)/.test(raw)) return "\u662F";
931
- return "";
932
- }
933
- function applyMeetingPolicy(data) {
934
- const declared = normalizeMeeting(data.meeting);
935
- const room = normalizeMeetingRoom(data.meetingRoom);
936
- const meeting = declared || (room ? "\u662F" : "");
937
- if (meeting === "\u662F") {
938
- data.meeting = "\u662F";
939
- if (room) {
940
- const hit = MEETING_ROOMS.find((item) => item.name === room);
941
- const prev = data.meetingRoomMeta || {};
942
- data.meetingRoom = room;
943
- data.meetingRoomMeta = {
944
- ...hit || {},
945
- ...prev.capacity ? prev : {},
946
- name: room,
947
- reason: prev.capacity ? prev.reason || "\u6309\u6307\u5B9A\u623F\u95F4\u9884\u7559" : "\u6309\u6307\u5B9A\u623F\u95F4\u9884\u7559"
948
- };
949
- } else {
950
- const picked = pickMeetingRoom(data.headcount, data.headcountMax);
951
- data.meetingRoom = picked.name;
952
- data.meetingRoomMeta = { ...picked };
953
- }
954
- return data;
955
- }
956
- if (meeting === "\u5426") {
957
- data.meeting = "\u5426";
958
- data.meetingRoom = "\u4E0D\u9700\u4F1A\u8BAE\u5BA4";
959
- data.meetingRoomMeta = { name: "\u4E0D\u9700\u4F1A\u8BAE\u5BA4", where: "", capacity: 0, desc: "", reason: "\u672C\u6B21\u4E0D\u5B89\u6392\u4F1A\u8BAE" };
960
- return data;
961
- }
962
- delete data.meetingRoom;
963
- delete data.meetingRoomMeta;
964
- return data;
965
- }
966
- function pickMeetingRoom(headcount, headcountMax) {
967
- const upper = Number(headcountMax) || Number(headcount) || 0;
968
- if (!upper) return { ...MEETING_ROOMS[1], reason: "\u4EBA\u6570\u672A\u5B9A\uFF0C\u9ED8\u8BA4\u9884\u7559 20 \u4EBA\u95F4" };
969
- const fits = [...MEETING_ROOMS].filter((room) => room.capacity >= upper).sort((a, b) => a.capacity - b.capacity);
970
- if (!fits.length) {
971
- return { ...MEETING_ROOMS[1], reason: `\u6700\u591A ${upper} \u4EBA\uFF0C\u8D85\u51FA 20 \u4EBA\u4E0A\u9650\uFF0C\u9700\u53E6\u627E\u573A\u5730` };
972
- }
973
- return { ...fits[0], reason: `\u6700\u591A ${upper} \u4EBA\uFF0C${fits[0].capacity} \u4EBA\u95F4\u53EF\u5BB9\u7EB3` };
974
- }
975
-
976
992
  // src/shortcuts/reception/operations/ask.ts
977
993
  async function ask(input, ctx) {
978
994
  const startedAt = Date.now();