weaver-work-cli 0.1.46 → 0.1.48

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 (187) hide show
  1. package/dist/chunks/{archive-oa-BBDP7AKJ.js → archive-oa-EDJDU3V4.js} +454 -5
  2. package/dist/chunks/{attachment-content-MCXQBD6N.js → attachment-content-4KSNBPRO.js} +3 -3
  3. package/dist/chunks/{chunk-UFIFZ4YC.js → chunk-2BQESR2U.js} +1 -1
  4. package/dist/chunks/{chunk-727FH2NI.js → chunk-2IGZUMNG.js} +15 -2
  5. package/dist/chunks/{chunk-76H3IKH6.js → chunk-5B5JXTY2.js} +35 -35
  6. package/dist/chunks/{chunk-Q4OYAQYH.js → chunk-72MI3MBX.js} +4 -0
  7. package/dist/chunks/{chunk-4RWS2YYL.js → chunk-BCACE6VV.js} +2 -2
  8. package/dist/chunks/{chunk-AD46OMQK.js → chunk-EFOUMXIX.js} +119 -44
  9. package/dist/chunks/{chunk-IRMIEDXN.js → chunk-FEP6ELMR.js} +1 -1
  10. package/dist/chunks/{chunk-JB34OE7R.js → chunk-NBEWUR7L.js} +1 -1
  11. package/dist/chunks/{chunk-6V5ZPKHV.js → chunk-NK74RE5F.js} +2 -2
  12. package/dist/chunks/{chunk-GSZTA43P.js → chunk-OCYRVZGN.js} +2 -2
  13. package/dist/chunks/{chunk-OXHHJWNC.js → chunk-PSPOFLSU.js} +1 -1
  14. package/dist/chunks/{chunk-6AXKWFKG.js → chunk-R2HHLJNN.js} +4 -4
  15. package/dist/chunks/{chunk-PSOMGA3U.js → chunk-SVFG6EMV.js} +35 -6
  16. package/dist/chunks/{chunk-IP4CWQCF.js → chunk-WMSAWAWZ.js} +8 -8
  17. package/dist/chunks/{conflict-H7EHQXYY.js → conflict-APGSD5E7.js} +2 -2
  18. package/dist/chunks/{contract-3QLAGYQL.js → contract-N6P2HIIE.js} +425 -187
  19. package/dist/chunks/{create-flow-VRVJEOBX.js → create-flow-5TXFOC7X.js} +6 -6
  20. package/dist/chunks/{ehr-SH2LM3NK.js → ehr-XI4BIVR2.js} +16 -5
  21. package/dist/chunks/{env-66FPSJDV.js → env-B6GKA2J3.js} +2 -2
  22. package/dist/chunks/{factory-UH2TZBVA.js → factory-MFCKLUT6.js} +1 -1
  23. package/dist/chunks/{group-chat-CAKMMV7K.js → group-chat-YE7WIBFO.js} +3 -3
  24. package/dist/chunks/{im-NJB7ZYMH.js → im-3RCNL5GT.js} +107 -1
  25. package/dist/chunks/{invoice-OQP3TMKQ.js → invoice-FXWH5GPO.js} +209 -0
  26. package/dist/chunks/{lazy-dispatch-DD6ULZ3I.js → lazy-dispatch-XSAHDK6Z.js} +2 -2
  27. package/dist/chunks/{meeting-VTBFW4HI.js → meeting-RYZV2JTQ.js} +10 -10
  28. package/dist/chunks/{reception-5WITA44R.js → reception-VL6TKVAW.js} +480 -26
  29. package/dist/chunks/{recruit-stage-CAKZTUA7.js → recruit-stage-ERZD3ZNB.js} +52 -16
  30. package/dist/chunks/{registry-JVQBLFQ5.js → registry-22O6UG4I.js} +10 -10
  31. package/dist/chunks/{registry-AQVGHUM6.js → registry-7VZ6YJUF.js} +2 -2
  32. package/dist/chunks/{registry-PVUZQDDQ.js → registry-BUTEDK3C.js} +1 -1
  33. package/dist/chunks/{room-recommend-5U55FMXZ.js → room-recommend-IMZPJMYB.js} +4 -4
  34. package/dist/chunks/{schedule-IDETODCA.js → schedule-SPPAHER2.js} +4 -4
  35. package/dist/chunks/{workflow-BSYT5TGL.js → workflow-WVEFJ6KC.js} +2 -2
  36. package/dist/core/refs.js +19 -2
  37. package/dist/index.js +13 -13
  38. package/dist/shortcuts/archive-oa/constants.js +42 -0
  39. package/dist/shortcuts/archive-oa/host.js +2 -2
  40. package/dist/shortcuts/archive-oa/index.js +38 -0
  41. package/dist/shortcuts/archive-oa/operations/borrow-car.js +117 -3
  42. package/dist/shortcuts/archive-oa/operations/my-borrow-contract.js +271 -0
  43. package/dist/shortcuts/archive-oa/operations/registry.js +5 -3
  44. package/dist/shortcuts/contract/index.js +9 -1
  45. package/dist/shortcuts/contract/manifest.js +14 -2
  46. package/dist/shortcuts/contract/operations/card.js +231 -0
  47. package/dist/shortcuts/contract/operations/registry.js +2 -0
  48. package/dist/shortcuts/contract/operations/review.js +16 -5
  49. package/dist/shortcuts/contract/operations/summary.js +25 -17
  50. package/dist/shortcuts/ehr/operations/recruit-write.js +22 -5
  51. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +17 -8
  52. package/dist/shortcuts/ehr/recruit-stage/shared.js +33 -8
  53. package/dist/shortcuts/im/index.js +128 -0
  54. package/dist/shortcuts/im/operations/session.js +6 -0
  55. package/dist/shortcuts/invoice/manifest.js +60 -0
  56. package/dist/shortcuts/invoice/operations/registry.js +2 -0
  57. package/dist/shortcuts/invoice/operations/reim-subsidy.js +163 -0
  58. package/dist/shortcuts/meeting/operations/eb/conflict.js +26 -3
  59. package/dist/shortcuts/meeting/operations/eb/continuation-alias.js +63 -0
  60. package/dist/shortcuts/meeting/operations/eb/create-flow.js +71 -12
  61. package/dist/shortcuts/meeting/operations/eb/factory.js +5 -3
  62. package/dist/shortcuts/reception/host.js +33 -1
  63. package/dist/shortcuts/reception/index.js +19 -0
  64. package/dist/shortcuts/reception/manifest.js +53 -1
  65. package/dist/shortcuts/reception/operations/ask.js +18 -0
  66. package/dist/shortcuts/reception/operations/compose.js +113 -3
  67. package/dist/shortcuts/reception/operations/leads.js +245 -0
  68. package/dist/shortcuts/reception/operations/markdown.js +22 -0
  69. package/dist/shortcuts/reception/operations/registry.js +2 -0
  70. package/dist/shortcuts/reception/operations/render.js +36 -3
  71. package/dist/shortcuts/reception/operations/restaurant-rooms.js +118 -0
  72. package/dist/shortcuts/reception/operations/restaurant.js +251 -0
  73. package/dist/shortcuts/reception/operations/restaurantrooms.js +42 -0
  74. package/dist/shortcuts/reception/operations/schedule.js +7 -1
  75. package/dist/shortcuts/reception/upload.js +22 -6
  76. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +17 -8
  77. package/dist/shortcuts/recruit-stage/shared.js +42 -14
  78. package/docs/archive-oa.md +4 -2
  79. package/docs/invoice.md +1 -0
  80. package/package.json +1 -1
  81. package/skill-template/domains/archive-oa.md +2 -1
  82. package/skill-template/master-skill-template.md +1 -0
  83. package/skill-template/skill-template.md +1 -0
  84. package/skills/weaver-e10-archive-oa/SKILL.md +33 -6
  85. package/skills/weaver-e10-archive-oa/references/borrow-car.md +32 -7
  86. package/skills/weaver-e10-archive-oa/references/contract-search.md +32 -0
  87. package/skills/weaver-e10-archive-oa/references/disabled-capabilities.md +1 -1
  88. package/skills/weaver-e10-archive-oa/references/my-borrow-contract.md +97 -0
  89. package/skills/weaver-e10-archive-oa/references/my-borrow.md +6 -1
  90. package/skills/weaver-e10-archive-oa/references/qys-contract-search.md +22 -0
  91. package/skills/weaver-e10-calendar/SKILL.md +1 -1
  92. package/skills/weaver-e10-calendar/references/calendar-query.md +1 -1
  93. package/skills/weaver-e10-calendar/references/calendar-write.md +9 -9
  94. package/skills/weaver-e10-cowork/SKILL.md +9 -6
  95. package/skills/weaver-e10-jinchengda/SKILL.md +10 -7
  96. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +17 -0
  97. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +263 -35
  98. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +8 -5
  99. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
  100. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +175 -22
  101. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
  102. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
  103. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +1 -1
  104. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +124 -19
  105. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +2 -2
  106. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +4 -4
  107. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +6 -0
  108. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
  109. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
  110. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +1 -1
  111. package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +178 -0
  112. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  113. package/skills/weaver-e10-jinchengda/references/orchestration.md +7 -7
  114. package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +279 -0
  115. package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +450 -0
  116. package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +358 -0
  117. package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +505 -0
  118. package/skills/weaver-e10-jucailin/SKILL.md +7 -4
  119. package/skills/weaver-e10-jucailin/references/recruit-create.md +3 -2
  120. package/skills/weaver-e10-jucailin/references/recruit-read.md +2 -1
  121. package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +3 -3
  122. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +30 -2
  123. package/skills/weaver-e10-mail/SKILL.md +17 -4
  124. package/skills/weaver-e10-meeting/SKILL.md +94 -409
  125. package/skills/weaver-e10-meeting/references/create-flow.md +188 -0
  126. package/skills/weaver-e10-meeting/references/create-guardrails.md +234 -0
  127. package/skills/weaver-e10-meeting/references/pitfalls.md +40 -0
  128. package/skills/weaver-e10-reception-flow/SKILL.md +62 -18
  129. package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +628 -26
  130. package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +96 -26
  131. package/skills/weaver-e10-reception-flow/scripts/render.py +81 -2
  132. package/skills/weaver-e10-recruit-stage/SKILL.md +45 -12
  133. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +58 -8
  134. package/skills/weaver-e10-recruit-stage/references/position-templates.md +5 -0
  135. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +1 -1
  136. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +1 -1
  137. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -11
  138. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +1 -1
  139. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +1 -1
  140. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
  141. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +16 -0
  142. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +1 -1
  143. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +1 -1
  144. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +1 -1
  145. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +127 -0
  146. package/skills/weaver-e10-shijingran/SKILL.md +6 -2
  147. package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
  148. package/skills/weaver-e10-workflow/SKILL.md +1 -1
  149. package/skills/weaver-e10-yepiaotong/SKILL.md +14 -8
  150. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +1 -1
  151. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +1 -1
  152. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +10 -3
  153. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +2 -0
  154. package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +2 -0
  155. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +69 -7
  156. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +3 -3
  157. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +9 -16
  158. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +6 -5
  159. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +206 -92
  160. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +27 -21
  161. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +35 -0
  162. package/skills/weaver-e10-yimiaoban/SKILL.md +2 -1
  163. package/skills/weaver-e10-yimiaoban/references/msg-write.md +32 -0
  164. package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +3 -0
  165. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
  166. package/dist/chunks/{ebuilder-form-GWDTKEI2.js → ebuilder-form-I5ZIX4WO.js} +3 -3
  167. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-README.md +0 -0
  168. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-SKILL.md +0 -0
  169. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-openai.yaml +0 -0
  170. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-position-templates.md +0 -0
  171. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +0 -0
  172. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +0 -0
  173. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +0 -0
  174. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +0 -0
  175. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +0 -0
  176. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +0 -0
  177. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +0 -0
  178. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +0 -0
  179. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +0 -0
  180. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +0 -0
  181. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +0 -0
  182. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +0 -0
  183. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +0 -0
  184. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +0 -0
  185. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +0 -0
  186. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +0 -0
  187. /package/{skills → docs/legacy}/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +0 -0
@@ -96,18 +96,22 @@ import { createHash } from "node:crypto";
96
96
  import { readFile, stat } from "node:fs/promises";
97
97
  import { basename } from "node:path";
98
98
  var UploadProtocolError = class extends Error {
99
- constructor(subtype, message, httpStatus, detail, contentType) {
99
+ constructor(subtype, message, httpStatus, detail, contentType, failedAt, request) {
100
100
  super(message);
101
101
  this.subtype = subtype;
102
102
  this.httpStatus = httpStatus;
103
103
  this.detail = detail;
104
104
  this.contentType = contentType;
105
+ this.failedAt = failedAt;
106
+ this.request = request;
105
107
  this.name = "UploadProtocolError";
106
108
  }
107
109
  subtype;
108
110
  httpStatus;
109
111
  detail;
110
112
  contentType;
113
+ failedAt;
114
+ request;
111
115
  };
112
116
  var object = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
113
117
  var hasKeys = (value) => Object.keys(value).length > 0;
@@ -215,7 +219,7 @@ function terminal(data, expectedSize) {
215
219
  }
216
220
  return record.id;
217
221
  }
218
- async function send(transport, path, fields, file) {
222
+ async function send(transport, path, fields, file, stage) {
219
223
  const form = new FormData();
220
224
  for (const [key, value] of Object.entries(fields)) form.append(key, value);
221
225
  if (file) {
@@ -225,7 +229,22 @@ async function send(transport, path, fields, file) {
225
229
  `e10upload.${file.ext}`
226
230
  );
227
231
  }
228
- return checkedData(await transport.post(path, form));
232
+ try {
233
+ return checkedData(await transport.post(path, form));
234
+ } catch (error) {
235
+ if (error instanceof UploadProtocolError) {
236
+ throw new UploadProtocolError(
237
+ error.subtype,
238
+ error.message,
239
+ error.httpStatus,
240
+ error.detail,
241
+ error.contentType,
242
+ stage,
243
+ { method: "POST", path, headers: [], auth: {} }
244
+ );
245
+ }
246
+ throw error;
247
+ }
229
248
  }
230
249
  async function uploadToFileService(input) {
231
250
  const buffer = await readFile(input.filePath);
@@ -281,7 +300,7 @@ async function uploadToFileService(input) {
281
300
  buffer,
282
301
  start: 0,
283
302
  size: buffer.length
284
- });
303
+ }, "moduleUpload");
285
304
  return { fileid: terminal(data, buffer.length), name, size: buffer.length, kind: ext };
286
305
  }
287
306
  const chunkMiB = Number(pre.chunkDto?.chunkSize);
@@ -307,7 +326,8 @@ async function uploadToFileService(input) {
307
326
  input.transport,
308
327
  "/api/file/module/upload?sf_request_type=ajax",
309
328
  { ...uploadFields, chunk: String(index), chunks: String(count), uploadShardSize: String(size) },
310
- { name, ext, buffer, start, size }
329
+ { name, ext, buffer, start, size },
330
+ "moduleUpload"
311
331
  );
312
332
  if (index === count - 1) {
313
333
  fileid = terminal(data, buffer.length);
@@ -319,11 +339,117 @@ async function uploadToFileService(input) {
319
339
  return { fileid, name, size: buffer.length, kind: ext };
320
340
  }
321
341
 
342
+ // src/shortcuts/reception/operations/restaurant-rooms.ts
343
+ var ROOM_SOURCE = {
344
+ group: "weaver-ebuilder-form-service",
345
+ table: "840360795890851855",
346
+ appId: "840360791696547845",
347
+ physicalTable: "uf_xstbxh",
348
+ fields: {
349
+ roomNo: "field_840360795890851870",
350
+ title: "field_840360795890851873",
351
+ region: "field_841962208930570241",
352
+ desc: "field_840360795890851871"
353
+ },
354
+ /** 数据集接口是 BI 侧能力,缺这个头会 403 */
355
+ businessId: "10000000000000000"
356
+ };
357
+ var pickStr = (value) => (value === null || value === void 0 ? "" : String(value)).trim();
358
+ function regionText(value) {
359
+ if (Array.isArray(value)) {
360
+ return value.map((item) => pickStr(item && typeof item === "object" ? item.name || item.label : item)).filter(Boolean).join("/");
361
+ }
362
+ if (value && typeof value === "object") {
363
+ const node = value;
364
+ return pickStr(node.name || node.label || node.text);
365
+ }
366
+ return pickStr(value);
367
+ }
368
+ function capacityFromText(text) {
369
+ const s = pickStr(text);
370
+ const matched = /可容纳\s*(\d{1,3})\s*人/.exec(s) || /[((]\s*(\d{1,3})\s*人/.exec(s) || /(\d{1,3})\s*人/.exec(s);
371
+ const n = matched ? Number(matched[1]) : 0;
372
+ return Number.isFinite(n) && n > 0 && n < 500 ? n : 0;
373
+ }
374
+ async function fetchRestaurantRooms(runtime, options = {}) {
375
+ const { fields, table, group, appId, businessId } = ROOM_SOURCE;
376
+ const pageSize = options.pageSize || 200;
377
+ const queryDto = {
378
+ tableId: table,
379
+ groupId: group,
380
+ pageNo: 1,
381
+ pageSize,
382
+ queryType: "getListData",
383
+ containDetailTable: false,
384
+ needFormat: true,
385
+ // e10-data 的 dyn() 会带 eteamsId / userId / tenantKey:服务端按这三项做行级权限,
386
+ // 缺了可能返回空列表而不是报错。值只在内存里传,不落盘、不打印。
387
+ dynamicParams: {
388
+ ...options.context?.eteamsId ? { eteamsId: options.context.eteamsId } : {},
389
+ ...options.context?.userId ? { userId: options.context.userId } : {},
390
+ ...options.context?.tenantKey ? { tenantKey: options.context.tenantKey } : {},
391
+ langId: 7,
392
+ formatDate: "yyyy-MM-dd HH:mm:ss",
393
+ isPublic: false
394
+ },
395
+ appId,
396
+ queryFields: Object.values(fields).map((fieldId) => ({
397
+ fieldId,
398
+ fieldName: fieldId,
399
+ objId: table,
400
+ mainField: true
401
+ })),
402
+ orderFields: [],
403
+ queryCount: true
404
+ };
405
+ const form = new FormData();
406
+ form.append("sourceType", "LOGIC");
407
+ form.append("queryDto", JSON.stringify(queryDto));
408
+ const response = await runtime.requestJson({
409
+ module: "reception",
410
+ operation: "reception.restaurantRooms",
411
+ method: "POST",
412
+ path: "/api/dw/newetl/chatBi/ds/getListDatas",
413
+ formData: form,
414
+ headers: {
415
+ langType: "zh_CN",
416
+ ebbusinessid: businessId,
417
+ referer: "/sp/ebddesigner/1282331905881874436"
418
+ },
419
+ timeoutMs: options.timeoutMs || 3e4
420
+ });
421
+ const payload = response.value || {};
422
+ const data = payload.data || payload;
423
+ const list = Array.isArray(data.list) ? data.list : Array.isArray(data.records) ? data.records : Array.isArray(data.rows) ? data.rows : [];
424
+ const rooms = [];
425
+ for (const row of list) {
426
+ if (!row) continue;
427
+ const name = pickStr(
428
+ row[fields.roomNo] || row[fields.title] || row.roomNo || row.name || row.title
429
+ );
430
+ if (!name) continue;
431
+ const desc = pickStr(row[fields.desc] || row.desc || row.description || "");
432
+ const region = regionText(row[fields.region] || row.region || row.area || "");
433
+ if (region && !/上海/.test(region)) continue;
434
+ rooms.push({
435
+ name,
436
+ capacity: capacityFromText(`${desc} ${name}`),
437
+ where: region,
438
+ region
439
+ });
440
+ }
441
+ return {
442
+ rooms,
443
+ total: Number(data.count || data.total || rooms.length) || rooms.length,
444
+ rawCount: list.length
445
+ };
446
+ }
447
+
322
448
  // src/shortcuts/reception/host.ts
323
449
  var UPLOAD_TIMEOUT_MS = 18e4;
324
450
  function createReceptionHost(ctx) {
325
451
  let cached = null;
326
- async function resolve() {
452
+ async function resolve2() {
327
453
  if (cached) return cached;
328
454
  const e10 = await getE10Session(ctx);
329
455
  if (!e10) {
@@ -345,17 +471,17 @@ function createReceptionHost(ctx) {
345
471
  return cached;
346
472
  }
347
473
  async function getSession() {
348
- return (await resolve()).info;
474
+ return (await resolve2()).info;
349
475
  }
350
476
  async function requireRuntime() {
351
- const { e10, info } = await resolve();
477
+ const { e10, info } = await resolve2();
352
478
  if (!e10) {
353
479
  throw receptionEnvironmentError("NO_SESSION", info.reason || "\u672A\u53D6\u5F97 E10 \u4F1A\u8BDD");
354
480
  }
355
481
  return { runtime: createE10RequestRuntime(ctx, e10), session: info };
356
482
  }
357
483
  async function uploadFile(filePath, options = {}) {
358
- const { e10, info } = await resolve();
484
+ const { e10, info } = await resolve2();
359
485
  if (!e10) {
360
486
  return {
361
487
  ok: false,
@@ -407,7 +533,19 @@ function createReceptionHost(ctx) {
407
533
  httpStatus: error.httpStatus,
408
534
  contentType: error.contentType,
409
535
  detail: error.detail,
410
- hint: `\u94FE\u8DEF teamsCheck \u2192 preUploadCheck \u2192 module/upload\uFF0Cmodule=${module}`
536
+ hint: `\u94FE\u8DEF teamsCheck \u2192 preUploadCheck \u2192 module/upload\uFF0Cmodule=${module}`,
537
+ failedAt: error.failedAt,
538
+ // 请求侧只暴露「带了哪些头、凭据在不在」,值一律不打印
539
+ request: {
540
+ method: error.request?.method || "POST",
541
+ path: error.request?.path || "",
542
+ headers: ["eteamsid", "cookie", "langtype", "referer"],
543
+ auth: {
544
+ eteamsid: info.userId ? "sent" : "missing",
545
+ cookie: info.userId ? "sent" : "missing",
546
+ userid: info.userId ? String(info.userId) : "missing"
547
+ }
548
+ }
411
549
  };
412
550
  }
413
551
  if (error instanceof E10ApiError) {
@@ -421,7 +559,22 @@ function createReceptionHost(ctx) {
421
559
  };
422
560
  }
423
561
  }
424
- return { getSession, requireRuntime, uploadFile };
562
+ async function fetchRestaurantRooms2(options = {}) {
563
+ const { e10 } = await resolve2();
564
+ if (!e10) {
565
+ throw receptionEnvironmentError("NO_SESSION", "\u672A\u53D6\u5F97 E10 \u4F1A\u8BDD\uFF0C\u65E0\u6CD5\u67E5\u8BE2\u5C0F\u98DF\u5802\u5305\u53A2");
566
+ }
567
+ const runtime = createE10RequestRuntime(ctx, e10);
568
+ return fetchRestaurantRooms(runtime, {
569
+ ...options,
570
+ context: {
571
+ eteamsId: e10.eteamsId,
572
+ userId: e10.userId,
573
+ tenantKey: e10.tenantKey
574
+ }
575
+ });
576
+ }
577
+ return { getSession, requireRuntime, uploadFile, fetchRestaurantRooms: fetchRestaurantRooms2 };
425
578
  }
426
579
 
427
580
  // src/shortcuts/reception/operations/panels.ts
@@ -708,6 +861,81 @@ function tryLoadRun(stateDir, runId) {
708
861
  return readJson(runPath(stateDir, runId));
709
862
  }
710
863
 
864
+ // src/shortcuts/reception/operations/leads.ts
865
+ var MEETING_ROOMS = [
866
+ { 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" },
867
+ { 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" },
868
+ { 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" }
869
+ ];
870
+ function normalizeMeetingRoom(value) {
871
+ const text = String(value || "").trim();
872
+ if (!text) return "";
873
+ const exact = MEETING_ROOMS.find((room) => room.name === text);
874
+ if (exact) return exact.name;
875
+ const byId = MEETING_ROOMS.find((room) => room.id === text);
876
+ if (byId) return byId.name;
877
+ const no = text.match(/(?:总部\s*)?(129|130|131)/);
878
+ if (!no) return "";
879
+ const hit = MEETING_ROOMS.find((room) => room.no === no[1]);
880
+ return hit ? hit.name : "";
881
+ }
882
+ function meetingRoomId(value) {
883
+ const name = normalizeMeetingRoom(value);
884
+ const hit = MEETING_ROOMS.find((room) => room.name === name);
885
+ return hit ? hit.id : "";
886
+ }
887
+ function normalizeMeeting(value) {
888
+ const raw = typeof value === "boolean" ? value ? "\u662F" : "\u5426" : String(value ?? "").trim();
889
+ if (!raw) return "";
890
+ if (/^(否|不|无|没|no|n|false|0)/i.test(raw)) return "\u5426";
891
+ if (/^(是|要|需要|安排|定|订|有|yes|y|true|1)/i.test(raw)) return "\u662F";
892
+ if (/(不需要|不用|无需|不安排|不定|不订)/.test(raw)) return "\u5426";
893
+ if (/(需要|安排|预定|预订|定会|开会|座谈)/.test(raw)) return "\u662F";
894
+ return "";
895
+ }
896
+ function applyMeetingPolicy(data) {
897
+ const declared = normalizeMeeting(data.meeting);
898
+ const room = normalizeMeetingRoom(data.meetingRoom);
899
+ const meeting = declared || (room ? "\u662F" : "");
900
+ if (meeting === "\u662F") {
901
+ data.meeting = "\u662F";
902
+ if (room) {
903
+ const hit = MEETING_ROOMS.find((item) => item.name === room);
904
+ const prev = data.meetingRoomMeta || {};
905
+ data.meetingRoom = room;
906
+ data.meetingRoomMeta = {
907
+ ...hit || {},
908
+ ...prev.capacity ? prev : {},
909
+ name: room,
910
+ reason: prev.capacity ? prev.reason || "\u6309\u6307\u5B9A\u623F\u95F4\u9884\u7559" : "\u6309\u6307\u5B9A\u623F\u95F4\u9884\u7559"
911
+ };
912
+ } else {
913
+ const picked = pickMeetingRoom(data.headcount, data.headcountMax);
914
+ data.meetingRoom = picked.name;
915
+ data.meetingRoomMeta = { ...picked };
916
+ }
917
+ return data;
918
+ }
919
+ if (meeting === "\u5426") {
920
+ data.meeting = "\u5426";
921
+ data.meetingRoom = "\u4E0D\u9700\u4F1A\u8BAE\u5BA4";
922
+ data.meetingRoomMeta = { name: "\u4E0D\u9700\u4F1A\u8BAE\u5BA4", where: "", capacity: 0, desc: "", reason: "\u672C\u6B21\u4E0D\u5B89\u6392\u4F1A\u8BAE" };
923
+ return data;
924
+ }
925
+ delete data.meetingRoom;
926
+ delete data.meetingRoomMeta;
927
+ return data;
928
+ }
929
+ function pickMeetingRoom(headcount, headcountMax) {
930
+ const upper = Number(headcountMax) || Number(headcount) || 0;
931
+ if (!upper) return { ...MEETING_ROOMS[1], reason: "\u4EBA\u6570\u672A\u5B9A\uFF0C\u9ED8\u8BA4\u9884\u7559 20 \u4EBA\u95F4" };
932
+ const fits = [...MEETING_ROOMS].filter((room) => room.capacity >= upper).sort((a, b) => a.capacity - b.capacity);
933
+ if (!fits.length) {
934
+ return { ...MEETING_ROOMS[1], reason: `\u6700\u591A ${upper} \u4EBA\uFF0C\u8D85\u51FA 20 \u4EBA\u4E0A\u9650\uFF0C\u9700\u53E6\u627E\u573A\u5730` };
935
+ }
936
+ return { ...fits[0], reason: `\u6700\u591A ${upper} \u4EBA\uFF0C${fits[0].capacity} \u4EBA\u95F4\u53EF\u5BB9\u7EB3` };
937
+ }
938
+
711
939
  // src/shortcuts/reception/operations/ask.ts
712
940
  async function ask(input, ctx) {
713
941
  const startedAt = Date.now();
@@ -717,6 +945,17 @@ async function ask(input, ctx) {
717
945
  const customerKeyword = input.customer || (typeof known.customer === "string" ? known.customer : "");
718
946
  const data = { ...known };
719
947
  delete data.customerId;
948
+ delete data.meetingRoom;
949
+ delete data.meetingRoomMeta;
950
+ delete data.logistics;
951
+ delete data.customer_need;
952
+ if (data.meetingExplicit === true) {
953
+ const meeting = normalizeMeeting(data.meeting);
954
+ if (meeting) data.meeting = meeting;
955
+ else delete data.meeting;
956
+ } else {
957
+ delete data.meeting;
958
+ }
720
959
  if (customerKeyword) data.customer = customerKeyword;
721
960
  const escorts = nameList(known.escorts);
722
961
  const explicitUser = nameList(input.user || "");
@@ -805,9 +1044,9 @@ function runSync(file, args, options = {}) {
805
1044
  };
806
1045
  }
807
1046
  function runAsync(file, args) {
808
- return new Promise((resolve) => {
1047
+ return new Promise((resolve2) => {
809
1048
  execFile(file, args, { encoding: "utf8", maxBuffer: 16 * 1024 * 1024 }, (error, stdout, stderr) => {
810
- resolve({
1049
+ resolve2({
811
1050
  stdout: String(stdout || ""),
812
1051
  stderr: String(stderr || ""),
813
1052
  status: error ? typeof error.code === "number" ? error.code : 1 : 0
@@ -1314,7 +1553,8 @@ function normalizeScheduleRows(data = {}) {
1314
1553
  if (!rows.length) {
1315
1554
  const date = data.visitDate || data.arrivalDate || "";
1316
1555
  const start = /^\d{1,2}:\d{2}$/.test(String(data.agendaStart || "")) ? String(data.agendaStart) : "09:30";
1317
- const room = data.meetingRoom || "\u603B\u90E8129/130/131\u4F1A\u8BAE\u5BA4\uFF08\u6309\u4EBA\u6570\u62E9\u4E00\uFF09";
1556
+ const venue = String(data.venue || "\u6CDB\u5FAE\u4E0A\u6D77\u603B\u90E8");
1557
+ const room = normalizeMeeting(data.meeting) === "\u662F" ? normalizeMeetingRoom(data.meetingRoom) || venue : venue;
1318
1558
  for (const item of STANDARD_AGENDA) {
1319
1559
  push(pick7({
1320
1560
  date,
@@ -1359,8 +1599,13 @@ function composeInitialValues(options) {
1359
1599
  case "\u5BA2\u6237\u5230\u8FBE\u65E5\u671F":
1360
1600
  case "\u5BA2\u6237\u53C2\u89C2\u65E5\u671F":
1361
1601
  return data.visitDate || data.arrivalDate || "";
1362
- case "\u5BA2\u6237\u9700\u6C42":
1363
- return data.demand || "";
1602
+ case "\u5BA2\u6237\u9700\u6C42": {
1603
+ const picked = String(data.customer_need || "").trim();
1604
+ const need = String(data.customerNeed || "").trim();
1605
+ const legacy = String(data.demand || "").trim();
1606
+ if (picked && need && !picked.includes(need)) return `${picked}\uFF08\u5BA2\u6237\u5173\u6CE8\uFF1A${need}\uFF09`;
1607
+ return picked || need || legacy;
1608
+ }
1364
1609
  case "\u5BA2\u6237\u6027\u8D28":
1365
1610
  return pick(codes["\u5BA2\u6237\u6027\u8D28"], data.nature) || data.nature || "";
1366
1611
  case "\u9879\u76EE\u91D1\u989D\uFF08\u4E07\u5143\uFF09":
@@ -1368,6 +1613,7 @@ function composeInitialValues(options) {
1368
1613
  case "\u6CDB\u5FAE\u5206\u652F\u673A\u6784\u53C2\u4E0E\u4EBA\u5458\uFF08\u4E3B\u8054\u7EDC\u4EBA\uFF0C\u6B64\u4EBA\u5FC5\u987B\u966A\u5BA2\u6237\u4E00\u540C\u53C2\u89C2\uFF09": {
1369
1614
  const escorts = nameList(data.escorts);
1370
1615
  if (escorts.length) return escorts;
1616
+ if (data.empId) return [String(data.empId)];
1371
1617
  const list = Array.isArray(data.companions) ? data.companions : [];
1372
1618
  const names = list.map((item) => typeof item === "string" ? item : item && (item.name || item.id)).map((item) => String(item || "").trim()).filter(Boolean);
1373
1619
  if (names.length) return names;
@@ -1377,6 +1623,20 @@ function composeInitialValues(options) {
1377
1623
  return pick(codes["\u662F\u5426\u9700\u8981\u9AD8\u5C42\u53C2\u4E0E"], data.senior) || data.senior || "";
1378
1624
  case "\u5BA2\u6237\u5E26\u961F\u4EBA":
1379
1625
  return data.leader || "";
1626
+ // 以下字段在 2026-11 的新布局里才有承载位(旧布局只有 10 个主表字段),
1627
+ // 之前这些信息只能写进附件文档;现在有地方就直接落表单。
1628
+ case "\u5BA2\u6237\u4EBA\u6570":
1629
+ return data.headcount === 0 || data.headcount ? data.headcount : "";
1630
+ case "\u7528\u9910\u4EBA\u6570":
1631
+ return data.mealHeadcount || data.restaurant && data.restaurant.headcount || "";
1632
+ case "\u5BA2\u6237\u63A5\u9001\u8981\u6C42\uFF08\u662F\u5426\u9700\u8981\u524D\u5F80\u673A\u573A\u3001\u8F66\u7AD9\u63A5\u9001\u5BA2\u6237\uFF0C\u5982\u9700\u8981\u8BF7\u5199\u660E\u63A5\u9001\u65F6\u95F4\u3001\u4EBA\u6570\u53CA\u7279\u6B8A\u8981\u6C42\uFF09":
1633
+ return data.pickup || "";
1634
+ case "\u662F\u5426\u9700\u8981\u8D2D\u4E70\u793C\u54C1\uFF08\u5982\u9700\u8D2D\u4E70\u5E94\u5199\u660E\u793C\u54C1\u7C7B\u522B\u3001\u4EF7\u4F4D\u3001\u9700\u8981\u65F6\u95F4\u7B49\uFF09":
1635
+ return data.gift || "";
1636
+ case "\u9884\u5B9A\u9152\u5E97":
1637
+ return data.hotel || "";
1638
+ case "\u6B22\u8FCE\u5B57\u5E55\u4E2D\u7684\u5BA2\u6237\u540D\u79F0":
1639
+ return data.customer || "";
1380
1640
  case "\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u884C\u7A0B\u5355\uFF08\u7531\u884C\u653F\u7ECF\u7406\u6C47\u603B\u540E\u53CD\u9988\uFF09":
1381
1641
  return "";
1382
1642
  default:
@@ -1411,6 +1671,71 @@ function composeInitialValues(options) {
1411
1671
  }));
1412
1672
  }
1413
1673
  if (!rows.length) warnings.push("\u65E5\u7A0B\u660E\u7EC6\u4E3A 0 \u884C\uFF1A\u9875\u9762\u4E0A\u660E\u7EC6\u4F1A\u662F\u7A7A\u7684");
1674
+ const meeting = snapshot && snapshot.meeting || null;
1675
+ const wantsMeeting = normalizeMeeting(data.meeting) === "\u662F";
1676
+ if (wantsMeeting && (!meeting || !meeting.fields)) {
1677
+ warnings.push("\u4F1A\u8BAE\u5B57\u6BB5\u672A\u586B\uFF1A\u5B57\u6BB5\u5FEB\u7167\u7F3A\u5C11 meeting \u8282\u70B9\uFF0C\u6280\u80FD\u5305\u7248\u672C\u8FC7\u65E7\uFF0C\u9700\u66F4\u65B0 data/fields-snapshot.json");
1678
+ }
1679
+ if (meeting && meeting.fields && wantsMeeting) {
1680
+ const room = normalizeMeetingRoom(data.meetingRoom);
1681
+ const options2 = Array.isArray(meeting.roomOptions) ? meeting.roomOptions : [];
1682
+ if (!room || options2.length > 0 && !options2.includes(room)) {
1683
+ warnings.push(`\u4F1A\u8BAE\u5B57\u6BB5\u672A\u586B\uFF1A\u4F1A\u8BAE\u5BA4\u300C${String(data.meetingRoom || "").trim() || "\u7A7A"}\u300D\u4E0D\u5728 ${options2.join(" / ") || "\u5019\u9009"} \u5185`);
1684
+ } else {
1685
+ const first = rows[0] || {};
1686
+ const second = rows[1] || first;
1687
+ const last = rows[rows.length - 1] || first;
1688
+ const date = String(data.visitDate || data.arrivalDate || first.date || "");
1689
+ const startTime = String(data.meetingStartTime || second.time || first.time || "");
1690
+ const endTime = String(
1691
+ data.meetingEndTime || (last.time ? hhmmPlus(last.time, 30) : "")
1692
+ );
1693
+ const putMeeting = (id, value) => {
1694
+ if (id && value !== "" && value !== null && value !== void 0) {
1695
+ items.push({ fieldId: id, value: String(value) });
1696
+ }
1697
+ };
1698
+ const roomId = pick(meeting.roomOptionIds, room) || meetingRoomId(room);
1699
+ const roomPrefix = String(meeting.roomValuePrefix ?? "##");
1700
+ putMeeting(meeting.fields.room, roomId ? `${roomPrefix}${roomId}` : room);
1701
+ putMeeting(meeting.fields.title, data.meetingTitle || `${data.customer || "\u5BA2\u6237"}\u6765\u8BBF\u4EA4\u6D41`);
1702
+ putMeeting(meeting.fields.startDate, date);
1703
+ putMeeting(meeting.fields.startTime, startTime);
1704
+ putMeeting(meeting.fields.endDate, data.meetingEndDate || date);
1705
+ putMeeting(meeting.fields.endTime, endTime);
1706
+ if (!startTime || !endTime) warnings.push("\u4F1A\u8BAE\u5F00\u59CB/\u7ED3\u675F\u65F6\u95F4\u672A\u80FD\u4ECE\u65E5\u7A0B\u63A8\u7B97\uFF0C\u8BF7\u5728\u9875\u9762\u8865\u5145");
1707
+ }
1708
+ }
1709
+ const restaurant = snapshot && snapshot.restaurant || null;
1710
+ if (data.restaurant && data.restaurant.booked && (!restaurant || !restaurant.fields)) {
1711
+ warnings.push("\u5C0F\u9910\u5385\u4FE1\u606F\u65E0\u5BF9\u5E94\u5B57\u6BB5\uFF08\u5B57\u6BB5\u5FEB\u7167\u7F3A\u5C11 restaurant \u8282\u70B9\uFF09\uFF0C\u5DF2\u4EC5\u5199\u5165\u9644\u4EF6\u6587\u6863");
1712
+ todos.push("\u5C0F\u9910\u5385\u4FE1\u606F\u65E0\u5B57\u6BB5\u627F\u8F7D\uFF0C\u8BF7\u5728\u6D41\u7A0B\u5907\u6CE8\u6216\u9644\u4EF6\u4E2D\u8865\u5145");
1713
+ } else if (data.restaurant && data.restaurant.booked && restaurant && restaurant.fields) {
1714
+ const roomNo = String(data.restaurant.roomNo || "").trim();
1715
+ const state = String(data.restaurant.roomState || "");
1716
+ if (!roomNo) {
1717
+ const why = state === "no-candidates" ? "\u5305\u53A2\u6570\u636E\u6E90\u672A\u53D6\u5230\uFF08\u5EFA\u6A21\u8868\u5355\u300C\u5C0F\u98DF\u5802\u5305\u53A2\u300D\u65E0\u8FD4\u56DE\uFF09" : state === "candidates-unparsed" ? `\u5305\u53A2\u5019\u9009\u89E3\u6790\u5931\u8D25\uFF1A${data.restaurant.roomReason || "\u8BA4\u4E0D\u51FA\u5305\u53A2\u540D"}` : "\u5305\u53A2\u53F7\u4E3A\u7A7A";
1718
+ warnings.push(`\u5C0F\u9910\u5385\u9884\u5B9A\u660E\u7EC6\u672A\u586B\uFF1A${why}`);
1719
+ todos.push(`\u5C0F\u9910\u5385\u5305\u53A2\u5F85\u884C\u653F\u786E\u8BA4\uFF08${why}\uFF09`);
1720
+ } else {
1721
+ if (state === "overflow") {
1722
+ const cap = Number(data.restaurant.roomCapacity) || 0;
1723
+ warnings.push(`\u5C0F\u9910\u5385\u5305\u53A2\u5DF2\u6309\u6700\u5927\u95F4\u9884\u7559\uFF08${cap} \u4EBA\uFF09\uFF0C\u672C\u6B21 ${data.restaurant.headcount || "?"} \u4EBA\u9700\u53E6\u884C\u5B89\u6392`);
1724
+ todos.push(`\u5C0F\u9910\u5385\u73B0\u6709\u5305\u53A2\u6700\u5927 ${cap} \u4EBA\uFF0C\u672C\u6B21\u4EBA\u6570\u8D85\u51FA\uFF0C\u9700\u53E6\u884C\u5B89\u6392`);
1725
+ }
1726
+ const putRest = (id, value) => {
1727
+ if (id && value !== "" && value !== null && value !== void 0) {
1728
+ items.push({ fieldId: id, value: String(value), dataIndex: 0 });
1729
+ }
1730
+ };
1731
+ putRest(restaurant.fields.roomNo, roomNo);
1732
+ putRest(restaurant.fields.headcount, data.restaurant.headcount || "");
1733
+ putRest(restaurant.fields.startDate, data.restaurant.startDate || "");
1734
+ putRest(restaurant.fields.startTime, data.restaurant.startTime || "");
1735
+ putRest(restaurant.fields.endDate, data.restaurant.endDate || "");
1736
+ putRest(restaurant.fields.endTime, data.restaurant.endTime || "");
1737
+ }
1738
+ }
1414
1739
  const built = buildCustomParams(items);
1415
1740
  params.values = built.values;
1416
1741
  params.keys = built.keys;
@@ -1444,15 +1769,40 @@ async function render(input, ctx) {
1444
1769
  }
1445
1770
  );
1446
1771
  }
1772
+ const composedWarnings = [];
1447
1773
  const answers = input.answers ?? run.answers ?? {};
1448
1774
  const data = mergeAnswers(run, answers);
1449
1775
  const argAttachment = String(input.attachmentFileid || "").trim();
1450
1776
  const runAttachments = Array.isArray(run.attachmentFileids) ? run.attachmentFileids : [];
1451
- const hasCompanions = Array.isArray(data.companions) && data.companions.length > 0;
1777
+ if (data.restaurant && data.restaurant.booked && !String(data.restaurant.roomNo || "").trim() && input.allowMissingRestaurant !== true) {
1778
+ throw receptionBusinessError(
1779
+ "RESTAURANT_DETAIL_MISSING",
1780
+ "\u63D0\u4E86\u5C0F\u9910\u5385\uFF0C\u4F46\u6CA1\u62FF\u5230\u53EF\u7528\u5305\u53A2\u53F7\uFF0C\u586B\u5355\u9875\u4F1A\u7F3A\u300C\u5C0F\u9910\u5385\u9884\u5B9A\u660E\u7EC6\u300D",
1781
+ {
1782
+ roomState: data.restaurant.roomState,
1783
+ roomReason: data.restaurant.roomReason,
1784
+ candidates: data.restaurant.candidates || [],
1785
+ hint: "\u7528 --restaurant-rooms-file \u4F20\u300C\u5C0F\u98DF\u5802\u5305\u53A2\u300D\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u5373\u53EF\uFF09\uFF1B\u786E\u5B9E\u6CA1\u6709\u53EF\u7528\u5305\u53A2\u65F6\u52A0 --allow-missing-restaurant \u653E\u884C\uFF0C\u660E\u7EC6\u4F1A\u7559\u7A7A\u8FDB\u5F85\u529E"
1786
+ }
1787
+ );
1788
+ }
1789
+ applyMeetingPolicy(data);
1790
+ if (normalizeMeeting(data.meeting) === "\u662F") {
1791
+ if (!Number(data.headcount)) {
1792
+ data.todos = [...Array.isArray(data.todos) ? data.todos : [], "\u4EBA\u6570\u672A\u586B\uFF0C\u4F1A\u8BAE\u5BA4\u6309\u9ED8\u8BA4\u9884\u7559"];
1793
+ }
1794
+ const meta = data.meetingRoomMeta || {};
1795
+ if (meta.capacity && Number(data.headcount) > Number(meta.capacity)) {
1796
+ composedWarnings.push(
1797
+ `\u4F1A\u8BAE\u5BA4\u6309\u6700\u5927\u95F4\u9884\u7559\uFF08${meta.capacity} \u4EBA\uFF09\uFF0C\u672C\u6B21 ${data.headcount} \u4EBA\u8D85\u51FA\uFF0C\u9700\u53E6\u884C\u5B89\u6392`
1798
+ );
1799
+ }
1800
+ }
1452
1801
  const hasEscorts = nameList(data.escorts).length > 0;
1453
- if (!data.empId && !hasCompanions && !hasEscorts) {
1802
+ if (!data.empId && !hasEscorts) {
1454
1803
  const session = await ctx.host.getSession();
1455
1804
  data.empId = session.userId || "";
1805
+ if (!data.empId) composedWarnings.push("\u4E3B\u8054\u7EDC\u4EBA\u672A\u53D6\u5230\u767B\u5F55\u4EBA\uFF0C\u8BF7\u5728\u9875\u9762\u4E0A\u624B\u52A8\u9009\u62E9");
1456
1806
  }
1457
1807
  const composed = composeInitialValues({
1458
1808
  snapshot: resolved.snapshot,
@@ -1469,6 +1819,7 @@ async function render(input, ctx) {
1469
1819
  "\u8BF7\u5728\u9875\u9762\u4E0A\u6838\u5BF9\u300C\u6CDB\u5FAE\u5206\u652F\u673A\u6784\u53C2\u4E0E\u4EBA\u5458\uFF08\u4E3B\u8054\u7EDC\u4EBA\uFF09\u300D\u5B57\u6BB5\u3002"
1470
1820
  ].join(""));
1471
1821
  }
1822
+ if (composedWarnings.length) composed.warnings.push(...composedWarnings);
1472
1823
  if (!composed.keys.length) {
1473
1824
  return {
1474
1825
  state: "empty",
@@ -1550,12 +1901,52 @@ var docRenderOperation = {
1550
1901
  execute: (input, ctx) => docRender(input, ctx)
1551
1902
  };
1552
1903
 
1904
+ // src/shortcuts/reception/operations/restaurantrooms.ts
1905
+ import { writeFileSync as writeFileSync3, mkdirSync as mkdirSync3 } from "node:fs";
1906
+ import { dirname as dirname2, resolve } from "node:path";
1907
+ async function restaurantRooms(input, ctx) {
1908
+ const startedAt = Date.now();
1909
+ const result = await ctx.host.fetchRestaurantRooms({
1910
+ pageSize: Number(input.pageSize) || void 0,
1911
+ timeoutMs: Number(input.timeoutMs) || void 0
1912
+ });
1913
+ let file = "";
1914
+ if (input.out) {
1915
+ const target = resolve(String(input.out));
1916
+ mkdirSync3(dirname2(target), { recursive: true });
1917
+ writeFileSync3(
1918
+ target,
1919
+ JSON.stringify({ rooms: result.rooms, source: "e10-ds", fetchedAt: (/* @__PURE__ */ new Date()).toISOString() }, null, 2),
1920
+ "utf8"
1921
+ );
1922
+ file = target.replace(/\\/gu, "/");
1923
+ }
1924
+ return {
1925
+ state: "rooms",
1926
+ ok: true,
1927
+ data: {
1928
+ rooms: result.rooms,
1929
+ total: result.total,
1930
+ rawCount: result.rawCount,
1931
+ file,
1932
+ /** 超出所有包厢容量时,提示行政区另找场地 */
1933
+ maxCapacity: result.rooms.reduce((max, room) => Math.max(max, room.capacity || 0), 0),
1934
+ timings: { totalMs: Date.now() - startedAt }
1935
+ },
1936
+ warnings: result.rooms.length ? [] : ["\u300C\u5C0F\u98DF\u5802\u5305\u53A2\u300D\u672A\u8FD4\u56DE\u53EF\u7528\u623F\u95F4\uFF1A\u68C0\u67E5\u6570\u636E\u96C6\u6743\u9650\u6216\u4E0A\u6D77\u533A\u57DF\u6570\u636E"]
1937
+ };
1938
+ }
1939
+ var restaurantRoomsOperation = {
1940
+ execute: (input, ctx) => restaurantRooms(input, ctx)
1941
+ };
1942
+
1553
1943
  // src/shortcuts/reception/operations/registry.ts
1554
1944
  var REGISTRY = /* @__PURE__ */ new Map([
1555
1945
  ["reception.ask", askOperation],
1556
1946
  ["reception.doc", docOperation],
1557
1947
  ["reception.docRender", docRenderOperation],
1558
- ["reception.render", renderOperation]
1948
+ ["reception.render", renderOperation],
1949
+ ["reception.restaurantRooms", restaurantRoomsOperation]
1559
1950
  ]);
1560
1951
  function getReceptionOperation(name) {
1561
1952
  const hit = REGISTRY.get(name);
@@ -1579,8 +1970,25 @@ var receptionOperations = [
1579
1970
  properties: {
1580
1971
  known: {
1581
1972
  type: "object",
1582
- description: "\u6A21\u578B\u62BD\u53D6\u7684 7 \u9879\uFF1Acustomer/headcount/visitDate/visitType/companions/demand/\u63A5\u5F85\u7EC6\u8282",
1583
- additionalProperties: true
1973
+ description: "\u6A21\u578B\u4ECE\u539F\u8BDD\u62BD\u53D6\u7684\u5B57\u6BB5\u30027 \u9879\u4E3B\u5B57\u6BB5 + 4 \u4E2A\u5173\u952E\u5B57\uFF08escorts/customerNeed/meeting/meetingExplicit\uFF09\uFF0C\u540E\u56DB\u4E2A\u4EE5\u524D\u662F\u9690\u5F0F\u7684\uFF0C\u8FD9\u91CC\u663E\u5F0F\u58F0\u660E\u3002",
1974
+ additionalProperties: true,
1975
+ properties: {
1976
+ customer: { type: "string", description: "\u5BA2\u6237\u540D\u79F0" },
1977
+ headcount: { type: "string", description: "\u6765\u8BBF\u4EBA\u6570\uFF0C\u652F\u6301\u300C6-10\u4EBA\u300D\u8FD9\u7C7B\u533A\u95F4" },
1978
+ visitDate: { type: "string", description: "\u53C2\u89C2\u65E5\u671F yyyy-MM-dd" },
1979
+ visitType: { type: "string", description: "\u53C2\u89C2\u7C7B\u578B\uFF1A\u53C2\u89C2\u4E0A\u6D77\u603B\u90E8 / \u53C2\u89C2\u5178\u578B\u5BA2\u6237" },
1980
+ escorts: {
1981
+ type: ["string", "array"],
1982
+ description: "\u4E3B\u8054\u7EDC\u4EBA\uFF08\u5BF9\u63A5\u4EBA\uFF09\uFF0C\u4F18\u5148\u7EA7\u6700\u9AD8\uFF1B\u4E0D\u4F20\u5219\u7528\u5F53\u524D\u767B\u5F55\u4EBA\u3002\u7981\u6B62\u628A\u4E3B\u8054\u7EDC\u4EBA\u5199\u8FDB companions"
1983
+ },
1984
+ companions: { type: ["string", "array"], description: "\u966A\u540C\u4EBA\u5458\uFF1B\u4EC5\u7528\u4E8E\u300C\u53C2\u4E0E\u4EBA\u5458\u300D\uFF0C\u4E0D\u53C2\u4E0E\u4E3B\u8054\u7EDC\u4EBA\u53D6\u503C" },
1985
+ demand: { type: "string", description: "\u5BA2\u6237\u9700\u6C42\uFF08\u65E7\u5B57\u6BB5\u540D\uFF0CcustomerNeed \u4F18\u5148\uFF09" },
1986
+ customerNeed: { type: "string", description: "\u5BA2\u6237\u9700\u6C42\u539F\u6587\uFF1B\u5DF2\u7ED9\u5219\u4E0D\u518D\u51FA\u300C\u5BA2\u6237\u9700\u6C42\u300D\u9762\u677F\uFF0C\u5E76\u5199\u5165\u8868\u5355\u5BA2\u6237\u9700\u6C42\u5B57\u6BB5" },
1987
+ meeting: { type: "string", enum: ["\u662F", "\u5426"], description: "\u662F\u5426\u9700\u8981\u4F1A\u8BAE\u5BA4\u5EA7\u8C08\uFF1B\u5FC5\u987B\u4E0E meetingExplicit \u4E00\u8D77\u4F20\u624D\u751F\u6548" },
1988
+ meetingExplicit: { type: "boolean", description: "\u4F1A\u8BAE\u8868\u6001\u662F\u5426\u6765\u81EA\u539F\u8BDD\u660E\u786E\u8868\u8FF0\uFF1Bfalse/\u7F3A\u7701\u89C6\u4E3A\u672A\u8868\u6001\uFF0C\u7B2C\u4E09\u5C4F\u7167\u95EE" },
1989
+ restaurantIntent: { type: "boolean", description: "\u539F\u8BDD\u662F\u5426\u63D0\u5230\u5C0F\u9910\u5385/\u5305\u53A2\uFF1Btrue \u5219\u5FC5\u987B\u5E26 --restaurant-rooms-file" },
1990
+ logistics: { type: "string", description: "\u63A5\u5F85\u7EC6\u8282\u539F\u6587\uFF1A\u4EBA\u6570/\u63A5\u9001/\u7528\u9910/\u4F4F\u5BBF/\u4F34\u624B\u793C/\u624B\u673A" }
1991
+ }
1584
1992
  },
1585
1993
  user: { type: "string", description: "\u966A\u540C\u4EBA\u5458\u59D3\u540D\uFF0C\u591A\u4EBA\u7528\u9017\u53F7\u5206\u9694\uFF1B\u4E0D\u4F20\u5219\u7528\u5F53\u524D\u767B\u5F55\u4EBA\u515C\u5E95" },
1586
1994
  customer: { type: "string", description: "\u5BA2\u6237\u540D\u79F0\uFF08\u8986\u76D6 known.customer\uFF09" },
@@ -1609,6 +2017,10 @@ var receptionOperations = [
1609
2017
  known: { type: "object", description: "run \u5931\u6548\u65F6\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C\uFF0C\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA run" },
1610
2018
  answers: { type: "object", description: "ask_user \u9762\u677F\u56DE\u586B\u503C\uFF1A{customer_need, logistics, fields}" },
1611
2019
  casesFile: { type: "string", description: "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON \u6587\u4EF6\u8DEF\u5F84\uFF08\u8F6F\u4F9D\u8D56\uFF0C\u7F3A\u7701\u5219\u4E0D\u6CE8\u5165\uFF09" },
2020
+ restaurantRoomsFile: {
2021
+ type: "string",
2022
+ description: "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\u6E05\u5355\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09\uFF1B\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u6CA1\u7ED9\uFF0C\u660E\u7EC6\u4F1A\u7559\u7A7A\u5E76\u8FDB\u5F85\u529E"
2023
+ },
1612
2024
  workflow: { type: "string", description: "\u76EE\u6807\u6D41\u7A0B\u540D" },
1613
2025
  outDir: { type: "string", description: "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55" },
1614
2026
  noUpload: { type: "boolean", description: "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6" },
@@ -1651,7 +2063,11 @@ var receptionOperations = [
1651
2063
  enum: ["inline", "popup", "drawer"],
1652
2064
  description: "\u6253\u5F00\u5F62\u6001\uFF1Adrawer \u4E3A\u53F3\u4FA7\u62BD\u5C49\uFF08\u9ED8\u8BA4\uFF09"
1653
2065
  },
1654
- snapshot: { type: "string", description: "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84" }
2066
+ snapshot: { type: "string", description: "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84" },
2067
+ allowMissingRestaurant: {
2068
+ type: "boolean",
2069
+ description: "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u6CA1\u5305\u53A2\u53F7\u65F6\u4ECD\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09\uFF1B\u9ED8\u8BA4 false\uFF0C\u7F3A\u5305\u53A2\u53F7\u76F4\u63A5\u62A5\u9519"
2070
+ }
1655
2071
  }
1656
2072
  },
1657
2073
  outputSchema: {
@@ -1682,6 +2098,7 @@ var receptionOperations = [
1682
2098
  known: { type: "object", description: "run \u5931\u6548\u65F6\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C\uFF0C\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA run" },
1683
2099
  answers: { type: "object", description: "ask_user \u9762\u677F\u56DE\u586B\u503C\uFF1A{customer_need, logistics, fields}" },
1684
2100
  casesFile: { type: "string", description: "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON \u6587\u4EF6\u8DEF\u5F84\uFF08\u8F6F\u4F9D\u8D56\uFF09" },
2101
+ restaurantRoomsFile: { type: "string", description: "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\u6E05\u5355\uFF08e10-api ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09" },
1685
2102
  workflow: { type: "string", description: "\u76EE\u6807\u6D41\u7A0B\u540D" },
1686
2103
  outDir: { type: "string", description: "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55" },
1687
2104
  noUpload: { type: "boolean", description: "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6" },
@@ -1707,6 +2124,7 @@ var receptionOperations = [
1707
2124
  attachments: { type: "array", items: { type: "object" } },
1708
2125
  attachmentPending: { type: "boolean" },
1709
2126
  uploadDiagnostics: { type: "array", items: { type: "object" } },
2127
+ restaurant: { type: ["object", "null"], description: "\u5C0F\u9910\u5385\u9884\u5B9A\u660E\u7EC6\uFF08\u542B roomState / \u5019\u9009\uFF09\uFF1Bnull \u8868\u793A\u6CA1\u63D0\u8FD9\u4EF6\u4E8B" },
1710
2128
  customParams: { type: "object" },
1711
2129
  fieldAssignKeys: { type: "string" },
1712
2130
  detailRowCount: { type: "integer" },
@@ -1718,6 +2136,31 @@ var receptionOperations = [
1718
2136
  timings: { type: "object" }
1719
2137
  }
1720
2138
  }
2139
+ },
2140
+ {
2141
+ name: "reception.restaurantRooms",
2142
+ risk: "read",
2143
+ summary: "\u53EA\u8BFB\u67E5\u8BE2\u300C\u5C0F\u98DF\u5802\u5305\u53A2\u300D\uFF08\u5EFA\u6A21\u8868\u5355\u5B9E\u67E5\uFF0C\u4EC5\u4E0A\u6D77\uFF09\uFF0C\u4EA7\u51FA\u53EF\u76F4\u63A5\u4F20\u7ED9 doc-render \u7684 --restaurant-rooms-file \u5019\u9009\u6E05\u5355\u3002\u5305\u53A2\u662F\u4E1A\u52A1\u6570\u636E\uFF0C\u6587\u6863\u68C0\u7D22\u641C\u4E0D\u5230\u3002",
2144
+ inputSchema: {
2145
+ type: "object",
2146
+ additionalProperties: false,
2147
+ properties: {
2148
+ pageSize: { type: "integer", description: "\u5355\u9875\u6761\u6570\uFF0C\u9ED8\u8BA4 200\uFF08\u540E\u7AEF name \u8FC7\u6EE4\u5F53\u524D\u65E0\u6548\uFF0C\u9760\u591A\u6293\u672C\u5730\u7B5B\uFF09" },
2149
+ out: { type: "string", description: "\u628A\u5019\u9009\u6E05\u5355\u5199\u5230\u8BE5\u8DEF\u5F84\u7684 JSON \u6587\u4EF6\uFF0C\u4FBF\u4E8E\u76F4\u63A5\u4F20\u7ED9 --restaurant-rooms-file" },
2150
+ timeoutMs: { type: "integer", description: "\u8D85\u65F6\u6BEB\u79D2\uFF0C\u9ED8\u8BA4 30000" }
2151
+ }
2152
+ },
2153
+ outputSchema: {
2154
+ type: "object",
2155
+ properties: {
2156
+ rooms: { type: "array", items: { type: "object" } },
2157
+ total: { type: "integer" },
2158
+ rawCount: { type: "integer" },
2159
+ file: { type: "string" },
2160
+ maxCapacity: { type: "integer" },
2161
+ timings: { type: "object" }
2162
+ }
2163
+ }
1721
2164
  }
1722
2165
  ];
1723
2166
  var receptionManifest = {
@@ -1853,13 +2296,14 @@ var receptionShortcut = {
1853
2296
  workflow: textOf(opts, "workflow") || void 0
1854
2297
  }, opts);
1855
2298
  }));
1856
- reception.command("doc").description("\u751F\u6210\u884C\u7A0B\u5355 docx + \u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF0C\u5E76\u4E0A\u4F20\u9644\u4EF6\uFF08\u96F6\u5199\u8BF7\u6C42\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").action(action(async (ctx, options) => {
2299
+ reception.command("doc").description("\u751F\u6210\u884C\u7A0B\u5355 docx + \u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF0C\u5E76\u4E0A\u4F20\u9644\u4EF6\uFF08\u96F6\u5199\u8BF7\u6C42\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--restaurant-rooms-file <path>", "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").action(action(async (ctx, options) => {
1857
2300
  const opts = asOptions(options);
1858
2301
  await runOperation(ctx, "reception.doc", {
1859
2302
  runId: textOf(opts, "runId") || void 0,
1860
2303
  known: jsonArg(opts, "known", { code: "KNOWN" }) || void 0,
1861
2304
  answers: parseAnswers(opts) || void 0,
1862
2305
  casesFile: textOf(opts, "casesFile") || void 0,
2306
+ restaurantRoomsFile: textOf(opts, "restaurantRoomsFile") || void 0,
1863
2307
  workflow: textOf(opts, "workflow") || void 0,
1864
2308
  outDir: textOf(opts, "outDir") || void 0,
1865
2309
  snapshot: textOf(opts, "snapshot") || void 0,
@@ -1867,23 +2311,33 @@ var receptionShortcut = {
1867
2311
  noUpload: opts.upload === false
1868
2312
  }, opts);
1869
2313
  }));
1870
- reception.command("render").description("\u8F93\u51FA\u586B\u5355\u9875 browsertool\uFF08\u7EAF\u672C\u5730\uFF0C\u4E0D\u8C03\u63A5\u53E3\uFF09").option("--run-id <id>", "ask / doc \u8FD4\u56DE\u7684 runId").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--attachment-fileid <ids>", "\u9644\u4EF6 fileid\uFF0C\u591A\u4E2A\u9017\u53F7\u5206\u9694").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84").action(action(async (ctx, options) => {
2314
+ reception.command("render").description("\u8F93\u51FA\u586B\u5355\u9875 browsertool\uFF08\u7EAF\u672C\u5730\uFF0C\u4E0D\u8C03\u63A5\u53E3\uFF09").option("--run-id <id>", "ask / doc \u8FD4\u56DE\u7684 runId").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--attachment-fileid <ids>", "\u9644\u4EF6 fileid\uFF0C\u591A\u4E2A\u9017\u53F7\u5206\u9694").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84").option("--allow-missing-restaurant", "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u6CA1\u5305\u53A2\u53F7\u65F6\u4ECD\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09").action(action(async (ctx, options) => {
1871
2315
  const opts = asOptions(options);
1872
2316
  await runOperation(ctx, "reception.render", {
1873
2317
  runId: textOf(opts, "runId") || void 0,
1874
2318
  answers: parseAnswers(opts) || void 0,
1875
2319
  attachmentFileid: textOf(opts, "attachmentFileid") || void 0,
1876
2320
  sdkRender: textOf(opts, "sdkRender") || void 0,
1877
- snapshot: textOf(opts, "snapshot") || void 0
2321
+ snapshot: textOf(opts, "snapshot") || void 0,
2322
+ allowMissingRestaurant: opts.allowMissingRestaurant === true
2323
+ }, opts);
2324
+ }));
2325
+ reception.command("restaurant-rooms").description("\u53EA\u8BFB\u67E5\u8BE2\u300C\u5C0F\u98DF\u5802\u5305\u53A2\u300D\uFF08\u5EFA\u6A21\u8868\u5355\u5B9E\u67E5\uFF0C\u4EC5\u4E0A\u6D77\uFF09\uFF0C\u4EA7\u51FA\u53EF\u76F4\u63A5\u4F20\u7ED9 doc-render \u7684\u5019\u9009").option("--page-size <n>", "\u5355\u9875\u6761\u6570\uFF0C\u9ED8\u8BA4 200\uFF08\u540E\u7AEF name \u8FC7\u6EE4\u65E0\u6548\uFF0C\u9760\u591A\u6293\u672C\u5730\u7B5B\uFF09").option("--out <path>", "\u628A\u5019\u9009\u6E05\u5355\u5199\u5230\u8BE5 JSON \u6587\u4EF6\uFF0C\u4FBF\u4E8E\u76F4\u63A5\u4F20\u7ED9 --restaurant-rooms-file").option("--timeout-ms <n>", "\u8D85\u65F6\u6BEB\u79D2\uFF0C\u9ED8\u8BA4 30000").action(action(async (ctx, options) => {
2326
+ const opts = asOptions(options);
2327
+ await runOperation(ctx, "reception.restaurantRooms", {
2328
+ pageSize: textOf(opts, "pageSize") ? Number(textOf(opts, "pageSize")) : void 0,
2329
+ out: textOf(opts, "out") || void 0,
2330
+ timeoutMs: textOf(opts, "timeoutMs") ? Number(textOf(opts, "timeoutMs")) : void 0
1878
2331
  }, opts);
1879
2332
  }));
1880
- reception.command("doc-render").description("\u4E00\u6B21\u5B8C\u6210\u300C\u51FA\u4EF6 + \u4F20\u9644\u4EF6 + \u62FC\u586B\u5355\u53C2\u6570\u300D\uFF08doc \u4E0E render \u5408\u5E76\uFF0C\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").action(action(async (ctx, options) => {
2333
+ reception.command("doc-render").description("\u4E00\u6B21\u5B8C\u6210\u300C\u51FA\u4EF6 + \u4F20\u9644\u4EF6 + \u62FC\u586B\u5355\u53C2\u6570\u300D\uFF08doc \u4E0E render \u5408\u5E76\uFF0C\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--restaurant-rooms-file <path>", "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").action(action(async (ctx, options) => {
1881
2334
  const opts = asOptions(options);
1882
2335
  await runOperation(ctx, "reception.docRender", {
1883
2336
  runId: textOf(opts, "runId") || void 0,
1884
2337
  known: jsonArg(opts, "known", { code: "KNOWN" }) || void 0,
1885
2338
  answers: parseAnswers(opts) || void 0,
1886
2339
  casesFile: textOf(opts, "casesFile") || void 0,
2340
+ restaurantRoomsFile: textOf(opts, "restaurantRoomsFile") || void 0,
1887
2341
  workflow: textOf(opts, "workflow") || void 0,
1888
2342
  outDir: textOf(opts, "outDir") || void 0,
1889
2343
  snapshot: textOf(opts, "snapshot") || void 0,