miniprogram-ci 2.1.33 → 2.1.34

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 (364) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/@types/build-server/constant.d.ts +42 -0
  4. package/dist/@types/build-server/ctxManager.d.ts +2 -0
  5. package/dist/@types/build-server/fileCacheManager.d.ts +43 -0
  6. package/dist/@types/build-server/fileTaskDriver.d.ts +36 -0
  7. package/dist/@types/build-server/subProcess.d.ts +1 -0
  8. package/dist/@types/build-server/subTaskManager.d.ts +8 -0
  9. package/dist/@types/build-server/taskDriver.d.ts +68 -0
  10. package/dist/@types/build-server/taskFactory.d.ts +22 -0
  11. package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +1 -0
  12. package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +5 -0
  13. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +19 -0
  14. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +10 -0
  15. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +23 -0
  16. package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +7 -0
  17. package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +29 -0
  18. package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +44 -0
  19. package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +3 -0
  20. package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +36 -0
  21. package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +43 -0
  22. package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +10 -0
  23. package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +2 -0
  24. package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +50 -0
  25. package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +20 -0
  26. package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +25 -0
  27. package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +13 -0
  28. package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +33 -0
  29. package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +92 -0
  30. package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +17 -0
  31. package/dist/@types/build-server/tasks/common/constants.config.d.ts +549 -0
  32. package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +15 -0
  33. package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +3 -0
  34. package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +11 -0
  35. package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +35 -0
  36. package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +1 -0
  37. package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +10 -0
  38. package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +72 -0
  39. package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +16 -0
  40. package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +16 -0
  41. package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +11 -0
  42. package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +18 -0
  43. package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +17 -0
  44. package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +9 -0
  45. package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +4 -0
  46. package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +8 -0
  47. package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
  48. package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +17 -0
  49. package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +14 -0
  50. package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +13 -0
  51. package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +7 -0
  52. package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
  53. package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
  54. package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +22 -0
  55. package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
  56. package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +5 -0
  57. package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +2 -0
  58. package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +20 -0
  59. package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +5 -0
  60. package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +30 -0
  61. package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +21 -0
  62. package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +142 -0
  63. package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +3 -0
  64. package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +39 -0
  65. package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
  66. package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +2 -0
  67. package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +8 -0
  68. package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +2 -0
  69. package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
  70. package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +50 -0
  71. package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +3 -0
  72. package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +34 -0
  73. package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +11 -0
  74. package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +14 -0
  75. package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +28 -0
  76. package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +1 -0
  77. package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +1 -0
  78. package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +2 -0
  79. package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +9 -0
  80. package/dist/@types/build-server/tasks/common/weapp.config.d.ts +108 -0
  81. package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +2 -0
  82. package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +1 -0
  83. package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +8 -0
  84. package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +26 -0
  85. package/dist/@types/build-server/testAppConfig.d.ts +1 -0
  86. package/dist/@types/build-server/testAppservice.d.ts +1 -0
  87. package/dist/@types/build-server/testInitSourceCompile.d.ts +1 -0
  88. package/dist/@types/build-server/testPageframe.d.ts +1 -0
  89. package/dist/@types/build-server/testSubProcess.d.ts +1 -0
  90. package/dist/@types/build-server/utils/fileTask.d.ts +5 -0
  91. package/dist/@types/build-server/utils/getFileOrCache.d.ts +24 -0
  92. package/dist/@types/build-server/utils/process.d.ts +0 -0
  93. package/dist/@types/build-server/utils/request.d.ts +47 -0
  94. package/dist/@types/bussinessMonitor/monitor.d.ts +1 -0
  95. package/dist/@types/config/config.d.ts +1 -1
  96. package/dist/@types/index.d.ts +0 -2
  97. package/dist/@types/modules/corecompiler/original/workerThread/task/func.d.ts +0 -4
  98. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +0 -4
  99. package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +4 -0
  100. package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +12 -0
  101. package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +9 -0
  102. package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +32 -0
  103. package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +18 -0
  104. package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +12 -0
  105. package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +7 -0
  106. package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +10 -0
  107. package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +13 -0
  108. package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +48 -0
  109. package/dist/@types/modules/fullcompiler/filerules.d.ts +5 -0
  110. package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +11 -0
  111. package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +11 -0
  112. package/dist/@types/modules/fullcompiler/index.d.ts +31 -0
  113. package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +10 -0
  114. package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +13 -0
  115. package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +10 -0
  116. package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +11 -0
  117. package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +21 -0
  118. package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +18 -0
  119. package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +11 -0
  120. package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +12 -0
  121. package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +3 -0
  122. package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +14 -0
  123. package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +3 -0
  124. package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +3 -0
  125. package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +14 -0
  126. package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +9 -0
  127. package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +3 -0
  128. package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +42 -0
  129. package/dist/@types/modules/fullcompiler/utils/index.d.ts +4 -0
  130. package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +23 -0
  131. package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +40 -0
  132. package/dist/@types/modules/fullcompiler/utils/tools.d.ts +15 -0
  133. package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +1 -0
  134. package/dist/@types/project/serverProject.d.ts +38 -0
  135. package/dist/@types/services/app/server/appDirService.d.ts +6 -0
  136. package/dist/@types/services/builder/server/builder.d.ts +4 -0
  137. package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +23 -0
  138. package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +16 -0
  139. package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +26 -0
  140. package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +5 -0
  141. package/dist/@types/services/compilewxml/server/wccWorker.d.ts +1 -0
  142. package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +4 -0
  143. package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +1 -0
  144. package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +4 -0
  145. package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +4 -0
  146. package/dist/@types/services/fs/server/fileService.d.ts +27 -0
  147. package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +3 -0
  148. package/dist/@types/services/global/server/global.d.ts +6 -0
  149. package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +4 -0
  150. package/dist/@types/services/locales/server/const.d.ts +5 -0
  151. package/dist/@types/services/locales/server/locales.d.ts +5 -0
  152. package/dist/@types/services/log/server/logService.d.ts +9 -0
  153. package/dist/@types/services/miniappjson/server/miniappjson.d.ts +4 -0
  154. package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +5 -0
  155. package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +1 -0
  156. package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +18 -0
  157. package/dist/@types/services/nativeModule/server/nativeModule.d.ts +3 -0
  158. package/dist/@types/services/performance/server/performance.d.ts +7 -0
  159. package/dist/@types/services/pluginFileReader/common/pluginFileReader.d.ts +3 -4
  160. package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +18 -0
  161. package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +11 -0
  162. package/dist/@types/services/projectManager/server/projectManager.d.ts +7 -0
  163. package/dist/@types/services/root/server/root.d.ts +11 -0
  164. package/dist/@types/services/root/server/rootService.d.ts +2 -0
  165. package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +4 -0
  166. package/dist/@types/services/store/server/storeService.d.ts +11 -0
  167. package/dist/@types/services/uniapp/server/uniapp.d.ts +4 -0
  168. package/dist/build-server/constant.js +1 -0
  169. package/dist/build-server/ctxManager.js +1 -0
  170. package/dist/build-server/fileCacheManager.js +1 -0
  171. package/dist/build-server/fileTaskDriver.js +1 -0
  172. package/dist/build-server/subProcess.js +1 -0
  173. package/dist/build-server/subTaskManager.js +1 -0
  174. package/dist/build-server/taskDriver.js +1 -0
  175. package/dist/build-server/taskFactory.js +1 -0
  176. package/dist/build-server/tasks/appserviceCompile/index.js +1 -0
  177. package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +1 -0
  178. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +1 -0
  179. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +1 -0
  180. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +1 -0
  181. package/dist/build-server/tasks/baseFileCompiler/OTService.js +1 -0
  182. package/dist/build-server/tasks/baseFileCompiler/enhance.js +1 -0
  183. package/dist/build-server/tasks/baseFileCompiler/es6module.js +1 -0
  184. package/dist/build-server/tasks/baseFileCompiler/index.js +1 -0
  185. package/dist/build-server/tasks/baseFileCompiler/javascript.js +1 -0
  186. package/dist/build-server/tasks/baseFileCompiler/less.js +1 -0
  187. package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +1 -0
  188. package/dist/build-server/tasks/baseFileCompiler/readFile.js +1 -0
  189. package/dist/build-server/tasks/baseFileCompiler/sass.js +1 -0
  190. package/dist/build-server/tasks/baseFileCompiler/terser.js +1 -0
  191. package/dist/build-server/tasks/baseFileCompiler/typescript.js +1 -0
  192. package/dist/build-server/tasks/baseFileCompiler/worklet.js +1 -0
  193. package/dist/build-server/tasks/baseFileCompiler/wxss.js +1 -0
  194. package/dist/build-server/tasks/common/apperrcode.config.js +1 -0
  195. package/dist/build-server/tasks/common/compiletype.config.js +1 -0
  196. package/dist/build-server/tasks/common/constants.config.js +1 -0
  197. package/dist/build-server/tasks/common/simulatortype.config.js +1 -0
  198. package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +1 -0
  199. package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +1 -0
  200. package/dist/build-server/tasks/common/utils/builder/builder.js +1 -0
  201. package/dist/build-server/tasks/common/utils/builder/filter.js +1 -0
  202. package/dist/build-server/tasks/common/utils/builder/index.js +1 -0
  203. package/dist/build-server/tasks/common/utils/cache/compile.js +1 -0
  204. package/dist/build-server/tasks/common/utils/cache/config.js +1 -0
  205. package/dist/build-server/tasks/common/utils/cache/filecompile.js +1 -0
  206. package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +1 -0
  207. package/dist/build-server/tasks/common/utils/cache/manager.js +1 -0
  208. package/dist/build-server/tasks/common/utils/cache/persistcache.js +1 -0
  209. package/dist/build-server/tasks/common/utils/cache/reporter.js +1 -0
  210. package/dist/build-server/tasks/common/utils/colorutils.js +1 -0
  211. package/dist/build-server/tasks/common/utils/common/bindActionTools.js +1 -0
  212. package/dist/build-server/tasks/common/utils/common/schema.helper.js +1 -0
  213. package/dist/build-server/tasks/common/utils/common/tools.js +1 -0
  214. package/dist/build-server/tasks/common/utils/common/waitable.js +1 -0
  215. package/dist/build-server/tasks/common/utils/filerules.js +1 -0
  216. package/dist/build-server/tasks/common/utils/fsutils.js +1 -0
  217. package/dist/build-server/tasks/common/utils/handleError.js +1 -0
  218. package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +1 -0
  219. package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +1 -0
  220. package/dist/build-server/tasks/common/utils/partialcompile.js +1 -0
  221. package/dist/build-server/tasks/common/utils/project/appconfig.js +1 -0
  222. package/dist/build-server/tasks/common/utils/project/appjson.js +1 -0
  223. package/dist/build-server/tasks/common/utils/project/customcomponent.js +1 -0
  224. package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +1 -0
  225. package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +1 -0
  226. package/dist/build-server/tasks/common/utils/project/helper/index.js +1 -0
  227. package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +1 -0
  228. package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +1 -0
  229. package/dist/build-server/tasks/common/utils/project/helper/theme.js +1 -0
  230. package/dist/build-server/tasks/common/utils/project/online/appconfig.js +1 -0
  231. package/dist/build-server/tasks/common/utils/project/pagejson.js +1 -0
  232. package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +1 -0
  233. package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +1 -0
  234. package/dist/build-server/tasks/common/utils/subpackageUtils.js +1 -0
  235. package/dist/build-server/tasks/common/utils/tracing/Trace.js +1 -0
  236. package/dist/build-server/tasks/common/utils/tracing/aegis.js +1 -0
  237. package/dist/build-server/tasks/common/utils/tracing/index.js +1 -0
  238. package/dist/build-server/tasks/common/utils/tracing/readiness.js +1 -0
  239. package/dist/build-server/tasks/common/utils/tracing/report.js +1 -0
  240. package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +1 -0
  241. package/dist/build-server/tasks/common/utils/transformsourcemap.js +1 -0
  242. package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +1 -0
  243. package/dist/build-server/tasks/common/utils/web/md5.js +1 -0
  244. package/dist/build-server/tasks/common/utils/web/processPath.js +1 -0
  245. package/dist/build-server/tasks/common/weapp.config.js +1 -0
  246. package/dist/build-server/tasks/pageInitSourceCompile/index.js +1 -0
  247. package/dist/build-server/tasks/pageframeCompile/index.js +1 -0
  248. package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +1 -0
  249. package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +1 -0
  250. package/dist/build-server/testAppConfig.js +1 -0
  251. package/dist/build-server/testAppservice.js +1 -0
  252. package/dist/build-server/testInitSourceCompile.js +1 -0
  253. package/dist/build-server/testPageframe.js +1 -0
  254. package/dist/build-server/testSubProcess.js +1 -0
  255. package/dist/build-server/utils/fileTask.js +1 -0
  256. package/dist/build-server/utils/getFileOrCache.js +1 -0
  257. package/dist/build-server/utils/process.js +1 -0
  258. package/dist/build-server/utils/request.js +1 -0
  259. package/dist/bussinessMonitor/monitor.js +1 -0
  260. package/dist/config/config.js +1 -1
  261. package/dist/index.js +1 -1
  262. package/dist/manifest.json +4 -0
  263. package/dist/modules/corecompiler/original/workerThread/task/func.js +1 -1
  264. package/dist/modules/corecompiler/processHandler.js +1 -1
  265. package/dist/modules/corecompiler/summer/pipeManager/index.js +1 -1
  266. package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +1 -1
  267. package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +1 -1
  268. package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +1 -1
  269. package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +1 -1
  270. package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +1 -1
  271. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +1 -1
  272. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +1 -1
  273. package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +1 -1
  274. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +1 -1
  275. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +1 -1
  276. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +1 -1
  277. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +1 -1
  278. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +1 -1
  279. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +1 -1
  280. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +1 -1
  281. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +1 -1
  282. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +1 -1
  283. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +1 -1
  284. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +1 -1
  285. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +1 -1
  286. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +1 -1
  287. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +1 -1
  288. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +1 -1
  289. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +1 -1
  290. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +1 -1
  291. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +1 -1
  292. package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +1 -1
  293. package/dist/modules/corecompiler/summer/pipeManager/types.js +1 -1
  294. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  295. package/dist/modules/fullcompiler/appservice/appservice.config.js +1 -0
  296. package/dist/modules/fullcompiler/appservice/generatecode.utils.js +1 -0
  297. package/dist/modules/fullcompiler/appservice/getappservice.js +1 -0
  298. package/dist/modules/fullcompiler/appservice/getcompiledjs.js +1 -0
  299. package/dist/modules/fullcompiler/appservice/getjsfile.js +1 -0
  300. package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +1 -0
  301. package/dist/modules/fullcompiler/appservice/getsubpackage.js +1 -0
  302. package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +1 -0
  303. package/dist/modules/fullcompiler/appservice/getwxappcode.js +1 -0
  304. package/dist/modules/fullcompiler/config/apperrcode.config.js +1 -0
  305. package/dist/modules/fullcompiler/filerules.js +1 -0
  306. package/dist/modules/fullcompiler/getallrawfiles.js +1 -0
  307. package/dist/modules/fullcompiler/getallwmltohtmlmap.js +1 -0
  308. package/dist/modules/fullcompiler/index.js +1 -0
  309. package/dist/modules/fullcompiler/pageframe/getsubpackage.js +1 -0
  310. package/dist/modules/fullcompiler/pageframe/getwxappcode.js +1 -0
  311. package/dist/modules/fullcompiler/pageframe/index.js +1 -0
  312. package/dist/modules/fullcompiler/trans/transwxmltojs.js +1 -0
  313. package/dist/modules/fullcompiler/trans/transwxsstojs.js +1 -0
  314. package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +1 -0
  315. package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +1 -0
  316. package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +1 -0
  317. package/dist/modules/fullcompiler/utils/appconfig/appjson.js +1 -0
  318. package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +1 -0
  319. package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +1 -0
  320. package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +1 -0
  321. package/dist/modules/fullcompiler/utils/filewriter/index.js +1 -0
  322. package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +1 -0
  323. package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +1 -0
  324. package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +1 -0
  325. package/dist/modules/fullcompiler/utils/index.js +1 -0
  326. package/dist/modules/fullcompiler/utils/taskmanager.js +1 -0
  327. package/dist/modules/fullcompiler/utils/theme/index.js +1 -0
  328. package/dist/modules/fullcompiler/utils/tools.js +1 -0
  329. package/dist/modules/fullcompiler/utils/transformsourcemap.js +1 -0
  330. package/dist/project/serverProject.js +1 -0
  331. package/dist/services/app/server/appDirService.js +1 -0
  332. package/dist/services/builder/server/builder.js +1 -0
  333. package/dist/services/compileCacheManager/common/compileCacheManager.js +1 -0
  334. package/dist/services/compileCacheManager/nw/compileCacheManager.js +1 -0
  335. package/dist/services/compileCacheManager/server/compileCacheManager.js +1 -0
  336. package/dist/services/compilewxml/server/compilewxmlService.js +1 -0
  337. package/dist/services/compilewxml/server/wccWorker.js +1 -0
  338. package/dist/services/compilewxss/server/compilewxssService.js +1 -0
  339. package/dist/services/compilewxss/server/wcscWorker.js +1 -0
  340. package/dist/services/consoledisplay/server/consoledisplay.js +1 -0
  341. package/dist/services/fileUtilsManager/server/fileUtilsManager.js +1 -0
  342. package/dist/services/fs/server/fileService.js +1 -0
  343. package/dist/services/genTempFile/server/genTempFileService.js +1 -0
  344. package/dist/services/global/server/global.js +1 -0
  345. package/dist/services/initializeCheck/server/initializeCheck.js +1 -0
  346. package/dist/services/locales/server/const.js +1 -0
  347. package/dist/services/locales/server/locales.js +1 -0
  348. package/dist/services/log/server/logService.js +1 -0
  349. package/dist/services/miniappjson/server/miniappjson.js +1 -0
  350. package/dist/services/multiTaskManager/server/multiTaskManager.js +1 -0
  351. package/dist/services/multiTaskManager/server/pm2TaskWorker.js +1 -0
  352. package/dist/services/multiTaskManager/server/pm2WorkerManager.js +1 -0
  353. package/dist/services/nativeModule/server/nativeModule.js +1 -0
  354. package/dist/services/performance/server/performance.js +1 -0
  355. package/dist/services/pluginFileReader/server/pluginFileReader.js +1 -0
  356. package/dist/services/projectManager/server/buildServerProjectManager.js +1 -0
  357. package/dist/services/projectManager/server/projectManager.js +1 -0
  358. package/dist/services/root/server/root.js +1 -0
  359. package/dist/services/root/server/rootService.js +1 -0
  360. package/dist/services/staticConfig/server/staticConfigService.js +1 -0
  361. package/dist/services/store/server/storeService.js +1 -0
  362. package/dist/services/uniapp/server/uniapp.js +1 -0
  363. package/dist/utils/subprocess/processService.js +1 -1
  364. package/package.json +3 -60
@@ -0,0 +1 @@
1
+ !function(e,_){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,_,n){try{return{success:!0,content:await s(e,_,n)}}catch(n){return{success:!1,content:await(0,a.handleError)(e,_,n)}}};const a=e("../utils/handleerror/handleerror"),n=e("../trans/transwxmltojs"),t=e("../trans/transwxsstojs"),r=e("../utils"),o=e("./getwxappcode");async function s(e,_,a){const s=[];s.push("\n var __subPageFrameStartTime__ = __subPageFrameStartTime__ || Date.now();\n var __webviewId__ = __webviewId__;\n var __wxAppCode__= __wxAppCode__ || {};\n var __WXML_GLOBAL__= __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0};\n var __vd_version_info__=__vd_version_info__||{};\n var __subPageFrameEndTime__ = Date.now();\n ");const i=await(0,n.transWXMLToJS)(e,_,{app:!1,page:a.subpkgConfig.root});s.push(i.code);const p=await(0,t.transWXSSToJS)(e,_,{app:!1,page:a.subpkgConfig.root});s.push((0,r.escapeByEval)(p.comm));const u=await(0,o.getPageFrameWxAppCode)(e,_,{app:!1,noJson:!0,page:a.subpkgConfig.root});return s.push(`;(window.eval || __global.__hackEval)(\`${u}\`)`),s.push(";var __subPageFrameEndTime__ = Date.now()"),s.join("\n\n")}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWxAppCodeWxmlOfPage=i,exports.getWxAppCodeWxssOfPage=u,exports.getWxAppCodeJsonOfPage=d,exports.getPageFrameWxAppCode=async function(e,t,o={}){const{app:p,page:c}=o;let f,l="$gwx";const g=await n.default.getAppConfig(e,t);if(!p){if(f=(0,s.checkIsInSubPackage)(g,c),!f)return"";l=`$${Buffer.from(f.root).toString("hex")}`}const x=await(0,a.getFileListJustInPack)(e,t,g,f),_=new r.default;for(let n=0,s=x.length;n<s;n++)o.noJson||_.addTask(d,e,t,x[n]),_.addTask(i,e,t,x[n],l),o.noWXSS||_.addTask(u,e,t,x[n]);const w=[],m=await _.runAllAsync();for(const e of m)w.push(...e);return w.join("\n")};const o=e("tslib"),n=o.__importDefault(e("../utils/appconfig/appconfig")),s=e("../../../utils/tools"),a=e("../utils/appconfig/checkcustomcomponent"),p=o.__importDefault(e("../utils/appconfig/wxappcodejson")),c=e("../trans/transwxsstojs"),r=o.__importDefault(e("../utils/taskmanager"));async function i(e,t,o,n){const s=[],a=encodeURI(o);return s.push(`__wxAppCode__[decodeURI("${a}") + ".wxml"]=${n}("./" + decodeURI("${a}") + ".wxml")`),s}async function u(e,t,o){const n=[],s=await(0,c.transWXSSToJS)(e,t,{page:o});if(s.page){const e=encodeURI(o);n.push(`__wxAppCode__[decodeURI("${e}") + ".wxss"]=${s.page}`)}return n}async function d(e,t,o){const n=[],s=encodeURI(o),a=await(0,p.default)(e,t,o);return n.push(`__wxAppCode__[decodeURI("${s}") + ".json"]=${JSON.stringify(a)}`),n}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(t,e,n){try{return{success:!0,content:await s(t,e,n)}}catch(n){return{success:!1,content:await(0,a.handleError)(t,e,n)}}};const a=t("../utils/handleerror/handleerror"),n=t("../trans/transwxmltojs"),_=t("../trans/transwxsstojs"),i=t("../utils"),r=t("./getwxappcode");async function s(t,e,a){const s=[];!0!==a.multi&&s.push('\n <!DOCTYPE html>\n\t\t <html lang="zh-CN">\n\t\t\t <head>\n\t\t\t <meta charset="UTF-8" />\n\t\t\t\t\t <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />\n\t\t\t\t\t <meta http-equiv="Content-Security-Policy" content="script-src \'self\' \'unsafe-inline\' \'unsafe-eval\'">\n\t\t\t\t\t <link rel="icon" href="data:image/ico;base64,aWNv">\n\t\t \t<script>'),s.push("var __mainPageFrameReady__ = window.__mainPageFrameReady__ || function(){}; var __pageFrameStartTime__ = __pageFrameStartTime__ || Date.now(); var __webviewId__ = __webviewId__;\n var __wxAppCode__ = __wxAppCode__ || {}; var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0}; var __vd_version_info__=__vd_version_info__||{}; \n ");const o=await(0,n.transWXMLToJS)(t,e,{app:!0});s.push(o.code);const c=await(0,_.transWXSSToJS)(t,e,{app:!0});s.push((0,i.escapeByEval)(c.comm));const p=await(0,r.getPageFrameWxAppCode)(t,e,{app:!0,noJson:!0});return s.push(`;(window.eval || __global.__hackEval)(\`${p}\`)`),s.push(";__mainPageFrameReady__() ;var __pageFrameEndTime__ = Date.now();"),!0!==a.multi&&s.push("<\/script> </head> <body> <div></div> </body> </html>"),s.join("\n\n")}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transWXMLToJS=async function(t,e,o){n.default.updateState(t);const p=await i.default.getAppConfig(t,e),{app:u,page:f}=o;let g;if(!u&&(g=(0,c.checkIsInSubPackage)(p,f),!g))return{code:"",name:"$gwx"};const m=await async function(t,e,o){try{return await async function(t,e,o){const{appConfig:i,config:c}=o,r=await e.getPackageWxmlAndWxsFiles((null==c?void 0:c.root)||"__APP__"),s=n.default.filter(r.wxmlFiles),{wxsFiles:p}=r;let u,f=s.concat(p),g=!1;(null==p?void 0:p.length)>0&&(g=!0),f=f.map((t=>`./${t}`)),r&&(u=r.content);const m=c?`$${Buffer.from(c.root).toString("hex")}`:"$gwx",w=">_<"+Date.now()%1e4,x=(await(0,a.getWxmlCompileConfig)(t,e,i,c)).join(w);return await(0,l.compileWxml)({files:f,isCut:!1,configSplit:w,configContent:x,hasWxs:g,genfuncName:m,cwd:t.srcPath||t.projectPath,replaceContent:u})}(t,e,o)}catch(t){throw function(t){const e=new Error(r);return e.code=s,e.msgForConsole=t.message,e}(t)}}(t,e,{appConfig:p,config:g}),{name:w,code:x}=m;return{name:w,code:x}};const o=t("tslib"),n=o.__importDefault(t("../../../utils/packOptionsHelper")),i=o.__importDefault(t("../utils/appconfig/appconfig")),a=t("../utils/appconfig/checkcustomcomponent"),c=t("../utils/tools"),l=t("./wxml/compilewxml");const r="编译 .wxml 文件错误,错误信息如上,可在控制台查看更详细信息",s=10040}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(o,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWxssFilesAndContent=async function(o,t,e){const{config:s}=e,n=await t.getPackageWxssFiles((null==s?void 0:s.root)||"__APP__");return{wxssFiles:n.wxssFiles,content:n.content}},exports.transWXSSToJS=async function(o,t,e={}){n.default.updateState(o);const{app:s,page:a}=e,l=await i.default.getAppConfig(o,t);if(s){const e=await u(o,t,{appConfig:l})||{};return{comm:(null==e?void 0:e.comm)||""}}const r=`./${a}.wxss`,p=(0,c.checkIsInSubPackage)(l,a);if(!p){const e=await u(o,t,{appConfig:l});return{comm:null==e?void 0:e.comm,page:(null==e?void 0:e[r])||""}}const f=await u(o,t,{appConfig:l,config:p});return{comm:(null==f?void 0:f.comm)||"",page:(null==f?void 0:f[r])||""}};const e=o("tslib"),s=e.__importDefault(o("path")),n=e.__importDefault(o("../../../utils/packOptionsHelper")),a=e.__importDefault(o("../../../utils/locales/locales")),i=e.__importDefault(o("../utils/appconfig/appconfig")),c=o("../../../utils/tools"),l=o("../config/apperrcode.config"),r=o("../utils/appconfig/checkcustomcomponent"),p=o("./wxss/compilewxss");async function u(o,t,e){try{return await async function(o,t,e){const{appConfig:n,config:a,lazyload:i}=e,c=await t.getPackageWxssFiles((null==a?void 0:a.root)||"__APP__"),l=c.wxssFiles,u={};l.forEach((o=>{u[o]=!0}));const f=(null==a?void 0:a.pages.map((o=>s.default.posix.join(a.root,o))))||n.pages,g=[];let d,m=0;f.forEach((o=>{u[`${o}.wxss`]&&(m++,g.push(`./${o}.wxss`),delete u[`${o}.wxss`])})),(await(0,r.getWxssCompileConfig)(o,t,n,a)).forEach((o=>{u[`${o}.wxss`]&&(m++,g.push(`./${o}.wxss`),delete u[`${o}.wxss`])}));for(const o in u)"app.wxss"===o&&0===m&&(m=1),g.push(`./${o}`);return c&&(d=c.content),await(0,p.compileWxss)({pageCount:m,files:g,cwd:o.srcPath||o.projectPath,subPackage:null==a?void 0:a.root,lazyload:i,replaceContent:d})}(o,t,e)}catch(o){if("CustomError"===(null==o?void 0:o.type))throw o;throw function(o){const t=new Error(a.default.config.COMPILE_WXSS_ERROR_CONSOLE);return t.code=l.appErrCode.TRANS_WXSS_JS_ERR,t.msgForConsole=o.message,t}(o)}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxml=async function(e){return async function(e){return{code:"",name:""}}()}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compileWxss=async function(e){return async function(e){return Date.now(),{}}()}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,a){"use strict";const t=e("tslib"),s=e("../theme"),n=t.__importStar(e("../tools")),i=t.__importDefault(e("./pagejson")),o=t.__importDefault(e("./appjson")),r=e("path"),l=e("lodash");async function c(e,a,n){const l=await(0,o.default)(e,a),c=function(e,a){return{pages:e.pages||[],resizable:!!e.resizable,subPackages:e.subPackages,debug:!!e.debug,widgets:e.widgets||[],customClose:!!e.customClose,workers:e.workers||"",cloud:!!e.cloud,global:{window:Object.assign(Object.assign({},(0,s.getDefaultWindowConfig)(e.darkmode&&a)),e.window)},page:{},networkTimeout:Object.assign({request:6e4,uploadFile:6e4,connectSocket:6e4,downloadFile:6e4},e.networkTimeout),ext:e.ext||{},extAppid:e.extAppid||"",plugins:e.plugins||{},mainPlugins:Object.assign({},e.plugins),preloadRule:e.preloadRule,permission:e.permission,requiredBackgroundModes:e.requiredBackgroundModes,functionalPages:e.functionalPages,style:e.style,useExtendedLib:e.useExtendedLib||{},supportedMaterials:e.supportedMaterials||[],usingShopPlugin:e.usingShopPlugin||void 0,embeddedAppIdList:e.embeddedAppIdList,halfPage:e.halfPage,resolveAlias:e.resolveAlias,renderer:e.renderer,enablePassiveEvent:e.enablePassiveEvent,debugOptions:e.debugOptions,__warning__:e.__warning__||""}}(l,n),g=e=>{e.__warning__&&(c.__warning__&&(c.__warning__+="、"),c.__warning__+=`${e.__warning__}`)},{pages:u}=c;c.entryPagePath=l.entryPagePath?`${l.entryPagePath}.html`:`${u[0]}.html`;for(const s of u){const n=await(0,i.default)(e,a,`${s}`)||{};g(n);const{singlePage:o}=n,r=t.__rest(n,["singlePage"]);c.page[`${s}.html`]={window:r||{},singlePage:o,renderer:n.renderer}}if(c.subPackages){let s={};for(const n of c.subPackages){for(const s of n.pages){const o=r.posix.join(n.root,s),l=await(0,i.default)(e,a,`${o}`)||{};g(l);const{singlePage:u}=l,p=t.__rest(l,["singlePage"]);c.page[`${o}.html`]={window:p||{},singlePage:u,renderer:l.renderer}}s=Object.assign(Object.assign({},s),n.plugins)}c.plugins=Object.assign(Object.assign({},c.plugins),s)}c.page=Object.assign({},c.page);const p=Object.assign({},l.tabBar),d=[].concat(p.list||[]),h=[];for(const e of d){const a=Object.assign({},e);a.pagePath+=".html",h.push(a)}p.list=h,c.tabBar=p,l.darkmode&&(c.supportDarkmode=!0);let b={};const{themeLocation:f}=l;return void 0!==f&&""!==f.trim().replace(/^\.\//,"")&&(b=await a.checkThemeJSON({themeLocation:f})),await async function(e){var a;const{project:t,isDarkMode:n,themeLocation:i,themeJSON:o,appConfig:l}=e,c=r.join(t.projectPath,t.miniprogramRoot||""),{windowConfigRules:g,tabbarRules:u,tabbarListItemRules:p}=(0,s.checkThemeRules)(c);(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:"app.json or ext.json",windowConfig:l.global.window,rules:g,keyPrefix:'["window"]',isPlugin:!1});for(const e in l.page){const a=e.replace(/\.html$/,"");(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:`${a}.json`,windowConfig:l.page[e].window||{},rules:g,keyPrefix:"",isPlugin:!1})}if(l.tabBar){(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:"app.json or ext.json",windowConfig:l.tabBar||{},rules:u,keyPrefix:'["tabBar"]',isPlugin:!1});for(let e=0;e<(null===(a=l.tabBar)||void 0===a?void 0:a.list.length);e++)(0,s.checkVariables)({isDarkMode:n,themeLocation:i,themeJSON:o,filePath:"app.json or ext.json",windowConfig:l.tabBar.list[e],rules:p,keyPrefix:`["tabBar"]["list"][${e}]`,isPlugin:!1})}}({project:e,summerCompiler:a,themeJSON:b,themeLocation:f,isDarkMode:!(!l.darkmode||!n),appConfig:c}),c}let g=null;async function u(e,a,t=!0){let s;return g?s=g:(s=await c(e,a,!1),g=s),t?l.cloneDeep(s):s}let p=null;const d=async(e,a,t=!0)=>{const s=await u(e,a,t);return t?l.cloneDeep(s):s};module.exports={checkLightAppConfig:u,checkDarkmodeAppConfig:async function(e,a,t=!0){let s;return p?s=p:(s=await c(e,a,!0),p=s),t?l.cloneDeep(s):s},getAppConfig:d,checkIsInSubPackage:async(e,a,t)=>{const s=await d(e,a,!1);return n.checkIsInSubPackage(s,t)},DealSubPackages:e=>{if(Array.isArray(e.subPackages||e.subpackages)&&Array.isArray(e.pages)){const a=l.cloneDeep(e);return(a.subPackages||a.subpackages).forEach((e=>{const t=[];e.pages.forEach((s=>{const n=r.join(e.root,s);t.push(n),a.pages.includes(n)||a.pages.push(n)})),e.pages=t})),a}return e}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,r){try{const e=await r.getAppJSON();return t.cloneDeep(e)}catch(e){throw console.log("getCompiledAppJSON error:",e),e}};const t=e("lodash")}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(o,n){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWxmlCompileConfig=async function(o,n,t,s){let e=[],i=0;const c=await f(o,n,t);for(const o in c){const n=c[o];if(!n)continue;if(!s&&n.config||s&&!n.config||s&&n.config&&s.root!==n.config.root)continue;const{pageJSON:t}=n;if(t&&(t.usingComponents||t.componentGenerics)){e.push(`./${o}.wxml`);const n=Object.assign(Object.assign({},t.usingComponents),t.componentGenerics);i++,e.push(Object.keys(n).length),e=e.concat(Object.keys(n))}}return e.unshift(i),e},exports.getWxssCompileConfig=async function(o,n,t,s){return await a(o,n,t,s)},exports.getFileListJustInPack=a,exports.getCustomComponentsConfig=f;const t=o("tslib"),s=o("../../../../utils/tools"),e=t.__importDefault(o("./pagejson")),i=o("path"),c=(o,n)=>i.posix.normalize(i.join(o,n).replace(/^\/+/,"")).replace(/\\/g,"/"),r=(o,n)=>o.endsWith(n)?o:o+n;async function a(o,n,t,s){const e=await f(o,n,t),i=[];for(const o in e){const n=e[o];s?n.config&&n.config.root===s.root&&i.push(o):n.config||i.push(o)}return[...i]}async function f(o,n,t){const i=await async function(o,n){return(await n.getAllPageAndComponent()).map((o=>`${o}.json`))}(0,n);if(t.pages){const o=new Set(i);for(const n of t.pages)o.has(`${n}.json`)||i.push(`${n}.json`)}const r=t.subPackages||t.subpackages;if(Array.isArray(r))for(const o of r)if(o&&"string"==typeof o.root&&Array.isArray(o.pages))for(const n of o.pages){const t=new Set(i),s=c(o.root,String(n));t.has(`${s}.json`)||i.push(`${s}.json`)}const a={};for(const c of i){const i=c.replace(/\.json$/,"");if("app"===(0,s.normalizePath)(i))continue;const r=await(0,e.default)(o,n,i);if(r.usingComponents||r.componentGenerics||!0===r.component){const o=p(i,t);a[i]={config:o,file:c,pageJSON:r}}}return a}const p=(o,n)=>{let t;const s=n.subPackages||n.subpackages;if(Array.isArray(s))for(const n of s)if(n&&"string"==typeof n.root&&o.startsWith(r(n.root,"/"))){t=n;break}return t}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(e,t,i){const o=await t.getPageJSON(i);return r.default.cloneDeep(o)};const r=e("tslib").__importDefault(e("lodash"))}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(n,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=async function(n,e,o){const l=await u.getAppConfig(n,e,!1),p=(0,i.checkIsInSubPackage)(l,o),r=await(0,t.default)(n,e,o);if(r.usingComponents&&Object.keys(r.usingComponents).length>0){const n={};for(const e in r.usingComponents){const o=r.usingComponents[e]||"";l.plugins||(null==p?void 0:p.plugins)?n[e]=o.replace(/^plugin:\/\/([^/]*)\/(.*)/,((n,e,o,i,t)=>{var s,u;const r=(null===(s=l.plugins)||void 0===s?void 0:s[e])||(null===(u=null==p?void 0:p.plugins)||void 0===u?void 0:u[e]);return r?`plugin://${r.provider}/${o}`:t})):n[e]=o}r.usingComponents=n}return s.cloneDeep(r)};const o=n("tslib"),i=n("../../../../utils/tools"),t=o.__importDefault(n("./pagejson")),s=n("lodash"),u=n("./appconfig")}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const i=t("tslib"),r=i.__importDefault(t("path")),s=i.__importDefault(t("fs-extra"));exports.default=class{constructor(t){if(this.projectPath="",this.dist="",this.projectPath=t.projectPath||"",this.dist=t.dist,s.default.ensureDirSync(this.dist),!0===t.clearDist&&s.default.emptyDirSync(this.dist),!s.default.existsSync(this.projectPath))throw new Error("目标地址不存在")}getFinalPath(t){return r.default.join(this.dist,t)}writeFile(t,e){const i=this.getFinalPath(t);s.default.ensureDirSync(r.default.dirname(i)),s.default.writeFileSync(i,e)}copyFile(t,e=""){const i=r.default.join(this.projectPath,t),a=this.getFinalPath(r.default.join(e,t));s.default.ensureDirSync(r.default.dirname(a)),s.default.copyFileSync(i,a)}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(R,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errorPrefix=void 0,exports.errorPrefix={COMPONENT_FOR_DEVELOPER:"For developer:",WXML_RUNTIME_ERROR:"WXMLRT",WXML_RUNTIME_ERROR_REG:/^WXMLRT_[^:]*:/,WXML_PLUGIN_RUNTIME_ERROR_REG:/^WXMLRT_\$gwx_(wx[0-9a-zA-Z]{16}):/,WXS_RUNTIME_ERROR:"WXSRT:",WEBVIEW_ERROR:"WEBVIEW_ERROR",CODE_ERROR:"CODE_ERROR"}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleError=async function(e,r,t,a=!0){let l;if(t.code===s.appErrCode.TRANS_WXML_JS_ERR?l=await o.parseWxmlErr(e,r,t.msgForConsole):t.code===s.appErrCode.TRANS_WXSS_JS_ERR&&(l=await o.parseWxssErr(e,r,t)),l){const e=n.replace("{{error}}",(l.title?`${l.title}`:"")+(l.file?`in File: ${l.file}`:"")+(l.msg?`<pre style="white-space:pre-wrap; font-family: monospace;">${l.msg.replace(/</g,"&lt;").replace(/>/g,"&gt;")}</pre>`:"")+(t.message?`<p>${t.message}</p>`:""));if(a){const r=unescape(decodeURI(encodeURIComponent(e)));return i(l),r}}else if(a){const e=unescape(decodeURI(t.message));return i(t),e}return t.msg};const s=e("../../config/apperrcode.config"),t=e("../../../../utils/tools"),o=e("./parseerr"),n="\n <p>{{error}}</p>\n";function i(e){var r;const s=`\n\n${e.title?`title: ${e.title}\n`:""}${e.file?`file: ${e.file}\n`:""}${e.msg?`msg: ${e.msg} \n`:""}${e.message?e.message:""}`;null===(r=(0,t.getTerm)())||void 0===r||r.error.red(s)}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";const t=e("tslib").__importDefault(e("../../../../utils/locales/locales")),i=e("./errorconfig"),n=e("path"),s=e("babel-code-frame"),l=e("../../../../utils/jsonlint").parser;function a(e,r,t,i){return`${i}\n${s(e,r,t=t>0?t:1)}`}const o=async(e,r,t,i)=>{const n=(t||"").trim().split(":");try{if(n.length){const t=parseInt(n[1].trim(),10),s=parseInt(n[2].trim(),10)-1,l=c(e,{fileName:n[0],line:t,isPlugin:i}),o=`${a(r.getFileString(e.miniprogramRoot,n[0]),t,s,n[3])}\n${l}`;return{file:n[0],msg:o}}}catch(e){}return{file:"",msg:t}},c=(e,r)=>{const{fileName:t,line:i,isPlugin:s=!1}=r;if(!t)return"";const l=s?e.pluginRoot:e.miniprogramRoot;return`at files://${l?n.join(l,t):t.replace(/^\.\//,"")}#${i}`},m=async(e,r,t,i)=>{let n="string"==typeof t?t:t.msgForConsole||"";n=n.split("\n")[0];try{if(/not found from/.test(n)){const e=n.match(/ERR:.+?`(.+)`.+?`(.+)`/);if(!e)return{file:"",msg:n};const r=e[1];return{file:e[2],msg:`File not found: ${r}`}}const t=n.match(/ERR:\s(.+)\((\d*):(\d*)\):\s*?(.+)/);if(!t)return{file:"",msg:n};const s=parseInt(t[2],10),l=parseInt(t[3],10)-1,o=t[4].replace(/`/g,'"'),m=t[1],f=r.getFileString(e.miniprogramRoot,m),u=c(e,{fileName:m,line:s,isPlugin:i});return{file:m,reason:o,msg:`${a(f,s,l,o)}\n${u}`}}catch(e){return{file:"",msg:n}}};module.exports={parseWXMLRuntimeErr:async(e,r,t)=>{let n=t.message,s=[],l="",o="";n=n.replace(i.errorPrefix.WXML_RUNTIME_ERROR_REG,""),n=n.replace("WXMLRT:",""),s=n.split(":"),l=s[0];try{o=r.getFileString(e.miniprogramRoot,l)}catch(e){return{file:l,msg:n}}const c=parseInt(s[2],10),m=parseInt(s[3],10);if(-1!==c)try{const e=n.replace(`${s[0]}:${s[1]}:${s[2]}:${s[3]}:`,"");n=a(o,c,m,e)}catch(e){}return{file:l,msg:n}},parseJsonFileErr:e=>({file:e.file,msg:t.default.config.PARSEERR_ENTRANCE_FILE_ERROR.format(e.file)}),parseJsonParseErr:(e,r)=>{const t=r.data||"";try{l.parse(t)}catch(i){try{const n=`Expecting ${i.expected}, got ${i.token}`;let s=a(t,i.line,i.loc.first_column,n);if(r.fileName){const l=c(e,{fileName:r.fileName,line:i.line,isPlugin:r.isPlugin});s=`${a(t,i.line,i.loc.first_column,n)}\n${l}`}return`${r.fileName}\n${s}`}catch(e){}}return`${r.fileName}\n${r.error}`},parsePluginWxmlErr:async(e,r,t)=>await o(e,r,t,!0),parsePluginWxssErr:async(e,r,t)=>await m(e,r,t,!0),parseWxmlErr:async(e,r,t)=>await o(e,r,t,!1),parseWxssErr:async(e,r,t)=>await m(e,r,t,!1)}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(require,directRequire){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.flatSubPackage=flatSubPackage,exports.wrapCodeByEval=wrapCodeByEval,exports.escapeByEval=escapeByEval;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),lodash_1=tslib_1.__importDefault(require("lodash"));function flatSubPackage(e){const a=lodash_1.default.cloneDeep(e);return!(!a.subpackages&&!a.subPackages)&&(a.pages||(a.pages=[]),(a.subpackages||a.subPackages).forEach((e=>{e.pages.forEach((t=>{a.pages.push(path_1.default.join(e.root,t))}))})),delete a.subpackages,delete a.subPackages,a)}function wrapCodeByEval(e){return`;(window.eval)('${e}')`}function escapeByEval(code){const str="",evalStr=`eval('str = \`${code}\`')`;return eval(evalStr),str}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(t,s){"use strict";module.exports=class{constructor(t={}){this.breakWhenError=!0;const{poolLimit:s=50,breakWhenError:i=!0}=t;this._tasks=[],this.poolLimit=s,this.breakWhenError=i,this.isRuning=!1,this.taskPool=null}static get shared(){return this._instance||(this._instance=new this),this._instance}addTask(t,...s){this._tasks.push(t.bind(null,...s))}async runAllAsync(t){if(!this._tasks.length)return[];if(this.isRuning)return this.taskPool;let s;try{this.isRuning=!0,this.taskPool=async function(t,s,i){const n=[],r=[];let e=0;const h=function(){if(e===i.length)return Promise.resolve();const o=i[e],a=Promise.resolve().then((()=>o()));return n.push(a),r.push(a),e+=1,r.length>=t?Promise.race(r).then((()=>(r.splice(r.indexOf(a),1),h()))).catch((t=>{if(s)throw t;return r.splice(r.indexOf(a),1),h()})):h()};return h().then((()=>Promise.all(n)))}(t||this.poolLimit,this.breakWhenError,this._tasks),s=await this.taskPool}catch(t){throw t}finally{this.isRuning=!1,this.taskPool=null,this._tasks=[]}return s}async runAllSerial(){const t=[];try{for(let s=0,i=this._tasks.length;s<i;s++){const i=await this._tasks[s]();t.push(i)}}catch(t){}finally{this._tasks=[]}return t}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkTabbarListItemIconPath=s,exports.checkThemeRules=function(e){const o=(o,t)=>{const i=s(o,r.join(e,t));i.length>0&&c({msg:i.join("\n"),filePath:"app.json or ext.json"})};return{windowConfigRules:[{key:"navigationBarTextStyle",valids:["black","white"]},{key:"backgroundTextStyle",valids:["dark","light"]},{key:"navigationBarBackgroundColor",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"backgroundColorTop",hexColor:!0},{key:"backgroundColorBottom",hexColor:!0}],tabbarRules:[{key:"selectedColor",hexColor:!0},{key:"color",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"borderStyle",valids:["black","white"]}],tabbarListItemRules:[{key:"iconPath",validate:o},{key:"selectedIconPath",validate:o}]}},exports.getDefaultWindowConfig=function(e){return e?{backgroundColor:"#232323",backgroundTextStyle:"light"}:{backgroundColor:"#ffffff",backgroundTextStyle:"dark"}},exports.checkVariables=function(e){var o;const{windowConfig:a,themeLocation:r,filePath:n,isDarkMode:l,themeJSON:s,rules:f,keyPrefix:u,isPlugin:d=!1}=e,g=l?s.dark||{}:s.light||{},h=l?"dark":"light";for(const e of f)if((a[e.key]||"").startsWith("@")){const l=(null===(o=a[e.key])||void 0===o?void 0:o.slice(1))||"";if(l&&void 0===r){if(d)continue;c({msg:t.default.config.THEME_JSON_SHOULD_EXIST.format(`${u}["${e.key}"]`,`"@${l}"`,'appJSON["themeLocation"]'),filePath:n})}const s=g[l];if(void 0===s){if(d)continue;c({msg:t.default.config.JSON_VARIABLE_VALUE_NOT_FOUND.format(`${u}["${e.key}"]: "@${l}"`,`${r}["${h}"]`),filePath:n})}void 0!==s&&(Array.isArray(e.valids)&&e.valids.indexOf(s)<0&&c({msg:t.default.config.THEME_JSON_VALUE_SHOULD_BE.format(`${r}["${h}"]["${l}"]`,`${n} ${u}["${e.key}"]`,`${JSON.stringify(e.valids)}`),filePath:r}),e.hexColor&&!(0,i.isHexColor)(s)&&c({msg:t.default.config.THEME_JSON_VALUE_SHOULD_BE.format(`${r}["${h}"]["${l}"]`,`${n} ${u}["${e.key}"]`,"hexColor"),filePath:r}),e.validate&&e.validate(`${u}["${e.key}"]`,s),a[e.key]=s)}};const t=e("tslib").__importDefault(e("../../../../utils/locales/locales")),i=e("../../../../utils/tools"),a=e("../../../../config/config"),r=e("path"),n=e("fs"),l=[".png",".jpg",".jpeg"];function s(e,o){const i=a.DefaultProjectAttr,{setting:s}=i,c=[];if(!n.existsSync(o))return c.push(t.default.config.NOT_FOUND.format(e)),c;const f=n.statSync(o);if(f.isDirectory())return c.push(t.default.config.JSON_CONTENT_SHOULD_NOT_BE.format(e,t.default.config.DIRECTORY)),c;f.size>1024*s.MaxTabbarIconSize&&c.push(t.default.config.EXCEED_LIMIT.format(e,`${s.MaxTabbarIconSize}kb`));const u=r.extname(o);return l.indexOf(u)<0&&c.push(t.default.config.FILE_EXT_FORMAT_ERROR.format(e,l.join("、"))),c}function c(e={msg:"",filePath:"app.json"}){const{msg:o,filePath:t}=e,i=new Error(o);throw i.code=a.JSON_CONTENT_ERR,i.path=t,i}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(r,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkIsInSubPackage=function(r,i=""){let s;if(e(i,"plugin://")){const e=i.match(/^plugin:\/\/([^/]*)\/(.*)/),s=null==e?void 0:e[1];if(!s)return;const t=n(r,s);return null==t?void 0:t.config}if(r.subPackages)for(let e=0,n=r.subPackages.length;e<n;e++){const n=r.subPackages[e];if(i.startsWith(n.root)){s=n;break}}return s},exports.checkPluginByAliasOrProvider=n,exports.getPluginByAliasOrProvider=s;const e=r("licia/startWith");function n(r,i){let e;if(r.subPackages)for(const n of r.subPackages)if(e=s(n.plugins,i),e)return Object.assign(Object.assign({},e),{config:n});if(e=s(r.plugins,i),e)return e}function s(r,i){if(r){const e=r[i];if(e)return{alias:i,provider:e.provider,version:e.version};for(const e in r){const n=r[e];if(n.provider===i)return{alias:e,provider:n.provider,version:n.version}}}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(r,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformSourceMapSources=function(r=[]){return r?r.map(n):[]};const t=r("url"),u=r("path");function n(r){if(!r)return r;try{return new t.URL(r),r}catch(r){}return u.basename(r)}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerProject=void 0;const i=t("tslib"),r=i.__importDefault(t("path")),o=t("../config/config"),s=i.__importDefault(t("../utils/locales/locales")),a=t("../utils/error"),n=t("../types"),c=t("./baseProject"),p=t("../build-server/ctxManager"),l=t("../services/fs/common/fileService"),h=i.__importDefault(t("../services/common/getservice")),d={qcloudRoot:"腾讯云 wafer 方案目录",miniprogramRoot:"小程序代码的目录",srcMiniprogramRoot:"小程序源码的目录",pluginRoot:"插件目录",cloudfunctionRoot:"云函数目录",cloudfunctionTemplateRoot:"云函数本地调试模板目录",cloudcontainerRoot:"云容器目录",cloudbaseRoot:"cloudbaseRoot",jsserverRoot:"小游戏 jsserver 目录",testRoot:"自动化测试脚本录制的存放目录"};class u extends c.BaseProject{constructor(t){super(),this._preloadFileCache=new Map;const e=(0,h.default)(l.IFileService);this.fileUtils=e,this._project=t,this.init(t)}async init(t){const{type:e,projectPath:i,ignores:r}=t;let c=t.appid;if(!i)throw new a.CodeError(s.default.config.SHOULD_NOT_BE_EMPTY.format("projectPath"),o.PARAM_ERROR);this._projectPath=t.projectPath;const p=await this.getProjectConfig();if(!c){if(!p.appid)throw new a.CodeError(s.default.config.SHOULD_NOT_BE_EMPTY.format("appid"),o.PARAM_ERROR);c=p.appid}this._projectArchitecture=p.projectArchitecture||"miniProgram",this._miniprogramRoot=p.miniprogramRoot||"",this._pluginRoot=p.pluginRoot||"",this._appid=c,this._type=e||n.EProjectType.miniProgram,this.ignores=r||[],this.setting=p.setting||{},this._project=t,this.targetPlatform=t.targetPlatform,this.packOptions=t.packOptions||{ignore:[],include:[]},void 0===t.packOptions&&"object"==typeof p.packOptions&&(this.packOptions={ignore:Array.isArray(p.packOptions.ignore)?p.packOptions.ignore:[],include:Array.isArray(p.packOptions.include)?p.packOptions.include:[]}),await this.updateFileAndDirs()}async initPreloadFileCache(){}get project(){return this._project}async existsAsync(t="",e=""){const i=JSON.parse(p.optionsStorage.getStore()||"{}"),r=this.getTargetPath(t,e);return!!r.startsWith(t)&&(!(!this._fileSet.has(r)&&!this._dirSet.has(r))||this.fileUtils.exists(r,{projectId:i.projectId,versionId:i.versionId,ticket:i.ticket}))}exists(t="",e=""){const i=r.default.join(t,e);return this._preloadFileCache.has(i)}getFile(t,e){const i=r.default.join(t,e),o=this._preloadFileCache.get(i);if(o)return o.buffer;throw new Error("file not found")}async statAsync(t,e){const i=JSON.parse(p.optionsStorage.getStore()||"{}");if(!await this.exists(t,e))return;const r=this.getTargetPath(t,e),o=await this.fileUtils.lstat(r,{projectId:i.projectId,versionId:i.versionId,ticket:i.ticket});return this._fileSet.has(r)?{isFile:!0,isDirectory:!1,size:await this.getFileSize(t,e),mtimeMs:o.mtimeMs||""}:this._dirSet.has(r)?{isFile:!1,isDirectory:!0,size:0,mtimeMs:o.mtimeMs}:void 0}stat(t="",e=""){const i=r.default.join(t,e),o=this._preloadFileCache.get(i);if(o)return o.stat}async getProjectConfig(){const t=JSON.parse(p.optionsStorage.getStore()||"{}"),e=await this.fileUtils.readFile("project.config.json",null,{projectId:t.projectId,versionId:t.versionId,ticket:t.ticket}),i=JSON.parse(e);for(const t in d)"string"==typeof i[t]&&(i[t]=this.normalizeRootPath(i[t]));return i}async updateFileAndDirs(){const t=JSON.parse(p.optionsStorage.getStore()||"{}"),e=await this.fileUtils.fileList({projectId:t.projectId,versionId:t.versionId,ticket:t.ticket});for(const t of e)this._fileSet.add(t.name),this.cacheDirName(this._dirSet,r.default.posix.dirname(t.name))}async getExtAppid(){if(this._extAppid)return this._extAppid;if(null!==this._extAppid)try{const t=await this.getProjectConfig(),{miniprogramRoot:e=""}=t,i=await this.getFile(e,"ext.json"),r=JSON.parse(i.toString("utf-8"));return r.extEnable&&r.extAppid?this._extAppid=r.extAppid:this._extAppid=null,this._extAppid}catch(t){this._extAppid=null}}isMiniappProject(){return"multiPlatform"===this._projectArchitecture}async serialize(){return console.warn("serialize",this.targetPlatform),Object.assign(Object.assign({},await super.serialize()),{targetPlatform:this.targetPlatform,targetPlatformDefines:{}})}}exports.ServerProject=u}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerAppDirDevtoolsService=void 0;exports.ServerAppDirDevtoolsService=class{init(){throw new Error("Method not implemented.")}get(e){throw new Error("Method not implemented.")}cleanDir(e){throw new Error("Method not implemented.")}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerBuilder=void 0;const i=e("../nw/builder");class t extends i.NWBuilder{}exports.ServerBuilder=t}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ICompileCacheManagerService=void 0;const a=e("../../common/vsbase"),{createDecorator:i}=a.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.ICompileCacheManagerService=i("ICompileCacheManagerService")}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWCompileCacheManagerService=void 0;const r=e("tslib").__importDefault(e("../../../build-server/tasks/common/utils/cache/compile")),i=e("../../../build-server/tasks/common/utils/cache/reporter");exports.NWCompileCacheManagerService=class{constructor(){this.reporter=i.compileCacheReporter,this.get=e=>r.default.get(e),this.set=(e,t)=>r.default.set(e,t),this.generateFilePesistCacheKey=async(e,t)=>r.default.generateFilePesistCacheKey(e,t),this.getFile=async(e,t,i,o)=>await r.default.getFile(t,i,o),this.setFile=async(e,t,i)=>await r.default.setFile(e,t,i),this.clearBatch=async e=>{throw new Error("Method not implemented.")}}removeFile(e,t){throw new Error("Method not implemented.")}clear(e){throw new Error("Method not implemented.")}getFileList(e){throw new Error("Method not implemented.")}setFileList(e){throw new Error("Method not implemented.")}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerCompileCacheManagerService=void 0;const t=e("tslib"),i=t.__importDefault(e("../../../build-server/fileCacheManager")),c=e("../../../build-server/ctxManager"),o=e("../../fs/common/fileService"),a=t.__importDefault(e("../../common/getservice")),n=e("../../../bussinessMonitor/monitor");exports.ServerCompileCacheManagerService=class{constructor(){this.reporter={hitCache:e=>{console.log(`Cache hit for key: ${e}`)},startGenCache:e=>{console.log(`Start generating cache for key: ${e}`)},finishGenCache:e=>{console.log(`Finished generating cache for key: ${e}`)},hitFileCache:e=>{console.log(`Cache hit for file: ${e}`)},startGenFileCache:e=>{console.log(`Start generating cache for file: ${e}`)},finishGenFileCache:e=>{console.log(`Finished generating cache for file: ${e}`)}},this.get=async e=>{if(console.log(`[ServerCompileCacheManagerService]-get ${e}`),!this.isUseCache())return null;try{const r=this.getProjectCacheKey();if(!r)return null;await i.default.checkRedisConnected();const t=await i.default.redisClient.hGetAll(r);if(!t)return null;const c=t[e];if(console.log("[ServerCompileCacheManagerService]-get-result",c),void 0===c)return null;try{return JSON.parse(c)}catch(e){return c}}catch(e){return console.error("Redis GET error:",e),null}},this.set=async(e,r)=>{console.log(`[ServerCompileCacheManagerService]-set ${e}`);try{const t=this.getProjectCacheKey();if(!t)return null;const c="string"==typeof r?r:JSON.stringify(r);await i.default.checkRedisConnected();const o=i.default.redisClient.multi();return o.hSet(t,e,c),o.expire(t,10800),await o.exec(),"OK"}catch(e){return console.error("Redis SET error:",e),null}},this.generateFilePesistCacheKey=async(e,r)=>"default",this.getFile=async(e,r,t="default",c)=>{if(console.log(`[ServerCompileCacheManagerService]-getFile ${r}, ${t}`),this.isUseCache())try{const e=this.getProjectCacheKey();if(!e)return;await i.default.checkRedisConnected();const c=await i.default.redisClient.hGetAll(e);if(!c)return;const o=`file:${r}:${t}`,a=c[o];if(void 0===a)return;try{const e=JSON.parse(a);return e.fromCache=!0,this.reporter.hitFileCache(r),console.log(`[ServerCompileCacheManagerService]-getFile-result ${JSON.stringify(e)}`),e}catch(t){return console.error(`[ServerCompileCacheManagerService] Failed to parse cached data for ${r}:`,t),void await i.default.redisClient.hDel(e,o)}}catch(e){return void console.error(`[ServerCompileCacheManagerService] Redis getFile error for ${r}:`,e)}},this.setFile=async(e,r,t="default")=>{console.log(`[ServerCompileCacheManagerService]-setFile ${e}`);try{const n=(0,a.default)(o.IFileService),s=JSON.parse(c.optionsStorage.getStore()||"{}"),l=this.getProjectCacheKey();if(!l)return;await i.default.checkRedisConnected();const h=await n.lstat(e.slice(e.indexOf("/")+1),{projectId:s.projectId,versionId:s.versionId,ticket:s.ticket});r.mtime=h.mtimeMs;const C=`file:${e}:${t}`,d=Object.assign(Object.assign({},r),{filePath:e,cacheKey:C,fromCache:!1}),u=JSON.stringify(d),f=i.default.redisClient.multi();f.hSet(l,C,u),f.expire(l,10800),await f.exec(),this.reporter.finishGenFileCache(e)}catch(r){console.error(`[ServerCompileCacheManagerService] Redis setFile error for ${e}:`,r)}},this.clear=async e=>{try{const r=this.getProjectCacheKey();if(!r)return null;await i.default.checkRedisConnected();const t=await i.default.redisClient.hDel(r,e);return console.log(`[ServerCompileCacheManagerService] Cleared cache for key: ${e}`),t>0?"OK":null}catch(e){return console.error("Redis CLEAR error:",e),null}},this.clearBatch=async e=>{if(!e||0===e.length)return 0;try{const r=this.getProjectCacheKey();if(!r)return 0;await i.default.checkRedisConnected();const t=await i.default.redisClient.hDel(r,e);return console.log(`[ServerCompileCacheManagerService] Batch cleared ${t} cache entries from keys:`,e),t}catch(e){return console.error("Redis CLEAR BATCH error:",e),0}},this.removeFile=async(e,r="default")=>{try{const t=this.getProjectCacheKey();if(!t)return;await i.default.checkRedisConnected();const c=`file:${e}:${r}`;await i.default.redisClient.hDel(t,c),console.log(`[ServerCompileCacheManagerService] Removed cache for file: ${e}`)}catch(r){console.error(`[ServerCompileCacheManagerService] Redis removeFile error for ${e}:`,r)}},this.setFileList=async e=>{console.log("[ServerCompileCacheManagerService] setFileList");try{const r=this.getProjectCacheKey();if(!r)return;await i.default.checkRedisConnected();const t=`${r}:file-list`,c=JSON.stringify(e),o=i.default.redisClient.multi();o.set(t,c),o.expire(t,21600),await o.exec(),this.reporter.finishGenFileCache(t)}catch(e){console.error("[ServerCompileCacheManagerService] Redis setFileList error:",e)}},this.getFileList=async e=>{if(this.isUseCache())try{const r=e||this.getProjectCacheKey();if(!r)return;await i.default.checkRedisConnected();const t=`${r}:file-list`,c=await i.default.redisClient.get(t);if(!c)return;try{return JSON.parse(c)}catch(e){return console.error("[ServerCompileCacheManagerService] Failed to parse cached",e),void await i.default.redisClient.del(t)}}catch(e){return void console.error("[ServerCompileCacheManagerService] Redis getFileList error:",e)}},this.copyCache=async(e,r)=>{if(!r||!e)return!1;console.log(`[ServerCompileCacheManagerService] copyCache from ${e} to ${r}`);try{await i.default.checkRedisConnected();const t=await i.default.redisClient.hGetAll(e);if(!t||0===Object.keys(t).length)return console.log(`[ServerCompileCacheManagerService] No cache data found in source: ${e}`),!1;const c=i.default.redisClient.multi();for(const[e,i]of Object.entries(t))c.hSet(r,e,i);c.expire(r,10800),await c.exec();const o=Object.keys(t).length;return console.log(`[ServerCompileCacheManagerService] Successfully copied ${o} cache entries from ${e} to ${r}`),!0}catch(t){return console.error(`[ServerCompileCacheManagerService] Redis copyCache error from ${e} to ${r}:`,t),!1}}}isUseCache(){try{const e=JSON.parse(c.optionsStorage.getStore()||"{}"),r=!1!==e.useCache;return(0,n.BusinessReport)("CompileCacheManager","isUseCache check",JSON.stringify({options:e,useCache:r,projectId:e.projectId,versionId:e.versionId})),r}catch(e){return!0}}getProjectCacheKey(e,r){try{let t="",i="";if(e||r)t=e||"",i=r||"";else{const e=JSON.parse(c.optionsStorage.getStore()||"{}")||{};t=e.projectId||"",i=e.versionId||""}return t?`project:${t}_${i}:compile-cache`:(console.warn("[ServerCompileCacheManagerService] projectId missing in options"),null)}catch(e){return console.error("[ServerCompileCacheManagerService] failed to parse options from AsyncLocalStorage",e),null}}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerCompilewxmlService=void 0;const o=e("tslib"),t=e("child_process"),s=o.__importStar(e("path")),i=e("../node/compileUtils");const c=new class{constructor(){this.activeWorkers=0,this.waitQueue=[]}async acquire(){this.activeWorkers>=3&&await new Promise((e=>{this.waitQueue.push(e)})),this.activeWorkers++}release(){this.activeWorkers--;const e=this.waitQueue.shift();e&&e()}getActiveCount(){return this.activeWorkers}};exports.ServerCompilewxmlService=class{compileWxml(e){return async function(e){const r=Date.now();try{const r=JSON.stringify(e).length;if(r>104857600)throw new Error(`Input data too large: ${(r/1024/1024).toFixed(2)}MB (max: 100MB)`);console.log(`[wcc-node] Input data size: ${(r/1024/1024).toFixed(2)}MB`)}catch(e){if(e.message.includes("Input data too large"))throw e;throw new Error("Invalid input data: cannot serialize options")}return await c.acquire(),new Promise(((o,i)=>{const n=s.join(__dirname,"wccWorker.js");let a=null,l=!1,d=null;const w=(e,r)=>{l||(l=!0,d&&(clearTimeout(d),d=null),(()=>{if(a&&!a.killed)try{a.kill("SIGKILL"),setTimeout((()=>{if(a&&a.pid)try{process.kill(a.pid,"SIGKILL")}catch(e){}}),1e3)}catch(e){console.error("[wcc-node] Error killing worker:",e)}})(),c.release(),e?i(e):o(r))};d=setTimeout((()=>{console.error("[wcc-node] Worker timeout after 30s"),w(new Error("wccnode worker timeout after 30s"))}),3e4);try{a=(0,t.fork)(n,[],{stdio:["pipe","pipe","pipe","ipc"],execArgv:["--max-old-space-size=2048"]}),a.on("message",(o=>{if(o.ready)null==a||a.send({options:e});else if(void 0!==o.success)if(o.success&&o.result){try{const e=JSON.stringify(o.result).length;if(e>52428800)return console.error(`[wcc-node] Output too large: ${(e/1024/1024).toFixed(2)}MB`),void w(new Error(`Result data too large: ${(e/1024/1024).toFixed(2)}MB (max: 50MB)`));console.log(`[wcc-node] Output data size: ${(e/1024/1024).toFixed(2)}MB`)}catch(e){return void w(new Error("Invalid result data: cannot serialize result"))}console.warn("[wcc-node] total cost (including process spawn):",Date.now()-r),w(void 0,o.result)}else if(o.error){const e=new Error(o.error.message);o.error.stack&&(e.stack=o.error.stack),w(e)}else w(new Error("Unknown error in wccnode worker"))})),a.on("error",(e=>{console.error("[wcc-node] Worker process error:",e),w(new Error(`wccnode worker process error: ${e.message}`))})),a.on("exit",((e,r)=>{if(!l){let o="wccnode worker exited unexpectedly";0!==e&&(o=`wccnode worker exited with code ${e}, signal ${r}`,134!==e&&137!==e&&"SIGKILL"!==r||(o+=" (possible OOM)")),console.error(`[wcc-node] ${o}`),w(new Error(o))}})),a.stdout&&a.stdout.on("data",(e=>{process.stdout.write(`[wcc-worker] ${e}`)})),a.stderr&&a.stderr.on("data",(e=>{process.stderr.write(`[wcc-worker] ${e}`)}))}catch(e){console.error("[wcc-node] Failed to start worker:",e),w(new Error(`Failed to start worker: ${e.message}`))}}))}(e)}async compileWxmlToGlassEasel(e){return await(0,i.compileWxmlToGlassEasel)(e)}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const s=setInterval((()=>{const e=process.memoryUsage(),o=e.heapUsed,s=e.heapTotal,r=e.rss;o>1932735283.2?(console.error("[wcc-node worker] CRITICAL: Memory usage too high!"),console.error(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.error(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.error(` RSS: ${(r/1024/1024).toFixed(2)}MB`),console.error(" Forcing exit to prevent OOM..."),process.send&&process.send({success:!1,error:{message:`Worker memory usage exceeded critical threshold: ${(o/1024/1024).toFixed(2)}MB`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)):o>1610612736&&(console.warn("[wcc-node worker] WARNING: High memory usage"),console.warn(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.warn(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.warn(` RSS: ${(r/1024/1024).toFixed(2)}MB`))}),5e3),r=process.memoryUsage();console.log(`[wcc-node worker] Started with memory: ${(r.heapUsed/1024/1024).toFixed(2)}MB`),process.on("message",(async o=>{try{const{options:s}=o,r=Date.now(),c=process.memoryUsage();console.log(`[wcc-node worker] Memory before compile: ${(c.heapUsed/1024/1024).toFixed(2)}MB`);const n=e("../../../../wcc").wcc,{genfuncName:t,hasWxs:a=!0,isPlugin:i,isCut:d,configContent:l,configSplit:p,lazyloadConfig:m}=s,g=await n({replaceContent:s.replaceContent,files:s.files,debugWXS:a,debug:!0,genfuncname:t,isPlugin:i,isCut:d,wxmlCompileConfig:l,wxmlCompileConfigSplit:p,lazyloadConfig:m}),u=process.memoryUsage(),w=u.heapUsed-c.heapUsed;let x;if(console.warn("[wcc-node worker] compile cost:",Date.now()-r),console.log(`[wcc-node worker] Memory after compile: ${(u.heapUsed/1024/1024).toFixed(2)}MB (delta: ${(w/1024/1024).toFixed(2)}MB)`),m){const{generateFunctionContent:e,generateFunctionName:o}=g;x={pages:e,names:o}}else x={code:g,name:t};process.send&&process.send({success:!0,result:x})}catch(o){console.error("[wcc-node worker] Compilation error:",o),process.send&&process.send({success:!1,error:{message:o instanceof Error?o.message:String(o),stack:o instanceof Error?o.stack:void 0}})}finally{clearInterval(s),setTimeout((()=>{process.exit(0)}),100)}})),process.send&&process.send({ready:!0}),process.on("uncaughtException",(e=>{console.error("[wcc-node worker] Uncaught exception:",e),process.send&&process.send({success:!1,error:{message:`Uncaught exception: ${e.message}`,stack:e.stack}}),setTimeout((()=>{process.exit(1)}),100)})),process.on("unhandledRejection",(e=>{console.error("[wcc-node worker] Unhandled rejection:",e),process.send&&process.send({success:!1,error:{message:`Unhandled rejection: ${e}`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)}))}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerCompilewxssService=void 0;const o=e("tslib"),s=e("child_process"),t=o.__importStar(e("path"));const i=new class{constructor(){this.activeWorkers=0,this.waitQueue=[]}async acquire(){this.activeWorkers>=3&&await new Promise((e=>{this.waitQueue.push(e)})),this.activeWorkers++}release(){this.activeWorkers--;const e=this.waitQueue.shift();e&&e()}getActiveCount(){return this.activeWorkers}};exports.ServerCompilewxssService=class{compileWxss(e){return async function(e){const r=Date.now();try{const r=JSON.stringify(e).length;if(r>104857600)throw new Error(`Input data too large: ${(r/1024/1024).toFixed(2)}MB (max: 100MB)`);console.log(`[wcsc-node] Input data size: ${(r/1024/1024).toFixed(2)}MB`)}catch(e){if(e.message.includes("Input data too large"))throw e;throw new Error("Invalid input data: cannot serialize options")}return await i.acquire(),new Promise(((o,c)=>{const n=t.join(__dirname,"wcscWorker.js");let l=null,a=!1,d=null;const u=(e,r)=>{a||(a=!0,d&&(clearTimeout(d),d=null),(()=>{if(l&&!l.killed)try{l.kill("SIGKILL"),setTimeout((()=>{if(l&&l.pid)try{process.kill(l.pid,"SIGKILL")}catch(e){}}),1e3)}catch(e){console.error("[wcsc-node] Error killing worker:",e)}})(),i.release(),e?c(e):o(r))};d=setTimeout((()=>{console.error("[wcsc-node] Worker timeout after 30s"),u(new Error("wcscnode worker timeout after 30s"))}),3e4);try{l=(0,s.fork)(n,[],{stdio:["pipe","pipe","pipe","ipc"],execArgv:["--max-old-space-size=2048"]}),l.on("message",(o=>{if(o.ready)null==l||l.send({options:e});else if(void 0!==o.success)if(o.success&&o.result){try{const e=JSON.stringify(o.result).length;if(e>52428800)return console.error(`[wcsc-node] Output too large: ${(e/1024/1024).toFixed(2)}MB`),void u(new Error(`Result data too large: ${(e/1024/1024).toFixed(2)}MB (max: 50MB)`));console.log(`[wcsc-node] Output data size: ${(e/1024/1024).toFixed(2)}MB`)}catch(e){return void u(new Error("Invalid result data: cannot serialize result"))}console.warn("[wcsc-node] total cost (including process spawn):",Date.now()-r),u(void 0,o.result)}else if(o.error){const e=new Error(o.error.message);o.error.stack&&(e.stack=o.error.stack),u(e)}else u(new Error("Unknown error in wcscnode worker"))})),l.on("error",(e=>{console.error("[wcsc-node] Worker process error:",e),u(new Error(`wcscnode worker process error: ${e.message}`))})),l.on("exit",((e,r)=>{if(!a){let o="wcscnode worker exited unexpectedly";r?(o=`wcscnode worker killed by signal ${r}`,"SIGABRT"===r?o+=" (Aborted - possible causes: C++ assertion failure, memory corruption, or system resource limit)":"SIGKILL"===r?o+=" (Killed by system - possible OOM)":"SIGSEGV"===r&&(o+=" (Segmentation fault - possible memory access error)")):null!==e&&0!==e&&(o=`wcscnode worker exited with code ${e}`,134===e||135===e?o+=" (SIGABRT - possible assertion failure or memory corruption)":137===e?o+=" (SIGKILL - likely OOM killed by system)":139===e&&(o+=" (SIGSEGV - segmentation fault)")),console.error(`[wcsc-node] ${o}`),console.error(`[wcsc-node] Exit details: code=${e}, signal=${r}`),console.error("[wcsc-node] Troubleshooting suggestions:"),console.error(" 1. Check if wcsc native module is properly compiled for this platform"),console.error(" 2. Check system memory and resource limits (ulimit -a)"),console.error(" 3. Check Node.js version compatibility"),console.error(" 4. Check for missing system dependencies (ldd on .node file)"),u(new Error(o))}})),l.stdout&&l.stdout.on("data",(e=>{process.stdout.write(`[wcsc-worker] ${e}`)})),l.stderr&&l.stderr.on("data",(e=>{process.stderr.write(`[wcsc-worker] ${e}`)}))}catch(e){console.error("[wcsc-node] Failed to start worker:",e),u(new Error(`Failed to start worker: ${e.message}`))}}))}(e)}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const s=process.memoryUsage();console.log(`[wcsc-node worker] Started with memory: ${(s.heapUsed/1024/1024).toFixed(2)}MB`),console.log(`[wcsc-node worker] Node version: ${process.version}`),console.log(`[wcsc-node worker] Platform: ${process.platform} ${process.arch}`),console.log(`[wcsc-node worker] Max old space size: ${process.execArgv.find((e=>e.includes("max-old-space-size")))}`);const r=setInterval((()=>{const e=process.memoryUsage(),o=e.heapUsed,s=e.heapTotal,r=e.rss;o>1932735283.2?(console.error("[wcsc-node worker] CRITICAL: Memory usage too high!"),console.error(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.error(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.error(` RSS: ${(r/1024/1024).toFixed(2)}MB`),console.error(" Forcing exit to prevent OOM..."),process.send&&process.send({success:!1,error:{message:`Worker memory usage exceeded critical threshold: ${(o/1024/1024).toFixed(2)}MB`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)):o>1610612736&&(console.warn("[wcsc-node worker] WARNING: High memory usage"),console.warn(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.warn(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.warn(` RSS: ${(r/1024/1024).toFixed(2)}MB`))}),5e3);process.on("message",(async o=>{var s;let c=null;try{const{options:r}=o,n=Date.now(),t=process.memoryUsage();let a;console.log(`[wcsc-node worker] Memory before compile: ${(t.heapUsed/1024/1024).toFixed(2)}MB`),console.log(`[wcsc-node worker] Input files count: ${(null===(s=r.files)||void 0===s?void 0:s.length)||0}`);try{a=e.resolve("../../../../wcc"),console.log(`[wcsc-node worker] Loading wcsc from: ${a}`)}catch(o){throw console.error("[wcsc-node worker] Failed to resolve wcc module:",o),new Error(`Cannot find wcsc module: ${o instanceof Error?o.message:String(o)}`)}try{if(c=e("../../../../wcc").wcsc,!c||"function"!=typeof c)throw new Error("wcsc module loaded but wcsc function is not available")}catch(o){throw console.error("[wcsc-node worker] Failed to load wcsc module:",o),new Error(`Failed to load wcsc: ${o instanceof Error?o.message:String(o)}`)}const l=await c({pageCount:r.pageCount,replaceContent:r.replaceContent,files:r.files,debug:!1}),d=process.memoryUsage(),i=d.heapUsed-t.heapUsed;console.warn("[wcsc-node worker] compile cost:",Date.now()-n),console.log(`[wcsc-node worker] Memory after compile: ${(d.heapUsed/1024/1024).toFixed(2)}MB (delta: ${(i/1024/1024).toFixed(2)}MB)`),process.send&&process.send({success:!0,result:l})}catch(o){console.error("[wcsc-node worker] Compilation error:",o),o instanceof Error&&(console.error("[wcsc-node worker] Error name:",o.name),console.error("[wcsc-node worker] Error message:",o.message),console.error("[wcsc-node worker] Error stack:",o.stack)),process.send&&process.send({success:!1,error:{message:o instanceof Error?o.message:String(o),stack:o instanceof Error?o.stack:void 0}})}finally{clearInterval(r);const e=process.memoryUsage();console.log(`[wcsc-node worker] Final memory: ${(e.heapUsed/1024/1024).toFixed(2)}MB`),setTimeout((()=>{process.exit(0)}),100)}})),process.send&&process.send({ready:!0}),process.on("uncaughtException",(e=>{console.error("[wcsc-node worker] Uncaught exception:",e),process.send&&process.send({success:!1,error:{message:`Uncaught exception: ${e.message}`,stack:e.stack}}),setTimeout((()=>{process.exit(1)}),100)})),process.on("unhandledRejection",(e=>{console.error("[wcsc-node worker] Unhandled rejection:",e),process.send&&process.send({success:!1,error:{message:`Unhandled rejection: ${e}`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)}))}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerConsoleDisplayService=void 0;exports.ServerConsoleDisplayService=class{display(){}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerFileUtilsManagerService=void 0;exports.ServerFileUtilsManagerService=class{async projectFileUtils(e,r){return{}}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BuilderFileService=void 0;const i=e("../../../build-server/utils/request"),n=e("../../../build-server/ctxManager");exports.BuilderFileService=class{constructor(){this.cache=new Map}getSessionId(){try{const e=n.optionsStorage.getStore();if(e)return JSON.parse(e).sessionId}catch(e){}}getCacheKey(e,t){const i=this.getSessionId();return i?`session_${i}`:`${e}_${t}`}getValidCache(e){const t=this.cache.get(e);return t&&Date.now()-t.timestamp<3e5?t:null}setCache(e,t){this.cache.set(e,{fileList:t,timestamp:Date.now()});const i=Date.now();for(const[e,t]of this.cache.entries())i-t.timestamp>3e5&&this.cache.delete(e)}updateCacheWithContent(e,t){const i=this.cache.get(e);if(i)t.forEach((e=>{var t;const n=i.fileList.find((t=>t.name===e.name));n?n.content=e.content:i.fileList.push({name:e.name,key:e.name,content:e.content,lastModifiedTime:0,size:(null===(t=e.content)||void 0===t?void 0:t.length)||0,createTime:0})})),i.timestamp=Date.now();else{const i=t.map((e=>{var t;return{name:e.name,key:e.name,content:e.content,lastModifiedTime:0,size:(null===(t=e.content)||void 0===t?void 0:t.length)||0,createTime:0}}));this.cache.set(e,{fileList:i,timestamp:Date.now()})}}getCachedFileContent(e,t){const i=this.getValidCache(e);if(i){const e=i.fileList.find((e=>e.name===t));if(null==e?void 0:e.content)return e.content}return null}getCachedFiles(e,t){const i={},n=[],s=this.getValidCache(e);return t.forEach((e=>{if(s){const t=s.fileList.find((t=>t.name===e));if(null==t?void 0:t.content)return void(i[e]=t.content)}n.push(e)})),{hit:i,missing:n}}async fetchFileList(e){var t;const{projectId:n,versionId:s,ticket:c}=e,o=this.getCacheKey(n,s),l=this.getValidCache(o);if(l)return console.log(`[fileService] cache_hit: ${o}, files: ${l.fileList.length}`),l.fileList;console.log(`[fileService] cache_miss: ${o}, fetching...`);const a=await(0,i.getProjectUpdateTimeContentHTTP)({projectId:n,versionId:s,snapshotId:"",ticket:c});return(null==a?void 0:a.success)&&(null===(t=a.fileList)||void 0===t?void 0:t.length)>0?(this.setCache(o,a.fileList),console.log(`[fileService] fetched: ${a.fileList.length} files`),a.fileList):[]}async fetchFileContent(e,t){var n;const{projectId:s,versionId:c,ticket:o}=e,l=await(0,i.getFileContentHTTP)({ticket:o,projectId:s,versionId:c,snapshotId:"",path:t});return(null==l?void 0:l.success)&&(null===(n=l.fileList)||void 0===n?void 0:n.length)>0?l.fileList:[]}async readFile(e,t=null,i){const{projectId:n,versionId:s}=i,c=this.getCacheKey(n,s),o=this.getCachedFileContent(c,e);return null!==o?(console.log(`[fileService.readFile] cache hit: ${e}`),this.handleEncoding(o,t)):""}async readFileList(e,t){const{projectId:i,versionId:n}=t,s=this.getCacheKey(i,n),{hit:c,missing:o}=this.getCachedFiles(s,e);return 0===o.length?(console.log(`[fileService.readFileList] all cache hit: ${e.length} files`),c):{}}async exists(e,t){const{projectId:i,versionId:n}=t;return!!i&&(await this.fetchFileList(t)).some((t=>t.name===e))}async lstat(e,t){const{projectId:i}=t;if(!i)return this.createEmptyStats(e);const n=(await this.fetchFileList(t)).find((t=>t.name===e));return n?this.createStatsObject({name:e,lastModifiedTime:n.lastModifiedTime,size:n.size,createTime:n.createTime}):this.createEmptyStats(e)}async fileList(e){const{projectId:t}=e;if(!t)throw new Error("[BuilderFileService] projectId is required");return this.fetchFileList(e)}async preloadAllFiles(e){const t=Date.now(),{projectId:i,versionId:n}=e,s=this.getCacheKey(i,n),c=this.getValidCache(s);if(c&&c.fileList.every((e=>void 0!==e.content)))return console.log(`[fileService.preload] already cached: ${c.fileList.length} files`),{success:!0,fileCount:c.fileList.length,duration:Date.now()-t};const o=await this.fetchFileList(e);if(0===o.length)return console.log("[fileService.preload] no files to preload"),{success:!0,fileCount:0,duration:Date.now()-t};const l=o.filter((e=>void 0===e.content)).map((e=>e.name));if(0===l.length)return console.log(`[fileService.preload] all ${o.length} files already have content`),{success:!0,fileCount:o.length,duration:Date.now()-t};console.log(`[fileService.preload] loading ${l.length} files...`);const a=await this.fetchFileContent(e,l);a.length>0&&this.updateCacheWithContent(s,a);const r=Date.now()-t;return console.log(`[fileService.preload] done: ${a.length} files loaded in ${r}ms`),{success:!0,fileCount:a.length,duration:r}}handleEncoding(e,t){return null==t?Buffer.from(e,"utf8"):"string"==typeof t?e:"object"==typeof t&&null===t.encoding?Buffer.from(e,"utf8"):e}createEmptyStats(e){return this.createStatsObject({name:e,lastModifiedTime:0,size:0,createTime:0})}createStatsObject(e){const t=1e3*e.lastModifiedTime,i=1e3*e.createTime;return{mtimeMs:t,ctimeMs:i,size:e.size,mtime:new Date(t),ctime:new Date(i),atime:new Date(t),atimeMs:t,birthtime:new Date(i),birthtimeMs:i,isFile:()=>!0,isDirectory:()=>!1,isBlockDevice:()=>!1,isCharacterDevice:()=>!1,isSymbolicLink:()=>!1,isFIFO:()=>!1,isSocket:()=>!1,dev:0,ino:0,mode:33188,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(e.size/512)}}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GenTempFileService=void 0;const r=e("../common/genTempFile.node");class o extends r.nodeGenTempFile{}exports.GenTempFileService=o}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerGlobalService=void 0;exports.ServerGlobalService=class{isDev(){return!0}async getAppVersion(){return"dev"}async showBuildLog2(){}}}(require("licia/lazyImport")(require),require);
@@ -0,0 +1 @@
1
+ !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerInitializeCheck=void 0;exports.ServerInitializeCheck=class{notifiedStatus(e,i){}}}(require("licia/lazyImport")(require),require);