openyida 2026.3.24 → 2026.3.28-2

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 (391) hide show
  1. package/README.md +41 -68
  2. package/bin/yida.js +175 -25
  3. package/lib/app/create-app.js +176 -191
  4. package/lib/app/create-form.js +2239 -2047
  5. package/lib/app/create-page.js +85 -140
  6. package/lib/app/export-app.js +181 -171
  7. package/lib/app/get-schema.js +152 -50
  8. package/lib/app/import-app.js +324 -287
  9. package/lib/app/publish.js +677 -564
  10. package/lib/app/update-form-config.js +219 -221
  11. package/lib/auth/auth.js +207 -151
  12. package/lib/auth/login.js +251 -215
  13. package/lib/auth/org.js +320 -229
  14. package/lib/auth/qr-login.js +547 -424
  15. package/lib/cdn/cdn-config-cmd.js +197 -177
  16. package/lib/cdn/cdn-config.js +128 -104
  17. package/lib/cdn/cdn-refresh.js +224 -195
  18. package/lib/cdn/cdn-upload.js +262 -221
  19. package/lib/connector/action-generator.js +235 -207
  20. package/lib/connector/api.js +298 -186
  21. package/lib/connector/connector-add-action.js +179 -160
  22. package/lib/connector/connector-create-connection.js +129 -101
  23. package/lib/connector/connector-create.js +260 -246
  24. package/lib/connector/connector-delete-action.js +87 -67
  25. package/lib/connector/connector-delete.js +42 -33
  26. package/lib/connector/connector-detail.js +73 -62
  27. package/lib/connector/connector-gen-template.js +29 -27
  28. package/lib/connector/connector-list-actions.js +59 -48
  29. package/lib/connector/connector-list-connections.js +52 -39
  30. package/lib/connector/connector-list.js +79 -73
  31. package/lib/connector/connector-parse-api.js +179 -169
  32. package/lib/connector/connector-smart-create.js +169 -148
  33. package/lib/connector/connector-test.js +189 -157
  34. package/lib/connector/curl-parser.js +95 -76
  35. package/lib/connector/desc-generator.js +29 -24
  36. package/lib/connector/doc-parser.js +470 -419
  37. package/lib/connector/response-parser.js +112 -87
  38. package/lib/conversation/collector.js +363 -0
  39. package/lib/conversation/export-conversation.js +146 -0
  40. package/lib/conversation/formatter.js +316 -0
  41. package/lib/core/babel-transform/index.js +203 -230
  42. package/lib/core/babel-transform/jsx-utils.js +83 -107
  43. package/lib/core/check-update.js +45 -77
  44. package/lib/core/copy.js +288 -310
  45. package/lib/core/doctor.js +1317 -1127
  46. package/lib/core/env.js +140 -156
  47. package/lib/core/i18n.js +116 -98
  48. package/lib/core/locales/ar.js +425 -827
  49. package/lib/core/locales/de.js +425 -827
  50. package/lib/core/locales/en.js +879 -773
  51. package/lib/core/locales/es.js +425 -827
  52. package/lib/core/locales/fr.js +425 -827
  53. package/lib/core/locales/hi.js +425 -827
  54. package/lib/core/locales/ja.js +736 -804
  55. package/lib/core/locales/ko.js +428 -827
  56. package/lib/core/locales/pt.js +425 -827
  57. package/lib/core/locales/vi.js +425 -827
  58. package/lib/core/locales/zh-TW.js +770 -812
  59. package/lib/core/locales/zh.js +841 -706
  60. package/lib/core/query-data.js +311 -412
  61. package/lib/core/task-center.js +213 -0
  62. package/lib/core/utils.js +384 -282
  63. package/lib/dws/dws-wrapper.js +260 -0
  64. package/lib/flash-note/flash-to-prd.js +306 -0
  65. package/lib/integration/integration-api.js +190 -115
  66. package/lib/integration/integration-create.js +356 -312
  67. package/lib/integration/integration-node-ids.js +40 -34
  68. package/lib/integration/integration-process-builder.js +228 -204
  69. package/lib/integration/integration-view-builder.js +260 -239
  70. package/lib/page-config/get-page-config.js +90 -77
  71. package/lib/page-config/save-share-config.js +236 -203
  72. package/lib/page-config/verify-short-url.js +238 -198
  73. package/lib/permission/get-permission.js +184 -173
  74. package/lib/permission/save-permission.js +527 -444
  75. package/lib/process/configure-process.js +954 -881
  76. package/lib/process/create-process.js +264 -275
  77. package/lib/report/append.js +307 -222
  78. package/lib/report/chart-builder.js +1778 -1457
  79. package/lib/report/constants.js +34 -97
  80. package/lib/report/create-report.js +9 -10
  81. package/lib/report/http.js +25 -24
  82. package/lib/report/index.js +418 -192
  83. package/package.json +5 -25
  84. package/project/pages/src/demo-chip-insight.js +3 -3
  85. package/project/pages/src/demo-crm-batch-entry.js +805 -0
  86. package/project/pages/src/demo-crm-dashboard.js +677 -0
  87. package/project/pages/src/demo-future-vision-2026.js +4 -4
  88. package/project/pages/src/demo-salary-calculator.js +39 -10
  89. package/project/prd/demo-crm.md +463 -0
  90. package/scripts/demo-dws.sh +106 -0
  91. package/scripts/postinstall.js +44 -18
  92. package/scripts/validate-structure.js +4 -17
  93. package/yida-skills/SKILL.md +96 -129
  94. package/yida-skills/references/formula-functions.md +312 -0
  95. package/yida-skills/references/report-field-config-guide.md +294 -0
  96. package/yida-skills/skills/large-file-write/SKILL.md +88 -0
  97. package/yida-skills/skills/large-file-write/scripts/write.js +157 -0
  98. package/yida-skills/skills/yida-app/SKILL.md +196 -218
  99. package/yida-skills/skills/yida-chart/SKILL.md +2 -2
  100. package/yida-skills/skills/yida-chart/reference/echarts-bindding-guide.md +255 -0
  101. package/yida-skills/skills/yida-chart/reference/echarts-code-template.md +426 -0
  102. package/yida-skills/skills/yida-chart/reference/echarts-design-spec.md +178 -0
  103. package/yida-skills/skills/yida-chatbot/SKILL.md +237 -0
  104. package/yida-skills/skills/yida-connector/SKILL.md +46 -465
  105. package/yida-skills/skills/yida-connector/references/connector-action-format.md +178 -0
  106. package/yida-skills/skills/yida-create-app/SKILL.md +8 -124
  107. package/yida-skills/skills/yida-create-form-page/SKILL.md +62 -640
  108. package/yida-skills/skills/yida-create-form-page/references/form-field-properties.md +369 -0
  109. package/yida-skills/skills/yida-create-page/SKILL.md +7 -108
  110. package/yida-skills/skills/yida-create-process/SKILL.md +22 -181
  111. package/yida-skills/skills/yida-create-report/SKILL.md +412 -14
  112. package/yida-skills/skills/yida-create-report/build-yida-report-schema.js +640 -0
  113. package/yida-skills/skills/yida-custom-page/SKILL.md +200 -616
  114. package/yida-skills/skills/yida-custom-page/examples/design-tokens.js +218 -0
  115. package/yida-skills/skills/yida-custom-page/{yida-assets-guide.md → references/assets-guide.md} +8 -6
  116. package/yida-skills/skills/yida-custom-page/references/coding-guide.md +397 -0
  117. package/yida-skills/skills/yida-custom-page/references/design-system.md +303 -0
  118. package/yida-skills/skills/yida-data-management/SKILL.md +60 -250
  119. package/yida-skills/skills/yida-data-management/references/data-format-guide.md +130 -0
  120. package/yida-skills/skills/yida-data-management/{reference → references}/verified-endpoints.md +3 -3
  121. package/yida-skills/skills/yida-density/examples/density-switch-page.js +177 -0
  122. package/yida-skills/skills/yida-export-conversation/SKILL.md +74 -0
  123. package/yida-skills/skills/yida-flash-note-to-prd/SKILL.md +538 -0
  124. package/yida-skills/skills/yida-flash-note-to-prd/build-flash-note-prompt.js +885 -0
  125. package/yida-skills/skills/yida-form-permission/SKILL.md +25 -172
  126. package/yida-skills/skills/yida-formula/SKILL.md +428 -0
  127. package/yida-skills/skills/yida-get-schema/SKILL.md +9 -71
  128. package/yida-skills/skills/yida-integration/SKILL.md +16 -0
  129. package/yida-skills/skills/yida-login/SKILL.md +19 -181
  130. package/yida-skills/skills/yida-logout/SKILL.md +5 -49
  131. package/yida-skills/skills/yida-page-config/SKILL.md +21 -237
  132. package/yida-skills/skills/yida-process-rule/references/process-ai-rules.md +170 -0
  133. package/yida-skills/skills/yida-publish-page/SKILL.md +21 -109
  134. package/yida-skills/skills/yida-report/SKILL.md +5 -16
  135. package/yida-skills/skills/yida-table-form/examples/table-form-batch-submit.js +431 -0
  136. package/README.ar.md +0 -221
  137. package/README.de.md +0 -221
  138. package/README.es.md +0 -221
  139. package/README.fr.md +0 -221
  140. package/README.hi.md +0 -221
  141. package/README.ja.md +0 -221
  142. package/README.ko.md +0 -221
  143. package/README.pt-BR.md +0 -221
  144. package/README.vi.md +0 -221
  145. package/README.zh-CN.md +0 -221
  146. package/README.zh-HK.md +0 -221
  147. package/README.zh-TW.md +0 -221
  148. package/lib/app/compile.d.ts +0 -17
  149. package/lib/app/compile.d.ts.map +0 -1
  150. package/lib/app/compile.js +0 -76
  151. package/lib/app/compile.js.map +0 -1
  152. package/lib/app/create-app.d.ts +0 -7
  153. package/lib/app/create-app.d.ts.map +0 -1
  154. package/lib/app/create-app.js.map +0 -1
  155. package/lib/app/create-form.d.ts +0 -59
  156. package/lib/app/create-form.d.ts.map +0 -1
  157. package/lib/app/create-form.js.map +0 -1
  158. package/lib/app/create-page.d.ts +0 -11
  159. package/lib/app/create-page.d.ts.map +0 -1
  160. package/lib/app/create-page.js.map +0 -1
  161. package/lib/app/datasource-utils.d.ts +0 -50
  162. package/lib/app/datasource-utils.d.ts.map +0 -1
  163. package/lib/app/datasource-utils.js +0 -313
  164. package/lib/app/datasource-utils.js.map +0 -1
  165. package/lib/app/export-app.d.ts +0 -9
  166. package/lib/app/export-app.d.ts.map +0 -1
  167. package/lib/app/export-app.js.map +0 -1
  168. package/lib/app/get-schema.d.ts +0 -7
  169. package/lib/app/get-schema.d.ts.map +0 -1
  170. package/lib/app/get-schema.js.map +0 -1
  171. package/lib/app/import-app.d.ts +0 -9
  172. package/lib/app/import-app.d.ts.map +0 -1
  173. package/lib/app/import-app.js.map +0 -1
  174. package/lib/app/publish.d.ts +0 -26
  175. package/lib/app/publish.d.ts.map +0 -1
  176. package/lib/app/publish.js.map +0 -1
  177. package/lib/app/update-form-config.d.ts +0 -2
  178. package/lib/app/update-form-config.d.ts.map +0 -1
  179. package/lib/app/update-form-config.js.map +0 -1
  180. package/lib/auth/auth.d.ts +0 -57
  181. package/lib/auth/auth.d.ts.map +0 -1
  182. package/lib/auth/auth.js.map +0 -1
  183. package/lib/auth/login.d.ts +0 -30
  184. package/lib/auth/login.d.ts.map +0 -1
  185. package/lib/auth/login.js.map +0 -1
  186. package/lib/auth/org.d.ts +0 -46
  187. package/lib/auth/org.d.ts.map +0 -1
  188. package/lib/auth/org.js.map +0 -1
  189. package/lib/auth/qr-login.d.ts +0 -22
  190. package/lib/auth/qr-login.d.ts.map +0 -1
  191. package/lib/auth/qr-login.js.map +0 -1
  192. package/lib/cdn/cdn-config-cmd.d.ts +0 -36
  193. package/lib/cdn/cdn-config-cmd.d.ts.map +0 -1
  194. package/lib/cdn/cdn-config-cmd.js.map +0 -1
  195. package/lib/cdn/cdn-config.d.ts +0 -81
  196. package/lib/cdn/cdn-config.d.ts.map +0 -1
  197. package/lib/cdn/cdn-config.js.map +0 -1
  198. package/lib/cdn/cdn-refresh.d.ts +0 -69
  199. package/lib/cdn/cdn-refresh.d.ts.map +0 -1
  200. package/lib/cdn/cdn-refresh.js.map +0 -1
  201. package/lib/cdn/cdn-upload.d.ts +0 -56
  202. package/lib/cdn/cdn-upload.d.ts.map +0 -1
  203. package/lib/cdn/cdn-upload.js.map +0 -1
  204. package/lib/connector/action-generator.d.ts +0 -39
  205. package/lib/connector/action-generator.d.ts.map +0 -1
  206. package/lib/connector/action-generator.js.map +0 -1
  207. package/lib/connector/api.d.ts +0 -124
  208. package/lib/connector/api.d.ts.map +0 -1
  209. package/lib/connector/api.js.map +0 -1
  210. package/lib/connector/connector-add-action.d.ts +0 -14
  211. package/lib/connector/connector-add-action.d.ts.map +0 -1
  212. package/lib/connector/connector-add-action.js.map +0 -1
  213. package/lib/connector/connector-create-connection.d.ts +0 -16
  214. package/lib/connector/connector-create-connection.d.ts.map +0 -1
  215. package/lib/connector/connector-create-connection.js.map +0 -1
  216. package/lib/connector/connector-create.d.ts +0 -24
  217. package/lib/connector/connector-create.d.ts.map +0 -1
  218. package/lib/connector/connector-create.js.map +0 -1
  219. package/lib/connector/connector-delete-action.d.ts +0 -11
  220. package/lib/connector/connector-delete-action.d.ts.map +0 -1
  221. package/lib/connector/connector-delete-action.js.map +0 -1
  222. package/lib/connector/connector-delete.d.ts +0 -8
  223. package/lib/connector/connector-delete.d.ts.map +0 -1
  224. package/lib/connector/connector-delete.js.map +0 -1
  225. package/lib/connector/connector-detail.d.ts +0 -8
  226. package/lib/connector/connector-detail.d.ts.map +0 -1
  227. package/lib/connector/connector-detail.js.map +0 -1
  228. package/lib/connector/connector-gen-template.d.ts +0 -8
  229. package/lib/connector/connector-gen-template.d.ts.map +0 -1
  230. package/lib/connector/connector-gen-template.js.map +0 -1
  231. package/lib/connector/connector-list-actions.d.ts +0 -8
  232. package/lib/connector/connector-list-actions.d.ts.map +0 -1
  233. package/lib/connector/connector-list-actions.js.map +0 -1
  234. package/lib/connector/connector-list-connections.d.ts +0 -8
  235. package/lib/connector/connector-list-connections.d.ts.map +0 -1
  236. package/lib/connector/connector-list-connections.js.map +0 -1
  237. package/lib/connector/connector-list.d.ts +0 -13
  238. package/lib/connector/connector-list.d.ts.map +0 -1
  239. package/lib/connector/connector-list.js.map +0 -1
  240. package/lib/connector/connector-parse-api.d.ts +0 -14
  241. package/lib/connector/connector-parse-api.d.ts.map +0 -1
  242. package/lib/connector/connector-parse-api.js.map +0 -1
  243. package/lib/connector/connector-smart-create.d.ts +0 -13
  244. package/lib/connector/connector-smart-create.d.ts.map +0 -1
  245. package/lib/connector/connector-smart-create.js.map +0 -1
  246. package/lib/connector/connector-test.d.ts +0 -8
  247. package/lib/connector/connector-test.d.ts.map +0 -1
  248. package/lib/connector/connector-test.js.map +0 -1
  249. package/lib/connector/curl-parser.d.ts +0 -35
  250. package/lib/connector/curl-parser.d.ts.map +0 -1
  251. package/lib/connector/curl-parser.js.map +0 -1
  252. package/lib/connector/desc-generator.d.ts +0 -23
  253. package/lib/connector/desc-generator.d.ts.map +0 -1
  254. package/lib/connector/desc-generator.js.map +0 -1
  255. package/lib/connector/doc-parser.d.ts +0 -101
  256. package/lib/connector/doc-parser.d.ts.map +0 -1
  257. package/lib/connector/doc-parser.js.map +0 -1
  258. package/lib/connector/response-parser.d.ts +0 -40
  259. package/lib/connector/response-parser.d.ts.map +0 -1
  260. package/lib/connector/response-parser.js.map +0 -1
  261. package/lib/core/check-update.d.ts +0 -20
  262. package/lib/core/check-update.d.ts.map +0 -1
  263. package/lib/core/check-update.js.map +0 -1
  264. package/lib/core/copy.d.ts +0 -32
  265. package/lib/core/copy.d.ts.map +0 -1
  266. package/lib/core/copy.js.map +0 -1
  267. package/lib/core/doctor.d.ts +0 -289
  268. package/lib/core/doctor.d.ts.map +0 -1
  269. package/lib/core/doctor.js.map +0 -1
  270. package/lib/core/env.d.ts +0 -20
  271. package/lib/core/env.d.ts.map +0 -1
  272. package/lib/core/env.js.map +0 -1
  273. package/lib/core/i18n.d.ts +0 -41
  274. package/lib/core/i18n.d.ts.map +0 -1
  275. package/lib/core/i18n.js.map +0 -1
  276. package/lib/core/locales/ar.d.ts +0 -625
  277. package/lib/core/locales/ar.d.ts.map +0 -1
  278. package/lib/core/locales/ar.js.map +0 -1
  279. package/lib/core/locales/de.d.ts +0 -625
  280. package/lib/core/locales/de.d.ts.map +0 -1
  281. package/lib/core/locales/de.js.map +0 -1
  282. package/lib/core/locales/en.d.ts +0 -626
  283. package/lib/core/locales/en.d.ts.map +0 -1
  284. package/lib/core/locales/en.js.map +0 -1
  285. package/lib/core/locales/es.d.ts +0 -625
  286. package/lib/core/locales/es.d.ts.map +0 -1
  287. package/lib/core/locales/es.js.map +0 -1
  288. package/lib/core/locales/fr.d.ts +0 -625
  289. package/lib/core/locales/fr.d.ts.map +0 -1
  290. package/lib/core/locales/fr.js.map +0 -1
  291. package/lib/core/locales/hi.d.ts +0 -625
  292. package/lib/core/locales/hi.d.ts.map +0 -1
  293. package/lib/core/locales/hi.js.map +0 -1
  294. package/lib/core/locales/ja.d.ts +0 -625
  295. package/lib/core/locales/ja.d.ts.map +0 -1
  296. package/lib/core/locales/ja.js.map +0 -1
  297. package/lib/core/locales/ko.d.ts +0 -625
  298. package/lib/core/locales/ko.d.ts.map +0 -1
  299. package/lib/core/locales/ko.js.map +0 -1
  300. package/lib/core/locales/pt.d.ts +0 -625
  301. package/lib/core/locales/pt.d.ts.map +0 -1
  302. package/lib/core/locales/pt.js.map +0 -1
  303. package/lib/core/locales/vi.d.ts +0 -625
  304. package/lib/core/locales/vi.d.ts.map +0 -1
  305. package/lib/core/locales/vi.js.map +0 -1
  306. package/lib/core/locales/zh-TW.d.ts +0 -625
  307. package/lib/core/locales/zh-TW.d.ts.map +0 -1
  308. package/lib/core/locales/zh-TW.js.map +0 -1
  309. package/lib/core/locales/zh.d.ts +0 -645
  310. package/lib/core/locales/zh.d.ts.map +0 -1
  311. package/lib/core/locales/zh.js.map +0 -1
  312. package/lib/core/query-data.d.ts +0 -13
  313. package/lib/core/query-data.d.ts.map +0 -1
  314. package/lib/core/query-data.js.map +0 -1
  315. package/lib/core/utils.d.ts +0 -66
  316. package/lib/core/utils.d.ts.map +0 -1
  317. package/lib/core/utils.js.map +0 -1
  318. package/lib/integration/integration-api.d.ts +0 -67
  319. package/lib/integration/integration-api.d.ts.map +0 -1
  320. package/lib/integration/integration-api.js.map +0 -1
  321. package/lib/integration/integration-create.d.ts +0 -3
  322. package/lib/integration/integration-create.d.ts.map +0 -1
  323. package/lib/integration/integration-create.js.map +0 -1
  324. package/lib/integration/integration-node-ids.d.ts +0 -31
  325. package/lib/integration/integration-node-ids.d.ts.map +0 -1
  326. package/lib/integration/integration-node-ids.js.map +0 -1
  327. package/lib/integration/integration-process-builder.d.ts +0 -61
  328. package/lib/integration/integration-process-builder.d.ts.map +0 -1
  329. package/lib/integration/integration-process-builder.js.map +0 -1
  330. package/lib/integration/integration-view-builder.d.ts +0 -45
  331. package/lib/integration/integration-view-builder.d.ts.map +0 -1
  332. package/lib/integration/integration-view-builder.js.map +0 -1
  333. package/lib/page-config/get-page-config.d.ts +0 -7
  334. package/lib/page-config/get-page-config.d.ts.map +0 -1
  335. package/lib/page-config/get-page-config.js.map +0 -1
  336. package/lib/page-config/save-share-config.d.ts +0 -7
  337. package/lib/page-config/save-share-config.d.ts.map +0 -1
  338. package/lib/page-config/save-share-config.js.map +0 -1
  339. package/lib/page-config/verify-short-url.d.ts +0 -20
  340. package/lib/page-config/verify-short-url.d.ts.map +0 -1
  341. package/lib/page-config/verify-short-url.js.map +0 -1
  342. package/lib/permission/get-permission.d.ts +0 -7
  343. package/lib/permission/get-permission.d.ts.map +0 -1
  344. package/lib/permission/get-permission.js.map +0 -1
  345. package/lib/permission/save-permission.d.ts +0 -7
  346. package/lib/permission/save-permission.d.ts.map +0 -1
  347. package/lib/permission/save-permission.js.map +0 -1
  348. package/lib/process/configure-process.d.ts +0 -16
  349. package/lib/process/configure-process.d.ts.map +0 -1
  350. package/lib/process/configure-process.js.map +0 -1
  351. package/lib/process/create-process.d.ts +0 -14
  352. package/lib/process/create-process.d.ts.map +0 -1
  353. package/lib/process/create-process.js.map +0 -1
  354. package/lib/report/append.d.ts +0 -3
  355. package/lib/report/append.d.ts.map +0 -1
  356. package/lib/report/append.js.map +0 -1
  357. package/lib/report/chart-builder.d.ts +0 -92
  358. package/lib/report/chart-builder.d.ts.map +0 -1
  359. package/lib/report/chart-builder.js.map +0 -1
  360. package/lib/report/constants.d.ts +0 -40
  361. package/lib/report/constants.d.ts.map +0 -1
  362. package/lib/report/constants.js.map +0 -1
  363. package/lib/report/create-report.d.ts +0 -15
  364. package/lib/report/create-report.d.ts.map +0 -1
  365. package/lib/report/create-report.js.map +0 -1
  366. package/lib/report/http.d.ts +0 -10
  367. package/lib/report/http.d.ts.map +0 -1
  368. package/lib/report/http.js.map +0 -1
  369. package/lib/report/index.d.ts +0 -3
  370. package/lib/report/index.d.ts.map +0 -1
  371. package/lib/report/index.js.map +0 -1
  372. package/lib/types/index.d.ts +0 -91
  373. package/lib/types/index.d.ts.map +0 -1
  374. package/lib/types/index.js +0 -8
  375. package/lib/types/index.js.map +0 -1
  376. package/scripts/sync-locales.js +0 -288
  377. package/scripts/update-contributors.js +0 -152
  378. package/scripts/validate-deps.js +0 -171
  379. package/scripts/validate-i18n.js +0 -246
  380. package/yida-skills/reference/connector-datasource.md +0 -387
  381. package/yida-skills/reference/vc-yida-report-components-doc.md +0 -615
  382. package/yida-skills/skills/yida-custom-page/jsx-compile-checklist.md +0 -113
  383. package/yida-skills/skills/yida-data-management/reference/data-format-guide.md +0 -73
  384. package/yida-skills/skills/yida-report/build-yida-report-schema.js +0 -1284
  385. /package/yida-skills/{reference → references}/model-api.md +0 -0
  386. /package/yida-skills/{reference → references}/query-condition-guide.md +0 -0
  387. /package/yida-skills/{reference → references}/yida-api.md +0 -0
  388. /package/yida-skills/{reference → skills/yida-create-form-page/references}/association-form-field.md +0 -0
  389. /package/yida-skills/{reference → skills/yida-create-form-page/references}/employee-field.md +0 -0
  390. /package/yida-skills/{reference → skills/yida-create-form-page/references}/serial-number-field.md +0 -0
  391. /package/yida-skills/skills/yida-data-management/{reference → references}/api-matrix.md +0 -0
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  [![Node.js ≥18](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)
18
18
 
19
19
  **Languages:**
20
- [English](./README.md) · [简体中文](./README.zh-CN.md) · [繁體中文(台灣)](./README.zh-TW.md) · [繁體中文(香港)](./README.zh-HK.md) · [日本語](./README.ja.md) · [한국어](./README.ko.md) · [Français](./README.fr.md) · [Deutsch](./README.de.md) · [Español](./README.es.md) · [Português (BR)](./README.pt-BR.md) · [Tiếng Việt](./README.vi.md) · [हिन्दी](./README.hi.md) · [العربية](./README.ar.md)
20
+ [English](https://openyida.ai/docs/en) · [简体中文](https://openyida.ai/docs) · [繁體中文(香港)](https://openyida.ai/docs/zh-Hant/) · [日本語](https://openyida.ai/docs/ja/) · [한국어](https://openyida.ai/docs/ko/) · [Français](https://openyida.ai/docs/fr/) · [Deutsch](https://openyida.ai/docs/de/) · [Español](https://openyida.ai/docs/es/) · [Português (BR)](https://openyida.ai/docs/pt/) · [Tiếng Việt](https://openyida.ai/docs/vi/) · [हिन्दी](https://openyida.ai/docs/hi/) · [العربية](https://openyida.ai/docs/ar/)
21
21
 
22
22
  </div>
23
23
 
@@ -72,76 +72,46 @@ Create a personal salary calculator app
72
72
  |------------|---------|---------|
73
73
  | Node.js | ≥ 18 | CLI runtime & page publishing |
74
74
 
75
- ### ⚠️ JSX Compilation Notes
76
-
77
- When developing custom pages, the code must be compatible with **React 16 + Babel ES2015**. Avoid using:
78
- - ❌ Class fields syntax (`count = 0`)
79
- - ❌ `import` / `export default`
80
- - ❌ Optional chaining (`obj?.prop`) / Nullish coalescing (`a ?? b`)
81
- - ⚠️ Event handlers must use arrow functions: `onClick={(e) => { this.handle(e); }}`
82
-
83
- See `skills/yida-custom-page/SKILL.md` for detailed guidelines and troubleshooting.
84
-
85
75
  ---
86
76
 
87
77
  ## CLI Commands
88
78
 
89
79
  ```bash
90
- # Environment & Auth
91
- openyida env # Detect current AI tool environment and login status
92
- openyida login # Log in to Yida (uses cache, falls back to QR code)
93
- openyida logout # Log out / switch account
94
- openyida copy # Initialize project working directory for current AI tool
95
- openyida auth status # View current login status
96
- openyida auth login # Perform login
97
- openyida auth refresh # Refresh login session
98
- openyida auth logout # Log out
99
- openyida org list # List accessible organizations
100
- openyida org switch # Switch organization (--corp-id <corpId>)
101
- openyida doctor # Environment diagnostics & auto-fix (--fix, --report, etc.)
102
-
103
- # App & Form Management
104
- openyida create-app # Create application
105
- openyida create-page # Create custom display page
106
- openyida create-form # Create or update form page
107
- openyida get-schema # Fetch form schema
108
- openyida publish # Compile and publish custom page
109
- openyida update-form-config # Update form configuration
110
- openyida export # Export app
111
- openyida import # Import migration package
112
-
113
- # Page Config & Sharing
114
- openyida verify-short-url # Verify short URL accessibility
115
- openyida save-share-config # Save public access / sharing config
116
- openyida get-page-config # Query page sharing config
117
-
118
- # Data Management
119
- openyida data # Unified data management
120
- openyida query-data # Query form instance data
121
-
122
- # Permissions & Process
123
- openyida get-permission # Query form permission config
124
- openyida save-permission # Save form permission config
125
- openyida configure-process # Configure and publish process
126
- openyida create-process # Create process form
127
-
128
- # Connector (HTTP)
129
- openyida connector list # List HTTP connectors
130
- openyida connector create # Create a connector
131
- openyida connector detail # View connector details
132
- openyida connector delete # Delete a connector
133
- openyida connector add-action # Add an action to a connector
134
- openyida connector test # Test a connector action
135
- openyida connector smart-create # Smart create from curl command
136
-
137
- # Report
138
- openyida create-report # Create Yida report with charts
139
- openyida append-chart # Append charts to existing report
140
-
141
- # CDN
142
- openyida cdn-config # Configure CDN image upload
143
- openyida cdn-upload # Upload images to CDN
144
- openyida cdn-refresh # Refresh CDN cache
80
+ openyida append-chart # Append chart to an existing report
81
+ openyida auth # Login status management (status/login/refresh/logout)
82
+ openyida cdn-config # Configure CDN image upload (Aliyun OSS + CDN)
83
+ openyida cdn-refresh # Refresh CDN cache
84
+ openyida cdn-upload # Upload images to CDN
85
+ openyida configure-process # Configure and publish process rules
86
+ openyida connector # HTTP connector management
87
+ openyida copy # Initialize project working directory for current AI tool
88
+ openyida create-app # Create a Yida application
89
+ openyida create-form # Create / update a form page
90
+ openyida create-page # Create a custom display page
91
+ openyida create-process # Create a process form (integrated)
92
+ openyida create-report # Create a Yida report
93
+ openyida data # Unified data management (form/process/task/subform)
94
+ openyida doctor # Environment diagnostics and auto-repair
95
+ openyida dws <command> [args] # DingTalk CLI (Contacts/Calendar/Todo/Approval, etc.)
96
+ openyida env # Detect current AI tool environment and login status
97
+ openyida export # Export application migration package
98
+ openyida export-conversation [format] # Export AI conversation history
99
+ openyida flash-to-prd <appType> [options] # Flash note to PRD (supports meeting recognition)
100
+ openyida get-page-config # Query page public access / sharing config
101
+ openyida get-permission # Query form permission configuration
102
+ openyida get-schema # Fetch form schema
103
+ openyida import # Import migration package to rebuild application
104
+ openyida integration create <appType> [options] # Create integration & automation flow
105
+ openyida login # Log in to Yida (uses cache, falls back to QR code)
106
+ openyida logout # Log out / switch account
107
+ openyida org # Organization management (list/switch)
108
+ openyida publish # Compile and publish a custom page
109
+ openyida query-data # Query form instance data
110
+ openyida save-permission # Save form permission configuration
111
+ openyida save-share-config # Save public access / sharing config
112
+ openyida task-center [filter] # Global task center (Todo/Created/Processed/CC/Submit)
113
+ openyida update-form-config # Update form configuration
114
+ openyida verify-short-url # Verify if a short URL is accessible
145
115
  ```
146
116
 
147
117
  ---
@@ -211,7 +181,7 @@ Scan the QR code to join the OpenYida user group on DingTalk for the latest upda
211
181
 
212
182
  Thanks to everyone who has contributed to OpenYida! Read the [Contributing Guide](./CONTRIBUTING.md) to get involved.
213
183
 
214
- <p align="left" id="contributors">
184
+ <p align="left">
215
185
  <a href="https://github.com/yize"><img src="https://avatars.githubusercontent.com/u/1578814?v=4&s=48" width="48" height="48" alt="九神" title="九神"/></a>
216
186
  <a href="https://github.com/alex-mm"><img src="https://avatars.githubusercontent.com/u/3302053?v=4&s=48" width="48" height="48" alt="天晟" title="天晟"/></a>
217
187
  <a href="https://github.com/nicky1108"><img src="https://avatars.githubusercontent.com/u/4279283?v=4&s=48" width="48" height="48" alt="nicky1108" title="nicky1108"/></a>
@@ -222,7 +192,10 @@ Thanks to everyone who has contributed to OpenYida! Read the [Contributing Guide
222
192
  <a href="https://github.com/ElZe98"><img src="https://avatars.githubusercontent.com/u/35736727?v=4&s=48" width="48" height="48" alt="ElZe98" title="ElZe98"/></a>
223
193
  <a href="https://github.com/OAHyuhao"><img src="https://avatars.githubusercontent.com/u/99954323?v=4&s=48" width="48" height="48" alt="OAHyuhao" title="OAHyuhao"/></a>
224
194
  <a href="https://github.com/xiaofu704"><img src="https://avatars.githubusercontent.com/u/209416122?v=4&s=48" width="48" height="48" alt="xiaofu704" title="xiaofu704"/></a>
225
- <a href="https://github.com/guchenglin111"><img src="https://avatars.githubusercontent.com/u/10860875?v=4&s=48" width="48" height="48" alt="guchenglin111" title="guchenglin111"/></a> <a href="https://github.com/liug0911"><img src="https://avatars.githubusercontent.com/u/15044477?v=4&s=48" width="48" height="48" alt="liug0911" title="liug0911"/></a> <a href="https://github.com/sunliz-xiuli"><img src="https://avatars.githubusercontent.com/u/76982855?v=4&s=48" width="48" height="48" alt="sunliz-xiuli" title="sunliz-xiuli"/></a> <a href="https://github.com/M12REDX"><img src="https://avatars.githubusercontent.com/u/22703542?v=4&s=48" width="48" height="48" alt="M12REDX" title="M12REDX"/></a>
195
+ <a href="https://github.com/guchenglin111"><img src="https://avatars.githubusercontent.com/u/10860875?v=4&s=48" width="48" height="48" alt="guchenglin111" title="guchenglin111"/></a>
196
+ <a href="https://github.com/liug0911"><img src="https://avatars.githubusercontent.com/u/1578814?v=4&s=48" width="48" height="48" alt="LIUG" title="LIUG"/></a>
197
+ <a href="https://github.com/sunliz-xiuli"><img src="https://avatars.githubusercontent.com/u/76982855?v=4&s=48" width="48" height="48" alt="sunliz-xiuli" title="sunliz-xiuli"/></a>
198
+ <a href="https://github.com/M12REDX"><img src="https://avatars.githubusercontent.com/u/22703542?v=4&s=48" width="48" height="48" alt="M12REDX" title="M12REDX"/></a>
226
199
  </p>
227
200
 
228
201
  ---
package/bin/yida.js CHANGED
@@ -21,13 +21,13 @@
21
21
  * openyida create-form create <appType> "<表单名>" <字段JSON> [--layout <布局>] [--theme <主题>] [--label-align <对齐>] 创建表单页面
22
22
  * openyida create-form update <appType> <formUuid> <修改JSON> 更新表单页面
23
23
  * openyida get-schema <appType> <formUuid> 获取表单 Schema
24
- * openyida compile <源文件路径> 仅编译自定义页面(不发布,产物输出到 pages/dist/)
25
24
  * openyida publish <源文件路径> <appType> <formUuid> 编译并发布自定义页面
26
25
  * openyida verify-short-url <appType> <formUuid> <url> 验证短链接 URL 是否可用
27
26
  * openyida save-share-config <appType> <formUuid> <url> <isOpen> [openAuth] 保存公开访问/分享配置
28
27
  * openyida get-page-config <appType> <formUuid> 查询页面公开访问/分享配置
29
28
  * openyida update-form-config <appType> <formUuid> <isRenderNav> <title> 更新表单配置
30
29
  * openyida data <action> <resource> [args] 统一数据管理(表单/流程/任务/子表单)
30
+ * openyida task-center <type> [--page N] [--size N] [--keyword TEXT] 全局任务中心(待办/我创建的/我已处理/抄送/代提交)
31
31
  * openyida doctor [选项] 检查环境依赖,诊断应用问题
32
32
  * openyida export <appType> [output] 导出应用所有表单 Schema(生成迁移包)
33
33
  * openyida import <file> [name] 导入迁移包,在目标环境重建应用
@@ -46,8 +46,10 @@
46
46
  * openyida connector smart-create --curl "curl命令" [选项] 智能创建连接器
47
47
  * openyida connector parse-api [选项] 解析接口信息
48
48
  * openyida connector gen-template [输出路径] 生成接口文档模板
49
+ * openyida integration create <appType> <formUuid> <flowName> [选项] 创建集成&自动化逻辑流
49
50
  * openyida create-report <appType> "<报表名称>" <图表定义JSON或文件路径> 创建宜搭报表
50
51
  * openyida append-chart <appType> <reportId> <图表定义JSON或文件路径> 向已有报表追加图表
52
+ * openyida dws <command> [args] 钉钉 CLI(通讯录/日历/待办/审批等)
51
53
  */
52
54
 
53
55
  'use strict';
@@ -63,6 +65,104 @@ const command = process.argv[2];
63
65
  const args = process.argv.slice(3);
64
66
 
65
67
  function printHelp() {
68
+ console.log(`
69
+ openyida - 宜搭命令行工具
70
+
71
+ 用法:
72
+ openyida <命令> [参数...](别名:yida)
73
+
74
+ 命令:
75
+ env 检测当前 AI 工具环境和登录态
76
+ copy [--force] 复制 project 工作目录到当前 AI 工具环境
77
+ login 登录态管理(优先缓存,否则扫码)
78
+ logout 退出登录 / 切换账号
79
+ create-app "<名称>" [描述] [图标] [颜色] [主题色] 创建应用,输出 appType
80
+ create-page <appType> "<页面名>" 创建自定义页面,输出 pageId
81
+ create-form create <appType> "<表单名>" <字段JSON> [--layout <布局>] [--theme <主题>] [--label-align <对齐>] 创建表单页面
82
+ create-form update <appType> <formUuid> <修改JSON> 更新表单页面
83
+ get-schema <appType> <formUuid> 获取表单 Schema
84
+ publish <源文件路径> <appType> <formUuid> 编译并发布自定义页面
85
+ verify-short-url <appType> <formUuid> <url> 验证短链接 URL 是否可用
86
+ save-share-config <appType> <formUuid> <url> <isOpen> [auth] 保存公开访问/分享配置
87
+ get-page-config <appType> <formUuid> 查询页面公开访问/分享配置
88
+ update-form-config <appType> <formUuid> <isRenderNav> <title> 更新表单配置
89
+ data <action> <resource> [args] 统一数据管理(表单/流程/任务/子表单)
90
+ doctor [选项] 检查环境依赖,诊断应用问题
91
+ --fix / --repair 诊断并自动修复
92
+ --production --app <appId> 线上应用诊断
93
+ --monitor 启动实时健康度监控
94
+ --report <format> 生成诊断报告(json | markdown | html)
95
+ --create-ticket 根据诊断结果创建工单
96
+ --create-voc 创建 VOC(需求反馈)
97
+ --auto-submit 自动判断并提交工单或 VOC
98
+ auth status 查看当前登录状态
99
+ auth login 执行登录
100
+ auth refresh 刷新登录态
101
+ auth logout 退出登录
102
+ org list 列出可访问的组织
103
+ org switch --corp-id <corpId> 切换组织(无需重新登录)
104
+ get-permission <appType> <formUuid> 查询表单权限配置
105
+ save-permission <appType> <formUuid> [--data-permission <json>] [--action-permission <json>] 保存表单权限配置
106
+ configure-process <appType> <formUuid> <processDefinitionFile> [processCode] 配置并发布流程
107
+ create-process <appType> <formTitle> <fieldsJsonFile> <processDefinitionFile> 创建流程表单(一体化)
108
+ create-process <appType> --formUuid <formUuid> <processDefinitionFile> 复用已有表单创建流程
109
+ connector list [选项] 列出 HTTP 连接器
110
+ connector create "名称" "域名" --operations <file> [选项] 创建连接器
111
+ connector detail <connector-id> 查看连接器详情
112
+ connector delete <connector-id> [--force] 删除连接器
113
+ connector add-action --operations <file> --connector-id <id> 添加执行动作到连接器
114
+ connector list-actions <connector-id> 列出执行动作
115
+ connector delete-action <connector-id> <operation-id> 删除执行动作
116
+ connector test --connector-id <id> --action <actionId> 测试执行动作
117
+ connector list-connections <connector-id> 列出鉴权账号
118
+ connector create-connection <connector-id> <name> [选项] 创建鉴权账号
119
+ connector smart-create --curl "curl命令" [选项] 智能创建连接器
120
+ connector parse-api [选项] 解析接口信息
121
+ connector gen-template [输出路径] 生成接口文档模板
122
+ dws <command> [args] 钉钉 CLI(通讯录/日历/待办/审批等)
123
+ create-report <appType> "<报表名称>" <图表定义 JSON 或文件路径> 创建宜搭报表
124
+ append-chart <appType> <reportId> <图表定义 JSON 或文件路径> 向已有报表追加图表
125
+ export-conversation [选项] 导出 AI 对话记录
126
+ --output, -o <path> 指定输出文件路径
127
+ --input, -i <file> 指定输入对话文件
128
+ --latest 只导出最新对话(默认)
129
+ --list 列出可用的对话记录
130
+
131
+ 示例:
132
+ openyida login
133
+ openyida logout
134
+ openyida create-app "考勤管理"
135
+ openyida create-app "考勤管理" "员工考勤系统" "xian-daka" "#00B853" "red"
136
+ openyida create-page APP_XXX "游戏主页"
137
+ openyida create-form create APP_XXX "员工信息" fields.json
138
+ openyida create-form update APP_XXX FORM-XXX '[{"action":"add","field":{"type":"TextField","label":"备注"}}]'
139
+ openyida get-schema APP_XXX FORM-XXX
140
+ openyida publish pages/src/home.jsx APP_XXX FORM-XXX
141
+ openyida verify-short-url APP_XXX FORM-XXX /o/myapp
142
+ openyida save-share-config APP_XXX FORM-XXX /o/myapp y n
143
+ openyida get-page-config APP_XXX FORM-XXX
144
+ openyida update-form-config APP_XXX FORM-XXX false "页面标题"
145
+ openyida data query form APP_XXX FORM-XXX --page 1 --size 20
146
+ openyida dws contact user search --keyword "悟空"
147
+ openyida dws calendar event list
148
+ openyida dws todo task create --title "任务"
149
+ openyida create-report APP_XXX "销售报表" charts.json
150
+ openyida append-chart APP_XXX REPORT-XXX charts.json
151
+ openyida configure-process APP_XXX FORM-YYY process-def.json
152
+ openyida create-process APP_XXX "订单处理表" fields.json process-def.json
153
+ openyida create-process APP_XXX --formUuid FORM-YYY process-def.json
154
+ openyida doctor 完整诊断
155
+ openyida doctor --fix 诊断并自动修复
156
+ openyida doctor --production --app APP_XXX 线上应用诊断
157
+ openyida doctor --monitor 实时监控
158
+ openyida doctor --report markdown 生成 Markdown 报告
159
+ openyida doctor --create-ticket 创建工单
160
+ openyida doctor --create-voc 创建 VOC
161
+ openyida doctor --auto-submit 自动判断并提交
162
+ openyida export-conversation 导出当前对话记录
163
+ openyida export-conversation -o output.md 指定输出路径
164
+ openyida export-conversation --list 列出可用对话
165
+ `);
66
166
  console.log(t('cli.help'));
67
167
  }
68
168
 
@@ -80,7 +180,7 @@ function handleFirstRunGuide() {
80
180
  const FIRST_RUN_FLAG = path.join(OPENYIDA_DIR, 'first-run-done');
81
181
 
82
182
  // 已运行过,跳过引导
83
- if (fs.existsSync(FIRST_RUN_FLAG)) { return; }
183
+ if (fs.existsSync(FIRST_RUN_FLAG)) {return;}
84
184
 
85
185
  // 写入标记,避免重复展示
86
186
  try {
@@ -266,30 +366,24 @@ async function main() {
266
366
  break;
267
367
  }
268
368
 
269
- case 'compile': {
270
- // 参数顺序:<源文件路径>
271
- if (args.length < 1) {
272
- console.error(t('cli.compile_usage'));
273
- console.error(t('cli.compile_example'));
274
- process.exit(1);
275
- }
276
- const { run: runCompile } = require('../lib/app/compile');
277
- await runCompile(args);
278
- break;
279
- }
280
-
281
369
  case 'publish': {
282
370
  // 参数顺序:<源文件路径> <appType> <formUuid>
283
371
  // publish.js 内部读取顺序:argv[2]=appType, argv[3]=formUuid, argv[4]=sourceFile
284
- if (args.length < 3) {
372
+ const skipLint = args.includes('--skip-lint');
373
+ const filteredArgs = args.filter(arg => arg !== '--skip-lint');
374
+ if (filteredArgs.length < 3) {
285
375
  console.error(t('cli.publish_usage'));
286
376
  console.error(t('cli.publish_example'));
287
377
  process.exit(1);
288
378
  }
289
- const [sourceFile, appType, formUuid] = args;
290
- process.argv = [process.argv[0], process.argv[1], appType, formUuid, sourceFile];
291
- const { run: publishRun } = require('../lib/app/publish');
292
- await publishRun();
379
+ const [sourceFile, appType, formUuid] = filteredArgs;
380
+ process.argv = [
381
+ process.argv[0], process.argv[1],
382
+ appType, formUuid, sourceFile,
383
+ ...(skipLint ? ['--skip-lint'] : [])
384
+ ];
385
+ const publishMain = require('../lib/app/publish');
386
+ await publishMain();
293
387
  break;
294
388
  }
295
389
 
@@ -339,8 +433,8 @@ async function main() {
339
433
 
340
434
  case 'data': {
341
435
  if (args.length < 2) {
342
- console.error(t('cli.data_usage'));
343
- console.error(t('cli.data_example'));
436
+ console.error('用法: openyida data <action> <resource> [args] [options]');
437
+ console.error('示例: openyida data query form APP_XXX FORM_XXX --page 1 --size 20');
344
438
  process.exit(1);
345
439
  }
346
440
  const { run: runDataManagement } = require('../lib/core/query-data');
@@ -473,14 +567,33 @@ async function main() {
473
567
  };
474
568
 
475
569
  if (!subCommand || subCommand === '--help' || subCommand === '-h') {
476
- console.log(t('cli.connector_help'));
570
+ console.log(`
571
+ 用法: openyida connector <子命令> [参数]
572
+
573
+ 子命令:
574
+ list 列出 HTTP 连接器
575
+ create "名称" "域名" --operations <file> 创建连接器
576
+ detail <connector-id> 查看连接器详情
577
+ delete <connector-id> [--force] 删除连接器
578
+ add-action --operations <file> --connector-id <id> 添加执行动作
579
+ list-actions <connector-id> 列出执行动作
580
+ delete-action <connector-id> <operation-id> 删除执行动作
581
+ test --connector-id <id> --action <actionId> 测试执行动作
582
+ list-connections <connector-id> 列出鉴权账号
583
+ create-connection <connector-id> <name> 创建鉴权账号
584
+ smart-create --curl "curl命令" 智能创建连接器
585
+ parse-api [选项] 解析接口信息
586
+ gen-template [输出路径] 生成接口文档模板
587
+
588
+ 使用 openyida connector <子命令> --help 查看详细帮助
589
+ `);
477
590
  break;
478
591
  }
479
592
 
480
593
  const modulePath = connectorSubCommands[subCommand];
481
594
  if (!modulePath) {
482
- console.error(t('cli.connector_unknown', subCommand));
483
- console.error(t('cli.connector_help_hint'));
595
+ console.error(`未知的 connector 子命令: ${subCommand}`);
596
+ console.error('使用 openyida connector --help 查看可用子命令');
484
597
  process.exit(1);
485
598
  }
486
599
 
@@ -489,8 +602,15 @@ async function main() {
489
602
  break;
490
603
  }
491
604
 
605
+ case 'flash-to-prd': {
606
+ const { run: runFlashToPrd } = require('../lib/flash-note/flash-to-prd');
607
+ await runFlashToPrd(args);
608
+ break;
609
+ }
610
+
492
611
  case 'integration': {
493
612
  const subCommand = args[0];
613
+ const subArgs = args.slice(1); // 路由层消费 subCommand,传递剩余参数
494
614
 
495
615
  if (!subCommand || subCommand === '--help' || subCommand === '-h') {
496
616
  console.error(t('cli.integration_help'));
@@ -499,7 +619,7 @@ async function main() {
499
619
 
500
620
  if (subCommand === 'create') {
501
621
  const { run: runIntegration } = require('../lib/integration/integration-create');
502
- await runIntegration(args);
622
+ await runIntegration(subArgs);
503
623
  } else {
504
624
  console.error(t('cli.integration_unknown', subCommand));
505
625
  console.error(t('cli.integration_help_hint'));
@@ -508,6 +628,36 @@ async function main() {
508
628
  break;
509
629
  }
510
630
 
631
+ case 'dws': {
632
+ const { run: runDws } = require('../lib/dws/dws-wrapper');
633
+ await runDws(args);
634
+ break;
635
+ }
636
+ case 'export-conversation': {
637
+ const { exportConversation } = require('../lib/conversation/export-conversation');
638
+ // 解析选项
639
+ const options = {};
640
+ for (let i = 0; i < args.length; i++) {
641
+ if (args[i] === '--output' || args[i] === '-o') {
642
+ options.output = args[++i];
643
+ } else if (args[i] === '--input' || args[i] === '-i') {
644
+ options.input = args[++i];
645
+ } else if (args[i] === '--latest') {
646
+ options.latest = true;
647
+ } else if (args[i] === '--list') {
648
+ options.list = true;
649
+ }
650
+ }
651
+ await exportConversation(options);
652
+ break;
653
+ }
654
+
655
+ case 'task-center': {
656
+ const { run: runTaskCenter } = require('../lib/core/task-center');
657
+ await runTaskCenter(args);
658
+ break;
659
+ }
660
+
511
661
  default: {
512
662
  console.error(t('cli.unknown_command', command));
513
663
  console.error(t('cli.run_help'));