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.
- package/README.md +41 -68
- package/bin/yida.js +175 -25
- package/lib/app/create-app.js +176 -191
- package/lib/app/create-form.js +2239 -2047
- package/lib/app/create-page.js +85 -140
- package/lib/app/export-app.js +181 -171
- package/lib/app/get-schema.js +152 -50
- package/lib/app/import-app.js +324 -287
- package/lib/app/publish.js +677 -564
- package/lib/app/update-form-config.js +219 -221
- package/lib/auth/auth.js +207 -151
- package/lib/auth/login.js +251 -215
- package/lib/auth/org.js +320 -229
- package/lib/auth/qr-login.js +547 -424
- package/lib/cdn/cdn-config-cmd.js +197 -177
- package/lib/cdn/cdn-config.js +128 -104
- package/lib/cdn/cdn-refresh.js +224 -195
- package/lib/cdn/cdn-upload.js +262 -221
- package/lib/connector/action-generator.js +235 -207
- package/lib/connector/api.js +298 -186
- package/lib/connector/connector-add-action.js +179 -160
- package/lib/connector/connector-create-connection.js +129 -101
- package/lib/connector/connector-create.js +260 -246
- package/lib/connector/connector-delete-action.js +87 -67
- package/lib/connector/connector-delete.js +42 -33
- package/lib/connector/connector-detail.js +73 -62
- package/lib/connector/connector-gen-template.js +29 -27
- package/lib/connector/connector-list-actions.js +59 -48
- package/lib/connector/connector-list-connections.js +52 -39
- package/lib/connector/connector-list.js +79 -73
- package/lib/connector/connector-parse-api.js +179 -169
- package/lib/connector/connector-smart-create.js +169 -148
- package/lib/connector/connector-test.js +189 -157
- package/lib/connector/curl-parser.js +95 -76
- package/lib/connector/desc-generator.js +29 -24
- package/lib/connector/doc-parser.js +470 -419
- package/lib/connector/response-parser.js +112 -87
- package/lib/conversation/collector.js +363 -0
- package/lib/conversation/export-conversation.js +146 -0
- package/lib/conversation/formatter.js +316 -0
- package/lib/core/babel-transform/index.js +203 -230
- package/lib/core/babel-transform/jsx-utils.js +83 -107
- package/lib/core/check-update.js +45 -77
- package/lib/core/copy.js +288 -310
- package/lib/core/doctor.js +1317 -1127
- package/lib/core/env.js +140 -156
- package/lib/core/i18n.js +116 -98
- package/lib/core/locales/ar.js +425 -827
- package/lib/core/locales/de.js +425 -827
- package/lib/core/locales/en.js +879 -773
- package/lib/core/locales/es.js +425 -827
- package/lib/core/locales/fr.js +425 -827
- package/lib/core/locales/hi.js +425 -827
- package/lib/core/locales/ja.js +736 -804
- package/lib/core/locales/ko.js +428 -827
- package/lib/core/locales/pt.js +425 -827
- package/lib/core/locales/vi.js +425 -827
- package/lib/core/locales/zh-TW.js +770 -812
- package/lib/core/locales/zh.js +841 -706
- package/lib/core/query-data.js +311 -412
- package/lib/core/task-center.js +213 -0
- package/lib/core/utils.js +384 -282
- package/lib/dws/dws-wrapper.js +260 -0
- package/lib/flash-note/flash-to-prd.js +306 -0
- package/lib/integration/integration-api.js +190 -115
- package/lib/integration/integration-create.js +356 -312
- package/lib/integration/integration-node-ids.js +40 -34
- package/lib/integration/integration-process-builder.js +228 -204
- package/lib/integration/integration-view-builder.js +260 -239
- package/lib/page-config/get-page-config.js +90 -77
- package/lib/page-config/save-share-config.js +236 -203
- package/lib/page-config/verify-short-url.js +238 -198
- package/lib/permission/get-permission.js +184 -173
- package/lib/permission/save-permission.js +527 -444
- package/lib/process/configure-process.js +954 -881
- package/lib/process/create-process.js +264 -275
- package/lib/report/append.js +307 -222
- package/lib/report/chart-builder.js +1778 -1457
- package/lib/report/constants.js +34 -97
- package/lib/report/create-report.js +9 -10
- package/lib/report/http.js +25 -24
- package/lib/report/index.js +418 -192
- package/package.json +5 -25
- package/project/pages/src/demo-chip-insight.js +3 -3
- package/project/pages/src/demo-crm-batch-entry.js +805 -0
- package/project/pages/src/demo-crm-dashboard.js +677 -0
- package/project/pages/src/demo-future-vision-2026.js +4 -4
- package/project/pages/src/demo-salary-calculator.js +39 -10
- package/project/prd/demo-crm.md +463 -0
- package/scripts/demo-dws.sh +106 -0
- package/scripts/postinstall.js +44 -18
- package/scripts/validate-structure.js +4 -17
- package/yida-skills/SKILL.md +96 -129
- package/yida-skills/references/formula-functions.md +312 -0
- package/yida-skills/references/report-field-config-guide.md +294 -0
- package/yida-skills/skills/large-file-write/SKILL.md +88 -0
- package/yida-skills/skills/large-file-write/scripts/write.js +157 -0
- package/yida-skills/skills/yida-app/SKILL.md +196 -218
- package/yida-skills/skills/yida-chart/SKILL.md +2 -2
- package/yida-skills/skills/yida-chart/reference/echarts-bindding-guide.md +255 -0
- package/yida-skills/skills/yida-chart/reference/echarts-code-template.md +426 -0
- package/yida-skills/skills/yida-chart/reference/echarts-design-spec.md +178 -0
- package/yida-skills/skills/yida-chatbot/SKILL.md +237 -0
- package/yida-skills/skills/yida-connector/SKILL.md +46 -465
- package/yida-skills/skills/yida-connector/references/connector-action-format.md +178 -0
- package/yida-skills/skills/yida-create-app/SKILL.md +8 -124
- package/yida-skills/skills/yida-create-form-page/SKILL.md +62 -640
- package/yida-skills/skills/yida-create-form-page/references/form-field-properties.md +369 -0
- package/yida-skills/skills/yida-create-page/SKILL.md +7 -108
- package/yida-skills/skills/yida-create-process/SKILL.md +22 -181
- package/yida-skills/skills/yida-create-report/SKILL.md +412 -14
- package/yida-skills/skills/yida-create-report/build-yida-report-schema.js +640 -0
- package/yida-skills/skills/yida-custom-page/SKILL.md +200 -616
- package/yida-skills/skills/yida-custom-page/examples/design-tokens.js +218 -0
- package/yida-skills/skills/yida-custom-page/{yida-assets-guide.md → references/assets-guide.md} +8 -6
- package/yida-skills/skills/yida-custom-page/references/coding-guide.md +397 -0
- package/yida-skills/skills/yida-custom-page/references/design-system.md +303 -0
- package/yida-skills/skills/yida-data-management/SKILL.md +60 -250
- package/yida-skills/skills/yida-data-management/references/data-format-guide.md +130 -0
- package/yida-skills/skills/yida-data-management/{reference → references}/verified-endpoints.md +3 -3
- package/yida-skills/skills/yida-density/examples/density-switch-page.js +177 -0
- package/yida-skills/skills/yida-export-conversation/SKILL.md +74 -0
- package/yida-skills/skills/yida-flash-note-to-prd/SKILL.md +538 -0
- package/yida-skills/skills/yida-flash-note-to-prd/build-flash-note-prompt.js +885 -0
- package/yida-skills/skills/yida-form-permission/SKILL.md +25 -172
- package/yida-skills/skills/yida-formula/SKILL.md +428 -0
- package/yida-skills/skills/yida-get-schema/SKILL.md +9 -71
- package/yida-skills/skills/yida-integration/SKILL.md +16 -0
- package/yida-skills/skills/yida-login/SKILL.md +19 -181
- package/yida-skills/skills/yida-logout/SKILL.md +5 -49
- package/yida-skills/skills/yida-page-config/SKILL.md +21 -237
- package/yida-skills/skills/yida-process-rule/references/process-ai-rules.md +170 -0
- package/yida-skills/skills/yida-publish-page/SKILL.md +21 -109
- package/yida-skills/skills/yida-report/SKILL.md +5 -16
- package/yida-skills/skills/yida-table-form/examples/table-form-batch-submit.js +431 -0
- package/README.ar.md +0 -221
- package/README.de.md +0 -221
- package/README.es.md +0 -221
- package/README.fr.md +0 -221
- package/README.hi.md +0 -221
- package/README.ja.md +0 -221
- package/README.ko.md +0 -221
- package/README.pt-BR.md +0 -221
- package/README.vi.md +0 -221
- package/README.zh-CN.md +0 -221
- package/README.zh-HK.md +0 -221
- package/README.zh-TW.md +0 -221
- package/lib/app/compile.d.ts +0 -17
- package/lib/app/compile.d.ts.map +0 -1
- package/lib/app/compile.js +0 -76
- package/lib/app/compile.js.map +0 -1
- package/lib/app/create-app.d.ts +0 -7
- package/lib/app/create-app.d.ts.map +0 -1
- package/lib/app/create-app.js.map +0 -1
- package/lib/app/create-form.d.ts +0 -59
- package/lib/app/create-form.d.ts.map +0 -1
- package/lib/app/create-form.js.map +0 -1
- package/lib/app/create-page.d.ts +0 -11
- package/lib/app/create-page.d.ts.map +0 -1
- package/lib/app/create-page.js.map +0 -1
- package/lib/app/datasource-utils.d.ts +0 -50
- package/lib/app/datasource-utils.d.ts.map +0 -1
- package/lib/app/datasource-utils.js +0 -313
- package/lib/app/datasource-utils.js.map +0 -1
- package/lib/app/export-app.d.ts +0 -9
- package/lib/app/export-app.d.ts.map +0 -1
- package/lib/app/export-app.js.map +0 -1
- package/lib/app/get-schema.d.ts +0 -7
- package/lib/app/get-schema.d.ts.map +0 -1
- package/lib/app/get-schema.js.map +0 -1
- package/lib/app/import-app.d.ts +0 -9
- package/lib/app/import-app.d.ts.map +0 -1
- package/lib/app/import-app.js.map +0 -1
- package/lib/app/publish.d.ts +0 -26
- package/lib/app/publish.d.ts.map +0 -1
- package/lib/app/publish.js.map +0 -1
- package/lib/app/update-form-config.d.ts +0 -2
- package/lib/app/update-form-config.d.ts.map +0 -1
- package/lib/app/update-form-config.js.map +0 -1
- package/lib/auth/auth.d.ts +0 -57
- package/lib/auth/auth.d.ts.map +0 -1
- package/lib/auth/auth.js.map +0 -1
- package/lib/auth/login.d.ts +0 -30
- package/lib/auth/login.d.ts.map +0 -1
- package/lib/auth/login.js.map +0 -1
- package/lib/auth/org.d.ts +0 -46
- package/lib/auth/org.d.ts.map +0 -1
- package/lib/auth/org.js.map +0 -1
- package/lib/auth/qr-login.d.ts +0 -22
- package/lib/auth/qr-login.d.ts.map +0 -1
- package/lib/auth/qr-login.js.map +0 -1
- package/lib/cdn/cdn-config-cmd.d.ts +0 -36
- package/lib/cdn/cdn-config-cmd.d.ts.map +0 -1
- package/lib/cdn/cdn-config-cmd.js.map +0 -1
- package/lib/cdn/cdn-config.d.ts +0 -81
- package/lib/cdn/cdn-config.d.ts.map +0 -1
- package/lib/cdn/cdn-config.js.map +0 -1
- package/lib/cdn/cdn-refresh.d.ts +0 -69
- package/lib/cdn/cdn-refresh.d.ts.map +0 -1
- package/lib/cdn/cdn-refresh.js.map +0 -1
- package/lib/cdn/cdn-upload.d.ts +0 -56
- package/lib/cdn/cdn-upload.d.ts.map +0 -1
- package/lib/cdn/cdn-upload.js.map +0 -1
- package/lib/connector/action-generator.d.ts +0 -39
- package/lib/connector/action-generator.d.ts.map +0 -1
- package/lib/connector/action-generator.js.map +0 -1
- package/lib/connector/api.d.ts +0 -124
- package/lib/connector/api.d.ts.map +0 -1
- package/lib/connector/api.js.map +0 -1
- package/lib/connector/connector-add-action.d.ts +0 -14
- package/lib/connector/connector-add-action.d.ts.map +0 -1
- package/lib/connector/connector-add-action.js.map +0 -1
- package/lib/connector/connector-create-connection.d.ts +0 -16
- package/lib/connector/connector-create-connection.d.ts.map +0 -1
- package/lib/connector/connector-create-connection.js.map +0 -1
- package/lib/connector/connector-create.d.ts +0 -24
- package/lib/connector/connector-create.d.ts.map +0 -1
- package/lib/connector/connector-create.js.map +0 -1
- package/lib/connector/connector-delete-action.d.ts +0 -11
- package/lib/connector/connector-delete-action.d.ts.map +0 -1
- package/lib/connector/connector-delete-action.js.map +0 -1
- package/lib/connector/connector-delete.d.ts +0 -8
- package/lib/connector/connector-delete.d.ts.map +0 -1
- package/lib/connector/connector-delete.js.map +0 -1
- package/lib/connector/connector-detail.d.ts +0 -8
- package/lib/connector/connector-detail.d.ts.map +0 -1
- package/lib/connector/connector-detail.js.map +0 -1
- package/lib/connector/connector-gen-template.d.ts +0 -8
- package/lib/connector/connector-gen-template.d.ts.map +0 -1
- package/lib/connector/connector-gen-template.js.map +0 -1
- package/lib/connector/connector-list-actions.d.ts +0 -8
- package/lib/connector/connector-list-actions.d.ts.map +0 -1
- package/lib/connector/connector-list-actions.js.map +0 -1
- package/lib/connector/connector-list-connections.d.ts +0 -8
- package/lib/connector/connector-list-connections.d.ts.map +0 -1
- package/lib/connector/connector-list-connections.js.map +0 -1
- package/lib/connector/connector-list.d.ts +0 -13
- package/lib/connector/connector-list.d.ts.map +0 -1
- package/lib/connector/connector-list.js.map +0 -1
- package/lib/connector/connector-parse-api.d.ts +0 -14
- package/lib/connector/connector-parse-api.d.ts.map +0 -1
- package/lib/connector/connector-parse-api.js.map +0 -1
- package/lib/connector/connector-smart-create.d.ts +0 -13
- package/lib/connector/connector-smart-create.d.ts.map +0 -1
- package/lib/connector/connector-smart-create.js.map +0 -1
- package/lib/connector/connector-test.d.ts +0 -8
- package/lib/connector/connector-test.d.ts.map +0 -1
- package/lib/connector/connector-test.js.map +0 -1
- package/lib/connector/curl-parser.d.ts +0 -35
- package/lib/connector/curl-parser.d.ts.map +0 -1
- package/lib/connector/curl-parser.js.map +0 -1
- package/lib/connector/desc-generator.d.ts +0 -23
- package/lib/connector/desc-generator.d.ts.map +0 -1
- package/lib/connector/desc-generator.js.map +0 -1
- package/lib/connector/doc-parser.d.ts +0 -101
- package/lib/connector/doc-parser.d.ts.map +0 -1
- package/lib/connector/doc-parser.js.map +0 -1
- package/lib/connector/response-parser.d.ts +0 -40
- package/lib/connector/response-parser.d.ts.map +0 -1
- package/lib/connector/response-parser.js.map +0 -1
- package/lib/core/check-update.d.ts +0 -20
- package/lib/core/check-update.d.ts.map +0 -1
- package/lib/core/check-update.js.map +0 -1
- package/lib/core/copy.d.ts +0 -32
- package/lib/core/copy.d.ts.map +0 -1
- package/lib/core/copy.js.map +0 -1
- package/lib/core/doctor.d.ts +0 -289
- package/lib/core/doctor.d.ts.map +0 -1
- package/lib/core/doctor.js.map +0 -1
- package/lib/core/env.d.ts +0 -20
- package/lib/core/env.d.ts.map +0 -1
- package/lib/core/env.js.map +0 -1
- package/lib/core/i18n.d.ts +0 -41
- package/lib/core/i18n.d.ts.map +0 -1
- package/lib/core/i18n.js.map +0 -1
- package/lib/core/locales/ar.d.ts +0 -625
- package/lib/core/locales/ar.d.ts.map +0 -1
- package/lib/core/locales/ar.js.map +0 -1
- package/lib/core/locales/de.d.ts +0 -625
- package/lib/core/locales/de.d.ts.map +0 -1
- package/lib/core/locales/de.js.map +0 -1
- package/lib/core/locales/en.d.ts +0 -626
- package/lib/core/locales/en.d.ts.map +0 -1
- package/lib/core/locales/en.js.map +0 -1
- package/lib/core/locales/es.d.ts +0 -625
- package/lib/core/locales/es.d.ts.map +0 -1
- package/lib/core/locales/es.js.map +0 -1
- package/lib/core/locales/fr.d.ts +0 -625
- package/lib/core/locales/fr.d.ts.map +0 -1
- package/lib/core/locales/fr.js.map +0 -1
- package/lib/core/locales/hi.d.ts +0 -625
- package/lib/core/locales/hi.d.ts.map +0 -1
- package/lib/core/locales/hi.js.map +0 -1
- package/lib/core/locales/ja.d.ts +0 -625
- package/lib/core/locales/ja.d.ts.map +0 -1
- package/lib/core/locales/ja.js.map +0 -1
- package/lib/core/locales/ko.d.ts +0 -625
- package/lib/core/locales/ko.d.ts.map +0 -1
- package/lib/core/locales/ko.js.map +0 -1
- package/lib/core/locales/pt.d.ts +0 -625
- package/lib/core/locales/pt.d.ts.map +0 -1
- package/lib/core/locales/pt.js.map +0 -1
- package/lib/core/locales/vi.d.ts +0 -625
- package/lib/core/locales/vi.d.ts.map +0 -1
- package/lib/core/locales/vi.js.map +0 -1
- package/lib/core/locales/zh-TW.d.ts +0 -625
- package/lib/core/locales/zh-TW.d.ts.map +0 -1
- package/lib/core/locales/zh-TW.js.map +0 -1
- package/lib/core/locales/zh.d.ts +0 -645
- package/lib/core/locales/zh.d.ts.map +0 -1
- package/lib/core/locales/zh.js.map +0 -1
- package/lib/core/query-data.d.ts +0 -13
- package/lib/core/query-data.d.ts.map +0 -1
- package/lib/core/query-data.js.map +0 -1
- package/lib/core/utils.d.ts +0 -66
- package/lib/core/utils.d.ts.map +0 -1
- package/lib/core/utils.js.map +0 -1
- package/lib/integration/integration-api.d.ts +0 -67
- package/lib/integration/integration-api.d.ts.map +0 -1
- package/lib/integration/integration-api.js.map +0 -1
- package/lib/integration/integration-create.d.ts +0 -3
- package/lib/integration/integration-create.d.ts.map +0 -1
- package/lib/integration/integration-create.js.map +0 -1
- package/lib/integration/integration-node-ids.d.ts +0 -31
- package/lib/integration/integration-node-ids.d.ts.map +0 -1
- package/lib/integration/integration-node-ids.js.map +0 -1
- package/lib/integration/integration-process-builder.d.ts +0 -61
- package/lib/integration/integration-process-builder.d.ts.map +0 -1
- package/lib/integration/integration-process-builder.js.map +0 -1
- package/lib/integration/integration-view-builder.d.ts +0 -45
- package/lib/integration/integration-view-builder.d.ts.map +0 -1
- package/lib/integration/integration-view-builder.js.map +0 -1
- package/lib/page-config/get-page-config.d.ts +0 -7
- package/lib/page-config/get-page-config.d.ts.map +0 -1
- package/lib/page-config/get-page-config.js.map +0 -1
- package/lib/page-config/save-share-config.d.ts +0 -7
- package/lib/page-config/save-share-config.d.ts.map +0 -1
- package/lib/page-config/save-share-config.js.map +0 -1
- package/lib/page-config/verify-short-url.d.ts +0 -20
- package/lib/page-config/verify-short-url.d.ts.map +0 -1
- package/lib/page-config/verify-short-url.js.map +0 -1
- package/lib/permission/get-permission.d.ts +0 -7
- package/lib/permission/get-permission.d.ts.map +0 -1
- package/lib/permission/get-permission.js.map +0 -1
- package/lib/permission/save-permission.d.ts +0 -7
- package/lib/permission/save-permission.d.ts.map +0 -1
- package/lib/permission/save-permission.js.map +0 -1
- package/lib/process/configure-process.d.ts +0 -16
- package/lib/process/configure-process.d.ts.map +0 -1
- package/lib/process/configure-process.js.map +0 -1
- package/lib/process/create-process.d.ts +0 -14
- package/lib/process/create-process.d.ts.map +0 -1
- package/lib/process/create-process.js.map +0 -1
- package/lib/report/append.d.ts +0 -3
- package/lib/report/append.d.ts.map +0 -1
- package/lib/report/append.js.map +0 -1
- package/lib/report/chart-builder.d.ts +0 -92
- package/lib/report/chart-builder.d.ts.map +0 -1
- package/lib/report/chart-builder.js.map +0 -1
- package/lib/report/constants.d.ts +0 -40
- package/lib/report/constants.d.ts.map +0 -1
- package/lib/report/constants.js.map +0 -1
- package/lib/report/create-report.d.ts +0 -15
- package/lib/report/create-report.d.ts.map +0 -1
- package/lib/report/create-report.js.map +0 -1
- package/lib/report/http.d.ts +0 -10
- package/lib/report/http.d.ts.map +0 -1
- package/lib/report/http.js.map +0 -1
- package/lib/report/index.d.ts +0 -3
- package/lib/report/index.d.ts.map +0 -1
- package/lib/report/index.js.map +0 -1
- package/lib/types/index.d.ts +0 -91
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/index.js +0 -8
- package/lib/types/index.js.map +0 -1
- package/scripts/sync-locales.js +0 -288
- package/scripts/update-contributors.js +0 -152
- package/scripts/validate-deps.js +0 -171
- package/scripts/validate-i18n.js +0 -246
- package/yida-skills/reference/connector-datasource.md +0 -387
- package/yida-skills/reference/vc-yida-report-components-doc.md +0 -615
- package/yida-skills/skills/yida-custom-page/jsx-compile-checklist.md +0 -113
- package/yida-skills/skills/yida-data-management/reference/data-format-guide.md +0 -73
- package/yida-skills/skills/yida-report/build-yida-report-schema.js +0 -1284
- /package/yida-skills/{reference → references}/model-api.md +0 -0
- /package/yida-skills/{reference → references}/query-condition-guide.md +0 -0
- /package/yida-skills/{reference → references}/yida-api.md +0 -0
- /package/yida-skills/{reference → skills/yida-create-form-page/references}/association-form-field.md +0 -0
- /package/yida-skills/{reference → skills/yida-create-form-page/references}/employee-field.md +0 -0
- /package/yida-skills/{reference → skills/yida-create-form-page/references}/serial-number-field.md +0 -0
- /package/yida-skills/skills/yida-data-management/{reference → references}/api-matrix.md +0 -0
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
[](https://nodejs.org)
|
|
18
18
|
|
|
19
19
|
**Languages:**
|
|
20
|
-
[English](
|
|
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
|
-
#
|
|
91
|
-
openyida
|
|
92
|
-
openyida
|
|
93
|
-
openyida
|
|
94
|
-
openyida
|
|
95
|
-
openyida
|
|
96
|
-
openyida
|
|
97
|
-
openyida
|
|
98
|
-
openyida
|
|
99
|
-
openyida
|
|
100
|
-
openyida
|
|
101
|
-
openyida
|
|
102
|
-
|
|
103
|
-
#
|
|
104
|
-
openyida
|
|
105
|
-
openyida
|
|
106
|
-
openyida
|
|
107
|
-
openyida
|
|
108
|
-
openyida
|
|
109
|
-
openyida
|
|
110
|
-
openyida
|
|
111
|
-
openyida
|
|
112
|
-
|
|
113
|
-
#
|
|
114
|
-
openyida
|
|
115
|
-
openyida
|
|
116
|
-
openyida
|
|
117
|
-
|
|
118
|
-
#
|
|
119
|
-
openyida data
|
|
120
|
-
openyida
|
|
121
|
-
|
|
122
|
-
#
|
|
123
|
-
openyida
|
|
124
|
-
openyida
|
|
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"
|
|
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>
|
|
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)) {
|
|
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
|
-
|
|
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] =
|
|
290
|
-
process.argv = [
|
|
291
|
-
|
|
292
|
-
|
|
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(
|
|
343
|
-
console.error(
|
|
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(
|
|
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(
|
|
483
|
-
console.error(
|
|
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(
|
|
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'));
|