@microi.net/cli 5.8.5 → 5.8.6

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 (211) 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/LICENSE +21 -21
  8. package/README.md +71 -71
  9. package/assets/build-meta.json +6 -6
  10. package/assets/feature-matrix.json +138 -138
  11. package/assets/logo.svg +4 -4
  12. package/cordis.patch.yml +1 -1
  13. package/package.json +1 -1
  14. package/scripts/codex-marketplace.json +20 -20
  15. package/scripts/mcp-codex-stdio-adapter.js +189 -189
  16. package/scripts/mcp-trae-windows-launcher.cmd +21 -21
  17. package/scripts/microi-cli-mcp.js +7 -7
  18. package/scripts/microi-cli.js +66 -65
  19. package/scripts/microi-codex-broker.js +450 -450
  20. package/scripts/microi-codex-router.js +618 -618
  21. package/scripts/microi-skills.meta.json +384 -384
  22. package/skills/.microi-skills-version.json +2 -2
  23. package/skills/.progressive-disclosure-manifest.json +3566 -3566
  24. package/skills/README.md +287 -287
  25. package/skills/ai-engine/SKILL.md +269 -265
  26. package/skills/ai-engine/agents/openai.yaml +4 -4
  27. package/skills/ai-engine/references/ai-employees.md +48 -48
  28. package/skills/ai-engine/references/self-hosted-digital-human.md +59 -59
  29. package/skills/ai-platform-governance/SKILL.md +177 -177
  30. package/skills/ai-platform-governance/references/progressive-01-/345/212/237/350/203/275/345/274/200/345/205/263.md +190 -190
  31. package/skills/app-store/SKILL.md +525 -525
  32. package/skills/app-store/agents/openai.yaml +4 -4
  33. package/skills/business-blueprint/SKILL.md +193 -193
  34. package/skills/datasource-engine/SKILL.md +93 -93
  35. package/skills/datasource-engine/agents/openai.yaml +4 -4
  36. package/skills/dos-orm/SKILL.md +97 -97
  37. package/skills/dos-orm/references/api-reference.md +229 -229
  38. package/skills/email-engine/SKILL.md +81 -81
  39. package/skills/email-engine/references/v8-email.md +34 -34
  40. package/skills/job-engine/SKILL.md +176 -176
  41. package/skills/job-engine/agents/openai.yaml +4 -4
  42. package/skills/message-notification/SKILL.md +156 -156
  43. package/skills/message-notification/agents/openai.yaml +5 -5
  44. package/skills/message-notification/references/contracts.md +102 -102
  45. package/skills/microi/SKILL.md +14 -14
  46. package/skills/microi-ai-app-auth.js +652 -652
  47. package/skills/microi-ai-application/SKILL.md +115 -115
  48. package/skills/microi-ai-application/agents/openai.yaml +4 -4
  49. package/skills/microi-ai-application/references/frontend-baseline.md +164 -164
  50. package/skills/microi-client-frontend/SKILL.md +244 -244
  51. 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 +144 -144
  52. 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 +196 -196
  53. 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 +167 -167
  54. package/skills/microi-codex/SKILL.md +102 -102
  55. package/skills/microi-codex-installer/SKILL.md +231 -231
  56. package/skills/microi-codex-installer/agents/openai.yaml +7 -7
  57. package/skills/microi-datasource-mapping/SKILL.md +122 -122
  58. package/skills/microi-db-schema/SKILL.md +175 -175
  59. package/skills/microi-db-schema/agents/openai.yaml +4 -4
  60. package/skills/microi-db-schema/references/core-tables.md +695 -695
  61. package/skills/microi-db-schema/references/form-component-options.md +256 -256
  62. package/skills/microi-db-schema/references/schema-overview.md +202 -202
  63. package/skills/microi-db-schema/references/schema.md +646 -646
  64. package/skills/microi-db-schema/references/table-catalog.md +1599 -1599
  65. package/skills/microi-deployment/SKILL.md +221 -221
  66. package/skills/microi-deployment/references/deployment-matrix.md +109 -109
  67. package/skills/microi-docs-coverage/SKILL.md +133 -133
  68. package/skills/microi-docs-coverage/references/capability-map.md +91 -91
  69. package/skills/microi-docs-coverage/scripts/audit-doc-skill-coverage.mjs +894 -894
  70. package/skills/microi-form-engine/SKILL.md +333 -333
  71. package/skills/microi-form-engine/references/component-catalog.md +218 -218
  72. package/skills/microi-form-engine/references/data-source-events.md +124 -124
  73. package/skills/microi-form-layout/SKILL.md +205 -205
  74. 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
  75. package/skills/microi-frontend-sdk/SKILL.md +194 -194
  76. 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 +176 -176
  77. package/skills/microi-left-right-layout/SKILL.md +141 -141
  78. package/skills/microi-microservice/SKILL.md +326 -324
  79. package/skills/microi-microservice/references/runtime-delivery.md +278 -278
  80. package/skills/microi-mobile-app-quality/SKILL.md +185 -185
  81. 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
  82. package/skills/microi-mobile-app-quality/references/progressive-02-9-/344/270/273/351/242/230/345/210/207/346/215/242/345/277/205/351/241/273/347/234/237/345/256/236/344/270/224/345/205/250/345/261/200/347/224/237/346/225/210.md +128 -128
  83. package/skills/microi-solution-quotation/SKILL.md +78 -78
  84. package/skills/microi-solution-quotation/agents/openai.yaml +4 -4
  85. package/skills/microi-solution-quotation/scripts/build_solution_quote.py +296 -296
  86. package/skills/microi-sso/SKILL.md +92 -92
  87. package/skills/microi-sso/references/acceptance.md +49 -49
  88. package/skills/microi-sso/references/configuration-and-security.md +53 -53
  89. package/skills/microi-sso/references/inbound.md +53 -53
  90. package/skills/microi-sso/references/outbound.md +39 -39
  91. package/skills/microi-system-delivery/SKILL.md +137 -137
  92. package/skills/microi-system-delivery/references/progressive-01-/346/240/207/345/207/206/345/267/245/344/275/234/346/265/201.md +193 -193
  93. 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 +217 -217
  94. package/skills/microi-ui/SKILL.md +192 -192
  95. package/skills/microi-ui/references/progressive-01-/347/247/273/345/212/250/347/253/257/345/234/272/346/231/257/350/223/235/345/233/276.md +183 -183
  96. package/skills/microi-uniapp-frontend/SKILL.md +193 -193
  97. 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 +225 -225
  98. 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 +154 -154
  99. package/skills/microi.v8.js +1921 -1921
  100. package/skills/module-engine/SKILL.md +255 -255
  101. package/skills/module-engine/references/module-config.md +204 -204
  102. package/skills/ocr-engine/SKILL.md +113 -113
  103. package/skills/ocr-engine/agents/openai.yaml +4 -4
  104. package/skills/page-engine/SKILL.md +206 -206
  105. package/skills/page-engine/examples/compact-dashboard.json +1444 -1444
  106. 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 +234 -234
  107. 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 +60 -60
  108. package/skills/performance-testing/SKILL.md +221 -221
  109. package/skills/playwright-e2e/SKILL.md +196 -196
  110. 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 +173 -173
  111. 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 +183 -183
  112. package/skills/playwright-e2e/references/progressive-03-microi-helper-/346/250/241/346/235/277.md +221 -221
  113. package/skills/playwright-e2e/references/progressive-04-ci-/345/273/272/350/256/256.md +115 -115
  114. package/skills/print-engine/SKILL.md +259 -259
  115. package/skills/production-readonly-audit/SKILL.md +41 -41
  116. package/skills/report-engine/SKILL.md +71 -71
  117. package/skills/report-engine/agents/openai.yaml +4 -4
  118. package/skills/scripts/optimize-progressive-disclosure.mjs +204 -204
  119. package/skills/scripts/refresh-progressive-disclosure.mjs +64 -64
  120. package/skills/scripts/sync-embedded-skills.mjs +46 -46
  121. package/skills/scripts/validate-progressive-disclosure.mjs +57 -57
  122. package/skills/search-engine/SKILL.md +75 -75
  123. package/skills/search-engine/agents/openai.yaml +4 -4
  124. package/skills/spider-engine/SKILL.md +190 -190
  125. package/skills/system-observability/SKILL.md +248 -248
  126. package/skills/system-observability/references/memory-incident-triage.md +77 -77
  127. package/skills/translate-engine/SKILL.md +140 -140
  128. package/skills/translate-engine/agents/openai.yaml +4 -4
  129. package/skills/ui-design/SKILL.md +223 -223
  130. package/skills/ui-design/assets/pattern-showcase/app.js +54 -54
  131. package/skills/ui-design/assets/pattern-showcase/index.html +163 -163
  132. package/skills/ui-design/assets/pattern-showcase/styles.css +311 -311
  133. package/skills/ui-design/assets/templates/MCI-DESIGN.md +206 -206
  134. package/skills/ui-design/references/design-pattern-library.md +184 -184
  135. package/skills/ui-design/references/mci-design-contract.md +163 -163
  136. package/skills/ui-design/references/motion-and-media.md +78 -78
  137. package/skills/ui-design/references/product-flow-recipes.md +94 -94
  138. package/skills/ui-design/references/progressive-01-/351/242/234/350/211/262/344/275/223/347/263/273-css-variables-/346/224/257/346/214/201/344/270/273/351/242/230/345/210/207/346/215/242.md +218 -218
  139. package/skills/ui-design/references/progressive-02-/345/255/227/344/275/223.md +164 -164
  140. package/skills/ui-design/references/progressive-03-/345/212/250/346/225/210/350/247/204/350/214/203-/344/270/260/345/257/214/344/275/206/344/270/215/345/215/241.md +235 -235
  141. package/skills/ui-design/references/progressive-04-/347/273/204/344/273/266/351/243/216/346/240/274/351/200/237/346/237/245.md +152 -152
  142. package/skills/ui-design/references/progressive-05-/347/247/273/345/212/250/347/253/257/344/270/223/347/224/250/350/247/204/350/214/203.md +238 -238
  143. package/skills/ui-design/references/progressive-06-/344/270/273/351/242/230/345/210/207/346/215/242/345/256/236/347/216/260.md +194 -194
  144. package/skills/ui-design/references/progressive-07-/351/200/237/346/237/245-/344/273/216/345/244/264/346/220/255/345/273/272/344/270/200/344/270/252/347/247/273/345/212/250/347/253/257/351/241/265/351/235/242.md +207 -207
  145. package/skills/ui-design/references/progressive-08-/350/241/250/345/215/225/345/210/206/347/273/204/350/247/204/350/214/203-tabs-vs-collapsegroup-/345/274/272/345/210/266.md +142 -142
  146. package/skills/uniapp-mall-assets/SKILL.md +176 -176
  147. package/skills/unity-integration/SKILL.md +171 -171
  148. package/skills/unity-integration/agents/openai.yaml +4 -4
  149. package/skills/unity-integration/references/ai-app-delivery.md +119 -119
  150. package/skills/unity-integration/references/sdk-api.md +82 -82
  151. package/skills/unity-integration/references/toolbox-migration.md +66 -66
  152. package/skills/unity-integration/references/webgl-hosting.md +57 -57
  153. package/skills/v8-api-config/SKILL.md +388 -388
  154. package/skills/v8-cache-pattern/SKILL.md +312 -312
  155. package/skills/v8-crud-api/SKILL.md +178 -178
  156. 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 +226 -226
  157. package/skills/v8-crud-api/references/progressive-02-where-/346/235/241/344/273/266/350/257/255/346/263/225/351/200/237/346/237/245.md +49 -49
  158. package/skills/v8-debugging/SKILL.md +284 -284
  159. package/skills/v8-explorer-tree/SKILL.md +228 -228
  160. package/skills/v8-export-import/SKILL.md +219 -219
  161. 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 +211 -211
  162. package/skills/v8-export-import/references/progressive-02-powerpoint-/345/257/274/345/207/272.md +202 -202
  163. 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 +42 -42
  164. package/skills/v8-file-upload/SKILL.md +284 -284
  165. 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 +263 -263
  166. 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 +161 -161
  167. package/skills/v8-formengine-http/SKILL.md +238 -238
  168. package/skills/v8-frontend-events/SKILL.md +180 -180
  169. package/skills/v8-frontend-events/references/bluetooth-print-api.md +135 -135
  170. package/skills/v8-frontend-events/references/bluetooth-print.md +258 -258
  171. package/skills/v8-frontend-events/references/progressive-01-/345/210/227/350/241/250/344/272/213/344/273/266.md +219 -219
  172. package/skills/v8-http-integration/SKILL.md +182 -182
  173. package/skills/v8-http-integration/references/progressive-01-get-/350/257/267/346/261/202.md +220 -220
  174. 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 +44 -44
  175. package/skills/v8-image-processing/SKILL.md +190 -190
  176. package/skills/v8-image-processing/agents/openai.yaml +4 -4
  177. package/skills/v8-image-processing/references/api-reference.md +623 -623
  178. package/skills/v8-menu-buttons/SKILL.md +186 -186
  179. package/skills/v8-menu-buttons/references/progressive-01-2-/346/214/211/351/222/256/345/257/271/350/261/241-schema.md +222 -222
  180. 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
  181. 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 +104 -104
  182. package/skills/v8-mongodb/SKILL.md +200 -200
  183. package/skills/v8-mq-mqtt/SKILL.md +176 -176
  184. package/skills/v8-mq-mqtt/references/mqtt-production.md +342 -342
  185. package/skills/v8-mq-mqtt/references/progressive-01-v8-mqtt-iot-/347/211/251/350/201/224/347/275/221.md +181 -181
  186. package/skills/v8-mq-mqtt/scripts/check-mqtt-skill-coverage.mjs +203 -203
  187. package/skills/v8-saas-multi-tenant/SKILL.md +305 -305
  188. package/skills/v8-security/SKILL.md +210 -210
  189. package/skills/v8-security/references/progressive-01-2-/346/235/203/351/231/220/346/240/241/351/252/214.md +200 -200
  190. package/skills/v8-security/references/progressive-02-7-/346/227/245/345/277/227/350/256/260/345/275/225.md +160 -160
  191. package/skills/v8-sql-query/SKILL.md +302 -302
  192. package/skills/v8-table-event/SKILL.md +176 -176
  193. 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 +216 -216
  194. 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 +46 -46
  195. package/skills/v8-tcp-integration/SKILL.md +147 -147
  196. package/skills/v8-tcp-integration/agents/openai.yaml +4 -4
  197. package/skills/v8-template-engine/SKILL.md +167 -167
  198. package/skills/v8-utilities/SKILL.md +104 -104
  199. package/skills/v8-utilities/references/client-api-index.md +143 -143
  200. package/skills/v8-utilities/references/platform-http-routes.md +83 -83
  201. package/skills/v8-utilities/references/server-api-index.md +188 -188
  202. package/skills/v8-workflow/SKILL.md +252 -252
  203. package/skills/v8-workflow/references/progressive-01-/350/212/202/347/202/271/345/274/200/345/247/213-v8-/344/272/213/344/273/266.md +180 -180
  204. package/skills/v8-workflow/references/workflow-configuration.md +49 -49
  205. package/skills/vision-engine/SKILL.md +160 -160
  206. package/skills/vision-engine/agents/openai.yaml +4 -4
  207. package/skills/vision-engine/references/architecture-and-acceptance.md +194 -194
  208. package/skills/workspace-conventions/SKILL.md +273 -273
  209. 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 +209 -209
  210. 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 +217 -217
  211. 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 +27 -27
@@ -5,13 +5,13 @@
5
5
  "url": "https://microi.net"
6
6
  },
7
7
  "description": "Microi吾码官方 AI 插件市场",
8
- "version": "5.8.5",
8
+ "version": "5.8.6",
9
9
  "plugins": [
10
10
  {
11
11
  "name": "microi",
12
12
  "source": ".",
13
13
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
14
- "version": "5.8.5",
14
+ "version": "5.8.6",
15
15
  "strict": true
16
16
  }
17
17
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microi",
3
- "version": "5.8.5",
3
+ "version": "5.8.6",
4
4
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
5
5
  "author": {
6
6
  "name": "Microi.Net",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microi",
3
- "version": "5.8.5",
3
+ "version": "5.8.6",
4
4
  "description": "Microi吾码低代码平台的 Codex 开发插件,共享 VS Code/CLI 的连接、同步、MCP、V8 与交付能力。",
5
5
  "author": {
6
6
  "name": "Microi.Net",
package/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "node",
5
5
  "args": [
6
6
  "-e",
7
- "/*\n * Codex CLI 仍不会把 plugin .mcp.json 的相对路径定位到插件根。\n * 本脚本作为 `node -e` 内容运行:CodeBuddy/WorkBuddy 优先使用宿主注入的\n * plugin root;Codex 则回退到官方 plugin cache,并统一执行双清单校验。\n */\nconst fs = require('node:fs');\nconst os = require('node:os');\nconst path = require('node:path');\nconst primaryPackageName = '@microi.net/cli';\nconst legacyPackageName = '@microi.net/codex-plugin';\n\nfunction readJson(filePath) {\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\n catch { return undefined; }\n}\nfunction validPluginRoot(root) {\n const manifest = readJson(path.join(root, '.codex-plugin', 'plugin.json'));\n const pkg = readJson(path.join(root, 'package.json'));\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\n if (manifest?.name !== 'microi' || ![primaryPackageName, legacyPackageName].includes(pkg?.name)) return undefined;\n if (!manifest.version || manifest.version !== pkg.version) return undefined;\n if (!fs.existsSync(adapter) || !fs.existsSync(router)) return undefined;\n return {\n root,\n adapter,\n router,\n packagePriority: pkg.name === primaryPackageName ? 1 : 0,\n modifiedAt: Math.max(fs.statSync(adapter).mtimeMs, fs.statSync(router).mtimeMs),\n };\n}\n\nfunction findPluginRoot() {\n const explicitRoots = [\n ['MICROI_CODEX_PLUGIN_ROOT', process.env.MICROI_CODEX_PLUGIN_ROOT],\n ['CODEBUDDY_PLUGIN_ROOT', process.env.CODEBUDDY_PLUGIN_ROOT],\n ['WORKBUDDY_PLUGIN_ROOT', process.env.WORKBUDDY_PLUGIN_ROOT],\n ['CLAUDE_PLUGIN_ROOT', process.env.CLAUDE_PLUGIN_ROOT],\n ];\n for (const [source, value] of explicitRoots) {\n const explicit = String(value || '').trim();\n if (!explicit) continue;\n const validated = validPluginRoot(path.resolve(explicit));\n if (!validated) throw new Error(`${source} 不是有效的 Microi Plugin:${explicit}`);\n return validated;\n }\n\n const codexHome = path.resolve(process.env.CODEX_HOME || path.join(os.homedir(), '.codex'));\n const cacheRoot = path.join(codexHome, 'plugins', 'cache');\n const candidates = [];\n if (fs.existsSync(cacheRoot)) {\n for (const marketplace of fs.readdirSync(cacheRoot, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\n const pluginDir = path.join(cacheRoot, marketplace.name, 'microi');\n if (!fs.existsSync(pluginDir)) continue;\n for (const version of fs.readdirSync(pluginDir, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\n const candidateRoot = path.resolve(pluginDir, version.name);\n const relative = path.relative(cacheRoot, candidateRoot);\n if (relative.startsWith('..') || path.isAbsolute(relative)) continue;\n const validated = validPluginRoot(candidateRoot);\n if (validated) candidates.push(validated);\n }\n }\n }\n candidates.sort((left, right) => right.packagePriority - left.packagePriority || right.modifiedAt - left.modifiedAt);\n if (!candidates[0]) {\n throw new Error(`未在 Codex plugin cache 找到有效的 Microi Agentx Plugin:${cacheRoot}`);\n }\n return candidates[0];\n}\n\ntry {\n const plugin = findPluginRoot();\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\n process.argv[2] = plugin.router;\n require(plugin.adapter);\n} catch (error) {\n console.error(`[microi-codex-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\n process.exit(1);\n}\n"
7
+ "/*\r\n * Codex CLI 仍不会把 plugin .mcp.json 的相对路径定位到插件根。\r\n * 本脚本作为 `node -e` 内容运行:CodeBuddy/WorkBuddy 优先使用宿主注入的\r\n * plugin root;Codex 则回退到官方 plugin cache,并统一执行双清单校验。\r\n */\r\nconst fs = require('node:fs');\r\nconst os = require('node:os');\r\nconst path = require('node:path');\r\nconst primaryPackageName = '@microi.net/cli';\r\nconst legacyPackageName = '@microi.net/codex-plugin';\r\n\r\nfunction readJson(filePath) {\r\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\r\n catch { return undefined; }\r\n}\r\nfunction validPluginRoot(root) {\r\n const manifest = readJson(path.join(root, '.codex-plugin', 'plugin.json'));\r\n const pkg = readJson(path.join(root, 'package.json'));\r\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\r\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\r\n if (manifest?.name !== 'microi' || ![primaryPackageName, legacyPackageName].includes(pkg?.name)) return undefined;\r\n if (!manifest.version || manifest.version !== pkg.version) return undefined;\r\n if (!fs.existsSync(adapter) || !fs.existsSync(router)) return undefined;\r\n return {\r\n root,\r\n adapter,\r\n router,\r\n packagePriority: pkg.name === primaryPackageName ? 1 : 0,\r\n modifiedAt: Math.max(fs.statSync(adapter).mtimeMs, fs.statSync(router).mtimeMs),\r\n };\r\n}\r\n\r\nfunction findPluginRoot() {\r\n const explicitRoots = [\r\n ['MICROI_CODEX_PLUGIN_ROOT', process.env.MICROI_CODEX_PLUGIN_ROOT],\r\n ['CODEBUDDY_PLUGIN_ROOT', process.env.CODEBUDDY_PLUGIN_ROOT],\r\n ['WORKBUDDY_PLUGIN_ROOT', process.env.WORKBUDDY_PLUGIN_ROOT],\r\n ['CLAUDE_PLUGIN_ROOT', process.env.CLAUDE_PLUGIN_ROOT],\r\n ];\r\n for (const [source, value] of explicitRoots) {\r\n const explicit = String(value || '').trim();\r\n if (!explicit) continue;\r\n const validated = validPluginRoot(path.resolve(explicit));\r\n if (!validated) throw new Error(`${source} 不是有效的 Microi Plugin:${explicit}`);\r\n return validated;\r\n }\r\n\r\n const codexHome = path.resolve(process.env.CODEX_HOME || path.join(os.homedir(), '.codex'));\r\n const cacheRoot = path.join(codexHome, 'plugins', 'cache');\r\n const candidates = [];\r\n if (fs.existsSync(cacheRoot)) {\r\n for (const marketplace of fs.readdirSync(cacheRoot, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\r\n const pluginDir = path.join(cacheRoot, marketplace.name, 'microi');\r\n if (!fs.existsSync(pluginDir)) continue;\r\n for (const version of fs.readdirSync(pluginDir, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\r\n const candidateRoot = path.resolve(pluginDir, version.name);\r\n const relative = path.relative(cacheRoot, candidateRoot);\r\n if (relative.startsWith('..') || path.isAbsolute(relative)) continue;\r\n const validated = validPluginRoot(candidateRoot);\r\n if (validated) candidates.push(validated);\r\n }\r\n }\r\n }\r\n candidates.sort((left, right) => right.packagePriority - left.packagePriority || right.modifiedAt - left.modifiedAt);\r\n if (!candidates[0]) {\r\n throw new Error(`未在 Codex plugin cache 找到有效的 Microi Agentx Plugin:${cacheRoot}`);\r\n }\r\n return candidates[0];\r\n}\r\n\r\ntry {\r\n const plugin = findPluginRoot();\r\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\r\n process.argv[2] = plugin.router;\r\n require(plugin.adapter);\r\n} catch (error) {\r\n console.error(`[microi-codex-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\r\n process.exit(1);\r\n}\r\n"
8
8
  ]
9
9
  }
10
10
  }
@@ -5,13 +5,13 @@
5
5
  "url": "https://microi.net"
6
6
  },
7
7
  "description": "Microi吾码官方 AI 插件市场",
8
- "version": "5.8.5",
8
+ "version": "5.8.6",
9
9
  "plugins": [
10
10
  {
11
11
  "name": "microi",
12
12
  "source": ".",
13
13
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
14
- "version": "5.8.5",
14
+ "version": "5.8.6",
15
15
  "strict": true
16
16
  }
17
17
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microi",
3
- "version": "5.8.5",
3
+ "version": "5.8.6",
4
4
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
5
5
  "author": {
6
6
  "name": "Microi.Net",
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Microi吾码
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Microi吾码
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,71 +1,71 @@
1
- # @microi.net/cli — Microi吾码 CLI + 多宿主 AI Plugin
2
-
3
- `@microi.net/cli` 是 Microi吾码唯一的 AI/npm 产品,同时提供:
4
-
5
- - 全局命令 `microi`;
6
- - Codex Plugin、DeepSeek Harness 原生 profile bundle,以及 WorkBuddy/CodeBuddy 兼容 plugin 与 marketplace 清单;
7
- - 与 Microi.Agent 同源的 MCP Server、连接/Token/同步协议;
8
- - 支持多服务器、租户、产品类型和网络环境的 `microi_codex` 路由;
9
- - 全套 Microi Skills 与 VS Code 命令覆盖矩阵。
10
-
11
- ## 安装与空工作区初始化
12
-
13
- ```bash
14
- npm install -g @microi.net/cli
15
- microi init --workspace <工作区> --pull
16
- ```
17
-
18
- 未全局安装时,也可以一次执行:
19
-
20
- ```bash
21
- npx --yes @microi.net/cli@latest init --workspace <工作区> --pull
22
- ```
23
-
24
- 命令会引导添加服务器、登录、生成 AI 指令/Skills/类型提示,并同时配置 Codex、VS Code、Cursor、Trae、Claude Code、WorkBuddy、CodeBuddy、Qoder、Comate MCP;密码仅在当前进程中隐式输入,不写入命令参数或配置文件。
25
-
26
- 在这些 AI 软件的空工作区中,可以直接说:
27
-
28
- ```text
29
- 安装 @microi.net/cli@latest,初始化 Microi吾码插件;添加指定服务器和 MCP,登录后拉取该连接的所有 V8 代码。
30
- ```
31
-
32
- 初始化会生成 `.workbuddy/mcp.json`、根 `.mcp.json`、`.comate/mcp.json`,以及 CodeBuddy/Qoder/Comate 项目 Skill。当前会话不支持热加载时继续使用已加载版本,新版在下一次自然启动时生效。
33
-
34
- ## 安装 Codex Plugin
35
-
36
- ```bash
37
- microi version --json
38
- microi codex status --json
39
- microi codex install --yes
40
- ```
41
-
42
- marketplace 固定为 `microi-net`,插件选择器固定为 `microi@microi-net`。安装器会迁移旧的 `microi-official` 标识,以及曾指向 `@microi.net/codex-plugin` 的吾码 marketplace 文件。安装不终止当前 Codex Router,新版在后续新进程中生效。
43
-
44
- 全新 Codex 的空目录中可直接对 AI 说“通过 `@microi.net/cli@latest` 安装吾码 Codex 插件”。AI 应执行 `npx --yes @microi.net/cli@latest codex install --yes`:npm 仅负责下载,安装器将本包完整复制到 `${CODEX_HOME:-~/.codex}/microi-net-marketplace/plugins/microi`,生成官方支持的本地 marketplace 并安装启用插件。Codex 下次自然启动后,插件页显示 **Microi吾码**,来源为 **microi-net**。
45
-
46
- Codex Router、VS Code 扩展与 CLI 会自动投递统一后台更新:
47
-
48
- ```bash
49
- microi update --background --workspace "<工作区绝对路径>" --json
50
- ```
51
-
52
- 更新器只使用 npm 官方 registry,并自动升级 CLI、Codex/DeepSeek Harness 插件、AI 指令、Skills 与 MCP。当前进程继续使用旧版本;断网、权限不足、文件占用或安装失败只会延后重试和非阻塞提示,不影响当前、正在进行或新建工作。
53
-
54
- 本 npm 包根目录本身就是有效的 Codex Plugin。发布到 npm 只完成 CLI 下载与用户本地 marketplace 安装能力,不代表已经进入 ChatGPT/Codex 通用公开插件目录;公开目录仍需按 OpenAI 官方流程提交审核。
55
-
56
- ## 安装 DeepSeek Harness Plugin
57
-
58
- DeepSeek Harness 已安装且 `dsh`、`pnpm` 可用时执行:
59
-
60
- ```bash
61
- microi dsh status --json
62
- microi dsh install
63
- ```
64
-
65
- 默认幂等安装到 DSH 官方 `web` 与 `headless` profile;也可用 `--profile <名称>` 指定一个 profile。本包通过 `dsh.bundle.patch` 和 `cordis.patch.yml` 接入官方 `@deepseek-ai/dsh-mcp-client`,不是向 DSH 写入无效的 `.mcp.json`。安装后新建 DSH 会话,工具入口为 `mcp__microi__microi_codex`。开发源码可用 `microi dsh install --source <Microi.Agent目录> --force` 验收。
66
-
67
- 后台更新会在检测到 DSH 时自动幂等升级 bundle;DSH 或 pnpm 不存在、网络失败时只记录延后状态,不影响其它宿主和当前任务。
68
-
69
- ## WorkBuddy / CodeBuddy 原生插件
70
-
71
- 包根同时包含 `.workbuddy-plugin/`、`.codebuddy-plugin/`、`.mcp.json` 和全部 `skills/`。运行 `microi plugin path --json` 可取得本机真实包根与清单路径,供 WorkBuddy 插件页或 CodeBuddy 本地 marketplace 导入。宿主自身的安装、启用和工作区信任仍需由用户授权,CLI 不伪造 UI 安装状态。
1
+ # @microi.net/cli — Microi吾码 CLI + 多宿主 AI Plugin
2
+
3
+ `@microi.net/cli` 是 Microi吾码唯一的 AI/npm 产品,同时提供:
4
+
5
+ - 全局命令 `microi`;
6
+ - Codex Plugin、DeepSeek Harness 原生 profile bundle,以及 WorkBuddy/CodeBuddy 兼容 plugin 与 marketplace 清单;
7
+ - 与 Microi.Agent 同源的 MCP Server、连接/Token/同步协议;
8
+ - 支持多服务器、租户、产品类型和网络环境的 `microi_codex` 路由;
9
+ - 全套 Microi Skills 与 VS Code 命令覆盖矩阵。
10
+
11
+ ## 安装与空工作区初始化
12
+
13
+ ```bash
14
+ npm install -g @microi.net/cli
15
+ microi init --workspace <工作区> --pull
16
+ ```
17
+
18
+ 未全局安装时,也可以一次执行:
19
+
20
+ ```bash
21
+ npx --yes @microi.net/cli@latest init --workspace <工作区> --pull
22
+ ```
23
+
24
+ 命令会引导添加服务器、登录、生成 AI 指令/Skills/类型提示,并同时配置 Codex、VS Code、Cursor、Trae、Claude Code、WorkBuddy、CodeBuddy、Qoder、Comate MCP;密码仅在当前进程中隐式输入,不写入命令参数或配置文件。
25
+
26
+ 在这些 AI 软件的空工作区中,可以直接说:
27
+
28
+ ```text
29
+ 安装 @microi.net/cli@latest,初始化 Microi吾码插件;添加指定服务器和 MCP,登录后拉取该连接的所有 V8 代码。
30
+ ```
31
+
32
+ 初始化会生成 `.workbuddy/mcp.json`、根 `.mcp.json`、`.comate/mcp.json`,以及 CodeBuddy/Qoder/Comate 项目 Skill。当前会话不支持热加载时继续使用已加载版本,新版在下一次自然启动时生效。
33
+
34
+ ## 安装 Codex Plugin
35
+
36
+ ```bash
37
+ microi version --json
38
+ microi codex status --json
39
+ microi codex install --yes
40
+ ```
41
+
42
+ marketplace 固定为 `microi-net`,插件选择器固定为 `microi@microi-net`。安装器会迁移旧的 `microi-official` 标识,以及曾指向 `@microi.net/codex-plugin` 的吾码 marketplace 文件。安装不终止当前 Codex Router,新版在后续新进程中生效。
43
+
44
+ 全新 Codex 的空目录中可直接对 AI 说“通过 `@microi.net/cli@latest` 安装吾码 Codex 插件”。AI 应执行 `npx --yes @microi.net/cli@latest codex install --yes`:npm 仅负责下载,安装器将本包完整复制到 `${CODEX_HOME:-~/.codex}/microi-net-marketplace/plugins/microi`,生成官方支持的本地 marketplace 并安装启用插件。Codex 下次自然启动后,插件页显示 **Microi吾码**,来源为 **microi-net**。
45
+
46
+ Codex Router、VS Code 扩展与 CLI 会自动投递统一后台更新:
47
+
48
+ ```bash
49
+ microi update --background --workspace "<工作区绝对路径>" --json
50
+ ```
51
+
52
+ 更新器只使用 npm 官方 registry,并自动升级 CLI、Codex/DeepSeek Harness 插件、AI 指令、Skills 与 MCP。当前进程继续使用旧版本;断网、权限不足、文件占用或安装失败只会延后重试和非阻塞提示,不影响当前、正在进行或新建工作。
53
+
54
+ 本 npm 包根目录本身就是有效的 Codex Plugin。发布到 npm 只完成 CLI 下载与用户本地 marketplace 安装能力,不代表已经进入 ChatGPT/Codex 通用公开插件目录;公开目录仍需按 OpenAI 官方流程提交审核。
55
+
56
+ ## 安装 DeepSeek Harness Plugin
57
+
58
+ DeepSeek Harness 已安装且 `dsh`、`pnpm` 可用时执行:
59
+
60
+ ```bash
61
+ microi dsh status --json
62
+ microi dsh install
63
+ ```
64
+
65
+ 默认幂等安装到 DSH 官方 `web` 与 `headless` profile;也可用 `--profile <名称>` 指定一个 profile。本包通过 `dsh.bundle.patch` 和 `cordis.patch.yml` 接入官方 `@deepseek-ai/dsh-mcp-client`,不是向 DSH 写入无效的 `.mcp.json`。安装后新建 DSH 会话,工具入口为 `mcp__microi__microi_codex`。开发源码可用 `microi dsh install --source <Microi.Agent目录> --force` 验收。
66
+
67
+ 后台更新会在检测到 DSH 时自动幂等升级 bundle;DSH 或 pnpm 不存在、网络失败时只记录延后状态,不影响其它宿主和当前任务。
68
+
69
+ ## WorkBuddy / CodeBuddy 原生插件
70
+
71
+ 包根同时包含 `.workbuddy-plugin/`、`.codebuddy-plugin/`、`.mcp.json` 和全部 `skills/`。运行 `microi plugin path --json` 可取得本机真实包根与清单路径,供 WorkBuddy 插件页或 CodeBuddy 本地 marketplace 导入。宿主自身的安装、启用和工作区信任仍需由用户授权,CLI 不伪造 UI 安装状态。
@@ -1,6 +1,6 @@
1
1
  {
2
- "builtAt": "2026-10-08T15:41:24.762Z",
3
- "version": "5.8.5",
2
+ "builtAt": "2026-10-09T08:18:06.823Z",
3
+ "version": "5.8.6",
4
4
  "sourceProducts": [
5
5
  "vscode-extension",
6
6
  "microi-cli",
@@ -11,9 +11,9 @@
11
11
  "skills": 68,
12
12
  "hashes": {
13
13
  "mcpServer": "ccc7697b5032db3ceb2851066cb5871515fae5d22348891f3f1d65dfd9d4eab1",
14
- "cli": "b9ac4c15cb0a8f27a578b6fa4e1c59eb6620e3fec4e1c767dbc47612ddb75a51",
15
- "router": "ffe2c1fd90f966da07b936e10cd2c4da7106d960b38f71a5c5721e58fa45299e",
16
- "broker": "e4f21ac938950af5a446a2f5f39acc6e6e73535eab6e644fac6e04e73c4069e9",
17
- "dshBundle": "343fbe1c839863fdd6cb505bb61c5055b8196fc23da66e3214d6f46b5234547a"
14
+ "cli": "622493d51fe81db1aae5e823384c79b663b889b3dd7028f5753a43d3f02d68f1",
15
+ "router": "761b54007451348da5f6491245635c15c33663cae6c1811005839bc2312886e2",
16
+ "broker": "fffe3a7bbbc0c842d69c2eda09a0490ce0055a060f56d6a6d6230046e8952749",
17
+ "dshBundle": "44e789c25d59d362b9ecb21ee2cd079189b4714c10c4fdbde6e41313ab1fc3b8"
18
18
  }
19
19
  }
@@ -1,138 +1,138 @@
1
- {
2
- "schemaVersion": 1,
3
- "products": [
4
- "vscode-extension",
5
- "microi-cli",
6
- "codex-plugin",
7
- "microi-code-desktop"
8
- ],
9
- "groups": [
10
- {
11
- "id": "connection-and-auth",
12
- "adapter": "bundled-cli",
13
- "workflow": "microi profile/auth/doctor 与 Codex 原生设置",
14
- "surfaceDifference": "VS Code Webview 与树视图改为对话、JSON 输出和工作区文件。",
15
- "commands": [
16
- "microi.showSettings",
17
- "microi.login",
18
- "microi.logout",
19
- "microi.switchOsClient",
20
- "microi.refreshTree",
21
- "microi.openLocalFolder",
22
- "microi.copyEngineKey",
23
- "microi.searchEngine"
24
- ],
25
- "desktopSurface": "服务器连接 / 官方账号 / 项目选择"
26
- },
27
- {
28
- "id": "remote-execution-debug-and-performance",
29
- "adapter": "skill-and-mcp",
30
- "workflow": "v8-debugging/performance-testing Skills + microi_codex 原工具",
31
- "surfaceDifference": "VS Code DAP/Webview 改为结构化执行、诊断、补丁、复测及报告;远端执行能力和安全门保持一致。",
32
- "commands": [
33
- "microi.showPerformanceTest",
34
- "microi.remoteExecute",
35
- "microi.remoteDebug",
36
- "microi.stopDebugSession"
37
- ],
38
- "desktopSurface": "吾码工具与 AI 开发;原 VS Code DAP 面板继续保留"
39
- },
40
- {
41
- "id": "source-sync-and-diff",
42
- "adapter": "bundled-cli-and-codex-native",
43
- "workflow": "microi pull/push/sync status + Codex 文件读取、搜索和 diff",
44
- "surfaceDifference": "VS Code 编辑器命令改为 Codex 文件链接、补丁和终端输出。",
45
- "commands": [
46
- "microi.push",
47
- "microi.openFile",
48
- "microi.diffWithRemote",
49
- "microi.showSyncStatus",
50
- "microi.checkSyncConflicts",
51
- "microi.syncResults.open",
52
- "microi.syncResults.refresh",
53
- "microi.syncResults.clear",
54
- "microi.pullServer",
55
- "microi.syncServer",
56
- "microi.pullTableFields",
57
- "microi.pullModuleTree",
58
- "microi.pullDbSchema"
59
- ],
60
- "desktopSurface": "项目资源:编辑、拉取、推送、同步差异;AI 审阅"
61
- },
62
- {
63
- "id": "resource-authoring",
64
- "adapter": "mcp",
65
- "workflow": "microi_codex 中的 create/save/get/list 原工具及对应领域 Skill",
66
- "surfaceDifference": "QuickPick/InputBox 改为对话确认;仍复用原工具 schema、确认口令、审计和回读。",
67
- "commands": [
68
- "microi.createEngine",
69
- "microi.createFormEvent",
70
- "microi.createWorkflowNodeEvent",
71
- "microi.createMenuButtonEvent"
72
- ],
73
- "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
74
- },
75
- {
76
- "id": "micro-app",
77
- "adapter": "skill-mcp-and-shell",
78
- "workflow": "microi-microservice Skill + scaffold/sync/publish MCP 原工具 + 受控 npm build",
79
- "surfaceDifference": "VS Code 进度条与选择框改为阶段化对话和构建日志。",
80
- "commands": [
81
- "microi.microApp.create",
82
- "microi.microApp.pull",
83
- "microi.microApp.build",
84
- "microi.microApp.push",
85
- "microi.microApp.buildAndPush",
86
- "microi.microApp.pushRuntimeOnly",
87
- "microi.microApp.buildAndPushRuntimeOnly",
88
- "microi.microApp.buildAndPublishStore",
89
- "microi.microApp.syncSource",
90
- "microi.microApp.showSyncStatus"
91
- ],
92
- "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
93
- },
94
- {
95
- "id": "ai-bootstrap",
96
- "adapter": "bundled-cli-and-skills",
97
- "workflow": "microi ai init / mcp init 与同源 Skills、typings、AGENTS 注入",
98
- "surfaceDifference": "初始化结果以结构化文本返回。",
99
- "commands": [
100
- "microi.initializeAiConfig",
101
- "microi.configureMcp"
102
- ],
103
- "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
104
- },
105
- {
106
- "id": "mcp-lifecycle",
107
- "adapter": "codex-plugin-native-and-router",
108
- "workflow": "Codex Plugin 启停策略、microi_codex profiles、CLI doctor/mcp init",
109
- "surfaceDifference": "进程启停和输出由 Codex 插件宿主托管,不复制 VS Code MCP 面板。",
110
- "commands": [
111
- "microi.mcp.refreshStatus",
112
- "microi.mcp.diagnose",
113
- "microi.mcp.startAll",
114
- "microi.mcp.startServer",
115
- "microi.mcp.stopServer",
116
- "microi.mcp.restartServer",
117
- "microi.mcp.showOutput",
118
- "microi.mcp.showConfig",
119
- "microi.mcp.openServerOptions",
120
- "microi.mcp.showInstalled",
121
- "microi.mcp.removeServerConfig"
122
- ],
123
- "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
124
- },
125
- {
126
- "id": "playwright",
127
- "adapter": "skill-browser-and-shell",
128
- "workflow": "playwright-e2e Skill + Codex 浏览器/终端 + 原测试上下文接口",
129
- "surfaceDifference": "VS Code 命令改为 Codex 浏览器验收与可点击报告文件。",
130
- "commands": [
131
- "microi.initPlaywright",
132
- "microi.runPlaywright",
133
- "microi.openPlaywrightReport"
134
- ],
135
- "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
136
- }
137
- ]
138
- }
1
+ {
2
+ "schemaVersion": 1,
3
+ "products": [
4
+ "vscode-extension",
5
+ "microi-cli",
6
+ "codex-plugin",
7
+ "microi-code-desktop"
8
+ ],
9
+ "groups": [
10
+ {
11
+ "id": "connection-and-auth",
12
+ "adapter": "bundled-cli",
13
+ "workflow": "microi profile/auth/doctor 与 Codex 原生设置",
14
+ "surfaceDifference": "VS Code Webview 与树视图改为对话、JSON 输出和工作区文件。",
15
+ "commands": [
16
+ "microi.showSettings",
17
+ "microi.login",
18
+ "microi.logout",
19
+ "microi.switchOsClient",
20
+ "microi.refreshTree",
21
+ "microi.openLocalFolder",
22
+ "microi.copyEngineKey",
23
+ "microi.searchEngine"
24
+ ],
25
+ "desktopSurface": "服务器连接 / 官方账号 / 项目选择"
26
+ },
27
+ {
28
+ "id": "remote-execution-debug-and-performance",
29
+ "adapter": "skill-and-mcp",
30
+ "workflow": "v8-debugging/performance-testing Skills + microi_codex 原工具",
31
+ "surfaceDifference": "VS Code DAP/Webview 改为结构化执行、诊断、补丁、复测及报告;远端执行能力和安全门保持一致。",
32
+ "commands": [
33
+ "microi.showPerformanceTest",
34
+ "microi.remoteExecute",
35
+ "microi.remoteDebug",
36
+ "microi.stopDebugSession"
37
+ ],
38
+ "desktopSurface": "吾码工具与 AI 开发;原 VS Code DAP 面板继续保留"
39
+ },
40
+ {
41
+ "id": "source-sync-and-diff",
42
+ "adapter": "bundled-cli-and-codex-native",
43
+ "workflow": "microi pull/push/sync status + Codex 文件读取、搜索和 diff",
44
+ "surfaceDifference": "VS Code 编辑器命令改为 Codex 文件链接、补丁和终端输出。",
45
+ "commands": [
46
+ "microi.push",
47
+ "microi.openFile",
48
+ "microi.diffWithRemote",
49
+ "microi.showSyncStatus",
50
+ "microi.checkSyncConflicts",
51
+ "microi.syncResults.open",
52
+ "microi.syncResults.refresh",
53
+ "microi.syncResults.clear",
54
+ "microi.pullServer",
55
+ "microi.syncServer",
56
+ "microi.pullTableFields",
57
+ "microi.pullModuleTree",
58
+ "microi.pullDbSchema"
59
+ ],
60
+ "desktopSurface": "项目资源:编辑、拉取、推送、同步差异;AI 审阅"
61
+ },
62
+ {
63
+ "id": "resource-authoring",
64
+ "adapter": "mcp",
65
+ "workflow": "microi_codex 中的 create/save/get/list 原工具及对应领域 Skill",
66
+ "surfaceDifference": "QuickPick/InputBox 改为对话确认;仍复用原工具 schema、确认口令、审计和回读。",
67
+ "commands": [
68
+ "microi.createEngine",
69
+ "microi.createFormEvent",
70
+ "microi.createWorkflowNodeEvent",
71
+ "microi.createMenuButtonEvent"
72
+ ],
73
+ "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
74
+ },
75
+ {
76
+ "id": "micro-app",
77
+ "adapter": "skill-mcp-and-shell",
78
+ "workflow": "microi-microservice Skill + scaffold/sync/publish MCP 原工具 + 受控 npm build",
79
+ "surfaceDifference": "VS Code 进度条与选择框改为阶段化对话和构建日志。",
80
+ "commands": [
81
+ "microi.microApp.create",
82
+ "microi.microApp.pull",
83
+ "microi.microApp.build",
84
+ "microi.microApp.push",
85
+ "microi.microApp.buildAndPush",
86
+ "microi.microApp.pushRuntimeOnly",
87
+ "microi.microApp.buildAndPushRuntimeOnly",
88
+ "microi.microApp.buildAndPublishStore",
89
+ "microi.microApp.syncSource",
90
+ "microi.microApp.showSyncStatus"
91
+ ],
92
+ "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
93
+ },
94
+ {
95
+ "id": "ai-bootstrap",
96
+ "adapter": "bundled-cli-and-skills",
97
+ "workflow": "microi ai init / mcp init 与同源 Skills、typings、AGENTS 注入",
98
+ "surfaceDifference": "初始化结果以结构化文本返回。",
99
+ "commands": [
100
+ "microi.initializeAiConfig",
101
+ "microi.configureMcp"
102
+ ],
103
+ "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
104
+ },
105
+ {
106
+ "id": "mcp-lifecycle",
107
+ "adapter": "codex-plugin-native-and-router",
108
+ "workflow": "Codex Plugin 启停策略、microi_codex profiles、CLI doctor/mcp init",
109
+ "surfaceDifference": "进程启停和输出由 Codex 插件宿主托管,不复制 VS Code MCP 面板。",
110
+ "commands": [
111
+ "microi.mcp.refreshStatus",
112
+ "microi.mcp.diagnose",
113
+ "microi.mcp.startAll",
114
+ "microi.mcp.startServer",
115
+ "microi.mcp.stopServer",
116
+ "microi.mcp.restartServer",
117
+ "microi.mcp.showOutput",
118
+ "microi.mcp.showConfig",
119
+ "microi.mcp.openServerOptions",
120
+ "microi.mcp.showInstalled",
121
+ "microi.mcp.removeServerConfig"
122
+ ],
123
+ "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
124
+ },
125
+ {
126
+ "id": "playwright",
127
+ "adapter": "skill-browser-and-shell",
128
+ "workflow": "playwright-e2e Skill + Codex 浏览器/终端 + 原测试上下文接口",
129
+ "surfaceDifference": "VS Code 命令改为 Codex 浏览器验收与可点击报告文件。",
130
+ "commands": [
131
+ "microi.initPlaywright",
132
+ "microi.runPlaywright",
133
+ "microi.openPlaywrightReport"
134
+ ],
135
+ "desktopSurface": "AI 开发 + 同源 MCP / Skills / Harness 工作区工具"
136
+ }
137
+ ]
138
+ }
package/assets/logo.svg CHANGED
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
2
- <path d="M407.5,118.7c0,27.1-22.4,49.1-50.1,49.1s-50.1-22-50.1-49.1s22.4-49.1,50.1-49.1S407.5,91.6,407.5,118.7z"/>
3
- <path d="M403.9,193.1c-4.9-4.4-11.4-6.9-18.2-6.9h-52.5c-14.6,0-26.4,11.3-26.5,25.1l-0.4,138.1l-70.5-63.8c-6.5-5.9-15.6-8.2-24.3-6.2l-92.5,20.8c-9,2-16.3,8.5-19.1,16.8l-31,92.6l-58.7-68.5c-1.9-3.1-4.5-5.8-7.8-7.7c-0.8-0.5-1.6-0.9-2.4-1.2v102c6.4,46.4,33.2,72.3,80.4,77.9h74.3l35.1-133.6l95.9,85.1c6,5.4,14.3,7.7,22.4,6.4l83.8,0.4l1.5-0.3c12.3-2.8,15.3-17.8,16.6-24.2c1.4-7.2,2.2-15.3,2.2-19.2l0.1-215.5C412.2,204.4,409.3,197.9,403.9,193.1z"/>
4
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
2
+ <path d="M407.5,118.7c0,27.1-22.4,49.1-50.1,49.1s-50.1-22-50.1-49.1s22.4-49.1,50.1-49.1S407.5,91.6,407.5,118.7z"/>
3
+ <path d="M403.9,193.1c-4.9-4.4-11.4-6.9-18.2-6.9h-52.5c-14.6,0-26.4,11.3-26.5,25.1l-0.4,138.1l-70.5-63.8c-6.5-5.9-15.6-8.2-24.3-6.2l-92.5,20.8c-9,2-16.3,8.5-19.1,16.8l-31,92.6l-58.7-68.5c-1.9-3.1-4.5-5.8-7.8-7.7c-0.8-0.5-1.6-0.9-2.4-1.2v102c6.4,46.4,33.2,72.3,80.4,77.9h74.3l35.1-133.6l95.9,85.1c6,5.4,14.3,7.7,22.4,6.4l83.8,0.4l1.5-0.3c12.3-2.8,15.3-17.8,16.6-24.2c1.4-7.2,2.2-15.3,2.2-19.2l0.1-215.5C412.2,204.4,409.3,197.9,403.9,193.1z"/>
4
+ </svg>
package/cordis.patch.yml CHANGED
@@ -7,7 +7,7 @@
7
7
  serverName: microi
8
8
  transport: stdio
9
9
  command: !!js process.execPath
10
- args: ["-e","/*\n * DeepSeek Harness 通过 profile bundle 加载此 `node -e` 引导脚本。\n * DSH 不保证 MCP 子进程 cwd 位于 npm 包根,因此按 DSH_HOME/profile 定位\n * 当前版本的 @microi.net/cli,再复用 Codex 同源适配器与多连接路由器。\n */\nconst fs = require('node:fs');\nconst os = require('node:os');\nconst path = require('node:path');\nconst packageName = '@microi.net/cli';\nconst expectedVersion = '5.8.5';\n\nfunction readJson(filePath) {\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\n catch { return undefined; }\n}\n\nfunction expandHome(value) {\n if (value === '~') return os.homedir();\n if (value.startsWith('~/') || value.startsWith('~\\\\')) return path.join(os.homedir(), value.slice(2));\n return value;\n}\n\nfunction validRoot(value) {\n const root = path.resolve(value);\n const pkg = readJson(path.join(root, 'package.json'));\n const patch = path.join(root, 'cordis.patch.yml');\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\n if (pkg?.name !== packageName || pkg?.version !== expectedVersion) return undefined;\n if (pkg?.dsh?.bundle?.patch !== './cordis.patch.yml') return undefined;\n if (![patch, adapter, router].every(filePath => fs.existsSync(filePath))) return undefined;\n return { root: fs.realpathSync(root), adapter, router, modifiedAt: fs.statSync(router).mtimeMs };\n}\n\nfunction findPlugin() {\n const explicit = String(process.env.MICROI_DSH_PLUGIN_ROOT || '').trim();\n if (explicit) {\n const plugin = validRoot(explicit);\n if (!plugin) throw new Error(`MICROI_DSH_PLUGIN_ROOT 不是版本 ${expectedVersion} 的有效 Microi DSH bundle:${explicit}`);\n return plugin;\n }\n const configuredHome = String(process.env.DSH_HOME || '').trim();\n const dshHome = path.resolve(expandHome(configuredHome || path.join(os.homedir(), '.dsh')));\n const profilesRoot = path.join(dshHome, 'profiles');\n const candidates = [];\n if (fs.existsSync(profilesRoot)) {\n for (const entry of fs.readdirSync(profilesRoot, { withFileTypes: true })) {\n if (!entry.isDirectory() || entry.name === 'node_modules') continue;\n const root = path.join(profilesRoot, entry.name, 'node_modules', '@microi.net', 'cli');\n const plugin = validRoot(root);\n if (plugin) candidates.push(plugin);\n }\n }\n candidates.sort((left, right) => right.modifiedAt - left.modifiedAt);\n if (!candidates[0]) throw new Error(`未在 ${profilesRoot} 找到版本 ${expectedVersion} 的 ${packageName}`);\n return candidates[0];\n}\n\ntry {\n const plugin = findPlugin();\n process.env.MICROI_DSH_PLUGIN_ROOT = plugin.root;\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\n process.env.MICROI_TOOL_SOURCE = 'dsh';\n process.env.MICROI_TOOL_VERSION = expectedVersion;\n process.env.MICROI_WORKSPACE_ROOT = process.env.MICROI_WORKSPACE_ROOT || process.cwd();\n process.argv[2] = plugin.router;\n require(plugin.adapter);\n} catch (error) {\n console.error(`[microi-dsh-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\n process.exit(1);\n}\n"]
10
+ args: ["-e","/*\r\n * DeepSeek Harness 通过 profile bundle 加载此 `node -e` 引导脚本。\r\n * DSH 不保证 MCP 子进程 cwd 位于 npm 包根,因此按 DSH_HOME/profile 定位\r\n * 当前版本的 @microi.net/cli,再复用 Codex 同源适配器与多连接路由器。\r\n */\r\nconst fs = require('node:fs');\r\nconst os = require('node:os');\r\nconst path = require('node:path');\r\nconst packageName = '@microi.net/cli';\r\nconst expectedVersion = '5.8.6';\r\n\r\nfunction readJson(filePath) {\r\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\r\n catch { return undefined; }\r\n}\r\n\r\nfunction expandHome(value) {\r\n if (value === '~') return os.homedir();\r\n if (value.startsWith('~/') || value.startsWith('~\\\\')) return path.join(os.homedir(), value.slice(2));\r\n return value;\r\n}\r\n\r\nfunction validRoot(value) {\r\n const root = path.resolve(value);\r\n const pkg = readJson(path.join(root, 'package.json'));\r\n const patch = path.join(root, 'cordis.patch.yml');\r\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\r\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\r\n if (pkg?.name !== packageName || pkg?.version !== expectedVersion) return undefined;\r\n if (pkg?.dsh?.bundle?.patch !== './cordis.patch.yml') return undefined;\r\n if (![patch, adapter, router].every(filePath => fs.existsSync(filePath))) return undefined;\r\n return { root: fs.realpathSync(root), adapter, router, modifiedAt: fs.statSync(router).mtimeMs };\r\n}\r\n\r\nfunction findPlugin() {\r\n const explicit = String(process.env.MICROI_DSH_PLUGIN_ROOT || '').trim();\r\n if (explicit) {\r\n const plugin = validRoot(explicit);\r\n if (!plugin) throw new Error(`MICROI_DSH_PLUGIN_ROOT 不是版本 ${expectedVersion} 的有效 Microi DSH bundle:${explicit}`);\r\n return plugin;\r\n }\r\n const configuredHome = String(process.env.DSH_HOME || '').trim();\r\n const dshHome = path.resolve(expandHome(configuredHome || path.join(os.homedir(), '.dsh')));\r\n const profilesRoot = path.join(dshHome, 'profiles');\r\n const candidates = [];\r\n if (fs.existsSync(profilesRoot)) {\r\n for (const entry of fs.readdirSync(profilesRoot, { withFileTypes: true })) {\r\n if (!entry.isDirectory() || entry.name === 'node_modules') continue;\r\n const root = path.join(profilesRoot, entry.name, 'node_modules', '@microi.net', 'cli');\r\n const plugin = validRoot(root);\r\n if (plugin) candidates.push(plugin);\r\n }\r\n }\r\n candidates.sort((left, right) => right.modifiedAt - left.modifiedAt);\r\n if (!candidates[0]) throw new Error(`未在 ${profilesRoot} 找到版本 ${expectedVersion} 的 ${packageName}`);\r\n return candidates[0];\r\n}\r\n\r\ntry {\r\n const plugin = findPlugin();\r\n process.env.MICROI_DSH_PLUGIN_ROOT = plugin.root;\r\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\r\n process.env.MICROI_TOOL_SOURCE = 'dsh';\r\n process.env.MICROI_TOOL_VERSION = expectedVersion;\r\n process.env.MICROI_WORKSPACE_ROOT = process.env.MICROI_WORKSPACE_ROOT || process.cwd();\r\n process.argv[2] = plugin.router;\r\n require(plugin.adapter);\r\n} catch (error) {\r\n console.error(`[microi-dsh-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\r\n process.exit(1);\r\n}\r\n"]
11
11
  env:
12
12
  MICROI_TOOL_SOURCE: dsh
13
13
  cwd: !!js process.cwd()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microi.net/cli",
3
- "version": "5.8.5",
3
+ "version": "5.8.6",
4
4
  "description": "Microi吾码 AI 开发 CLI 与多宿主 Plugin:服务器连接、Skills、MCP、V8 同步和低代码交付",
5
5
  "license": "MIT",
6
6
  "homepage": "https://microi.net/doc/v8-engine/vs-code-plugin.html",