weaver-work-cli 0.1.70 → 0.1.73

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 (263) hide show
  1. package/dist/chunks/{archive-VUTREF3P.js → archive-THZV4ND4.js} +22 -5
  2. package/dist/chunks/{archive-oa-VXXO4RTB.js → archive-oa-PQ23OLEV.js} +17 -5
  3. package/dist/chunks/{asset-45U6TY7I.js → asset-RGPROZYH.js} +22 -5
  4. package/dist/chunks/{asset-idle-YCRBMTIT.js → asset-idle-Z2PDX7NA.js} +15 -5
  5. package/dist/chunks/{attachment-content-DMU7KNZ7.js → attachment-content-R3RPVOYE.js} +3 -3
  6. package/dist/chunks/{blog-5AML4WMG.js → blog-7U3QZPIF.js} +25 -5
  7. package/dist/chunks/{caizhilian-3P7BUNHT.js → caizhilian-3AB42GCV.js} +22 -8
  8. package/dist/chunks/{calendar-2HUXM3CZ.js → calendar-KINM64E4.js} +15 -5
  9. package/dist/chunks/{chunk-EHH363SP.js → chunk-2CHGUYMG.js} +4 -4
  10. package/dist/chunks/{chunk-GWM5TLIK.js → chunk-2XED2FKY.js} +34 -34
  11. package/dist/chunks/{chunk-DVFA3ODS.js → chunk-35A56FJ7.js} +12 -0
  12. package/dist/chunks/{chunk-QYDSTYGG.js → chunk-4BXR6CNB.js} +3 -3
  13. package/dist/chunks/{chunk-KDOJW5LH.js → chunk-4I26YMBY.js} +1 -1
  14. package/dist/chunks/{chunk-X6PMJQGO.js → chunk-4YXAK6OA.js} +19 -8
  15. package/dist/chunks/{chunk-HG6INLH6.js → chunk-54ST55IJ.js} +28 -7
  16. package/dist/chunks/{chunk-DSBV4GRK.js → chunk-6HT73VOI.js} +3 -3
  17. package/dist/chunks/{chunk-4W6BSNIL.js → chunk-7QFVXP2X.js} +6 -6
  18. package/dist/chunks/{chunk-I5XB4MZT.js → chunk-AMAPQVBT.js} +95 -65
  19. package/dist/chunks/{chunk-L2A3COWV.js → chunk-BWYVS62Z.js} +4 -4
  20. package/dist/chunks/{chunk-UPVAQJKS.js → chunk-DRUND2PJ.js} +130 -79
  21. package/dist/chunks/{chunk-LJE7RZNC.js → chunk-F4HM25K4.js} +1 -1
  22. package/dist/chunks/{chunk-T24EBWAZ.js → chunk-GAMGDNTF.js} +48 -21
  23. package/dist/chunks/{chunk-H2NRTGZR.js → chunk-GWJLAF6B.js} +3 -3
  24. package/dist/chunks/{chunk-XIBMZEDB.js → chunk-IBSJJGXL.js} +2 -2
  25. package/dist/chunks/{chunk-VZUH3LKI.js → chunk-ICP53R52.js} +167 -157
  26. package/dist/chunks/{chunk-LRKKKO5A.js → chunk-IU6UB2TD.js} +3 -4
  27. package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
  28. package/dist/chunks/{chunk-727VKJQK.js → chunk-JMJBPP4B.js} +2 -2
  29. package/dist/chunks/{chunk-UVWW5ABZ.js → chunk-L7TYG5SN.js} +3 -3
  30. package/dist/chunks/{chunk-HAORST2G.js → chunk-LLCMOZ5L.js} +11 -11
  31. package/dist/chunks/{chunk-U3OO3IZF.js → chunk-NUP4RYZK.js} +20 -7
  32. package/dist/chunks/{chunk-IVCOZCAW.js → chunk-PAFOLIYQ.js} +1 -1
  33. package/dist/chunks/{chunk-LSVA7QA6.js → chunk-R3MK2RBN.js} +3 -1
  34. package/dist/chunks/{chunk-GFOFUH6O.js → chunk-TV46Q4NY.js} +52 -51
  35. package/dist/chunks/chunk-WM33BSIL.js +136 -0
  36. package/dist/chunks/{chunk-7CINV2BU.js → chunk-XZBYRYWX.js} +2 -2
  37. package/dist/chunks/{chunk-E7VWE2XI.js → chunk-ZWLWXHJC.js} +3 -3
  38. package/dist/chunks/{conflict-YW5BULJ3.js → conflict-VPAR7E6F.js} +2 -2
  39. package/dist/chunks/{contract-3PMHUASH.js → contract-DDXAO2DZ.js} +48 -5
  40. package/dist/chunks/{cowork-FZBTTBYX.js → cowork-34QCHMDD.js} +37 -8
  41. package/dist/chunks/{create-flow-5OBS3B3V.js → create-flow-52PU2OBI.js} +6 -6
  42. package/dist/chunks/{data-2YZ6A6TL.js → data-CLQ62QGD.js} +99 -184
  43. package/dist/chunks/{ebuilder-form-AWPTMZBZ.js → ebuilder-form-W5R7Q22S.js} +17 -7
  44. package/dist/chunks/{ehr-MNPR4TE5.js → ehr-LCNAVMK5.js} +67 -17
  45. package/dist/chunks/{entry-mode-L65OWPFM.js → entry-mode-6Z3ZV3DE.js} +3 -3
  46. package/dist/chunks/{env-XW7LYIME.js → env-RDKWAARB.js} +2 -2
  47. package/dist/chunks/{esb-GSB5QCEX.js → esb-ANKPUU65.js} +17 -7
  48. package/dist/chunks/{factory-MHFZZAGH.js → factory-434B7RAT.js} +1 -1
  49. package/dist/chunks/{fna-XBSNUS2V.js → fna-AKBSG5HI.js} +15 -5
  50. package/dist/chunks/{group-chat-EEOLO5NM.js → group-chat-PROTW22R.js} +3 -3
  51. package/dist/chunks/{host-NVDG3NC6.js → host-5R2SNFWD.js} +4 -4
  52. package/dist/chunks/{host-2UMNXX5H.js → host-7FJW4E7R.js} +4 -4
  53. package/dist/chunks/{host-XVWBOSEN.js → host-CGXUFQO4.js} +4 -4
  54. package/dist/chunks/{host-R7BP3CTI.js → host-PDJAKCT7.js} +6 -4
  55. package/dist/chunks/{host-SYPCA63D.js → host-WO4L5G5I.js} +4 -4
  56. package/dist/chunks/{host-BD44ASOD.js → host-XIYG4F4B.js} +4 -4
  57. package/dist/chunks/{hrm-FZUDJAND.js → hrm-WGODDTEH.js} +15 -6
  58. package/dist/chunks/{im-F5NENPD7.js → im-YKTKAJU3.js} +16 -6
  59. package/dist/chunks/{invoice-DS6FLU55.js → invoice-PVYCCCVM.js} +27 -6
  60. package/dist/chunks/{jiuchuanhui-JCBUR563.js → jiuchuanhui-RKOQW7BY.js} +19 -6
  61. package/dist/chunks/{lazy-dispatch-F6O2EPGR.js → lazy-dispatch-DW45AFQ5.js} +6 -6
  62. package/dist/chunks/{mail-ZEOSANEJ.js → mail-BNB5S4NW.js} +116 -97
  63. package/dist/chunks/{meeting-PCD5EPBF.js → meeting-O2KDJH66.js} +29 -16
  64. package/dist/chunks/{minute-doc-WTZJVCHG.js → minute-doc-JUCG56GY.js} +4 -4
  65. package/dist/chunks/{okr-OZUMTMCL.js → okr-LWFGWOE7.js} +15 -5
  66. package/dist/chunks/{operations-LQY3FTPH.js → operations-2WHIF5WV.js} +1 -1
  67. package/dist/chunks/{operations-UTUWFJTX.js → operations-532PN5OB.js} +5 -5
  68. package/dist/chunks/{performance-SMVTPK6T.js → performance-7W5COCFU.js} +92 -7
  69. package/dist/chunks/{plan-C2NENH42.js → plan-ZVY3IYTL.js} +15 -5
  70. package/dist/chunks/{project-FAJ2P3UR.js → project-SA62B7MH.js} +18 -5
  71. package/dist/chunks/{reception-NH6MJFPR.js → reception-NGIONPQ3.js} +128 -49
  72. package/dist/chunks/{recruit-stage-DPEFHLSE.js → recruit-stage-WOSN6MGP.js} +1264 -197
  73. package/dist/chunks/{registry-FTPUUHWC.js → registry-N7P3W2RD.js} +5 -5
  74. package/dist/chunks/{registry-3B3OAJYX.js → registry-R72GWXOG.js} +4 -4
  75. package/dist/chunks/{registry-ZQ7OONCB.js → registry-RIQ67ZT7.js} +12 -12
  76. package/dist/chunks/{room-recommend-73NBN3RU.js → room-recommend-KCGIVUFR.js} +4 -4
  77. package/dist/chunks/{schedule-SDBOBBUQ.js → schedule-6UP27HQ4.js} +4 -4
  78. package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-DDOQSPRB.js} +19 -6
  79. package/dist/chunks/{workflow-OWHWLAOX.js → workflow-V5ALD6QZ.js} +22 -8
  80. package/dist/cmd/auth/index.js +23 -0
  81. package/dist/cmd/e10/index.js +2 -1
  82. package/dist/cmd/index.js +2 -0
  83. package/dist/core/manifest-view.js +207 -0
  84. package/dist/core/output.js +42 -8
  85. package/dist/index.js +35 -35
  86. package/dist/internal/e10/auth/crypto.js +18 -8
  87. package/dist/internal/e10/auth/error-log.js +1 -2
  88. package/dist/internal/e10/auth/messages.js +2 -3
  89. package/dist/internal/e10/auth/xiaoe.js +1 -1
  90. package/dist/internal/e10/tls-policy.js +61 -13
  91. package/dist/shortcuts/archive/index.js +11 -2
  92. package/dist/shortcuts/archive/operations/download.js +1 -0
  93. package/dist/shortcuts/archive/operations/flow-url.js +3 -0
  94. package/dist/shortcuts/archive/operations/prelib.js +2 -0
  95. package/dist/shortcuts/archive/operations/upload.js +1 -0
  96. package/dist/shortcuts/archive-oa/index.js +11 -2
  97. package/dist/shortcuts/archive-oa/operations/borrow-car.js +2 -0
  98. package/dist/shortcuts/asset/index.js +11 -2
  99. package/dist/shortcuts/asset/manifest.js +7 -0
  100. package/dist/shortcuts/asset-idle/index.js +11 -2
  101. package/dist/shortcuts/blog/index.js +11 -2
  102. package/dist/shortcuts/blog/manifest.js +10 -0
  103. package/dist/shortcuts/caizhilian/host.js +20 -4
  104. package/dist/shortcuts/caizhilian/index.js +12 -2
  105. package/dist/shortcuts/caizhilian/manifest.js +4 -25
  106. package/dist/shortcuts/caizhilian/operations/handlers/search.js +34 -0
  107. package/dist/shortcuts/caizhilian/operations/registry.js +25 -1
  108. package/dist/shortcuts/calendar/index.js +11 -2
  109. package/dist/shortcuts/contract/index.js +11 -2
  110. package/dist/shortcuts/contract/manifest.js +32 -0
  111. package/dist/shortcuts/contract/operations/write.js +3 -0
  112. package/dist/shortcuts/cowork/index.js +21 -5
  113. package/dist/shortcuts/cowork/manifest.js +3 -0
  114. package/dist/shortcuts/cowork/operations/discuss-write.js +2 -0
  115. package/dist/shortcuts/cowork/operations/item-write.js +3 -0
  116. package/dist/shortcuts/cowork/operations/member-write.js +2 -0
  117. package/dist/shortcuts/cowork/operations/permission-write.js +2 -0
  118. package/dist/shortcuts/cowork/operations/review-write.js +1 -0
  119. package/dist/shortcuts/data/errors.js +16 -29
  120. package/dist/shortcuts/data/host.js +16 -7
  121. package/dist/shortcuts/data/index.js +12 -41
  122. package/dist/shortcuts/data/manifest.js +5 -44
  123. package/dist/shortcuts/data/operations/attend.js +2 -2
  124. package/dist/shortcuts/data/operations/conf.js +0 -88
  125. package/dist/shortcuts/data/operations/ds.js +4 -4
  126. package/dist/shortcuts/data/operations/index.js +1 -5
  127. package/dist/shortcuts/data/operations/module.js +40 -14
  128. package/dist/shortcuts/data/operations/query.js +2 -2
  129. package/dist/shortcuts/ebuilder-form/index.js +11 -2
  130. package/dist/shortcuts/ebuilder-form/manifest.js +12 -0
  131. package/dist/shortcuts/ehr/index.js +11 -2
  132. package/dist/shortcuts/ehr/operations/attend-write.js +51 -8
  133. package/dist/shortcuts/ehr/operations/recruit-position.js +4 -3
  134. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
  135. package/dist/shortcuts/ehr/operations/recruit-write.js +3 -3
  136. package/dist/shortcuts/ehr/operations/recruit.js +206 -82
  137. package/dist/shortcuts/ehr/operations/shared.js +31 -0
  138. package/dist/shortcuts/esb/index.js +11 -2
  139. package/dist/shortcuts/esb/manifest.js +2 -0
  140. package/dist/shortcuts/fna/index.js +11 -2
  141. package/dist/shortcuts/hrm/index.js +11 -1
  142. package/dist/shortcuts/im/index.js +11 -2
  143. package/dist/shortcuts/invoice/index.js +11 -2
  144. package/dist/shortcuts/invoice/manifest.js +8 -0
  145. package/dist/shortcuts/jiuchuanhui/index.js +15 -1
  146. package/dist/shortcuts/jiuchuanhui/manifest.js +2 -0
  147. package/dist/shortcuts/mail/errors.js +14 -0
  148. package/dist/shortcuts/mail/index.js +23 -6
  149. package/dist/shortcuts/mail/manifest.js +11 -4
  150. package/dist/shortcuts/mail/operations/mail-blacklist.js +6 -6
  151. package/dist/shortcuts/mail/operations/mail-contacts.js +10 -10
  152. package/dist/shortcuts/mail/operations/mail-manage.js +15 -14
  153. package/dist/shortcuts/mail/operations/mail-read.js +7 -25
  154. package/dist/shortcuts/mail/operations/mail-send.js +12 -12
  155. package/dist/shortcuts/mail/operations/mail-sign.js +10 -10
  156. package/dist/shortcuts/mail/operations/mail-template.js +10 -10
  157. package/dist/shortcuts/meeting/index.js +11 -2
  158. package/dist/shortcuts/meeting/operations/invitation-publish.js +1 -0
  159. package/dist/shortcuts/okr/index.js +11 -2
  160. package/dist/shortcuts/performance/index.js +62 -3
  161. package/dist/shortcuts/performance/scheme-validate.js +7 -0
  162. package/dist/shortcuts/performance/shared.js +40 -2
  163. package/dist/shortcuts/plan/index.js +11 -2
  164. package/dist/shortcuts/project/index.js +11 -2
  165. package/dist/shortcuts/project/operations/write.js +3 -0
  166. package/dist/shortcuts/reception/constants.js +22 -0
  167. package/dist/shortcuts/reception/index.js +15 -2
  168. package/dist/shortcuts/reception/manifest.js +17 -3
  169. package/dist/shortcuts/reception/operations/ask.js +3 -0
  170. package/dist/shortcuts/reception/operations/doc.js +24 -11
  171. package/dist/shortcuts/reception/operations/docrender.js +18 -1
  172. package/dist/shortcuts/reception/operations/render-assets.js +93 -22
  173. package/dist/shortcuts/recruit-stage/context.js +12 -6
  174. package/dist/shortcuts/recruit-stage/index.js +22 -3
  175. package/dist/shortcuts/recruit-stage/manifest.js +2 -0
  176. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +19 -10
  177. package/dist/shortcuts/recruit-stage/operations/jd-create.js +487 -38
  178. package/dist/shortcuts/recruit-stage/operations/list.js +72 -1
  179. package/dist/shortcuts/recruit-stage/operations/profile.js +194 -0
  180. package/dist/shortcuts/recruit-stage/operations/registry.js +20 -2
  181. package/dist/shortcuts/recruit-stage/operations/resume-import.js +258 -63
  182. package/dist/shortcuts/recruit-stage/operations/search.js +226 -27
  183. package/dist/shortcuts/recruit-stage/operations/shortlist.js +122 -0
  184. package/dist/shortcuts/recruit-stage/operations/tag.js +17 -3
  185. package/dist/shortcuts/recruit-stage/shared.js +158 -4
  186. package/dist/shortcuts/smart-extract/index.js +11 -2
  187. package/dist/shortcuts/smart-extract/manifest.js +1 -0
  188. package/dist/shortcuts/smart-extract/operations/save.js +2 -0
  189. package/dist/shortcuts/workflow/index.js +21 -1
  190. package/dist/shortcuts/workflow/operations/form.js +36 -2
  191. package/dist/shortcuts/workflow/operations/read.js +2 -2
  192. package/dist/shortcuts/workflow/operations/write.js +1 -1
  193. package/docs/caizhilian.md +1 -1
  194. package/docs/contract.md +1 -0
  195. package/docs/data.md +22 -22
  196. package/docs/e10-auth.md +41 -33
  197. package/docs/ehr.md +2 -0
  198. package/docs/reception.md +4 -3
  199. package/package.json +1 -1
  200. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  201. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  202. package/scripts/pysite/sitecustomize.py +41 -0
  203. package/skill-template/domains/data.md +4 -4
  204. package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
  205. package/skills/weaver-e10-caizhilian/references/org-browser.md +1 -0
  206. package/skills/weaver-e10-cowork/SKILL.md +3 -1
  207. package/skills/weaver-e10-data/SKILL.md +12 -16
  208. package/skills/weaver-e10-data/references/config-center.md +6 -7
  209. package/skills/weaver-e10-data/references/datasource.md +1 -1
  210. package/skills/weaver-e10-data/references/scene-and-misc.md +2 -2
  211. package/skills/weaver-e10-jiuchuanhui/SKILL.md +6 -4
  212. package/skills/weaver-e10-jiuchuanhui/references/clue.md +2 -2
  213. package/skills/weaver-e10-jiuchuanhui/references/customer.md +18 -8
  214. package/skills/weaver-e10-jiuchuanhui/references/sale.md +2 -2
  215. package/skills/weaver-e10-jucailin/SKILL.md +7 -3
  216. package/skills/weaver-e10-jucailin/references/attend-write.md +1 -1
  217. package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
  218. package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
  219. package/skills/weaver-e10-mail/SKILL.md +4 -1
  220. package/skills/weaver-e10-mail/references/mail-read.md +4 -2
  221. package/skills/weaver-e10-mail/references/safety-boundaries.md +1 -0
  222. package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
  223. package/skills/weaver-e10-performance/SKILL.md +8 -6
  224. package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
  225. package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
  226. package/skills/weaver-e10-recruit-stage/SKILL.md +557 -75
  227. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +67 -44
  228. package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +279 -0
  229. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +198 -0
  230. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +697 -0
  231. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +507 -0
  232. package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +87 -0
  233. package/skills/weaver-e10-recruit-stage/references/position-templates.md +19 -18
  234. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +19 -18
  235. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +1 -1
  236. package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +1 -1
  237. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +15 -2
  238. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +37 -0
  239. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +4 -4
  240. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +64 -28
  241. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +43 -2
  242. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +41 -0
  243. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -4
  244. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +2 -2
  245. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +25 -7
  246. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +51 -0
  247. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +63 -0
  248. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +4 -4
  249. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +2 -2
  250. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +58 -33
  251. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +4 -4
  252. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +5 -5
  253. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +2 -2
  254. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +11 -10
  255. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +2 -2
  256. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  257. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +106 -0
  258. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +325 -0
  259. package/skills/weaver-e10-recruit-stage/templates/match-report.html +265 -0
  260. package/skills/weaver-e10-shared/SKILL.md +22 -1
  261. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
  262. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
  263. package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
@@ -3,16 +3,21 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  stateRoot
5
5
  } from "./chunk-AJ62BGAW.js";
6
+ import {
7
+ MANIFEST_LIST_COMPACT_PATHS,
8
+ manifestView,
9
+ schemaOptionsOf
10
+ } from "./chunk-WM33BSIL.js";
6
11
  import {
7
12
  E10ApiError,
8
13
  createE10RequestRuntime,
9
14
  getE10Session,
10
15
  requireE10Session
11
- } from "./chunk-LRKKKO5A.js";
16
+ } from "./chunk-IU6UB2TD.js";
12
17
  import {
13
18
  E10_AUTH_REQUIRED_MESSAGE
14
- } from "./chunk-GTAFCAVP.js";
15
- import "./chunk-I5XB4MZT.js";
19
+ } from "./chunk-IZCQU5D5.js";
20
+ import "./chunk-AMAPQVBT.js";
16
21
  import {
17
22
  CliError,
18
23
  isCliError,
@@ -54,6 +59,13 @@ var MEETING_OPTIONS = [
54
59
  { label: "\u662F\uFF0C\u5B89\u6392\u4F1A\u8BAE\u5BA4", value: "\u662F" },
55
60
  { label: "\u5426\uFF0C\u4E0D\u9700\u8981", value: "\u5426" }
56
61
  ];
62
+ var DEFAULT_RECEPTION_MODE = "flow";
63
+ function normalizeReceptionMode(value) {
64
+ const text = String(value ?? "").trim().toLowerCase();
65
+ if (text === "plan" || text === "\u65B9\u6848" || text === "document" || text === "doc") return "plan";
66
+ if (text === "flow" || text === "\u6D41\u7A0B" || text === "handbook" || text === "manual") return "flow";
67
+ return DEFAULT_RECEPTION_MODE;
68
+ }
57
69
  var SNAPSHOT_KIND = "reception-fields-snapshot";
58
70
  var PYTHON_CACHE_TTL_MS = 7 * 24 * 3600 * 1e3;
59
71
 
@@ -1365,14 +1377,7 @@ function skillRootFromSnapshot(snapshotPath) {
1365
1377
  // src/shortcuts/reception/operations/render-assets.ts
1366
1378
  var PYTHON_CACHE_FILE = "python.json";
1367
1379
  var pythonCache;
1368
- function runSync(file, args, options = {}) {
1369
- const result = spawnSync(file, args, { encoding: "utf8", maxBuffer: 16 * 1024 * 1024, ...options });
1370
- return {
1371
- stdout: String(result.stdout || ""),
1372
- stderr: String(result.stderr || ""),
1373
- status: result.status
1374
- };
1375
- }
1380
+ var pythonCacheAny;
1376
1381
  function runAsync(file, args) {
1377
1382
  return new Promise((resolve2) => {
1378
1383
  execFile(file, args, { encoding: "utf8", maxBuffer: 16 * 1024 * 1024 }, (error, stdout, stderr) => {
@@ -1394,32 +1399,46 @@ function lastJsonLine(text) {
1394
1399
  }
1395
1400
  return null;
1396
1401
  }
1397
- function pickPython(stateDir) {
1398
- if (pythonCache !== void 0) return pythonCache;
1402
+ function probePython(file, args) {
1403
+ const result = spawnSync(file, args, { encoding: "utf8", maxBuffer: 1024 * 1024 });
1404
+ if (result.status !== 0) return null;
1405
+ const lines = String(result.stdout || "").trim().split(/\r?\n/).filter(Boolean);
1406
+ const exe = lines.length ? lines[lines.length - 1].trim() : "";
1407
+ return exe || null;
1408
+ }
1409
+ function pickPython(stateDir, requireDocx = true) {
1410
+ if (requireDocx && pythonCache !== void 0) return pythonCache;
1411
+ if (!requireDocx && pythonCacheAny !== void 0) return pythonCacheAny;
1399
1412
  if (process.env.RECEPTION_PY) {
1400
- pythonCache = process.env.RECEPTION_PY;
1401
- return pythonCache;
1413
+ const envPy = process.env.RECEPTION_PY;
1414
+ if (requireDocx) pythonCache = envPy;
1415
+ else pythonCacheAny = envPy;
1416
+ return envPy;
1402
1417
  }
1418
+ const probe = ["-c", requireDocx ? "import docx, sys; print(sys.executable)" : "import sys; print(sys.executable)"];
1403
1419
  const cachePath = join3(stateDir, PYTHON_CACHE_FILE);
1404
1420
  const disk = readJson(cachePath);
1405
1421
  if (disk?.py && Date.now() - Number(disk.at || 0) < PYTHON_CACHE_TTL_MS) {
1406
- if (runSync(disk.py, ["-c", "import docx"], { stdio: "ignore" }).status === 0) {
1407
- pythonCache = disk.py;
1408
- return pythonCache;
1422
+ const hit = probePython(disk.py, probe);
1423
+ if (hit) {
1424
+ if (requireDocx) pythonCache = hit;
1425
+ else pythonCacheAny = hit;
1426
+ return hit;
1409
1427
  }
1410
1428
  }
1411
1429
  for (const candidate of ["python3", "python", "py"]) {
1412
- const args = candidate === "py" ? ["-3", "-c", "import docx"] : ["-c", "import docx"];
1413
- if (runSync(candidate, args, { stdio: "ignore" }).status === 0) {
1414
- pythonCache = candidate;
1415
- try {
1416
- writeJson(cachePath, { py: candidate, at: Date.now() });
1417
- } catch {
1418
- }
1419
- return candidate;
1430
+ const exe = probePython(candidate, candidate === "py" ? ["-3", ...probe] : probe);
1431
+ if (!exe) continue;
1432
+ if (requireDocx) pythonCache = exe;
1433
+ else pythonCacheAny = exe;
1434
+ try {
1435
+ writeJson(cachePath, { py: exe, at: Date.now() });
1436
+ } catch {
1420
1437
  }
1438
+ return exe;
1421
1439
  }
1422
- pythonCache = null;
1440
+ if (requireDocx) pythonCache = null;
1441
+ else pythonCacheAny = null;
1423
1442
  return null;
1424
1443
  }
1425
1444
  function resolveRenderPy(explicitPath = "", snapshotPath = "") {
@@ -1503,13 +1522,34 @@ async function renderBoth(options) {
1503
1522
  parallelMs: Date.now() - startedAt
1504
1523
  };
1505
1524
  }
1506
- function requirePython(stateDir) {
1507
- const python = pickPython(stateDir);
1525
+ async function renderMdOnly(options) {
1526
+ ensureDir(options.outDir);
1527
+ const startedAt = Date.now();
1528
+ const mdResult = await renderOnly({ ...options, only: "md" });
1529
+ const elapsed = Date.now() - startedAt;
1530
+ const files = mdResult.files || [];
1531
+ return {
1532
+ result: {
1533
+ ...mdResult,
1534
+ files,
1535
+ verify: { ...mdResult.verify || {}, fileCount: files.length }
1536
+ },
1537
+ docxResult: { ok: true, files: [] },
1538
+ mdResult,
1539
+ docxMs: 0,
1540
+ mdMs: elapsed,
1541
+ parallelMs: elapsed
1542
+ };
1543
+ }
1544
+ function requirePython(stateDir, requireDocx = true) {
1545
+ const python = pickPython(stateDir, requireDocx);
1508
1546
  if (!python) {
1509
1547
  throw receptionEnvironmentError(
1510
- "NO_PYTHON_DOCX",
1511
- "\u7F3A python3 + python-docx\uFF0C\u65E0\u6CD5\u6E32\u67D3 docx",
1512
- { hint: "pip install python-docx\uFF1B\u79BB\u7EBF\u73AF\u5883\u53EA\u80FD\u4EA4\u4ED8 md" }
1548
+ requireDocx ? "NO_PYTHON_DOCX" : "NO_PYTHON",
1549
+ requireDocx ? "\u7F3A python3 + python-docx\uFF0C\u65E0\u6CD5\u6E32\u67D3 docx" : "\u7F3A python3\uFF0C\u65E0\u6CD5\u6E32\u67D3\u63A5\u5F85\u53C2\u8003\u6587\u6863",
1550
+ {
1551
+ hint: requireDocx ? "pip install python-docx\uFF1B\u79BB\u7EBF\u73AF\u5883\u53EA\u80FD\u4EA4\u4ED8 md" : "\u5B89\u88C5 python3 \u540E\u91CD\u8BD5\uFF1B\u53EA\u51FA\u63A5\u5F85\u65B9\u6848\uFF08--mode plan\uFF09\u540C\u6837\u9700\u8981 python3 \u8DD1 render.py"
1552
+ }
1513
1553
  );
1514
1554
  }
1515
1555
  return python;
@@ -1577,6 +1617,8 @@ async function doc(input, ctx) {
1577
1617
  const startedAt = Date.now();
1578
1618
  const runIdArg = String(input.runId || "").trim();
1579
1619
  const knownArg = input.known || null;
1620
+ const mode = normalizeReceptionMode(input.mode);
1621
+ const planOnly = mode === "plan";
1580
1622
  let run = runIdArg ? tryLoadRun(ctx.stateDir, runIdArg) : null;
1581
1623
  let rebuilt = false;
1582
1624
  if (!run) {
@@ -1606,7 +1648,7 @@ async function doc(input, ctx) {
1606
1648
  data: { ...knownArg },
1607
1649
  customer: null,
1608
1650
  user: null,
1609
- mode: "browsertool"
1651
+ mode
1610
1652
  };
1611
1653
  }
1612
1654
  const answers = input.answers ?? run.answers ?? {};
@@ -1635,11 +1677,11 @@ async function doc(input, ctx) {
1635
1677
  const dataHash = sha256(canonical(data)).slice(0, 32);
1636
1678
  const dataPath = join4(ctx.stateDir, `doc-data-${dataHash.slice(0, 12)}.json`);
1637
1679
  writeJson(dataPath, data);
1638
- const python = requirePython(ctx.stateDir);
1680
+ const python = requirePython(ctx.stateDir, !planOnly);
1639
1681
  const renderPy = resolveRenderPy(input.renderPy || "", input.snapshot || "");
1640
- const noUpload = input.noUpload === true;
1682
+ const noUpload = planOnly || input.noUpload === true;
1641
1683
  const sessionPromise = noUpload ? Promise.resolve(null) : ctx.host.getSession();
1642
- const renderPromise = renderBoth({ python, renderPy, dataPath, outDir });
1684
+ const renderPromise = planOnly ? renderMdOnly({ python, renderPy, dataPath, outDir }) : renderBoth({ python, renderPy, dataPath, outDir });
1643
1685
  const uploadPromise = renderPromise.then(async (rendered2) => {
1644
1686
  if (noUpload) return null;
1645
1687
  const session = await sessionPromise;
@@ -1701,11 +1743,12 @@ async function doc(input, ctx) {
1701
1743
  if (uploadResult.skipped === "NO_SESSION") {
1702
1744
  warnings.push("\u672A\u53D6\u5F97 E10 \u4F1A\u8BDD\uFF1A\u9644\u4EF6\u672A\u4E0A\u4F20\uFF0C\u4EA7\u7269\u6309\u672C\u5730\u6587\u4EF6\u4EA4\u4ED8");
1703
1745
  }
1704
- } else if (noUpload) {
1746
+ } else if (noUpload && !planOnly) {
1705
1747
  warnings.push("\u5DF2\u6309 --no-upload \u8DF3\u8FC7\u4E0A\u4F20\uFF1A\u9875\u9762\u4E0A\u9700\u8981\u624B\u52A8\u6DFB\u52A0\u9644\u4EF6");
1706
1748
  }
1707
1749
  run.answers = answers;
1708
1750
  run.data = data;
1751
+ run.mode = mode;
1709
1752
  run.files = rendered.result.files || [];
1710
1753
  if (input.snapshot) run.snapshotPath = input.snapshot;
1711
1754
  if (uploadResult && uploadResult.base) run.base = uploadResult.base;
@@ -1730,6 +1773,7 @@ async function doc(input, ctx) {
1730
1773
  ok: true,
1731
1774
  data: {
1732
1775
  runId: run.runId,
1776
+ mode,
1733
1777
  rebuilt,
1734
1778
  files: (rendered.result.files || []).map((file) => ({ kind: file.kind, path: file.path, size: file.size })),
1735
1779
  internalDoc,
@@ -1748,7 +1792,10 @@ async function doc(input, ctx) {
1748
1792
  }
1749
1793
  },
1750
1794
  warnings,
1751
- next: {
1795
+ next: planOnly ? {
1796
+ command: "\u628A data.internalDoc.content \u5168\u6587\u4F5C\u4E3A\u56DE\u590D\u6B63\u6587",
1797
+ reason: "\u573A\u666F\u4E00\u53EA\u4EA4\u4ED8\u300A\u63A5\u5F85\u4EA4\u6D41\u53C2\u8003\u6587\u6863\u300B\uFF0C\u4E0D\u751F\u6210\u884C\u7A0B\u5355\u3001\u4E0D\u4E0A\u4F20\u9644\u4EF6\u3001\u4E0D\u6253\u5F00\u586B\u5355\u9875"
1798
+ } : {
1752
1799
  command: `weaver-work-cli reception render --run-id ${run.runId}`,
1753
1800
  reason: "\u9644\u4EF6 fileid \u5DF2\u5199\u5165 run\uFF0Crender \u4F1A\u81EA\u52A8\u5E26\u4E0A"
1754
1801
  }
@@ -2219,9 +2266,20 @@ var renderOperation = {
2219
2266
 
2220
2267
  // src/shortcuts/reception/operations/docrender.ts
2221
2268
  async function docRender(input, ctx) {
2269
+ const mode = normalizeReceptionMode(input.mode);
2222
2270
  const docResult = await doc(input, ctx);
2223
2271
  if (!docResult.ok) return docResult;
2224
- const runId = String((docResult.data || {}).runId || input.runId || "");
2272
+ const docData = docResult.data || {};
2273
+ if (mode === "plan") {
2274
+ return {
2275
+ state: docResult.state,
2276
+ ok: true,
2277
+ data: { ...docData, mode, renderSkipped: true },
2278
+ warnings: docResult.warnings || [],
2279
+ next: docResult.next
2280
+ };
2281
+ }
2282
+ const runId = String(docData.runId || input.runId || "");
2225
2283
  let renderResult;
2226
2284
  try {
2227
2285
  renderResult = await render({
@@ -2249,7 +2307,8 @@ async function docRender(input, ctx) {
2249
2307
  data: {
2250
2308
  ...docResult.data,
2251
2309
  ...renderResult.data,
2252
- runId
2310
+ runId,
2311
+ mode
2253
2312
  },
2254
2313
  warnings: [...docResult.warnings || [], ...renderResult.warnings || []],
2255
2314
  next: renderResult.next
@@ -2319,8 +2378,8 @@ var receptionOperationNames = [...REGISTRY.keys()];
2319
2378
  var receptionOperations = [
2320
2379
  {
2321
2380
  name: "reception.ask",
2322
- risk: "read",
2323
- summary: "\u6309 7 \u9879\u62BD\u53D6\u7ED3\u679C\u51FA\u4EA4\u4E92\u9762\u677F\uFF1A\u5BA2\u6237\u9700\u6C42\uFF08\u5DF2\u660E\u786E\u5219\u8DF3\u8FC7\uFF09+ \u63A5\u5F85\u7EC6\u8282\uFF08\u5E38\u9A7B\uFF09+ \u662F\u5426\u4F1A\u8BAE\uFF08\u5FC5\u95EE\uFF0C\u539F\u8BDD\u660E\u786E\u63D0\u53CA\u4F1A\u8BAE\u5BA4\u624D\u8DF3\u8FC7\uFF09\u3002\u8FD4\u56DE runId \u4F9B doc \u4F7F\u7528\u3002",
2381
+ risk: "read-with-side-effect",
2382
+ summary: "\u6309 7 \u9879\u62BD\u53D6\u7ED3\u679C\u51FA\u4EA4\u4E92\u9762\u677F\uFF1A\u5BA2\u6237\u9700\u6C42\uFF08\u5DF2\u660E\u786E\u5219\u8DF3\u8FC7\uFF09+ \u63A5\u5F85\u7EC6\u8282\uFF08\u5E38\u9A7B\uFF09+ \u662F\u5426\u4F1A\u8BAE\uFF08\u5FC5\u95EE\uFF0C\u539F\u8BDD\u660E\u786E\u63D0\u53CA\u4F1A\u8BAE\u5BA4\u624D\u8DF3\u8FC7\uFF09\u3002\u8FD4\u56DE runId \u4F9B doc \u4F7F\u7528\uFF1B\u6BCF\u6B21\u8C03\u7528\u4F1A\u5728\u672C\u5730\u65B0\u5EFA\u4E00\u4EFD run \u8BB0\u5F55\uFF08\u65E0\u670D\u52A1\u7AEF\u5199\u5165\uFF09\uFF0C\u4E0D\u8981\u5F53\u7EAF\u8BFB\u53D6\u53CD\u590D\u91CD\u8BD5\u3002",
2324
2383
  inputSchema: {
2325
2384
  type: "object",
2326
2385
  additionalProperties: false,
@@ -2382,6 +2441,11 @@ var receptionOperations = [
2382
2441
  workflow: { type: "string", description: "\u76EE\u6807\u6D41\u7A0B\u540D" },
2383
2442
  outDir: { type: "string", description: "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55" },
2384
2443
  noUpload: { type: "boolean", description: "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6" },
2444
+ mode: {
2445
+ type: "string",
2446
+ enum: ["plan", "flow"],
2447
+ description: "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6E32\u67D3 docx\u3001\u4E0D\u4E0A\u4F20\u9644\u4EF6\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\u3002\u9ED8\u8BA4 flow"
2448
+ },
2385
2449
  snapshot: { type: "string", description: "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF1B\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC\u6280\u80FD\u5305\u5185 render.py \u4F4D\u7F6E" },
2386
2450
  renderPy: { type: "string", description: "\u663E\u5F0F\u6307\u5B9A render.py \u8DEF\u5F84" }
2387
2451
  },
@@ -2391,6 +2455,7 @@ var receptionOperations = [
2391
2455
  type: "object",
2392
2456
  properties: {
2393
2457
  runId: { type: "string" },
2458
+ mode: { type: "string", description: "\u672C\u6B21\u5B9E\u9645\u751F\u6548\u7684\u51FA\u4EF6\u8303\u56F4\uFF1Aplan / flow" },
2394
2459
  rebuilt: { type: "boolean" },
2395
2460
  files: { type: "array", items: { type: "object" } },
2396
2461
  internalDoc: {
@@ -2448,7 +2513,7 @@ var receptionOperations = [
2448
2513
  {
2449
2514
  name: "reception.docRender",
2450
2515
  risk: "read",
2451
- summary: "\u4E00\u6B21\u5B8C\u6210 doc + render\uFF1A\u51FA docx/md\u3001\u4E0A\u4F20\u9644\u4EF6\u3001\u62FC customParams\u3001\u843D browsertool\u3002\u4E24\u8005\u4E4B\u95F4\u6CA1\u6709\u4EBA\u5DE5\u786E\u8BA4\u70B9\uFF0C\u5408\u5E76\u53EA\u4E3A\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF1B\u5931\u8D25\u8BED\u4E49\u4E0E\u5206\u5F00\u8C03\u7528\u4E00\u81F4\u3002",
2516
+ summary: "\u4E00\u6B21\u5B8C\u6210 doc + render\uFF1A\u51FA docx/md\u3001\u4E0A\u4F20\u9644\u4EF6\u3001\u62FC customParams\u3001\u843D browsertool\u3002\u4E24\u8005\u4E4B\u95F4\u6CA1\u6709\u4EBA\u5DE5\u786E\u8BA4\u70B9\uFF0C\u5408\u5E76\u53EA\u4E3A\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF1B\u5931\u8D25\u8BED\u4E49\u4E0E\u5206\u5F00\u8C03\u7528\u4E00\u81F4\u3002--mode plan \u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF0C\u8DF3\u8FC7 render\uFF08\u4E0D\u51FA browsertool\u3001\u4E0D\u505A\u586B\u5355\u786C\u6821\u9A8C\uFF09\u3002",
2452
2517
  inputSchema: {
2453
2518
  type: "object",
2454
2519
  additionalProperties: false,
@@ -2461,6 +2526,11 @@ var receptionOperations = [
2461
2526
  workflow: { type: "string", description: "\u76EE\u6807\u6D41\u7A0B\u540D" },
2462
2527
  outDir: { type: "string", description: "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55" },
2463
2528
  noUpload: { type: "boolean", description: "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6" },
2529
+ mode: {
2530
+ type: "string",
2531
+ enum: ["plan", "flow"],
2532
+ description: "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6E32\u67D3 docx\u3001\u4E0D\u4E0A\u4F20\u9644\u4EF6\u3001\u4E0D\u6253\u5F00\u586B\u5355\u9875\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\u3002\u9ED8\u8BA4 flow"
2533
+ },
2464
2534
  snapshot: { type: "string", description: "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF1B\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC\u6280\u80FD\u5305\u5185 render.py \u4F4D\u7F6E" },
2465
2535
  allowMissingRestaurant: { type: "boolean", description: "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u786E\u5B9E\u62FF\u4E0D\u5230\u5305\u53A2\u53F7\u65F6\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09\uFF0C\u9ED8\u8BA4 false \u76F4\u63A5\u62A5 RESTAURANT_DETAIL_MISSING" },
2466
2536
  renderPy: { type: "string", description: "\u663E\u5F0F\u6307\u5B9A render.py \u8DEF\u5F84" },
@@ -2476,6 +2546,8 @@ var receptionOperations = [
2476
2546
  type: "object",
2477
2547
  properties: {
2478
2548
  runId: { type: "string" },
2549
+ mode: { type: "string", description: "\u672C\u6B21\u5B9E\u9645\u751F\u6548\u7684\u51FA\u4EF6\u8303\u56F4\uFF1Aplan / flow" },
2550
+ renderSkipped: { type: "boolean", description: "plan \u6A21\u5F0F\u6052\u4E3A true\uFF1A\u6CA1\u6709\u8C03 render\uFF0C\u56DE\u5305\u91CC\u4E0D\u4F1A\u6709 browsertool" },
2479
2551
  rebuilt: { type: "boolean" },
2480
2552
  files: { type: "array", items: { type: "object" } },
2481
2553
  internalDoc: {
@@ -2627,8 +2699,13 @@ var receptionShortcut = {
2627
2699
  register({ program, action }) {
2628
2700
  assertManifestMatchesRegistry();
2629
2701
  const reception = program.command("reception").description("\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B\uFF1A\u51FA\u9762\u677F \u2192 \u51FA\u4E24\u4EFD\u4EA7\u7269\u5E76\u6302\u9644\u4EF6 \u2192 \u8F93\u51FA\u586B\u5355\u9875 browsertool");
2630
- reception.command("schema").description("\u8F93\u51FA operation \u5408\u7EA6\uFF08Agent \u81EA\u67E5\u5165\u53E3\uFF09").action(action((ctx) => {
2631
- ctx.output.write(receptionManifest, { json: true });
2702
+ reception.command("schema").description("\u8F93\u51FA operation \u5408\u7EA6\uFF08Agent \u81EA\u67E5\u5165\u53E3\uFF09").option("--list", '\u53EA\u5217\u64CD\u4F5C\u6E05\u5355\uFF08name/summary/risk\uFF09\uFF0C\u5168\u91CF\u4E0D\u622A\u65AD\uFF1B\u5224\u65AD"\u6709\u6CA1\u6709\u67D0\u64CD\u4F5C"\u7528\u8FD9\u4E2A').option("--full", "\u6253\u5370\u5B8C\u6574 manifest\uFF08\u8D85 stdout \u9884\u7B97\u4F1A\u843D\u672C\u5730 ref\uFF0C\u7528 refs get \u5206\u9875\u53D6\uFF09").option("--operation <name>", "\u53EA\u8F93\u51FA\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5951\u7EA6\uFF08\u542B inputSchema\uFF0C\u4F53\u79EF\u8FDC\u4F4E\u4E8E\u9884\u7B97\uFF09").action(action((ctx, options) => {
2703
+ const schema = schemaOptionsOf(options);
2704
+ ctx.output.write(manifestView(receptionManifest, schema), {
2705
+ json: true,
2706
+ // 只有 --list 单行化:条目多、缩进空白能吃掉近一半体积,且对读模型无收益。
2707
+ ...schema.list === true ? { compactPaths: MANIFEST_LIST_COMPACT_PATHS } : {}
2708
+ });
2632
2709
  }));
2633
2710
  reception.command("run").description("\u6309 operation \u540D\u6267\u884C\uFF08reception.ask / reception.doc / reception.render\uFF09").argument("<operation>", "operation \u540D\uFF0C\u5982 reception.ask").option("--input <path>", "JSON \u5165\u53C2\u6587\u4EF6\uFF0C- \u8868\u793A stdin").option("--input-json <json>", "\u5185\u8054 JSON \u5165\u53C2").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").action(action(async (ctx, operation, options) => {
2634
2711
  const opts = asOptions(options);
@@ -2657,7 +2734,7 @@ var receptionShortcut = {
2657
2734
  workflow: textOf(opts, "workflow") || void 0
2658
2735
  }, opts);
2659
2736
  }));
2660
- 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) => {
2737
+ 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").option("--mode <mode>", "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6E32\u67D3 docx\u3001\u4E0D\u4E0A\u4F20\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\uFF08\u9ED8\u8BA4\uFF09").action(action(async (ctx, options) => {
2661
2738
  const opts = asOptions(options);
2662
2739
  await runOperation(ctx, "reception.doc", {
2663
2740
  runId: textOf(opts, "runId") || void 0,
@@ -2669,7 +2746,8 @@ var receptionShortcut = {
2669
2746
  outDir: textOf(opts, "outDir") || void 0,
2670
2747
  snapshot: textOf(opts, "snapshot") || void 0,
2671
2748
  renderPy: textOf(opts, "renderPy") || void 0,
2672
- noUpload: opts.upload === false
2749
+ noUpload: opts.upload === false,
2750
+ mode: textOf(opts, "mode") || void 0
2673
2751
  }, opts);
2674
2752
  }));
2675
2753
  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) => {
@@ -2691,7 +2769,7 @@ var receptionShortcut = {
2691
2769
  timeoutMs: textOf(opts, "timeoutMs") ? Number(textOf(opts, "timeoutMs")) : void 0
2692
2770
  }, opts);
2693
2771
  }));
2694
- 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("--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").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").action(action(async (ctx, options) => {
2772
+ 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("--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").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").option("--mode <mode>", "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6253\u5F00\u586B\u5355\u9875\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\uFF08\u9ED8\u8BA4\uFF09").action(action(async (ctx, options) => {
2695
2773
  const opts = asOptions(options);
2696
2774
  await runOperation(ctx, "reception.docRender", {
2697
2775
  runId: textOf(opts, "runId") || void 0,
@@ -2705,7 +2783,8 @@ var receptionShortcut = {
2705
2783
  renderPy: textOf(opts, "renderPy") || void 0,
2706
2784
  noUpload: opts.upload === false,
2707
2785
  allowMissingRestaurant: opts.allowMissingRestaurant === true,
2708
- sdkRender: textOf(opts, "sdkRender") || void 0
2786
+ sdkRender: textOf(opts, "sdkRender") || void 0,
2787
+ mode: textOf(opts, "mode") || void 0
2709
2788
  }, opts);
2710
2789
  }));
2711
2790
  }