@microi.net/cli 5.5.9 → 5.6.0

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 (166) hide show
  1. package/.codebuddy-plugin/marketplace.json +2 -2
  2. package/.codebuddy-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/.workbuddy-plugin/marketplace.json +2 -2
  6. package/.workbuddy-plugin/plugin.json +1 -1
  7. package/README.md +71 -71
  8. package/assets/build-meta.json +5 -5
  9. package/assets/feature-matrix.json +129 -129
  10. package/cordis.patch.yml +1 -1
  11. package/package.json +1 -1
  12. package/scripts/codex-marketplace.json +20 -20
  13. package/scripts/mcp-codex-stdio-adapter.js +189 -189
  14. package/scripts/mcp-trae-windows-launcher.cmd +21 -21
  15. package/scripts/microi-cli-mcp.js +7 -7
  16. package/scripts/microi-codex-broker.js +447 -447
  17. package/scripts/microi-codex-router.js +582 -582
  18. package/scripts/microi-skills.meta.json +336 -336
  19. package/skills/.microi-skills-version.json +2 -2
  20. package/skills/.progressive-disclosure-manifest.json +3566 -3566
  21. package/skills/README.md +3 -3
  22. package/skills/ai-engine/SKILL.md +45 -45
  23. package/skills/ai-platform-governance/SKILL.md +177 -177
  24. package/skills/ai-platform-governance/references/progressive-01-/345/212/237/350/203/275/345/274/200/345/205/263.md +190 -190
  25. package/skills/app-store/SKILL.md +177 -177
  26. package/skills/business-blueprint/SKILL.md +85 -85
  27. package/skills/datasource-engine/SKILL.md +91 -91
  28. package/skills/dos-orm/SKILL.md +81 -81
  29. package/skills/dos-orm/references/api-reference.md +229 -229
  30. package/skills/email-engine/SKILL.md +80 -80
  31. package/skills/email-engine/references/v8-email.md +34 -34
  32. package/skills/job-engine/SKILL.md +154 -154
  33. package/skills/message-notification/SKILL.md +126 -126
  34. package/skills/message-notification/agents/openai.yaml +5 -5
  35. package/skills/message-notification/references/contracts.md +102 -102
  36. package/skills/microi-ai-app-auth.js +652 -652
  37. package/skills/microi-ai-application/SKILL.md +102 -102
  38. package/skills/microi-ai-application/agents/openai.yaml +4 -4
  39. package/skills/microi-ai-application/references/frontend-baseline.md +164 -164
  40. package/skills/microi-client-frontend/SKILL.md +43 -43
  41. package/skills/microi-client-frontend/references/progressive-01-3-/345/212/250/346/200/201/346/214/211/351/222/256/347/263/273/347/273/237.md +2 -2
  42. package/skills/microi-client-frontend/references/progressive-02-8-/350/277/220/350/241/214/346/227/266/351/253/230/351/242/221/345/235/221/345/244/215/347/233/230.md +28 -28
  43. package/skills/microi-client-frontend/references/progressive-03-vue3-/345/211/215/347/253/257/345/276/256/346/234/215/345/212/241/345/256/277/344/270/273/350/247/204/345/210/231.md +56 -56
  44. package/skills/microi-codex/SKILL.md +46 -46
  45. package/skills/microi-codex-installer/SKILL.md +216 -216
  46. package/skills/microi-codex-installer/agents/openai.yaml +7 -7
  47. package/skills/microi-datasource-mapping/SKILL.md +67 -67
  48. package/skills/microi-db-schema/SKILL.md +6 -6
  49. package/skills/microi-db-schema/references/core-tables.md +18 -18
  50. package/skills/microi-db-schema/references/form-component-options.md +256 -256
  51. package/skills/microi-db-schema/references/schema-overview.md +11 -11
  52. package/skills/microi-db-schema/references/schema.md +46 -46
  53. package/skills/microi-db-schema/references/table-catalog.md +57 -57
  54. package/skills/microi-deployment/SKILL.md +18 -1
  55. package/skills/microi-deployment/references/deployment-matrix.md +101 -101
  56. package/skills/microi-docs-coverage/SKILL.md +123 -123
  57. package/skills/microi-docs-coverage/references/capability-map.md +1 -0
  58. package/skills/microi-docs-coverage/scripts/audit-doc-skill-coverage.mjs +894 -894
  59. package/skills/microi-form-engine/SKILL.md +50 -50
  60. package/skills/microi-form-engine/references/component-catalog.md +218 -218
  61. package/skills/microi-form-engine/references/data-source-events.md +124 -124
  62. package/skills/microi-form-layout/SKILL.md +13 -13
  63. package/skills/microi-form-layout/references/progressive-01-3-/344/270/211/347/247/215/345/210/206/347/273/204/347/232/204/345/255/230/345/202/250/344/270/216/351/205/215/347/275/256.md +235 -235
  64. package/skills/microi-frontend-sdk/SKILL.md +4 -4
  65. package/skills/microi-frontend-sdk/references/progressive-01-token-/345/275/223/345/211/215/347/231/273/345/275/225/347/224/250/346/210/267/344/270/216/345/275/223/345/211/215/347/273/210/347/253/257/347/231/273/345/275/225/345/215/217/350/256/256.md +175 -175
  66. package/skills/microi-left-right-layout/SKILL.md +141 -141
  67. package/skills/microi-microservice/SKILL.md +15 -15
  68. package/skills/microi-microservice/references/runtime-delivery.md +278 -278
  69. package/skills/microi-mobile-app-quality/references/progressive-01-4-/351/207/215/350/246/201/346/214/211/351/222/256/345/277/205/351/241/273/345/270/246/345/233/276/346/240/207.md +213 -213
  70. package/skills/microi-solution-quotation/SKILL.md +78 -78
  71. package/skills/microi-solution-quotation/agents/openai.yaml +4 -4
  72. package/skills/microi-solution-quotation/scripts/build_solution_quote.py +296 -296
  73. package/skills/microi-sso/SKILL.md +85 -85
  74. package/skills/microi-sso/references/acceptance.md +49 -49
  75. package/skills/microi-sso/references/configuration-and-security.md +53 -53
  76. package/skills/microi-sso/references/inbound.md +53 -53
  77. package/skills/microi-sso/references/outbound.md +39 -39
  78. package/skills/microi-system-delivery/references/progressive-02-/350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/345/277/205/351/241/273/350/246/206/347/233/226/347/232/204/345/235/221.md +20 -20
  79. package/skills/microi-ui/SKILL.md +7 -2
  80. package/skills/microi-uniapp-frontend/SKILL.md +134 -134
  81. package/skills/microi-uniapp-frontend/references/progressive-01-/347/247/273/345/212/250/347/253/257/345/210/206/347/261/273-/345/217/214/346/240/217/345/210/227/350/241/250/347/213/254/347/253/213/346/273/232/345/212/250.md +136 -136
  82. package/skills/microi-uniapp-frontend/references/progressive-02-/345/205/263/351/224/256/344/270/232/345/212/241/350/265/204/344/272/247/344/270/215/345/276/227/351/273/230/350/256/244/351/200/211/344/270/255.md +124 -124
  83. package/skills/module-engine/SKILL.md +16 -16
  84. package/skills/ocr-engine/SKILL.md +2 -2
  85. package/skills/ocr-engine/agents/openai.yaml +1 -1
  86. package/skills/page-engine/SKILL.md +28 -28
  87. package/skills/page-engine/references/progressive-01-/346/211/200/346/234/211/347/273/204/344/273/266/347/261/273/345/236/213.md +126 -126
  88. package/skills/page-engine/references/progressive-02-/347/211/210/346/234/254/345/216/206/345/217/262-/345/271/266/345/217/221/344/277/235/345/255/230/344/270/216/345/233/236/346/273/232.md +42 -42
  89. package/skills/performance-testing/SKILL.md +120 -120
  90. package/skills/playwright-e2e/SKILL.md +84 -84
  91. package/skills/playwright-e2e/references/progressive-01-/345/205/250/350/207/252/345/212/250/347/231/273/345/275/225-/345/205/215/351/252/214/350/257/201/347/240/201-/344/275/206/344/270/215/345/205/215/345/257/206/347/240/201-/345/277/205/350/257/273.md +68 -68
  92. package/skills/playwright-e2e/references/progressive-02-/346/226/207/345/255/227/345/257/271/346/257/224/345/272/246/344/270/216/345/217/257/350/257/273/346/200/247/350/207/252/345/212/250/345/214/226/346/243/200/346/237/245-/345/277/205/345/201/232.md +64 -64
  93. package/skills/playwright-e2e/references/progressive-03-microi-helper-/346/250/241/346/235/277.md +20 -20
  94. package/skills/playwright-e2e/references/progressive-04-ci-/345/273/272/350/256/256.md +69 -69
  95. package/skills/print-engine/SKILL.md +36 -36
  96. package/skills/production-readonly-audit/SKILL.md +41 -41
  97. package/skills/report-engine/SKILL.md +71 -71
  98. package/skills/scripts/optimize-progressive-disclosure.mjs +204 -204
  99. package/skills/scripts/refresh-progressive-disclosure.mjs +64 -64
  100. package/skills/scripts/validate-progressive-disclosure.mjs +52 -52
  101. package/skills/search-engine/SKILL.md +75 -75
  102. package/skills/spider-engine/SKILL.md +190 -190
  103. package/skills/system-observability/SKILL.md +162 -162
  104. package/skills/system-observability/references/memory-incident-triage.md +73 -73
  105. package/skills/translate-engine/SKILL.md +1 -1
  106. package/skills/ui-design/SKILL.md +3 -1
  107. package/skills/uniapp-mall-assets/SKILL.md +170 -170
  108. package/skills/unity-integration/SKILL.md +155 -155
  109. package/skills/unity-integration/agents/openai.yaml +4 -4
  110. package/skills/unity-integration/references/ai-app-delivery.md +103 -103
  111. package/skills/unity-integration/references/sdk-api.md +82 -82
  112. package/skills/unity-integration/references/toolbox-migration.md +66 -66
  113. package/skills/unity-integration/references/webgl-hosting.md +57 -57
  114. package/skills/v8-api-config/SKILL.md +378 -378
  115. package/skills/v8-cache-pattern/SKILL.md +306 -306
  116. package/skills/v8-crud-api/SKILL.md +29 -29
  117. package/skills/v8-crud-api/references/progressive-01-/346/237/245/350/257/242/345/210/227/350/241/250-/345/210/206/351/241/265.md +56 -56
  118. package/skills/v8-debugging/SKILL.md +143 -143
  119. package/skills/v8-explorer-tree/SKILL.md +64 -64
  120. package/skills/v8-export-import/references/progressive-01-excellayout-/351/253/230/347/272/247/350/207/252/347/224/261/345/270/203/345/261/200.md +201 -201
  121. package/skills/v8-export-import/references/progressive-02-powerpoint-/345/257/274/345/207/272.md +118 -118
  122. package/skills/v8-export-import/references/progressive-03-/345/256/211/345/205/250-/346/200/247/350/203/275/346/263/250/346/204/217.md +32 -32
  123. package/skills/v8-file-upload/SKILL.md +154 -154
  124. package/skills/v8-file-upload/references/progressive-01-/345/205/254/346/234/211/346/241/266-vs-/347/247/201/346/234/211/346/241/266.md +133 -133
  125. package/skills/v8-file-upload/references/progressive-02-office-/346/226/207/344/273/266/345/234/250/347/272/277/347/274/226/350/276/221/347/211/210/346/234/254/345/217/267/350/247/204/345/210/231.md +138 -138
  126. package/skills/v8-formengine-http/SKILL.md +107 -107
  127. package/skills/v8-frontend-events/SKILL.md +22 -22
  128. package/skills/v8-frontend-events/references/bluetooth-print-api.md +135 -135
  129. package/skills/v8-frontend-events/references/bluetooth-print.md +247 -247
  130. package/skills/v8-frontend-events/references/progressive-01-/345/210/227/350/241/250/344/272/213/344/273/266.md +50 -50
  131. package/skills/v8-http-integration/SKILL.md +106 -106
  132. package/skills/v8-http-integration/references/progressive-01-get-/350/257/267/346/261/202.md +31 -31
  133. package/skills/v8-http-integration/references/progressive-02-/351/224/231/350/257/257/345/244/204/347/220/206/346/250/241/345/274/217.md +5 -5
  134. package/skills/v8-image-processing/SKILL.md +190 -190
  135. package/skills/v8-image-processing/agents/openai.yaml +4 -4
  136. package/skills/v8-image-processing/references/api-reference.md +623 -623
  137. package/skills/v8-menu-buttons/SKILL.md +103 -103
  138. package/skills/v8-menu-buttons/references/progressive-01-2-/346/214/211/351/222/256/345/257/271/350/261/241-schema.md +145 -145
  139. package/skills/v8-menu-buttons/references/progressive-02-8-/346/250/241/345/274/217-f-/345/220/216/345/217/260/344/273/273/345/212/241/346/214/211/351/222/256-/351/225/277/344/273/273/345/212/241.md +228 -228
  140. package/skills/v8-menu-buttons/references/progressive-03-10-/345/217/215/346/250/241/345/274/217-/351/201/277/345/205/215.md +43 -43
  141. package/skills/v8-mongodb/SKILL.md +65 -65
  142. package/skills/v8-mq-mqtt/SKILL.md +175 -175
  143. package/skills/v8-mq-mqtt/references/mqtt-production.md +342 -342
  144. package/skills/v8-mq-mqtt/references/progressive-01-v8-mqtt-iot-/347/211/251/350/201/224/347/275/221.md +137 -137
  145. package/skills/v8-mq-mqtt/scripts/check-mqtt-skill-coverage.mjs +203 -203
  146. package/skills/v8-saas-multi-tenant/SKILL.md +223 -223
  147. package/skills/v8-security/SKILL.md +25 -25
  148. package/skills/v8-security/references/progressive-01-2-/346/235/203/351/231/220/346/240/241/351/252/214.md +122 -122
  149. package/skills/v8-sql-query/SKILL.md +127 -127
  150. package/skills/v8-table-event/SKILL.md +20 -20
  151. package/skills/v8-table-event/references/progressive-01-informv8-js-/350/241/250/345/215/225/346/211/223/345/274/200/344/272/213/344/273/266.md +18 -18
  152. package/skills/v8-table-event/references/progressive-02-/345/211/215/347/253/257/344/272/213/344/273/266/345/220/215-v8-eventname-/345/217/257/350/203/275/347/232/204/345/200/274.md +15 -15
  153. package/skills/v8-tcp-integration/SKILL.md +1 -1
  154. package/skills/v8-tcp-integration/agents/openai.yaml +4 -4
  155. package/skills/v8-template-engine/SKILL.md +59 -59
  156. package/skills/v8-utilities/SKILL.md +92 -92
  157. package/skills/v8-utilities/references/client-api-index.md +143 -143
  158. package/skills/v8-utilities/references/platform-http-routes.md +83 -83
  159. package/skills/v8-utilities/references/server-api-index.md +74 -74
  160. package/skills/v8-workflow/SKILL.md +44 -44
  161. package/skills/vision-engine/SKILL.md +19 -19
  162. package/skills/vision-engine/references/architecture-and-acceptance.md +34 -34
  163. package/skills/workspace-conventions/SKILL.md +236 -236
  164. package/skills/workspace-conventions/references/progressive-01-/347/211/210/346/234/254/346/233/264/346/226/260/346/227/245/345/277/227/344/277/235/346/212/244/350/247/204/345/210/231-/345/274/272/345/210/266.md +208 -208
  165. package/skills/workspace-conventions/references/progressive-02-microi-net-api-/346/234/254/345/234/260/345/220/257/345/212/250/347/272/246/345/256/232.md +179 -179
  166. package/skills/workspace-conventions/references/progressive-03-cli-/344/270/216-ide-/346/217/222/344/273/266/351/224/231/347/211/210/345/205/261/345/255/230/347/272/246/345/256/232.md +21 -21
@@ -1,143 +1,143 @@
1
- # 前端 V8 API 索引
2
-
3
- 本索引对应 `microi.doc/docs/doc/v8-engine/v8-client.md` 和当前
4
- `Microi.Client` V8 定义。业务表字段如 `V8.Form.OrderNo` 不属于平台函数,
5
- 应按实际表结构理解。
6
-
7
- ## 上下文与状态
8
-
9
- | API/变量 | 说明 |
10
- |---|---|
11
- | `V8.Form`、`V8.OldForm` | 当前表单与已加载旧值 |
12
- | `V8.FormMode` | `Add`、`Edit`、`View` |
13
- | `V8.FormSubmitAction` | 提交动作 |
14
- | `V8.FormOutAction`、`V8.FormOutAfterAction` | 表单关闭/保存后的动作状态 |
15
- | `V8.LoadMode` | `Design` 或真实运行模式 |
16
- | `V8.EventName`、`V8.Event`、`V8.KeyCode` | 当前事件、原生事件和键码 |
17
- | `V8.ThisValue`、`V8.OldValue` | 当前字段值;`OldValue` 主要用于表格行内事件 |
18
- | `V8.TableId`、`V8.TableName`、`V8.TableModel` | 当前表/表单元数据 |
19
- | `V8.Row`、`V8.Rows`、`V8.RowIndex`、`V8.TableRowId` | 行事件上下文 |
20
- | `V8.TableRowSelected`、`V8.SelectedData` | 批量选中行,兼容别名 |
21
- | `V8.CurrentTableData` | 当前页表格数据 |
22
- | `V8.SearchParam` | 当前搜索快照 |
23
- | `V8.SysMenuId`、`V8.SysMenuModel` | 当前授权菜单 |
24
- | `V8.CurrentUser`、`V8.CurrentToken` | 当前用户和 Token;不得输出到日志/URL |
25
- | `V8.OsClient`、`V8.SysConfig`、`V8.ClientType` | 租户、客户端配置和终端类型 |
26
- | `V8.DataAppend` | 打开表单、列表或弹窗时传入的附加数据 |
27
- | `V8.ParentV8`、`V8.ParentForm` | 子表/弹窗访问父上下文 |
28
- | `V8.ParentV8.Form` | 读取父级表单数据 |
29
- | `V8.ParentV8.FormSet(field,value)` | 从子表调用父表字段赋值与联动 |
30
- | `V8.ApiReplace` | 当前表单/列表接口替换配置,只读使用 |
31
- | `V8.Result` | 模板或事件输出槽 |
32
-
33
- ## 表单与字段
34
-
35
- | API | 说明 |
36
- |---|---|
37
- | `V8.FormSet(field,value)` | 设置字段值并触发相应联动 |
38
- | `V8.Field` | 当前字段模型集合 |
39
- | `V8.FieldSet(field,prop,value)` | 修改 `Visible/Required/Readonly/Data` 等属性 |
40
- | `V8.FormSubmit(options)` | 提交表单;SubmitFormV8 内不得再次调用 |
41
- | `V8.FormClose()` | 强制关闭表单 |
42
- | `V8.CloseThisDialog()` | 关闭当前宿主弹窗/微应用弹窗 |
43
- | `V8.ReloadForm()` | 重新加载当前表单 |
44
- | `V8.HideFormBtn(...)` | 隐藏表单按钮 |
45
- | `V8.HideFormTab(name)`、`V8.ShowFormTab(name)`、`V8.ClickFormTab(name)` | 页签显隐与切换 |
46
- | `V8.GetFormTabs()` | 获取当前表单页签 |
47
- | `V8.ShowTableChildHideField(child,fields)` | 强制显示子表隐藏列并刷新 |
48
- | `V8.GetChildTableData(fieldName)` | 获取指定子表数据 |
49
- | `V8.RefreshChildTable(field,row?)` | 刷新子表 |
50
-
51
- ## 列表与搜索
52
-
53
- | API | 说明 |
54
- |---|---|
55
- | `V8.RefreshTable({_PageIndex})` | 刷新当前列表 |
56
- | `V8.SearchSet(value)` | 替换当前模块搜索条件 |
57
- | `V8.SearchAppend(value)` | 追加当前模块搜索条件 |
58
- | `V8.OpenTableSetWhere(field,where)` | 设置弹出表格不可被临时搜索覆盖的固定范围 |
59
- | `V8.AppendSearchChildTable(field,value)` | 历史兼容;新代码优先 `OpenTableSetWhere` |
60
- | `V8.TableSearchSet(field,value)` | 替换指定子表/表格搜索 |
61
- | `V8.TableSearchAppend(field,value)` | 追加指定子表/表格搜索 |
62
- | `V8.TableRefresh(field,param)` | 刷新指定子表/表格 |
63
- | `V8.ClearTableSelection()` | 清空当前列表勾选 |
64
-
65
- ## 交互与导航
66
-
67
- | API | 说明 |
68
- |---|---|
69
- | `V8.Tips(msg,ok?)` | 消息提示 |
70
- | `V8.ConfirmTips(content,callback,options?)` | HTML 模式确认框,只传可信/转义内容 |
71
- | `V8.Router.Push(...)` | 站内路由 |
72
- | `V8.Window.Open(...)` | 打开窗口 |
73
- | `V8.OpenForm(...)`、`V8.OpenFormWF(...)` | 历史表单/工作流打开入口 |
74
- | `V8.OpenAnyForm(options)` | 打开任意表单 |
75
- | `V8.OpenAnyTable(options)` | 打开任意列表 |
76
- | `V8.OpenDialog(options)` | 打开主前端已注册 Vue 组件 |
77
- | `V8.OpenAppDialog(options)` | 打开已发布 MicroService 页面 |
78
- | `V8.WF.StartWork(...)`、`V8.FormWF` | 前端工作流入口/当前工作流数据 |
79
-
80
- 三个以上输入、上传、表格、步骤条、Tab 或代码编辑器使用
81
- `V8.OpenAppDialog`,不要在 V8 代码中拼大段 HTML。
82
-
83
- ## 网络与引擎
84
-
85
- | API | 说明 |
86
- |---|---|
87
- | `V8.Http.Get(options)`、`V8.Http.Post(options)`、`V8.Http.PatchResponse(options)` | 推荐前端 HTTP Promise API |
88
- | `V8.Post(...)`、`V8.Get(...)` | 历史回调 API,兼容保留 |
89
- | `V8.ApiEngine.Run(...)` | 调用接口引擎,支持 Promise/回调 |
90
- | `V8.ApiEngine.RunBackground(...)` | 提交持久后台任务 |
91
- | `V8.DataSourceEngine` | 前端数据源引擎对象 |
92
- | `V8.DataSourceEngine.Run(...)` | 运行数据源引擎;旧 `GetData` 已弃用 |
93
- | `V8.FormEngine.GetTableData(...)` | 查询列表 |
94
- | `V8.FormEngine.GetFormData(...)` | 查询单条 |
95
- | `V8.FormEngine.DelFormData(...)` | 删除;权限仍由服务端校验 |
96
-
97
- 前端 `V8.FormEngine` 真实方法以当前客户端定义为准,均可按 Promise 使用;
98
- 不要给前端方法虚构后端专用的 `GetTableDataAsync` 名称。标准前端运行时没有公开
99
- `V8.ModuleEngine`,模块关联查询使用接口引擎、数据源引擎或受控 FormEngine。
100
-
101
- ## 工具能力
102
-
103
- | API | 说明 |
104
- |---|---|
105
- | `V8.IsNull(value)` | 兼容判断 `null/undefined/''/'null'/'undefined'` |
106
- | `V8.ChineseToPinyin(text,fullPyLen,type)` | 中文转拼音 |
107
- | `V8.NewGuid()` | 前端生成 GUID |
108
- | `await V8.NewServerGuid()` | 请求服务端生成 GUID |
109
- | `V8.Base64.encode(value)` | 前端 Base64 编码 |
110
- | `V8.Base64.decode(value)` | 前端 Base64 解码 |
111
- | `V8.Base64.isValid(value)` | 判断字符串是否为有效 Base64 |
112
- | `V8._` | Underscore 实例,如 `V8._.where(...)` |
113
- | `V8.Action.GetDateTimeNow()` | 兼容的前端全局时间函数 |
114
- | `V8.AddSysLog(...)` | 前端发起系统日志记录;不得含秘密 |
115
- | `V8.SendSystemMessage(...)` | 发送站内系统消息 |
116
- | `await V8.Method.ScanCode()` | 扫码;成功值同时写入 `V8.ScanCodeRes` |
117
- | `V8.Print.*` | TSPL/CPCL/ESC-POS 蓝牙标签与小票打印,兼容 GP-M322、CC4,见蓝牙打印参考 |
118
- | `V8.Identity.GetCapabilities()` | 读取当前租户强身份能力和本人登记状态 |
119
- | `V8.Identity.CreateActionHash(value)` | 为稳定业务命令生成 SHA-256 摘要 |
120
- | `V8.Identity.RegisterPasskey(options?)` | 登记当前用户 Passkey |
121
- | `V8.Identity.Verify({Purpose,ActionHash,Method,Code?})` | 完成 Passkey、Authenticator TOTP 或严格人脸验证并取得一次性后端票据;Totp 需 6 位 Code |
122
-
123
- 扫码应优先接收 Promise 返回值;兼容代码可在调用后读取 `V8.ScanCodeRes`。
124
- `V8.Identity` 是强身份验证模块。`V8.Identity.Verify` 的成功结果不能直接授权业务;后端必须重读权威数据、重算摘要并调用 `V8.Method.ConsumeIdentityVerificationTicket`。
125
- 蓝牙打印完整 API 包含 `V8.Print.createNew`、`V8.Print.createNewESC`、
126
- `V8.Print.OpenBluetoothPage`、`V8.Print.isConnected`、
127
- `V8.Print.reconnect`、`V8.Print.getConnectionState`、`V8.Print.subscribeConnection`、
128
- `V8.Print.getPrinterProfile`、`V8.Print.setPrinterProfile`、
129
- `V8.Print.prepareSend`、`V8.Print.Send`、`V8.Print.setOneTimeData`、
130
- `V8.Print.setPrinterNum`、`V8.Print.disconnect` 和
131
- `V8.Print.BLEInformation`。其中 `Send` 依赖 `prepareSend` 设置的共享分包游标,
132
- 只作内部状态机入口;业务代码必须调用并 `await prepareSend`。当前挂载范围、连接
133
- 真实性、佳博原 TSPL 回归、CC4 CPCL 适配、Android SPP 与串行约束见
134
- [`bluetooth-print.md`](../../v8-frontend-events/references/bluetooth-print.md),TSC/ESC
135
- 完整方法见
136
- [`bluetooth-print-api.md`](../../v8-frontend-events/references/bluetooth-print-api.md)。
137
-
138
- ## 主前端源码帮助对象
139
-
140
- `DiyCommon.GetApiBase()` 是 `Microi.Client` 主前端源码内部取得 API 根地址的帮助
141
- 方法,不属于租户前端 V8 的稳定公开对象。V8 代码优先使用受控 `V8.Http` 和
142
- `V8.SysConfig.ApiBase`;MicroService 从宿主数据读取 `apiBase`,不要假设子应用
143
- 全局存在 `DiyCommon`。
1
+ # 前端 V8 API 索引
2
+
3
+ 本索引对应 `microi.doc/docs/doc/v8-engine/v8-client.md` 和当前
4
+ `Microi.Client` V8 定义。业务表字段如 `V8.Form.OrderNo` 不属于平台函数,
5
+ 应按实际表结构理解。
6
+
7
+ ## 上下文与状态
8
+
9
+ | API/变量 | 说明 |
10
+ |---|---|
11
+ | `V8.Form`、`V8.OldForm` | 当前表单与已加载旧值 |
12
+ | `V8.FormMode` | `Add`、`Edit`、`View` |
13
+ | `V8.FormSubmitAction` | 提交动作 |
14
+ | `V8.FormOutAction`、`V8.FormOutAfterAction` | 表单关闭/保存后的动作状态 |
15
+ | `V8.LoadMode` | `Design` 或真实运行模式 |
16
+ | `V8.EventName`、`V8.Event`、`V8.KeyCode` | 当前事件、原生事件和键码 |
17
+ | `V8.ThisValue`、`V8.OldValue` | 当前字段值;`OldValue` 主要用于表格行内事件 |
18
+ | `V8.TableId`、`V8.TableName`、`V8.TableModel` | 当前表/表单元数据 |
19
+ | `V8.Row`、`V8.Rows`、`V8.RowIndex`、`V8.TableRowId` | 行事件上下文 |
20
+ | `V8.TableRowSelected`、`V8.SelectedData` | 批量选中行,兼容别名 |
21
+ | `V8.CurrentTableData` | 当前页表格数据 |
22
+ | `V8.SearchParam` | 当前搜索快照 |
23
+ | `V8.SysMenuId`、`V8.SysMenuModel` | 当前授权菜单 |
24
+ | `V8.CurrentUser`、`V8.CurrentToken` | 当前用户和 Token;不得输出到日志/URL |
25
+ | `V8.OsClient`、`V8.SysConfig`、`V8.ClientType` | 租户、客户端配置和终端类型 |
26
+ | `V8.DataAppend` | 打开表单、列表或弹窗时传入的附加数据 |
27
+ | `V8.ParentV8`、`V8.ParentForm` | 子表/弹窗访问父上下文 |
28
+ | `V8.ParentV8.Form` | 读取父级表单数据 |
29
+ | `V8.ParentV8.FormSet(field,value)` | 从子表调用父表字段赋值与联动 |
30
+ | `V8.ApiReplace` | 当前表单/列表接口替换配置,只读使用 |
31
+ | `V8.Result` | 模板或事件输出槽 |
32
+
33
+ ## 表单与字段
34
+
35
+ | API | 说明 |
36
+ |---|---|
37
+ | `V8.FormSet(field,value)` | 设置字段值并触发相应联动 |
38
+ | `V8.Field` | 当前字段模型集合 |
39
+ | `V8.FieldSet(field,prop,value)` | 修改 `Visible/Required/Readonly/Data` 等属性 |
40
+ | `V8.FormSubmit(options)` | 提交表单;SubmitFormV8 内不得再次调用 |
41
+ | `V8.FormClose()` | 强制关闭表单 |
42
+ | `V8.CloseThisDialog()` | 关闭当前宿主弹窗/微应用弹窗 |
43
+ | `V8.ReloadForm()` | 重新加载当前表单 |
44
+ | `V8.HideFormBtn(...)` | 隐藏表单按钮 |
45
+ | `V8.HideFormTab(name)`、`V8.ShowFormTab(name)`、`V8.ClickFormTab(name)` | 页签显隐与切换 |
46
+ | `V8.GetFormTabs()` | 获取当前表单页签 |
47
+ | `V8.ShowTableChildHideField(child,fields)` | 强制显示子表隐藏列并刷新 |
48
+ | `V8.GetChildTableData(fieldName)` | 获取指定子表数据 |
49
+ | `V8.RefreshChildTable(field,row?)` | 刷新子表 |
50
+
51
+ ## 列表与搜索
52
+
53
+ | API | 说明 |
54
+ |---|---|
55
+ | `V8.RefreshTable({_PageIndex})` | 刷新当前列表 |
56
+ | `V8.SearchSet(value)` | 替换当前模块搜索条件 |
57
+ | `V8.SearchAppend(value)` | 追加当前模块搜索条件 |
58
+ | `V8.OpenTableSetWhere(field,where)` | 设置弹出表格不可被临时搜索覆盖的固定范围 |
59
+ | `V8.AppendSearchChildTable(field,value)` | 历史兼容;新代码优先 `OpenTableSetWhere` |
60
+ | `V8.TableSearchSet(field,value)` | 替换指定子表/表格搜索 |
61
+ | `V8.TableSearchAppend(field,value)` | 追加指定子表/表格搜索 |
62
+ | `V8.TableRefresh(field,param)` | 刷新指定子表/表格 |
63
+ | `V8.ClearTableSelection()` | 清空当前列表勾选 |
64
+
65
+ ## 交互与导航
66
+
67
+ | API | 说明 |
68
+ |---|---|
69
+ | `V8.Tips(msg,ok?)` | 消息提示 |
70
+ | `V8.ConfirmTips(content,callback,options?)` | HTML 模式确认框,只传可信/转义内容 |
71
+ | `V8.Router.Push(...)` | 站内路由 |
72
+ | `V8.Window.Open(...)` | 打开窗口 |
73
+ | `V8.OpenForm(...)`、`V8.OpenFormWF(...)` | 历史表单/工作流打开入口 |
74
+ | `V8.OpenAnyForm(options)` | 打开任意表单 |
75
+ | `V8.OpenAnyTable(options)` | 打开任意列表 |
76
+ | `V8.OpenDialog(options)` | 打开主前端已注册 Vue 组件 |
77
+ | `V8.OpenAppDialog(options)` | 打开已发布 MicroService 页面 |
78
+ | `V8.WF.StartWork(...)`、`V8.FormWF` | 前端工作流入口/当前工作流数据 |
79
+
80
+ 三个以上输入、上传、表格、步骤条、Tab 或代码编辑器使用
81
+ `V8.OpenAppDialog`,不要在 V8 代码中拼大段 HTML。
82
+
83
+ ## 网络与引擎
84
+
85
+ | API | 说明 |
86
+ |---|---|
87
+ | `V8.Http.Get(options)`、`V8.Http.Post(options)`、`V8.Http.PatchResponse(options)` | 推荐前端 HTTP Promise API |
88
+ | `V8.Post(...)`、`V8.Get(...)` | 历史回调 API,兼容保留 |
89
+ | `V8.ApiEngine.Run(...)` | 调用接口引擎,支持 Promise/回调 |
90
+ | `V8.ApiEngine.RunBackground(...)` | 提交持久后台任务 |
91
+ | `V8.DataSourceEngine` | 前端数据源引擎对象 |
92
+ | `V8.DataSourceEngine.Run(...)` | 运行数据源引擎;旧 `GetData` 已弃用 |
93
+ | `V8.FormEngine.GetTableData(...)` | 查询列表 |
94
+ | `V8.FormEngine.GetFormData(...)` | 查询单条 |
95
+ | `V8.FormEngine.DelFormData(...)` | 删除;权限仍由服务端校验 |
96
+
97
+ 前端 `V8.FormEngine` 真实方法以当前客户端定义为准,均可按 Promise 使用;
98
+ 不要给前端方法虚构后端专用的 `GetTableDataAsync` 名称。标准前端运行时没有公开
99
+ `V8.ModuleEngine`,模块关联查询使用接口引擎、数据源引擎或受控 FormEngine。
100
+
101
+ ## 工具能力
102
+
103
+ | API | 说明 |
104
+ |---|---|
105
+ | `V8.IsNull(value)` | 兼容判断 `null/undefined/''/'null'/'undefined'` |
106
+ | `V8.ChineseToPinyin(text,fullPyLen,type)` | 中文转拼音 |
107
+ | `V8.NewGuid()` | 前端生成 GUID |
108
+ | `await V8.NewServerGuid()` | 请求服务端生成 GUID |
109
+ | `V8.Base64.encode(value)` | 前端 Base64 编码 |
110
+ | `V8.Base64.decode(value)` | 前端 Base64 解码 |
111
+ | `V8.Base64.isValid(value)` | 判断字符串是否为有效 Base64 |
112
+ | `V8._` | Underscore 实例,如 `V8._.where(...)` |
113
+ | `V8.Action.GetDateTimeNow()` | 兼容的前端全局时间函数 |
114
+ | `V8.AddSysLog(...)` | 前端发起系统日志记录;不得含秘密 |
115
+ | `V8.SendSystemMessage(...)` | 发送站内系统消息 |
116
+ | `await V8.Method.ScanCode()` | 扫码;成功值同时写入 `V8.ScanCodeRes` |
117
+ | `V8.Print.*` | TSPL/CPCL/ESC-POS 蓝牙标签与小票打印,兼容 GP-M322、CC4,见蓝牙打印参考 |
118
+ | `V8.Identity.GetCapabilities()` | 读取当前租户强身份能力和本人登记状态 |
119
+ | `V8.Identity.CreateActionHash(value)` | 为稳定业务命令生成 SHA-256 摘要 |
120
+ | `V8.Identity.RegisterPasskey(options?)` | 登记当前用户 Passkey |
121
+ | `V8.Identity.Verify({Purpose,ActionHash,Method,Code?})` | 完成 Passkey、Authenticator TOTP 或严格人脸验证并取得一次性后端票据;Totp 需 6 位 Code |
122
+
123
+ 扫码应优先接收 Promise 返回值;兼容代码可在调用后读取 `V8.ScanCodeRes`。
124
+ `V8.Identity` 是强身份验证模块。`V8.Identity.Verify` 的成功结果不能直接授权业务;后端必须重读权威数据、重算摘要并调用 `V8.Method.ConsumeIdentityVerificationTicket`。
125
+ 蓝牙打印完整 API 包含 `V8.Print.createNew`、`V8.Print.createNewESC`、
126
+ `V8.Print.OpenBluetoothPage`、`V8.Print.isConnected`、
127
+ `V8.Print.reconnect`、`V8.Print.getConnectionState`、`V8.Print.subscribeConnection`、
128
+ `V8.Print.getPrinterProfile`、`V8.Print.setPrinterProfile`、
129
+ `V8.Print.prepareSend`、`V8.Print.Send`、`V8.Print.setOneTimeData`、
130
+ `V8.Print.setPrinterNum`、`V8.Print.disconnect` 和
131
+ `V8.Print.BLEInformation`。其中 `Send` 依赖 `prepareSend` 设置的共享分包游标,
132
+ 只作内部状态机入口;业务代码必须调用并 `await prepareSend`。当前挂载范围、连接
133
+ 真实性、佳博原 TSPL 回归、CC4 CPCL 适配、Android SPP 与串行约束见
134
+ [`bluetooth-print.md`](../../v8-frontend-events/references/bluetooth-print.md),TSC/ESC
135
+ 完整方法见
136
+ [`bluetooth-print-api.md`](../../v8-frontend-events/references/bluetooth-print-api.md)。
137
+
138
+ ## 主前端源码帮助对象
139
+
140
+ `DiyCommon.GetApiBase()` 是 `Microi.Client` 主前端源码内部取得 API 根地址的帮助
141
+ 方法,不属于租户前端 V8 的稳定公开对象。V8 代码优先使用受控 `V8.Http` 和
142
+ `V8.SysConfig.ApiBase`;MicroService 从宿主数据读取 `apiBase`,不要假设子应用
143
+ 全局存在 `DiyCommon`。
@@ -1,83 +1,83 @@
1
- # Microi 平台 HTTP 路由索引
2
-
3
- 本索引用于识别中文官网示例中的平台路由。路由可用不等于当前用户有权限;始终
4
- 传当前租户 `OsClient`,使用受支持的 Token/访问密钥,并让服务端重新做菜单、
5
- 表单、字段和数据范围校验。
6
-
7
- ## 接口引擎
8
-
9
- | 路由 | 用途 |
10
- |---|---|
11
- | `POST /apiengine/{ApiEngineKey}` | 推荐的稳定接口引擎入口 |
12
- | `POST /api/ApiEngine/Run` | 仅旧客户端兼容,Body 传 `ApiEngineKey`;新增固定业务禁止使用 |
13
- | `/apiengine/{ApiEngineKey}--OsClient--{OsClient}--` | 仅用于确实无法设置 Header/Form/Query 的 GET/HEAD 场景 |
14
-
15
- 普通请求优先在唯一 `osclient` Header 传租户,也可在 Query/Form/JSON 中冗余;
16
- 固定业务必须使用真实引擎动态地址或唯一 `ApiAddress`,使日志、流量、审计和限流
17
- 直接按引擎归因;旧通用入口只能由显式 `RunLegacy` 调用。
18
- 不要无脑把特殊租户后缀加到每条 URL。官网中的
19
- `/apiengine/test1`、`/apiengine/get-product-list`、打印、支付和 Excel demo
20
- 都是业务 `ApiEngineKey` 示例,不是固定平台接口。
21
-
22
- ## FormEngine
23
-
24
- 标准 Controller 路由:
25
-
26
- | 路由 | 用途 |
27
- |---|---|
28
- | `POST /api/formengine/GetTableData` | 查询列表 |
29
- | `POST /api/formengine/GetFormData` | 查询单条 |
30
- | `POST /api/formengine/AddFormData` | 新增 |
31
- | `POST /api/formengine/UptFormData` | 更新 |
32
- | `POST /api/formengine/DelFormData` | 删除 |
33
- | `POST /api/formengine/UptFormDataByWhere` | 按条件更新 |
34
- | `POST /api/formengine/DelFormDataByWhere` | 按条件删除 |
35
- | `POST /api/formengine/GetTableDataAnonymous` | 表配置允许时匿名查列表 |
36
- | `POST /api/formengine/GetFormDataAnonymous` | 表配置允许时匿名查单条 |
37
- | `POST /api/formengine/AddFormDataAnonymous` | 表配置允许时匿名新增 |
38
-
39
- 动态路由还支持
40
- `/api/formengine/{operation}-{FormEngineKey}`(兼容无连字符操作名与连字符操作名)。
41
- 访问密钥只需获得相应表/页面和 `form:read` 等作用域,不应把每个动态 URL 加入
42
- 无条件白名单。完整调用模型见 `v8-formengine-http`。
43
-
44
- ## 文件、消息、验证码与诊断
45
-
46
- | 路由 | 用途与边界 |
47
- |---|---|
48
- | `GET /api/Captcha/getCaptcha` | 获取验证码图片;同时保存响应 `captchaid` |
49
- | `POST /api/Captcha/Recognize` | 受控验证码识别,主要供采集引擎 |
50
- | `POST /api/HDFS/Upload` | 受限文件上传;优先用平台 SDK/V8 Upload |
51
- | `POST /apiengine/platform-private-file-url` | 获取当前租户短期私有文件地址;必须携带权威资源上下文 |
52
- | `GET /api/HDFS/OpenPrivateFile` | 受权打开私有文件/Office 代理 |
53
- | `POST /api/DiyChat/SendSystemMessage` | 发送站内消息;前端优先 `V8.SendSystemMessage` |
54
- | `POST /apiengine/platform-mq` | MQ 管理入口;Body 使用 `Action=Send`,仅当前租户超级管理员 |
55
- | `GET /apiengine/platform-service-health?OsClient={OsClient}` | 新版客户端固定匿名健康契约;返回 `Data.Status=Healthy`,新二进制同时返回真实后端版本;应用包先发布时版本可暂时为空,但健康结论不失败;不查询业务表 |
56
- | `GET /api/Diagnostics/health` | 旧节点滚动升级兼容健康路由;新版客户端不以它作为主要契约 |
57
- | `GET /api/Diagnostics/liveness` | 进程存活检查,不代表已就绪接流量 |
58
-
59
- `/api/example`、`/api/example/1` 仅用于说明 `V8.Http` 的普通 Controller 地址,
60
- 不属于 Microi 固定接口。
61
-
62
- ## 管理与内部交付接口
63
-
64
- 下列路由不是普通业务 SDK:
65
-
66
- | 路由 | 限制 |
67
- |---|---|
68
- | `POST /api/DiyField/UptDiyFieldList` | 开发设计字段批量保存;需设计权限 |
69
- | `POST /api/FormEngine/ImportDiyTableRow` | 表格/子表导入;后端复核字段、外键和权限 |
70
- | `POST /api/SysUser/GetSysUserPassword` | 仅存量 DES 密码的超级管理员兼容查看;必须审计,访问密钥/普通角色拒绝 |
71
- | `POST /api/V8Engine/UploadApplicationAssetStream` | 管理员应用文件分片流式上传 |
72
- | `POST /api/V8Engine/FinalizeApplicationStreamPublish` | 校验清单并原子切换应用版本 |
73
-
74
- 应用流式发布必须使用 MCP/平台发布流程:文件逐个校验 SHA-256,版本目录不可变,
75
- 同一应用用跨节点锁串行,入口文件最后切换。不得把这两个内部路由包装成匿名上传。
76
-
77
- ## 安全检查
78
-
79
- - URL 不携带长期 Token、密码、连接串、私钥或 Redis 凭据。
80
- - 动态表名、ApiEngineKey、文件路径和 redirect 都先走白名单/授权。
81
- - 匿名路由只对明确开启的表或接口生效,仍要限流、限大小并做业务校验。
82
- - 管理接口必须核验当前租户与管理员身份,写后回读;超时先回读,不能盲目重试。
83
- - 示例 URL 中的租户、表 Key、接口 Key 和 Id 都是占位值,不复制为生产常量。
1
+ # Microi 平台 HTTP 路由索引
2
+
3
+ 本索引用于识别中文官网示例中的平台路由。路由可用不等于当前用户有权限;始终
4
+ 传当前租户 `OsClient`,使用受支持的 Token/访问密钥,并让服务端重新做菜单、
5
+ 表单、字段和数据范围校验。
6
+
7
+ ## 接口引擎
8
+
9
+ | 路由 | 用途 |
10
+ |---|---|
11
+ | `POST /apiengine/{ApiEngineKey}` | 推荐的稳定接口引擎入口 |
12
+ | `POST /api/ApiEngine/Run` | 仅旧客户端兼容,Body 传 `ApiEngineKey`;新增固定业务禁止使用 |
13
+ | `/apiengine/{ApiEngineKey}--OsClient--{OsClient}--` | 仅用于确实无法设置 Header/Form/Query 的 GET/HEAD 场景 |
14
+
15
+ 普通请求优先在唯一 `osclient` Header 传租户,也可在 Query/Form/JSON 中冗余;
16
+ 固定业务必须使用真实引擎动态地址或唯一 `ApiAddress`,使日志、流量、审计和限流
17
+ 直接按引擎归因;旧通用入口只能由显式 `RunLegacy` 调用。
18
+ 不要无脑把特殊租户后缀加到每条 URL。官网中的
19
+ `/apiengine/test1`、`/apiengine/get-product-list`、打印、支付和 Excel demo
20
+ 都是业务 `ApiEngineKey` 示例,不是固定平台接口。
21
+
22
+ ## FormEngine
23
+
24
+ 标准 Controller 路由:
25
+
26
+ | 路由 | 用途 |
27
+ |---|---|
28
+ | `POST /api/formengine/GetTableData` | 查询列表 |
29
+ | `POST /api/formengine/GetFormData` | 查询单条 |
30
+ | `POST /api/formengine/AddFormData` | 新增 |
31
+ | `POST /api/formengine/UptFormData` | 更新 |
32
+ | `POST /api/formengine/DelFormData` | 删除 |
33
+ | `POST /api/formengine/UptFormDataByWhere` | 按条件更新 |
34
+ | `POST /api/formengine/DelFormDataByWhere` | 按条件删除 |
35
+ | `POST /api/formengine/GetTableDataAnonymous` | 表配置允许时匿名查列表 |
36
+ | `POST /api/formengine/GetFormDataAnonymous` | 表配置允许时匿名查单条 |
37
+ | `POST /api/formengine/AddFormDataAnonymous` | 表配置允许时匿名新增 |
38
+
39
+ 动态路由还支持
40
+ `/api/formengine/{operation}-{FormEngineKey}`(兼容无连字符操作名与连字符操作名)。
41
+ 访问密钥只需获得相应表/页面和 `form:read` 等作用域,不应把每个动态 URL 加入
42
+ 无条件白名单。完整调用模型见 `v8-formengine-http`。
43
+
44
+ ## 文件、消息、验证码与诊断
45
+
46
+ | 路由 | 用途与边界 |
47
+ |---|---|
48
+ | `GET /api/Captcha/getCaptcha` | 获取验证码图片;同时保存响应 `captchaid` |
49
+ | `POST /api/Captcha/Recognize` | 受控验证码识别,主要供采集引擎 |
50
+ | `POST /api/HDFS/Upload` | 受限文件上传;优先用平台 SDK/V8 Upload |
51
+ | `POST /apiengine/platform-private-file-url` | 获取当前租户短期私有文件地址;必须携带权威资源上下文 |
52
+ | `GET /api/HDFS/OpenPrivateFile` | 受权打开私有文件/Office 代理 |
53
+ | `POST /api/DiyChat/SendSystemMessage` | 发送站内消息;前端优先 `V8.SendSystemMessage` |
54
+ | `POST /apiengine/platform-mq` | MQ 管理入口;Body 使用 `Action=Send`,仅当前租户超级管理员 |
55
+ | `GET /apiengine/platform-service-health?OsClient={OsClient}` | 新版客户端固定匿名健康契约;返回 `Data.Status=Healthy`,新二进制同时返回真实后端版本;应用包先发布时版本可暂时为空,但健康结论不失败;不查询业务表 |
56
+ | `GET /api/Diagnostics/health` | 旧节点滚动升级兼容健康路由;新版客户端不以它作为主要契约 |
57
+ | `GET /api/Diagnostics/liveness` | 进程存活检查,不代表已就绪接流量 |
58
+
59
+ `/api/example`、`/api/example/1` 仅用于说明 `V8.Http` 的普通 Controller 地址,
60
+ 不属于 Microi 固定接口。
61
+
62
+ ## 管理与内部交付接口
63
+
64
+ 下列路由不是普通业务 SDK:
65
+
66
+ | 路由 | 限制 |
67
+ |---|---|
68
+ | `POST /api/DiyField/UptDiyFieldList` | 开发设计字段批量保存;需设计权限 |
69
+ | `POST /api/FormEngine/ImportDiyTableRow` | 表格/子表导入;后端复核字段、外键和权限 |
70
+ | `POST /api/SysUser/GetSysUserPassword` | 仅存量 DES 密码的超级管理员兼容查看;必须审计,访问密钥/普通角色拒绝 |
71
+ | `POST /api/V8Engine/UploadApplicationAssetStream` | 管理员应用文件分片流式上传 |
72
+ | `POST /api/V8Engine/FinalizeApplicationStreamPublish` | 校验清单并原子切换应用版本 |
73
+
74
+ 应用流式发布必须使用 MCP/平台发布流程:文件逐个校验 SHA-256,版本目录不可变,
75
+ 同一应用用跨节点锁串行,入口文件最后切换。不得把这两个内部路由包装成匿名上传。
76
+
77
+ ## 安全检查
78
+
79
+ - URL 不携带长期 Token、密码、连接串、私钥或 Redis 凭据。
80
+ - 动态表名、ApiEngineKey、文件路径和 redirect 都先走白名单/授权。
81
+ - 匿名路由只对明确开启的表或接口生效,仍要限流、限大小并做业务校验。
82
+ - 管理接口必须核验当前租户与管理员身份,写后回读;超时先回读,不能盲目重试。
83
+ - 示例 URL 中的租户、表 Key、接口 Key 和 Id 都是占位值,不复制为生产常量。