@tuya-sat/microapp-kit 0.0.0-stage → 0.1.26-alpha.1

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 (821) hide show
  1. package/AUDIT.md +43 -0
  2. package/CHANGELOG.md +53 -0
  3. package/MAINTAINING.md +178 -0
  4. package/README.md +53 -2
  5. package/START-HERE.md +44 -0
  6. package/bootstrap/build-install-page.mjs +46 -0
  7. package/bootstrap/install-node.ps1 +80 -0
  8. package/bootstrap/install-node.sh +94 -0
  9. package/bootstrap/install.md.in +29 -0
  10. package/bundle.json +852 -0
  11. package/cli.mjs +3 -0
  12. package/package.json +68 -4
  13. package/resources/contracts/project-permissions.json +596 -0
  14. package/resources/contracts/standard-api.catalog.json +5 -0
  15. package/resources/examples/group-display.mjs +23 -0
  16. package/resources/preview/README.md +104 -0
  17. package/resources/preview/agent-open.mjs +1221 -0
  18. package/resources/preview/application-icon.mjs +27 -0
  19. package/resources/preview/authorization-panel.js +243 -0
  20. package/resources/preview/authorization-routes.mjs +634 -0
  21. package/resources/preview/authorization.mjs +353 -0
  22. package/resources/preview/backend-entry.mjs +22 -0
  23. package/resources/preview/backend-process.mjs +26 -0
  24. package/resources/preview/bridge.js +50 -0
  25. package/resources/preview/control.mjs +48 -0
  26. package/resources/preview/device-fixtures.mjs +38 -0
  27. package/resources/preview/fixtures/context.json +10 -0
  28. package/resources/preview/fixtures/device-catalog.json +363 -0
  29. package/resources/preview/host-contract.mjs +104 -0
  30. package/resources/preview/host.js +841 -0
  31. package/resources/preview/local-dev-provider.mjs +27 -0
  32. package/resources/preview/menu-icons.json +82 -0
  33. package/resources/preview/mock-store.mjs +1147 -0
  34. package/resources/preview/run.mjs +131 -0
  35. package/resources/preview/server.mjs +476 -0
  36. package/resources/preview/theme-tokens.mjs +49 -0
  37. package/resources/preview/themes.json +1036 -0
  38. package/resources/resource-manifest.json +210 -0
  39. package/resources/scripts/backend-build-context.mjs +101 -0
  40. package/resources/scripts/backend-runtime.mjs +68 -0
  41. package/resources/scripts/build-backend-image.sh +23 -0
  42. package/resources/scripts/build-safety.mjs +18 -0
  43. package/resources/scripts/build.mjs +138 -0
  44. package/resources/scripts/command-invocation.mjs +10 -0
  45. package/resources/scripts/diagnostics.mjs +34 -0
  46. package/resources/scripts/init-project.mjs +62 -0
  47. package/resources/scripts/package-release.mjs +80 -0
  48. package/resources/scripts/prepare-locales.mjs +77 -0
  49. package/resources/scripts/project-identity.mjs +21 -0
  50. package/resources/scripts/registry-client.mjs +189 -0
  51. package/resources/scripts/resource-files.mjs +22 -0
  52. package/resources/scripts/scaffold.mjs +31 -0
  53. package/resources/scripts/test-backend-image.mjs +162 -0
  54. package/resources/scripts/update-preview-themes.mjs +26 -0
  55. package/resources/scripts/update-resource-manifest.mjs +9 -0
  56. package/resources/scripts/validate-resources.mjs +9 -0
  57. package/resources/template/_gitignore +5 -0
  58. package/resources/template/backend/.dockerignore +7 -0
  59. package/resources/template/backend/.node-version +1 -0
  60. package/resources/template/backend/Dockerfile +62 -0
  61. package/resources/template/backend/deploy/README.md +105 -0
  62. package/resources/template/backend/deploy/data/README.md +3 -0
  63. package/resources/template/backend/deploy/manifest.json +4 -0
  64. package/resources/template/backend/deploy/tasks/README.md +3 -0
  65. package/resources/template/backend/migrations/README.md +5 -0
  66. package/resources/template/backend/next-env.d.ts +6 -0
  67. package/resources/template/backend/next.config.ts +19 -0
  68. package/resources/template/backend/operations.json +4 -0
  69. package/resources/template/backend/package.json +35 -0
  70. package/resources/template/backend/pnpm-lock.yaml +775 -0
  71. package/resources/template/backend/preview-contract.json +4 -0
  72. package/resources/template/backend/public/.keep +0 -0
  73. package/resources/template/backend/scripts/check-runtime.mjs +12 -0
  74. package/resources/template/backend/scripts/dev-deploy-prepare.mjs +362 -0
  75. package/resources/template/backend/scripts/dev-diagnose-database.mjs +199 -0
  76. package/resources/template/backend/scripts/dev-start-backend.sh +30 -0
  77. package/resources/template/backend/src/app/[[...path]]/route.ts +11 -0
  78. package/resources/template/backend/src/app/api/[...path]/route.ts +11 -0
  79. package/resources/template/backend/src/app/api/health/route.ts +16 -0
  80. package/resources/template/backend/src/app/api/preview/context/route.ts +36 -0
  81. package/resources/template/backend/src/instrumentation.ts +10 -0
  82. package/resources/template/backend/src/lib/api-response.mjs +119 -0
  83. package/resources/template/backend/src/lib/business-logger.mjs +29 -0
  84. package/resources/template/backend/src/lib/database-errors.mjs +15 -0
  85. package/resources/template/backend/src/lib/dev-authorization.mjs +84 -0
  86. package/resources/template/backend/src/lib/dev-context.mjs +58 -0
  87. package/resources/template/backend/src/lib/gateway-ingress.mjs +79 -0
  88. package/resources/template/backend/src/lib/gateway-nonce-store.mjs +31 -0
  89. package/resources/template/backend/src/lib/gateway-verification.mjs +197 -0
  90. package/resources/template/backend/src/lib/request-observability.mjs +93 -0
  91. package/resources/template/backend/src/lib/standard-api.ts +28 -0
  92. package/resources/template/backend/src/microapp-identity.json +1 -0
  93. package/resources/template/backend/src/proxy.ts +40 -0
  94. package/resources/template/backend/tests/api-response.test.mjs +77 -0
  95. package/resources/template/backend/tests/database-diagnostics.test.mjs +198 -0
  96. package/resources/template/backend/tests/deployment-connection.test.mjs +100 -0
  97. package/resources/template/backend/tests/deployment-postgres.test.mjs +109 -0
  98. package/resources/template/backend/tests/deployment.test.mjs +196 -0
  99. package/resources/template/backend/tests/dev-authorization.test.mjs +88 -0
  100. package/resources/template/backend/tests/dev-context.test.mjs +35 -0
  101. package/resources/template/backend/tests/gateway-verification.test.mjs +287 -0
  102. package/resources/template/backend/tests/request-observability.test.mjs +125 -0
  103. package/resources/template/backend/tests/routes.test.mjs +253 -0
  104. package/resources/template/backend/tests/startup.test.mjs +147 -0
  105. package/resources/template/backend/tsconfig.json +34 -0
  106. package/resources/template/micro-app/.editorconfig +15 -0
  107. package/resources/template/micro-app/.eslintrc +15 -0
  108. package/resources/template/micro-app/.prettierignore +4 -0
  109. package/resources/template/micro-app/.prettierrc +6 -0
  110. package/resources/template/micro-app/_gitignore +6 -0
  111. package/resources/template/micro-app/_locales/en.json +5 -0
  112. package/resources/template/micro-app/_locales/zh-CN.json +5 -0
  113. package/resources/template/micro-app/antd.less.overwrite.js +4 -0
  114. package/resources/template/micro-app/babel.config.json +3 -0
  115. package/resources/template/micro-app/manifest.json +46 -0
  116. package/resources/template/micro-app/micro.config.js +4 -0
  117. package/resources/template/micro-app/mock/index.json +4 -0
  118. package/resources/template/micro-app/package.json +61 -0
  119. package/resources/template/micro-app/public/favicon.ico +0 -0
  120. package/resources/template/micro-app/public/index.ejs +13 -0
  121. package/resources/template/micro-app/src/App.less +0 -0
  122. package/resources/template/micro-app/src/App.tsx +99 -0
  123. package/resources/template/micro-app/src/api/api-request.mjs +85 -0
  124. package/resources/template/micro-app/src/api/custom-api-headers.mjs +55 -0
  125. package/resources/template/micro-app/src/api/custom-api.ts +10 -0
  126. package/resources/template/micro-app/src/api/errors.mjs +108 -0
  127. package/resources/template/micro-app/src/api/index.ts +34 -0
  128. package/resources/template/micro-app/src/api/presentation.mjs +33 -0
  129. package/resources/template/micro-app/src/api/req.ts +9 -0
  130. package/resources/template/micro-app/src/api/request-url.mjs +20 -0
  131. package/resources/template/micro-app/src/api/res.ts +9 -0
  132. package/resources/template/micro-app/src/api/submission-errors.mjs +84 -0
  133. package/resources/template/micro-app/src/components/CapsuleFilters/index.module.less +121 -0
  134. package/resources/template/micro-app/src/components/CapsuleFilters/index.tsx +100 -0
  135. package/resources/template/micro-app/src/components/MicroAppUI/DataTable.tsx +48 -0
  136. package/resources/template/micro-app/src/components/MicroAppUI/EllipsisText.tsx +25 -0
  137. package/resources/template/micro-app/src/components/MicroAppUI/Layouts.tsx +54 -0
  138. package/resources/template/micro-app/src/components/MicroAppUI/ModalForm.tsx +230 -0
  139. package/resources/template/micro-app/src/components/MicroAppUI/StatusBadge.tsx +19 -0
  140. package/resources/template/micro-app/src/components/MicroAppUI/index.module.less +99 -0
  141. package/resources/template/micro-app/src/components/MicroAppUI/index.ts +13 -0
  142. package/resources/template/micro-app/src/index.css +16 -0
  143. package/resources/template/micro-app/src/index.tsx +66 -0
  144. package/resources/template/micro-app/src/interfaces.ts +545 -0
  145. package/resources/template/micro-app/src/lang/en.ts +1 -0
  146. package/resources/template/micro-app/src/lang/index.ts +31 -0
  147. package/resources/template/micro-app/src/lang/zh.ts +1 -0
  148. package/resources/template/micro-app/src/language-codes.mjs +32 -0
  149. package/resources/template/micro-app/src/language-policy.ts +6 -0
  150. package/resources/template/micro-app/src/microapp-identity.json +1 -0
  151. package/resources/template/micro-app/src/pages/index.module.less +3 -0
  152. package/resources/template/micro-app/src/pages/index.tsx +6 -0
  153. package/resources/template/micro-app/src/public-path.js +4 -0
  154. package/resources/template/micro-app/src/utils/antdLang.ts +244 -0
  155. package/resources/template/micro-app/tests/template.test.cjs +15 -0
  156. package/resources/template/micro-app/tsconfig.extend.json +8 -0
  157. package/resources/template/micro-app/tsconfig.json +24 -0
  158. package/resources/template/micro-app/typings.d.ts +19 -0
  159. package/resources/template/micro-app/yarn.lock +7491 -0
  160. package/resources/tests/agent-open-catalog.test.mjs +43 -0
  161. package/resources/tests/agent-open-preview.test.mjs +878 -0
  162. package/resources/tests/api-request.test.mjs +121 -0
  163. package/resources/tests/api-response.test.mjs +2 -0
  164. package/resources/tests/application-icon-build.test.mjs +34 -0
  165. package/resources/tests/authorization-proxy.test.mjs +202 -0
  166. package/resources/tests/authorization.test.mjs +462 -0
  167. package/resources/tests/backend-context.test.mjs +33 -0
  168. package/resources/tests/backend-preview.test.mjs +67 -0
  169. package/resources/tests/backend-request-logging.test.mjs +2 -0
  170. package/resources/tests/backend-runtime.test.mjs +96 -0
  171. package/resources/tests/browser-authorization-smoke.mjs +111 -0
  172. package/resources/tests/browser-design-smoke.mjs +107 -0
  173. package/resources/tests/browser-language-compat-smoke.mjs +48 -0
  174. package/resources/tests/browser-preview-smoke.mjs +148 -0
  175. package/resources/tests/browser-standard-ui-smoke.mjs +331 -0
  176. package/resources/tests/build-safety.test.mjs +69 -0
  177. package/resources/tests/business-build.test.mjs +86 -0
  178. package/resources/tests/command-invocation.test.mjs +35 -0
  179. package/resources/tests/custom-api-headers.test.mjs +96 -0
  180. package/resources/tests/custom-route.test.mjs +63 -0
  181. package/resources/tests/custom-script-policy.test.mjs +34 -0
  182. package/resources/tests/database-errors.test.mjs +81 -0
  183. package/resources/tests/deployment-package.test.mjs +45 -0
  184. package/resources/tests/dockerfile-logging.test.mjs +31 -0
  185. package/resources/tests/fixtures/capsule-page.tsx +46 -0
  186. package/resources/tests/fixtures/standard-ui-page.tsx +222 -0
  187. package/resources/tests/group-display.test.mjs +28 -0
  188. package/resources/tests/host-contract.test.mjs +84 -0
  189. package/resources/tests/image-test.test.mjs +110 -0
  190. package/resources/tests/initialization.test.mjs +98 -0
  191. package/resources/tests/language-selection.test.mjs +188 -0
  192. package/resources/tests/locale-keys.test.mjs +88 -0
  193. package/resources/tests/preview-control.test.mjs +56 -0
  194. package/resources/tests/preview-icon.test.mjs +117 -0
  195. package/resources/tests/preview-state.test.mjs +183 -0
  196. package/resources/tests/preview-theme.test.mjs +17 -0
  197. package/resources/tests/real-preview-smoke.mjs +34 -0
  198. package/resources/tests/registry-client.test.mjs +272 -0
  199. package/resources/tests/request-errors.test.mjs +51 -0
  200. package/resources/tests/request-method-contract.test.mjs +65 -0
  201. package/resources/tests/resources.test.mjs +31 -0
  202. package/resources/tests/saas-presentation.test.mjs +41 -0
  203. package/resources/tests/sandbox-scripts.test.mjs +144 -0
  204. package/resources/tests/space-permission-guidance.test.mjs +78 -0
  205. package/resources/tests/standard-api-preview.test.mjs +55 -0
  206. package/resources/tests/submission-errors.test.mjs +118 -0
  207. package/resources/tests/version-description-package.test.mjs +60 -0
  208. package/resources/ui/component-sources.json +36 -0
  209. package/runtime/assemble.mjs +66 -0
  210. package/runtime/auth/hidden-input.mjs +45 -0
  211. package/runtime/auth/macos-credentials.js +41 -0
  212. package/runtime/auth/manager.mjs +145 -0
  213. package/runtime/auth/session.mjs +153 -0
  214. package/runtime/auth/state.mjs +107 -0
  215. package/runtime/auth/store.mjs +130 -0
  216. package/runtime/auth/windows-credentials.ps1 +73 -0
  217. package/runtime/auth/wizard.mjs +224 -0
  218. package/runtime/cli.mjs +474 -0
  219. package/runtime/dev-database.mjs +155 -0
  220. package/runtime/dev-provider.mjs +41 -0
  221. package/runtime/errors.mjs +205 -0
  222. package/runtime/install-receipt.mjs +68 -0
  223. package/runtime/installation.mjs +92 -0
  224. package/runtime/integrity.mjs +121 -0
  225. package/runtime/launcher.mjs +104 -0
  226. package/runtime/pack-npm.mjs +76 -0
  227. package/runtime/package-cache.mjs +52 -0
  228. package/runtime/package-identity.mjs +22 -0
  229. package/runtime/preview.mjs +157 -0
  230. package/runtime/project-identity.mjs +57 -0
  231. package/runtime/publication.mjs +372 -0
  232. package/runtime/release-content.mjs +159 -0
  233. package/runtime/release-index.mjs +91 -0
  234. package/runtime/setup.mjs +223 -0
  235. package/runtime/tests/agent-entry.test.mjs +79 -0
  236. package/runtime/tests/auth-wizard.test.mjs +241 -0
  237. package/runtime/tests/auth.test.mjs +367 -0
  238. package/runtime/tests/consistency-workflow.test.mjs +84 -0
  239. package/runtime/tests/dev-provider.test.mjs +27 -0
  240. package/runtime/tests/diagnostics.test.mjs +66 -0
  241. package/runtime/tests/helpers/tar-fixture.mjs +25 -0
  242. package/runtime/tests/install-page.test.mjs +83 -0
  243. package/runtime/tests/install.test.mjs +432 -0
  244. package/runtime/tests/node-bootstrap.test.mjs +104 -0
  245. package/runtime/tests/npm-distribution.test.mjs +130 -0
  246. package/runtime/tests/npm-release-check.test.mjs +48 -0
  247. package/runtime/tests/package-cache.test.mjs +108 -0
  248. package/runtime/tests/package-migration.test.mjs +208 -0
  249. package/runtime/tests/preview-hosts.test.mjs +66 -0
  250. package/runtime/tests/preview.test.mjs +304 -0
  251. package/runtime/tests/project-identity.test.mjs +67 -0
  252. package/runtime/tests/publication.test.mjs +436 -0
  253. package/runtime/tests/release-recovery.test.mjs +417 -0
  254. package/runtime/tests/repository-source.test.mjs +69 -0
  255. package/runtime/tests/skill-set-update.test.mjs +169 -0
  256. package/runtime/tests/standalone.test.mjs +46 -0
  257. package/runtime/tests/update-check.test.mjs +165 -0
  258. package/runtime/tests/update.test.mjs +292 -0
  259. package/runtime/tests/workspace.test.mjs +156 -0
  260. package/runtime/update-check.mjs +160 -0
  261. package/runtime/update-state.mjs +83 -0
  262. package/runtime/update.mjs +292 -0
  263. package/runtime/verify-npm-release.mjs +43 -0
  264. package/runtime/workspace-migration.mjs +109 -0
  265. package/runtime/workspace.mjs +101 -0
  266. package/schemas/toolchain.schema.json +13 -0
  267. package/setup.mjs +3 -0
  268. package/skills/micro-app-backend-development/SKILL.md +64 -0
  269. package/skills/micro-app-backend-development/references/backend-security-workflow.md +77 -0
  270. package/skills/micro-app-backend-development/references/business-build-helpers.md +11 -0
  271. package/skills/micro-app-backend-development/references/business-logging.md +56 -0
  272. package/skills/micro-app-backend-development/references/database-constraints.md +81 -0
  273. package/skills/micro-app-backend-development/references/database-write-errors.md +29 -0
  274. package/skills/micro-app-backend-development/references/deployment-bundle.md +65 -0
  275. package/skills/micro-app-backend-development/references/dev-preview-context.md +23 -0
  276. package/skills/micro-app-backend-development/references/gateway-verification.md +43 -0
  277. package/skills/micro-app-backend-development/references/implementation.md +49 -0
  278. package/skills/micro-app-backend-development/references/local-database-preview.md +100 -0
  279. package/skills/micro-app-backend-development/references/production-authorization-readiness.md +60 -0
  280. package/skills/micro-app-backend-development/references/project-data-permissions.md +43 -0
  281. package/skills/micro-app-backend-development/references/runtime-resources-and-deployment.md +76 -0
  282. package/skills/micro-app-backend-development/scripts/microapp-kit.mjs +117 -0
  283. package/skills/micro-app-backend-development/tests/behavior-scenarios.md +62 -0
  284. package/skills/micro-app-cloud-integration/SKILL.md +92 -0
  285. package/skills/micro-app-cloud-integration/references/api-catalog.json +1315 -0
  286. package/skills/micro-app-cloud-integration/references/api-catalog.md +59 -0
  287. package/skills/micro-app-cloud-integration/references/api-device-control.md +67 -0
  288. package/skills/micro-app-cloud-integration/references/api-device.md +179 -0
  289. package/skills/micro-app-cloud-integration/references/api-group-ota.md +145 -0
  290. package/skills/micro-app-cloud-integration/references/api-linkage.md +3 -0
  291. package/skills/micro-app-cloud-integration/references/api-models.md +584 -0
  292. package/skills/micro-app-cloud-integration/references/api-project.md +121 -0
  293. package/skills/micro-app-cloud-integration/references/api-space-home.md +244 -0
  294. package/skills/micro-app-cloud-integration/references/backend-authorization.md +95 -0
  295. package/skills/micro-app-cloud-integration/references/calling-conventions.md +118 -0
  296. package/skills/micro-app-cloud-integration/references/preview-agent-open.md +46 -0
  297. package/skills/micro-app-cloud-integration/references/server-to-server-integration.md +13 -0
  298. package/skills/micro-app-cloud-integration/scripts/microapp-kit.mjs +117 -0
  299. package/skills/micro-app-cloud-integration/tests/behavior-scenarios.md +20 -0
  300. package/skills/micro-app-design/SKILL.md +99 -0
  301. package/skills/micro-app-design/agents/openai.yaml +6 -0
  302. package/skills/micro-app-design/assets/tuya-design-system/assets/README.md +22 -0
  303. package/skills/micro-app-design/assets/tuya-design-system/assets/components/TuyaCapsuleSearch.html +67 -0
  304. package/skills/micro-app-design/assets/tuya-design-system/assets/components/TuyaCardGrid.html +71 -0
  305. package/skills/micro-app-design/assets/tuya-design-system/assets/components/TuyaIcon.html +5 -0
  306. package/skills/micro-app-design/assets/tuya-design-system/assets/components/TuyaPageTitle.html +29 -0
  307. package/skills/micro-app-design/assets/tuya-design-system/assets/components/TuyaTopNavigation.html +55 -0
  308. package/skills/micro-app-design/assets/tuya-design-system/assets/components.schema.md +154 -0
  309. package/skills/micro-app-design/assets/tuya-design-system/assets/examples/dashboard.html +588 -0
  310. package/skills/micro-app-design/assets/tuya-design-system/assets/examples/dashboard.md +99 -0
  311. package/skills/micro-app-design/assets/tuya-design-system/assets/examples/table-page.html +477 -0
  312. package/skills/micro-app-design/assets/tuya-design-system/assets/examples/table-page.md +77 -0
  313. package/skills/micro-app-design/assets/tuya-design-system/assets/templates/base.html +878 -0
  314. package/skills/micro-app-design/assets/tuya-design-system/latest/accessibility/accessibility.md +39 -0
  315. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/TuyaCapsuleSearch.html +67 -0
  316. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/icons/capsule-filter/arrow-down.svg +3 -0
  317. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/icons/capsule-filter/calendar.svg +5 -0
  318. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/icons/capsule-filter/check.svg +3 -0
  319. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/icons/capsule-filter/checkbox-check.svg +3 -0
  320. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/icons/capsule-filter/clear.svg +4 -0
  321. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/icons/capsule-filter/search.svg +4 -0
  322. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/examples/preview.html +3705 -0
  323. package/skills/micro-app-design/assets/tuya-design-system/latest/components/capsule-search/spec.md +78 -0
  324. package/skills/micro-app-design/assets/tuya-design-system/latest/components/card-grid/examples/TuyaCardGrid.html +71 -0
  325. package/skills/micro-app-design/assets/tuya-design-system/latest/components/card-grid/examples/assets/placeholder.svg +4 -0
  326. package/skills/micro-app-design/assets/tuya-design-system/latest/components/card-grid/examples/preview.html +711 -0
  327. package/skills/micro-app-design/assets/tuya-design-system/latest/components/card-grid/spec.md +93 -0
  328. package/skills/micro-app-design/assets/tuya-design-system/latest/components/cascader/spec.md +75 -0
  329. package/skills/micro-app-design/assets/tuya-design-system/latest/components/checkbox/spec.md +72 -0
  330. package/skills/micro-app-design/assets/tuya-design-system/latest/components/date-picker/spec.md +81 -0
  331. package/skills/micro-app-design/assets/tuya-design-system/latest/components/dropdown/spec.md +99 -0
  332. package/skills/micro-app-design/assets/tuya-design-system/latest/components/icon/examples/TuyaIcon.html +5 -0
  333. package/skills/micro-app-design/assets/tuya-design-system/latest/components/icon/spec.md +55 -0
  334. package/skills/micro-app-design/assets/tuya-design-system/latest/components/input/spec.md +84 -0
  335. package/skills/micro-app-design/assets/tuya-design-system/latest/components/modal/spec.md +178 -0
  336. package/skills/micro-app-design/assets/tuya-design-system/latest/components/page-title/examples/TuyaPageTitle.html +29 -0
  337. package/skills/micro-app-design/assets/tuya-design-system/latest/components/page-title/spec.md +67 -0
  338. package/skills/micro-app-design/assets/tuya-design-system/latest/components/pagination/spec.md +94 -0
  339. package/skills/micro-app-design/assets/tuya-design-system/latest/components/radio/spec.md +80 -0
  340. package/skills/micro-app-design/assets/tuya-design-system/latest/components/search-input/spec.md +101 -0
  341. package/skills/micro-app-design/assets/tuya-design-system/latest/components/select/spec.md +96 -0
  342. package/skills/micro-app-design/assets/tuya-design-system/latest/components/slider/spec.md +66 -0
  343. package/skills/micro-app-design/assets/tuya-design-system/latest/components/switch/spec.md +86 -0
  344. package/skills/micro-app-design/assets/tuya-design-system/latest/components/table/spec.md +116 -0
  345. package/skills/micro-app-design/assets/tuya-design-system/latest/components/time-picker/spec.md +75 -0
  346. package/skills/micro-app-design/assets/tuya-design-system/latest/components/tooltip/spec.md +70 -0
  347. package/skills/micro-app-design/assets/tuya-design-system/latest/components/top-navigation/examples/TuyaTopNavigation.html +55 -0
  348. package/skills/micro-app-design/assets/tuya-design-system/latest/components/top-navigation/spec.md +60 -0
  349. package/skills/micro-app-design/assets/tuya-design-system/latest/components/tree/examples/icons/check.svg +3 -0
  350. package/skills/micro-app-design/assets/tuya-design-system/latest/components/tree/examples/preview.html +974 -0
  351. package/skills/micro-app-design/assets/tuya-design-system/latest/components/tree/spec.md +118 -0
  352. package/skills/micro-app-design/assets/tuya-design-system/latest/components/upload/spec.md +86 -0
  353. package/skills/micro-app-design/assets/tuya-design-system/latest/demo-index.md +43 -0
  354. package/skills/micro-app-design/assets/tuya-design-system/latest/design-system.md +116 -0
  355. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/color.md +165 -0
  356. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/elevation.md +21 -0
  357. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/icon.md +78 -0
  358. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/layout.md +103 -0
  359. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/radius.md +22 -0
  360. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/spacing.md +29 -0
  361. package/skills/micro-app-design/assets/tuya-design-system/latest/foundation/typography.md +43 -0
  362. package/skills/micro-app-design/assets/tuya-design-system/latest/interaction/behavior.md +30 -0
  363. package/skills/micro-app-design/assets/tuya-design-system/latest/interaction/feedback.md +23 -0
  364. package/skills/micro-app-design/assets/tuya-design-system/latest/interaction/state.md +28 -0
  365. package/skills/micro-app-design/assets/tuya-design-system/latest/motion/motion.md +31 -0
  366. package/skills/micro-app-design/assets/tuya-design-system/latest/patterns/dashboard.md +34 -0
  367. package/skills/micro-app-design/assets/tuya-design-system/latest/patterns/data-page.md +30 -0
  368. package/skills/micro-app-design/assets/tuya-design-system/latest/patterns/form-page.md +36 -0
  369. package/skills/micro-app-design/assets/tuya-design-system/latest/patterns/monitoring.md +25 -0
  370. package/skills/micro-app-design/assets/tuya-design-system/latest/quality-checklist.md +71 -0
  371. package/skills/micro-app-design/assets/tuya-design-system/latest/registry.yaml +232 -0
  372. package/skills/micro-app-design/assets/tuya-design-system/latest/tokens.yaml +187 -0
  373. package/skills/micro-app-design/assets/tuya-design-system/resources/README.md +26 -0
  374. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states/README.md +13 -0
  375. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277/403.html +58 -0
  376. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277/404.html +58 -0
  377. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277/500.html +58 -0
  378. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//344/272/213/344/273/266/345/274/202/345/270/270.html +58 -0
  379. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/220/234/347/264/242/346/227/240/347/273/223/346/236/234.html +58 -0
  380. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/344/275/215/347/275/256/344/277/241/346/201/257.html +58 -0
  381. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/346/210/277/345/261/213.html +58 -0
  382. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/346/225/260/346/215/256.html +58 -0
  383. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/346/266/210/346/201/257.html +58 -0
  384. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/347/275/221/347/273/234.html +58 -0
  385. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/350/256/276/345/244/207.html +58 -0
  386. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//346/272/220/347/250/277//346/232/202/346/227/240/351/241/271/347/233/256.html +58 -0
  387. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203.md +159 -0
  388. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210/403.html +31 -0
  389. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210/404.html +31 -0
  390. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210/500.html +31 -0
  391. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210/empty.css +106 -0
  392. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210/empty.js +49 -0
  393. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210/index.html +69 -0
  394. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//344/272/213/344/273/266/345/274/202/345/270/270.html +31 -0
  395. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//345/233/276/347/211/207/345/212/240/350/275/275/345/244/261/350/264/245.html +31 -0
  396. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/220/234/347/264/242/346/227/240/347/273/223/346/236/234.html +31 -0
  397. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/344/275/215/347/275/256/344/277/241/346/201/257.html +31 -0
  398. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/346/210/277/345/261/213.html +31 -0
  399. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/346/225/260/346/215/256.html +31 -0
  400. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/346/266/210/346/201/257.html +31 -0
  401. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/347/275/221/347/273/234.html +31 -0
  402. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/350/256/276/345/244/207.html +31 -0
  403. package/skills/micro-app-design/assets/tuya-design-system/resources/empty-states//350/247/204/350/214/203/347/211/210//346/232/202/346/227/240/351/241/271/347/233/256.html +31 -0
  404. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/README.md +23 -0
  405. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/arrow-down.svg +3 -0
  406. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/calendar.svg +5 -0
  407. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/check.svg +3 -0
  408. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/clear.svg +4 -0
  409. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/search.svg +4 -0
  410. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/sources/arrow-down-ref.png +0 -0
  411. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/sources/check-ref.png +0 -0
  412. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/sources/clear-ref.png +0 -0
  413. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/capsule-filter/sources/search-ref.png +0 -0
  414. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/Excel.svg +1 -0
  415. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/HD.svg +1 -0
  416. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/PM.svg +1 -0
  417. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/PPT.svg +1 -0
  418. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/README.md +14 -0
  419. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/VOC.svg +1 -0
  420. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/app/347/256/241/347/220/206.svg +1 -0
  421. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/catalog.md +377 -0
  422. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/folder-closed.svg +3 -0
  423. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/license/347/256/241/347/220/206.svg +1 -0
  424. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/nps/351/207/217/350/241/250 /346/224/266/350/227/217.svg" +1 -0
  425. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/sos-2.svg +1 -0
  426. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/sos.svg +1 -0
  427. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product/word.svg +1 -0
  428. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/270/200/346/260/247/345/214/226/347/242/263-2.svg +1 -0
  429. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/270/200/346/260/247/345/214/226/347/242/263.svg +1 -0
  430. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/270/212/344/274/240.svg +1 -0
  431. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/214/346/260/247/345/214/226/347/242/263.svg +1 -0
  432. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/221.svg +1 -0
  433. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/221/347/253/257 /344/270/213/350/275/275.svg" +1 -0
  434. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/256/345/272/246 /345/244/252/351/230/263 /346/227/245/351/227/264.svg" +1 -0
  435. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/272/344/275/223/344/274/240/346/204/237/345/231/250.svg +1 -0
  436. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/272/345/203/217@2x.svg +1 -0
  437. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/272/345/221/230/345/244/207/344/273/275@2x.svg +1 -0
  438. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/272/346/260/221/345/270/201@2x.svg +1 -0
  439. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/272/350/204/270/350/257/206/345/210/253/346/210/220/345/212/237@2x.svg +1 -0
  440. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/272/272/350/241/214/351/227/250/347/246/201.svg +1 -0
  441. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/274/230/346/203/240/345/210/270@2x.svg +1 -0
  442. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//344/274/232/345/221/230@2x.svg +1 -0
  443. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/201/234/350/275/246@2x.svg +1 -0
  444. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/205/205/347/224/265/346/241/251@2x.svg +1 -0
  445. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/205/245/344/276/265/345/221/212/350/255/246@2x.svg +1 -0
  446. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/205/250/347/220/203 /345/234/260/347/220/203 @2x.svg" +1 -0
  447. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/206/260/347/256/261.svg +1 -0
  448. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/206/267/346/260/264.svg +1 -0
  449. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/210/267/346/274/206.svg +1 -0
  450. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/212/240/346/262/271/347/253/231@2x.svg +1 -0
  451. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/214/226/345/220/210/347/211/251.svg +1 -0
  452. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/214/226/345/255/246-2.svg +1 -0
  453. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/214/226/345/255/246.svg +1 -0
  454. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/215/240/346/257/224/345/233/276.svg +1 -0
  455. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/215/267/345/256/227.svg +1 -0
  456. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/215/267/345/260/272.svg +1 -0
  457. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/216/237/345/255/220 /347/211/251/347/220/206 /346/227/213/350/275/254.svg" +1 -0
  458. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/217/221/345/215/241@2x.svg +1 -0
  459. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/217/260/345/274/217/347/224/265/350/204/221 /346/230/276/347/244/272/345/231/250 /345/261/217/345/271/225.svg" +1 -0
  460. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/220/212/347/201/257.svg +1 -0
  461. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/220/271/351/243/216/346/234/272 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  462. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/221/212/350/255/246/344/270/255/345/277/203.svg +1 -0
  463. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/221/274/345/220/270/347/216/207.svg +1 -0
  464. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/225/206/345/272/227@2x.svg +1 -0
  465. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/226/234/346/254/242@2x.svg +1 -0
  466. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/233/276/347/211/207-/346/255/243/345/270/270.svg +1 -0
  467. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/234/250/347/272/277/346/234/215/345/212/241/345/217/260@2x.svg +1 -0
  468. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/234/260/345/233/276@2x.svg +1 -0
  469. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/234/260/351/223/201@2x.svg +1 -0
  470. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/237/272/345/233/240 DNA.svg" +1 -0
  471. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/237/272/345/233/240.svg +1 -0
  472. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/240/206/345/217/240/346/237/261/347/212/266.svg +1 -0
  473. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/243/260/345/205/211/346/212/245/350/255/246.svg +1 -0
  474. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/244/232/347/275/221/351/241/265 web /345/244/232/347/252/227/345/217/243.svg" +1 -0
  475. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/244/247/350/204/221.svg +1 -0
  476. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/256/236/346/227/266/346/246/202/350/247/210 /351/245/274/345/233/276.svg" +1 -0
  477. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/256/244/345/244/226/346/270/251/345/272/246.svg +1 -0
  478. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/257/271/346/216/245 /344/272/244/346/215/242.svg" +1 -0
  479. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/260/272/345/255/220.svg +1 -0
  480. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/260/272/345/257/270.svg +1 -0
  481. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/267/264/345/243/253@2x.svg +1 -0
  482. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/270/203/345/261/200.svg +1 -0
  483. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/270/203/351/230/262/346/217/220/351/206/222.svg +1 -0
  484. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/272/212 /347/235/241/347/234/240.svg" +1 -0
  485. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/272/212.svg +1 -0
  486. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/272/224/347/224/250/351/205/215/347/275/256.svg +1 -0
  487. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/345/205/263 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  488. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/345/217/221 /344/273/243/347/240/201 Bug@2x.svg" +1 -0
  489. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/345/217/221 /344/273/243/347/240/201 Code@2x.svg" +1 -0
  490. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/345/217/221 /344/273/243/347/240/201 js /344/273/243/347/240/201@2x.svg" +1 -0
  491. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/345/217/221 /344/273/243/347/240/201 /344/273/243/347/240/201@2x.svg" +1 -0
  492. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/345/217/221 /344/273/243/347/240/201 /347/275/221/351/241/265 /344/273/243/347/240/201@2x.svg" +1 -0
  493. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/351/227/250-2.svg +1 -0
  494. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/274/200/351/227/250.svg +1 -0
  495. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/275/225/345/203/217.svg +1 -0
  496. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/276/252/347/216/257.svg +1 -0
  497. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/276/256/346/263/242/347/202/211 /347/203/244/347/256/261 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  498. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/277/203/347/216/207 /345/277/203/347/224/265/345/233/276.svg" +1 -0
  499. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/277/203/347/216/207.svg +1 -0
  500. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/277/203/347/224/265/345/233/276 /346/201/222/346/265/201/346/263/204/351/234/262/344/270/212/345/221/212.svg" +1 -0
  501. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//345/277/203/350/267/263/346/243/200/346/265/213.svg +1 -0
  502. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/200/235/350/200/203 /350/201/224/346/203/263.svg" +1 -0
  503. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/200/245/346/225/221.svg +1 -0
  504. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/210/277/351/227/264@2x.png +0 -0
  505. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/211/213/346/234/272.svg +1 -0
  506. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/211/213/350/241/250.svg +1 -0
  507. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/211/223/345/215/260/346/234/272.svg +1 -0
  508. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/212/225/345/275/261/344/273/252 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  509. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/212/230/347/272/277/345/233/276.svg +1 -0
  510. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/212/230/347/272/277/351/235/242/347/247/257/345/233/276.svg +1 -0
  511. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/212/245/350/255/246.svg +1 -0
  512. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/213/205/346/236/266/350/275/246@2x.svg +1 -0
  513. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/213/215/347/205/247.svg +1 -0
  514. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/214/207/347/272/271@2x.svg +1 -0
  515. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/216/210/346/235/203.svg +1 -0
  516. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/221/204/345/203/217/345/244/264.svg +1 -0
  517. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/224/257/344/273/230@2x.svg +1 -0
  518. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/224/266/350/227/217/346/266/210/346/201/257.svg +1 -0
  519. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/221/346/212/244/350/275/246@2x.svg +1 -0
  520. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/243/347/202/271/345/233/276.svg +1 -0
  521. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/260/346/215/256 /345/210/206/346/236/220 /345/276/252/347/216/257.svg" +1 -0
  522. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/260/346/215/256 /351/245/274/345/233/276.svg" +1 -0
  523. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/260/346/215/256.svg +1 -0
  524. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/260/346/215/256/346/272/220.svg +1 -0
  525. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/264/344/275/223/346/246/202/345/206/265-2.svg +1 -0
  526. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/225/264/344/275/223/346/246/202/345/206/265.svg +1 -0
  527. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/344/273/266/345/244/271/346/211/223/345/274/200.svg +1 -0
  528. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/345/255/227.svg +1 -0
  529. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 amr.svg" +1 -0
  530. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 ara.svg" +1 -0
  531. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 bmp.svg" +1 -0
  532. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 csv.svg" +1 -0
  533. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 doc.svg" +1 -0
  534. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 gif.svg" +1 -0
  535. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 jpeg.svg" +1 -0
  536. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 jpg.svg" +1 -0
  537. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 json.svg" +1 -0
  538. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 md.svg" +1 -0
  539. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 mp3.svg" +1 -0
  540. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 mp4.svg" +1 -0
  541. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 pdf.svg" +1 -0
  542. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 png.svg" +1 -0
  543. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 ppt.svg" +1 -0
  544. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 psd.svg" +1 -0
  545. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 svg.svg" +1 -0
  546. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 txt.svg" +1 -0
  547. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 wav.svg" +1 -0
  548. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 xls.svg" +1 -0
  549. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/207/346/241/243 /346/226/207/344/273/266 /346/240/274/345/274/217 zip.svg" +1 -0
  550. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/255/347/272/277 /346/226/255/347/275/221/351/207/215/350/257/225 /350/204/211/345/206/262.svg" +1 -0
  551. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/271/346/241/210/347/256/241/347/220/206@2x.png +0 -0
  552. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/226/275/345/267/245/345/221/230/347/256/241/347/220/206@2x.svg +1 -0
  553. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/227/240/344/272/272/346/234/272.svg +1 -0
  554. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/227/245/346/234/237@2x-2.svg +1 -0
  555. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/227/245/346/234/237@2x.svg +1 -0
  556. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/231/272/350/203/275/346/210/277/351/227/264.svg +1 -0
  557. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/231/272/350/203/275/347/233/221/346/216/247.svg +1 -0
  558. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/231/272/350/203/275/351/227/250/347/246/201.svg +1 -0
  559. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/233/262/347/272/277/345/233/276.svg +1 -0
  560. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/234/211/345/256/263-/346/214/245/345/217/221/346/200/247/346/234/211/346/234/272/347/211/251.svg +1 -0
  561. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/234/215/345/212/241/345/231/250-2.svg +1 -0
  562. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/234/215/345/212/241/345/231/250-3.svg +1 -0
  563. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/234/215/345/212/241/345/231/250.svg +1 -0
  564. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/234/254/345/234/260/350/247/206/351/242/221.svg +1 -0
  565. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/234/272/345/231/250/344/272/272 /344/272/272/345/267/245/346/231/272/350/203/275 .svg" +1 -0
  566. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/237/261/347/212/266/345/233/276-2.svg +1 -0
  567. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/237/261/347/212/266/345/233/276.svg +1 -0
  568. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/240/207/346/270/205.svg +1 -0
  569. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/240/207/347/255/276 /346/240/207/350/256/260@2x.svg" +1 -0
  570. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/240/221/346/234/250 /347/216/257/345/242/203.svg" +1 -0
  571. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/240/221/346/234/250.svg +1 -0
  572. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/240/241/350/275/246@2x.svg +1 -0
  573. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/242/257/346/216/247.svg +1 -0
  574. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/250/241/346/235/277.svg +1 -0
  575. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/224/346/263/241/345/233/276.svg +1 -0
  576. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/344/276/265/344/274/240/346/204/237.svg +1 -0
  577. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/346/265/270.svg +1 -0
  578. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/346/265/270/345/221/212/350/255/246.svg +1 -0
  579. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/347/224/265/347/256/241/347/220/206-2.svg +1 -0
  580. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/347/224/265/347/256/241/347/220/206-3.svg +1 -0
  581. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/347/224/265/347/256/241/347/220/206.svg +1 -0
  582. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/347/224/265/347/256/241/347/220/206_/345/211/257/346/234/254.svg +1 -0
  583. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/260/264/350/255/246.svg +1 -0
  584. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/261/202/346/225/221.svg +1 -0
  585. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/261/241/346/237/223.svg +1 -0
  586. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/261/275/350/275/246 /350/277/220/350/276/223 @2x.svg" +1 -0
  587. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/262/231/345/217/221.svg +1 -0
  588. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/264/227/350/241/243/346/234/272 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  589. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/265/213/350/257/225 /347/247/222/350/241/250@2x.svg" +1 -0
  590. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/265/264/346/261/240 /346/265/264/347/274/270 .svg" +1 -0
  591. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/266/210/346/201/257@2x-2.svg +1 -0
  592. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/266/210/346/201/257@2x-3.svg +1 -0
  593. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/266/210/346/201/257@2x.svg +1 -0
  594. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/267/273/345/212/240/351/241/271/347/233/256-2.svg +1 -0
  595. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/267/273/345/212/240/351/241/271/347/233/256.svg +1 -0
  596. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/270/251/345/272/246-2.svg +1 -0
  597. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/270/251/345/272/246.svg +1 -0
  598. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/270/251/345/272/246/350/277/207/344/275/216.svg +1 -0
  599. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/270/251/345/272/246/350/277/207/351/253/230.svg +1 -0
  600. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/270/270/346/210/217/344/274/221/351/227/262/345/250/261/344/271/220.svg +1 -0
  601. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/271/277/345/272/246/350/277/207/344/275/216.svg +1 -0
  602. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//346/271/277/345/272/246/350/277/207/351/253/230.svg +1 -0
  603. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/253.svg +1 -0
  604. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/253/347/201/276.svg +1 -0
  605. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/253/350/255/246.svg +1 -0
  606. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/253/350/275/246@2x-2.svg +1 -0
  607. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/253/350/275/246@2x.svg +1 -0
  608. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/255/347/201/253/345/231/250.svg +1 -0
  609. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/201/257.svg +1 -0
  610. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/203/237/351/233/276-2.svg +1 -0
  611. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/203/237/351/233/276.svg +1 -0
  612. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/203/237/351/233/276/345/221/212/350/255/246.svg +1 -0
  613. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/203/255/346/260/264.svg +1 -0
  614. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/203/255/346/260/264/345/243/266 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  615. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/205/247/345/272/246.svg +1 -0
  616. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/207/203/346/260/224.svg +1 -0
  617. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/207/203/346/260/224_/345/211/257/346/234/254.svg +1 -0
  618. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/212/266/346/200/201.svg +1 -0
  619. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/216/257/345/242/203 /346/240/221/345/217/266.svg" +1 -0
  620. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/216/257/345/242/203 /346/240/221/346/234/250.svg" +1 -0
  621. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/216/257/345/242/203.svg +1 -0
  622. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/216/257/345/242/203/347/233/221/346/265/213-2.svg +1 -0
  623. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/216/257/345/242/203/347/233/221/346/265/213.svg +1 -0
  624. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/216/257/345/275/242/345/233/276.svg +1 -0
  625. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/262/347/203/267/345/274/202/345/270/270.svg +1 -0
  626. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/262/351/206/233.svg +1 -0
  627. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265.svg +1 -0
  628. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/345/212/250/350/275/246@2x.svg +1 -0
  629. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/345/255/220/345/233/264/346/240/217 /346/241/206/351/200/211.svg" +1 -0
  630. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/346/272/220 /347/224/265/347/223/266.svg" +1 -0
  631. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/350/247/206 /347/233/264/346/222/255 .svg" +1 -0
  632. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/350/264/271.svg +1 -0
  633. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/351/222/273.svg +1 -0
  634. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/351/243/216/346/211/207.svg +1 -0
  635. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/265/351/245/255/351/224/205 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  636. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/224/273/346/235/277.svg +1 -0
  637. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/233/221/346/265/213.svg +1 -0
  638. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/233/270/346/234/272.svg +1 -0
  639. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/235/241/347/234/240.svg +1 -0
  640. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/244/276/345/214/272/346/231/272/350/203/275-2.svg +1 -0
  641. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/244/276/345/214/272/346/231/272/350/203/275.svg +1 -0
  642. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/246/273/347/272/277.svg +1 -0
  643. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/247/237/350/265/201/347/256/241/347/220/206.svg +1 -0
  644. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/247/257/345/210/206/350/277/220/350/220/245@2x.svg +1 -0
  645. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/251/272/346/260/224/345/207/200/345/214/226/345/231/250 /345/256/266/347/224/265 /347/224/265/345/231/250.svg" +1 -0
  646. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/251/272/350/260/203.svg +1 -0
  647. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/251/272/351/227/264@2x.png +0 -0
  648. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/252/227/345/270/230.svg +1 -0
  649. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/254/224/350/256/260/346/234/254/347/224/265/350/204/221-2.svg +1 -0
  650. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/254/224/350/256/260/346/234/254/347/224/265/350/204/221.svg +1 -0
  651. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/255/211/345/276/205 /345/200/222/350/256/260/346/227/266@2x.svg" +1 -0
  652. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/255/211/345/276/205@2x.svg +1 -0
  653. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/272/242/347/273/277/347/201/257@2x.svg +1 -0
  654. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/273/204/347/273/207/347/256/241/347/220/206@2x-2.png +0 -0
  655. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/273/204/347/273/207/347/256/241/347/220/206@2x.png +0 -0
  656. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/274/226/350/276/221@2x.png +0 -0
  657. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/275/221/351/241/265.svg +1 -0
  658. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//347/276/216/345/205/203@2x.svg +1 -0
  659. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/200/201/344/272/272 /350/200/201/345/271/264/344/272/272@2x.svg" +1 -0
  660. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/200/263/346/234/272-2.svg +1 -0
  661. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/200/263/346/234/272-3.svg +1 -0
  662. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/200/263/346/234/272.svg +1 -0
  663. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/203/275/345/212/233.svg +1 -0
  664. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/207/252/350/241/214/350/275/246@2x.svg +1 -0
  665. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/212/202/350/203/275.svg +1 -0
  666. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/212/257/347/211/207.svg +1 -0
  667. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/241/200/345/216/213/345/274/202/345/270/270.svg +1 -0
  668. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/241/200/346/260/247.svg +1 -0
  669. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/247/204/350/214/203.md +264 -0
  670. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/247/206/345/233/276/346/250/241/345/274/217.svg +1 -0
  671. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/247/206/351/242/221.svg +1 -0
  672. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/247/206/351/242/221AI.svg +1 -0
  673. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/247/206/351/242/221SD.svg +1 -0
  674. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/242/345/215/225.svg +1 -0
  675. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207-2.svg +1 -0
  676. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207-3.svg +1 -0
  677. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207-4.svg +1 -0
  678. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207-5.svg +1 -0
  679. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207.svg +1 -0
  680. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207/344/272/244/344/273/230-2.svg +1 -0
  681. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207/344/272/244/344/273/230.svg +1 -0
  682. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207/350/277/220/347/273/264.svg +1 -0
  683. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207/350/277/220/350/241/214/347/233/221/346/265/213.svg +1 -0
  684. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/345/244/207/350/277/236/346/216/245.svg +1 -0
  685. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/347/275/256@2x.svg +1 -0
  686. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/256/276/347/275/256/350/260/203/350/257/225.svg +1 -0
  687. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/257/273/345/215/241/345/231/250 /344/277/241/345/217/267.svg" +1 -0
  688. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/264/246/345/217/267@2x.svg +1 -0
  689. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/264/247/350/275/246@2x.svg +1 -0
  690. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/264/255/347/211/251/350/275/246@2x-2.svg +1 -0
  691. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/264/255/347/211/251/350/275/246@2x.svg +1 -0
  692. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/265/204/344/272/247/344/270/255/345/277/203@2x.svg +1 -0
  693. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/267/257/351/232/234.svg +1 -0
  694. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/267/257/351/232/234lu zhang-2.svg" +1 -0
  695. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/267/257/351/232/234lu zhang.svg" +1 -0
  696. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/246/350/241/214@2x.svg +1 -0
  697. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/254/344/272/244/346/235/203/351/231/220.svg +1 -0
  698. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/256/346/244/205-2.svg +1 -0
  699. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/256/346/244/205.svg +1 -0
  700. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/256/346/270/241@2x.svg +1 -0
  701. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/277/350/275/246@2x-2.svg +1 -0
  702. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/275/277/350/275/246@2x.svg +1 -0
  703. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/277/220/350/220/245/347/256/241/347/220/206.svg +1 -0
  704. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/277/220/350/276/223/350/275/246@2x.svg +1 -0
  705. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//350/277/233/345/272/246/346/235/241.svg +1 -0
  706. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/200/232/346/226/255/345/231/250.svg +1 -0
  707. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/201/245/346/216/247.svg +1 -0
  708. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/223/201/351/224/271.svg +1 -0
  709. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/224/201.svg +1 -0
  710. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/224/256/347/233/230.svg +1 -0
  711. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/227/250/347/243/201/345/221/212/350/255/246.svg +1 -0
  712. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/227/250/351/224/201.svg +1 -0
  713. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/227/256/345/217/267@2x.svg +1 -0
  714. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/230/266/346/242/257@2x.svg +1 -0
  715. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/233/252/350/212/261 /344/270/213/351/233/252 .svg" +1 -0
  716. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/233/252/350/212/261 /345/210/266/345/206/267.svg" +1 -0
  717. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/233/267/350/276/276 /346/211/253/346/217/217 /345/217/221/347/216/260 .svg" +1 -0
  718. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/235/231/350/204/211/346/263/250/345/260/204.svg +1 -0
  719. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/237/263/345/223/215.svg +1 -0
  720. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/241/271/347/233/256.svg +1 -0
  721. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/243/236/346/234/272@2x-2.svg +1 -0
  722. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/243/236/346/234/272@2x.svg +1 -0
  723. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/251/254/346/241/266.svg +1 -0
  724. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/253/230/345/210/206/345/255/220.svg +1 -0
  725. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/253/230/346/270/205.svg +1 -0
  726. package/skills/micro-app-design/assets/tuya-design-system/resources/icons/product//351/274/240/346/240/207.svg +1 -0
  727. package/skills/micro-app-design/assets/tuya-design-system/source.json +18 -0
  728. package/skills/micro-app-design/references/action-outcomes.md +7 -0
  729. package/skills/micro-app-design/references/adaptive-card-grid.md +25 -0
  730. package/skills/micro-app-design/references/capsule-fallback.md +36 -0
  731. package/skills/micro-app-design/references/component-boundaries.md +48 -0
  732. package/skills/micro-app-design/references/component-catalog.md +69 -0
  733. package/skills/micro-app-design/references/design-system.md +34 -0
  734. package/skills/micro-app-design/references/empty-and-error-states.md +27 -0
  735. package/skills/micro-app-design/references/icons.md +33 -0
  736. package/skills/micro-app-design/references/implementation-guidance.md +39 -0
  737. package/skills/micro-app-design/references/modal.md +27 -0
  738. package/skills/micro-app-design/references/page-patterns.md +55 -0
  739. package/skills/micro-app-design/references/quality-checklist.md +57 -0
  740. package/skills/micro-app-design/references/requirements-and-permission-states.md +19 -0
  741. package/skills/micro-app-design/references/source-and-scope.md +40 -0
  742. package/skills/micro-app-design/references/tokens.md +23 -0
  743. package/skills/micro-app-design/references/visual-acceptance.md +51 -0
  744. package/skills/micro-app-design/scripts/microapp-kit.mjs +117 -0
  745. package/skills/micro-app-design/scripts/visual-audit.mjs +197 -0
  746. package/skills/micro-app-design/tests/behavior-scenarios.md +154 -0
  747. package/skills/micro-app-design/tests/validate-design-skill.mjs +35 -0
  748. package/skills/micro-app-design/tests/validate-design-system.mjs +51 -0
  749. package/skills/micro-app-development/SKILL.md +132 -0
  750. package/skills/micro-app-development/agents/openai.yaml +6 -0
  751. package/skills/micro-app-development/references/agent-workflow.md +111 -0
  752. package/skills/micro-app-development/references/application-icons.md +50 -0
  753. package/skills/micro-app-development/references/data-change-safety.md +47 -0
  754. package/skills/micro-app-development/references/delivery-checklist.md +129 -0
  755. package/skills/micro-app-development/references/design-workflow.md +77 -0
  756. package/skills/micro-app-development/references/developer-credentials.md +97 -0
  757. package/skills/micro-app-development/references/development-guide.md +215 -0
  758. package/skills/micro-app-development/references/environment-progress.md +47 -0
  759. package/skills/micro-app-development/references/joint-acceptance.md +105 -0
  760. package/skills/micro-app-development/references/local-development.md +40 -0
  761. package/skills/micro-app-development/references/manifest-v1.2.md +129 -0
  762. package/skills/micro-app-development/references/npm-registry.md +50 -0
  763. package/skills/micro-app-development/references/platform-operations.md +48 -0
  764. package/skills/micro-app-development/references/project-workflow.md +36 -0
  765. package/skills/micro-app-development/references/publication-intent.md +34 -0
  766. package/skills/micro-app-development/references/publication-recovery.md +67 -0
  767. package/skills/micro-app-development/references/requirement-intake.md +122 -0
  768. package/skills/micro-app-development/references/runtime-requirements.md +23 -0
  769. package/skills/micro-app-development/references/space-permission-boundaries.md +46 -0
  770. package/skills/micro-app-development/references/tool-update.md +62 -0
  771. package/skills/micro-app-development/references/toolchain-access.md +35 -0
  772. package/skills/micro-app-development/references/user-journey.md +65 -0
  773. package/skills/micro-app-development/references/workspace-environments.md +39 -0
  774. package/skills/micro-app-development/scripts/application-icon.mjs +108 -0
  775. package/skills/micro-app-development/scripts/install-app-icon.mjs +48 -0
  776. package/skills/micro-app-development/scripts/install-menu-icon.mjs +27 -0
  777. package/skills/micro-app-development/scripts/language-policy.mjs +83 -0
  778. package/skills/micro-app-development/scripts/languages.json +372 -0
  779. package/skills/micro-app-development/scripts/locale-keys.mjs +26 -0
  780. package/skills/micro-app-development/scripts/microapp-kit.mjs +117 -0
  781. package/skills/micro-app-development/scripts/project-code.mjs +13 -0
  782. package/skills/micro-app-development/scripts/review-backend-logging.mjs +27 -0
  783. package/skills/micro-app-development/scripts/review-production-authorization.mjs +37 -0
  784. package/skills/micro-app-development/scripts/validate-micro-app-project.mjs +442 -0
  785. package/skills/micro-app-development/tests/application-icons.test.mjs +131 -0
  786. package/skills/micro-app-development/tests/backend-logging-review.test.mjs +24 -0
  787. package/skills/micro-app-development/tests/behavior-scenarios.md +177 -0
  788. package/skills/micro-app-development/tests/data-change-safety-scenarios.md +25 -0
  789. package/skills/micro-app-development/tests/design-workflow-scenarios.md +40 -0
  790. package/skills/micro-app-development/tests/fixtures/valid-v6/_locales/en.json +6 -0
  791. package/skills/micro-app-development/tests/fixtures/valid-v6/_locales/zh-CN.json +6 -0
  792. package/skills/micro-app-development/tests/fixtures/valid-v6/manifest.json +59 -0
  793. package/skills/micro-app-development/tests/fixtures/valid-v6/micro.config.js +5 -0
  794. package/skills/micro-app-development/tests/fixtures/valid-v6/mock/index.json +11 -0
  795. package/skills/micro-app-development/tests/fixtures/valid-v6/package.json +4 -0
  796. package/skills/micro-app-development/tests/fixtures/valid-v6/src/index.tsx +5 -0
  797. package/skills/micro-app-development/tests/fixtures/valid-v6/src/lang/en.ts +1 -0
  798. package/skills/micro-app-development/tests/fixtures/valid-v6/src/lang/zh.ts +1 -0
  799. package/skills/micro-app-development/tests/fixtures/valid-v6/src/public-path.js +3 -0
  800. package/skills/micro-app-development/tests/production-authorization-review.test.mjs +72 -0
  801. package/skills/micro-app-development/tests/six-skill-routing-scenarios.md +60 -0
  802. package/skills/micro-app-development/tests/user-journey-scenarios.md +19 -0
  803. package/skills/micro-app-development/tests/validate-micro-app-project.test.mjs +428 -0
  804. package/skills/micro-app-frontend-development/SKILL.md +86 -0
  805. package/skills/micro-app-frontend-development/agents/openai.yaml +6 -0
  806. package/skills/micro-app-frontend-development/references/api-and-permissions.md +86 -0
  807. package/skills/micro-app-frontend-development/references/custom-api-requests.md +52 -0
  808. package/skills/micro-app-frontend-development/references/debugging.md +36 -0
  809. package/skills/micro-app-frontend-development/references/i18n-and-theme.md +54 -0
  810. package/skills/micro-app-frontend-development/references/interaction-completion.md +61 -0
  811. package/skills/micro-app-frontend-development/references/micro-frontend-runtime.md +33 -0
  812. package/skills/micro-app-frontend-development/references/routing-and-context.md +96 -0
  813. package/skills/micro-app-frontend-development/references/saas-failure-and-display.md +45 -0
  814. package/skills/micro-app-frontend-development/references/standard-api-requests.md +30 -0
  815. package/skills/micro-app-frontend-development/references/submission-errors.md +51 -0
  816. package/skills/micro-app-frontend-development/scripts/microapp-kit.mjs +117 -0
  817. package/skills/micro-app-frontend-development/tests/behavior-scenarios.md +36 -0
  818. package/skills/micro-app-solution-design/SKILL.md +69 -0
  819. package/skills/micro-app-solution-design/agents/openai.yaml +6 -0
  820. package/skills/micro-app-solution-design/scripts/microapp-kit.mjs +117 -0
  821. package/skills/micro-app-solution-design/tests/behavior-scenarios.md +12 -0
package/AUDIT.md ADDED
@@ -0,0 +1,43 @@
1
+ # Capability and verification boundaries
2
+
3
+ This document describes the development package's capabilities and validation boundaries. It is not a production security certification or a report that every host and operating system has been tested.
4
+
5
+ ## Delivered capabilities
6
+
7
+ - Six Skills for development orchestration, UI design, solution design, frontend development, backend development and cloud integration.
8
+ - Complete-package setup, version-and-digest caches, project locks, explicit updates, transaction recovery and supported rollback.
9
+ - Project identity generation, local templates, preview, isolated database support, validation and release preparation.
10
+ - System credential-store guidance, hidden terminal input, explicit account reuse and sanitized publication progress.
11
+ - Signed developer upload, task queries, logs and content-based publication recovery. Version allocation is controlled by the publishing platform.
12
+
13
+ Installation follows [START-HERE.md](START-HERE.md). Release and verification procedures are in [MAINTAINING.md](MAINTAINING.md).
14
+
15
+ ## Verify results separately
16
+
17
+ | Result | Required evidence |
18
+ |---|---|
19
+ | Package integrity | Complete-package manifest and actual npm archive verification. A digest alone does not authenticate an untrusted source. |
20
+ | Toolchain installation | Setup preflight, actual setup, project lock, reading the matching installed Skill and invoking its launcher. |
21
+ | Host Skill discovery | The actual host reloads and uses the Skill. Files existing on disk or `doctor` succeeding do not prove automatic discovery. |
22
+ | Environment readiness | Actual Node/npm execution, backend runtime binding, required dependencies and, when used, Docker engine/database health. |
23
+ | Local application behavior | Relevant tests/build, real preview interactions, database CRUD/retention and allowed/denied authorization cases. |
24
+ | Real SaaS integration | Authorized assembled environment with real user context, gateway, API routing and permission boundaries. Mock success is insufficient. |
25
+ | Publication | Actual server task state and immutable input snapshot. Upload/build readiness does not establish regional deployment or activation. |
26
+
27
+ ## Support limits
28
+
29
+ The CLI requires Node.js >=22; backend development and execution use Node 24. Full initial environments follow the fixed Node preparation recommendation in the runtime guidance. Local reference container tests and the platform's production build must be verified independently.
30
+
31
+ The native Windows preview implementation uses local named pipes and owned Node IPC backend shutdown; macOS/Linux retain private Unix sockets. All hosts use the same build/start/status/stop/restart launcher. Restart stops, rebuilds and starts under one project lock; an occupied port or stale PID never authorizes killing another service, and cleanup failure retains the same controllable run. Windows Docker access is limited to a local named-pipe endpoint, with resource-owner checks unchanged.
32
+
33
+ Native Windows real-machine acceptance remains required: named-pipe creation/access, full frontend/backend restart, package-manager shims, Docker database retention and actual WorkBuddy/TRAE Skill loading must be checked on Windows. Windows branch/credential contracts, lifecycle fixtures and macOS/Linux execution do not establish that acceptance. WSL, container, remote and online execution environments must be checked for their actual tools, filesystem, ports, credential provider and database access.
34
+
35
+ Custom backend build/install hooks and JavaScript migration tasks are not supported. Standard API code and cumulative SQL migrations remain developer responsibilities. Platform-controlled entry points do not sandbox arbitrary business code or SQL.
36
+
37
+ Business authorization requires verified request context, operation permissions, applicable SaaS/project/household scopes, object ownership and field/state checks. The developer owns these business rules. Skill guidance, signatures, successful tests and hidden UI controls do not by themselves guarantee authorization correctness.
38
+
39
+ Published packages and user caches remain immutable. Upgrading the development tools does not automatically rewrite an existing application's source or redeploy it. Changes affecting generated applications require explicit source updates, validation and the authorized publication/deployment process.
40
+
41
+ ## Reporting
42
+
43
+ Report what was checked, the actual result and remaining blocked/unverified items. Keep local tests, real hosts/OS, database/container tests and platform/SaaS integration separate. Do not embed maintainer machine details, historical temporary paths, infrastructure inventories, credentials or original service exceptions in the public package.
package/CHANGELOG.md ADDED
@@ -0,0 +1,53 @@
1
+ # 更新日志
2
+
3
+ ## 0.1.26-alpha.1(内测,待发布)
4
+
5
+ - 通用安装与开发指引不再写死开发包当前版本:从完整包元数据核对实际名称、版本和完整性;已有可信包及项目锁继续复用。README 使用内测通道,解析后固定精确版本;生成安装页仍自动填入对应版本,元数据不一致时拒绝生成。
6
+ - 修复安装依赖后直接执行 `npm pack` / `npm publish` 的清单污染:仅排除开发包根目录的安装产物,模板中的前后端锁文件继续进入归档并严格校验。
7
+ - 新增离线 `check:release`,并接入 `prepublishOnly`:对普通 npm 打包生成的真实归档进行解包和完整性检查,失败阻止发布,不访问发布源或修改分发标签。
8
+ - 补齐带安装产物的普通打包、离线安装、setup/doctor,以及模板锁文件缺失、篡改和归档遗漏的回归。安装与升级指引同步为公司包 `0.1.26-alpha.1`,仍使用 `alpha` 标签。
9
+ - 已发布的 `alpha.0` 归档及用户缓存不改写;修复包须另发新版本。发布者在正式源验收新包后处理旧版弃用提示和实际分发标签。
10
+
11
+ ## 0.1.26-alpha.0(内测)
12
+
13
+ - alpha 内测包设计使用 `alpha` 标签。该版实际发布归档的清单包含根目录安装产物,接入校验失败;请使用修复版本,实际分发标签由发布者核对。
14
+ - 公司包名确定为 `@tuya-sat/microapp-kit`,安装、升级检测、生成指引及归档使用同一身份;个人旧包名仅保留为历史说明及迁移来源。
15
+
16
+ - 后端模板默认接通 HTTP 入口、验签与请求异常日志,贯通服务端请求编号;未捕获异常及依赖阶段保留安全错误分类和 SQLSTATE,不输出 SQL、凭据或原始异常。补齐接线审阅提示、实际 HTTP/并发/脱敏回归和 Skill 验收要求;已有项目仍须显式同步业务源码。
17
+
18
+ - 安装与升级引导统一下载源:中国优先npmmirror,中国以外npm官方源;镜像未同步精确目标时说明并回退官方源一次,保持版本/完整性校验,不修改全局npm配置。版本检测与下载来源分别记录。
19
+
20
+ - 表单与请求封装区分字段校验、发送前准备异常、网络错误和后端业务拒绝,保留安全错误码/阶段/关联编号;补齐 fetch JSON envelope、输入保留、取消与未知写入结果的引导和回归。
21
+
22
+ - 补齐温湿度、人体、门磁传感器;主要示例家庭/项目提供30/31台设备、20个品类,覆盖电工、照明、传感、IPC和门锁。旧预览会话重启时一次性补入新增传感器,保留已有修改和权限。
23
+
24
+ - 分离彩色 applicationIcon 与默认线框 defaultMenuIcon;补齐独立接入、旧项目回退/显式迁移、双资源构建校验及预览菜单主题适配。
25
+
26
+ - 新工作区默认正式发布目标;内部可预先配置业务工作区的预发服务,普通用户无需选择环境。
27
+ - 凭据、临时隐藏输入会话、发布查询/日志与恢复统一校验目标;配置或目标冲突在读密钥/联网前停止,切换与安装升级互斥。
28
+ - 支持个人 `@xuqinghua/microapp-kit@0.1.24`、`0.1.25` 直接到 `@tuya-sat/microapp-kit` 公司包的一次性迁移,保留可核验的原目标及源码、身份、数据、凭据、发布记录和缓存,0.1.24 无需中转升级。
29
+ - 目标不明、在途/未知请求或未完成会话阻止迁移;迁移纳入升级事务和崩溃恢复,用户后续编辑不被覆盖。
30
+ - 安装指引和更新检测由实际分发包名驱动;维护者修改包名后需 refresh、检查并验证归档。Libra 发布仍由发布负责人操作。
31
+ - 已发布包及用户缓存保持原样;真实正式/预发联调与跨系统实机验收单独进行。
32
+
33
+ ## 0.1.25
34
+
35
+ ### 新增与改进
36
+
37
+ - 精简 npm 展示 README,保留安装、升级和文档入口;完整 Agent 指引与详细参考继续随包交付。
38
+ - 统一标准 API 的 `/open-api` 前缀处理,Axios 和 fetch 使用同一地址规范;预览提前拒绝缺失或重复前缀。
39
+ - 补齐自定义 API 的 `Accept: application/json` 封装,覆盖 Axios baseURL、默认请求头和 fetch,并增加预览校验。
40
+ - 预览侧边栏显示微应用自身的 SVG 图标,保持配色,支持路由切换、主题和收起状态。
41
+ - 繁体中文统一使用 `zh_tw`,兼容已有 `tw` 项目的声明与语言文件,新构建产物使用规范编码。
42
+
43
+ ### 兼容与升级
44
+
45
+ - 延续 0.1.24:标准目录不再提供 Agent Open 设备拆分查询 `GET /v1.0/m/sdf/agent-open/device/split/all`。移除已有调用及 manifest 声明;设备功能、属性和控制继续使用各自接口,不自动改用旧查询。
46
+ - 已有项目需显式更新受管工具并重新加载 Skill。业务请求封装、fetch 调用及国际化运行时由 Agent 按源码适配,工具升级不自动覆盖业务代码。
47
+ - `tw` 与 `zh_tw` 表示同一语种,不可同时声明;同一套词典只保留一种命名。已有归档、源项目和安装缓存不改写。
48
+ - CLI 最低 Node.js 22、后端 Node 24 的兼容要求保持;首次安装按安装入口推荐的独立 Node 24 环境准备。
49
+ - 延续 0.1.24 的原生 Windows 预览、文档语言选择及仓库维护能力。Windows 实机、宿主自动发现及真实平台集成仍需按实际环境验收,分支测试不代表实机认证。发布开发包不代表平台服务已部署。
50
+
51
+ ## 历史版本
52
+
53
+ 历史版本的结构化发布说明保存在对应 npm 版本 `package.json` 的 `microappKitRelease` 中,可让 Agent 查询指定版本或比较升级变化。本文不追写未经逐版核实的历史特性。
package/MAINTAINING.md ADDED
@@ -0,0 +1,178 @@
1
+ # Development package maintenance
2
+
3
+ This complete package contains six Skills, the CLI/runtime, local preview, templates, schemas and installation guidance. `skills/` is the single Skill source; `resources/` contains the templates and runtime inputs. Package version and release notes are declared in `package.json`.
4
+
5
+ ## Local verification
6
+
7
+ Use Node.js >=22 for the CLI. Full backend development uses Node 24; initial environment preparation and independent Node installation follow [START-HERE.md](START-HERE.md) and [runtime requirements](skills/micro-app-development/references/runtime-requirements.md). Keep the user's existing global environment.
8
+
9
+ From the package source directory:
10
+
11
+ ```bash
12
+ npm run refresh
13
+ npm run validate
14
+ npm test
15
+ ```
16
+
17
+ Refresh updates both integrity manifests; it does not create another copy of the Skills. Run checks after the final source change. Database/container tests require their documented dependencies; a skipped integration test does not establish runtime support. Tests, screenshots, real host discovery and platform integration are separate evidence.
18
+
19
+ Maintainer evaluations under `evals/` and their output do not enter the package, installed cache or integrity manifest. The source-only `evals/public-distribution.test.mjs` checks the real npm archive for unnecessary internal information. Run it before publishing:
20
+
21
+ ```bash
22
+ node --test evals/public-distribution.test.mjs
23
+ ```
24
+
25
+ ## Package and publish
26
+
27
+ Use a new version for changed delivered content. Align `package.json`, `bundle.json`, `resources/resource-manifest.json`, the runtime version and the cloud integration Skill's version metadata. Never modify published archives or installed user caches.
28
+
29
+ ```bash
30
+ npm run pack:npm -- /absolute/path/outside-package/new-release
31
+ ```
32
+
33
+ The packer assembles the package, verifies npm's actual archive bytes and generates a separate `install-guide-<version>/tuya-microapp-kit-install.md`. The package includes templates and their hidden files; it excludes credentials, `node_modules`, repository metadata and maintainer evaluations. `_gitignore` templates are restored to `.gitignore` during project initialization.
34
+
35
+ The integrity inventory excludes only these dependency-installation paths at the
36
+ package root: `node_modules/`, `yarn.lock`, `package-lock.json` and `pnpm-lock.yaml`.
37
+ Template lockfiles remain distributed and verified. Other unexpected product
38
+ files, missing files and changed contents still fail verification.
39
+
40
+ Run `npm run check:release` to refresh and verify the actual ordinary npm archive
41
+ offline, including after CI has installed dependencies. `prepublishOnly` runs
42
+ this gate before ordinary `npm publish`; its internal `npm pack --ignore-scripts`
43
+ avoids recursive hooks. `prepack` refreshes the inventory again immediately before
44
+ packing. A failed archive check blocks publication. Do not bypass lifecycle scripts
45
+ to conceal an archive failure. This check neither publishes nor changes registry tags.
46
+
47
+ Before an authorized publication:
48
+
49
+ 1. Verify the exact version and archive digest, release notes, resource validation and relevant tests.
50
+ 2. Install the archive in an isolated directory, run `setup --check` and `setup` for a separate business directory, read the installed Skill and invoke its launcher `doctor`. Verify initialization or upgrade behavior affected by the change.
51
+ 3. Publish that verified archive to the configured official npm registry. Use npm's normal login and per-publication security verification; credentials must not enter commands, package files or logs.
52
+ 4. Wait for the exact version to be available, verify the downloaded archive and the intended distribution tag, then repeat clean installation and tool invocation. A publish acceptance response is not download verification.
53
+
54
+ Read the intended exact version from `package.json.version` and the publication
55
+ channel from `publishConfig.tag`. The current channel is `alpha`.
56
+ For Libra, use that exact version and ensure the publishing component retains
57
+ the `alpha` tag (or explicitly supplies `--tag alpha`); do not let it rewrite
58
+ only `package.json` or override the tag with `latest`. Verify the final archive
59
+ version and all integrity manifests before publishing. Internal testers install
60
+ the actual distribution package at `@alpha` or the exact prerelease version.
61
+ Stable update detection continues to use `latest`; it does not opt users into
62
+ alpha releases. Changed published content requires a new prerelease identifier;
63
+ never overwrite an existing published version.
64
+ Before a stable release, align all version metadata and explicitly change the
65
+ publishing tag back to `latest`.
66
+
67
+ The published alpha.0 archive has an invalid inventory and must not be rewritten
68
+ or patched inside user caches. After an authorized replacement prerelease publication, download
69
+ the exact public archive, verify it and exercise setup/doctor before notifying
70
+ testers. Check actual `alpha` and `latest` tags; a prerelease must not occupy the
71
+ stable tag. If no stable company version exists, the release owner removes an
72
+ incorrect `latest` rather than pointing it at an invented stable version. Mark
73
+ alpha.0 deprecated with the replacement version after the replacement is usable.
74
+ These remote changes require separate publication authorization.
75
+
76
+ Publication and website updates require their own user authorization. The external installation page is optional: an Agent may obtain an exact complete package directly from npm and then read its `START-HERE.md`.
77
+
78
+ ## Installation page
79
+
80
+ Keep `START-HERE.md` and the development guide independent of the package's own
81
+ release number. They read and cross-check the acquired package metadata; they do
82
+ not resolve `latest` again for an already verified bundle or replace a project
83
+ lock. README prompts may select a release channel, resolved once to an exact
84
+ version. Historical compatibility boundaries and the Node safety baseline remain
85
+ explicit in their own contracts.
86
+
87
+ The generated installation page intentionally contains an exact version. Its
88
+ builder reads `package.json` and checks it against the verified bundle manifest;
89
+ metadata disagreement or tampering stops generation before writing output. A
90
+ normal release-number change must not require editing the general guides.
91
+
92
+ The page source is `bootstrap/install.md.in`:
93
+
94
+ ```bash
95
+ npm run build:install-page -- /absolute/path/outside-package/new-guide
96
+ ```
97
+
98
+ Only `tuya-microapp-kit-install.md` is generated. Do not overwrite existing release files. Serve the page as `text/plain; charset=utf-8` with inline disposition when possible. Verify the exact npm version, archive and clean installation before uploading the page. Existing website files and old package versions are unchanged by local generation.
99
+
100
+ `bootstrap/install-node.sh` and `bootstrap/install-node.ps1` only prepare independent Node: current PATH/known tool cache, fixed official archive, SHA256 check and original runtime preservation. They do not fetch the development package, modify business projects or replace the global Node installation. The Agent still checks actual Node/npm execution and project binding. There is no full-flow native installer or extra installation readiness protocol.
101
+
102
+ ## Installation, upgrade and state
103
+
104
+ Follow [START-HERE.md](START-HERE.md), [toolchain access](skills/micro-app-development/references/toolchain-access.md) and [updates](skills/micro-app-development/references/tool-update.md). Choose the final business directory before setup, fetch the complete package outside it, pin an exact version and read the matching Skill. Never substitute instructions from adjacent projects or source trees.
105
+
106
+ The shared [npm registry policy](skills/micro-app-development/references/npm-registry.md) directs downloads in China to npmmirror and downloads outside China to npmjs. Missing exact mirror versions fall back to npmjs once without changing the target. Keep official metadata checks distinct from archive download sources and retain integrity checks. Do not change global npm configuration, forward publishing credentials to a mirror, infer geography from a deployment region, or publish to npmmirror. Publication remains on the official npm registry; actual regional network acceptance is separate from local tests.
107
+
108
+ Cache layout and project locks bind version plus content digest. Existing projects use the target package's explicit `update --check/update`, transaction recovery or supported rollback; do not overwrite locks or remove caches to bypass conflicts. Business source, identity, migrations, DEV data, credentials and publication records remain preserved. In-flight/unknown publications and active credential workers must be handled before switching tools.
109
+
110
+ Production credentials follow [developer credential guidance](skills/micro-app-development/references/developer-credentials.md): prefer the system store; fall back to the hidden-input session when unavailable; use already configured safe injection only. Keep the original execution host, user and state directory. Do not put real keys in chat, project files, command arguments or reports.
111
+
112
+ ## Development and delivery
113
+
114
+ Use the installed Skill launcher with the actual business project path. [Agent workflow](skills/micro-app-development/references/agent-workflow.md) covers requirements, authorization, design, implementation, preview and publication. Small fixes do not require a full redesign; business decisions and production effects retain their authorization boundaries.
115
+
116
+ [Local development](skills/micro-app-development/references/local-development.md), [database preview](skills/micro-app-backend-development/references/local-database-preview.md) and [joint acceptance](skills/micro-app-development/references/joint-acceptance.md) distinguish local Mock from real backend/database behavior and assembled SaaS integration. macOS, Linux and native Windows use the same preview lifecycle. Windows uses run-specific local named pipes and owned Node IPC shutdown; restart stops, rebuilds and starts while holding one project lock. Never stop by persisted PID, process name or occupied port. Keep a failed cleanup controllable and retryable instead of reporting success.
117
+
118
+ For native Windows acceptance, run the following with the selected Node runtime on an actual Windows host, then verify a real application with and without backend/database, including data retention. Repeat launcher use from WorkBuddy and TRAE; source-installed launcher tests do not prove host automatic discovery. Record Windows, WSL and other operating systems separately; mocked platform branches do not establish real-machine acceptance.
119
+
120
+ ```bash
121
+ node --test runtime/tests/preview.test.mjs runtime/tests/preview-hosts.test.mjs resources/tests/backend-preview.test.mjs resources/tests/preview-control.test.mjs resources/tests/command-invocation.test.mjs
122
+ ```
123
+
124
+ [Release recovery](skills/micro-app-development/references/publication-recovery.md) defines fixed input snapshots, original request identifiers, content reuse, unknown outcomes and explicit new attempts. Source upload, build readiness, regional deployment and SaaS acceptance are separate results. The platform controls production build/start/migration tools; local `dev-*` scripts are for local checks and do not replace production entry points. See [standard backend build](skills/micro-app-backend-development/references/business-build-helpers.md).
125
+
126
+ ## Diagnostics and public content
127
+
128
+ The CLI returns a single protocol JSON object on stdout. Structured diagnostic events go to stderr and preserve safe correlation fields, stages and error codes. Third-party build output is separate. Do not include original exceptions, credentials, request bodies, internal URLs or complete process environments in user reports. Follow [business logging](skills/micro-app-backend-development/references/business-logging.md).
129
+
130
+ Public content should describe supported user workflows and required integration contracts. Keep internal infrastructure addresses, service aliases, repository revisions, maintainer machine paths and historical debugging receipts outside the npm package. Necessary request paths, permission identifiers, runtime configuration keys and the executable default publishing endpoint remain part of the integration contract; do not rename or obscure them as a cosmetic cleanup.
131
+
132
+ ## Repository checkout
133
+
134
+ The repository root is the complete package source; no parent workspace or adjacent
135
+ repository is required. `npm run build` runs package validation because the shipped
136
+ runtime is JavaScript and the templates remain source inputs. `prepack` refreshes
137
+ integrity before npm packing; the verified archive workflow above remains required.
138
+
139
+ The root `.git`, `.gitignore`, `.gitattributes` and `AGENTS.md` are repository-only
140
+ metadata. Changes to these files do not alter a bundle digest and they are not
141
+ copied into the assembled/npm package. Product files, nested template ignore files
142
+ and unexpected additions remain subject to integrity verification. Source tests
143
+ cover both boundaries.
144
+
145
+ Commit the Skills, runtime, templates/resources, schemas, integrity manifests,
146
+ package entry points, maintained documentation and evaluation framework source.
147
+ Keep dependencies, generated releases, evaluation output, local state, credentials
148
+ and historical execution receipts out of Git. Root line-ending rules keep text files
149
+ consistent across checkouts so that tracked integrity hashes remain reproducible.
150
+
151
+ An existing organization package can be used as a repository/pipeline reference;
152
+ its scope, license or credentials must not be copied without confirming applicability.
153
+ Moving source into Git does not publish an npm package or change package ownership.
154
+
155
+ ## Public README and Agent guidance
156
+
157
+ Keep `README.md` focused on the product, a copyable installation prompt, the user development flow, upgrade guidance and documentation entry points. Record the current release in `CHANGELOG.md` and `package.json.microappKitRelease`; do not invent historical release notes.
158
+
159
+ Detailed instructions remain in `START-HERE.md`, the delivered Skills and their references. The consolidated `skills/micro-app-development/references/development-guide.md` keeps the previous detailed README guidance and links to specialist contracts. Its links must resolve after installation without the source checkout. The assembler and npm file list must include `CHANGELOG.md`; check the actual archive and the installed Skill references before publishing.
160
+
161
+ ## Company package and workspace targets
162
+
163
+ The approved company package is `@tuya-sat/microapp-kit`, as declared in
164
+ package.json. Run npm run refresh to regenerate manifest.packageName, integrity and
165
+ active installation/update prompts; bootstrap build-install-page also reads this
166
+ metadata. Check README, START-HERE, generated instructions and update-check queries
167
+ in the actual archive. Historical migration source names stay literal. The user
168
+ operates the Libra release; this preparation does not publish.
169
+
170
+ New workspaces use the production origin. Internal operators configure a trusted
171
+ preproduction origin per business directory outside the project, following
172
+ [workspace environments](skills/micro-app-development/references/workspace-environments.md).
173
+ Do not distribute internal endpoints or create an environment-selection wizard for
174
+ ordinary users. A target change cannot route old credentials or tasks to another
175
+ service. Cross-name migration supports the published personal 0.1.24 and 0.1.25 to a
176
+ company package @tuya-sat/microapp-kit; preserve verifiable legacy target evidence and run
177
+ update --check/update plus recovery validation. Package versions must increase.
178
+ Version 0.1.24 can migrate directly; an intermediate 0.1.25 installation is not required.
package/README.md CHANGED
@@ -1,3 +1,54 @@
1
- # Temporary Holding Version
1
+ # 空间智能微应用开发包
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 将业务需求交给 Coding Agent,开发微应用并打开本地预览,再按需要打包上传到涂鸦空间智能平台。
4
+
5
+ ## 能做什么
6
+
7
+ - 引导需求与权限澄清,完成 UI、技术方案及前后端开发。
8
+ - 提供项目模板、本地预览、多语言和隔离测试数据库。
9
+ - 支持打包、注册上传、发布状态跟踪,以及开发工具升级。
10
+
11
+ 适配 Codex、WorkBuddy、Claude Code、Kimi、TRAE 等 Agent,具体环境由 Agent 检查并准备。
12
+
13
+ ## 快速开始
14
+
15
+ 将下面这句话直接复制给 Coding Agent:
16
+
17
+ > 请先确定微应用业务目录,从 npm 获取 @tuya-sat/microapp-kit@alpha,解析并锁定精确版本:中国网络优先用 npmmirror,中国以外用官方源,镜像缺少目标版本则回退官方源;读取包内 START-HERE.md,按指引安装并开始需求澄清、开发和预览。
18
+
19
+ 当前为 alpha 内测通道,`@latest` 用于正式版。需要固定某次发布时可指定精确版本;实际包名和版本以取得的完整包元数据及校验结果为准,标签只解析一次。已有可信且匹配目标的完整包直接复用。
20
+
21
+ 随后描述需求,例如:
22
+
23
+ > 帮我做一个设备巡检应用,需要记录巡检结果,保存后可以查询和修改。
24
+
25
+ 已有合适的 Node 环境会复用;缺少时由 Agent 按指引独立准备,保留原有全局环境。需要系统授权或宿主重载时,Agent 会说明具体操作。
26
+
27
+ 安装和升级下载:中国网络优先用 npmmirror,中国以外用 npm 官方源;镜像未同步目标版本时,回退官方源获取同一精确版本,不修改全局 npm 配置。版本确认及下载细则见 `START-HERE.md`。
28
+
29
+ ## 开发流程
30
+
31
+ 描述需求 → 确认方案 → 开发预览 → 打包上传 → 平台部署与验收。
32
+
33
+ Agent 根据任务复杂度推进;小修改直接处理,重要业务和权限选择由你确认。上传完成后会说明部署、标签绑定与 SaaS 挂载的下一步,上传不等于上线。
34
+
35
+ 新工作区默认连接正式发布服务。安装、开发和本地预览不需要开发凭据;上传时按 Agent 引导安全配置,不在聊天中提供密钥。
36
+
37
+ ## 已有项目升级
38
+
39
+ 将下面这句话交给当前项目的 Agent:
40
+
41
+ > 请将当前项目的开发包升级到 @tuya-sat/microapp-kit@alpha,解析并锁定精确版本,按包内升级流程检查并重新加载 Skill,保留业务代码、数据、凭据和发布记录。
42
+
43
+ 工具升级不会自动改写业务源码;涉及源码适配时,Agent 会说明影响并按任务继续处理。
44
+
45
+ ## 文档与更新说明
46
+
47
+ 以下内容随完整开发包交付,由 Agent 安装后按需读取:
48
+
49
+ - `START-HERE.md`:安装、环境准备与 Agent 接入入口。
50
+ - `skills/micro-app-development/references/agent-workflow.md`:完整工作流与专题指引。
51
+ - `skills/micro-app-development/references/development-guide.md`:开发、凭据、预览、上传与恢复的详细参考。
52
+ - `CHANGELOG.md`:本版更新及升级注意事项;历史版本说明保存在各版本 `package.json` 的 `microappKitRelease` 中。
53
+
54
+ 平台操作可参考[空间应用(AI 开发)官方说明](https://developer.tuya.com/cn/docs/iot/ai_develop?id=Kg3g0wx1ug208)。
package/START-HERE.md ADDED
@@ -0,0 +1,44 @@
1
+ # Coding Agent 安装入口
2
+
3
+ 用户只需提供业务目标和可信包入口。Agent负责以下三步,不把命令占位符交给用户替换。已完成安装时核对当前项目锁、读取对应Skill并继续用户目标,不重复下载或setup。
4
+
5
+ ## 1. 确定业务目录,准备Node
6
+
7
+ 先检查工作区及用户目标,确定最终业务根目录和当前宿主身份;只有保存位置存在歧义时询问用户。父目录安装不能代替子项目,不复制其他项目的锁。当前支持codex、workbuddy、claudecode、kimi、trae、trae-cli,不根据本机安装的软件猜宿主。
8
+
9
+ 检查当前Node/npm和用户`.tuya-microapp/node-versions/`中的已知Node;可信Node24.x >=24.22.1及npm能实际执行就复用。不扫描各种版本管理器,不加载profile或更改全局默认Node。缺少时按官方固定版本归档+SHA256清单独立准备Node24.22.1;完整包已在本地时也可使用仅负责Node的[macOS/Linux辅助脚本](bootstrap/install-node.sh)或[Windows辅助脚本](bootstrap/install-node.ps1)。不运行brew install/upgrade/link、sudo安装或永久改PATH。使用实际Node绝对路径,并仅为本次命令设置PATH;准备后验证node/npm及原Node状态。兼容边界与后端绑定见[运行时要求](skills/micro-app-development/references/runtime-requirements.md)。不为获取包先安装Node22。
10
+
11
+ 下载前说明用途、范围和必要用户动作;长任务每约30–60秒反馈真实阶段,按[环境进度指引](skills/micro-app-development/references/environment-progress.md)处理无进展、超时和安全阻断。不要清除NODE_OPTIONS或宿主安全变量,不关闭TLS、不循环重试。
12
+
13
+ ## 2. 从npm获取精确完整包
14
+
15
+ 开发包自身的实际身份读取自同一完整包的 `package.json.name`、`package.json.version`,并核对 `bundle.json.version`;如清单声明 `packageName`,同时核对包名。名称和版本必须与用户已确认的目标、可信来源一致;文档、目录名或文件名不能代替元数据。版本不一致或完整性校验失败时停止,不改清单、项目锁或旧缓存来绕过。
16
+
17
+ 已有可信且完整性通过的完整包、用户也未指定其他目标时,直接复用其实际版本,不因本文没有版本号而重新查找 `latest`。已安装项目继续使用 `.tuya-microapp/toolchain.json` 锁定的精确版本和 `bundleSha256`,仅在用户要求升级时按目标包执行升级检查。
18
+
19
+ 用户指定精确版本时保持该目标;指定 `@alpha` 或 `@latest` 时只解析相应标签一次并固定实际版本,不在通道之间替换。普通用户默认正式版检测仍只查询 `latest`,不自动加入内测通道;若正式标签返回预发布版,说明标签异常并停止本次正式版获取,不静默安装或另选版本。
20
+
21
+ 正式包为`@tuya-sat/microapp-kit`。按[下载源与回退规则](skills/micro-app-development/references/npm-registry.md),已知中国网络优先用 https://registry.npmmirror.com/,中国以外用 https://registry.npmjs.org/;网络未知默认官方源,不按对话语言或部署区域猜测。只用单次命令 --registry,不改全局npm配置。用户指定版本则核实该版本;latest按官方元数据确认一次,后续固定精确版本。目标已确认后不因下载源变化重新解析latest。
22
+
23
+ 镜像对目标版本返回E404/ETARGET或对应归档404时,说明镜像尚未同步,回退官方源一次获取同一包名、同一精确版本;官方也没有则停止,不改用旧版。摘要不符、TLS、权限及其他网络错误分别处理,不当作同步延迟、不关闭校验或重装Node。npm核验归档后再核对实际name/version和完整性;已有官方dist.integrity时同时比较。
24
+
25
+ 在业务目录外的独立暂存目录执行npm pack或npm install --prefix独立目录 --save-exact --ignore-scripts精确包,由npm校验归档。保留隐藏模板文件,只读取此次完整包的START-HERE.md,不搜索相邻源码或其他项目说明替代。不在业务根目录npm install开发包而产生工具依赖文件。已有可信、匹配版本的完整包直接复用;离线包只用用户指定来源,摘要校验不等于来源认证。
26
+
27
+ ## 3. 执行现有setup/update并验证
28
+
29
+ 新项目使用选定Node和同一精确完整包:
30
+
31
+ ```bash
32
+ "<Node绝对路径>" "<完整包目录>/setup.mjs" --project "<最终业务目录>" --agent <实际宿主> --check
33
+ "<Node绝对路径>" "<完整包目录>/setup.mjs" --project "<同一业务目录>" --agent <实际宿主>
34
+ ```
35
+
36
+ 参数由Agent按实际情况填入。普通用户的新工作区默认正式发布目标,不询问环境;内部预发及个人包到公司包的迁移见[发布目标与工作区](skills/micro-app-development/references/workspace-environments.md),由目标工具核对受支持的来源版本。已有项目明确要求升级时,使用目标包的`cli.mjs update --check/update`,按[升级流程](skills/micro-app-development/references/tool-update.md)处理;不用setup覆盖原锁。缓存按版本+摘要保留,不删除旧缓存或手改锁绕过冲突;保留业务源码、身份、凭据、迁移、DEV数据和发布记录。
37
+
38
+ 按[Agent工作流](skills/micro-app-development/references/agent-workflow.md)实际读取当前项目宿主目录的micro-app-development Skill,运行其启动器doctor并核对项目锁。工具调用通过不等于宿主自动发现Skill;必要且无法自动完成时,只引导用户重载/新会话这一必要动作。安装不等于Node绑定、业务依赖、Docker或预览已就绪,分别验证。
39
+
40
+ 按[新用户全流程](skills/micro-app-development/references/user-journey.md)说明需求/权限、方案、开发预览、打包、注册上传、区域部署与验收,并指出当前下一步。已有需求继续推进,预览语言跟随对话。六个Skill按目标加载;新建应用按[设计流程](skills/micro-app-development/references/design-workflow.md)合并确认方向再实现,小修复直接处理,只设计任务止于设计。安装和本地打包不需要开发者凭据;上传时按系统凭据库优先、不可用时临时隐藏输入会话的规则处理,不向聊天索取密钥。
41
+
42
+ 平台领取凭证及上线操作按[平台操作与官方章节](skills/micro-app-development/references/platform-operations.md)引导;制品就绪后一次性简短给出部署、标签绑定和 SaaS 挂载的方向、对应文档和验收目标,不要求逐步回复,详细页面步骤看文档。本地工具与原任务跟踪仍由 Agent 完成,不以注册上传完成代替目标区、标签和 SaaS 可用验收。
43
+
44
+ 完整开发与交付细节按需查阅[开发与交付参考](skills/micro-app-development/references/development-guide.md);版本变化见完整包根目录 `CHANGELOG.md` 及 `package.json.microappKitRelease`。README 是用户总览,不替代工作流、专题契约或工具实际结果。
@@ -0,0 +1,46 @@
1
+ // Generate only the human/Agent-readable installation guide. No runtime installer or release state.
2
+ import { readFileSync, writeFileSync, mkdirSync, existsSync, rmSync } from 'node:fs';
3
+ import { join, resolve, sep } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { verifyBundle, realPathOnly } from '../runtime/integrity.mjs';
6
+ import { distributionPackage } from '../runtime/package-identity.mjs';
7
+ const source = fileURLToPath(new URL('../', import.meta.url));
8
+ export const INSTALL_PAGE = 'tuya-microapp-kit-install.md';
9
+
10
+ export function buildInstallPage(destination, bundleRoot = source) {
11
+ if (!destination) {
12
+ throw new Error('OUTPUT_REQUIRED');
13
+ }
14
+ const root = realPathOnly(bundleRoot);
15
+ destination = realPathOnly(destination);
16
+ if (destination === root || destination.startsWith(root + sep)) {
17
+ throw new Error('OUTPUT_INSIDE_SOURCE');
18
+ }
19
+ if (existsSync(destination)) {
20
+ throw new Error('OUTPUT_EXISTS');
21
+ }
22
+ const manifest = verifyBundle(root);
23
+ const pkg = distributionPackage(root);
24
+ if (pkg.version !== manifest.version) throw new Error('PACKAGE_VERSION_MISMATCH');
25
+ const page = readFileSync(join(root, 'bootstrap/install.md.in'), 'utf8')
26
+ .replaceAll('{{GUIDE_VERSION}}', pkg.version)
27
+ .replaceAll('{{PACKAGE_NAME}}', pkg.name);
28
+ mkdirSync(destination, { recursive: true });
29
+ try {
30
+ const file = join(destination, INSTALL_PAGE);
31
+ writeFileSync(file, page);
32
+ return { directory: destination, file, version: pkg.version };
33
+ } catch (error) {
34
+ rmSync(destination, { recursive: true, force: true });
35
+ throw error;
36
+ }
37
+ }
38
+
39
+ if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
40
+ try {
41
+ console.log(JSON.stringify(buildInstallPage(process.argv[2]), null, 2));
42
+ } catch (error) {
43
+ console.error(error.message);
44
+ process.exitCode = 1;
45
+ }
46
+ }
@@ -0,0 +1,80 @@
1
+ param(
2
+ [string]$Version = '24.22.1',
3
+ [string]$KitHome = $(if ($env:TUYA_MICROAPP_HOME) { $env:TUYA_MICROAPP_HOME } else { Join-Path $env:USERPROFILE '.tuya-microapp' })
4
+ )
5
+ $ErrorActionPreference = 'Stop'
6
+ if ($Version -notmatch '^24\.\d+\.\d+$' -or [version]$Version -lt [version]'24.22.1') { throw 'NODE_VERSION_UNSUPPORTED' }
7
+ if (-not [IO.Path]::IsPathRooted($KitHome)) { throw 'NODE_HOME_INVALID' }
8
+ function Read-NodeVersion([string]$File) {
9
+ if (-not $File -or -not (Test-Path -LiteralPath $File -PathType Leaf)) { return '' }
10
+ try {
11
+ $result = & $File --version 2>$null
12
+ if ($LASTEXITCODE -eq 0) { return [string]$result }
13
+ } catch { }
14
+ return ''
15
+ }
16
+ $original = Get-Command node -CommandType Application -ErrorAction SilentlyContinue | Select-Object -First 1
17
+ $originalPath = if ($original) { $original.Source } else { '' }
18
+ $originalVersion = Read-NodeVersion $originalPath
19
+ $originalState = if ($originalVersion) { 'preserved' } elseif ($originalPath) { 'unavailable-before-install' } else { 'absent' }
20
+ if ($originalVersion -match '^v24\.\d+\.\d+$' -and [version]$originalVersion.Substring(1) -ge [version]'24.22.1' -and (Test-Path -LiteralPath (Join-Path (Split-Path $originalPath) 'node_modules/npm/bin/npm-cli.js') -PathType Leaf)) {
21
+ Write-Output "NODE_PATH=$originalPath" "NODE_VERSION=$originalVersion" 'NODE_INSTALL_STATE=reused' "ORIGINAL_NODE_STATE=$originalState"
22
+ exit 0
23
+ }
24
+ $architecture = [Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString()
25
+ $arch = switch ($architecture) { 'X64' { 'x64' } 'Arm64' { 'arm64' } default { throw 'NODE_ARCH_UNSUPPORTED' } }
26
+ $name = "node-v$Version-win-$arch"
27
+ $root = Join-Path $KitHome 'node-versions'
28
+ $target = Join-Path $root $name
29
+ [IO.Directory]::CreateDirectory($root) | Out-Null
30
+ $node = Join-Path $target 'node.exe'
31
+ if (Test-Path -LiteralPath $target) {
32
+ if ((Read-NodeVersion $node) -ne "v$Version") { throw 'NODE_TARGET_CONFLICT' }
33
+ if (-not (Test-Path -LiteralPath (Join-Path $target 'npm.cmd') -PathType Leaf) -or -not (Test-Path -LiteralPath (Join-Path $target 'node_modules/npm/bin/npm-cli.js') -PathType Leaf)) { throw 'NODE_NPM_MISSING' }
34
+ Write-Output "NODE_PATH=$node" "NODE_VERSION=v$Version" 'NODE_INSTALL_STATE=reused' "ORIGINAL_NODE_STATE=$originalState"
35
+ exit 0
36
+ }
37
+ $lease = $null
38
+ $stage = $null
39
+ try {
40
+ try {
41
+ $lease = [IO.File]::Open((Join-Path $root ".$name.lock"), [IO.FileMode]::OpenOrCreate, [IO.FileAccess]::ReadWrite, [IO.FileShare]::None)
42
+ } catch { throw 'NODE_INSTALL_BUSY' }
43
+ if (Test-Path -LiteralPath $target) {
44
+ if ((Read-NodeVersion $node) -ne "v$Version") { throw 'NODE_TARGET_CONFLICT' }
45
+ if (-not (Test-Path -LiteralPath (Join-Path $target 'npm.cmd') -PathType Leaf) -or -not (Test-Path -LiteralPath (Join-Path $target 'node_modules/npm/bin/npm-cli.js') -PathType Leaf)) { throw 'NODE_NPM_MISSING' }
46
+ Write-Output "NODE_PATH=$node" "NODE_VERSION=v$Version" 'NODE_INSTALL_STATE=reused' "ORIGINAL_NODE_STATE=$originalState"
47
+ exit 0
48
+ }
49
+ $stage = Join-Path $root ('.node-stage-' + [guid]::NewGuid())
50
+ [IO.Directory]::CreateDirectory($stage) | Out-Null
51
+ $archive = "$name.zip"
52
+ $file = Join-Path $stage $archive
53
+ $base = "https://nodejs.org/dist/v$Version"
54
+ Write-Host 'Downloading a standalone Node archive and its official checksum.'
55
+ Invoke-WebRequest -Uri "$base/SHASUMS256.txt" -OutFile (Join-Path $stage 'SHASUMS256.txt') -MaximumRedirection 0 -TimeoutSec 180 -UseBasicParsing
56
+ Invoke-WebRequest -Uri "$base/$archive" -OutFile $file -MaximumRedirection 0 -TimeoutSec 600 -UseBasicParsing
57
+ $entries = @(Get-Content -LiteralPath (Join-Path $stage 'SHASUMS256.txt') | Where-Object { $_ -match ('^([a-f0-9]{64})\s+\*?' + [regex]::Escape($archive) + '$') })
58
+ if ($entries.Count -ne 1) { throw 'NODE_CHECKSUM_MISSING' }
59
+ $expected = ($entries[0] -split '\s+')[0]
60
+ if ((Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() -ne $expected) { throw 'NODE_CHECKSUM_MISMATCH' }
61
+ Add-Type -AssemblyName System.IO.Compression.FileSystem
62
+ $zip = [IO.Compression.ZipFile]::OpenRead($file)
63
+ try {
64
+ foreach ($entry in $zip.Entries) {
65
+ $path = $entry.FullName.Replace('\', '/')
66
+ if (-not $path.StartsWith("$name/") -or $path -match '(^|/)\.\.(/|$)|:') { throw 'NODE_ARCHIVE_INVALID' }
67
+ }
68
+ } finally { $zip.Dispose() }
69
+ Expand-Archive -LiteralPath $file -DestinationPath $stage
70
+ $unpacked = Join-Path $stage $name
71
+ if ((Read-NodeVersion (Join-Path $unpacked 'node.exe')) -ne "v$Version") { throw 'NODE_RUNTIME_INVALID' }
72
+ if (-not (Test-Path -LiteralPath (Join-Path $unpacked 'npm.cmd') -PathType Leaf) -or -not (Test-Path -LiteralPath (Join-Path $unpacked 'node_modules/npm/bin/npm-cli.js') -PathType Leaf)) { throw 'NODE_NPM_MISSING' }
73
+ if ($originalVersion -and (Read-NodeVersion $originalPath) -ne $originalVersion) { throw 'NODE_ORIGINAL_CHANGED' }
74
+ if (Test-Path -LiteralPath $target) { throw 'NODE_TARGET_CONFLICT' }
75
+ Move-Item -LiteralPath $unpacked -Destination $target
76
+ Write-Output "NODE_PATH=$node" "NODE_VERSION=v$Version" 'NODE_INSTALL_STATE=installed' "ORIGINAL_NODE_STATE=$originalState"
77
+ } finally {
78
+ if ($stage -and (Test-Path -LiteralPath $stage)) { Remove-Item -LiteralPath $stage -Recurse -Force }
79
+ if ($lease) { $lease.Dispose() }
80
+ }
@@ -0,0 +1,94 @@
1
+ #!/bin/sh
2
+ # Standalone user-level Node installation. No npm, Homebrew, sudo or shell-profile changes.
3
+ set -eu
4
+ version=24.22.1
5
+ while [ "$#" -gt 0 ]; do
6
+ case "$1" in
7
+ --version) [ "$#" -ge 2 ] || exit 2; version=$2; shift 2 ;;
8
+ *) printf '%s\n' 'Usage: sh install-node.sh [--version 24.x.y]' >&2; exit 2 ;;
9
+ esac
10
+ done
11
+ case "$version" in ''|*[!0-9.]*) printf '%s\n' 'NODE_VERSION_UNSUPPORTED' >&2; exit 1 ;; esac
12
+ printf '%s\n' "$version" | awk -F. 'NF != 3 || $1 != 24 || $2 !~ /^[0-9]+$/ || $3 !~ /^[0-9]+$/ || $2 < 22 || ($2 == 22 && $3 < 1) {exit 1}' || {
13
+ printf '%s\n' 'NODE_VERSION_UNSUPPORTED: choose Node 24.x >=24.22.1.' >&2; exit 1;
14
+ }
15
+ node_ok() {
16
+ printf '%s\n' "$1" | awk -F. '$1 != "v24" || NF != 3 || $2 !~ /^[0-9]+$/ || $3 !~ /^[0-9]+$/ || $2 < 22 || ($2 == 22 && $3 < 1) {exit 1}'
17
+ }
18
+ original_node=$(command -v node 2>/dev/null || true)
19
+ original_version=
20
+ original_state=absent
21
+ if [ -n "$original_node" ]; then
22
+ original_state=unavailable-before-install
23
+ if ! original_version=$("$original_node" --version 2>/dev/null); then original_version=; fi
24
+ [ -z "$original_version" ] || original_state=preserved
25
+ if node_ok "$original_version" && [ -n "$original_version" ] && [ -f "$(dirname "$original_node")/../lib/node_modules/npm/bin/npm-cli.js" ]; then
26
+ printf '%s\n' "NODE_PATH=$original_node" "NODE_VERSION=$original_version" 'NODE_INSTALL_STATE=reused' "ORIGINAL_NODE_STATE=$original_state"; exit 0
27
+ fi
28
+ fi
29
+ case "$(uname -s)" in Darwin) os=darwin ;; Linux) os=linux ;; *) printf '%s\n' 'NODE_PLATFORM_UNSUPPORTED: use the Windows PowerShell entry on Windows.' >&2; exit 1 ;; esac
30
+ case "$(uname -m)" in arm64|aarch64) arch=arm64 ;; x86_64|amd64) arch=x64 ;; *) printf '%s\n' 'NODE_ARCH_UNSUPPORTED' >&2; exit 1 ;; esac
31
+ for tool in curl tar awk mktemp; do command -v "$tool" >/dev/null || { printf '%s\n' "NODE_TOOL_REQUIRED: $tool" >&2; exit 1; }; done
32
+ if command -v sha256sum >/dev/null; then hash_tool=sha256sum
33
+ elif command -v shasum >/dev/null; then hash_tool=shasum
34
+ else printf '%s\n' 'NODE_TOOL_REQUIRED: sha256sum or shasum' >&2; exit 1; fi
35
+ kit_root=${TUYA_MICROAPP_HOME:-"$HOME/.tuya-microapp"}
36
+ case "$kit_root" in /*) ;; *) printf '%s\n' 'NODE_HOME_INVALID: use an absolute user directory.' >&2; exit 1 ;; esac
37
+ name=node-v$version-$os-$arch
38
+ node_root=$kit_root/node-versions
39
+ target=$node_root/$name
40
+ mkdir -p "$node_root"
41
+ if [ -e "$target" ]; then
42
+ actual=$("$target/bin/node" --version 2>/dev/null || true)
43
+ [ "$actual" = "v$version" ] || { printf '%s\n' 'NODE_TARGET_CONFLICT: retain and inspect the existing directory.' >&2; exit 1; }
44
+ [ -f "$target/bin/npm" ] && [ -f "$target/lib/node_modules/npm/bin/npm-cli.js" ] || { printf '%s\n' 'NODE_NPM_MISSING' >&2; exit 1; }
45
+ printf '%s\n' "NODE_PATH=$target/bin/node" "NODE_VERSION=$actual" 'NODE_INSTALL_STATE=reused' "ORIGINAL_NODE_STATE=$original_state"; exit 0
46
+ fi
47
+ lease=$node_root/.$name.lock
48
+ if ! mkdir "$lease" 2>/dev/null; then
49
+ printf '%s\n' 'NODE_INSTALL_BUSY: inspect or wait for the original installation; do not start a duplicate task.' >&2
50
+ exit 1
51
+ fi
52
+ printf '%s\n' "$$" > "$lease/pid"
53
+ stage=
54
+ transfer_pid=
55
+ cleanup() {
56
+ if [ -n "$transfer_pid" ]; then kill "$transfer_pid" 2>/dev/null || true; wait "$transfer_pid" 2>/dev/null || true; fi
57
+ [ -z "$stage" ] || rm -rf "$stage"
58
+ rm -f "$lease/pid"
59
+ rmdir "$lease" 2>/dev/null || true
60
+ }
61
+ trap cleanup EXIT
62
+ trap 'exit 130' INT TERM HUP
63
+ download() {
64
+ "$@" &
65
+ transfer_pid=$!
66
+ transfer_code=0
67
+ wait "$transfer_pid" || transfer_code=$?
68
+ transfer_pid=
69
+ return "$transfer_code"
70
+ }
71
+ stage=$(mktemp -d "$node_root/.node-stage.XXXXXX")
72
+ archive=$name.tar.gz
73
+ base=https://nodejs.org/dist/v$version
74
+ printf '%s\n' 'Checking the official checksum and downloading a standalone Node archive.' >&2
75
+ download curl --fail --silent --show-error --location --proto '=https' --proto-redir '=https' --connect-timeout 10 --max-time 180 --output "$stage/SHASUMS256.txt" "$base/SHASUMS256.txt"
76
+ download curl --fail --silent --show-error --location --proto '=https' --proto-redir '=https' --connect-timeout 10 --max-time 600 --output "$stage/$archive" "$base/$archive"
77
+ expected=$(awk -v file="$archive" '$2 == file || $2 == "*" file {print $1}' "$stage/SHASUMS256.txt")
78
+ printf '%s\n' "$expected" | awk 'length != 64 || /[^a-f0-9]/ {exit 1}' || { printf '%s\n' 'NODE_CHECKSUM_MISSING' >&2; exit 1; }
79
+ if [ "$hash_tool" = sha256sum ]; then actual=$(sha256sum "$stage/$archive" | awk '{print $1}')
80
+ else actual=$(shasum -a 256 "$stage/$archive" | awk '{print $1}'); fi
81
+ [ "$expected" = "$actual" ] || { printf '%s\n' 'NODE_CHECKSUM_MISMATCH: archive was not executed.' >&2; exit 1; }
82
+ tar -tzf "$stage/$archive" > "$stage/entries"
83
+ awk -v root="$name" 'index($0,root "/") != 1 || $0 ~ /(^|\/)\.\.(\/|$)/ {bad=1} END {exit bad}' "$stage/entries" || { printf '%s\n' 'NODE_ARCHIVE_INVALID' >&2; exit 1; }
84
+ printf '%s\n' 'Checksum verified. Extracting and checking the new and original runtimes.' >&2
85
+ tar -xzf "$stage/$archive" -C "$stage"
86
+ [ "$("$stage/$name/bin/node" --version)" = "v$version" ] || { printf '%s\n' 'NODE_RUNTIME_INVALID' >&2; exit 1; }
87
+ [ -f "$stage/$name/bin/npm" ] && [ -f "$stage/$name/lib/node_modules/npm/bin/npm-cli.js" ] || { printf '%s\n' 'NODE_NPM_MISSING' >&2; exit 1; }
88
+ if [ -n "$original_version" ]; then
89
+ after=$("$original_node" --version 2>/dev/null || true)
90
+ [ "$after" = "$original_version" ] || { printf '%s\n' 'NODE_ORIGINAL_CHANGED: inspect the original runtime; no global changes were made by this script.' >&2; exit 1; }
91
+ fi
92
+ [ ! -e "$target" ] || { printf '%s\n' 'NODE_TARGET_CONFLICT' >&2; exit 1; }
93
+ mv "$stage/$name" "$target"
94
+ printf '%s\n' "NODE_PATH=$target/bin/node" "NODE_VERSION=v$version" 'NODE_INSTALL_STATE=installed' "ORIGINAL_NODE_STATE=$original_state"