@lovrabet/rabetbase-cli 2.3.4-beta.2 → 2.3.4-beta.3

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 (218) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/flags.js +1 -1
  47. package/lib/commands/common/validate.js +1 -1
  48. package/lib/commands/config/get.js +1 -1
  49. package/lib/commands/config/index.js +1 -1
  50. package/lib/commands/config/list.js +1 -1
  51. package/lib/commands/config/set.js +1 -1
  52. package/lib/commands/config/shared.js +1 -1
  53. package/lib/commands/data/filter.js +1 -1
  54. package/lib/commands/data/getOne.js +1 -1
  55. package/lib/commands/data/index.js +1 -1
  56. package/lib/commands/data/shared.js +1 -1
  57. package/lib/commands/dataset/business-group-update.js +1 -1
  58. package/lib/commands/dataset/capability.js +1 -1
  59. package/lib/commands/dataset/delete.js +1 -1
  60. package/lib/commands/dataset/detail.js +1 -1
  61. package/lib/commands/dataset/extend-update.js +1 -1
  62. package/lib/commands/dataset/field-update.js +1 -1
  63. package/lib/commands/dataset/generate.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-audit.js +1 -1
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
@@ -1 +1 @@
1
- const a115_0x26b15e=a115_0x1bfc;(function(_0x5919d8,_0x53abf6){const _0x546807=a115_0x1bfc,_0x488109=_0x5919d8();while(!![]){try{const _0x1e985d=-parseInt(_0x546807(0x156))/0x1*(-parseInt(_0x546807(0x16a))/0x2)+-parseInt(_0x546807(0x152))/0x3+-parseInt(_0x546807(0x16d))/0x4*(-parseInt(_0x546807(0x159))/0x5)+parseInt(_0x546807(0x16c))/0x6*(parseInt(_0x546807(0x168))/0x7)+parseInt(_0x546807(0x167))/0x8*(-parseInt(_0x546807(0x163))/0x9)+-parseInt(_0x546807(0x151))/0xa+-parseInt(_0x546807(0x15e))/0xb*(-parseInt(_0x546807(0x154))/0xc);if(_0x1e985d===_0x53abf6)break;else _0x488109['push'](_0x488109['shift']());}catch(_0x47068a){_0x488109['push'](_0x488109['shift']());}}}(a115_0x40a1,0x47e6a));function a115_0x1bfc(_0x45114d,_0x1524f7){_0x45114d=_0x45114d-0x14f;const _0x40a12d=a115_0x40a1();let _0x1bfcbc=_0x40a12d[_0x45114d];return _0x1bfcbc;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessStandardPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a115_0x40a1(){const _0x2a6a67=['8edLQxn','status','6jblZLp','124CImKfr','code','GET','779780MIAGZC','1299078RyuRcx','standard-page-status','5064spAASe','source','36946UEVcjd','length','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','28630dKuyYr','relatedPages','read','query-standard-page-status','related-pages-fallback','13442pUgtfG','string','appCode','/smartapi/lovrabet/dataset/','name','711DiAuur','alias','manualResolutionRequired','nextAction','26872GAgkSM','1609279nRUGhs','Query\x20Smart\x20List\x20Page\x20facts\x20for\x20a\x20dataset'];a115_0x40a1=function(){return _0x2a6a67;};return a115_0x40a1();}export const pageStandardPageStatus={'service':'page','command':a115_0x26b15e(0x153),'description':a115_0x26b15e(0x169),'risk':a115_0x26b15e(0x15b),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a115_0x26b15e(0x164),'type':a115_0x26b15e(0x15f),'description':a115_0x26b15e(0x158)}],async 'validate'(_0x5e8a4b){validateDatasetSelector(_0x5e8a4b);},async 'dryRun'(_0x4a3f0d){const _0x28bd1a=a115_0x26b15e,_0x3205e0=await loadDatasetDetailForPage(_0x4a3f0d);return{'method':_0x28bd1a(0x150),'url':_0x28bd1a(0x161)+_0x3205e0[_0x28bd1a(0x14f)]+'/standard-page-status?appCode='+encodeURIComponent(_0x4a3f0d[_0x28bd1a(0x160)]),'description':serializeDryRunDescription({'dataset':{'id':_0x3205e0['id'],'code':_0x3205e0[_0x28bd1a(0x14f)],'name':_0x3205e0[_0x28bd1a(0x162)]},'action':_0x28bd1a(0x15c)})};},async 'execute'(_0x3c1648){const _0x36915d=a115_0x26b15e,_0x421bc3=await loadDatasetDetailForPage(_0x3c1648),_0x22dc60=await loadStandardPageStatusForGenerate(_0x3c1648,_0x421bc3['code']),_0x3bd5dd=getUndeletedRelatedPages(_0x421bc3),_0x3ef926=assessStandardPageState(_0x421bc3[_0x36915d(0x14f)],_0x22dc60,{'fallbackUndeletedPages':_0x3bd5dd});return{'ok':!![],'data':{'datasetCode':_0x421bc3[_0x36915d(0x14f)],'precheckSource':_0x22dc60?.[_0x36915d(0x155)]??_0x36915d(0x15d),'status':_0x3ef926[_0x36915d(0x16b)],'manualResolutionRequired':_0x3ef926[_0x36915d(0x165)],'nextAction':_0x3ef926[_0x36915d(0x166)],'standardPageStatus':_0x22dc60,'relatedPages':{'total':_0x421bc3[_0x36915d(0x15a)][_0x36915d(0x157)],'undeletedCount':_0x3bd5dd['length']}}};}};
1
+ const a115_0x4a6203=a115_0xfc70;(function(_0x4aad83,_0x58cda7){const _0x2fa598=a115_0xfc70,_0x3d7b3b=_0x4aad83();while(!![]){try{const _0x8befe9=-parseInt(_0x2fa598(0x1dc))/0x1*(parseInt(_0x2fa598(0x1de))/0x2)+parseInt(_0x2fa598(0x1f3))/0x3+parseInt(_0x2fa598(0x1eb))/0x4+parseInt(_0x2fa598(0x1f0))/0x5*(-parseInt(_0x2fa598(0x1e1))/0x6)+parseInt(_0x2fa598(0x1ec))/0x7*(-parseInt(_0x2fa598(0x1df))/0x8)+-parseInt(_0x2fa598(0x1e0))/0x9+parseInt(_0x2fa598(0x1f1))/0xa;if(_0x8befe9===_0x58cda7)break;else _0x3d7b3b['push'](_0x3d7b3b['shift']());}catch(_0x48c0f5){_0x3d7b3b['push'](_0x3d7b3b['shift']());}}}(a115_0x3b42,0xafe35));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a115_0xfc70(_0x301808,_0x3e5400){_0x301808=_0x301808-0x1d9;const _0x3b42ba=a115_0x3b42();let _0xfc708c=_0x3b42ba[_0x301808];return _0xfc708c;}function a115_0x3b42(){const _0x5ae9f4=['13863xhkxBZ','length','48BdBQTF','88yFstrW','11358792dsLMDJ','775506TbhXNN','appCode','/smartapi/lovrabet/dataset/','string','query-standard-page-status','source','Query\x20Smart\x20List\x20Page\x20facts\x20for\x20a\x20dataset','manualResolutionRequired','relatedPages','/standard-page-status?appCode=','4481288FIAtRg','147077yyLQWM','status','GET','code','10umzFMl','11627740qDwpqS','alias','1565292mfCswx','read','nextAction','name'];a115_0x3b42=function(){return _0x5ae9f4;};return a115_0x3b42();}import{assessStandardPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageStandardPageStatus={'service':'page','command':'standard-page-status','description':a115_0x4a6203(0x1e7),'risk':a115_0x4a6203(0x1d9),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a115_0x4a6203(0x1f2),'type':a115_0x4a6203(0x1e4),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x521e9f){validateDatasetSelector(_0x521e9f);},async 'dryRun'(_0x4c978a){const _0x248b63=a115_0x4a6203,_0xd5314c=await loadDatasetDetailForPage(_0x4c978a);return{'method':_0x248b63(0x1ee),'url':_0x248b63(0x1e3)+_0xd5314c[_0x248b63(0x1ef)]+_0x248b63(0x1ea)+encodeURIComponent(_0x4c978a[_0x248b63(0x1e2)]),'description':serializeDryRunDescription({'dataset':{'id':_0xd5314c['id'],'code':_0xd5314c[_0x248b63(0x1ef)],'name':_0xd5314c[_0x248b63(0x1db)]},'action':_0x248b63(0x1e5)})};},async 'execute'(_0x104233){const _0x560949=a115_0x4a6203,_0x4cccad=await loadDatasetDetailForPage(_0x104233),_0x46c481=await loadStandardPageStatusForGenerate(_0x104233,_0x4cccad[_0x560949(0x1ef)]),_0x23a1fa=getUndeletedRelatedPages(_0x4cccad),_0x3a16e3=assessStandardPageState(_0x4cccad[_0x560949(0x1ef)],_0x46c481,{'fallbackUndeletedPages':_0x23a1fa});return{'ok':!![],'data':{'datasetCode':_0x4cccad[_0x560949(0x1ef)],'precheckSource':_0x46c481?.[_0x560949(0x1e6)]??'related-pages-fallback','status':_0x3a16e3[_0x560949(0x1ed)],'manualResolutionRequired':_0x3a16e3[_0x560949(0x1e8)],'nextAction':_0x3a16e3[_0x560949(0x1da)],'standardPageStatus':_0x46c481,'relatedPages':{'total':_0x4cccad[_0x560949(0x1e9)][_0x560949(0x1dd)],'undeletedCount':_0x23a1fa[_0x560949(0x1dd)]}}};}};
@@ -1 +1 @@
1
- const a116_0x36b62f=a116_0x4cb4;(function(_0x24828e,_0xc33a5d){const _0x104e7d=a116_0x4cb4,_0x5a92b8=_0x24828e();while(!![]){try{const _0x24dbfb=parseInt(_0x104e7d(0x151))/0x1+parseInt(_0x104e7d(0x150))/0x2+-parseInt(_0x104e7d(0x159))/0x3+-parseInt(_0x104e7d(0x161))/0x4*(parseInt(_0x104e7d(0x155))/0x5)+parseInt(_0x104e7d(0x15f))/0x6*(-parseInt(_0x104e7d(0x153))/0x7)+parseInt(_0x104e7d(0x154))/0x8+-parseInt(_0x104e7d(0x156))/0x9;if(_0x24dbfb===_0xc33a5d)break;else _0x5a92b8['push'](_0x5a92b8['shift']());}catch(_0x598757){_0x5a92b8['push'](_0x5a92b8['shift']());}}}(a116_0x35ad,0x3ebd2));function a116_0x4cb4(_0x2d7378,_0x4581b6){_0x2d7378=_0x2d7378-0x14a;const _0x35ad01=a116_0x35ad();let _0x4cb4b7=_0x35ad01[_0x2d7378];return _0x4cb4b7;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{loadDatasetDetailForPage,prepareDatasetAction,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{syncStandardPages}from'../../core/api-client.js';export const pageSync={'service':'page','command':a116_0x36b62f(0x165),'description':a116_0x36b62f(0x163),'risk':'write','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a116_0x36b62f(0x14d),'type':'string','description':a116_0x36b62f(0x15e)}],async 'validate'(_0x10e2ad){validateDatasetSelector(_0x10e2ad);},async 'dryRun'(_0x4fa073){const _0x48f496=a116_0x36b62f,_0x1186b5=await prepare(_0x4fa073);return{'method':_0x48f496(0x160),'url':_0x48f496(0x15b)+_0x1186b5[_0x48f496(0x14a)]['code']+_0x48f496(0x162),'body':{'appCode':_0x4fa073[_0x48f496(0x15c)]},'description':serializeDryRunDescription({'dataset':{'id':_0x1186b5[_0x48f496(0x14a)]['id'],'code':_0x1186b5[_0x48f496(0x14a)]['code'],'name':_0x1186b5[_0x48f496(0x14a)][_0x48f496(0x14e)],'fieldCount':_0x1186b5['dataset'][_0x48f496(0x157)]},'relatedPages':{'total':_0x1186b5[_0x48f496(0x14a)][_0x48f496(0x14b)][_0x48f496(0x14f)],'undeletedCount':_0x1186b5['undeletedPages'][_0x48f496(0x14f)]},'action':_0x48f496(0x165),'reason':_0x1186b5['undeletedPages'][_0x48f496(0x14f)]+_0x48f496(0x164)})};},async 'execute'(_0x20d19a){const _0x554582=a116_0x36b62f,_0x14eaf9=await prepare(_0x20d19a),_0x47778a=await syncStandardPages(_0x20d19a[_0x554582(0x15c)],_0x14eaf9[_0x554582(0x14a)][_0x554582(0x14c)]),_0x234b3c=Array[_0x554582(0x15a)](_0x47778a[_0x554582(0x15d)])&&_0x47778a[_0x554582(0x15d)][_0x554582(0x14f)]>0x0,_0x2e8f1b=_0x234b3c?_0x554582(0x158):_0x554582(0x152);return{'ok':!![],'message':_0x2e8f1b,'data':{'datasetCode':_0x14eaf9[_0x554582(0x14a)]['code'],..._0x47778a}};}};async function prepare(_0x34c4b2){const _0x15ad66=await loadDatasetDetailForPage(_0x34c4b2);return prepareDatasetAction(_0x15ad66,'sync');}function a116_0x35ad(){const _0x406f51=['40EHmbrs','3768201VLKKGW','fieldCount','部分页面同步失败','1281081LNvhvC','isArray','/smartapi/lovrabet/dataset/','appCode','failedPages','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','111450oZIhNm','POST','21836oHjEiM','/sync-to-pages','Sync\x20dataset\x20changes\x20to\x20related\x20Smart\x20List\x20Pages','\x20undeleted\x20related\x20page(s)\x20found','sync','dataset','relatedPages','code','alias','name','length','1015440jKuupJ','288193oLvmbp','同步成功','7riKMvf','2952224iaKBDY'];a116_0x35ad=function(){return _0x406f51;};return a116_0x35ad();}
1
+ const a116_0x249f35=a116_0x39e1;function a116_0x39e1(_0x1e494f,_0x364803){_0x1e494f=_0x1e494f-0x9c;const _0x52d4b8=a116_0x52d4();let _0x39e11a=_0x52d4b8[_0x1e494f];return _0x39e11a;}(function(_0x7ab3aa,_0x1db678){const _0x135626=a116_0x39e1,_0x206437=_0x7ab3aa();while(!![]){try{const _0xdcf112=parseInt(_0x135626(0xa0))/0x1*(-parseInt(_0x135626(0xbe))/0x2)+parseInt(_0x135626(0xb1))/0x3*(parseInt(_0x135626(0xa1))/0x4)+parseInt(_0x135626(0xb0))/0x5*(-parseInt(_0x135626(0xaf))/0x6)+-parseInt(_0x135626(0xab))/0x7*(-parseInt(_0x135626(0xb3))/0x8)+-parseInt(_0x135626(0xb9))/0x9*(-parseInt(_0x135626(0xa5))/0xa)+parseInt(_0x135626(0xb5))/0xb*(-parseInt(_0x135626(0xb4))/0xc)+parseInt(_0x135626(0xb8))/0xd*(parseInt(_0x135626(0xa7))/0xe);if(_0xdcf112===_0x1db678)break;else _0x206437['push'](_0x206437['shift']());}catch(_0x5bffc4){_0x206437['push'](_0x206437['shift']());}}}(a116_0x52d4,0xa33c8));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{loadDatasetDetailForPage,prepareDatasetAction,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{syncStandardPages}from'../../core/api-client.js';function a116_0x52d4(){const _0x20cccb=['26sUKCAp','3700899zBNMwN','sync','POST','compress','write','1159658FOOlML','Sync\x20dataset\x20changes\x20to\x20related\x20Smart\x20List\x20Pages','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','string','部分页面同步失败','1RsUIeP','3668812SasWbA','length','\x20undeleted\x20related\x20page(s)\x20found','failedPages','10ivaKCT','undeletedPages','7303492iHRkso','同步成功','/sync-to-pages','alias','3400369AjCfTI','dataset','isArray','fieldCount','3870366EYgaGY','10XmmmOY','3qRjqIu','appCode','8bbWYjR','24fsCSJv','1754335biNabl','relatedPages','code'];a116_0x52d4=function(){return _0x20cccb;};return a116_0x52d4();}export const pageSync={'service':'page','command':'sync','description':a116_0x249f35(0x9c),'risk':a116_0x249f35(0xbd),'defaultOutputFormat':a116_0x249f35(0xbc),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a116_0x249f35(0xaa),'type':a116_0x249f35(0x9e),'description':a116_0x249f35(0x9d)}],async 'validate'(_0x9ad13b){validateDatasetSelector(_0x9ad13b);},async 'dryRun'(_0x44b8d7){const _0x4fe966=a116_0x249f35,_0x40f2b6=await prepare(_0x44b8d7);return{'method':_0x4fe966(0xbb),'url':'/smartapi/lovrabet/dataset/'+_0x40f2b6[_0x4fe966(0xac)][_0x4fe966(0xb7)]+_0x4fe966(0xa9),'body':{'appCode':_0x44b8d7[_0x4fe966(0xb2)]},'description':serializeDryRunDescription({'dataset':{'id':_0x40f2b6[_0x4fe966(0xac)]['id'],'code':_0x40f2b6[_0x4fe966(0xac)][_0x4fe966(0xb7)],'name':_0x40f2b6[_0x4fe966(0xac)]['name'],'fieldCount':_0x40f2b6[_0x4fe966(0xac)][_0x4fe966(0xae)]},'relatedPages':{'total':_0x40f2b6[_0x4fe966(0xac)][_0x4fe966(0xb6)][_0x4fe966(0xa2)],'undeletedCount':_0x40f2b6['undeletedPages']['length']},'action':_0x4fe966(0xba),'reason':_0x40f2b6[_0x4fe966(0xa6)][_0x4fe966(0xa2)]+_0x4fe966(0xa3)})};},async 'execute'(_0x4b55f3){const _0x97ed72=a116_0x249f35,_0x3678bc=await prepare(_0x4b55f3),_0x341fb3=await syncStandardPages(_0x4b55f3['appCode'],_0x3678bc[_0x97ed72(0xac)]['code']),_0x47c77a=Array[_0x97ed72(0xad)](_0x341fb3[_0x97ed72(0xa4)])&&_0x341fb3[_0x97ed72(0xa4)]['length']>0x0,_0x43a282=_0x47c77a?_0x97ed72(0x9f):_0x97ed72(0xa8);return{'ok':!![],'message':_0x43a282,'data':{'datasetCode':_0x3678bc[_0x97ed72(0xac)][_0x97ed72(0xb7)],..._0x341fb3}};}};async function prepare(_0x539888){const _0x5ba93b=a116_0x249f35,_0x554797=await loadDatasetDetailForPage(_0x539888);return prepareDatasetAction(_0x554797,_0x5ba93b(0xba));}
@@ -1 +1 @@
1
- (function(_0xd61a9b,_0x23bba6){const _0xca8f15=a117_0xf07e,_0x2b04e8=_0xd61a9b();while(!![]){try{const _0x252db8=parseInt(_0xca8f15(0xbd))/0x1+-parseInt(_0xca8f15(0xc8))/0x2*(parseInt(_0xca8f15(0xc0))/0x3)+-parseInt(_0xca8f15(0xc4))/0x4+parseInt(_0xca8f15(0xc3))/0x5*(-parseInt(_0xca8f15(0xb7))/0x6)+-parseInt(_0xca8f15(0xcd))/0x7+parseInt(_0xca8f15(0xc9))/0x8*(parseInt(_0xca8f15(0xb2))/0x9)+parseInt(_0xca8f15(0xb1))/0xa;if(_0x252db8===_0x23bba6)break;else _0x2b04e8['push'](_0x2b04e8['shift']());}catch(_0x3cbdc7){_0x2b04e8['push'](_0x2b04e8['shift']());}}}(a117_0xe926,0x32c31));function a117_0xe926(){const _0x291c01=['cyan','80CpRHCN','1376488lMiWqA','Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','√\x20Login\x20status:\x20','Project\x20name:','2TZryiS','528hcHnAI','log','Not\x20set','Skipped','2032583tIfkIK','8610960uoXlar','12591muTfGt','env','Login\x20failed','production','trim','143544LlwqTn','cwd','√\x20App\x20Code:\x20','test','Project\x20name\x20cannot\x20exceed\x2050\x20characters','resolve','413321OWuxym','No\x20valid\x20login\x20detected.\x20Login\x20first\x20to\x20pull\x20API\x20config?','√\x20Project\x20Name:\x20','424665CooJlN','green'];a117_0xe926=function(){return _0x291c01;};return a117_0xe926();}function a117_0xf07e(_0x54e7e7,_0x4dfa5a){_0x54e7e7=_0x54e7e7-0xb1;const _0xe92603=a117_0xe926();let _0xf07ee8=_0xe92603[_0x54e7e7];return _0xf07ee8;}import{existsSync}from'node:fs';import a117_0x515061 from'node:path';import a117_0x1766df from'chalk';import{input,confirm}from'@inquirer/prompts';import{getIsSessionValid}from'../../../auth/is-session-valid.js';import{authServer}from'../../../auth/auth-server.js';import{readConfig}from'../../../utils/config.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';export async function guidedCreateProject(_0x101960,_0xcd713c,_0x524b48){const _0x3762cc=a117_0xf07e,_0x583865='my-app',_0x217ad5=readConfig(),_0x3c71b7=typeof _0x217ad5['env']==='string'?_0x217ad5[_0x3762cc(0xb3)]:undefined,_0xd138b7=await input({'message':_0x3762cc(0xc7),'default':_0x583865,'validate':_0x2ff32d=>{const _0x58929a=_0x3762cc,_0x1df7d4=_0x2ff32d[_0x58929a(0xb6)]()||_0x583865;if(_0x1df7d4['length']>0x32)return _0x58929a(0xbb);const _0x326d96=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x1df7d4&&!_0x326d96[_0x58929a(0xba)](_0x1df7d4))return _0x58929a(0xc5);const _0x185762=a117_0x515061[_0x58929a(0xbc)](process[_0x58929a(0xb8)](),_0x1df7d4);if(existsSync(_0x185762))return'Directory\x20\x22'+_0x1df7d4+'\x22\x20already\x20exists';return!![];}});console[_0x3762cc(0xca)](a117_0x1766df[_0x3762cc(0xc1)](_0x3762cc(0xbf)+a117_0x1766df['cyan'](_0xd138b7)));const _0x3fcd6b=await selectSingleAppcode(_0x524b48);console[_0x3762cc(0xca)](a117_0x1766df[_0x3762cc(0xc1)](_0x3762cc(0xb9)+a117_0x1766df['cyan'](_0x3fcd6b||_0x3762cc(0xcb))));if(_0x3fcd6b){const _0x26c91b=await getIsSessionValid();if(!_0x26c91b){const _0x31abcc=await confirm({'message':_0x3762cc(0xbe),'default':!![]});if(_0x31abcc){const _0x1cb4a6=await authServer({'silent':!![]});console[_0x3762cc(0xca)](a117_0x1766df[_0x3762cc(0xc1)](_0x3762cc(0xc6)+a117_0x1766df['cyan'](_0x1cb4a6?'Logged\x20in':_0x3762cc(0xb4))));}else console[_0x3762cc(0xca)](a117_0x1766df[_0x3762cc(0xc1)](_0x3762cc(0xc6)+a117_0x1766df[_0x3762cc(0xc2)](_0x3762cc(0xcc))));}await _0x101960({'projectName':_0xd138b7,'appCode':_0x3fcd6b,'env':_0xcd713c||_0x3c71b7||_0x3762cc(0xb5)});}else await _0x101960({'projectName':_0xd138b7,'env':_0xcd713c||_0x3c71b7||_0x3762cc(0xb5)});}
1
+ (function(_0x39c114,_0x6ebd59){const _0x51acd9=a117_0x176b,_0x285550=_0x39c114();while(!![]){try{const _0xf897a1=parseInt(_0x51acd9(0x9f))/0x1*(-parseInt(_0x51acd9(0x9e))/0x2)+parseInt(_0x51acd9(0xab))/0x3*(-parseInt(_0x51acd9(0xb1))/0x4)+parseInt(_0x51acd9(0xb8))/0x5*(parseInt(_0x51acd9(0xb5))/0x6)+parseInt(_0x51acd9(0xa3))/0x7+-parseInt(_0x51acd9(0xae))/0x8*(-parseInt(_0x51acd9(0xb6))/0x9)+parseInt(_0x51acd9(0xa7))/0xa+parseInt(_0x51acd9(0xa0))/0xb*(-parseInt(_0x51acd9(0xaf))/0xc);if(_0xf897a1===_0x6ebd59)break;else _0x285550['push'](_0x285550['shift']());}catch(_0x376a21){_0x285550['push'](_0x285550['shift']());}}}(a117_0x13bf,0xdf51b));import{existsSync}from'node:fs';import a117_0x3f9d3d from'node:path';import a117_0xaaf6c1 from'chalk';import{input,confirm}from'@inquirer/prompts';import{getIsSessionValid}from'../../../auth/is-session-valid.js';function a117_0x176b(_0x5ae787,_0x3f243e){_0x5ae787=_0x5ae787-0x9a;const _0x13bf19=a117_0x13bf();let _0x176b94=_0x13bf19[_0x5ae787];return _0x176b94;}import{authServer}from'../../../auth/auth-server.js';import{readConfig}from'../../../utils/config.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';export async function guidedCreateProject(_0x37a4ba,_0x3944b4,_0x31a087){const _0x537805=a117_0x176b,_0x2d86a3=_0x537805(0xa6),_0x3364a5=readConfig(),_0xbdb381=typeof _0x3364a5[_0x537805(0xad)]===_0x537805(0xb0)?_0x3364a5['env']:undefined,_0x1582c5=await input({'message':_0x537805(0xa5),'default':_0x2d86a3,'validate':_0x3a2336=>{const _0xf0eb3b=_0x537805,_0x3e28d4=_0x3a2336[_0xf0eb3b(0xa8)]()||_0x2d86a3;if(_0x3e28d4[_0xf0eb3b(0xb7)]>0x32)return _0xf0eb3b(0xac);const _0x36b8f9=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x3e28d4&&!_0x36b8f9[_0xf0eb3b(0x9c)](_0x3e28d4))return'Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_';const _0x2d349e=a117_0x3f9d3d[_0xf0eb3b(0xb4)](process[_0xf0eb3b(0xa2)](),_0x3e28d4);if(existsSync(_0x2d349e))return'Directory\x20\x22'+_0x3e28d4+'\x22\x20already\x20exists';return!![];}});console[_0x537805(0x9d)](a117_0xaaf6c1['green'](_0x537805(0xa9)+a117_0xaaf6c1[_0x537805(0xb3)](_0x1582c5)));const _0x5b2147=await selectSingleAppcode(_0x31a087);console[_0x537805(0x9d)](a117_0xaaf6c1[_0x537805(0xa4)](_0x537805(0xaa)+a117_0xaaf6c1['cyan'](_0x5b2147||_0x537805(0x9a))));if(_0x5b2147){const _0x4e3821=await getIsSessionValid();if(!_0x4e3821){const _0x240ee4=await confirm({'message':'No\x20valid\x20login\x20detected.\x20Login\x20first\x20to\x20pull\x20API\x20config?','default':!![]});if(_0x240ee4){const _0x547801=await authServer({'silent':!![]});console[_0x537805(0x9d)](a117_0xaaf6c1[_0x537805(0xa4)](_0x537805(0xb2)+a117_0xaaf6c1[_0x537805(0xb3)](_0x547801?'Logged\x20in':'Login\x20failed')));}else console[_0x537805(0x9d)](a117_0xaaf6c1[_0x537805(0xa4)](_0x537805(0xb2)+a117_0xaaf6c1['cyan'](_0x537805(0xa1))));}await _0x37a4ba({'projectName':_0x1582c5,'appCode':_0x5b2147,'env':_0x3944b4||_0xbdb381||'production'});}else await _0x37a4ba({'projectName':_0x1582c5,'env':_0x3944b4||_0xbdb381||_0x537805(0x9b)});}function a117_0x13bf(){const _0x3900f9=['5257301BBUKNP','green','Project\x20name:','my-app','5025280MIFyuB','trim','√\x20Project\x20Name:\x20','√\x20App\x20Code:\x20','1123269iExbzo','Project\x20name\x20cannot\x20exceed\x2050\x20characters','env','1526120czfhod','24BETnpF','string','12cxVVff','√\x20Login\x20status:\x20','cyan','resolve','202218qVHWuZ','81BbQiLd','length','70alUmYe','Not\x20set','production','test','log','8tZrHoo','320230XAuLOQ','678667mzrYJi','Skipped','cwd'];a117_0x13bf=function(){return _0x3900f9;};return a117_0x13bf();}
@@ -1 +1 @@
1
- function a118_0x4d81(_0x55b986,_0x43ba97){_0x55b986=_0x55b986-0x1dd;const _0x4055c0=a118_0x4055();let _0x4d81c1=_0x4055c0[_0x55b986];return _0x4d81c1;}(function(_0x4dccbf,_0x3f1518){const _0x2b3039=a118_0x4d81,_0x80b566=_0x4dccbf();while(!![]){try{const _0x2f5619=-parseInt(_0x2b3039(0x1e1))/0x1*(parseInt(_0x2b3039(0x1ea))/0x2)+-parseInt(_0x2b3039(0x1e9))/0x3*(-parseInt(_0x2b3039(0x1e3))/0x4)+parseInt(_0x2b3039(0x1dd))/0x5*(-parseInt(_0x2b3039(0x1e5))/0x6)+-parseInt(_0x2b3039(0x1df))/0x7+parseInt(_0x2b3039(0x1e7))/0x8+-parseInt(_0x2b3039(0x1e6))/0x9+-parseInt(_0x2b3039(0x1e8))/0xa*(-parseInt(_0x2b3039(0x1e0))/0xb);if(_0x2f5619===_0x3f1518)break;else _0x80b566['push'](_0x80b566['shift']());}catch(_0x18a45d){_0x80b566['push'](_0x80b566['shift']());}}}(a118_0x4055,0x5e584));export function formatElapsed(_0x2c8cc3){const _0x32f5ec=a118_0x4d81,_0x1f75fc=Date[_0x32f5ec(0x1e4)]()-_0x2c8cc3;if(_0x1f75fc<0x3e8)return _0x1f75fc+'ms';const _0x59cb4b=(_0x1f75fc/0x3e8)[_0x32f5ec(0x1e2)](0x2),_0x38b696=_0x59cb4b[_0x32f5ec(0x1de)](/\.?0+$/u,'');return _0x38b696+'s';}function a118_0x4055(){const _0x2d15cc=['171500IFFjKr','1425378HtrQbo','50DXGbgE','5rTEFmg','replace','4090989DTMSXj','1078wpcTKS','16621fhtCnt','toFixed','4qPJlwp','now','2370468ccCVjQ','5557149txsecM','1944808vPYJNE'];a118_0x4055=function(){return _0x2d15cc;};return a118_0x4055();}
1
+ function a118_0x63b5(){const _0x1ebadd=['12IjytlL','5003928rpLTlk','replace','11044180fOIEbQ','6017914WOccDW','1274255bZCxjZ','2bcSCyy','6rmYpoJ','1582408WEssyT','376348ObJFLB','3183051eUhcIc','now'];a118_0x63b5=function(){return _0x1ebadd;};return a118_0x63b5();}function a118_0x476d(_0x2fe7af,_0xc40e3e){_0x2fe7af=_0x2fe7af-0x16f;const _0x63b5fa=a118_0x63b5();let _0x476d15=_0x63b5fa[_0x2fe7af];return _0x476d15;}(function(_0x242b73,_0x48bd77){const _0x43d86e=a118_0x476d,_0x3fb8fc=_0x242b73();while(!![]){try{const _0x90f7c3=-parseInt(_0x43d86e(0x170))/0x1*(parseInt(_0x43d86e(0x173))/0x2)+-parseInt(_0x43d86e(0x174))/0x3+-parseInt(_0x43d86e(0x176))/0x4*(-parseInt(_0x43d86e(0x16f))/0x5)+parseInt(_0x43d86e(0x171))/0x6*(parseInt(_0x43d86e(0x17a))/0x7)+-parseInt(_0x43d86e(0x172))/0x8+-parseInt(_0x43d86e(0x177))/0x9+parseInt(_0x43d86e(0x179))/0xa;if(_0x90f7c3===_0x48bd77)break;else _0x3fb8fc['push'](_0x3fb8fc['shift']());}catch(_0x59855c){_0x3fb8fc['push'](_0x3fb8fc['shift']());}}}(a118_0x63b5,0x833ab));export function formatElapsed(_0x37bd13){const _0x2f59cc=a118_0x476d,_0xcabfea=Date[_0x2f59cc(0x175)]()-_0x37bd13;if(_0xcabfea<0x3e8)return _0xcabfea+'ms';const _0x5ad657=(_0xcabfea/0x3e8)['toFixed'](0x2),_0x54d602=_0x5ad657[_0x2f59cc(0x178)](/\.?0+$/u,'');return _0x54d602+'s';}
@@ -1 +1 @@
1
- (function(_0x3d35fe,_0x531cdd){const _0x56058e=a119_0x4faa,_0x8729c=_0x3d35fe();while(!![]){try{const _0x28dde1=parseInt(_0x56058e(0x1e5))/0x1+-parseInt(_0x56058e(0x18f))/0x2+parseInt(_0x56058e(0x18e))/0x3*(-parseInt(_0x56058e(0x191))/0x4)+parseInt(_0x56058e(0x1c4))/0x5*(parseInt(_0x56058e(0x195))/0x6)+-parseInt(_0x56058e(0x1d5))/0x7*(parseInt(_0x56058e(0x1a1))/0x8)+-parseInt(_0x56058e(0x1de))/0x9*(-parseInt(_0x56058e(0x19c))/0xa)+parseInt(_0x56058e(0x1a5))/0xb*(parseInt(_0x56058e(0x1c9))/0xc);if(_0x28dde1===_0x531cdd)break;else _0x8729c['push'](_0x8729c['shift']());}catch(_0x43d664){_0x8729c['push'](_0x8729c['shift']());}}}(a119_0x5b5b,0xaa291));import a119_0x2581f8 from'path';function a119_0x5b5b(){const _0x5f3b26=['12diwYQf','🚀\x20Next\x20Steps:','\x20model(s)','*\x20Pulling\x20API\x20configuration...','CLI\x20版本检查','项目创建完成:\x20','\x20|\x20AppCode:\x20','test','message','*\x20Configuring\x20AppCode\x20for\x20project\x20','log','\x20config\x20set\x20appcode\x20<app-code>\x27','4543eAaLIs','resolve','projectName','\x20&&\x20','production','green','string','env','existsSync','6687WmiGMD','utf8','\x20\x202.\x20Pull\x20API\x20configuration:\x20','error','join','description','\x20run\x20start','181186MSVbbg','配置应用AppCode失败','start','Project\x20name\x20cannot\x20be\x20empty','projectCode','6wpSGWF','723390ThYUCP','Format\x20code','1347492TuVUom','Copy\x20project\x20files','appCode','name','5556606ZwGKGS','rmSync','更新\x20package.json\x20name','length','Project\x20name:\x20','stableVersion','chdir','14990TArpgu','belowMinimum','bold','\x20Generated\x20by\x20rabetbase\x20cli\x20','\x20\x201.\x20Start\x20project:\x20','12984QDoytG','√\x20Pulled\x20','\x20dataset(s),\x20generated\x20','success','6211711qvqucB','√\x20Configuration\x20file\x20created,\x20Apps:\x20','更新\x20package.json\x20失败','\x20api\x20pull','*\x20Cleaning\x20up\x20failed\x20project\x20directory:\x20','needsUpgrade','parse','trim','\x20already\x20exists','1.0.0','version','*\x20Creating\x20configuration\x20file\x20for\x20project\x20','minimumVersion','setLogPath','cd\x20','stringify','gray','create','API\x20configuration\x20pulled:\x20','cookie','清理项目目录失败:\x20','readFileSync','constants','dirname','toLocaleString','Cannot\x20create\x20project\x20in\x20current\x20directory,\x20please\x20check\x20directory\x20permissions','repeat','...','currentVersion','cwd','info','5EUkMmy','package.json','cyan','开始创建项目:\x20','fail'];a119_0x5b5b=function(){return _0x5f3b26;};return a119_0x5b5b();}import a119_0x304ce8 from'fs';import a119_0x117a6a from'chalk';import a119_0x4cbb86 from'ora';import{guidedCreateProject}from'../../../commands/project/create/enhanced-guided-create.js';import{fetchModelList}from'../../../api/fetch-model-list.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{readConfig}from'../../../utils/config.js';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';import{copyProjectTemplate}from'../../../commands/project/create/use-copy-project-template.js';import{installDependencies}from'../../../commands/project/create/use-install-dependencies.js';import{formatProjectCode}from'../../../commands/project/create/use-format-code.js';import{logger}from'../../../utils/logger.js';function a119_0x4faa(_0x436082,_0x4b26b3){_0x436082=_0x436082-0x18d;const _0x5b5b55=a119_0x5b5b();let _0x4faa93=_0x5b5b55[_0x436082];return _0x4faa93;}import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';import{getRabetbaseCliPackageRoot}from'../../../commands/project/create/project-template-path.js';export async function createApp(_0xfd99d6){const _0x441ce9=a119_0x4faa,_0x49ade9=await checkCliVersion();(_0x49ade9[_0x441ce9(0x1aa)]||_0x49ade9['belowMinimum'])&&(printCliUpgradeWarning(_0x49ade9),assertCliVersionSupported(_0x49ade9),logger[_0x441ce9(0x1c3)](_0x441ce9(0x1b6),_0x441ce9(0x1cd),{'currentVersion':_0x49ade9[_0x441ce9(0x1c1)],'stableVersion':_0x49ade9[_0x441ce9(0x19a)],'minimumVersion':_0x49ade9[_0x441ce9(0x1b1)],'needsUpgrade':_0x49ade9[_0x441ce9(0x1aa)],'belowMinimum':_0x49ade9[_0x441ce9(0x19d)]}));if(_0xfd99d6['projectCode']&&_0xfd99d6[_0x441ce9(0x193)])await runCreate({'projectName':_0xfd99d6['projectCode'],'appCode':_0xfd99d6[_0x441ce9(0x193)],'env':_0xfd99d6[_0x441ce9(0x1dc)]},_0xfd99d6);else{if(_0xfd99d6['projectCode']){const _0x3dd46a=await selectSingleAppcode(_0xfd99d6[_0x441ce9(0x1b8)]);await runCreate({'projectName':_0xfd99d6[_0x441ce9(0x18d)],'appCode':_0x3dd46a||undefined,'env':_0xfd99d6[_0x441ce9(0x1dc)]},_0xfd99d6);}else await guidedCreateProject(_0x57a9d7=>runCreate(_0x57a9d7,_0xfd99d6),_0xfd99d6[_0x441ce9(0x1dc)],_0xfd99d6[_0x441ce9(0x1b8)]);}}async function runCreate(_0x37d129,_0x1b68e5){const _0x3532d2=a119_0x4faa;if(!_0x37d129[_0x3532d2(0x1d7)]||_0x37d129[_0x3532d2(0x1d7)][_0x3532d2(0x1ac)]()==='')throw new Error(_0x3532d2(0x1e8));const _0x54a14d=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x54a14d[_0x3532d2(0x1d0)](_0x37d129[_0x3532d2(0x1d7)]))throw new Error('Invalid\x20characters\x20in\x20project\x20name.\x20Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters');if(_0x37d129[_0x3532d2(0x1d7)][_0x3532d2(0x198)]>0x64)throw new Error('Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters');const _0x21ee86=a119_0x2581f8['resolve'](process[_0x3532d2(0x1c2)](),_0x37d129[_0x3532d2(0x1d7)]);if(a119_0x304ce8[_0x3532d2(0x1dd)](_0x21ee86))throw new Error('Project\x20directory\x20'+_0x37d129[_0x3532d2(0x1d7)]+_0x3532d2(0x1ad));try{a119_0x304ce8['accessSync'](a119_0x2581f8[_0x3532d2(0x1bc)](_0x21ee86),a119_0x304ce8[_0x3532d2(0x1bb)]['W_OK']);}catch{throw new Error(_0x3532d2(0x1be));}logger[_0x3532d2(0x1b2)](_0x21ee86),logger[_0x3532d2(0x1c3)](_0x3532d2(0x1b6),_0x3532d2(0x1c7)+_0x37d129[_0x3532d2(0x1d7)],{'projectDir':_0x21ee86,'appCode':_0x37d129['appCode']}),console[_0x3532d2(0x1d3)](),console[_0x3532d2(0x1d3)](a119_0x117a6a[_0x3532d2(0x1da)]('\x20√\x20')+_0x3532d2(0x199)+a119_0x117a6a[_0x3532d2(0x1da)](_0x37d129[_0x3532d2(0x1d7)])+(_0x37d129['appCode']?_0x3532d2(0x1cf)+a119_0x117a6a['cyan'](_0x37d129[_0x3532d2(0x193)]):''));try{await runTask(_0x3532d2(0x192),()=>copyProjectTemplate(_0x37d129[_0x3532d2(0x1d7)])),await updatePackageJsonName(_0x37d129[_0x3532d2(0x1d7)]),await runTask('Install\x20dependencies',()=>installDependencies(_0x37d129['projectName'])),await runTask(_0x3532d2(0x190),()=>formatProjectCode(_0x37d129[_0x3532d2(0x1d7)])),await configureAppCode(_0x37d129[_0x3532d2(0x1d7)],_0x37d129['appCode']||'',_0x37d129[_0x3532d2(0x1dc)]);let _0xa667e8=![];if(_0x37d129['appCode']){console[_0x3532d2(0x1d3)](_0x3532d2(0x1cc));const _0x286e9c=process[_0x3532d2(0x1c2)]();try{process[_0x3532d2(0x19b)](_0x21ee86);const _0x1c6e32=_0x37d129[_0x3532d2(0x1dc)]||'production';initEnv(_0x1c6e32);const {configArray:_0x5b46af}=await fetchModelList(_0x37d129[_0x3532d2(0x193)],_0x1b68e5[_0x3532d2(0x1b8)]||''),_0x5e8218=DEFAULT_API_DIR,_0x5598a1=await generateApiFile(_0x5b46af,'',_0x37d129[_0x3532d2(0x193)],!![],_0x1c6e32,_0x5e8218);console[_0x3532d2(0x1d3)](_0x3532d2(0x1a2)+_0x5b46af[_0x3532d2(0x198)]+_0x3532d2(0x1a3)+_0x5598a1['modelCount']+_0x3532d2(0x1cb)),logger[_0x3532d2(0x1c3)](_0x3532d2(0x1b6),_0x3532d2(0x1b7)+_0x37d129['appCode']);}catch(_0x1a43b4){_0xa667e8=!![],console['log']('!\x20API\x20configuration\x20pull\x20error,\x20you\x20can\x20manually\x20run:\x20rabetbase\x20api\x20pull'),logger['warn'](_0x3532d2(0x1b6),'API\x20配置拉取异常',{'error':_0x1a43b4 instanceof Error?_0x1a43b4[_0x3532d2(0x1d1)]:String(_0x1a43b4)});}finally{process[_0x3532d2(0x19b)](_0x286e9c);}}logger[_0x3532d2(0x1a4)](_0x3532d2(0x1b6),_0x3532d2(0x1ce)+_0x37d129[_0x3532d2(0x1d7)]),console['log'](),console[_0x3532d2(0x1d3)](a119_0x117a6a[_0x3532d2(0x1da)]('─'[_0x3532d2(0x1bf)](0x3c))),console[_0x3532d2(0x1d3)](a119_0x117a6a[_0x3532d2(0x1c6)]['bold'](_0x3532d2(0x1ca))),console['log'](),console[_0x3532d2(0x1d3)](_0x3532d2(0x1a0)+a119_0x117a6a[_0x3532d2(0x1c6)][_0x3532d2(0x19e)](_0x3532d2(0x1b3)+_0x37d129[_0x3532d2(0x1d7)]+_0x3532d2(0x1d8)+CLI_BIN_NAME+_0x3532d2(0x1e4))),_0xa667e8&&console[_0x3532d2(0x1d3)](_0x3532d2(0x1e0)+a119_0x117a6a['cyan'][_0x3532d2(0x19e)](CLI_BIN_NAME+_0x3532d2(0x1a8))),console[_0x3532d2(0x1d3)](a119_0x117a6a['green']('─'[_0x3532d2(0x1bf)](0x3c)));}catch(_0x55eb9d){logger[_0x3532d2(0x1e1)](_0x3532d2(0x1b6),'项目创建失败:\x20'+_0x37d129[_0x3532d2(0x1d7)],{'error':_0x55eb9d instanceof Error?_0x55eb9d['message']:String(_0x55eb9d)});try{a119_0x304ce8['existsSync'](_0x21ee86)&&(console['log'](_0x3532d2(0x1a9)+_0x21ee86),a119_0x304ce8[_0x3532d2(0x196)](_0x21ee86,{'recursive':!![],'force':!![]}));}catch{logger['warn'](_0x3532d2(0x1b6),_0x3532d2(0x1b9)+_0x21ee86);}throw _0x55eb9d;}}async function runTask(_0x598a69,_0x105063){const _0x29cbe6=a119_0x4faa,_0x36a976=a119_0x4cbb86(_0x598a69+_0x29cbe6(0x1c0))[_0x29cbe6(0x1e7)]();try{const _0x465322=await _0x105063();_0x36a976['stop'](),console[_0x29cbe6(0x1d3)](''+a119_0x117a6a[_0x29cbe6(0x1da)]('\x20√\x20')+_0x598a69+'\x20'+a119_0x117a6a[_0x29cbe6(0x1b5)]('['+_0x465322+']'));}catch(_0x2dd558){_0x36a976[_0x29cbe6(0x1c8)](_0x598a69);throw _0x2dd558;}}async function updatePackageJsonName(_0x383d49){const _0x57198c=a119_0x4faa,_0x5225f0=a119_0x2581f8[_0x57198c(0x1d6)](process['cwd'](),_0x383d49),_0x4d4b3f=a119_0x2581f8[_0x57198c(0x1e2)](_0x5225f0,_0x57198c(0x1c5));try{console[_0x57198c(0x1d3)]('*\x20Updating\x20package.json\x20name\x20and\x20description\x20fields');const _0x19e67f=getRabetbaseCliPackageRoot(),_0x1ffcab=a119_0x2581f8[_0x57198c(0x1e2)](_0x19e67f,_0x57198c(0x1c5));let _0x1f3d60=_0x57198c(0x1ae);try{const _0x47e13f=JSON[_0x57198c(0x1ab)](a119_0x304ce8[_0x57198c(0x1ba)](_0x1ffcab,'utf8'));_0x1f3d60=_0x47e13f[_0x57198c(0x1af)]||_0x57198c(0x1ae);}catch{}const _0x1cc9f2=a119_0x304ce8[_0x57198c(0x1ba)](_0x4d4b3f,_0x57198c(0x1df)),_0x129e34=JSON[_0x57198c(0x1ab)](_0x1cc9f2);_0x129e34[_0x57198c(0x194)]=_0x383d49,_0x129e34[_0x57198c(0x1e3)]=_0x383d49+_0x57198c(0x19f)+_0x1f3d60,a119_0x304ce8['writeFileSync'](_0x4d4b3f,JSON[_0x57198c(0x1b4)](_0x129e34,null,0x2)+'\x0a','utf8'),console[_0x57198c(0x1d3)]('√\x20package.json\x20updated:\x20name='+_0x383d49),logger[_0x57198c(0x1c3)](_0x57198c(0x1b6),_0x57198c(0x197));}catch(_0xc91ebf){logger[_0x57198c(0x1e1)](_0x57198c(0x1b6),_0x57198c(0x1a7));throw _0xc91ebf;}}async function configureAppCode(_0x35bae4,_0x573b95,_0x5bb0fb){const _0x5c2dd9=a119_0x4faa,_0xccb99=a119_0x2581f8[_0x5c2dd9(0x1d6)](process[_0x5c2dd9(0x1c2)](),_0x35bae4),_0x1cdba4=a119_0x2581f8['join'](_0xccb99,NEW_CONFIG_NAME);try{_0x573b95?console[_0x5c2dd9(0x1d3)](_0x5c2dd9(0x1d2)+_0x35bae4+':\x20'+_0x573b95):console[_0x5c2dd9(0x1d3)](_0x5c2dd9(0x1b0)+_0x35bae4);const _0x30881e=getRabetbaseCliPackageRoot(),_0x2b1d09=a119_0x2581f8[_0x5c2dd9(0x1e2)](_0x30881e,'package.json');let _0x1901c0='1.0.0';try{const _0x28da7b=JSON[_0x5c2dd9(0x1ab)](a119_0x304ce8[_0x5c2dd9(0x1ba)](_0x2b1d09,_0x5c2dd9(0x1df)));_0x1901c0=_0x28da7b[_0x5c2dd9(0x1af)]||_0x5c2dd9(0x1ae);}catch{}const _0x31f956=readConfig(),_0x24904e=typeof _0x31f956[_0x5c2dd9(0x1dc)]===_0x5c2dd9(0x1db)?_0x31f956[_0x5c2dd9(0x1dc)]:undefined,_0x26a023={};for(const _0x4b192a of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x31f956[_0x4b192a]!=null)_0x26a023[_0x4b192a]=_0x31f956[_0x4b192a];}const _0x1dda7c=buildCanonicalProjectConfig(_0x26a023,{'appCodes':_0x573b95?[_0x573b95]:[],'env':_0x5bb0fb||_0x24904e||_0x5c2dd9(0x1d9),'metadata':{'createdAt':new Date()[_0x5c2dd9(0x1bd)](),'version':_0x1901c0}});writeConfigFile(_0x1cdba4,_0x1dda7c),_0x573b95?console[_0x5c2dd9(0x1d3)](_0x5c2dd9(0x1a6)+Object['keys'](_0x1dda7c['apps']||{})[_0x5c2dd9(0x1e2)](',\x20')+'\x20|\x20Default:\x20'+_0x1dda7c['defaultApp']):console[_0x5c2dd9(0x1d3)]('√\x20Configuration\x20file\x20created,\x20you\x20can\x20configure\x20later\x20with\x20\x27'+CLI_BIN_NAME+_0x5c2dd9(0x1d4)),logger[_0x5c2dd9(0x1c3)](_0x5c2dd9(0x1b6),'配置应用AppCode:\x20'+_0x573b95);}catch(_0x48c093){logger[_0x5c2dd9(0x1e1)](_0x5c2dd9(0x1b6),_0x5c2dd9(0x1e6));}}
1
+ (function(_0x3d8de0,_0x2f3ffa){const _0x48c2b2=a119_0x368f,_0xdc663=_0x3d8de0();while(!![]){try{const _0xf78fb9=parseInt(_0x48c2b2(0x88))/0x1*(-parseInt(_0x48c2b2(0xc7))/0x2)+-parseInt(_0x48c2b2(0xbb))/0x3*(-parseInt(_0x48c2b2(0x92))/0x4)+-parseInt(_0x48c2b2(0x78))/0x5+-parseInt(_0x48c2b2(0x8e))/0x6+parseInt(_0x48c2b2(0x83))/0x7+-parseInt(_0x48c2b2(0x85))/0x8+parseInt(_0x48c2b2(0xc2))/0x9;if(_0xf78fb9===_0x2f3ffa)break;else _0xdc663['push'](_0xdc663['shift']());}catch(_0x141f09){_0xdc663['push'](_0xdc663['shift']());}}}(a119_0x202d,0x9cc27));function a119_0x202d(){const _0x33dadf=['...','currentVersion','\x20√\x20','message','belowMinimum','chdir','green','start','name','production','Project\x20directory\x20','Project\x20name\x20cannot\x20be\x20empty','existsSync','配置应用AppCode:\x20','projectCode','dirname','readFileSync','version','\x20Generated\x20by\x20rabetbase\x20cli\x20','modelCount','\x20|\x20Default:\x20','projectName','Project\x20name:\x20','√\x20package.json\x20updated:\x20name=','*\x20Configuring\x20AppCode\x20for\x20project\x20','gray','trim','utf8','minimumVersion','package.json','🚀\x20Next\x20Steps:','API\x20configuration\x20pulled:\x20','851685qcTSVW','cwd','项目创建完成:\x20','cookie','error','\x20api\x20pull','*\x20Pulling\x20API\x20configuration...','23913945iHNYGK','length','setLogPath','success','appCode','598DNEPnY','description','stop','log','1.0.0','更新\x20package.json\x20失败','Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters','cd\x20','bold','\x20\x202.\x20Pull\x20API\x20configuration:\x20','repeat','warn','√\x20Configuration\x20file\x20created,\x20you\x20can\x20configure\x20later\x20with\x20\x27','API\x20配置拉取异常','5626465LNfHXV','CLI\x20版本检查','\x20model(s)','join','\x20already\x20exists','info','Invalid\x20characters\x20in\x20project\x20name.\x20Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','*\x20Updating\x20package.json\x20name\x20and\x20description\x20fields','开始创建项目:\x20','toLocaleString','Format\x20code','1574524RbiviC','√\x20Configuration\x20file\x20created,\x20Apps:\x20','5275928tKTidL','\x20run\x20start','Install\x20dependencies','1148ZNoBxi','test','cyan','defaultApp','resolve','needsUpgrade','4078224FDXqmw','Copy\x20project\x20files','fail','parse','8KqUiSB','apps','env','stringify','*\x20Creating\x20configuration\x20file\x20for\x20project\x20','*\x20Cleaning\x20up\x20failed\x20project\x20directory:\x20','项目创建失败:\x20','清理项目目录失败:\x20','create'];a119_0x202d=function(){return _0x33dadf;};return a119_0x202d();}import a119_0x5a8f2b from'path';import a119_0x5f1521 from'fs';import a119_0x5575ea from'chalk';import a119_0x1edf08 from'ora';import{guidedCreateProject}from'../../../commands/project/create/enhanced-guided-create.js';import{fetchModelList}from'../../../api/fetch-model-list.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{readConfig}from'../../../utils/config.js';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';import{copyProjectTemplate}from'../../../commands/project/create/use-copy-project-template.js';function a119_0x368f(_0x3f807b,_0x329682){_0x3f807b=_0x3f807b-0x6f;const _0x202d4b=a119_0x202d();let _0x368fae=_0x202d4b[_0x3f807b];return _0x368fae;}import{installDependencies}from'../../../commands/project/create/use-install-dependencies.js';import{formatProjectCode}from'../../../commands/project/create/use-format-code.js';import{logger}from'../../../utils/logger.js';import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';import{getRabetbaseCliPackageRoot}from'../../../commands/project/create/project-template-path.js';export async function createApp(_0x352766){const _0x295d6b=a119_0x368f,_0x269a95=await checkCliVersion();(_0x269a95['needsUpgrade']||_0x269a95[_0x295d6b(0x9f)])&&(printCliUpgradeWarning(_0x269a95),assertCliVersionSupported(_0x269a95),logger[_0x295d6b(0x7d)]('create',_0x295d6b(0x79),{'currentVersion':_0x269a95[_0x295d6b(0x9c)],'stableVersion':_0x269a95['stableVersion'],'minimumVersion':_0x269a95[_0x295d6b(0xb7)],'needsUpgrade':_0x269a95[_0x295d6b(0x8d)],'belowMinimum':_0x269a95[_0x295d6b(0x9f)]}));if(_0x352766[_0x295d6b(0xa9)]&&_0x352766[_0x295d6b(0xc6)])await runCreate({'projectName':_0x352766[_0x295d6b(0xa9)],'appCode':_0x352766['appCode'],'env':_0x352766['env']},_0x352766);else{if(_0x352766[_0x295d6b(0xa9)]){const _0x4aefb9=await selectSingleAppcode(_0x352766[_0x295d6b(0xbe)]);await runCreate({'projectName':_0x352766['projectCode'],'appCode':_0x4aefb9||undefined,'env':_0x352766[_0x295d6b(0x94)]},_0x352766);}else await guidedCreateProject(_0x59b3dd=>runCreate(_0x59b3dd,_0x352766),_0x352766[_0x295d6b(0x94)],_0x352766[_0x295d6b(0xbe)]);}}async function runCreate(_0x371519,_0x4c46ee){const _0x21673f=a119_0x368f;if(!_0x371519['projectName']||_0x371519[_0x21673f(0xb0)][_0x21673f(0xb5)]()==='')throw new Error(_0x21673f(0xa6));const _0x1dff07=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x1dff07[_0x21673f(0x89)](_0x371519[_0x21673f(0xb0)]))throw new Error(_0x21673f(0x7e));if(_0x371519[_0x21673f(0xb0)][_0x21673f(0xc3)]>0x64)throw new Error(_0x21673f(0x70));const _0x3637e8=a119_0x5a8f2b[_0x21673f(0x8c)](process[_0x21673f(0xbc)](),_0x371519['projectName']);if(a119_0x5f1521[_0x21673f(0xa7)](_0x3637e8))throw new Error(_0x21673f(0xa5)+_0x371519[_0x21673f(0xb0)]+_0x21673f(0x7c));try{a119_0x5f1521['accessSync'](a119_0x5a8f2b[_0x21673f(0xaa)](_0x3637e8),a119_0x5f1521['constants']['W_OK']);}catch{throw new Error('Cannot\x20create\x20project\x20in\x20current\x20directory,\x20please\x20check\x20directory\x20permissions');}logger[_0x21673f(0xc4)](_0x3637e8),logger['info']('create',_0x21673f(0x80)+_0x371519[_0x21673f(0xb0)],{'projectDir':_0x3637e8,'appCode':_0x371519[_0x21673f(0xc6)]}),console['log'](),console[_0x21673f(0xca)](a119_0x5575ea[_0x21673f(0xa1)](_0x21673f(0x9d))+_0x21673f(0xb1)+a119_0x5575ea[_0x21673f(0xa1)](_0x371519['projectName'])+(_0x371519[_0x21673f(0xc6)]?'\x20|\x20AppCode:\x20'+a119_0x5575ea[_0x21673f(0x8a)](_0x371519[_0x21673f(0xc6)]):''));try{await runTask(_0x21673f(0x8f),()=>copyProjectTemplate(_0x371519[_0x21673f(0xb0)])),await updatePackageJsonName(_0x371519[_0x21673f(0xb0)]),await runTask(_0x21673f(0x87),()=>installDependencies(_0x371519['projectName'])),await runTask(_0x21673f(0x82),()=>formatProjectCode(_0x371519['projectName'])),await configureAppCode(_0x371519[_0x21673f(0xb0)],_0x371519[_0x21673f(0xc6)]||'',_0x371519[_0x21673f(0x94)]);let _0x1c34c9=![];if(_0x371519[_0x21673f(0xc6)]){console['log'](_0x21673f(0xc1));const _0x4d76a=process[_0x21673f(0xbc)]();try{process[_0x21673f(0xa0)](_0x3637e8);const _0x11ce4e=_0x371519[_0x21673f(0x94)]||_0x21673f(0xa4);initEnv(_0x11ce4e);const {configArray:_0x22476c}=await fetchModelList(_0x371519[_0x21673f(0xc6)],_0x4c46ee['cookie']||''),_0x92961b=DEFAULT_API_DIR,_0x535bef=await generateApiFile(_0x22476c,'',_0x371519['appCode'],!![],_0x11ce4e,_0x92961b);console[_0x21673f(0xca)]('√\x20Pulled\x20'+_0x22476c[_0x21673f(0xc3)]+'\x20dataset(s),\x20generated\x20'+_0x535bef[_0x21673f(0xae)]+_0x21673f(0x7a)),logger[_0x21673f(0x7d)](_0x21673f(0x9a),_0x21673f(0xba)+_0x371519[_0x21673f(0xc6)]);}catch(_0x3b2fa4){_0x1c34c9=!![],console[_0x21673f(0xca)]('!\x20API\x20configuration\x20pull\x20error,\x20you\x20can\x20manually\x20run:\x20rabetbase\x20api\x20pull'),logger[_0x21673f(0x75)]('create',_0x21673f(0x77),{'error':_0x3b2fa4 instanceof Error?_0x3b2fa4[_0x21673f(0x9e)]:String(_0x3b2fa4)});}finally{process[_0x21673f(0xa0)](_0x4d76a);}}logger[_0x21673f(0xc5)]('create',_0x21673f(0xbd)+_0x371519[_0x21673f(0xb0)]),console['log'](),console[_0x21673f(0xca)](a119_0x5575ea[_0x21673f(0xa1)]('─'['repeat'](0x3c))),console[_0x21673f(0xca)](a119_0x5575ea['cyan'][_0x21673f(0x72)](_0x21673f(0xb9))),console[_0x21673f(0xca)](),console[_0x21673f(0xca)]('\x20\x201.\x20Start\x20project:\x20'+a119_0x5575ea[_0x21673f(0x8a)][_0x21673f(0x72)](_0x21673f(0x71)+_0x371519['projectName']+'\x20&&\x20'+CLI_BIN_NAME+_0x21673f(0x86))),_0x1c34c9&&console['log'](_0x21673f(0x73)+a119_0x5575ea['cyan']['bold'](CLI_BIN_NAME+_0x21673f(0xc0))),console['log'](a119_0x5575ea[_0x21673f(0xa1)]('─'[_0x21673f(0x74)](0x3c)));}catch(_0x520517){logger[_0x21673f(0xbf)](_0x21673f(0x9a),_0x21673f(0x98)+_0x371519[_0x21673f(0xb0)],{'error':_0x520517 instanceof Error?_0x520517[_0x21673f(0x9e)]:String(_0x520517)});try{a119_0x5f1521[_0x21673f(0xa7)](_0x3637e8)&&(console[_0x21673f(0xca)](_0x21673f(0x97)+_0x3637e8),a119_0x5f1521['rmSync'](_0x3637e8,{'recursive':!![],'force':!![]}));}catch{logger['warn']('create',_0x21673f(0x99)+_0x3637e8);}throw _0x520517;}}async function runTask(_0x53f9ff,_0x3b8903){const _0x4877b9=a119_0x368f,_0x3dc5ea=a119_0x1edf08(_0x53f9ff+_0x4877b9(0x9b))[_0x4877b9(0xa2)]();try{const _0x3351ea=await _0x3b8903();_0x3dc5ea[_0x4877b9(0xc9)](),console['log'](''+a119_0x5575ea[_0x4877b9(0xa1)]('\x20√\x20')+_0x53f9ff+'\x20'+a119_0x5575ea[_0x4877b9(0xb4)]('['+_0x3351ea+']'));}catch(_0xc8563){_0x3dc5ea[_0x4877b9(0x90)](_0x53f9ff);throw _0xc8563;}}async function updatePackageJsonName(_0x203769){const _0x59c01f=a119_0x368f,_0x733b3b=a119_0x5a8f2b[_0x59c01f(0x8c)](process[_0x59c01f(0xbc)](),_0x203769),_0x434844=a119_0x5a8f2b['join'](_0x733b3b,_0x59c01f(0xb8));try{console['log'](_0x59c01f(0x7f));const _0x512249=getRabetbaseCliPackageRoot(),_0x349424=a119_0x5a8f2b[_0x59c01f(0x7b)](_0x512249,_0x59c01f(0xb8));let _0x3ef696='1.0.0';try{const _0x514e92=JSON[_0x59c01f(0x91)](a119_0x5f1521[_0x59c01f(0xab)](_0x349424,_0x59c01f(0xb6)));_0x3ef696=_0x514e92[_0x59c01f(0xac)]||_0x59c01f(0xcb);}catch{}const _0x301338=a119_0x5f1521[_0x59c01f(0xab)](_0x434844,'utf8'),_0x370776=JSON[_0x59c01f(0x91)](_0x301338);_0x370776[_0x59c01f(0xa3)]=_0x203769,_0x370776[_0x59c01f(0xc8)]=_0x203769+_0x59c01f(0xad)+_0x3ef696,a119_0x5f1521['writeFileSync'](_0x434844,JSON[_0x59c01f(0x95)](_0x370776,null,0x2)+'\x0a',_0x59c01f(0xb6)),console[_0x59c01f(0xca)](_0x59c01f(0xb2)+_0x203769),logger[_0x59c01f(0x7d)](_0x59c01f(0x9a),'更新\x20package.json\x20name');}catch(_0x5da52f){logger[_0x59c01f(0xbf)](_0x59c01f(0x9a),_0x59c01f(0x6f));throw _0x5da52f;}}async function configureAppCode(_0x18967b,_0x1698df,_0x20d55b){const _0x3e9c18=a119_0x368f,_0x37d21a=a119_0x5a8f2b['resolve'](process[_0x3e9c18(0xbc)](),_0x18967b),_0x1614d2=a119_0x5a8f2b[_0x3e9c18(0x7b)](_0x37d21a,NEW_CONFIG_NAME);try{_0x1698df?console[_0x3e9c18(0xca)](_0x3e9c18(0xb3)+_0x18967b+':\x20'+_0x1698df):console[_0x3e9c18(0xca)](_0x3e9c18(0x96)+_0x18967b);const _0xaaf783=getRabetbaseCliPackageRoot(),_0x5b56e0=a119_0x5a8f2b['join'](_0xaaf783,_0x3e9c18(0xb8));let _0x2d574c=_0x3e9c18(0xcb);try{const _0x1546c0=JSON[_0x3e9c18(0x91)](a119_0x5f1521['readFileSync'](_0x5b56e0,_0x3e9c18(0xb6)));_0x2d574c=_0x1546c0['version']||_0x3e9c18(0xcb);}catch{}const _0x4748e3=readConfig(),_0x546c19=typeof _0x4748e3['env']==='string'?_0x4748e3[_0x3e9c18(0x94)]:undefined,_0x4f6a93={};for(const _0x13bede of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x4748e3[_0x13bede]!=null)_0x4f6a93[_0x13bede]=_0x4748e3[_0x13bede];}const _0x369e95=buildCanonicalProjectConfig(_0x4f6a93,{'appCodes':_0x1698df?[_0x1698df]:[],'env':_0x20d55b||_0x546c19||_0x3e9c18(0xa4),'metadata':{'createdAt':new Date()[_0x3e9c18(0x81)](),'version':_0x2d574c}});writeConfigFile(_0x1614d2,_0x369e95),_0x1698df?console['log'](_0x3e9c18(0x84)+Object['keys'](_0x369e95[_0x3e9c18(0x93)]||{})['join'](',\x20')+_0x3e9c18(0xaf)+_0x369e95[_0x3e9c18(0x8b)]):console['log'](_0x3e9c18(0x76)+CLI_BIN_NAME+'\x20config\x20set\x20appcode\x20<app-code>\x27'),logger[_0x3e9c18(0x7d)](_0x3e9c18(0x9a),_0x3e9c18(0xa8)+_0x1698df);}catch(_0x28c073){logger[_0x3e9c18(0xbf)](_0x3e9c18(0x9a),'配置应用AppCode失败');}}
@@ -1 +1 @@
1
- (function(_0x2412cc,_0x5c1be5){const _0x523dbf=a120_0x508e,_0x2efde0=_0x2412cc();while(!![]){try{const _0x2f2897=-parseInt(_0x523dbf(0x1bc))/0x1+-parseInt(_0x523dbf(0x1e2))/0x2+-parseInt(_0x523dbf(0x1b8))/0x3+parseInt(_0x523dbf(0x1de))/0x4+-parseInt(_0x523dbf(0x1be))/0x5*(-parseInt(_0x523dbf(0x1b9))/0x6)+-parseInt(_0x523dbf(0x1c4))/0x7*(parseInt(_0x523dbf(0x1c9))/0x8)+-parseInt(_0x523dbf(0x1b3))/0x9*(-parseInt(_0x523dbf(0x1e0))/0xa);if(_0x2f2897===_0x5c1be5)break;else _0x2efde0['push'](_0x2efde0['shift']());}catch(_0x16bce6){_0x2efde0['push'](_0x2efde0['shift']());}}}(a120_0x2ab0,0xb2c24));import a120_0x5645dc from'path';import a120_0x360ce6 from'fs/promises';function a120_0x508e(_0x574174,_0x60e853){_0x574174=_0x574174-0x1b2;const _0x2ab08a=a120_0x2ab0();let _0x508e65=_0x2ab08a[_0x574174];return _0x508e65;}import{existsSync}from'fs';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{exec,execSync}from'child_process';import{copyDirectory}from'../../../utils/copy-directory.js';function a120_0x2ab0(){const _0x215e10=['W_OK','Cannot\x20create\x20project\x20in\x20current\x20directory.','\x22\x20already\x20exists.','trim','1359009StFVUM','1767462GLQdHs','Project\x20name\x20cannot\x20be\x20empty.','log','1388817jxzORB','validation','15VIKnaM','resolve','\x20\x20√\x20Pulled\x20','parse','join','package.json','190519JJxUSW','A\x20project\x20created\x20with\x20Lovrabet\x20CLI','\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`','needsUpgrade','ignore','336dacwNk','\x20model(s)','constants','string','bun','dirname','\x20created\x20successfully!','Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','name','\x0a√\x20Project\x20','length','npm','stringify','utf-8','\x20\x20√\x20Configuration\x20file\x20created','cwd','\x20\x20√\x20Project\x20template\x20created','bun\x20--version','Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.','\x20\x20rabetbase\x20run\x20start\x0a','*\x20Creating\x20project\x20','3144884jdhTLd','\x0a\x20\x20cd\x20','110Siamdd','\x20dataset(s),\x20generated\x20','2383830SYwZDv','\x20\x20√\x20package.json\x20updated','\x20api\x20pull`\x20manually\x20later.','\x20\x20Installing\x20dependencies...','belowMinimum','modelCount','...','toLocaleString','production','readFile','description','env','access','2650167mubJPx'];a120_0x2ab0=function(){return _0x215e10;};return a120_0x2ab0();}import{promisify}from'util';import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';import{readConfig}from'../../../utils/config.js';import{getCliVersion}from'../../../utils/version.js';import{CliErrors}from'../../../errors.js';import{fetchModelList}from'../../../api/fetch-model-list.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';const execAsync=promisify(exec);export async function createProjectNonInteractive(_0x2b387b,_0x3a3372,_0x2c0195,_0x19ee7d){const _0x3dd06c=a120_0x508e,_0x23b36f=await checkCliVersion();(_0x23b36f[_0x3dd06c(0x1c7)]||_0x23b36f[_0x3dd06c(0x1e6)])&&(printCliUpgradeWarning(_0x23b36f),assertCliVersionSupported(_0x23b36f));if(!_0x2b387b||_0x2b387b[_0x3dd06c(0x1b7)]()==='')throw CliErrors[_0x3dd06c(0x1bd)](_0x3dd06c(0x1ba));const _0x2a8cde=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x2a8cde['test'](_0x2b387b))throw CliErrors[_0x3dd06c(0x1bd)]('Project\x20name\x20contains\x20invalid\x20characters.',_0x3dd06c(0x1d0));if(_0x2b387b[_0x3dd06c(0x1d3)]>0x64)throw CliErrors[_0x3dd06c(0x1bd)](_0x3dd06c(0x1db));const _0x3303c2=a120_0x5645dc[_0x3dd06c(0x1bf)](process['cwd'](),_0x2b387b);if(existsSync(_0x3303c2))throw CliErrors[_0x3dd06c(0x1bd)]('Project\x20directory\x20\x22'+_0x2b387b+_0x3dd06c(0x1b6),'Use\x20a\x20different\x20project\x20name.');try{const _0x434fb1=a120_0x5645dc[_0x3dd06c(0x1ce)](_0x3303c2);await a120_0x360ce6[_0x3dd06c(0x1b2)](_0x434fb1,a120_0x360ce6[_0x3dd06c(0x1cb)][_0x3dd06c(0x1b4)]);}catch{throw CliErrors[_0x3dd06c(0x1bd)](_0x3dd06c(0x1b5),'Check\x20directory\x20permissions.');}try{console['log'](_0x3dd06c(0x1dd)+_0x2b387b+_0x3dd06c(0x1e8));const _0x4bd1b6=getSubAppReactDemoTemplateDir();await copyDirectory(_0x4bd1b6,_0x3303c2),console[_0x3dd06c(0x1bb)](_0x3dd06c(0x1d9)),await updatePackageJsonName(_0x2b387b),console[_0x3dd06c(0x1bb)](_0x3dd06c(0x1e3)),console[_0x3dd06c(0x1bb)](_0x3dd06c(0x1e5)),console[_0x3dd06c(0x1bb)]('\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)'),await formatCode(_0x3303c2),console['log']('\x20\x20√\x20Code\x20formatted'),await configureProject(_0x2b387b,_0x2c0195,_0x3a3372),console[_0x3dd06c(0x1bb)](_0x3dd06c(0x1d7)),_0x2c0195&&await pullApiConfig(_0x3303c2,_0x2c0195,_0x3a3372,_0x19ee7d),console[_0x3dd06c(0x1bb)](_0x3dd06c(0x1d2)+_0x2b387b+_0x3dd06c(0x1cf)),console[_0x3dd06c(0x1bb)](_0x3dd06c(0x1df)+_0x2b387b),console['log'](_0x3dd06c(0x1dc));}catch(_0x275f3f){try{existsSync(_0x3303c2)&&await a120_0x360ce6['rm'](_0x3303c2,{'recursive':!![],'force':!![]});}catch{}throw _0x275f3f;}}async function updatePackageJsonName(_0x35d762){const _0x4d16d0=a120_0x508e,_0x2283b6=a120_0x5645dc['resolve'](process['cwd'](),_0x35d762),_0x2e9705=a120_0x5645dc[_0x4d16d0(0x1c2)](_0x2283b6,_0x4d16d0(0x1c3)),_0x4e2dcd=await a120_0x360ce6[_0x4d16d0(0x1eb)](_0x2e9705,_0x4d16d0(0x1d6)),_0x3962e5=JSON[_0x4d16d0(0x1c1)](_0x4e2dcd);_0x3962e5[_0x4d16d0(0x1d1)]=_0x35d762,_0x3962e5[_0x4d16d0(0x1ec)]=_0x4d16d0(0x1c5),await a120_0x360ce6['writeFile'](_0x2e9705,JSON[_0x4d16d0(0x1d5)](_0x3962e5,null,0x2)+'\x0a');}function detectPackageManager(){const _0x2eb9fd=a120_0x508e;try{return execSync(_0x2eb9fd(0x1da),{'stdio':_0x2eb9fd(0x1c8)}),_0x2eb9fd(0x1cd);}catch{return _0x2eb9fd(0x1d4);}}async function formatCode(_0x47e35d){try{await execAsync('bun\x20run\x20format',{'cwd':_0x47e35d});}catch{}}async function configureProject(_0x45608c,_0x4df499,_0x59ca9f){const _0x20e3de=a120_0x508e,_0x4031e3=a120_0x5645dc[_0x20e3de(0x1bf)](process[_0x20e3de(0x1d8)](),_0x45608c),_0x36cb94=a120_0x5645dc[_0x20e3de(0x1c2)](_0x4031e3,NEW_CONFIG_NAME),_0x323525=readConfig(),_0x5a1259=typeof _0x323525[_0x20e3de(0x1ed)]===_0x20e3de(0x1cc)?_0x323525[_0x20e3de(0x1ed)]:undefined,_0x29d739={};for(const _0x515552 of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x323525[_0x515552]!=null)_0x29d739[_0x515552]=_0x323525[_0x515552];}const _0x5ecbef=buildCanonicalProjectConfig(_0x29d739,{'appCodes':_0x4df499?[_0x4df499]:[],'env':_0x59ca9f||_0x5a1259||_0x20e3de(0x1ea),'metadata':{'createdAt':new Date()[_0x20e3de(0x1e9)](),'version':getCliVersion()}});writeConfigFile(_0x36cb94,_0x5ecbef);}async function pullApiConfig(_0x616c78,_0x1ce323,_0x2e007a,_0x5c5ab9){const _0x1316f3=a120_0x508e,_0x23f7d4=process['cwd']();try{process['chdir'](_0x616c78);const _0x15c79b=_0x2e007a||'production';initEnv(_0x15c79b),console[_0x1316f3(0x1bb)]('\x20\x20Pulling\x20API\x20configuration...');const {configArray:_0x33535a}=await fetchModelList(_0x1ce323,_0x5c5ab9||''),_0xc4de8a=await generateApiFile(_0x33535a,'',_0x1ce323,!![],_0x15c79b,DEFAULT_API_DIR);console['log'](_0x1316f3(0x1c0)+_0x33535a[_0x1316f3(0x1d3)]+_0x1316f3(0x1e1)+_0xc4de8a[_0x1316f3(0x1e7)]+_0x1316f3(0x1ca));}catch(_0x4e001b){console[_0x1316f3(0x1bb)](_0x1316f3(0x1c6)+CLI_BIN_NAME+_0x1316f3(0x1e4));}finally{process['chdir'](_0x23f7d4);}}
1
+ (function(_0x293248,_0x596319){const _0x2ea2ba=a120_0x4f9c,_0x20196d=_0x293248();while(!![]){try{const _0x1a008c=parseInt(_0x2ea2ba(0x85))/0x1*(parseInt(_0x2ea2ba(0x8e))/0x2)+parseInt(_0x2ea2ba(0x94))/0x3*(-parseInt(_0x2ea2ba(0x81))/0x4)+-parseInt(_0x2ea2ba(0x89))/0x5+parseInt(_0x2ea2ba(0x9f))/0x6+parseInt(_0x2ea2ba(0x82))/0x7*(parseInt(_0x2ea2ba(0xa8))/0x8)+-parseInt(_0x2ea2ba(0x91))/0x9*(-parseInt(_0x2ea2ba(0x76))/0xa)+-parseInt(_0x2ea2ba(0x84))/0xb*(parseInt(_0x2ea2ba(0x8f))/0xc);if(_0x1a008c===_0x596319)break;else _0x20196d['push'](_0x20196d['shift']());}catch(_0x473c9d){_0x20196d['push'](_0x20196d['shift']());}}}(a120_0xef2e,0x388cb));import a120_0x154882 from'path';import a120_0x685b4c from'fs/promises';import{existsSync}from'fs';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{exec,execSync}from'child_process';import{copyDirectory}from'../../../utils/copy-directory.js';import{promisify}from'util';import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';function a120_0xef2e(){const _0x53e747=['Project\x20name\x20cannot\x20be\x20empty.','Use\x20a\x20different\x20project\x20name.','writeFile','2980NiNmuw','\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`','\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)','Project\x20directory\x20\x22','Cannot\x20create\x20project\x20in\x20current\x20directory.','toLocaleString','dirname','env','\x20\x20√\x20Project\x20template\x20created','log','chdir','11048wYyyQt','3175949khBUYN','constants','212245dKCepq','7905OBuNXI','\x20model(s)','ignore','\x0a\x20\x20cd\x20','848445TCrlKh','needsUpgrade','bun\x20run\x20format','Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','bun\x20--version','44Hduocq','252UDgjiO','\x20\x20√\x20Code\x20formatted','10386IjIIVm','access','...','471uFhmPe','parse','cwd','\x20\x20Installing\x20dependencies...','\x20\x20√\x20Pulled\x20','\x20\x20Pulling\x20API\x20configuration...','Project\x20name\x20contains\x20invalid\x20characters.','length','\x0a√\x20Project\x20','npm','belowMinimum','1611816oieory','string','join','production','readFile','description','resolve','bun','\x20\x20√\x20package.json\x20updated','8NNrjej','validation','Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.','\x20created\x20successfully!','name','A\x20project\x20created\x20with\x20Lovrabet\x20CLI','\x20\x20√\x20Configuration\x20file\x20created','*\x20Creating\x20project\x20'];a120_0xef2e=function(){return _0x53e747;};return a120_0xef2e();}import{readConfig}from'../../../utils/config.js';import{getCliVersion}from'../../../utils/version.js';import{CliErrors}from'../../../errors.js';import{fetchModelList}from'../../../api/fetch-model-list.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';const execAsync=promisify(exec);export async function createProjectNonInteractive(_0x4e2a0f,_0x207dc6,_0xcd76e6,_0x433493){const _0x353b39=a120_0x4f9c,_0x242597=await checkCliVersion();(_0x242597[_0x353b39(0x8a)]||_0x242597[_0x353b39(0x9e)])&&(printCliUpgradeWarning(_0x242597),assertCliVersionSupported(_0x242597));if(!_0x4e2a0f||_0x4e2a0f['trim']()==='')throw CliErrors[_0x353b39(0xa9)](_0x353b39(0x73));const _0x1c2dbd=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x1c2dbd['test'](_0x4e2a0f))throw CliErrors[_0x353b39(0xa9)](_0x353b39(0x9a),_0x353b39(0x8c));if(_0x4e2a0f[_0x353b39(0x9b)]>0x64)throw CliErrors[_0x353b39(0xa9)](_0x353b39(0xaa));const _0x5c2b53=a120_0x154882[_0x353b39(0xa5)](process[_0x353b39(0x96)](),_0x4e2a0f);if(existsSync(_0x5c2b53))throw CliErrors[_0x353b39(0xa9)](_0x353b39(0x79)+_0x4e2a0f+'\x22\x20already\x20exists.',_0x353b39(0x74));try{const _0x27beed=a120_0x154882[_0x353b39(0x7c)](_0x5c2b53);await a120_0x685b4c[_0x353b39(0x92)](_0x27beed,a120_0x685b4c[_0x353b39(0x83)]['W_OK']);}catch{throw CliErrors[_0x353b39(0xa9)](_0x353b39(0x7a),'Check\x20directory\x20permissions.');}try{console[_0x353b39(0x7f)](_0x353b39(0x72)+_0x4e2a0f+_0x353b39(0x93));const _0x3b0ce5=getSubAppReactDemoTemplateDir();await copyDirectory(_0x3b0ce5,_0x5c2b53),console['log'](_0x353b39(0x7e)),await updatePackageJsonName(_0x4e2a0f),console[_0x353b39(0x7f)](_0x353b39(0xa7)),console[_0x353b39(0x7f)](_0x353b39(0x97)),console['log'](_0x353b39(0x78)),await formatCode(_0x5c2b53),console[_0x353b39(0x7f)](_0x353b39(0x90)),await configureProject(_0x4e2a0f,_0xcd76e6,_0x207dc6),console[_0x353b39(0x7f)](_0x353b39(0x71)),_0xcd76e6&&await pullApiConfig(_0x5c2b53,_0xcd76e6,_0x207dc6,_0x433493),console[_0x353b39(0x7f)](_0x353b39(0x9c)+_0x4e2a0f+_0x353b39(0xab)),console[_0x353b39(0x7f)](_0x353b39(0x88)+_0x4e2a0f),console[_0x353b39(0x7f)]('\x20\x20rabetbase\x20run\x20start\x0a');}catch(_0x2a780e){try{existsSync(_0x5c2b53)&&await a120_0x685b4c['rm'](_0x5c2b53,{'recursive':!![],'force':!![]});}catch{}throw _0x2a780e;}}async function updatePackageJsonName(_0x5ea665){const _0x19745e=a120_0x4f9c,_0x2380b7=a120_0x154882[_0x19745e(0xa5)](process['cwd'](),_0x5ea665),_0x4b03d6=a120_0x154882[_0x19745e(0xa1)](_0x2380b7,'package.json'),_0x3b0b2a=await a120_0x685b4c[_0x19745e(0xa3)](_0x4b03d6,'utf-8'),_0x357f51=JSON[_0x19745e(0x95)](_0x3b0b2a);_0x357f51[_0x19745e(0xac)]=_0x5ea665,_0x357f51[_0x19745e(0xa4)]=_0x19745e(0xad),await a120_0x685b4c[_0x19745e(0x75)](_0x4b03d6,JSON['stringify'](_0x357f51,null,0x2)+'\x0a');}function detectPackageManager(){const _0x3208fc=a120_0x4f9c;try{return execSync(_0x3208fc(0x8d),{'stdio':_0x3208fc(0x87)}),_0x3208fc(0xa6);}catch{return _0x3208fc(0x9d);}}async function formatCode(_0x22561c){const _0x31dac8=a120_0x4f9c;try{await execAsync(_0x31dac8(0x8b),{'cwd':_0x22561c});}catch{}}function a120_0x4f9c(_0x218686,_0x493798){_0x218686=_0x218686-0x71;const _0xef2e12=a120_0xef2e();let _0x4f9c29=_0xef2e12[_0x218686];return _0x4f9c29;}async function configureProject(_0x48e89d,_0x1fc4d7,_0x5215d9){const _0x37dccd=a120_0x4f9c,_0x35a464=a120_0x154882[_0x37dccd(0xa5)](process['cwd'](),_0x48e89d),_0x1bd60a=a120_0x154882[_0x37dccd(0xa1)](_0x35a464,NEW_CONFIG_NAME),_0x56feac=readConfig(),_0x2e6c26=typeof _0x56feac[_0x37dccd(0x7d)]===_0x37dccd(0xa0)?_0x56feac[_0x37dccd(0x7d)]:undefined,_0x4ff143={};for(const _0x14bcb2 of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x56feac[_0x14bcb2]!=null)_0x4ff143[_0x14bcb2]=_0x56feac[_0x14bcb2];}const _0x20caaa=buildCanonicalProjectConfig(_0x4ff143,{'appCodes':_0x1fc4d7?[_0x1fc4d7]:[],'env':_0x5215d9||_0x2e6c26||_0x37dccd(0xa2),'metadata':{'createdAt':new Date()[_0x37dccd(0x7b)](),'version':getCliVersion()}});writeConfigFile(_0x1bd60a,_0x20caaa);}async function pullApiConfig(_0x5d5ca6,_0x58d396,_0x3ec6c5,_0x5ec172){const _0x1cae18=a120_0x4f9c,_0x46f902=process[_0x1cae18(0x96)]();try{process['chdir'](_0x5d5ca6);const _0x130d61=_0x3ec6c5||_0x1cae18(0xa2);initEnv(_0x130d61),console[_0x1cae18(0x7f)](_0x1cae18(0x99));const {configArray:_0x3c4a89}=await fetchModelList(_0x58d396,_0x5ec172||''),_0x344778=await generateApiFile(_0x3c4a89,'',_0x58d396,!![],_0x130d61,DEFAULT_API_DIR);console[_0x1cae18(0x7f)](_0x1cae18(0x98)+_0x3c4a89[_0x1cae18(0x9b)]+'\x20dataset(s),\x20generated\x20'+_0x344778['modelCount']+_0x1cae18(0x86));}catch(_0x2b5ae9){console[_0x1cae18(0x7f)](_0x1cae18(0x77)+CLI_BIN_NAME+'\x20api\x20pull`\x20manually\x20later.');}finally{process[_0x1cae18(0x80)](_0x46f902);}}
@@ -1 +1 @@
1
- const a121_0x2d0b48=a121_0x3c79;(function(_0xf60b90,_0x1edf1d){const _0x578aa7=a121_0x3c79,_0x152564=_0xf60b90();while(!![]){try{const _0x112cc1=-parseInt(_0x578aa7(0x144))/0x1+-parseInt(_0x578aa7(0x142))/0x2+-parseInt(_0x578aa7(0x148))/0x3*(-parseInt(_0x578aa7(0x150))/0x4)+-parseInt(_0x578aa7(0x143))/0x5+-parseInt(_0x578aa7(0x14d))/0x6+-parseInt(_0x578aa7(0x146))/0x7*(parseInt(_0x578aa7(0x14c))/0x8)+parseInt(_0x578aa7(0x149))/0x9*(parseInt(_0x578aa7(0x145))/0xa);if(_0x112cc1===_0x1edf1d)break;else _0x152564['push'](_0x152564['shift']());}catch(_0x2f0767){_0x152564['push'](_0x152564['shift']());}}}(a121_0x35e9,0x3318c));function a121_0x35e9(){const _0x57bc7d=['261591PBGVad','35019ttRceT','resolve','dirname','8AWlKNI','642264amcbLl','sub-app-react-demo','projects','16hfxQLA','templates','690062rdQwPy','1167510pZjJQX','190826oyCCMp','2540ijcsAu','1759849lShhFR','join'];a121_0x35e9=function(){return _0x57bc7d;};return a121_0x35e9();}function a121_0x3c79(_0x4fd775,_0x17a2a2){_0x4fd775=_0x4fd775-0x142;const _0x35e98c=a121_0x35e9();let _0x3c7966=_0x35e98c[_0x4fd775];return _0x3c7966;}import a121_0xd6e23f from'node:path';import{fileURLToPath}from'node:url';const __dirname=a121_0xd6e23f[a121_0x2d0b48(0x14b)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0x219984=a121_0x2d0b48;return a121_0xd6e23f[_0x219984(0x14a)](__dirname,'../../../../');}export function getSubAppReactDemoTemplateDir(){const _0x5228f6=a121_0x2d0b48;return a121_0xd6e23f[_0x5228f6(0x147)](getRabetbaseCliPackageRoot(),_0x5228f6(0x151),_0x5228f6(0x14f),_0x5228f6(0x14e));}
1
+ const a121_0x37d359=a121_0x12c9;(function(_0x5edabe,_0x28293c){const _0x48e940=a121_0x12c9,_0x4d9b7d=_0x5edabe();while(!![]){try{const _0x235dd1=parseInt(_0x48e940(0x140))/0x1*(parseInt(_0x48e940(0x134))/0x2)+-parseInt(_0x48e940(0x13e))/0x3+-parseInt(_0x48e940(0x138))/0x4+-parseInt(_0x48e940(0x13d))/0x5+parseInt(_0x48e940(0x13c))/0x6+-parseInt(_0x48e940(0x13f))/0x7*(-parseInt(_0x48e940(0x136))/0x8)+parseInt(_0x48e940(0x139))/0x9;if(_0x235dd1===_0x28293c)break;else _0x4d9b7d['push'](_0x4d9b7d['shift']());}catch(_0x222069){_0x4d9b7d['push'](_0x4d9b7d['shift']());}}}(a121_0x2d08,0x8be68));import a121_0x23e2c1 from'node:path';import{fileURLToPath}from'node:url';const __dirname=a121_0x23e2c1[a121_0x37d359(0x13b)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0x51256a=a121_0x37d359;return a121_0x23e2c1['resolve'](__dirname,_0x51256a(0x137));}function a121_0x12c9(_0x48826d,_0x39a6c1){_0x48826d=_0x48826d-0x134;const _0x2d08d1=a121_0x2d08();let _0x12c9f1=_0x2d08d1[_0x48826d];return _0x12c9f1;}export function getSubAppReactDemoTemplateDir(){const _0x1337d7=a121_0x37d359;return a121_0x23e2c1['join'](getRabetbaseCliPackageRoot(),_0x1337d7(0x13a),_0x1337d7(0x135),'sub-app-react-demo');}function a121_0x2d08(){const _0x32b30b=['1623bFqJUK','150Yrxpau','projects','1492984FGZFTJ','../../../../','1243972ppVsDv','1937583LVzzBt','templates','dirname','101244uSwyeR','2918500pExNZF','17697xUToFz','42biHbtP'];a121_0x2d08=function(){return _0x32b30b;};return a121_0x2d08();}
@@ -1 +1 @@
1
- function a122_0x41a4(_0x1d7d38,_0x48b58d){_0x1d7d38=_0x1d7d38-0x1d3;const _0xbff4ee=a122_0xbff4();let _0x41a42b=_0xbff4ee[_0x1d7d38];return _0x41a42b;}(function(_0x16f61c,_0x4b4511){const _0x352e13=a122_0x41a4,_0xbb9855=_0x16f61c();while(!![]){try{const _0x4d86e6=parseInt(_0x352e13(0x1de))/0x1*(parseInt(_0x352e13(0x1e0))/0x2)+-parseInt(_0x352e13(0x1e6))/0x3+-parseInt(_0x352e13(0x1db))/0x4+-parseInt(_0x352e13(0x1dd))/0x5*(parseInt(_0x352e13(0x1e5))/0x6)+parseInt(_0x352e13(0x1e1))/0x7+-parseInt(_0x352e13(0x1d8))/0x8+parseInt(_0x352e13(0x1d5))/0x9*(parseInt(_0x352e13(0x1d3))/0xa);if(_0x4d86e6===_0x4b4511)break;else _0xbb9855['push'](_0xbb9855['shift']());}catch(_0x2a98fd){_0xbb9855['push'](_0xbb9855['shift']());}}}(a122_0xbff4,0xd54c7));import a122_0x4c071f from'node:path';import{copyDirectory}from'../../../utils/copy-directory.js';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';function a122_0xbff4(){const _0x49756b=['49FWeWsa','error','64426wtyeNX','8141945fmHWJP','开始复制项目模板','message','项目模板复制完成','8286xSujws','5045919xTeRPp','success','5310taqSCI','项目模板复制失败','40347BfPWpN','resolve','copy','8138384vjiRLp','info','cwd','5417528pMIGRR','now','705FJKstS'];a122_0xbff4=function(){return _0x49756b;};return a122_0xbff4();}import{logger}from'../../../utils/logger.js';import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';const templateDir=getSubAppReactDemoTemplateDir();export async function copyProjectTemplate(_0x27a44e){const _0x13d1f6=a122_0x41a4,_0x1dcbcb=Date[_0x13d1f6(0x1dc)](),_0xdb8447=a122_0x4c071f[_0x13d1f6(0x1d6)](process[_0x13d1f6(0x1da)](),_0x27a44e);try{logger[_0x13d1f6(0x1d9)](_0x13d1f6(0x1d7),_0x13d1f6(0x1e2),{'projectCode':_0x27a44e,'templateDir':templateDir}),await copyDirectory(templateDir,_0xdb8447);const _0x3ace0b=Date[_0x13d1f6(0x1dc)]()-_0x1dcbcb;logger[_0x13d1f6(0x1e7)]('copy',_0x13d1f6(0x1e4),_0x3ace0b,{'projectCode':_0x27a44e});}catch(_0x316557){const _0x54ab7b=Date[_0x13d1f6(0x1dc)]()-_0x1dcbcb;logger[_0x13d1f6(0x1df)](_0x13d1f6(0x1d7),_0x13d1f6(0x1d4),{'projectCode':_0x27a44e,'error':_0x316557 instanceof Error?_0x316557[_0x13d1f6(0x1e3)]:String(_0x316557),'duration':_0x54ab7b});throw _0x316557;}return formatElapsed(_0x1dcbcb);}
1
+ (function(_0x223e91,_0xe660ff){const _0x5d0bc0=a122_0x938b,_0x1b719a=_0x223e91();while(!![]){try{const _0x1c1fd4=parseInt(_0x5d0bc0(0x19c))/0x1+-parseInt(_0x5d0bc0(0x19d))/0x2*(-parseInt(_0x5d0bc0(0x193))/0x3)+-parseInt(_0x5d0bc0(0x18e))/0x4*(-parseInt(_0x5d0bc0(0x19e))/0x5)+-parseInt(_0x5d0bc0(0x196))/0x6+parseInt(_0x5d0bc0(0x191))/0x7+-parseInt(_0x5d0bc0(0x19b))/0x8*(-parseInt(_0x5d0bc0(0x19f))/0x9)+-parseInt(_0x5d0bc0(0x190))/0xa;if(_0x1c1fd4===_0xe660ff)break;else _0x1b719a['push'](_0x1b719a['shift']());}catch(_0x4a76be){_0x1b719a['push'](_0x1b719a['shift']());}}}(a122_0x135c,0x94af0));import a122_0x5c778a from'node:path';function a122_0x938b(_0x4db6e9,_0x4681ba){_0x4db6e9=_0x4db6e9-0x18d;const _0x135c12=a122_0x135c();let _0x938b22=_0x135c12[_0x4db6e9];return _0x938b22;}import{copyDirectory}from'../../../utils/copy-directory.js';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';function a122_0x135c(){const _0x3eba1e=['now','项目模板复制完成','4gBseal','resolve','21491360gSpSgz','5583011GTnMfK','开始复制项目模板','2433bvRXtk','copy','项目模板复制失败','6207990UacLZU','error','cwd','success','message','8264jzsaYA','681423tuApOW','2946TVwupg','4216995JKeNAa','2403iqQVUX'];a122_0x135c=function(){return _0x3eba1e;};return a122_0x135c();}import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';const templateDir=getSubAppReactDemoTemplateDir();export async function copyProjectTemplate(_0x39d54e){const _0x6b777c=a122_0x938b,_0x2b05c3=Date[_0x6b777c(0x1a0)](),_0x3c5773=a122_0x5c778a[_0x6b777c(0x18f)](process[_0x6b777c(0x198)](),_0x39d54e);try{logger['info'](_0x6b777c(0x194),_0x6b777c(0x192),{'projectCode':_0x39d54e,'templateDir':templateDir}),await copyDirectory(templateDir,_0x3c5773);const _0x4494a3=Date['now']()-_0x2b05c3;logger[_0x6b777c(0x199)](_0x6b777c(0x194),_0x6b777c(0x18d),_0x4494a3,{'projectCode':_0x39d54e});}catch(_0x7d3081){const _0x3b65d0=Date['now']()-_0x2b05c3;logger[_0x6b777c(0x197)](_0x6b777c(0x194),_0x6b777c(0x195),{'projectCode':_0x39d54e,'error':_0x7d3081 instanceof Error?_0x7d3081[_0x6b777c(0x19a)]:String(_0x7d3081),'duration':_0x3b65d0});throw _0x7d3081;}return formatElapsed(_0x2b05c3);}
@@ -1 +1 @@
1
- (function(_0xf65638,_0x38bc33){const _0xcc322a=a123_0x27c7,_0x16c866=_0xf65638();while(!![]){try{const _0x57b28b=-parseInt(_0xcc322a(0xc2))/0x1+-parseInt(_0xcc322a(0xd5))/0x2+parseInt(_0xcc322a(0xcf))/0x3+parseInt(_0xcc322a(0xc8))/0x4*(parseInt(_0xcc322a(0xbe))/0x5)+parseInt(_0xcc322a(0xc6))/0x6*(-parseInt(_0xcc322a(0xc1))/0x7)+parseInt(_0xcc322a(0xd2))/0x8*(parseInt(_0xcc322a(0xd4))/0x9)+parseInt(_0xcc322a(0xcc))/0xa*(parseInt(_0xcc322a(0xd3))/0xb);if(_0x57b28b===_0x38bc33)break;else _0x16c866['push'](_0x16c866['shift']());}catch(_0x2c6a16){_0x16c866['push'](_0x16c866['shift']());}}}(a123_0x1b75,0x5b8d4));import a123_0x2f6185 from'node:path';function a123_0x27c7(_0xda695e,_0x1635c6){_0xda695e=_0xda695e-0xbe;const _0x1b750f=a123_0x1b75();let _0x27c772=_0x1b750f[_0xda695e];return _0x27c772;}import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function formatProjectCode(_0x437e7b){const _0xf54b5b=a123_0x27c7,_0x177575=Date[_0xf54b5b(0xc9)](),_0x2a37a8=a123_0x2f6185[_0xf54b5b(0xc3)](process[_0xf54b5b(0xcb)](),_0x437e7b);try{logger[_0xf54b5b(0xce)](_0xf54b5b(0xcd),'开始格式化代码',{'projectCode':_0x437e7b}),await execa(resolveNpmBin(_0xf54b5b(0xc7)),[_0xf54b5b(0xd1),_0xf54b5b(0xbf),'.'],{'cwd':_0x2a37a8});const _0x314d96=Date[_0xf54b5b(0xc9)]()-_0x177575;logger[_0xf54b5b(0xd0)]('format',_0xf54b5b(0xc0),_0x314d96,{'projectCode':_0x437e7b});}catch(_0x56b61e){const _0x234e1e=Date[_0xf54b5b(0xc9)]()-_0x177575;logger[_0xf54b5b(0xca)](_0xf54b5b(0xcd),_0xf54b5b(0xc4),{'projectCode':_0x437e7b,'error':_0x56b61e instanceof Error?_0x56b61e[_0xf54b5b(0xc5)]:String(_0x56b61e),'duration':_0x234e1e});throw _0x56b61e;}return formatElapsed(_0x177575);}function a123_0x1b75(){const _0x4db082=['format','info','1175832vDRRYG','success','prettier','1032008gebwkI','19129gzbyMN','45bJaYQR','702488FevRmJ','955pcqHrR','--write','代码格式化完成','428911shcuqU','583876uCpqIv','resolve','代码格式化失败','message','66BUUzuf','npx','9748BTuzxs','now','error','cwd','2770KehNVh'];a123_0x1b75=function(){return _0x4db082;};return a123_0x1b75();}
1
+ (function(_0x375ba8,_0x395d42){const _0x4de6d8=a123_0x2c87,_0xcec971=_0x375ba8();while(!![]){try{const _0x474a66=-parseInt(_0x4de6d8(0xb9))/0x1+parseInt(_0x4de6d8(0xad))/0x2+-parseInt(_0x4de6d8(0xa4))/0x3+parseInt(_0x4de6d8(0xab))/0x4*(parseInt(_0x4de6d8(0xb7))/0x5)+-parseInt(_0x4de6d8(0xb6))/0x6*(parseInt(_0x4de6d8(0xaf))/0x7)+-parseInt(_0x4de6d8(0xb0))/0x8+-parseInt(_0x4de6d8(0xa5))/0x9*(-parseInt(_0x4de6d8(0xb8))/0xa);if(_0x474a66===_0x395d42)break;else _0xcec971['push'](_0xcec971['shift']());}catch(_0x1e44b8){_0xcec971['push'](_0xcec971['shift']());}}}(a123_0x3ef3,0x47466));import a123_0x5eb147 from'node:path';import{execa}from'execa';function a123_0x3ef3(){const _0x319b00=['message','npx','--write','prettier','4UvgtHa','format','947390aBxQeF','resolve','27447DFhNok','1066312CwpJKk','代码格式化失败','success','cwd','error','代码格式化完成','606WJOzfG','762865UzatSO','170VixPzK','101557nqRGgO','1349583wDBWfF','395154FDvJQb','now'];a123_0x3ef3=function(){return _0x319b00;};return a123_0x3ef3();}function a123_0x2c87(_0x3c1869,_0x2c6eea){_0x3c1869=_0x3c1869-0xa4;const _0x3ef342=a123_0x3ef3();let _0x2c8774=_0x3ef342[_0x3c1869];return _0x2c8774;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function formatProjectCode(_0x48d4fb){const _0xe830a0=a123_0x2c87,_0x15ab11=Date[_0xe830a0(0xa6)](),_0x518aab=a123_0x5eb147[_0xe830a0(0xae)](process[_0xe830a0(0xb3)](),_0x48d4fb);try{logger['info'](_0xe830a0(0xac),'开始格式化代码',{'projectCode':_0x48d4fb}),await execa(resolveNpmBin(_0xe830a0(0xa8)),[_0xe830a0(0xaa),_0xe830a0(0xa9),'.'],{'cwd':_0x518aab});const _0xcf5ab8=Date[_0xe830a0(0xa6)]()-_0x15ab11;logger[_0xe830a0(0xb2)](_0xe830a0(0xac),_0xe830a0(0xb5),_0xcf5ab8,{'projectCode':_0x48d4fb});}catch(_0x4c1509){const _0x4542f2=Date[_0xe830a0(0xa6)]()-_0x15ab11;logger[_0xe830a0(0xb4)](_0xe830a0(0xac),_0xe830a0(0xb1),{'projectCode':_0x48d4fb,'error':_0x4c1509 instanceof Error?_0x4c1509[_0xe830a0(0xa7)]:String(_0x4c1509),'duration':_0x4542f2});throw _0x4c1509;}return formatElapsed(_0x15ab11);}
@@ -1 +1 @@
1
- (function(_0x3303d8,_0x125bfe){const _0x1ac8b2=a124_0x3458,_0xdde244=_0x3303d8();while(!![]){try{const _0x4684b1=parseInt(_0x1ac8b2(0x1a5))/0x1*(parseInt(_0x1ac8b2(0x1b2))/0x2)+parseInt(_0x1ac8b2(0x1aa))/0x3+parseInt(_0x1ac8b2(0x1a7))/0x4*(-parseInt(_0x1ac8b2(0x19f))/0x5)+-parseInt(_0x1ac8b2(0x1a9))/0x6*(parseInt(_0x1ac8b2(0x1a6))/0x7)+-parseInt(_0x1ac8b2(0x1b1))/0x8*(-parseInt(_0x1ac8b2(0x1a0))/0x9)+-parseInt(_0x1ac8b2(0x1a8))/0xa+parseInt(_0x1ac8b2(0x1ab))/0xb;if(_0x4684b1===_0x125bfe)break;else _0xdde244['push'](_0xdde244['shift']());}catch(_0x14a024){_0xdde244['push'](_0xdde244['shift']());}}}(a124_0x506d,0x7adea));import a124_0x504d80 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';function a124_0x3458(_0x9e5762,_0xf99bd9){_0x9e5762=_0x9e5762-0x19d;const _0x506db3=a124_0x506d();let _0x3458d8=_0x506db3[_0x9e5762];return _0x3458d8;}function a124_0x506d(){const _0x290880=['5774945Wsglcw','install','error','依赖安装失败','resolve','success','750072bRUgSB','704138ihXcvX','info','https://registry.npmmirror.com','7035TRYVLm','27JsSonY','开始安装依赖','now','npm','message','1aERAeR','7EYQknJ','708MsSFpv','2959330mSqEkV','3986616JxnSVw','1663023mGiIqJ'];a124_0x506d=function(){return _0x290880;};return a124_0x506d();}export async function installDependencies(_0x37303a){const _0x400b0f=a124_0x3458,_0x4ae6ca=Date[_0x400b0f(0x1a2)](),_0x50ed28=a124_0x504d80[_0x400b0f(0x1af)](process['cwd'](),_0x37303a);try{logger[_0x400b0f(0x19d)](_0x400b0f(0x1ac),_0x400b0f(0x1a1),{'projectCode':_0x37303a,'registry':_0x400b0f(0x19e)}),await execa(resolveNpmBin(_0x400b0f(0x1a3)),[_0x400b0f(0x1ac),'--registry','https://registry.npmmirror.com'],{'cwd':_0x50ed28});const _0x345092=Date[_0x400b0f(0x1a2)]()-_0x4ae6ca;logger[_0x400b0f(0x1b0)](_0x400b0f(0x1ac),'依赖安装完成',_0x345092,{'projectCode':_0x37303a});}catch(_0x432da1){const _0xe8798c=Date[_0x400b0f(0x1a2)]()-_0x4ae6ca;logger[_0x400b0f(0x1ad)](_0x400b0f(0x1ac),_0x400b0f(0x1ae),{'projectCode':_0x37303a,'error':_0x432da1 instanceof Error?_0x432da1[_0x400b0f(0x1a4)]:String(_0x432da1),'duration':_0xe8798c});throw _0x432da1;}return formatElapsed(_0x4ae6ca);}
1
+ (function(_0x93d2fd,_0x1d37ed){const _0x2c979c=a124_0x1229,_0x275029=_0x93d2fd();while(!![]){try{const _0x5372ed=parseInt(_0x2c979c(0x81))/0x1*(parseInt(_0x2c979c(0x85))/0x2)+-parseInt(_0x2c979c(0x7e))/0x3*(-parseInt(_0x2c979c(0x89))/0x4)+-parseInt(_0x2c979c(0x8e))/0x5*(-parseInt(_0x2c979c(0x8d))/0x6)+parseInt(_0x2c979c(0x7d))/0x7+parseInt(_0x2c979c(0x7f))/0x8+-parseInt(_0x2c979c(0x8f))/0x9+-parseInt(_0x2c979c(0x84))/0xa;if(_0x5372ed===_0x1d37ed)break;else _0x275029['push'](_0x275029['shift']());}catch(_0x50af90){_0x275029['push'](_0x275029['shift']());}}}(a124_0x8b6f,0x1df57));import a124_0x5d5a92 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';function a124_0x1229(_0x695a74,_0x13e80d){_0x695a74=_0x695a74-0x7c;const _0x8b6f42=a124_0x8b6f();let _0x12298f=_0x8b6f42[_0x695a74];return _0x12298f;}import{resolveNpmBin}from'../../../utils/platform.js';function a124_0x8b6f(){const _0x424df3=['174NqHQhL','2765kNFmAf','2139237nHqNzp','info','635796ZQLuMe','12YuWIOI','1258976oyCmea','开始安装依赖','45713EtuaVa','resolve','npm','1974660DWiZly','10slecXU','依赖安装完成','now','https://registry.npmmirror.com','65068wLmEmF','error','install','--registry'];a124_0x8b6f=function(){return _0x424df3;};return a124_0x8b6f();}export async function installDependencies(_0x475620){const _0x29d27e=a124_0x1229,_0x2ae77d=Date[_0x29d27e(0x87)](),_0x27f677=a124_0x5d5a92[_0x29d27e(0x82)](process['cwd'](),_0x475620);try{logger[_0x29d27e(0x7c)]('install',_0x29d27e(0x80),{'projectCode':_0x475620,'registry':_0x29d27e(0x88)}),await execa(resolveNpmBin(_0x29d27e(0x83)),[_0x29d27e(0x8b),_0x29d27e(0x8c),_0x29d27e(0x88)],{'cwd':_0x27f677});const _0x1f8fe7=Date[_0x29d27e(0x87)]()-_0x2ae77d;logger['success'](_0x29d27e(0x8b),_0x29d27e(0x86),_0x1f8fe7,{'projectCode':_0x475620});}catch(_0x428167){const _0xd72d3b=Date[_0x29d27e(0x87)]()-_0x2ae77d;logger[_0x29d27e(0x8a)](_0x29d27e(0x8b),'依赖安装失败',{'projectCode':_0x475620,'error':_0x428167 instanceof Error?_0x428167['message']:String(_0x428167),'duration':_0xd72d3b});throw _0x428167;}return formatElapsed(_0x2ae77d);}
@@ -1 +1 @@
1
- function a125_0x3387(_0x73f4af,_0x533035){_0x73f4af=_0x73f4af-0x1bc;const _0x35f1dd=a125_0x35f1();let _0x3387b9=_0x35f1dd[_0x73f4af];return _0x3387b9;}const a125_0x52dbde=a125_0x3387;(function(_0x12248c,_0x45ef84){const _0x4cc54c=a125_0x3387,_0x51f5a0=_0x12248c();while(!![]){try{const _0x34c841=parseInt(_0x4cc54c(0x1dd))/0x1*(parseInt(_0x4cc54c(0x1c2))/0x2)+-parseInt(_0x4cc54c(0x1c8))/0x3+parseInt(_0x4cc54c(0x1c3))/0x4*(-parseInt(_0x4cc54c(0x1d0))/0x5)+parseInt(_0x4cc54c(0x1d6))/0x6+parseInt(_0x4cc54c(0x1c1))/0x7+-parseInt(_0x4cc54c(0x1de))/0x8+parseInt(_0x4cc54c(0x1df))/0x9;if(_0x34c841===_0x45ef84)break;else _0x51f5a0['push'](_0x51f5a0['shift']());}catch(_0x271bae){_0x51f5a0['push'](_0x51f5a0['shift']());}}}(a125_0x35f1,0xee5ea));function a125_0x35f1(){const _0x432dd8=['bool','../../commands/project/create/main.js','1436556jmFCjp','Create\x20a\x20new\x20project','trim','Skip\x20confirmation\x20prompt','args','nonInteractive','project','5ZXiBUy','5682512ixItyG','21883932Tfbcdo','\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]','Auto-confirm\x20prompts','Usage:\x20','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','init','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','boolean','7770000sTHWmb','350228tPqJyi','5837424bbujkD','Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','upgrade','write','appcode','4531536yRWoJR','project-name','string','../../commands/project/create/non-interactive.js','env','Target\x20environment','Project\x20name','yes','5vASVNO','cookie','str','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli'];a125_0x35f1=function(){return _0x432dd8;};return a125_0x35f1();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{initConfig}from'../../commands/project/init.js';import{upgradeApp}from'../../commands/project/upgrade.js';const initFlags=[{'name':a125_0x52dbde(0x1c7),'type':a125_0x52dbde(0x1ca),'description':'App\x20code\x20to\x20initialize'},{'name':a125_0x52dbde(0x1cc),'type':a125_0x52dbde(0x1ca),'description':a125_0x52dbde(0x1cd)},{'name':a125_0x52dbde(0x1cf),'type':'boolean','description':a125_0x52dbde(0x1e1),'default':![]}],createFlags=[{'name':'name','type':a125_0x52dbde(0x1ca),'description':a125_0x52dbde(0x1ce)},{'name':'env','type':'string','description':a125_0x52dbde(0x1cd)},{'name':a125_0x52dbde(0x1c7),'type':a125_0x52dbde(0x1ca),'description':a125_0x52dbde(0x1bd)}],upgradeFlags=[{'name':a125_0x52dbde(0x1cf),'type':a125_0x52dbde(0x1c0),'description':a125_0x52dbde(0x1d9),'default':![]}];export const projectDefinitions=[{'service':'project','command':a125_0x52dbde(0x1be),'description':'Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2182ab){const _0x5ea919=a125_0x52dbde;return await initConfig({'appcode':_0x2182ab[_0x5ea919(0x1d2)]('appcode')||undefined,'env':_0x2182ab['str'](_0x5ea919(0x1cc))||undefined,'autoYes':_0x2182ab['bool'](_0x5ea919(0x1cf))}),{'ok':!![]};}},{'service':a125_0x52dbde(0x1dc),'command':'create','description':a125_0x52dbde(0x1d7),'risk':a125_0x52dbde(0x1c6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a125_0x52dbde(0x1c9),'description':a125_0x52dbde(0x1c4),'required':![]}],'flags':createFlags,async 'execute'(_0x4841e5){const _0xfedbc4=a125_0x52dbde,{createApp:_0x308c43}=await import(_0xfedbc4(0x1d5)),{createProjectNonInteractive:_0xd156a8}=await import(_0xfedbc4(0x1cb)),_0x2fd68e=_0x4841e5[_0xfedbc4(0x1d2)]('name')[_0xfedbc4(0x1d8)]()||_0x4841e5[_0xfedbc4(0x1da)][0x0]?.[_0xfedbc4(0x1d8)](),_0x1736b1=_0x4841e5[_0xfedbc4(0x1d2)](_0xfedbc4(0x1cc))||undefined,_0xbb95ed=_0x4841e5[_0xfedbc4(0x1d2)](_0xfedbc4(0x1c7))||undefined;if(_0x4841e5[_0xfedbc4(0x1db)]){if(!_0x2fd68e)throw CliErrors['validation'](_0xfedbc4(0x1bf),_0xfedbc4(0x1bc)+CLI_BIN_NAME+_0xfedbc4(0x1e0));await _0xd156a8(_0x2fd68e,_0x1736b1,_0xbb95ed,_0x4841e5[_0xfedbc4(0x1d1)]);}else await _0x308c43({'projectCode':_0x2fd68e,'appCode':_0xbb95ed,'env':_0x1736b1,'cookie':_0x4841e5[_0xfedbc4(0x1d1)]});return{'ok':!![]};}},{'service':a125_0x52dbde(0x1dc),'command':a125_0x52dbde(0x1c5),'description':a125_0x52dbde(0x1d3),'risk':a125_0x52dbde(0x1c6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x3b3dc4){const _0x42ec4c=a125_0x52dbde;return await upgradeApp(_0x3b3dc4['nonInteractive'],{'yes':_0x3b3dc4[_0x42ec4c(0x1d4)](_0x42ec4c(0x1cf))}),{'ok':!![]};}}];
1
+ const a125_0xcb1b3=a125_0x1f08;function a125_0x1f08(_0x3b75a5,_0x4a4ba7){_0x3b75a5=_0x3b75a5-0x159;const _0x50f77b=a125_0x50f7();let _0x1f080c=_0x50f77b[_0x3b75a5];return _0x1f080c;}(function(_0x271321,_0x2e9fbe){const _0x58a39f=a125_0x1f08,_0xef2ed8=_0x271321();while(!![]){try{const _0x246a82=-parseInt(_0x58a39f(0x163))/0x1+-parseInt(_0x58a39f(0x16e))/0x2*(parseInt(_0x58a39f(0x173))/0x3)+parseInt(_0x58a39f(0x15f))/0x4*(-parseInt(_0x58a39f(0x175))/0x5)+-parseInt(_0x58a39f(0x170))/0x6+-parseInt(_0x58a39f(0x159))/0x7+-parseInt(_0x58a39f(0x17c))/0x8*(parseInt(_0x58a39f(0x166))/0x9)+-parseInt(_0x58a39f(0x162))/0xa*(-parseInt(_0x58a39f(0x176))/0xb);if(_0x246a82===_0x2e9fbe)break;else _0xef2ed8['push'](_0xef2ed8['shift']());}catch(_0x50d2c5){_0xef2ed8['push'](_0xef2ed8['shift']());}}}(a125_0x50f7,0x702d9));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{initConfig}from'../../commands/project/init.js';import{upgradeApp}from'../../commands/project/upgrade.js';const initFlags=[{'name':a125_0xcb1b3(0x167),'type':a125_0xcb1b3(0x168),'description':a125_0xcb1b3(0x16d)},{'name':a125_0xcb1b3(0x178),'type':a125_0xcb1b3(0x168),'description':a125_0xcb1b3(0x179)},{'name':a125_0xcb1b3(0x160),'type':a125_0xcb1b3(0x174),'description':a125_0xcb1b3(0x16b),'default':![]}],createFlags=[{'name':a125_0xcb1b3(0x17e),'type':'string','description':a125_0xcb1b3(0x17b)},{'name':a125_0xcb1b3(0x178),'type':'string','description':a125_0xcb1b3(0x179)},{'name':a125_0xcb1b3(0x167),'type':a125_0xcb1b3(0x168),'description':'App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)'}],upgradeFlags=[{'name':a125_0xcb1b3(0x160),'type':a125_0xcb1b3(0x174),'description':a125_0xcb1b3(0x17a),'default':![]}];function a125_0x50f7(){const _0x208923=['trim','init','24IVXRhp','yes','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','650490KzHtWc','303797azfcvK','write','cookie','11565tnMevW','appcode','string','create','Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','Auto-confirm\x20prompts','../../commands/project/create/non-interactive.js','App\x20code\x20to\x20initialize','126886hjLUXz','project-name','1126962GCzHGO','Usage:\x20','\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]','24ZlhSCw','boolean','154570xhPPnH','451mNBtKR','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','env','Target\x20environment','Skip\x20confirmation\x20prompt','Project\x20name','4904LjaZto','project','name','upgrade','nonInteractive','1646197zOwOsW','str','Create\x20a\x20new\x20project','validation'];a125_0x50f7=function(){return _0x208923;};return a125_0x50f7();}export const projectDefinitions=[{'service':a125_0xcb1b3(0x17d),'command':a125_0xcb1b3(0x15e),'description':a125_0xcb1b3(0x161),'risk':a125_0xcb1b3(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x51208f){const _0x64a20f=a125_0xcb1b3;return await initConfig({'appcode':_0x51208f[_0x64a20f(0x15a)](_0x64a20f(0x167))||undefined,'env':_0x51208f['str'](_0x64a20f(0x178))||undefined,'autoYes':_0x51208f['bool']('yes')}),{'ok':!![]};}},{'service':a125_0xcb1b3(0x17d),'command':a125_0xcb1b3(0x169),'description':a125_0xcb1b3(0x15b),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a125_0xcb1b3(0x16f),'description':a125_0xcb1b3(0x16a),'required':![]}],'flags':createFlags,async 'execute'(_0x4c90f1){const _0xe84293=a125_0xcb1b3,{createApp:_0x30ed46}=await import('../../commands/project/create/main.js'),{createProjectNonInteractive:_0x3d1c58}=await import(_0xe84293(0x16c)),_0x1eddd4=_0x4c90f1['str'](_0xe84293(0x17e))[_0xe84293(0x15d)]()||_0x4c90f1['args'][0x0]?.[_0xe84293(0x15d)](),_0x72435d=_0x4c90f1[_0xe84293(0x15a)](_0xe84293(0x178))||undefined,_0x1d0b9e=_0x4c90f1[_0xe84293(0x15a)](_0xe84293(0x167))||undefined;if(_0x4c90f1['nonInteractive']){if(!_0x1eddd4)throw CliErrors[_0xe84293(0x15c)]('Non-interactive\x20mode\x20requires\x20a\x20project\x20name.',_0xe84293(0x171)+CLI_BIN_NAME+_0xe84293(0x172));await _0x3d1c58(_0x1eddd4,_0x72435d,_0x1d0b9e,_0x4c90f1[_0xe84293(0x165)]);}else await _0x30ed46({'projectCode':_0x1eddd4,'appCode':_0x1d0b9e,'env':_0x72435d,'cookie':_0x4c90f1[_0xe84293(0x165)]});return{'ok':!![]};}},{'service':a125_0xcb1b3(0x17d),'command':a125_0xcb1b3(0x17f),'description':a125_0xcb1b3(0x177),'risk':a125_0xcb1b3(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x3c38ca){const _0x488076=a125_0xcb1b3;return await upgradeApp(_0x3c38ca[_0x488076(0x180)],{'yes':_0x3c38ca['bool'](_0x488076(0x160))}),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x139793,_0x2400e4){const _0x3db2e8=a126_0x1a92,_0x188aa2=_0x139793();while(!![]){try{const _0x1e3a68=parseInt(_0x3db2e8(0x129))/0x1+parseInt(_0x3db2e8(0x145))/0x2*(parseInt(_0x3db2e8(0x143))/0x3)+parseInt(_0x3db2e8(0x13b))/0x4+-parseInt(_0x3db2e8(0x112))/0x5*(parseInt(_0x3db2e8(0x12c))/0x6)+-parseInt(_0x3db2e8(0x134))/0x7*(parseInt(_0x3db2e8(0x12b))/0x8)+parseInt(_0x3db2e8(0x147))/0x9+-parseInt(_0x3db2e8(0x130))/0xa*(-parseInt(_0x3db2e8(0x127))/0xb);if(_0x1e3a68===_0x2400e4)break;else _0x188aa2['push'](_0x188aa2['shift']());}catch(_0x588df1){_0x188aa2['push'](_0x188aa2['shift']());}}}(a126_0x1ab6,0x42bd0));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';function a126_0x1a92(_0x485b57,_0x2faf76){_0x485b57=_0x485b57-0x10f;const _0x1ab602=a126_0x1ab6();let _0x1a922f=_0x1ab602[_0x485b57];return _0x1a922f;}import{fileURLToPath}from'node:url';import a126_0x3f1950 from'chalk';import{input,confirm}from'@inquirer/prompts';import{CLI_BIN_NAME}from'../../constant/cli.js';import{logger}from'../../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../../context.js';function a126_0x1ab6(){const _0x53886e=['.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','1.0.0','join','\x20api\x20pull\x27','cwd','62572RCGiVX','\x20project\x20init`\x20to\x20start\x20fresh.','.rabetbase.json','\x20→\x20.rabetbase.json','production','App\x20Code\x20cannot\x20be\x20empty','yellow','app','4785LwDRFG','.bak','4bmbjhJ','初始化项目配置文件成功','1142046dFZDvz','Invalid\x20App\x20Code','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','gray','65TBVERr','从旧配置文件升级成功','log','keys','green','\x20\x20appcode:\x20','Upgrade\x20it\x20to\x20','info','appcode','init','\x20api\x20generate\x27\x20and\x20\x27','\x20\x20Apps:\x20','✓\x20Upgraded\x20','toLocaleString','parse','?\x20(Old\x20file\x20→\x20*.bak)','defaultApp','../..','string','version','setLogPath','2875114pcMRkU','trim','318422msPDXC','apps','2156104ZqEwow','84300jkGLsO','Please\x20enter\x20App\x20Code:','\x20\x20Default:\x20','cyan','10HxEbpd','package.json','env','utf8','7FFvGwQ','\x20\x20Old\x20file\x20backed\x20up\x20as\x20'];a126_0x1ab6=function(){return _0x53886e;};return a126_0x1ab6();}import{validateAppcode}from'../../commands/common/validate.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';export async function initConfig(_0x559e39){const _0x323b21=a126_0x1a92,{appcode:_0x5b7a5b,env:_0x1623aa,autoYes:_0x15a1da}=_0x559e39,_0x53a9b2=process[_0x323b21(0x13a)]();if(getProjectConfigPath())throw new Error(_0x323b21(0x136));let _0x484c9f;for(const _0x1ca55a of LEGACY_CONFIG_NAMES){const _0xa9e3d1=resolve(_0x53a9b2,_0x1ca55a);if(existsSync(_0xa9e3d1)){_0x484c9f=_0xa9e3d1;break;}}if(_0x484c9f){let _0x472ae0={};try{_0x472ae0=JSON[_0x323b21(0x120)](readFileSync(_0x484c9f,'utf8'));}catch{}const _0x11c815=basename(_0x484c9f),_0x28b6cb=_0x472ae0?.[_0x323b21(0x11a)]||_0x472ae0?.[_0x323b21(0x142)];let _0x122617=_0x15a1da;!_0x15a1da&&(console[_0x323b21(0x114)](a126_0x3f1950[_0x323b21(0x141)](_0x323b21(0x110)+a126_0x3f1950['bold'](_0x11c815))),_0x28b6cb&&console[_0x323b21(0x114)](a126_0x3f1950[_0x323b21(0x12f)](_0x323b21(0x117)+_0x28b6cb)),_0x122617=await confirm({'message':_0x323b21(0x118)+a126_0x3f1950['bold'](_0x323b21(0x13d))+_0x323b21(0x121),'default':!![]}));if(!_0x122617){console[_0x323b21(0x114)]('Migration\x20cancelled.\x20Run\x20`'+CLI_BIN_NAME+_0x323b21(0x13c));return;}const _0x20d5bc=resolve(_0x53a9b2,NEW_CONFIG_NAME),_0x56bb3d=getCliVersionFromPkg(),_0x58e72f=readRawConfig(),_0x3a6e80=_0x5b7a5b||(typeof _0x472ae0?.[_0x323b21(0x11a)]===_0x323b21(0x124)?_0x472ae0[_0x323b21(0x11a)]:undefined)||(typeof _0x472ae0?.[_0x323b21(0x142)]==='string'?_0x472ae0[_0x323b21(0x142)]:undefined)||await askAppcode(),_0x3a6107=typeof _0x472ae0?.[_0x323b21(0x132)]===_0x323b21(0x124)?_0x472ae0['env']:typeof _0x58e72f[_0x323b21(0x132)]==='string'?_0x58e72f['env']:_0x323b21(0x13f),_0x115600=buildCanonicalProjectConfig({..._0x58e72f,..._0x472ae0},{'appCodes':[_0x3a6e80],'env':_0x3a6107,'metadata':{'version':_0x56bb3d,'migratedAt':new Date()[_0x323b21(0x11f)](),'migratedFrom':_0x484c9f}});writeConfigFile(_0x20d5bc,_0x115600);const _0x5cb3b6=_0x484c9f+_0x323b21(0x144);renameSync(_0x484c9f,_0x5cb3b6),logger[_0x323b21(0x126)](_0x53a9b2),logger[_0x323b21(0x119)](_0x323b21(0x11b),_0x323b21(0x113),{'from':_0x484c9f,'to':_0x20d5bc,'appcode':_0x3a6e80,'env':_0x115600[_0x323b21(0x132)]}),console[_0x323b21(0x114)](a126_0x3f1950['green'](_0x323b21(0x11e)+_0x11c815+_0x323b21(0x13e))),console['log'](a126_0x3f1950['cyan'](_0x323b21(0x11d)+Object[_0x323b21(0x115)](_0x115600[_0x323b21(0x12a)]||{})[_0x323b21(0x138)](',\x20'))),console['log'](a126_0x3f1950['cyan'](_0x323b21(0x12e)+_0x115600['defaultApp'])),console[_0x323b21(0x114)](a126_0x3f1950[_0x323b21(0x111)](_0x323b21(0x135)+_0x11c815+_0x323b21(0x144)));return;}const _0x3d1b94=_0x5b7a5b||await askAppcode(),_0x54dfdc=resolve(_0x53a9b2,NEW_CONFIG_NAME),_0x502b02=getCliVersionFromPkg(),_0x35f417=readRawConfig(),_0x412568=typeof _0x35f417[_0x323b21(0x132)]===_0x323b21(0x124)?_0x35f417['env']:undefined,_0x1ec060=buildCanonicalProjectConfig({},{'appCodes':[_0x3d1b94],'env':_0x1623aa||_0x412568||_0x323b21(0x13f),'metadata':{'version':_0x502b02,'createdAt':new Date()[_0x323b21(0x11f)]()}});writeConfigFile(_0x54dfdc,_0x1ec060),logger[_0x323b21(0x126)](_0x53a9b2),logger[_0x323b21(0x119)](_0x323b21(0x11b),_0x323b21(0x146),{'appcode':_0x3d1b94,'env':_0x1ec060[_0x323b21(0x132)],'version':_0x1ec060['version'],'configPath':_0x54dfdc}),console[_0x323b21(0x114)](a126_0x3f1950[_0x323b21(0x116)]('✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory')),console['log'](a126_0x3f1950[_0x323b21(0x12f)]('\x20\x20Apps:\x20'+Object[_0x323b21(0x115)](_0x1ec060[_0x323b21(0x12a)]||{})[_0x323b21(0x138)](',\x20'))),console[_0x323b21(0x114)](a126_0x3f1950[_0x323b21(0x12f)](_0x323b21(0x12e)+_0x1ec060[_0x323b21(0x122)])),console[_0x323b21(0x114)]('\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27'+CLI_BIN_NAME+_0x323b21(0x11c)+CLI_BIN_NAME+_0x323b21(0x139));}function askAppcode(){const _0x32e7a2=a126_0x1a92;return input({'message':_0x32e7a2(0x12d),'validate':_0x147832=>{const _0x563c6c=_0x32e7a2;if(!_0x147832[_0x563c6c(0x128)]())return _0x563c6c(0x140);const {valid:_0x56912f,message:_0x2b773f}=validateAppcode(_0x147832[_0x563c6c(0x128)]());return _0x56912f||_0x2b773f||_0x563c6c(0x10f);}});}function getCliVersionFromPkg(){const _0x3b434f=a126_0x1a92;try{const _0x124d3=fileURLToPath(import.meta.url),_0x3711c1=resolve(dirname(_0x124d3),_0x3b434f(0x123)),_0x3f3886=JSON[_0x3b434f(0x120)](readFileSync(resolve(_0x3711c1,_0x3b434f(0x131)),_0x3b434f(0x133)));return _0x3f3886[_0x3b434f(0x125)]||_0x3b434f(0x137);}catch{return _0x3b434f(0x137);}}
1
+ (function(_0xca145e,_0x33db1b){const _0x15a8b6=a126_0x2997,_0x4bf941=_0xca145e();while(!![]){try{const _0x4465e4=-parseInt(_0x15a8b6(0xba))/0x1*(parseInt(_0x15a8b6(0xe0))/0x2)+parseInt(_0x15a8b6(0xec))/0x3*(parseInt(_0x15a8b6(0xd5))/0x4)+-parseInt(_0x15a8b6(0xdf))/0x5*(-parseInt(_0x15a8b6(0xe4))/0x6)+parseInt(_0x15a8b6(0xbc))/0x7*(parseInt(_0x15a8b6(0xe5))/0x8)+parseInt(_0x15a8b6(0xb8))/0x9+-parseInt(_0x15a8b6(0xd7))/0xa*(parseInt(_0x15a8b6(0xbb))/0xb)+-parseInt(_0x15a8b6(0xe8))/0xc;if(_0x4465e4===_0x33db1b)break;else _0x4bf941['push'](_0x4bf941['shift']());}catch(_0x8923f0){_0x4bf941['push'](_0x4bf941['shift']());}}}(a126_0x4700,0x9cacc));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';import a126_0x40d8b7 from'chalk';import{input,confirm}from'@inquirer/prompts';import{CLI_BIN_NAME}from'../../constant/cli.js';function a126_0x4700(){const _0x13ae33=['string','bold','初始化项目配置文件成功','4LAxtQG','Migration\x20cancelled.\x20Run\x20`','998390xxHSAp','keys','log','toLocaleString','\x20\x20Apps:\x20','../..','production','.bak','1380wVzyDh','1802NmyPLk','version','setLogPath','✓\x20Upgraded\x20','23208NicBaQ','4014856mbAqjH','cyan','Upgrade\x20it\x20to\x20','11757864HUeTFE','\x20api\x20pull\x27','\x20\x20Default:\x20','\x20\x20appcode:\x20','228849sXQpZO','apps','?\x20(Old\x20file\x20→\x20*.bak)','8595621TBbhud','package.json','976PPsbLk','11fHUXlE','7gWcZVP','appcode','\x20project\x20init`\x20to\x20start\x20fresh.','app','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','init','defaultApp','join','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','trim','gray','\x20api\x20generate\x27\x20and\x20\x27','\x20→\x20.rabetbase.json','从旧配置文件升级成功','parse','\x20\x20Old\x20file\x20backed\x20up\x20as\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','cwd','.rabetbase.json','env','App\x20Code\x20cannot\x20be\x20empty','utf8'];a126_0x4700=function(){return _0x13ae33;};return a126_0x4700();}import{logger}from'../../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../../context.js';import{validateAppcode}from'../../commands/common/validate.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a126_0x2997(_0x2cf017,_0x319237){_0x2cf017=_0x2cf017-0xb6;const _0x4700ce=a126_0x4700();let _0x299755=_0x4700ce[_0x2cf017];return _0x299755;}export async function initConfig(_0x2c8d19){const _0x500828=a126_0x2997,{appcode:_0x2caab1,env:_0x563247,autoYes:_0x2985b8}=_0x2c8d19,_0x593cf1=process[_0x500828(0xcd)]();if(getProjectConfigPath())throw new Error(_0x500828(0xcc));let _0x56d93c;for(const _0x3715bd of LEGACY_CONFIG_NAMES){const _0x31a1c1=resolve(_0x593cf1,_0x3715bd);if(existsSync(_0x31a1c1)){_0x56d93c=_0x31a1c1;break;}}if(_0x56d93c){let _0x4a1c73={};try{_0x4a1c73=JSON[_0x500828(0xca)](readFileSync(_0x56d93c,_0x500828(0xd1)));}catch{}const _0x6e426c=basename(_0x56d93c),_0x12e5bc=_0x4a1c73?.[_0x500828(0xbd)]||_0x4a1c73?.[_0x500828(0xbf)];let _0x1e7453=_0x2985b8;!_0x2985b8&&(console['log'](a126_0x40d8b7['yellow'](_0x500828(0xc0)+a126_0x40d8b7[_0x500828(0xd3)](_0x6e426c))),_0x12e5bc&&console[_0x500828(0xd9)](a126_0x40d8b7[_0x500828(0xe6)](_0x500828(0xeb)+_0x12e5bc)),_0x1e7453=await confirm({'message':_0x500828(0xe7)+a126_0x40d8b7[_0x500828(0xd3)](_0x500828(0xce))+_0x500828(0xb7),'default':!![]}));if(!_0x1e7453){console[_0x500828(0xd9)](_0x500828(0xd6)+CLI_BIN_NAME+_0x500828(0xbe));return;}const _0x1f699c=resolve(_0x593cf1,NEW_CONFIG_NAME),_0xd05372=getCliVersionFromPkg(),_0x1c1bcf=readRawConfig(),_0x1ffbad=_0x2caab1||(typeof _0x4a1c73?.[_0x500828(0xbd)]===_0x500828(0xd2)?_0x4a1c73[_0x500828(0xbd)]:undefined)||(typeof _0x4a1c73?.[_0x500828(0xbf)]==='string'?_0x4a1c73[_0x500828(0xbf)]:undefined)||await askAppcode(),_0x147d07=typeof _0x4a1c73?.['env']===_0x500828(0xd2)?_0x4a1c73[_0x500828(0xcf)]:typeof _0x1c1bcf[_0x500828(0xcf)]===_0x500828(0xd2)?_0x1c1bcf[_0x500828(0xcf)]:_0x500828(0xdd),_0x3194a7=buildCanonicalProjectConfig({..._0x1c1bcf,..._0x4a1c73},{'appCodes':[_0x1ffbad],'env':_0x147d07,'metadata':{'version':_0xd05372,'migratedAt':new Date()['toLocaleString'](),'migratedFrom':_0x56d93c}});writeConfigFile(_0x1f699c,_0x3194a7);const _0x894120=_0x56d93c+_0x500828(0xde);renameSync(_0x56d93c,_0x894120),logger[_0x500828(0xe2)](_0x593cf1),logger['info'](_0x500828(0xc1),_0x500828(0xc9),{'from':_0x56d93c,'to':_0x1f699c,'appcode':_0x1ffbad,'env':_0x3194a7['env']}),console[_0x500828(0xd9)](a126_0x40d8b7['green'](_0x500828(0xe3)+_0x6e426c+_0x500828(0xc8))),console[_0x500828(0xd9)](a126_0x40d8b7[_0x500828(0xe6)](_0x500828(0xdb)+Object['keys'](_0x3194a7[_0x500828(0xb6)]||{})[_0x500828(0xc3)](',\x20'))),console[_0x500828(0xd9)](a126_0x40d8b7[_0x500828(0xe6)](_0x500828(0xea)+_0x3194a7[_0x500828(0xc2)])),console[_0x500828(0xd9)](a126_0x40d8b7[_0x500828(0xc6)](_0x500828(0xcb)+_0x6e426c+_0x500828(0xde)));return;}const _0x51da74=_0x2caab1||await askAppcode(),_0x5155f0=resolve(_0x593cf1,NEW_CONFIG_NAME),_0x29816a=getCliVersionFromPkg(),_0x25763d=readRawConfig(),_0x2a04fb=typeof _0x25763d[_0x500828(0xcf)]===_0x500828(0xd2)?_0x25763d[_0x500828(0xcf)]:undefined,_0x1f600f=buildCanonicalProjectConfig({},{'appCodes':[_0x51da74],'env':_0x563247||_0x2a04fb||_0x500828(0xdd),'metadata':{'version':_0x29816a,'createdAt':new Date()[_0x500828(0xda)]()}});writeConfigFile(_0x5155f0,_0x1f600f),logger[_0x500828(0xe2)](_0x593cf1),logger['info'](_0x500828(0xc1),_0x500828(0xd4),{'appcode':_0x51da74,'env':_0x1f600f[_0x500828(0xcf)],'version':_0x1f600f[_0x500828(0xe1)],'configPath':_0x5155f0}),console[_0x500828(0xd9)](a126_0x40d8b7['green'](_0x500828(0xc4))),console[_0x500828(0xd9)](a126_0x40d8b7[_0x500828(0xe6)](_0x500828(0xdb)+Object[_0x500828(0xd8)](_0x1f600f['apps']||{})[_0x500828(0xc3)](',\x20'))),console['log'](a126_0x40d8b7['cyan'](_0x500828(0xea)+_0x1f600f['defaultApp'])),console[_0x500828(0xd9)]('\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27'+CLI_BIN_NAME+_0x500828(0xc7)+CLI_BIN_NAME+_0x500828(0xe9));}function askAppcode(){return input({'message':'Please\x20enter\x20App\x20Code:','validate':_0x4f4524=>{const _0x388c9d=a126_0x2997;if(!_0x4f4524[_0x388c9d(0xc5)]())return _0x388c9d(0xd0);const {valid:_0x466fad,message:_0x28050c}=validateAppcode(_0x4f4524[_0x388c9d(0xc5)]());return _0x466fad||_0x28050c||'Invalid\x20App\x20Code';}});}function getCliVersionFromPkg(){const _0x283d32=a126_0x2997;try{const _0x15faa9=fileURLToPath(import.meta.url),_0x33f8a3=resolve(dirname(_0x15faa9),_0x283d32(0xdc)),_0x446ea1=JSON[_0x283d32(0xca)](readFileSync(resolve(_0x33f8a3,_0x283d32(0xb9)),_0x283d32(0xd1)));return _0x446ea1['version']||'1.0.0';}catch{return'1.0.0';}}
@@ -1 +1 @@
1
- (function(_0x1ada7f,_0xa53b24){const _0x15e159=a127_0x33f1,_0x13ce27=_0x1ada7f();while(!![]){try{const _0x4ef4f9=-parseInt(_0x15e159(0x148))/0x1+parseInt(_0x15e159(0x166))/0x2+-parseInt(_0x15e159(0x189))/0x3*(parseInt(_0x15e159(0x177))/0x4)+parseInt(_0x15e159(0x160))/0x5*(-parseInt(_0x15e159(0x14a))/0x6)+parseInt(_0x15e159(0x12d))/0x7+-parseInt(_0x15e159(0x193))/0x8+parseInt(_0x15e159(0x15b))/0x9;if(_0x4ef4f9===_0xa53b24)break;else _0x13ce27['push'](_0x13ce27['shift']());}catch(_0x5ae5e1){_0x13ce27['push'](_0x13ce27['shift']());}}}(a127_0x2931,0x5113c));import a127_0x389592 from'chalk';import a127_0x56bc45 from'ora';import{existsSync,readFileSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from'node:fs';function a127_0x2931(){const _0xb37dc9=['cwd','4388335atJmix','needsSkillSwap','inherit','filter','Step\x201/7:\x20Config\x20migration\x20—\x20','@lovrabet/dataset-mcp-server','stringify','\x20(backup:\x20','Clean\x20MCP\x20config','skipped','no\x20legacy\x20config\x20found','lovrabet/rabetbase\x20installed\x20globally','hasNewConfig','mcpServers','info','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','utf8','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','detail','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','succeed','oldPath','\x20removed\x20(','files','\x20\x20Action:\x20delete','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','661871CgilDS','not\x20found\x20(will\x20create)','94002kBqDVP','undefined','no\x20legacy\x20entry','Legacy\x20artifacts:','\x20→\x20latest','none\x20found','some','FAIL','.claude/skills/lovrabet','length','done','error','status','lovrabet/lovrabet-skill\x20removed','\x20removed','.cursor/mcp.json','args','11223522YPfUdw','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','Remove\x20legacy\x20artifacts','lovrabet/rabetbase','.cursor/rules/lovrabet_rules.mdc','180uYUQOV','Install\x20new\x20skill','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','oldArtifacts','\x20→\x20keys:\x20','green','88900hmLgDh','isDirectory','latest','log','\x20\x20npm\x20install','\x20\x20#\x20or','bold','red','@lovrabet/sdk','failed','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','\x20→\x20','\x20\x20bun\x20install','fields','Upgrade\x20cancelled.','Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','\x20\x20New\x20config\x20(.rabetbase.json):\x20','1190012UPeTrN','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','skipped\x20(no\x20legacy\x20config)','parse','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','Skill\x20swap:','\x20\x20\x20\x20\x20\x20\x20','isArray','path','FOUND','fail','sdkUpgrade','push','Remove\x20.lovrabet/','keys','Upgrade\x20@lovrabet/sdk','message','3jgrXOY','includes','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','[\x22@lovrabet/sdk\x22]:\x20','label','@lovrabet/sdk:','entries','===\x20Upgrade\x20Analysis\x20===','white','Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:','503480CMImSF','object','not\x20found\x20or\x20already\x20at\x20latest','Step\x201/7:\x20Migrating\x20config...','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','.lovrabet','start','join','already\x20exists\x20(will\x20merge)','cyan','\x20\x20Current\x20version\x20in\x20','configMigration','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','string','\x20from\x20','Upgrade\x20completed\x20successfully!','Proceed\x20with\x20upgrade?','Remove\x20old\x20skill','Config\x20migration','MCP\x20config:','yellow','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','gray','yes','oldMcpConfig','exit\x20'];a127_0x2931=function(){return _0xb37dc9;};return a127_0x2931();}import{resolve}from'node:path';import{CONFIG_NAMES,NEW_CONFIG_NAME,readConfigFile,writeConfigFile}from'../../context.js';import{CORE_IDE_CONFIGS}from'../../utils/ai_config.js';function a127_0x33f1(_0x5202df,_0x321a34){_0x5202df=_0x5202df-0x11e;const _0x293149=a127_0x2931();let _0x33f1ee=_0x293149[_0x5202df];return _0x33f1ee;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../../skills/npx-skills-add.js';import{askConfirm}from'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x4cf1d3=>_0x4cf1d3!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x5a1d30){const _0x1f0ea9=a127_0x33f1,_0x1c7d2a=[];for(const _0x13ac27 of Object['values'](CORE_IDE_CONFIGS)){if(_0x13ac27[_0x1f0ea9(0x144)])for(const _0x52264a of _0x13ac27[_0x1f0ea9(0x144)]){_0x1c7d2a[_0x1f0ea9(0x184)](resolve(_0x5a1d30,_0x52264a['path']));}}return _0x1c7d2a;}function analyse(_0x22f644){const _0x580051=a127_0x33f1;let _0x18304c=null;const _0x2eebac=resolve(_0x22f644,NEW_CONFIG_NAME),_0x51c7cf=existsSync(_0x2eebac);for(const _0x1a8e7a of LEGACY_CONFIG_NAMES){const _0xa9b9c=resolve(_0x22f644,_0x1a8e7a);if(existsSync(_0xa9b9c)){const _0x608d95=readConfigFile(_0xa9b9c),_0x1f7b60=Object[_0x580051(0x186)](_0x608d95)[_0x580051(0x130)](_0x13053f=>typeof _0x608d95[_0x13053f]!==_0x580051(0x14b));_0x18304c={'oldPath':_0xa9b9c,'hasNewConfig':_0x51c7cf,'fields':_0x1f7b60};break;}}const _0x36eeaa=[],_0x21fd96=resolve(_0x22f644,_0x580051(0x198));if(existsSync(_0x21fd96))_0x36eeaa[_0x580051(0x184)](_0x21fd96);const _0x30e7f1=resolve(_0x22f644,_0x580051(0x15f));if(existsSync(_0x30e7f1))_0x36eeaa['push'](_0x30e7f1);const _0x832ce2=resolve(_0x22f644,_0x580051(0x152));if(existsSync(_0x832ce2))_0x36eeaa['push'](_0x832ce2);for(const _0x3a70bb of collectIdeSkillFiles(_0x22f644)){if(existsSync(_0x3a70bb))_0x36eeaa['push'](_0x3a70bb);}let _0x161a70=null;const _0x38d10f=resolve(_0x22f644,_0x580051(0x159));if(existsSync(_0x38d10f))try{const _0x3755a2=JSON[_0x580051(0x17b)](readFileSync(_0x38d10f,_0x580051(0x13d)));if(_0x3755a2?.['mcpServers']&&typeof _0x3755a2['mcpServers']===_0x580051(0x194)){const _0x170bcf=[];for(const [_0x6dd29c,_0x3680a9]of Object[_0x580051(0x18f)](_0x3755a2[_0x580051(0x13a)])){const _0x11c18f=_0x3680a9;_0x11c18f?.[_0x580051(0x15a)]&&Array[_0x580051(0x17f)](_0x11c18f[_0x580051(0x15a)])&&_0x11c18f[_0x580051(0x15a)]['some'](_0x3ef18f=>typeof _0x3ef18f===_0x580051(0x11f)&&_0x3ef18f['includes']('@lovrabet/dataset-mcp-server'))&&_0x170bcf[_0x580051(0x184)](_0x6dd29c);}_0x170bcf[_0x580051(0x153)]>0x0&&(_0x161a70={'path':_0x38d10f,'keys':_0x170bcf});}}catch{}const _0x36bdbb=_0x36eeaa[_0x580051(0x153)]>0x0||_0x18304c!==null;let _0x3b19a7=null;const _0x915a7f=resolve(_0x22f644,'package.json');if(existsSync(_0x915a7f))try{const _0x35e8ec=JSON[_0x580051(0x17b)](readFileSync(_0x915a7f,_0x580051(0x13d)));for(const _0xaeac61 of['dependencies','devDependencies']){const _0x181465=_0x35e8ec?.[_0xaeac61]?.['@lovrabet/sdk'];if(typeof _0x181465===_0x580051(0x11f)){_0x181465!==_0x580051(0x168)&&(_0x3b19a7={'pkgPath':_0x915a7f,'currentVersion':_0x181465,'field':_0xaeac61});break;}}}catch{}return{'configMigration':_0x18304c,'oldArtifacts':_0x36eeaa,'oldMcpConfig':_0x161a70,'needsSkillSwap':_0x36bdbb,'sdkUpgrade':_0x3b19a7};}function printReport(_0x17057e){const _0x4ec80b=a127_0x33f1,{configMigration:_0x37a303,oldArtifacts:_0x30ea82,oldMcpConfig:_0x58d565,needsSkillSwap:_0x368429}=_0x17057e;console[_0x4ec80b(0x169)](''),console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x16c)](_0x4ec80b(0x190))),console['log']('');_0x37a303?(console['log'](a127_0x389592['cyan']('Config\x20file:')+('\x20\x20'+a127_0x389592[_0x4ec80b(0x126)](_0x37a303[_0x4ec80b(0x142)]))),console[_0x4ec80b(0x169)](_0x4ec80b(0x176)+(_0x37a303[_0x4ec80b(0x139)]?a127_0x389592[_0x4ec80b(0x165)](_0x4ec80b(0x19b)):a127_0x389592['gray'](_0x4ec80b(0x149)))),console[_0x4ec80b(0x169)]('\x20\x20Fields\x20to\x20migrate:\x20'+_0x37a303[_0x4ec80b(0x173)][_0x4ec80b(0x19a)](',\x20')),console[_0x4ec80b(0x169)](_0x4ec80b(0x13e))):console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x19c)]('Config\x20file:')+'\x20\x20'+a127_0x389592[_0x4ec80b(0x128)](_0x4ec80b(0x137)));console[_0x4ec80b(0x169)]('');if(_0x30ea82[_0x4ec80b(0x153)]>0x0){console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x19c)](_0x4ec80b(0x14d)));for(const _0x23ea21 of _0x30ea82){console[_0x4ec80b(0x169)]('\x20\x20'+a127_0x389592[_0x4ec80b(0x16d)](_0x4ec80b(0x181))+'\x20\x20'+_0x23ea21);}console['log'](_0x4ec80b(0x145));}else console[_0x4ec80b(0x169)](a127_0x389592['cyan'](_0x4ec80b(0x14d))+'\x20\x20'+a127_0x389592['gray'](_0x4ec80b(0x14f)));console[_0x4ec80b(0x169)]('');_0x58d565?(console[_0x4ec80b(0x169)](a127_0x389592['cyan'](_0x4ec80b(0x125))+('\x20\x20'+a127_0x389592['yellow'](_0x58d565['path'])+_0x4ec80b(0x164)+_0x58d565['keys'][_0x4ec80b(0x19a)](',\x20'))),console[_0x4ec80b(0x169)](_0x4ec80b(0x17c))):console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x19c)](_0x4ec80b(0x125))+'\x20\x20'+a127_0x389592['gray'](_0x4ec80b(0x14c)));console[_0x4ec80b(0x169)](''),console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x19c)](_0x4ec80b(0x17d))+('\x20\x20'+(_0x368429?a127_0x389592['yellow']('needed'):a127_0x389592[_0x4ec80b(0x165)]('not\x20needed'))));_0x368429&&console[_0x4ec80b(0x169)](_0x4ec80b(0x13c)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x4ec80b(0x169)]('');if(_0x17057e[_0x4ec80b(0x183)]){const {currentVersion:_0x339875,field:_0x19ba96,pkgPath:_0x283408}=_0x17057e[_0x4ec80b(0x183)];console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x19c)](_0x4ec80b(0x18e))+('\x20\x20'+a127_0x389592['yellow'](_0x283408))),console[_0x4ec80b(0x169)](_0x4ec80b(0x19d)+_0x19ba96+':\x20'+a127_0x389592[_0x4ec80b(0x126)](_0x339875)+_0x4ec80b(0x171)+a127_0x389592[_0x4ec80b(0x165)](_0x4ec80b(0x168))),console[_0x4ec80b(0x169)](_0x4ec80b(0x15c));}else console[_0x4ec80b(0x169)](a127_0x389592[_0x4ec80b(0x19c)](_0x4ec80b(0x18e))+'\x20\x20'+a127_0x389592[_0x4ec80b(0x128)](_0x4ec80b(0x195)));console[_0x4ec80b(0x169)]('');}function execConfigMigration(_0xf3331a,_0xd232e8){const _0x5bb2b6=a127_0x33f1,{configMigration:_0xe153e9}=_0xf3331a;if(!_0xe153e9?.[_0x5bb2b6(0x142)])return{'step':0x1,'label':_0x5bb2b6(0x124),'ok':!![],'detail':_0x5bb2b6(0x17a)};const _0x2933fa=readConfigFile(_0xe153e9[_0x5bb2b6(0x142)]),_0x5bcb96=resolve(_0xd232e8,NEW_CONFIG_NAME),_0x316597=_0xe153e9[_0x5bb2b6(0x139)]?readConfigFile(_0x5bcb96):{};for(const [_0x2e2dbd,_0x35eb18]of Object[_0x5bb2b6(0x18f)](_0x2933fa)){!(_0x2e2dbd in _0x316597)&&(_0x316597[_0x2e2dbd]=_0x35eb18);}writeConfigFile(_0x5bcb96,_0x316597);const _0x4f0180=_0xe153e9[_0x5bb2b6(0x142)]+'.bak';return renameSync(_0xe153e9[_0x5bb2b6(0x142)],_0x4f0180),{'step':0x1,'label':_0x5bb2b6(0x124),'ok':!![],'detail':_0xe153e9[_0x5bb2b6(0x142)]+_0x5bb2b6(0x171)+_0x5bcb96+_0x5bb2b6(0x134)+_0x4f0180+')'};}function execRemoveOldArtifacts(_0x185ca4){const _0x4bc1de=a127_0x33f1,_0xfe5075=[];for(const _0x2e550b of _0x185ca4){try{if(!existsSync(_0x2e550b))continue;const _0x2ea29f=tryStat(_0x2e550b);_0x2ea29f?.[_0x4bc1de(0x167)]()?rmSync(_0x2e550b,{'recursive':!![],'force':!![]}):unlinkSync(_0x2e550b);}catch(_0x3fbe97){_0xfe5075[_0x4bc1de(0x184)](_0x2e550b+':\x20'+_0x3fbe97[_0x4bc1de(0x188)]);}}return{'step':0x3,'label':_0x4bc1de(0x15d),'ok':_0xfe5075[_0x4bc1de(0x153)]===0x0,'detail':_0xfe5075['length']>0x0?_0x185ca4[_0x4bc1de(0x153)]-_0xfe5075[_0x4bc1de(0x153)]+'/'+_0x185ca4[_0x4bc1de(0x153)]+_0x4bc1de(0x143)+_0xfe5075[_0x4bc1de(0x19a)](';\x20')+')':_0x185ca4[_0x4bc1de(0x153)]+_0x4bc1de(0x158)};}function execCleanMcp(_0x1c3188){const _0x544dd3=a127_0x33f1;if(!_0x1c3188[_0x544dd3(0x12a)])return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':_0x544dd3(0x136)};try{const _0x2490b2=readFileSync(_0x1c3188[_0x544dd3(0x12a)][_0x544dd3(0x180)],_0x544dd3(0x13d)),_0xb99be3=JSON[_0x544dd3(0x17b)](_0x2490b2);if(_0xb99be3?.['mcpServers']&&typeof _0xb99be3[_0x544dd3(0x13a)]===_0x544dd3(0x194)){const _0xc76082=[];for(const [_0x2356bd,_0x356c88]of Object['entries'](_0xb99be3[_0x544dd3(0x13a)])){_0x356c88?.[_0x544dd3(0x15a)]&&Array['isArray'](_0x356c88[_0x544dd3(0x15a)])&&_0x356c88[_0x544dd3(0x15a)][_0x544dd3(0x150)](_0xb033c5=>typeof _0xb033c5===_0x544dd3(0x11f)&&_0xb033c5[_0x544dd3(0x18a)](_0x544dd3(0x132)))&&_0xc76082['push'](_0x2356bd);}for(const _0x4af5c3 of _0xc76082){delete _0xb99be3['mcpServers'][_0x4af5c3];}return _0xc76082['length']>0x0&&writeFileSync(_0x1c3188[_0x544dd3(0x12a)]['path'],JSON[_0x544dd3(0x133)](_0xb99be3,null,0x2)+'\x0a',_0x544dd3(0x13d)),{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':'removed\x20'+_0xc76082[_0x544dd3(0x19a)](',\x20')+_0x544dd3(0x120)+_0x1c3188['oldMcpConfig']['path']};}return{'step':0x4,'label':_0x544dd3(0x135),'ok':!![],'detail':'no\x20matching\x20entry\x20found'};}catch(_0x1dc0a5){return{'step':0x4,'label':_0x544dd3(0x135),'ok':![],'detail':_0x1dc0a5[_0x544dd3(0x188)]};}}function execSkillsRemove(_0x2d7bea,_0x3959cd){const _0x413eb2=a127_0x33f1,_0x4b1d0d=runNpxSkillsRemove(_0x2d7bea,{'stdio':_0x413eb2(0x12f),'yes':_0x3959cd});return{'step':0x5,'label':_0x413eb2(0x123),'ok':_0x4b1d0d['ok'],'detail':_0x4b1d0d['ok']?_0x413eb2(0x157):_0x4b1d0d['error']??_0x413eb2(0x12b)+_0x4b1d0d[_0x413eb2(0x156)]};}function execSkillsAdd(_0x3f312a,_0x3f67c0){const _0x31c7bc=a127_0x33f1,_0x5862e0=runNpxSkillsAddGlobal(_0x3f312a,_0x31c7bc(0x15e),{'stdio':_0x31c7bc(0x12f),'yes':_0x3f67c0});return{'step':0x6,'label':_0x31c7bc(0x161),'ok':_0x5862e0['ok'],'detail':_0x5862e0['ok']?_0x31c7bc(0x138):_0x5862e0[_0x31c7bc(0x155)]??_0x31c7bc(0x12b)+_0x5862e0[_0x31c7bc(0x156)]};}function execUpgradeSdk(_0x2b029d){const _0x515bf5=a127_0x33f1;if(!_0x2b029d[_0x515bf5(0x183)])return{'step':0x7,'label':_0x515bf5(0x187),'ok':!![],'detail':'skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)'};const {pkgPath:_0x4645aa,currentVersion:_0x4ceb8e,field:_0x3813d1}=_0x2b029d['sdkUpgrade'];try{const _0x371c65=readFileSync(_0x4645aa,_0x515bf5(0x13d)),_0x32a3e5=JSON['parse'](_0x371c65);return _0x32a3e5[_0x3813d1][_0x515bf5(0x16e)]='latest',writeFileSync(_0x4645aa,JSON[_0x515bf5(0x133)](_0x32a3e5,null,0x2)+'\x0a',_0x515bf5(0x13d)),{'step':0x7,'label':_0x515bf5(0x187),'ok':!![],'detail':_0x3813d1+_0x515bf5(0x18c)+_0x4ceb8e+_0x515bf5(0x14e)};}catch(_0xe3e240){return{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':![],'detail':_0xe3e240[_0x515bf5(0x188)]};}}function tryStat(_0x167196){try{return statSync(_0x167196);}catch{return undefined;}}function printSummary(_0x2bb593){const _0x9069aa=a127_0x33f1;console[_0x9069aa(0x169)](''),console['log'](a127_0x389592[_0x9069aa(0x16c)]('===\x20Upgrade\x20Summary\x20===')),console[_0x9069aa(0x169)]('');for(const _0x30f9e4 of _0x2bb593){const _0x301841=_0x30f9e4['ok']?a127_0x389592['green']('OK'):a127_0x389592['red'](_0x9069aa(0x151));console[_0x9069aa(0x169)]('\x20\x20'+_0x301841+'\x20\x20Step\x20'+_0x30f9e4['step']+':\x20'+_0x30f9e4[_0x9069aa(0x18d)]);if(_0x30f9e4[_0x9069aa(0x13f)])console[_0x9069aa(0x169)](_0x9069aa(0x17e)+a127_0x389592[_0x9069aa(0x128)](_0x30f9e4[_0x9069aa(0x13f)]));}console[_0x9069aa(0x169)]('');}export async function upgradeApp(_0x308bfb,_0x4fa64d){const _0x2bf904=a127_0x33f1,_0x4112b0=process[_0x2bf904(0x12c)](),_0x4e9ea4=analyse(_0x4112b0),_0x23e8ad=!_0x4e9ea4[_0x2bf904(0x19e)]&&_0x4e9ea4['oldArtifacts']['length']===0x0&&!_0x4e9ea4[_0x2bf904(0x12a)]&&!_0x4e9ea4[_0x2bf904(0x12e)]&&!_0x4e9ea4[_0x2bf904(0x183)];if(_0x23e8ad){console[_0x2bf904(0x169)](a127_0x389592['green'](_0x2bf904(0x178)));return;}printReport(_0x4e9ea4);const _0x28ba77=!!(_0x4fa64d[_0x2bf904(0x129)]||_0x4fa64d['Y']||_0x308bfb);if(!_0x28ba77)try{const _0x38e4b7=await askConfirm(_0x2bf904(0x122));if(!_0x38e4b7){console[_0x2bf904(0x169)](a127_0x389592[_0x2bf904(0x128)](_0x2bf904(0x174)));return;}}catch(_0x2d6671){if(_0x2d6671?.['message']==='CANCEL'){console[_0x2bf904(0x169)](a127_0x389592[_0x2bf904(0x128)]('Upgrade\x20cancelled.'));return;}throw _0x2d6671;}const _0x5283bd=[],_0x33c257=a127_0x56bc45({'text':_0x2bf904(0x196),'color':_0x2bf904(0x19c)})[_0x2bf904(0x199)](),_0x55c642=execConfigMigration(_0x4e9ea4,_0x4112b0);_0x5283bd['push'](_0x55c642),_0x33c257[_0x55c642['ok']?'succeed':'fail'](_0x2bf904(0x131)+(_0x55c642[_0x2bf904(0x13f)]??(_0x55c642['ok']?'done':'failed')));const _0x5f4729=resolve(_0x4112b0,'.lovrabet'),_0x2c6f3b=a127_0x56bc45({'text':_0x2bf904(0x162),'color':_0x2bf904(0x19c)})[_0x2bf904(0x199)]();if(existsSync(_0x5f4729))try{rmSync(_0x5f4729,{'recursive':!![],'force':!![]}),_0x2c6f3b[_0x2bf904(0x141)](_0x2bf904(0x11e)),_0x5283bd[_0x2bf904(0x184)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![]});}catch(_0x3f4a00){_0x2c6f3b[_0x2bf904(0x182)](_0x2bf904(0x18b)+_0x3f4a00[_0x2bf904(0x188)]),_0x5283bd[_0x2bf904(0x184)]({'step':0x2,'label':_0x2bf904(0x185),'ok':![],'detail':_0x3f4a00[_0x2bf904(0x188)]});}else _0x2c6f3b[_0x2bf904(0x13b)](_0x2bf904(0x170)),_0x5283bd[_0x2bf904(0x184)]({'step':0x2,'label':_0x2bf904(0x185),'ok':!![],'detail':_0x2bf904(0x136)});const _0x48155b=a127_0x56bc45({'text':_0x2bf904(0x175),'color':_0x2bf904(0x19c)})[_0x2bf904(0x199)](),_0xad03ec=execRemoveOldArtifacts(_0x4e9ea4[_0x2bf904(0x163)]);_0x5283bd['push'](_0xad03ec),_0x48155b[_0xad03ec['ok']?_0x2bf904(0x141):_0x2bf904(0x182)](_0x2bf904(0x140)+(_0xad03ec['detail']??(_0xad03ec['ok']?_0x2bf904(0x154):'failed')));const _0x2fcdad=a127_0x56bc45({'text':'Step\x204/7:\x20Cleaning\x20MCP\x20config...','color':_0x2bf904(0x19c)})[_0x2bf904(0x199)](),_0xb67bbe=execCleanMcp(_0x4e9ea4);_0x5283bd[_0x2bf904(0x184)](_0xb67bbe),_0x2fcdad[_0xb67bbe['ok']?_0x2bf904(0x141):'fail']('Step\x204/7:\x20MCP\x20config\x20—\x20'+(_0xb67bbe[_0x2bf904(0x13f)]??(_0xb67bbe['ok']?_0x2bf904(0x154):_0x2bf904(0x16f))));const _0x288510=a127_0x56bc45({'text':'Step\x205/7:\x20Removing\x20old\x20skill...','color':'cyan'})['start'](),_0x23c926=execSkillsRemove(_0x4112b0,_0x28ba77);_0x5283bd[_0x2bf904(0x184)](_0x23c926),_0x288510[_0x23c926['ok']?_0x2bf904(0x141):'fail'](_0x2bf904(0x146)+(_0x23c926[_0x2bf904(0x13f)]??(_0x23c926['ok']?_0x2bf904(0x154):'failed')));const _0x53c93e=a127_0x56bc45({'text':'Step\x206/7:\x20Installing\x20new\x20skill...','color':_0x2bf904(0x19c)})[_0x2bf904(0x199)](),_0x2462dc=execSkillsAdd(_0x4112b0,_0x28ba77);_0x5283bd['push'](_0x2462dc),_0x53c93e[_0x2462dc['ok']?_0x2bf904(0x141):'fail'](_0x2bf904(0x179)+(_0x2462dc[_0x2bf904(0x13f)]??(_0x2462dc['ok']?'done':_0x2bf904(0x16f))));const _0x2aa132=a127_0x56bc45({'text':'Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','color':'cyan'})['start'](),_0x273c13=execUpgradeSdk(_0x4e9ea4);_0x5283bd['push'](_0x273c13),_0x2aa132[_0x273c13['ok']?_0x2bf904(0x141):_0x2bf904(0x182)](_0x2bf904(0x147)+(_0x273c13[_0x2bf904(0x13f)]??(_0x273c13['ok']?'done':'failed'))),printSummary(_0x5283bd);const _0x3b99b5=_0x5283bd[_0x2bf904(0x150)](_0x4e1c28=>!_0x4e1c28['ok']);_0x3b99b5?console[_0x2bf904(0x169)](a127_0x389592[_0x2bf904(0x126)](_0x2bf904(0x127))):console[_0x2bf904(0x169)](a127_0x389592['green'](_0x2bf904(0x121))),_0x273c13['ok']&&_0x4e9ea4[_0x2bf904(0x183)]&&(console[_0x2bf904(0x169)](''),console[_0x2bf904(0x169)](a127_0x389592[_0x2bf904(0x16c)]['cyan'](_0x2bf904(0x197))),console['log'](a127_0x389592[_0x2bf904(0x19c)](_0x2bf904(0x192))),console[_0x2bf904(0x169)](''),console['log'](a127_0x389592[_0x2bf904(0x191)](_0x2bf904(0x16a))),console[_0x2bf904(0x169)](a127_0x389592[_0x2bf904(0x191)](_0x2bf904(0x16b))),console[_0x2bf904(0x169)](a127_0x389592['white'](_0x2bf904(0x172))),console['log'](''));}
1
+ (function(_0x5dc57c,_0x5e03ee){const _0x1c793f=a127_0xd7a9,_0x422d47=_0x5dc57c();while(!![]){try{const _0x466a9d=-parseInt(_0x1c793f(0x21f))/0x1+-parseInt(_0x1c793f(0x1bd))/0x2+parseInt(_0x1c793f(0x1ab))/0x3+parseInt(_0x1c793f(0x1cb))/0x4+-parseInt(_0x1c793f(0x209))/0x5+parseInt(_0x1c793f(0x1b4))/0x6+parseInt(_0x1c793f(0x1ef))/0x7;if(_0x466a9d===_0x5e03ee)break;else _0x422d47['push'](_0x422d47['shift']());}catch(_0x1e425e){_0x422d47['push'](_0x422d47['shift']());}}}(a127_0x6544,0x553e1));import a127_0x429f9e from'chalk';import a127_0x27f616 from'ora';import{existsSync,readFileSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from'node:fs';import{resolve}from'node:path';import{CONFIG_NAMES,NEW_CONFIG_NAME,readConfigFile,writeConfigFile}from'../../context.js';import{CORE_IDE_CONFIGS}from'../../utils/ai_config.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../../skills/npx-skills-add.js';import{askConfirm}from'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x46da4f=>_0x46da4f!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x5bcfd5){const _0x1d9c70=a127_0xd7a9,_0x2c6fe3=[];for(const _0x5f5dba of Object[_0x1d9c70(0x1e4)](CORE_IDE_CONFIGS)){if(_0x5f5dba[_0x1d9c70(0x1e8)])for(const _0x3661a5 of _0x5f5dba['files']){_0x2c6fe3[_0x1d9c70(0x1a4)](resolve(_0x5bcfd5,_0x3661a5[_0x1d9c70(0x210)]));}}return _0x2c6fe3;}function analyse(_0x25756c){const _0x5d1b6e=a127_0xd7a9;let _0x41598b=null;const _0x547e51=resolve(_0x25756c,NEW_CONFIG_NAME),_0x3d8ab8=existsSync(_0x547e51);for(const _0x29f364 of LEGACY_CONFIG_NAMES){const _0x36afd3=resolve(_0x25756c,_0x29f364);if(existsSync(_0x36afd3)){const _0x215b4d=readConfigFile(_0x36afd3),_0x5b5a0d=Object[_0x5d1b6e(0x1d0)](_0x215b4d)['filter'](_0x11fb48=>typeof _0x215b4d[_0x11fb48]!==_0x5d1b6e(0x1a8));_0x41598b={'oldPath':_0x36afd3,'hasNewConfig':_0x3d8ab8,'fields':_0x5b5a0d};break;}}const _0x1f909a=[],_0x3b8ba7=resolve(_0x25756c,_0x5d1b6e(0x1a3));if(existsSync(_0x3b8ba7))_0x1f909a[_0x5d1b6e(0x1a4)](_0x3b8ba7);const _0x4a5273=resolve(_0x25756c,_0x5d1b6e(0x21b));if(existsSync(_0x4a5273))_0x1f909a['push'](_0x4a5273);const _0x72f934=resolve(_0x25756c,_0x5d1b6e(0x1b5));if(existsSync(_0x72f934))_0x1f909a[_0x5d1b6e(0x1a4)](_0x72f934);for(const _0x22d88b of collectIdeSkillFiles(_0x25756c)){if(existsSync(_0x22d88b))_0x1f909a[_0x5d1b6e(0x1a4)](_0x22d88b);}let _0x4a118a=null;const _0x868435=resolve(_0x25756c,_0x5d1b6e(0x19f));if(existsSync(_0x868435))try{const _0x1c7247=JSON['parse'](readFileSync(_0x868435,'utf8'));if(_0x1c7247?.[_0x5d1b6e(0x1f7)]&&typeof _0x1c7247[_0x5d1b6e(0x1f7)]===_0x5d1b6e(0x1e5)){const _0x42466e=[];for(const [_0x24f974,_0x4130e2]of Object[_0x5d1b6e(0x1c0)](_0x1c7247[_0x5d1b6e(0x1f7)])){const _0x33765b=_0x4130e2;_0x33765b?.[_0x5d1b6e(0x1ee)]&&Array[_0x5d1b6e(0x1da)](_0x33765b[_0x5d1b6e(0x1ee)])&&_0x33765b[_0x5d1b6e(0x1ee)][_0x5d1b6e(0x1d5)](_0x502018=>typeof _0x502018===_0x5d1b6e(0x1bc)&&_0x502018[_0x5d1b6e(0x1c7)](_0x5d1b6e(0x1db)))&&_0x42466e[_0x5d1b6e(0x1a4)](_0x24f974);}_0x42466e['length']>0x0&&(_0x4a118a={'path':_0x868435,'keys':_0x42466e});}}catch{}const _0x1b0067=_0x1f909a[_0x5d1b6e(0x1a1)]>0x0||_0x41598b!==null;let _0x324893=null;const _0x2773c6=resolve(_0x25756c,_0x5d1b6e(0x1df));if(existsSync(_0x2773c6))try{const _0x2e1238=JSON[_0x5d1b6e(0x1ff)](readFileSync(_0x2773c6,_0x5d1b6e(0x1f0)));for(const _0x26e576 of[_0x5d1b6e(0x20b),'devDependencies']){const _0x38cedb=_0x2e1238?.[_0x26e576]?.[_0x5d1b6e(0x217)];if(typeof _0x38cedb===_0x5d1b6e(0x1bc)){_0x38cedb!==_0x5d1b6e(0x1fe)&&(_0x324893={'pkgPath':_0x2773c6,'currentVersion':_0x38cedb,'field':_0x26e576});break;}}}catch{}return{'configMigration':_0x41598b,'oldArtifacts':_0x1f909a,'oldMcpConfig':_0x4a118a,'needsSkillSwap':_0x1b0067,'sdkUpgrade':_0x324893};}function printReport(_0x517e6e){const _0x11f1da=a127_0xd7a9,{configMigration:_0x581705,oldArtifacts:_0x2cc13a,oldMcpConfig:_0x5602b4,needsSkillSwap:_0x2f46b9}=_0x517e6e;console['log'](''),console[_0x11f1da(0x1cd)](a127_0x429f9e[_0x11f1da(0x1bf)](_0x11f1da(0x1ba))),console['log']('');_0x581705?(console[_0x11f1da(0x1cd)](a127_0x429f9e['cyan'](_0x11f1da(0x1e3))+('\x20\x20'+a127_0x429f9e[_0x11f1da(0x216)](_0x581705[_0x11f1da(0x207)]))),console[_0x11f1da(0x1cd)](_0x11f1da(0x1a7)+(_0x581705[_0x11f1da(0x1ac)]?a127_0x429f9e[_0x11f1da(0x20f)]('already\x20exists\x20(will\x20merge)'):a127_0x429f9e['gray']('not\x20found\x20(will\x20create)'))),console[_0x11f1da(0x1cd)]('\x20\x20Fields\x20to\x20migrate:\x20'+_0x581705[_0x11f1da(0x219)][_0x11f1da(0x1fb)](',\x20')),console[_0x11f1da(0x1cd)](_0x11f1da(0x1c8))):console[_0x11f1da(0x1cd)](a127_0x429f9e[_0x11f1da(0x1d4)](_0x11f1da(0x1e3))+'\x20\x20'+a127_0x429f9e['gray'](_0x11f1da(0x1ed)));console['log']('');if(_0x2cc13a[_0x11f1da(0x1a1)]>0x0){console[_0x11f1da(0x1cd)](a127_0x429f9e[_0x11f1da(0x1d4)](_0x11f1da(0x1c5)));for(const _0x1fabcb of _0x2cc13a){console['log']('\x20\x20'+a127_0x429f9e[_0x11f1da(0x1a0)](_0x11f1da(0x203))+'\x20\x20'+_0x1fabcb);}console[_0x11f1da(0x1cd)](_0x11f1da(0x1f6));}else console[_0x11f1da(0x1cd)](a127_0x429f9e[_0x11f1da(0x1d4)](_0x11f1da(0x1c5))+'\x20\x20'+a127_0x429f9e[_0x11f1da(0x1f3)]('none\x20found'));console['log']('');_0x5602b4?(console[_0x11f1da(0x1cd)](a127_0x429f9e['cyan'](_0x11f1da(0x1e0))+('\x20\x20'+a127_0x429f9e[_0x11f1da(0x216)](_0x5602b4[_0x11f1da(0x210)])+_0x11f1da(0x1aa)+_0x5602b4[_0x11f1da(0x1d0)][_0x11f1da(0x1fb)](',\x20'))),console['log'](_0x11f1da(0x1f4))):console['log'](a127_0x429f9e[_0x11f1da(0x1d4)](_0x11f1da(0x1e0))+'\x20\x20'+a127_0x429f9e[_0x11f1da(0x1f3)](_0x11f1da(0x1b3)));console[_0x11f1da(0x1cd)](''),console[_0x11f1da(0x1cd)](a127_0x429f9e[_0x11f1da(0x1d4)](_0x11f1da(0x201))+('\x20\x20'+(_0x2f46b9?a127_0x429f9e['yellow']('needed'):a127_0x429f9e[_0x11f1da(0x20f)](_0x11f1da(0x1fa)))));_0x2f46b9&&console[_0x11f1da(0x1cd)](_0x11f1da(0x206)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x11f1da(0x1cd)]('');if(_0x517e6e[_0x11f1da(0x202)]){const {currentVersion:_0x3f1950,field:_0x444b4d,pkgPath:_0x341547}=_0x517e6e[_0x11f1da(0x202)];console[_0x11f1da(0x1cd)](a127_0x429f9e[_0x11f1da(0x1d4)]('@lovrabet/sdk:')+('\x20\x20'+a127_0x429f9e[_0x11f1da(0x216)](_0x341547))),console[_0x11f1da(0x1cd)](_0x11f1da(0x1cc)+_0x444b4d+':\x20'+a127_0x429f9e['yellow'](_0x3f1950)+'\x20→\x20'+a127_0x429f9e[_0x11f1da(0x20f)](_0x11f1da(0x1fe))),console[_0x11f1da(0x1cd)](_0x11f1da(0x1c4));}else console[_0x11f1da(0x1cd)](a127_0x429f9e['cyan'](_0x11f1da(0x1ec))+'\x20\x20'+a127_0x429f9e[_0x11f1da(0x1f3)]('not\x20found\x20or\x20already\x20at\x20latest'));console[_0x11f1da(0x1cd)]('');}function execConfigMigration(_0x296d61,_0x4d26e4){const _0x1d66a4=a127_0xd7a9,{configMigration:_0x1a69f3}=_0x296d61;if(!_0x1a69f3?.[_0x1d66a4(0x207)])return{'step':0x1,'label':_0x1d66a4(0x1ad),'ok':!![],'detail':_0x1d66a4(0x200)};const _0x2585c8=readConfigFile(_0x1a69f3[_0x1d66a4(0x207)]),_0x5ed08d=resolve(_0x4d26e4,NEW_CONFIG_NAME),_0x14ccf0=_0x1a69f3[_0x1d66a4(0x1ac)]?readConfigFile(_0x5ed08d):{};for(const [_0x10a578,_0x65eaf9]of Object[_0x1d66a4(0x1c0)](_0x2585c8)){!(_0x10a578 in _0x14ccf0)&&(_0x14ccf0[_0x10a578]=_0x65eaf9);}writeConfigFile(_0x5ed08d,_0x14ccf0);const _0x552f82=_0x1a69f3['oldPath']+_0x1d66a4(0x1c2);return renameSync(_0x1a69f3[_0x1d66a4(0x207)],_0x552f82),{'step':0x1,'label':_0x1d66a4(0x1ad),'ok':!![],'detail':_0x1a69f3[_0x1d66a4(0x207)]+_0x1d66a4(0x1c6)+_0x5ed08d+'\x20(backup:\x20'+_0x552f82+')'};}function a127_0xd7a9(_0x52e1b9,_0x4f87d5){_0x52e1b9=_0x52e1b9-0x19e;const _0x654452=a127_0x6544();let _0xd7a99f=_0x654452[_0x52e1b9];return _0xd7a99f;}function execRemoveOldArtifacts(_0xcd56fe){const _0x6ee5c1=a127_0xd7a9,_0x3d35b9=[];for(const _0x2d8574 of _0xcd56fe){try{if(!existsSync(_0x2d8574))continue;const _0x33bc18=tryStat(_0x2d8574);_0x33bc18?.[_0x6ee5c1(0x21c)]()?rmSync(_0x2d8574,{'recursive':!![],'force':!![]}):unlinkSync(_0x2d8574);}catch(_0x539d55){_0x3d35b9[_0x6ee5c1(0x1a4)](_0x2d8574+':\x20'+_0x539d55[_0x6ee5c1(0x218)]);}}return{'step':0x3,'label':_0x6ee5c1(0x1b7),'ok':_0x3d35b9['length']===0x0,'detail':_0x3d35b9['length']>0x0?_0xcd56fe[_0x6ee5c1(0x1a1)]-_0x3d35b9['length']+'/'+_0xcd56fe[_0x6ee5c1(0x1a1)]+_0x6ee5c1(0x215)+_0x3d35b9['join'](';\x20')+')':_0xcd56fe['length']+_0x6ee5c1(0x208)};}function a127_0x6544(){const _0x1c3795=['[\x22@lovrabet/sdk\x22]:\x20','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','package.json','MCP\x20config:','fail','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','Config\x20file:','values','object','status','white','files','oldArtifacts','lovrabet/rabetbase\x20installed\x20globally','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','@lovrabet/sdk:','no\x20legacy\x20config\x20found','args','1030974GqJnXM','utf8','removed\x20','lovrabet/rabetbase','gray','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','\x20\x20Action:\x20delete','mcpServers','failed','start','not\x20needed','join','detail','done','latest','parse','skipped\x20(no\x20legacy\x20config)','Skill\x20swap:','sdkUpgrade','FOUND','FAIL','\x20\x20Step\x20','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','oldPath','\x20removed','1815545PqzbFv','step','dependencies','\x20→\x20latest','cwd','info','green','path','lovrabet/lovrabet-skill\x20removed','Upgrade\x20cancelled.','CANCEL','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','\x20removed\x20(','yellow','@lovrabet/sdk','message','fields','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','.cursor/rules/lovrabet_rules.mdc','isDirectory','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','3517vQxblP','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','.cursor/mcp.json','red','length','exit\x20','.lovrabet','push','\x20\x20bun\x20install','Upgrade\x20completed\x20successfully!','\x20\x20New\x20config\x20(.rabetbase.json):\x20','undefined','oldMcpConfig','\x20→\x20keys:\x20','580176TaxqfR','hasNewConfig','Config\x20migration','Clean\x20MCP\x20config','succeed','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','Step\x206/7:\x20Installing\x20new\x20skill...','label','no\x20legacy\x20entry','2073336dfWPTC','.claude/skills/lovrabet','Step\x205/7:\x20Removing\x20old\x20skill...','Remove\x20legacy\x20artifacts','skipped','\x20\x20npm\x20install','===\x20Upgrade\x20Analysis\x20===','stringify','string','1332888xIqjXk','inherit','bold','entries','no\x20matching\x20entry\x20found','.bak','\x20\x20#\x20or','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','Legacy\x20artifacts:','\x20→\x20','includes','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:','error','2783972oCtxkR','\x20\x20Current\x20version\x20in\x20','log','\x20\x20\x20\x20\x20\x20\x20','needsSkillSwap','keys','Proceed\x20with\x20upgrade?','\x20from\x20','Remove\x20old\x20skill','cyan','some','yes','Remove\x20.lovrabet/','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','Upgrade\x20@lovrabet/sdk','isArray','@lovrabet/dataset-mcp-server','Step\x201/7:\x20Config\x20migration\x20—\x20'];a127_0x6544=function(){return _0x1c3795;};return a127_0x6544();}function execCleanMcp(_0x2acc38){const _0xff5a0=a127_0xd7a9;if(!_0x2acc38[_0xff5a0(0x1a9)])return{'step':0x4,'label':_0xff5a0(0x1ae),'ok':!![],'detail':_0xff5a0(0x1b8)};try{const _0x1becb6=readFileSync(_0x2acc38['oldMcpConfig'][_0xff5a0(0x210)],_0xff5a0(0x1f0)),_0x1666ef=JSON[_0xff5a0(0x1ff)](_0x1becb6);if(_0x1666ef?.[_0xff5a0(0x1f7)]&&typeof _0x1666ef[_0xff5a0(0x1f7)]===_0xff5a0(0x1e5)){const _0x482d22=[];for(const [_0x368434,_0x349220]of Object[_0xff5a0(0x1c0)](_0x1666ef[_0xff5a0(0x1f7)])){_0x349220?.[_0xff5a0(0x1ee)]&&Array[_0xff5a0(0x1da)](_0x349220[_0xff5a0(0x1ee)])&&_0x349220[_0xff5a0(0x1ee)][_0xff5a0(0x1d5)](_0x3445d3=>typeof _0x3445d3===_0xff5a0(0x1bc)&&_0x3445d3[_0xff5a0(0x1c7)](_0xff5a0(0x1db)))&&_0x482d22[_0xff5a0(0x1a4)](_0x368434);}for(const _0x5eae36 of _0x482d22){delete _0x1666ef['mcpServers'][_0x5eae36];}return _0x482d22[_0xff5a0(0x1a1)]>0x0&&writeFileSync(_0x2acc38[_0xff5a0(0x1a9)][_0xff5a0(0x210)],JSON[_0xff5a0(0x1bb)](_0x1666ef,null,0x2)+'\x0a',_0xff5a0(0x1f0)),{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':_0xff5a0(0x1f1)+_0x482d22[_0xff5a0(0x1fb)](',\x20')+_0xff5a0(0x1d2)+_0x2acc38[_0xff5a0(0x1a9)][_0xff5a0(0x210)]};}return{'step':0x4,'label':_0xff5a0(0x1ae),'ok':!![],'detail':_0xff5a0(0x1c1)};}catch(_0x49f0e7){return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':![],'detail':_0x49f0e7[_0xff5a0(0x218)]};}}function execSkillsRemove(_0x2a95a8,_0x34c5db){const _0x157c49=a127_0xd7a9,_0x3aff05=runNpxSkillsRemove(_0x2a95a8,{'stdio':_0x157c49(0x1be),'yes':_0x34c5db});return{'step':0x5,'label':_0x157c49(0x1d3),'ok':_0x3aff05['ok'],'detail':_0x3aff05['ok']?_0x157c49(0x211):_0x3aff05['error']??'exit\x20'+_0x3aff05[_0x157c49(0x1e6)]};}function execSkillsAdd(_0x12fd38,_0x40323e){const _0x2c953b=a127_0xd7a9,_0x3ab11b=runNpxSkillsAddGlobal(_0x12fd38,_0x2c953b(0x1f2),{'stdio':_0x2c953b(0x1be),'yes':_0x40323e});return{'step':0x6,'label':'Install\x20new\x20skill','ok':_0x3ab11b['ok'],'detail':_0x3ab11b['ok']?_0x2c953b(0x1ea):_0x3ab11b[_0x2c953b(0x1ca)]??_0x2c953b(0x1a2)+_0x3ab11b[_0x2c953b(0x1e6)]};}function execUpgradeSdk(_0x16ca55){const _0x54985b=a127_0xd7a9;if(!_0x16ca55['sdkUpgrade'])return{'step':0x7,'label':_0x54985b(0x1d9),'ok':!![],'detail':'skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)'};const {pkgPath:_0x4dc4f9,currentVersion:_0x3c2003,field:_0x23fdf3}=_0x16ca55['sdkUpgrade'];try{const _0x27df68=readFileSync(_0x4dc4f9,_0x54985b(0x1f0)),_0x3cdc18=JSON['parse'](_0x27df68);return _0x3cdc18[_0x23fdf3][_0x54985b(0x217)]=_0x54985b(0x1fe),writeFileSync(_0x4dc4f9,JSON[_0x54985b(0x1bb)](_0x3cdc18,null,0x2)+'\x0a',_0x54985b(0x1f0)),{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':!![],'detail':_0x23fdf3+_0x54985b(0x1dd)+_0x3c2003+_0x54985b(0x20c)};}catch(_0x20dd66){return{'step':0x7,'label':_0x54985b(0x1d9),'ok':![],'detail':_0x20dd66['message']};}}function tryStat(_0xe83b92){try{return statSync(_0xe83b92);}catch{return undefined;}}function printSummary(_0xe0d85){const _0x988d57=a127_0xd7a9;console[_0x988d57(0x1cd)](''),console[_0x988d57(0x1cd)](a127_0x429f9e[_0x988d57(0x1bf)]('===\x20Upgrade\x20Summary\x20===')),console[_0x988d57(0x1cd)]('');for(const _0x46adf3 of _0xe0d85){const _0x13505a=_0x46adf3['ok']?a127_0x429f9e['green']('OK'):a127_0x429f9e[_0x988d57(0x1a0)](_0x988d57(0x204));console[_0x988d57(0x1cd)]('\x20\x20'+_0x13505a+_0x988d57(0x205)+_0x46adf3[_0x988d57(0x20a)]+':\x20'+_0x46adf3[_0x988d57(0x1b2)]);if(_0x46adf3[_0x988d57(0x1fc)])console[_0x988d57(0x1cd)](_0x988d57(0x1ce)+a127_0x429f9e[_0x988d57(0x1f3)](_0x46adf3[_0x988d57(0x1fc)]));}console[_0x988d57(0x1cd)]('');}export async function upgradeApp(_0x41e12a,_0x15a3fc){const _0x58cc5a=a127_0xd7a9,_0x1fa0a7=process[_0x58cc5a(0x20d)](),_0x598368=analyse(_0x1fa0a7),_0x1c843d=!_0x598368['configMigration']&&_0x598368[_0x58cc5a(0x1e9)][_0x58cc5a(0x1a1)]===0x0&&!_0x598368[_0x58cc5a(0x1a9)]&&!_0x598368[_0x58cc5a(0x1cf)]&&!_0x598368[_0x58cc5a(0x202)];if(_0x1c843d){console[_0x58cc5a(0x1cd)](a127_0x429f9e[_0x58cc5a(0x20f)](_0x58cc5a(0x1f5)));return;}printReport(_0x598368);const _0x16c471=!!(_0x15a3fc[_0x58cc5a(0x1d6)]||_0x15a3fc['Y']||_0x41e12a);if(!_0x16c471)try{const _0x3c858f=await askConfirm(_0x58cc5a(0x1d1));if(!_0x3c858f){console[_0x58cc5a(0x1cd)](a127_0x429f9e[_0x58cc5a(0x1f3)](_0x58cc5a(0x212)));return;}}catch(_0x36f082){if(_0x36f082?.['message']===_0x58cc5a(0x213)){console['log'](a127_0x429f9e[_0x58cc5a(0x1f3)](_0x58cc5a(0x212)));return;}throw _0x36f082;}const _0x39d0a8=[],_0x4e3efc=a127_0x27f616({'text':'Step\x201/7:\x20Migrating\x20config...','color':_0x58cc5a(0x1d4)})[_0x58cc5a(0x1f9)](),_0x3532da=execConfigMigration(_0x598368,_0x1fa0a7);_0x39d0a8[_0x58cc5a(0x1a4)](_0x3532da),_0x4e3efc[_0x3532da['ok']?_0x58cc5a(0x1af):_0x58cc5a(0x1e1)](_0x58cc5a(0x1dc)+(_0x3532da[_0x58cc5a(0x1fc)]??(_0x3532da['ok']?_0x58cc5a(0x1fd):_0x58cc5a(0x1f8))));const _0x435290=resolve(_0x1fa0a7,_0x58cc5a(0x1a3)),_0x5322ff=a127_0x27f616({'text':_0x58cc5a(0x21d),'color':_0x58cc5a(0x1d4)})[_0x58cc5a(0x1f9)]();if(existsSync(_0x435290))try{rmSync(_0x435290,{'recursive':!![],'force':!![]}),_0x5322ff[_0x58cc5a(0x1af)](_0x58cc5a(0x21a)),_0x39d0a8[_0x58cc5a(0x1a4)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![]});}catch(_0x37d7e8){_0x5322ff[_0x58cc5a(0x1e1)](_0x58cc5a(0x214)+_0x37d7e8['message']),_0x39d0a8[_0x58cc5a(0x1a4)]({'step':0x2,'label':_0x58cc5a(0x1d7),'ok':![],'detail':_0x37d7e8[_0x58cc5a(0x218)]});}else _0x5322ff[_0x58cc5a(0x20e)](_0x58cc5a(0x21e)),_0x39d0a8[_0x58cc5a(0x1a4)]({'step':0x2,'label':_0x58cc5a(0x1d7),'ok':!![],'detail':'skipped'});const _0x48dbae=a127_0x27f616({'text':'Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','color':_0x58cc5a(0x1d4)})['start'](),_0x31163d=execRemoveOldArtifacts(_0x598368['oldArtifacts']);_0x39d0a8[_0x58cc5a(0x1a4)](_0x31163d),_0x48dbae[_0x31163d['ok']?_0x58cc5a(0x1af):_0x58cc5a(0x1e1)](_0x58cc5a(0x19e)+(_0x31163d['detail']??(_0x31163d['ok']?_0x58cc5a(0x1fd):_0x58cc5a(0x1f8))));const _0xe382e8=a127_0x27f616({'text':'Step\x204/7:\x20Cleaning\x20MCP\x20config...','color':_0x58cc5a(0x1d4)})[_0x58cc5a(0x1f9)](),_0x486a9a=execCleanMcp(_0x598368);_0x39d0a8[_0x58cc5a(0x1a4)](_0x486a9a),_0xe382e8[_0x486a9a['ok']?_0x58cc5a(0x1af):_0x58cc5a(0x1e1)]('Step\x204/7:\x20MCP\x20config\x20—\x20'+(_0x486a9a[_0x58cc5a(0x1fc)]??(_0x486a9a['ok']?_0x58cc5a(0x1fd):'failed')));const _0x33c798=a127_0x27f616({'text':_0x58cc5a(0x1b6),'color':_0x58cc5a(0x1d4)})[_0x58cc5a(0x1f9)](),_0xdc3a29=execSkillsRemove(_0x1fa0a7,_0x16c471);_0x39d0a8[_0x58cc5a(0x1a4)](_0xdc3a29),_0x33c798[_0xdc3a29['ok']?'succeed':_0x58cc5a(0x1e1)](_0x58cc5a(0x1e2)+(_0xdc3a29[_0x58cc5a(0x1fc)]??(_0xdc3a29['ok']?_0x58cc5a(0x1fd):'failed')));const _0x18cdbc=a127_0x27f616({'text':_0x58cc5a(0x1b1),'color':_0x58cc5a(0x1d4)})['start'](),_0x279967=execSkillsAdd(_0x1fa0a7,_0x16c471);_0x39d0a8[_0x58cc5a(0x1a4)](_0x279967),_0x18cdbc[_0x279967['ok']?_0x58cc5a(0x1af):_0x58cc5a(0x1e1)](_0x58cc5a(0x1d8)+(_0x279967[_0x58cc5a(0x1fc)]??(_0x279967['ok']?'done':'failed')));const _0x2e0188=a127_0x27f616({'text':_0x58cc5a(0x1b0),'color':_0x58cc5a(0x1d4)})[_0x58cc5a(0x1f9)](),_0x10341e=execUpgradeSdk(_0x598368);_0x39d0a8[_0x58cc5a(0x1a4)](_0x10341e),_0x2e0188[_0x10341e['ok']?_0x58cc5a(0x1af):'fail'](_0x58cc5a(0x1eb)+(_0x10341e[_0x58cc5a(0x1fc)]??(_0x10341e['ok']?'done':_0x58cc5a(0x1f8)))),printSummary(_0x39d0a8);const _0x4bfd8f=_0x39d0a8['some'](_0x3d00fd=>!_0x3d00fd['ok']);_0x4bfd8f?console['log'](a127_0x429f9e[_0x58cc5a(0x216)]('Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.')):console[_0x58cc5a(0x1cd)](a127_0x429f9e[_0x58cc5a(0x20f)](_0x58cc5a(0x1a6))),_0x10341e['ok']&&_0x598368[_0x58cc5a(0x202)]&&(console['log'](''),console[_0x58cc5a(0x1cd)](a127_0x429f9e[_0x58cc5a(0x1bf)]['cyan'](_0x58cc5a(0x1de))),console['log'](a127_0x429f9e[_0x58cc5a(0x1d4)](_0x58cc5a(0x1c9))),console[_0x58cc5a(0x1cd)](''),console[_0x58cc5a(0x1cd)](a127_0x429f9e[_0x58cc5a(0x1e7)](_0x58cc5a(0x1b9))),console['log'](a127_0x429f9e[_0x58cc5a(0x1e7)](_0x58cc5a(0x1c3))),console[_0x58cc5a(0x1cd)](a127_0x429f9e[_0x58cc5a(0x1e7)](_0x58cc5a(0x1a5))),console[_0x58cc5a(0x1cd)](''));}