@lovrabet/rabetbase-cli 2.3.16-beta.1 → 2.3.16-beta.2

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 (277) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -0
  23. package/lib/commands/app/remote-directory.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-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/relation-audit.js +1 -1
  142. package/lib/commands/page/restore.js +1 -1
  143. package/lib/commands/page/shared.js +1 -1
  144. package/lib/commands/page/standard-page-status.js +1 -1
  145. package/lib/commands/page/sync.js +1 -1
  146. package/lib/commands/permit/index.js +1 -1
  147. package/lib/commands/permit/page-get.js +1 -1
  148. package/lib/commands/permit/page-set.js +1 -1
  149. package/lib/commands/permit/role-apis-set.js +1 -1
  150. package/lib/commands/permit/role-menus-set.js +1 -1
  151. package/lib/commands/permit/role-menus.js +1 -1
  152. package/lib/commands/permit/shared.js +1 -1
  153. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  154. package/lib/commands/project/create/format-elapsed.js +1 -1
  155. package/lib/commands/project/create/main.js +1 -1
  156. package/lib/commands/project/create/non-interactive.js +1 -1
  157. package/lib/commands/project/create/project-template-path.js +1 -1
  158. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  159. package/lib/commands/project/create/use-format-code.js +1 -1
  160. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  161. package/lib/commands/project/index.js +1 -1
  162. package/lib/commands/project/init.js +1 -1
  163. package/lib/commands/project/upgrade.js +1 -1
  164. package/lib/commands/registry.js +1 -1
  165. package/lib/commands/role/create.js +1 -1
  166. package/lib/commands/role/delete.js +1 -1
  167. package/lib/commands/role/detail.js +1 -1
  168. package/lib/commands/role/index.js +1 -1
  169. package/lib/commands/role/list.js +1 -1
  170. package/lib/commands/role/shared.js +1 -1
  171. package/lib/commands/role/update.js +1 -1
  172. package/lib/commands/role/user-add.js +1 -1
  173. package/lib/commands/role/user-remove.js +1 -1
  174. package/lib/commands/role/user-resolve.js +1 -1
  175. package/lib/commands/run/index.js +1 -1
  176. package/lib/commands/schema.js +1 -1
  177. package/lib/commands/sql/create.js +1 -1
  178. package/lib/commands/sql/delete.js +1 -1
  179. package/lib/commands/sql/detail.js +1 -1
  180. package/lib/commands/sql/exec.js +1 -1
  181. package/lib/commands/sql/index.js +1 -1
  182. package/lib/commands/sql/list.js +1 -1
  183. package/lib/commands/sql/pull.js +1 -1
  184. package/lib/commands/sql/push.js +1 -1
  185. package/lib/commands/sql/save.js +1 -1
  186. package/lib/commands/sql/shared.js +1 -1
  187. package/lib/commands/sql/status.js +1 -1
  188. package/lib/commands/sql/validate.js +1 -1
  189. package/lib/commands/task/index.js +1 -1
  190. package/lib/commands/task/status.js +1 -1
  191. package/lib/commands/tenant/index.js +1 -0
  192. package/lib/commands/tenant/members-list.js +1 -0
  193. package/lib/commands/tenant/shared.js +1 -0
  194. package/lib/commands/workspace/add.js +1 -1
  195. package/lib/commands/workspace/index.js +1 -1
  196. package/lib/commands/workspace/remove.js +1 -1
  197. package/lib/config/schema.js +1 -1
  198. package/lib/constant/cdn.js +1 -1
  199. package/lib/constant/cli.js +1 -1
  200. package/lib/constant/defaults.js +1 -1
  201. package/lib/constant/domain.js +1 -1
  202. package/lib/constant/env.js +1 -1
  203. package/lib/constant/output.js +1 -1
  204. package/lib/constant/paths.js +1 -1
  205. package/lib/constant/risk.js +1 -1
  206. package/lib/context/app-resolver.js +1 -1
  207. package/lib/context/auth-resolver.js +1 -1
  208. package/lib/context/config-loader.js +1 -1
  209. package/lib/context.js +1 -1
  210. package/lib/core/alias-resolver.js +1 -1
  211. package/lib/core/api-client.js +1 -1
  212. package/lib/core/bff/config.js +1 -1
  213. package/lib/core/bff/file-system.js +1 -1
  214. package/lib/core/bff/hash.js +1 -1
  215. package/lib/core/bff/lock.js +1 -1
  216. package/lib/core/bff/utils.js +1 -1
  217. package/lib/core/db-resolver.js +1 -1
  218. package/lib/core/page/file-system.js +1 -1
  219. package/lib/core/page/hash.js +1 -1
  220. package/lib/core/page/lock.js +1 -1
  221. package/lib/core/sql-index-auditor.js +1 -1
  222. package/lib/core/sql-sync/config.js +1 -1
  223. package/lib/core/sql-sync/file-system.js +1 -1
  224. package/lib/core/sql-sync/hash.js +1 -1
  225. package/lib/core/sql-sync/lock.js +1 -1
  226. package/lib/core/sql-sync/utils.js +1 -1
  227. package/lib/core/sql-validator.js +1 -1
  228. package/lib/errors.js +1 -1
  229. package/lib/framework/build-all-flags.js +1 -1
  230. package/lib/framework/error-output.js +1 -1
  231. package/lib/framework/explicit-yes.js +1 -1
  232. package/lib/framework/flags.js +1 -1
  233. package/lib/framework/help.js +1 -1
  234. package/lib/framework/index.js +1 -1
  235. package/lib/framework/output.js +1 -1
  236. package/lib/framework/response.js +1 -1
  237. package/lib/framework/runner-alias.js +1 -1
  238. package/lib/framework/runner.js +1 -1
  239. package/lib/framework/schema-export.js +1 -1
  240. package/lib/framework/types.js +1 -1
  241. package/lib/generated/build-info.js +1 -1
  242. package/lib/help.js +1 -1
  243. package/lib/skills/main.js +1 -1
  244. package/lib/skills/npx-skills-add.js +1 -1
  245. package/lib/skills/skill-presence.js +1 -1
  246. package/lib/telemetry/cli-command-trace.js +1 -1
  247. package/lib/telemetry/cli-help-trace.js +1 -1
  248. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  249. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  250. package/lib/telemetry/send-cli-trace-log.js +1 -1
  251. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  252. package/lib/utils/ai_config.js +1 -1
  253. package/lib/utils/apply-jq-filter.js +1 -1
  254. package/lib/utils/cdn-config.js +1 -1
  255. package/lib/utils/check-sdk-version.js +1 -1
  256. package/lib/utils/cli-version-check.js +1 -1
  257. package/lib/utils/cli-version-policy.js +1 -1
  258. package/lib/utils/config.js +1 -1
  259. package/lib/utils/copy-directory.js +1 -1
  260. package/lib/utils/entity-with-id.js +1 -1
  261. package/lib/utils/file-utils.js +1 -1
  262. package/lib/utils/guides-cdn.js +1 -1
  263. package/lib/utils/http-client.js +1 -1
  264. package/lib/utils/is-non-interactive.js +1 -1
  265. package/lib/utils/logger.js +1 -1
  266. package/lib/utils/params.js +1 -1
  267. package/lib/utils/platform.js +1 -1
  268. package/lib/utils/rules-cdn.js +1 -1
  269. package/lib/utils/sleep.js +1 -1
  270. package/lib/utils/template-replacer.js +1 -1
  271. package/lib/utils/update-notice.js +1 -1
  272. package/lib/utils/version.js +1 -1
  273. package/lib/utils/with-active-cookie.js +1 -1
  274. package/lib/utils/write-cli-side-channel.js +1 -1
  275. package/package.json +2 -2
  276. package/lib/commands/app/add.js +0 -1
  277. package/lib/commands/app/remove.js +0 -1
@@ -1 +1 @@
1
- (function(_0x1f264c,_0x7a244){const _0x3dbcf5=a156_0x3a6f,_0x194adf=_0x1f264c();while(!![]){try{const _0x28ec30=parseInt(_0x3dbcf5(0x214))/0x1*(parseInt(_0x3dbcf5(0x201))/0x2)+-parseInt(_0x3dbcf5(0x1e4))/0x3+-parseInt(_0x3dbcf5(0x1f1))/0x4+parseInt(_0x3dbcf5(0x1ed))/0x5*(-parseInt(_0x3dbcf5(0x1e2))/0x6)+-parseInt(_0x3dbcf5(0x1e6))/0x7+parseInt(_0x3dbcf5(0x1e9))/0x8*(-parseInt(_0x3dbcf5(0x1e0))/0x9)+parseInt(_0x3dbcf5(0x1e1))/0xa*(parseInt(_0x3dbcf5(0x1fb))/0xb);if(_0x28ec30===_0x7a244)break;else _0x194adf['push'](_0x194adf['shift']());}catch(_0x1b8e4f){_0x194adf['push'](_0x194adf['shift']());}}}(a156_0x2909,0x5083d));import a156_0x14620d from'path';import a156_0x14574a 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';function a156_0x3a6f(_0x498500,_0x5b6d3f){_0x498500=_0x498500-0x1e0;const _0x290949=a156_0x2909();let _0x3a6f06=_0x290949[_0x498500];return _0x3a6f06;}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'../../../core/api-client.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(_0x59c800,_0x3d264f,_0x19335c,_0x15f942){const _0x256c6c=a156_0x3a6f,_0xb4fcdc=await checkCliVersion();(_0xb4fcdc[_0x256c6c(0x1ec)]||_0xb4fcdc[_0x256c6c(0x1eb)])&&(printCliUpgradeWarning(_0xb4fcdc),assertCliVersionSupported(_0xb4fcdc));if(!_0x59c800||_0x59c800[_0x256c6c(0x1ee)]()==='')throw CliErrors[_0x256c6c(0x21d)](_0x256c6c(0x213));const _0x1d889b=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x1d889b[_0x256c6c(0x205)](_0x59c800))throw CliErrors[_0x256c6c(0x21d)](_0x256c6c(0x217),_0x256c6c(0x203));if(_0x59c800[_0x256c6c(0x1e5)]>0x64)throw CliErrors[_0x256c6c(0x21d)]('Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.');const _0x512942=a156_0x14620d[_0x256c6c(0x20a)](process['cwd'](),_0x59c800);if(existsSync(_0x512942))throw CliErrors['validation'](_0x256c6c(0x216)+_0x59c800+'\x22\x20already\x20exists.',_0x256c6c(0x212));try{const _0x59d0d7=a156_0x14620d[_0x256c6c(0x20e)](_0x512942);await a156_0x14574a[_0x256c6c(0x215)](_0x59d0d7,a156_0x14574a[_0x256c6c(0x207)][_0x256c6c(0x21f)]);}catch{throw CliErrors[_0x256c6c(0x21d)](_0x256c6c(0x1ef),'Check\x20directory\x20permissions.');}try{console[_0x256c6c(0x210)](_0x256c6c(0x20c)+_0x59c800+_0x256c6c(0x20f));const _0x38615e=getSubAppReactDemoTemplateDir();await copyDirectory(_0x38615e,_0x512942),console['log'](_0x256c6c(0x1ff)),await updatePackageJsonName(_0x59c800),console[_0x256c6c(0x210)](_0x256c6c(0x1ea)),console['log'](_0x256c6c(0x1f8)),console['log']('\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)'),await formatCode(_0x512942),console['log'](_0x256c6c(0x21e)),await configureProject(_0x59c800,_0x19335c,_0x3d264f),console[_0x256c6c(0x210)]('\x20\x20√\x20Configuration\x20file\x20created'),_0x19335c&&await pullApiConfig(_0x512942,_0x19335c,_0x3d264f,_0x15f942),console[_0x256c6c(0x210)](_0x256c6c(0x21c)+_0x59c800+_0x256c6c(0x20b)),console[_0x256c6c(0x210)](_0x256c6c(0x1fc)+_0x59c800),console[_0x256c6c(0x210)]('\x20\x20rabetbase\x20run\x20start\x0a');}catch(_0x3f0efb){try{existsSync(_0x512942)&&await a156_0x14574a['rm'](_0x512942,{'recursive':!![],'force':!![]});}catch{}throw _0x3f0efb;}}async function updatePackageJsonName(_0x206b67){const _0x56a4f7=a156_0x3a6f,_0x10a368=a156_0x14620d['resolve'](process[_0x56a4f7(0x206)](),_0x206b67),_0x2e6fef=a156_0x14620d[_0x56a4f7(0x1f7)](_0x10a368,_0x56a4f7(0x219)),_0x2fcb86=await a156_0x14574a[_0x56a4f7(0x1f4)](_0x2e6fef,_0x56a4f7(0x200)),_0x559943=JSON[_0x56a4f7(0x204)](_0x2fcb86);_0x559943[_0x56a4f7(0x21b)]=_0x206b67,_0x559943[_0x56a4f7(0x1f3)]=_0x56a4f7(0x1fd),await a156_0x14574a[_0x56a4f7(0x1fe)](_0x2e6fef,JSON[_0x56a4f7(0x202)](_0x559943,null,0x2)+'\x0a');}function detectPackageManager(){const _0x4899e2=a156_0x3a6f;try{return execSync(_0x4899e2(0x218),{'stdio':_0x4899e2(0x1e7)}),_0x4899e2(0x211);}catch{return'npm';}}async function formatCode(_0x37e684){const _0x4ffb58=a156_0x3a6f;try{await execAsync(_0x4ffb58(0x1f9),{'cwd':_0x37e684});}catch{}}function a156_0x2909(){const _0x5700f6=['modelCount','\x20\x20Pulling\x20API\x20configuration...','resolve','\x20created\x20successfully!','*\x20Creating\x20project\x20','\x20model(s)','dirname','...','log','bun','Use\x20a\x20different\x20project\x20name.','Project\x20name\x20cannot\x20be\x20empty.','98428bRGywR','access','Project\x20directory\x20\x22','Project\x20name\x20contains\x20invalid\x20characters.','bun\x20--version','package.json','string','name','\x0a√\x20Project\x20','validation','\x20\x20√\x20Code\x20formatted','W_OK','5097555EeoPiK','6998630uYJTpx','2946YDMQUC','production','1487295TVXaqO','length','2592842SeefcU','ignore','\x20dataset(s),\x20generated\x20','8RRObMR','\x20\x20√\x20package.json\x20updated','belowMinimum','needsUpgrade','4405LhCzWW','trim','Cannot\x20create\x20project\x20in\x20current\x20directory.','\x20\x20√\x20Pulled\x20','12364PVYwWJ','toLocaleString','description','readFile','\x20api\x20pull`\x20manually\x20later.','env','join','\x20\x20Installing\x20dependencies...','bun\x20run\x20format','chdir','33xdazmJ','\x0a\x20\x20cd\x20','A\x20project\x20created\x20with\x20Lovrabet\x20CLI','writeFile','\x20\x20√\x20Project\x20template\x20created','utf-8','2CnRUVG','stringify','Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','parse','test','cwd','constants'];a156_0x2909=function(){return _0x5700f6;};return a156_0x2909();}async function configureProject(_0x205282,_0x184491,_0x1be0d5){const _0x1c4164=a156_0x3a6f,_0x3f6376=a156_0x14620d[_0x1c4164(0x20a)](process[_0x1c4164(0x206)](),_0x205282),_0x4008dd=a156_0x14620d[_0x1c4164(0x1f7)](_0x3f6376,NEW_CONFIG_NAME),_0x1eb96c=readConfig(),_0x319dc2=typeof _0x1eb96c['env']===_0x1c4164(0x21a)?_0x1eb96c[_0x1c4164(0x1f6)]:undefined,_0x572a2e={};for(const _0x48b86c of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x1eb96c[_0x48b86c]!=null)_0x572a2e[_0x48b86c]=_0x1eb96c[_0x48b86c];}const _0x426b00=buildCanonicalProjectConfig(_0x572a2e,{'appCodes':_0x184491?[_0x184491]:[],'env':_0x1be0d5||_0x319dc2||_0x1c4164(0x1e3),'metadata':{'createdAt':new Date()[_0x1c4164(0x1f2)](),'version':getCliVersion()}});writeConfigFile(_0x4008dd,_0x426b00);}async function pullApiConfig(_0x2d4f1b,_0x4ce086,_0x379a87,_0x437e5d){const _0x57d0b0=a156_0x3a6f,_0x37744e=process[_0x57d0b0(0x206)]();try{process[_0x57d0b0(0x1fa)](_0x2d4f1b);const _0x938838=_0x379a87||_0x57d0b0(0x1e3);initEnv(_0x938838),console[_0x57d0b0(0x210)](_0x57d0b0(0x209));const {configArray:_0x2e047d}=await fetchModelList(_0x4ce086,_0x437e5d||''),_0x103ad5=await generateApiFile(_0x2e047d,'',_0x4ce086,!![],_0x938838,DEFAULT_API_DIR);console[_0x57d0b0(0x210)](_0x57d0b0(0x1f0)+_0x2e047d[_0x57d0b0(0x1e5)]+_0x57d0b0(0x1e8)+_0x103ad5[_0x57d0b0(0x208)]+_0x57d0b0(0x20d));}catch(_0xb6e1e1){console['log']('\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`'+CLI_BIN_NAME+_0x57d0b0(0x1f5));}finally{process[_0x57d0b0(0x1fa)](_0x37744e);}}
1
+ (function(_0x1abac6,_0x547970){const _0xd93187=a155_0x2db8,_0x2ae7de=_0x1abac6();while(!![]){try{const _0x133fca=-parseInt(_0xd93187(0x129))/0x1*(parseInt(_0xd93187(0x126))/0x2)+-parseInt(_0xd93187(0x12d))/0x3*(parseInt(_0xd93187(0x138))/0x4)+parseInt(_0xd93187(0x141))/0x5*(parseInt(_0xd93187(0x120))/0x6)+-parseInt(_0xd93187(0x14c))/0x7+parseInt(_0xd93187(0x11e))/0x8*(parseInt(_0xd93187(0x133))/0x9)+-parseInt(_0xd93187(0x139))/0xa+parseInt(_0xd93187(0x122))/0xb;if(_0x133fca===_0x547970)break;else _0x2ae7de['push'](_0x2ae7de['shift']());}catch(_0x5001b4){_0x2ae7de['push'](_0x2ae7de['shift']());}}}(a155_0x2513,0xcf1a4));import a155_0x9a620b from'path';import a155_0x52e829 from'fs/promises';function a155_0x2db8(_0x5a05ac,_0x18e863){_0x5a05ac=_0x5a05ac-0x11a;const _0x2513d9=a155_0x2513();let _0x2db8d3=_0x2513d9[_0x5a05ac];return _0x2db8d3;}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';import{readConfig}from'../../../utils/config.js';import{getCliVersion}from'../../../utils/version.js';import{CliErrors}from'../../../errors.js';import{fetchModelList}from'../../../core/api-client.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(_0xd9bff2,_0x36d950,_0x1deba5,_0x485135){const _0x408832=a155_0x2db8,_0x5bbaa9=await checkCliVersion();(_0x5bbaa9[_0x408832(0x146)]||_0x5bbaa9['belowMinimum'])&&(printCliUpgradeWarning(_0x5bbaa9),assertCliVersionSupported(_0x5bbaa9));if(!_0xd9bff2||_0xd9bff2[_0x408832(0x14e)]()==='')throw CliErrors[_0x408832(0x12c)]('Project\x20name\x20cannot\x20be\x20empty.');const _0x564c13=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x564c13['test'](_0xd9bff2))throw CliErrors[_0x408832(0x12c)]('Project\x20name\x20contains\x20invalid\x20characters.','Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters');if(_0xd9bff2[_0x408832(0x145)]>0x64)throw CliErrors[_0x408832(0x12c)]('Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.');const _0x339f42=a155_0x9a620b[_0x408832(0x14d)](process[_0x408832(0x12f)](),_0xd9bff2);if(existsSync(_0x339f42))throw CliErrors['validation'](_0x408832(0x136)+_0xd9bff2+_0x408832(0x131),'Use\x20a\x20different\x20project\x20name.');try{const _0x2cb35e=a155_0x9a620b['dirname'](_0x339f42);await a155_0x52e829[_0x408832(0x144)](_0x2cb35e,a155_0x52e829[_0x408832(0x13b)][_0x408832(0x127)]);}catch{throw CliErrors[_0x408832(0x12c)](_0x408832(0x12b),_0x408832(0x137));}try{console[_0x408832(0x12e)](_0x408832(0x11d)+_0xd9bff2+'...');const _0x9b2e08=getSubAppReactDemoTemplateDir();await copyDirectory(_0x9b2e08,_0x339f42),console['log'](_0x408832(0x130)),await updatePackageJsonName(_0xd9bff2),console[_0x408832(0x12e)](_0x408832(0x150)),console[_0x408832(0x12e)](_0x408832(0x121)),console['log'](_0x408832(0x13f)),await formatCode(_0x339f42),console['log'](_0x408832(0x11a)),await configureProject(_0xd9bff2,_0x1deba5,_0x36d950),console[_0x408832(0x12e)](_0x408832(0x149)),_0x1deba5&&await pullApiConfig(_0x339f42,_0x1deba5,_0x36d950,_0x485135),console[_0x408832(0x12e)](_0x408832(0x125)+_0xd9bff2+_0x408832(0x132)),console[_0x408832(0x12e)](_0x408832(0x124)+_0xd9bff2),console[_0x408832(0x12e)]('\x20\x20rabetbase\x20run\x20start\x0a');}catch(_0x5e1d89){try{existsSync(_0x339f42)&&await a155_0x52e829['rm'](_0x339f42,{'recursive':!![],'force':!![]});}catch{}throw _0x5e1d89;}}async function updatePackageJsonName(_0x3c6e9e){const _0x3f30a1=a155_0x2db8,_0x202f3e=a155_0x9a620b['resolve'](process[_0x3f30a1(0x12f)](),_0x3c6e9e),_0x5819ec=a155_0x9a620b['join'](_0x202f3e,'package.json'),_0x4f1c12=await a155_0x52e829[_0x3f30a1(0x11b)](_0x5819ec,_0x3f30a1(0x148)),_0x2ef25e=JSON['parse'](_0x4f1c12);_0x2ef25e['name']=_0x3c6e9e,_0x2ef25e['description']='A\x20project\x20created\x20with\x20Lovrabet\x20CLI',await a155_0x52e829[_0x3f30a1(0x12a)](_0x5819ec,JSON[_0x3f30a1(0x11f)](_0x2ef25e,null,0x2)+'\x0a');}function detectPackageManager(){const _0x1e8c3c=a155_0x2db8;try{return execSync(_0x1e8c3c(0x142),{'stdio':'ignore'}),_0x1e8c3c(0x14b);}catch{return _0x1e8c3c(0x13a);}}async function formatCode(_0x6fad34){try{await execAsync('bun\x20run\x20format',{'cwd':_0x6fad34});}catch{}}function a155_0x2513(){const _0x5bb8f8=['\x20\x20√\x20Pulled\x20','\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)','\x20model(s)','8113260tkPSOD','bun\x20--version','\x20api\x20pull`\x20manually\x20later.','access','length','needsUpgrade','env','utf-8','\x20\x20√\x20Configuration\x20file\x20created','chdir','bun','8590918AEfPuS','resolve','trim','modelCount','\x20\x20√\x20package.json\x20updated','\x20\x20√\x20Code\x20formatted','readFile','production','*\x20Creating\x20project\x20','9235640GRnTwm','stringify','6kQvZCw','\x20\x20Installing\x20dependencies...','20120683MwgHMg','\x20\x20Pulling\x20API\x20configuration...','\x0a\x20\x20cd\x20','\x0a√\x20Project\x20','319120SMGbhk','W_OK','join','1YOEFde','writeFile','Cannot\x20create\x20project\x20in\x20current\x20directory.','validation','3226614iDGLAE','log','cwd','\x20\x20√\x20Project\x20template\x20created','\x22\x20already\x20exists.','\x20created\x20successfully!','9JAMKCf','toLocaleString','string','Project\x20directory\x20\x22','Check\x20directory\x20permissions.','4LJbXNy','12955960Yfcpxc','npm','constants','\x20dataset(s),\x20generated\x20','\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`'];a155_0x2513=function(){return _0x5bb8f8;};return a155_0x2513();}async function configureProject(_0x375956,_0x12274a,_0xea7650){const _0x524d5b=a155_0x2db8,_0x2277d0=a155_0x9a620b[_0x524d5b(0x14d)](process[_0x524d5b(0x12f)](),_0x375956),_0xa34faa=a155_0x9a620b[_0x524d5b(0x128)](_0x2277d0,NEW_CONFIG_NAME),_0x4b6a2c=readConfig(),_0x27b351=typeof _0x4b6a2c[_0x524d5b(0x147)]===_0x524d5b(0x135)?_0x4b6a2c[_0x524d5b(0x147)]:undefined,_0x5849eb={};for(const _0xadcefb of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x4b6a2c[_0xadcefb]!=null)_0x5849eb[_0xadcefb]=_0x4b6a2c[_0xadcefb];}const _0x43ef38=buildCanonicalProjectConfig(_0x5849eb,{'appCodes':_0x12274a?[_0x12274a]:[],'env':_0xea7650||_0x27b351||_0x524d5b(0x11c),'metadata':{'createdAt':new Date()[_0x524d5b(0x134)](),'version':getCliVersion()}});writeConfigFile(_0xa34faa,_0x43ef38);}async function pullApiConfig(_0x496e98,_0x109b15,_0xca4709,_0xf25f4f){const _0x4a9b09=a155_0x2db8,_0x12f24f=process[_0x4a9b09(0x12f)]();try{process[_0x4a9b09(0x14a)](_0x496e98);const _0x2efa3a=_0xca4709||_0x4a9b09(0x11c);initEnv(_0x2efa3a),console[_0x4a9b09(0x12e)](_0x4a9b09(0x123));const {configArray:_0x52022f}=await fetchModelList(_0x109b15,_0xf25f4f||''),_0x59fd93=await generateApiFile(_0x52022f,'',_0x109b15,!![],_0x2efa3a,DEFAULT_API_DIR);console['log'](_0x4a9b09(0x13e)+_0x52022f[_0x4a9b09(0x145)]+_0x4a9b09(0x13c)+_0x59fd93[_0x4a9b09(0x14f)]+_0x4a9b09(0x140));}catch(_0x3f6735){console[_0x4a9b09(0x12e)](_0x4a9b09(0x13d)+CLI_BIN_NAME+_0x4a9b09(0x143));}finally{process['chdir'](_0x12f24f);}}
@@ -1 +1 @@
1
- (function(_0x5cd6cd,_0x16b2d2){const _0x2dc26b=a157_0x5835,_0x2c3455=_0x5cd6cd();while(!![]){try{const _0x385a28=-parseInt(_0x2dc26b(0xbf))/0x1+-parseInt(_0x2dc26b(0xc4))/0x2*(parseInt(_0x2dc26b(0xbe))/0x3)+-parseInt(_0x2dc26b(0xc6))/0x4+-parseInt(_0x2dc26b(0xc7))/0x5*(parseInt(_0x2dc26b(0xc1))/0x6)+parseInt(_0x2dc26b(0xbd))/0x7*(parseInt(_0x2dc26b(0xc2))/0x8)+parseInt(_0x2dc26b(0xc8))/0x9*(parseInt(_0x2dc26b(0xc0))/0xa)+parseInt(_0x2dc26b(0xc3))/0xb;if(_0x385a28===_0x16b2d2)break;else _0x2c3455['push'](_0x2c3455['shift']());}catch(_0x57c19b){_0x2c3455['push'](_0x2c3455['shift']());}}}(a157_0x5905,0x35ce2));import a157_0x39caf8 from'node:path';import{fileURLToPath}from'node:url';function a157_0x5835(_0x183a6d,_0x17f403){_0x183a6d=_0x183a6d-0xbc;const _0x5905a1=a157_0x5905();let _0x58358a=_0x5905a1[_0x183a6d];return _0x58358a;}function a157_0x5905(){const _0x3570f1=['246722QasrVJ','255120jmtUdQ','203219jzbwlg','150kcvUbc','19734TgAYQQ','16dUlovW','4676265rPgyUC','2KlfItI','sub-app-react-demo','117704TqwBqr','545FTcXbz','240579CejgSz','projects'];a157_0x5905=function(){return _0x3570f1;};return a157_0x5905();}const __dirname=a157_0x39caf8['dirname'](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){return a157_0x39caf8['resolve'](__dirname,'../../../../');}export function getSubAppReactDemoTemplateDir(){const _0x588539=a157_0x5835;return a157_0x39caf8['join'](getRabetbaseCliPackageRoot(),'templates',_0x588539(0xbc),_0x588539(0xc5));}
1
+ function a156_0x4caf(){const _0x426d97=['30zPsuHh','99pLBrSZ','4685bQRLaH','1508TQyrUF','26gLoEOe','1548351kDWezM','join','43314imSXam','301EKuyzj','427068cxUVNk','projects','resolve','../../../../','6728192giSMSd','904297mYrkNN','templates','69933ZtviNg','dirname'];a156_0x4caf=function(){return _0x426d97;};return a156_0x4caf();}function a156_0x1350(_0xe991b4,_0x5e41b9){_0xe991b4=_0xe991b4-0x196;const _0x4caf19=a156_0x4caf();let _0x1350d1=_0x4caf19[_0xe991b4];return _0x1350d1;}const a156_0x2ce924=a156_0x1350;(function(_0x2c0460,_0xc55757){const _0x1ec19f=a156_0x1350,_0x2993ca=_0x2c0460();while(!![]){try{const _0x44b3bf=parseInt(_0x1ec19f(0x19d))/0x1+-parseInt(_0x1ec19f(0x1a5))/0x2*(-parseInt(_0x1ec19f(0x19f))/0x3)+-parseInt(_0x1ec19f(0x1a4))/0x4*(parseInt(_0x1ec19f(0x1a3))/0x5)+-parseInt(_0x1ec19f(0x196))/0x6*(parseInt(_0x1ec19f(0x197))/0x7)+parseInt(_0x1ec19f(0x19c))/0x8+parseInt(_0x1ec19f(0x1a6))/0x9*(-parseInt(_0x1ec19f(0x1a1))/0xa)+parseInt(_0x1ec19f(0x1a2))/0xb*(-parseInt(_0x1ec19f(0x198))/0xc);if(_0x44b3bf===_0xc55757)break;else _0x2993ca['push'](_0x2993ca['shift']());}catch(_0x743930){_0x2993ca['push'](_0x2993ca['shift']());}}}(a156_0x4caf,0x85db8));import a156_0x389629 from'node:path';import{fileURLToPath}from'node:url';const __dirname=a156_0x389629[a156_0x2ce924(0x1a0)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0xdcae47=a156_0x2ce924;return a156_0x389629[_0xdcae47(0x19a)](__dirname,_0xdcae47(0x19b));}export function getSubAppReactDemoTemplateDir(){const _0x3c224e=a156_0x2ce924;return a156_0x389629[_0x3c224e(0x1a7)](getRabetbaseCliPackageRoot(),_0x3c224e(0x19e),_0x3c224e(0x199),'sub-app-react-demo');}
@@ -1 +1 @@
1
- (function(_0x36c647,_0x5250c4){const _0x26d4ad=a158_0xf499,_0x2007aa=_0x36c647();while(!![]){try{const _0x324837=-parseInt(_0x26d4ad(0x69))/0x1*(parseInt(_0x26d4ad(0x64))/0x2)+parseInt(_0x26d4ad(0x6d))/0x3+-parseInt(_0x26d4ad(0x71))/0x4+-parseInt(_0x26d4ad(0x6a))/0x5+parseInt(_0x26d4ad(0x6f))/0x6+-parseInt(_0x26d4ad(0x70))/0x7*(parseInt(_0x26d4ad(0x6b))/0x8)+parseInt(_0x26d4ad(0x66))/0x9;if(_0x324837===_0x5250c4)break;else _0x2007aa['push'](_0x2007aa['shift']());}catch(_0x44979b){_0x2007aa['push'](_0x2007aa['shift']());}}}(a158_0x4882,0x1dd8e));import a158_0x571364 from'node:path';import{copyDirectory}from'../../../utils/copy-directory.js';function a158_0xf499(_0x758241,_0x2c3c0f){_0x758241=_0x758241-0x64;const _0x48825f=a158_0x4882();let _0xf4990=_0x48825f[_0x758241];return _0xf4990;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';function a158_0x4882(){const _0x33ea6e=['resolve','138058WWqoZI','项目模板复制失败','4375458SGboZm','error','项目模板复制完成','1Srblpx','1198265fktnDs','104jwUzGS','copy','156909aZgcwO','info','678360xssgxb','59269RtDwbb','442072xIuStL','now','success'];a158_0x4882=function(){return _0x33ea6e;};return a158_0x4882();}const templateDir=getSubAppReactDemoTemplateDir();export async function copyProjectTemplate(_0x871f45){const _0x41f639=a158_0xf499,_0x43372d=Date['now'](),_0xf507db=a158_0x571364[_0x41f639(0x74)](process['cwd'](),_0x871f45);try{logger[_0x41f639(0x6e)]('copy','开始复制项目模板',{'projectCode':_0x871f45,'templateDir':templateDir}),await copyDirectory(templateDir,_0xf507db);const _0x153c48=Date[_0x41f639(0x72)]()-_0x43372d;logger[_0x41f639(0x73)](_0x41f639(0x6c),_0x41f639(0x68),_0x153c48,{'projectCode':_0x871f45});}catch(_0x2deed6){const _0x46cf40=Date[_0x41f639(0x72)]()-_0x43372d;logger[_0x41f639(0x67)](_0x41f639(0x6c),_0x41f639(0x65),{'projectCode':_0x871f45,'error':_0x2deed6 instanceof Error?_0x2deed6['message']:String(_0x2deed6),'duration':_0x46cf40});throw _0x2deed6;}return formatElapsed(_0x43372d);}
1
+ (function(_0x25ab31,_0x5d1c5e){const _0x3b2c01=a157_0x6a10,_0x416765=_0x25ab31();while(!![]){try{const _0x43bd4d=parseInt(_0x3b2c01(0x137))/0x1*(-parseInt(_0x3b2c01(0x130))/0x2)+-parseInt(_0x3b2c01(0x13b))/0x3*(-parseInt(_0x3b2c01(0x138))/0x4)+-parseInt(_0x3b2c01(0x13d))/0x5*(-parseInt(_0x3b2c01(0x13a))/0x6)+parseInt(_0x3b2c01(0x13c))/0x7+parseInt(_0x3b2c01(0x135))/0x8*(-parseInt(_0x3b2c01(0x12c))/0x9)+-parseInt(_0x3b2c01(0x12b))/0xa*(parseInt(_0x3b2c01(0x133))/0xb)+parseInt(_0x3b2c01(0x139))/0xc;if(_0x43bd4d===_0x5d1c5e)break;else _0x416765['push'](_0x416765['shift']());}catch(_0x99f554){_0x416765['push'](_0x416765['shift']());}}}(a157_0x1fb1,0xab96a));import a157_0xc3aa4c from'node:path';import{copyDirectory}from'../../../utils/copy-directory.js';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';function a157_0x1fb1(){const _0x427989=['copy','info','28rKadBa','now','success','3201WhBtHN','开始复制项目模板','16312fDqNcp','resolve','84701uLQslD','28BlRIDx','25474944MvVRVE','888zAYfap','362841VFjEeQ','4525619CmFqaE','24620rcGWLT','cwd','39070CaTpWd','5823RSwUAv','项目模板复制完成'];a157_0x1fb1=function(){return _0x427989;};return a157_0x1fb1();}import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';function a157_0x6a10(_0x438af3,_0x704609){_0x438af3=_0x438af3-0x12b;const _0x1fb1b1=a157_0x1fb1();let _0x6a1077=_0x1fb1b1[_0x438af3];return _0x6a1077;}const templateDir=getSubAppReactDemoTemplateDir();export async function copyProjectTemplate(_0x4d1453){const _0x1a58c1=a157_0x6a10,_0x12ebe3=Date[_0x1a58c1(0x131)](),_0x259111=a157_0xc3aa4c[_0x1a58c1(0x136)](process[_0x1a58c1(0x13e)](),_0x4d1453);try{logger[_0x1a58c1(0x12f)](_0x1a58c1(0x12e),_0x1a58c1(0x134),{'projectCode':_0x4d1453,'templateDir':templateDir}),await copyDirectory(templateDir,_0x259111);const _0x139518=Date[_0x1a58c1(0x131)]()-_0x12ebe3;logger[_0x1a58c1(0x132)]('copy',_0x1a58c1(0x12d),_0x139518,{'projectCode':_0x4d1453});}catch(_0x405394){const _0x219bbb=Date[_0x1a58c1(0x131)]()-_0x12ebe3;logger['error'](_0x1a58c1(0x12e),'项目模板复制失败',{'projectCode':_0x4d1453,'error':_0x405394 instanceof Error?_0x405394['message']:String(_0x405394),'duration':_0x219bbb});throw _0x405394;}return formatElapsed(_0x12ebe3);}
@@ -1 +1 @@
1
- (function(_0x2a926b,_0x6a254b){const _0x3c3e84=a159_0x3c2a,_0x2e46df=_0x2a926b();while(!![]){try{const _0x2eab29=-parseInt(_0x3c3e84(0x1f3))/0x1*(parseInt(_0x3c3e84(0x1f2))/0x2)+parseInt(_0x3c3e84(0x1eb))/0x3+parseInt(_0x3c3e84(0x1ee))/0x4*(parseInt(_0x3c3e84(0x1ed))/0x5)+parseInt(_0x3c3e84(0x1e7))/0x6+-parseInt(_0x3c3e84(0x1ea))/0x7+parseInt(_0x3c3e84(0x1f6))/0x8*(-parseInt(_0x3c3e84(0x1f4))/0x9)+parseInt(_0x3c3e84(0x1ef))/0xa;if(_0x2eab29===_0x6a254b)break;else _0x2e46df['push'](_0x2e46df['shift']());}catch(_0x1fbcb0){_0x2e46df['push'](_0x2e46df['shift']());}}}(a159_0x18e1,0x6f39f));function a159_0x18e1(){const _0x6ad7cb=['error','2620744FOFUUH','519498ZSXoSL','format','1029065IRhTci','8IhuFim','9159630HuBkPF','prettier','cwd','3566zQRzIn','340JgwrDF','6436026fgzHqo','message','8SCqKBu','3903324OQLGyo','now'];a159_0x18e1=function(){return _0x6ad7cb;};return a159_0x18e1();}function a159_0x3c2a(_0x4e2153,_0x3ecbe9){_0x4e2153=_0x4e2153-0x1e7;const _0x18e1e0=a159_0x18e1();let _0x3c2aa3=_0x18e1e0[_0x4e2153];return _0x3c2aa3;}import a159_0xa61d8e 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';export async function formatProjectCode(_0x86478d){const _0x112d23=a159_0x3c2a,_0x5a5cba=Date[_0x112d23(0x1e8)](),_0x1953b5=a159_0xa61d8e['resolve'](process[_0x112d23(0x1f1)](),_0x86478d);try{logger['info'](_0x112d23(0x1ec),'开始格式化代码',{'projectCode':_0x86478d}),await execa(resolveNpmBin('npx'),[_0x112d23(0x1f0),'--write','.'],{'cwd':_0x1953b5});const _0x3f1061=Date[_0x112d23(0x1e8)]()-_0x5a5cba;logger['success']('format','代码格式化完成',_0x3f1061,{'projectCode':_0x86478d});}catch(_0x5c2174){const _0x3aa3ee=Date[_0x112d23(0x1e8)]()-_0x5a5cba;logger[_0x112d23(0x1e9)](_0x112d23(0x1ec),'代码格式化失败',{'projectCode':_0x86478d,'error':_0x5c2174 instanceof Error?_0x5c2174[_0x112d23(0x1f5)]:String(_0x5c2174),'duration':_0x3aa3ee});throw _0x5c2174;}return formatElapsed(_0x5a5cba);}
1
+ (function(_0x195e6f,_0x5a28dc){const _0xe56cc1=a158_0x35e4,_0x4dd502=_0x195e6f();while(!![]){try{const _0x257fa5=-parseInt(_0xe56cc1(0x148))/0x1+parseInt(_0xe56cc1(0x143))/0x2+parseInt(_0xe56cc1(0x13e))/0x3+-parseInt(_0xe56cc1(0x13c))/0x4*(-parseInt(_0xe56cc1(0x13f))/0x5)+-parseInt(_0xe56cc1(0x14a))/0x6*(-parseInt(_0xe56cc1(0x13d))/0x7)+parseInt(_0xe56cc1(0x142))/0x8*(parseInt(_0xe56cc1(0x141))/0x9)+-parseInt(_0xe56cc1(0x146))/0xa*(parseInt(_0xe56cc1(0x147))/0xb);if(_0x257fa5===_0x5a28dc)break;else _0x4dd502['push'](_0x4dd502['shift']());}catch(_0x503a7f){_0x4dd502['push'](_0x4dd502['shift']());}}}(a158_0x2a75,0xf3345));function a158_0x35e4(_0x13f348,_0x3b2a5e){_0x13f348=_0x13f348-0x138;const _0x2a7596=a158_0x2a75();let _0x35e486=_0x2a7596[_0x13f348];return _0x35e486;}import a158_0x7402b4 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';function a158_0x2a75(){const _0xbb736d=['567590iMuuws','693GMYePT','1247896xVhGkf','代码格式化完成','7917654NFTlci','info','--write','now','开始格式化代码','format','295148HggEdJ','7SjLkvI','4586190ycXggt','10NsjHFO','代码格式化失败','96822OaeokM','704QPTFcm','3754522ohxeEy','error','cwd'];a158_0x2a75=function(){return _0xbb736d;};return a158_0x2a75();}import{resolveNpmBin}from'../../../utils/platform.js';export async function formatProjectCode(_0x8ed22a){const _0xbf5e25=a158_0x35e4,_0x3585a7=Date[_0xbf5e25(0x139)](),_0x4e277c=a158_0x7402b4['resolve'](process[_0xbf5e25(0x145)](),_0x8ed22a);try{logger[_0xbf5e25(0x14b)](_0xbf5e25(0x13b),_0xbf5e25(0x13a),{'projectCode':_0x8ed22a}),await execa(resolveNpmBin('npx'),['prettier',_0xbf5e25(0x138),'.'],{'cwd':_0x4e277c});const _0x575e11=Date[_0xbf5e25(0x139)]()-_0x3585a7;logger['success'](_0xbf5e25(0x13b),_0xbf5e25(0x149),_0x575e11,{'projectCode':_0x8ed22a});}catch(_0x3a75eb){const _0x507408=Date[_0xbf5e25(0x139)]()-_0x3585a7;logger[_0xbf5e25(0x144)](_0xbf5e25(0x13b),_0xbf5e25(0x140),{'projectCode':_0x8ed22a,'error':_0x3a75eb instanceof Error?_0x3a75eb['message']:String(_0x3a75eb),'duration':_0x507408});throw _0x3a75eb;}return formatElapsed(_0x3585a7);}
@@ -1 +1 @@
1
- (function(_0x2abb69,_0x1b71d5){const _0x209a0c=a160_0x3708,_0x5bade7=_0x2abb69();while(!![]){try{const _0x5c9f01=parseInt(_0x209a0c(0xa8))/0x1*(parseInt(_0x209a0c(0xac))/0x2)+parseInt(_0x209a0c(0xa2))/0x3*(parseInt(_0x209a0c(0x9d))/0x4)+parseInt(_0x209a0c(0x98))/0x5+parseInt(_0x209a0c(0xa6))/0x6+-parseInt(_0x209a0c(0x9f))/0x7*(parseInt(_0x209a0c(0x9c))/0x8)+parseInt(_0x209a0c(0xa1))/0x9*(parseInt(_0x209a0c(0x9b))/0xa)+parseInt(_0x209a0c(0x97))/0xb*(-parseInt(_0x209a0c(0xa7))/0xc);if(_0x5c9f01===_0x1b71d5)break;else _0x5bade7['push'](_0x5bade7['shift']());}catch(_0x3d1a56){_0x5bade7['push'](_0x5bade7['shift']());}}}(a160_0x1238,0xb408d));import a160_0x130a3e from'node:path';function a160_0x1238(){const _0x3d85fa=['2255hFNDEt','2786730yBbjGJ','https://registry.npmmirror.com','开始安装依赖','230rJuaXo','9478984csdYjc','4mWyMSh','依赖安装失败','7yYlAMK','cwd','302661sPTdeZ','1516113UbOAwK','install','resolve','success','7284462cOlmop','140304IMwGDk','1Wwtkpi','now','error','message','2537786TXbDYU','依赖安装完成'];a160_0x1238=function(){return _0x3d85fa;};return a160_0x1238();}import{execa}from'execa';function a160_0x3708(_0x3d03da,_0x828278){_0x3d03da=_0x3d03da-0x97;const _0x123867=a160_0x1238();let _0x37084a=_0x123867[_0x3d03da];return _0x37084a;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x3ff478){const _0x2d02cf=a160_0x3708,_0x1a8bf7=Date[_0x2d02cf(0xa9)](),_0x3e9d18=a160_0x130a3e[_0x2d02cf(0xa4)](process[_0x2d02cf(0xa0)](),_0x3ff478);try{logger['info']('install',_0x2d02cf(0x9a),{'projectCode':_0x3ff478,'registry':'https://registry.npmmirror.com'}),await execa(resolveNpmBin('npm'),[_0x2d02cf(0xa3),'--registry',_0x2d02cf(0x99)],{'cwd':_0x3e9d18});const _0x14b0ba=Date[_0x2d02cf(0xa9)]()-_0x1a8bf7;logger[_0x2d02cf(0xa5)](_0x2d02cf(0xa3),_0x2d02cf(0xad),_0x14b0ba,{'projectCode':_0x3ff478});}catch(_0x5174b9){const _0x24edb6=Date['now']()-_0x1a8bf7;logger[_0x2d02cf(0xaa)]('install',_0x2d02cf(0x9e),{'projectCode':_0x3ff478,'error':_0x5174b9 instanceof Error?_0x5174b9[_0x2d02cf(0xab)]:String(_0x5174b9),'duration':_0x24edb6});throw _0x5174b9;}return formatElapsed(_0x1a8bf7);}
1
+ (function(_0x3ae1cb,_0x69a0b8){const _0x39d5da=a159_0x49eb,_0x540e72=_0x3ae1cb();while(!![]){try{const _0x3a58cd=-parseInt(_0x39d5da(0x174))/0x1+-parseInt(_0x39d5da(0x169))/0x2*(-parseInt(_0x39d5da(0x16b))/0x3)+parseInt(_0x39d5da(0x167))/0x4+parseInt(_0x39d5da(0x16d))/0x5+parseInt(_0x39d5da(0x16e))/0x6+parseInt(_0x39d5da(0x168))/0x7+-parseInt(_0x39d5da(0x16c))/0x8;if(_0x3a58cd===_0x69a0b8)break;else _0x540e72['push'](_0x540e72['shift']());}catch(_0x191472){_0x540e72['push'](_0x540e72['shift']());}}}(a159_0x2355,0x3c97e));function a159_0x2355(){const _0x481f43=['install','61359xpjWEH','6833120kuCgCM','1016160zWTfTR','2491764NiAppe','cwd','message','now','success','--registry','158051dTRfOk','https://registry.npmmirror.com','444036uNFNWo','2570554NcMQqt','16BfsKaq'];a159_0x2355=function(){return _0x481f43;};return a159_0x2355();}function a159_0x49eb(_0xfb7f80,_0x3b5d02){_0xfb7f80=_0xfb7f80-0x166;const _0x235560=a159_0x2355();let _0x49ebbf=_0x235560[_0xfb7f80];return _0x49ebbf;}import a159_0x28f150 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';export async function installDependencies(_0x337952){const _0x1c7c05=a159_0x49eb,_0x529016=Date['now'](),_0x43a1f3=a159_0x28f150['resolve'](process[_0x1c7c05(0x16f)](),_0x337952);try{logger['info'](_0x1c7c05(0x16a),'开始安装依赖',{'projectCode':_0x337952,'registry':_0x1c7c05(0x166)}),await execa(resolveNpmBin('npm'),['install',_0x1c7c05(0x173),_0x1c7c05(0x166)],{'cwd':_0x43a1f3});const _0x16fc81=Date[_0x1c7c05(0x171)]()-_0x529016;logger[_0x1c7c05(0x172)](_0x1c7c05(0x16a),'依赖安装完成',_0x16fc81,{'projectCode':_0x337952});}catch(_0x458330){const _0x4d706c=Date[_0x1c7c05(0x171)]()-_0x529016;logger['error'](_0x1c7c05(0x16a),'依赖安装失败',{'projectCode':_0x337952,'error':_0x458330 instanceof Error?_0x458330[_0x1c7c05(0x170)]:String(_0x458330),'duration':_0x4d706c});throw _0x458330;}return formatElapsed(_0x529016);}
@@ -1 +1 @@
1
- const a161_0x4819c7=a161_0x5138;(function(_0x43a2de,_0xbb75f1){const _0x4569c4=a161_0x5138,_0x1f552f=_0x43a2de();while(!![]){try{const _0x2c5aec=-parseInt(_0x4569c4(0x10d))/0x1+parseInt(_0x4569c4(0xfb))/0x2+-parseInt(_0x4569c4(0x11f))/0x3+parseInt(_0x4569c4(0xff))/0x4+-parseInt(_0x4569c4(0x105))/0x5+-parseInt(_0x4569c4(0x106))/0x6*(-parseInt(_0x4569c4(0x11e))/0x7)+parseInt(_0x4569c4(0x103))/0x8*(parseInt(_0x4569c4(0xfa))/0x9);if(_0x2c5aec===_0xbb75f1)break;else _0x1f552f['push'](_0x1f552f['shift']());}catch(_0x192faa){_0x1f552f['push'](_0x1f552f['shift']());}}}(a161_0x46eb,0x68438));import{CliErrors}from'../../errors.js';function a161_0x5138(_0xef885e,_0x51cad6){_0xef885e=_0xef885e-0xf9;const _0x46ebbc=a161_0x46eb();let _0x513818=_0x46ebbc[_0xef885e];return _0x513818;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{initConfig}from'../../commands/project/init.js';function a161_0x46eb(){const _0x8b739b=['Create\x20a\x20new\x20project','154808OVEGGC','create','string','init','yes','../../commands/project/create/non-interactive.js','args','upgrade','Skip\x20confirmation\x20prompt','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','App\x20code\x20to\x20initialize','env','nonInteractive','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','661822VPycwT','305886lmAXlS','../../commands/project/create/main.js','Target\x20environment','name','3821859TvunVK','285536HZSpoz','validation','cookie','Auto-confirm\x20prompts','2379288UlRxcX','boolean','trim','write','8mJwQBL','\x20workspace\x20init','2864765CpmtlY','6pySalL','Usage:\x20','project','appcode','2026-07','str'];a161_0x46eb=function(){return _0x8b739b;};return a161_0x46eb();}import{upgradeApp}from'../../commands/project/upgrade.js';const initFlags=[{'name':a161_0x4819c7(0x109),'type':a161_0x4819c7(0x10f),'description':a161_0x4819c7(0x118)},{'name':a161_0x4819c7(0x119),'type':a161_0x4819c7(0x10f),'description':a161_0x4819c7(0x121)},{'name':a161_0x4819c7(0x111),'type':a161_0x4819c7(0x100),'description':a161_0x4819c7(0xfe),'default':![]}],createFlags=[{'name':a161_0x4819c7(0xf9),'type':'string','description':'Project\x20name'},{'name':'env','type':a161_0x4819c7(0x10f),'description':a161_0x4819c7(0x121)},{'name':a161_0x4819c7(0x109),'type':a161_0x4819c7(0x10f),'description':a161_0x4819c7(0x117)}],upgradeFlags=[{'name':a161_0x4819c7(0x111),'type':a161_0x4819c7(0x100),'description':a161_0x4819c7(0x115),'default':![]}];export const projectDefinitions=[{'service':a161_0x4819c7(0x108),'command':a161_0x4819c7(0x110),'description':a161_0x4819c7(0x116),'risk':a161_0x4819c7(0x102),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+a161_0x4819c7(0x104),'since':a161_0x4819c7(0x10a)},'flags':initFlags,async 'execute'(_0x574e63){const _0x55a9af=a161_0x4819c7;return await initConfig({'appcode':_0x574e63[_0x55a9af(0x10b)](_0x55a9af(0x109))||undefined,'env':_0x574e63[_0x55a9af(0x10b)](_0x55a9af(0x119))||undefined,'autoYes':_0x574e63['bool']('yes')}),{'ok':!![]};}},{'service':a161_0x4819c7(0x108),'command':a161_0x4819c7(0x10e),'description':a161_0x4819c7(0x10c),'risk':a161_0x4819c7(0x102),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'project-name','description':a161_0x4819c7(0x11c),'required':![]}],'flags':createFlags,async 'execute'(_0x5b2852){const _0x11514d=a161_0x4819c7,{createApp:_0x1c9a03}=await import(_0x11514d(0x120)),{createProjectNonInteractive:_0x648930}=await import(_0x11514d(0x112)),_0x5decb8=_0x5b2852[_0x11514d(0x10b)](_0x11514d(0xf9))[_0x11514d(0x101)]()||_0x5b2852[_0x11514d(0x113)][0x0]?.[_0x11514d(0x101)](),_0x30cc8f=_0x5b2852['str'](_0x11514d(0x119))||undefined,_0x6f9ae9=_0x5b2852[_0x11514d(0x10b)](_0x11514d(0x109))||undefined;if(_0x5b2852[_0x11514d(0x11a)]){if(!_0x5decb8)throw CliErrors[_0x11514d(0xfc)](_0x11514d(0x11d),_0x11514d(0x107)+CLI_BIN_NAME+'\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]');await _0x648930(_0x5decb8,_0x30cc8f,_0x6f9ae9,_0x5b2852[_0x11514d(0xfd)]);}else await _0x1c9a03({'projectCode':_0x5decb8,'appCode':_0x6f9ae9,'env':_0x30cc8f,'cookie':_0x5b2852[_0x11514d(0xfd)]});return{'ok':!![]};}},{'service':a161_0x4819c7(0x108),'command':a161_0x4819c7(0x114),'description':a161_0x4819c7(0x11b),'risk':a161_0x4819c7(0x102),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x132b89){return await upgradeApp(_0x132b89['nonInteractive'],{'yes':_0x132b89['bool']('yes')}),{'ok':!![]};}}];
1
+ const a160_0x5f3130=a160_0x4444;function a160_0x4444(_0x493fa1,_0x3c9087){_0x493fa1=_0x493fa1-0x7b;const _0x1d4115=a160_0x1d41();let _0x4444c9=_0x1d4115[_0x493fa1];return _0x4444c9;}(function(_0x416293,_0x416770){const _0xc17d6e=a160_0x4444,_0x3b6b81=_0x416293();while(!![]){try{const _0x3d5e4e=parseInt(_0xc17d6e(0x86))/0x1+parseInt(_0xc17d6e(0x94))/0x2*(-parseInt(_0xc17d6e(0x9b))/0x3)+-parseInt(_0xc17d6e(0x8d))/0x4*(parseInt(_0xc17d6e(0x97))/0x5)+parseInt(_0xc17d6e(0x85))/0x6*(-parseInt(_0xc17d6e(0x91))/0x7)+parseInt(_0xc17d6e(0x88))/0x8+parseInt(_0xc17d6e(0x87))/0x9*(-parseInt(_0xc17d6e(0x81))/0xa)+parseInt(_0xc17d6e(0x84))/0xb*(parseInt(_0xc17d6e(0x89))/0xc);if(_0x3d5e4e===_0x416770)break;else _0x3b6b81['push'](_0x3b6b81['shift']());}catch(_0x443c76){_0x3b6b81['push'](_0x3b6b81['shift']());}}}(a160_0x1d41,0x77183));import{CliErrors}from'../../errors.js';function a160_0x1d41(){const _0x3a4b20=['Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','string','2026-07','1805490XMItub','appcode','trim','11bDtzsp','654LgpjkB','642809kLJsMH','45PLDZgW','1445760SCazaS','37639176rRSbxS','Usage:\x20','write','validation','908792pnozpG','Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','str','nonInteractive','57393GrmvuD','yes','project-name','63924eKlttq','cookie','boolean','20AbZbVu','../../commands/project/create/main.js','create','upgrade','72iQGlFl','bool','args','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','env','Create\x20a\x20new\x20project','project','../../commands/project/create/non-interactive.js'];a160_0x1d41=function(){return _0x3a4b20;};return a160_0x1d41();}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':a160_0x5f3130(0x82),'type':a160_0x5f3130(0x7f),'description':'App\x20code\x20to\x20initialize'},{'name':'env','type':a160_0x5f3130(0x7f),'description':'Target\x20environment'},{'name':a160_0x5f3130(0x92),'type':a160_0x5f3130(0x96),'description':'Auto-confirm\x20prompts','default':![]}],createFlags=[{'name':'name','type':a160_0x5f3130(0x7f),'description':'Project\x20name'},{'name':a160_0x5f3130(0x9f),'type':a160_0x5f3130(0x7f),'description':'Target\x20environment'},{'name':a160_0x5f3130(0x82),'type':a160_0x5f3130(0x7f),'description':a160_0x5f3130(0x9e)}],upgradeFlags=[{'name':a160_0x5f3130(0x92),'type':a160_0x5f3130(0x96),'description':'Skip\x20confirmation\x20prompt','default':![]}];export const projectDefinitions=[{'service':'project','command':'init','description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a160_0x5f3130(0x8b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+'\x20workspace\x20init','since':a160_0x5f3130(0x80)},'flags':initFlags,async 'execute'(_0x27dde3){const _0x1af910=a160_0x5f3130;return await initConfig({'appcode':_0x27dde3[_0x1af910(0x8f)]('appcode')||undefined,'env':_0x27dde3[_0x1af910(0x8f)]('env')||undefined,'autoYes':_0x27dde3[_0x1af910(0x9c)](_0x1af910(0x92))}),{'ok':!![]};}},{'service':a160_0x5f3130(0x7b),'command':a160_0x5f3130(0x99),'description':a160_0x5f3130(0xa0),'risk':a160_0x5f3130(0x8b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a160_0x5f3130(0x93),'description':a160_0x5f3130(0x8e),'required':![]}],'flags':createFlags,async 'execute'(_0x4dec1a){const _0x197078=a160_0x5f3130,{createApp:_0x41a5e1}=await import(_0x197078(0x98)),{createProjectNonInteractive:_0x274c8b}=await import(_0x197078(0x7c)),_0x10b791=_0x4dec1a[_0x197078(0x8f)]('name')[_0x197078(0x83)]()||_0x4dec1a[_0x197078(0x9d)][0x0]?.[_0x197078(0x83)](),_0x3a363c=_0x4dec1a[_0x197078(0x8f)](_0x197078(0x9f))||undefined,_0x289b1b=_0x4dec1a['str'](_0x197078(0x82))||undefined;if(_0x4dec1a[_0x197078(0x90)]){if(!_0x10b791)throw CliErrors[_0x197078(0x8c)](_0x197078(0x7d),_0x197078(0x8a)+CLI_BIN_NAME+'\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]');await _0x274c8b(_0x10b791,_0x3a363c,_0x289b1b,_0x4dec1a['cookie']);}else await _0x41a5e1({'projectCode':_0x10b791,'appCode':_0x289b1b,'env':_0x3a363c,'cookie':_0x4dec1a[_0x197078(0x95)]});return{'ok':!![]};}},{'service':a160_0x5f3130(0x7b),'command':a160_0x5f3130(0x9a),'description':a160_0x5f3130(0x7e),'risk':a160_0x5f3130(0x8b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x3e4c29){const _0x2d1061=a160_0x5f3130;return await upgradeApp(_0x3e4c29['nonInteractive'],{'yes':_0x3e4c29[_0x2d1061(0x9c)](_0x2d1061(0x92))}),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x4ce70d,_0x3b76c8){const _0x599998=a162_0x3f04,_0x3fc6eb=_0x4ce70d();while(!![]){try{const _0x9279cf=-parseInt(_0x599998(0x15e))/0x1*(parseInt(_0x599998(0x165))/0x2)+parseInt(_0x599998(0x15f))/0x3*(parseInt(_0x599998(0x15a))/0x4)+-parseInt(_0x599998(0x134))/0x5*(parseInt(_0x599998(0x153))/0x6)+-parseInt(_0x599998(0x13a))/0x7+-parseInt(_0x599998(0x136))/0x8+parseInt(_0x599998(0x15d))/0x9*(parseInt(_0x599998(0x163))/0xa)+-parseInt(_0x599998(0x147))/0xb*(-parseInt(_0x599998(0x15c))/0xc);if(_0x9279cf===_0x3b76c8)break;else _0x3fc6eb['push'](_0x3fc6eb['shift']());}catch(_0x5e3d80){_0x3fc6eb['push'](_0x3fc6eb['shift']());}}}(a162_0x8529,0x450ca));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';import a162_0x356676 from'chalk';function a162_0x8529(){const _0x4564e3=['log','346722MZpcVb','\x20\x20Apps:\x20','\x20→\x20.rabetbase.json','\x20api\x20pull\x27','defaultApp','app','production','5MchWvr','\x20api\x20generate\x27\x20and\x20\x27','616752nrfeCs','cyan','从旧配置文件升级成功','green','486836EUrhGY','yellow','Please\x20enter\x20App\x20Code:','.rabetbase.json','?\x20(Old\x20file\x20→\x20*.bak)','Migration\x20cancelled.\x20Run\x20`','\x20\x20appcode:\x20','join','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','../..','setLogPath','Upgrade\x20it\x20to\x20','初始化项目配置文件成功','1344233gbTowy','apps','parse','✓\x20Upgraded\x20','bold','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','string','init','utf8','version','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','1.0.0','1476702HvCseb','env','.bak','info','\x20workspace\x20init`\x20to\x20start\x20fresh.','cwd','\x20\x20Default:\x20','788400ybyGiE','keys','60hoPHWk','19341zlaapZ','1CeOMgR','3oCxTQc','appcode','App\x20Code\x20cannot\x20be\x20empty','toLocaleString','190LAzORM'];a162_0x8529=function(){return _0x4564e3;};return a162_0x8529();}function a162_0x3f04(_0x30594a,_0x486705){_0x30594a=_0x30594a-0x132;const _0x8529df=a162_0x8529();let _0x3f0445=_0x8529df[_0x30594a];return _0x3f0445;}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';import{validateAppcode}from'../../commands/common/validate.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';export async function initConfig(_0x46be7e){const _0x5eedf6=a162_0x3f04,{appcode:_0x3a2061,env:_0x3f664e,autoYes:_0x1684f0}=_0x46be7e,_0xed3e73=process[_0x5eedf6(0x158)]();if(getProjectConfigPath())throw new Error(_0x5eedf6(0x142));let _0x171279;for(const _0x438e3c of LEGACY_CONFIG_NAMES){const _0x127adf=resolve(_0xed3e73,_0x438e3c);if(existsSync(_0x127adf)){_0x171279=_0x127adf;break;}}if(_0x171279){let _0x15036d={};try{_0x15036d=JSON['parse'](readFileSync(_0x171279,_0x5eedf6(0x14f)));}catch{}const _0x5a4972=basename(_0x171279),_0x1b313e=_0x15036d?.['appcode']||_0x15036d?.[_0x5eedf6(0x132)];let _0x1cc762=_0x1684f0;!_0x1684f0&&(console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x13b)](_0x5eedf6(0x151)+a162_0x356676[_0x5eedf6(0x14b)](_0x5a4972))),_0x1b313e&&console[_0x5eedf6(0x164)](a162_0x356676['cyan'](_0x5eedf6(0x140)+_0x1b313e)),_0x1cc762=await confirm({'message':_0x5eedf6(0x145)+a162_0x356676[_0x5eedf6(0x14b)](_0x5eedf6(0x13d))+_0x5eedf6(0x13e),'default':!![]}));if(!_0x1cc762){console[_0x5eedf6(0x164)](_0x5eedf6(0x13f)+CLI_BIN_NAME+_0x5eedf6(0x157));return;}const _0x355163=resolve(_0xed3e73,NEW_CONFIG_NAME),_0xcd2d0d=getCliVersionFromPkg(),_0x5b578f=readRawConfig(),_0x13b20b=_0x3a2061||(typeof _0x15036d?.[_0x5eedf6(0x160)]===_0x5eedf6(0x14d)?_0x15036d[_0x5eedf6(0x160)]:undefined)||(typeof _0x15036d?.[_0x5eedf6(0x132)]===_0x5eedf6(0x14d)?_0x15036d[_0x5eedf6(0x132)]:undefined)||await askAppcode(),_0x3710e9=typeof _0x15036d?.[_0x5eedf6(0x154)]===_0x5eedf6(0x14d)?_0x15036d['env']:typeof _0x5b578f['env']==='string'?_0x5b578f[_0x5eedf6(0x154)]:_0x5eedf6(0x133),_0x5354c5=buildCanonicalProjectConfig({..._0x5b578f,..._0x15036d},{'appCodes':[_0x13b20b],'env':_0x3710e9,'metadata':{'version':_0xcd2d0d,'migratedAt':new Date()[_0x5eedf6(0x162)](),'migratedFrom':_0x171279}});writeConfigFile(_0x355163,_0x5354c5);const _0x479536=_0x171279+_0x5eedf6(0x155);renameSync(_0x171279,_0x479536),logger[_0x5eedf6(0x144)](_0xed3e73),logger['info'](_0x5eedf6(0x14e),_0x5eedf6(0x138),{'from':_0x171279,'to':_0x355163,'appcode':_0x13b20b,'env':_0x5354c5[_0x5eedf6(0x154)]}),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x139)](_0x5eedf6(0x14a)+_0x5a4972+_0x5eedf6(0x167))),console['log'](a162_0x356676[_0x5eedf6(0x137)](_0x5eedf6(0x166)+Object[_0x5eedf6(0x15b)](_0x5354c5[_0x5eedf6(0x148)]||{})[_0x5eedf6(0x141)](',\x20'))),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x137)](_0x5eedf6(0x159)+_0x5354c5[_0x5eedf6(0x169)])),console[_0x5eedf6(0x164)](a162_0x356676['gray']('\x20\x20Old\x20file\x20backed\x20up\x20as\x20'+_0x5a4972+_0x5eedf6(0x155)));return;}const _0x3c473b=_0x3a2061||await askAppcode(),_0x385b89=resolve(_0xed3e73,NEW_CONFIG_NAME),_0x2f0b92=getCliVersionFromPkg(),_0x5d9ba7=readRawConfig(),_0x272367=typeof _0x5d9ba7[_0x5eedf6(0x154)]===_0x5eedf6(0x14d)?_0x5d9ba7[_0x5eedf6(0x154)]:undefined,_0x49e06c=buildCanonicalProjectConfig({},{'appCodes':[_0x3c473b],'env':_0x3f664e||_0x272367||_0x5eedf6(0x133),'metadata':{'version':_0x2f0b92,'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x385b89,_0x49e06c),logger['setLogPath'](_0xed3e73),logger[_0x5eedf6(0x156)](_0x5eedf6(0x14e),_0x5eedf6(0x146),{'appcode':_0x3c473b,'env':_0x49e06c[_0x5eedf6(0x154)],'version':_0x49e06c[_0x5eedf6(0x150)],'configPath':_0x385b89}),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x139)](_0x5eedf6(0x14c))),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x137)](_0x5eedf6(0x166)+Object[_0x5eedf6(0x15b)](_0x49e06c[_0x5eedf6(0x148)]||{})[_0x5eedf6(0x141)](',\x20'))),console[_0x5eedf6(0x164)](a162_0x356676['cyan']('\x20\x20Default:\x20'+_0x49e06c['defaultApp'])),console[_0x5eedf6(0x164)]('\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27'+CLI_BIN_NAME+_0x5eedf6(0x135)+CLI_BIN_NAME+_0x5eedf6(0x168));}function askAppcode(){const _0x1dcd76=a162_0x3f04;return input({'message':_0x1dcd76(0x13c),'validate':_0x56cd2e=>{const _0x368395=_0x1dcd76;if(!_0x56cd2e['trim']())return _0x368395(0x161);const {valid:_0x31775b,message:_0x3b3e9f}=validateAppcode(_0x56cd2e['trim']());return _0x31775b||_0x3b3e9f||'Invalid\x20App\x20Code';}});}function getCliVersionFromPkg(){const _0x426612=a162_0x3f04;try{const _0x276dfc=fileURLToPath(import.meta.url),_0x3bbf80=resolve(dirname(_0x276dfc),_0x426612(0x143)),_0x50b28b=JSON[_0x426612(0x149)](readFileSync(resolve(_0x3bbf80,'package.json'),_0x426612(0x14f)));return _0x50b28b['version']||_0x426612(0x152);}catch{return _0x426612(0x152);}}
1
+ (function(_0x30aea1,_0x5c7f9c){const _0x46b991=a161_0x4846,_0x5687cc=_0x30aea1();while(!![]){try{const _0x26c001=-parseInt(_0x46b991(0x123))/0x1+-parseInt(_0x46b991(0x106))/0x2+parseInt(_0x46b991(0x10c))/0x3*(-parseInt(_0x46b991(0x110))/0x4)+parseInt(_0x46b991(0xff))/0x5*(-parseInt(_0x46b991(0x128))/0x6)+parseInt(_0x46b991(0x125))/0x7*(-parseInt(_0x46b991(0xf9))/0x8)+-parseInt(_0x46b991(0x111))/0x9+parseInt(_0x46b991(0x100))/0xa;if(_0x26c001===_0x5c7f9c)break;else _0x5687cc['push'](_0x5687cc['shift']());}catch(_0x1f240c){_0x5687cc['push'](_0x5687cc['shift']());}}}(a161_0x477e,0x465d9));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';function a161_0x4846(_0x15db03,_0x3344b0){_0x15db03=_0x15db03-0xf7;const _0x477e63=a161_0x477e();let _0x4846b7=_0x477e63[_0x15db03];return _0x4846b7;}import a161_0x5db4fa 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';import{validateAppcode}from'../../commands/common/validate.js';function a161_0x477e(){const _0x420d86=['169187pdKSwG','Upgrade\x20it\x20to\x20','374283YcvVZZ','init','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','146868QgWmFj','\x20\x20Apps:\x20','.rabetbase.json','?\x20(Old\x20file\x20→\x20*.bak)','72ppvYPm','✓\x20Upgraded\x20','log','bold','appcode','\x20\x20Default:\x20','10oWhseR','18692530cEQsNu','defaultApp','parse','App\x20Code\x20cannot\x20be\x20empty','cwd','gray','987466vJwuex','package.json','trim','\x20api\x20pull\x27','join','\x20workspace\x20init`\x20to\x20start\x20fresh.','3ymomib','\x20→\x20.rabetbase.json','Please\x20enter\x20App\x20Code:','Invalid\x20App\x20Code','1536048rLlcsN','35343YDNZZH','apps','string','1.0.0','\x20api\x20generate\x27\x20and\x20\x27','toLocaleString','utf8','\x20\x20Old\x20file\x20backed\x20up\x20as\x20','green','app','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','setLogPath','env','.bak','初始化项目配置文件成功','cyan','version','info'];a161_0x477e=function(){return _0x420d86;};return a161_0x477e();}import{buildCanonicalProjectConfig}from'../../config/schema.js';export async function initConfig(_0x389c36){const _0x7ed70d=a161_0x4846,{appcode:_0x428224,env:_0x4c355b,autoYes:_0x3490d6}=_0x389c36,_0x3453e9=process[_0x7ed70d(0x104)]();if(getProjectConfigPath())throw new Error('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.');let _0x2aac2c;for(const _0x31ba6b of LEGACY_CONFIG_NAMES){const _0x2efa18=resolve(_0x3453e9,_0x31ba6b);if(existsSync(_0x2efa18)){_0x2aac2c=_0x2efa18;break;}}if(_0x2aac2c){let _0x2a141c={};try{_0x2a141c=JSON[_0x7ed70d(0x102)](readFileSync(_0x2aac2c,'utf8'));}catch{}const _0xbec3ab=basename(_0x2aac2c),_0x1ef899=_0x2a141c?.[_0x7ed70d(0xfd)]||_0x2a141c?.[_0x7ed70d(0x11a)];let _0x4c1844=_0x3490d6;!_0x3490d6&&(console[_0x7ed70d(0xfb)](a161_0x5db4fa['yellow'](_0x7ed70d(0x127)+a161_0x5db4fa[_0x7ed70d(0xfc)](_0xbec3ab))),_0x1ef899&&console[_0x7ed70d(0xfb)](a161_0x5db4fa['cyan']('\x20\x20appcode:\x20'+_0x1ef899)),_0x4c1844=await confirm({'message':_0x7ed70d(0x124)+a161_0x5db4fa[_0x7ed70d(0xfc)](_0x7ed70d(0xf7))+_0x7ed70d(0xf8),'default':!![]}));if(!_0x4c1844){console[_0x7ed70d(0xfb)]('Migration\x20cancelled.\x20Run\x20`'+CLI_BIN_NAME+_0x7ed70d(0x10b));return;}const _0x4a19d3=resolve(_0x3453e9,NEW_CONFIG_NAME),_0x3875c9=getCliVersionFromPkg(),_0x5c9406=readRawConfig(),_0x2eeed1=_0x428224||(typeof _0x2a141c?.['appcode']===_0x7ed70d(0x113)?_0x2a141c[_0x7ed70d(0xfd)]:undefined)||(typeof _0x2a141c?.[_0x7ed70d(0x11a)]===_0x7ed70d(0x113)?_0x2a141c['app']:undefined)||await askAppcode(),_0x36d592=typeof _0x2a141c?.[_0x7ed70d(0x11d)]==='string'?_0x2a141c['env']:typeof _0x5c9406[_0x7ed70d(0x11d)]===_0x7ed70d(0x113)?_0x5c9406[_0x7ed70d(0x11d)]:'production',_0x21051f=buildCanonicalProjectConfig({..._0x5c9406,..._0x2a141c},{'appCodes':[_0x2eeed1],'env':_0x36d592,'metadata':{'version':_0x3875c9,'migratedAt':new Date()[_0x7ed70d(0x116)](),'migratedFrom':_0x2aac2c}});writeConfigFile(_0x4a19d3,_0x21051f);const _0x4e6026=_0x2aac2c+'.bak';renameSync(_0x2aac2c,_0x4e6026),logger[_0x7ed70d(0x11c)](_0x3453e9),logger[_0x7ed70d(0x122)](_0x7ed70d(0x126),'从旧配置文件升级成功',{'from':_0x2aac2c,'to':_0x4a19d3,'appcode':_0x2eeed1,'env':_0x21051f[_0x7ed70d(0x11d)]}),console['log'](a161_0x5db4fa['green'](_0x7ed70d(0xfa)+_0xbec3ab+_0x7ed70d(0x10d))),console[_0x7ed70d(0xfb)](a161_0x5db4fa[_0x7ed70d(0x120)](_0x7ed70d(0x129)+Object['keys'](_0x21051f[_0x7ed70d(0x112)]||{})[_0x7ed70d(0x10a)](',\x20'))),console[_0x7ed70d(0xfb)](a161_0x5db4fa[_0x7ed70d(0x120)]('\x20\x20Default:\x20'+_0x21051f[_0x7ed70d(0x101)])),console[_0x7ed70d(0xfb)](a161_0x5db4fa[_0x7ed70d(0x105)](_0x7ed70d(0x118)+_0xbec3ab+_0x7ed70d(0x11e)));return;}const _0x107ac6=_0x428224||await askAppcode(),_0xafb9b8=resolve(_0x3453e9,NEW_CONFIG_NAME),_0x477345=getCliVersionFromPkg(),_0x5a9458=readRawConfig(),_0x2357df=typeof _0x5a9458[_0x7ed70d(0x11d)]===_0x7ed70d(0x113)?_0x5a9458['env']:undefined,_0x146677=buildCanonicalProjectConfig({},{'appCodes':[_0x107ac6],'env':_0x4c355b||_0x2357df||'production','metadata':{'version':_0x477345,'createdAt':new Date()[_0x7ed70d(0x116)]()}});writeConfigFile(_0xafb9b8,_0x146677),logger[_0x7ed70d(0x11c)](_0x3453e9),logger['info'](_0x7ed70d(0x126),_0x7ed70d(0x11f),{'appcode':_0x107ac6,'env':_0x146677[_0x7ed70d(0x11d)],'version':_0x146677[_0x7ed70d(0x121)],'configPath':_0xafb9b8}),console['log'](a161_0x5db4fa[_0x7ed70d(0x119)](_0x7ed70d(0x11b))),console['log'](a161_0x5db4fa[_0x7ed70d(0x120)](_0x7ed70d(0x129)+Object['keys'](_0x146677['apps']||{})[_0x7ed70d(0x10a)](',\x20'))),console[_0x7ed70d(0xfb)](a161_0x5db4fa['cyan'](_0x7ed70d(0xfe)+_0x146677[_0x7ed70d(0x101)])),console['log']('\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27'+CLI_BIN_NAME+_0x7ed70d(0x115)+CLI_BIN_NAME+_0x7ed70d(0x109));}function askAppcode(){const _0x520c9e=a161_0x4846;return input({'message':_0x520c9e(0x10e),'validate':_0x4db694=>{const _0x56b35d=_0x520c9e;if(!_0x4db694[_0x56b35d(0x108)]())return _0x56b35d(0x103);const {valid:_0x349da2,message:_0x1da23b}=validateAppcode(_0x4db694[_0x56b35d(0x108)]());return _0x349da2||_0x1da23b||_0x56b35d(0x10f);}});}function getCliVersionFromPkg(){const _0x379a28=a161_0x4846;try{const _0x157b95=fileURLToPath(import.meta.url),_0x18b2f6=resolve(dirname(_0x157b95),'../..'),_0x3a7317=JSON['parse'](readFileSync(resolve(_0x18b2f6,_0x379a28(0x107)),_0x379a28(0x117)));return _0x3a7317[_0x379a28(0x121)]||_0x379a28(0x114);}catch{return'1.0.0';}}
@@ -1 +1 @@
1
- (function(_0x227123,_0x52e6cf){const _0x53c9be=a163_0x44e3,_0x1369ee=_0x227123();while(!![]){try{const _0x14eb8f=parseInt(_0x53c9be(0x1bf))/0x1+-parseInt(_0x53c9be(0x1e2))/0x2+parseInt(_0x53c9be(0x1a0))/0x3+parseInt(_0x53c9be(0x16f))/0x4*(parseInt(_0x53c9be(0x1b1))/0x5)+parseInt(_0x53c9be(0x179))/0x6+parseInt(_0x53c9be(0x1ae))/0x7+parseInt(_0x53c9be(0x1be))/0x8*(-parseInt(_0x53c9be(0x1a4))/0x9);if(_0x14eb8f===_0x52e6cf)break;else _0x1369ee['push'](_0x1369ee['shift']());}catch(_0x347521){_0x1369ee['push'](_0x1369ee['shift']());}}}(a163_0x3d0a,0x6dcf1));function a163_0x3d0a(){const _0x59090b=['skipped','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','Upgrade\x20@lovrabet/sdk','Remove\x20.lovrabet/','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','length','8mHihws','keys','not\x20found\x20(will\x20create)','object','string','gray','\x20(backup:\x20','Skill\x20swap:','start','succeed','1496994NFapRw','fail','needed','Step\x204/7:\x20MCP\x20config\x20—\x20','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','[\x22@lovrabet/sdk\x22]:\x20','isArray','Step\x204/7:\x20Cleaning\x20MCP\x20config...','oldArtifacts','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','.bak','some','message','\x20from\x20','isDirectory','\x20\x20\x20\x20\x20\x20\x20','done','values','Config\x20migration','green','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','cyan','.cursor/mcp.json','.cursor/rules/lovrabet_rules.mdc','\x20→\x20latest','entries','\x20\x20Current\x20version\x20in\x20','\x20\x20New\x20config\x20(.rabetbase.json):\x20','none\x20found','@lovrabet/sdk:','not\x20needed','Upgrade\x20completed\x20successfully!','Legacy\x20artifacts:','yes','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','exit\x20','Config\x20file:','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','Step\x201/7:\x20Config\x20migration\x20—\x20','2609205AGspfj','configMigration','push','CANCEL','11925FbsubK','sdkUpgrade','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','.lovrabet','\x20removed','failed','log','parse','FOUND','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','5942062qbobwZ','filter','Step\x205/7:\x20Removing\x20old\x20skill...','105905NrWZiZ','includes','bold','\x20→\x20keys:\x20','path','not\x20found\x20or\x20already\x20at\x20latest','skipped\x20(no\x20legacy\x20config)','Remove\x20old\x20skill','cwd','latest','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','files','undefined','10064RYpmFF','353724zgiboP','Proceed\x20with\x20upgrade?','no\x20legacy\x20config\x20found','Install\x20new\x20skill','needsSkillSwap','\x20\x20Fields\x20to\x20migrate:\x20','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','Step\x201/7:\x20Migrating\x20config...','utf8','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','detail','Remove\x20legacy\x20artifacts','error','join','devDependencies','@lovrabet/dataset-mcp-server','\x20\x20bun\x20install','already\x20exists\x20(will\x20merge)','package.json','oldPath','Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','stringify','Clean\x20MCP\x20config','white','args','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','\x20\x20#\x20or','Upgrade\x20cancelled.','===\x20Upgrade\x20Summary\x20===','mcpServers','MCP\x20config:','info','yellow','\x20→\x20','status','495118KGrjwj','@lovrabet/sdk','FAIL','\x20\x20npm\x20install','oldMcpConfig','no\x20matching\x20entry\x20found','lovrabet/lovrabet-skill\x20removed'];a163_0x3d0a=function(){return _0x59090b;};return a163_0x3d0a();}import a163_0x1ae510 from'chalk';import a163_0x3fe615 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'](_0x31d46c=>_0x31d46c!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x23000a){const _0x597002=a163_0x44e3,_0x4eadd6=[];for(const _0x301e9a of Object[_0x597002(0x18a)](CORE_IDE_CONFIGS)){if(_0x301e9a[_0x597002(0x1bc)])for(const _0x957fd7 of _0x301e9a[_0x597002(0x1bc)]){_0x4eadd6['push'](resolve(_0x23000a,_0x957fd7[_0x597002(0x1b5)]));}}return _0x4eadd6;}function analyse(_0x47d6f1){const _0x239cc9=a163_0x44e3;let _0x5ca461=null;const _0x3488dc=resolve(_0x47d6f1,NEW_CONFIG_NAME),_0x3982b4=existsSync(_0x3488dc);for(const _0x58f5cc of LEGACY_CONFIG_NAMES){const _0xccb692=resolve(_0x47d6f1,_0x58f5cc);if(existsSync(_0xccb692)){const _0x11e37d=readConfigFile(_0xccb692),_0xd78be1=Object[_0x239cc9(0x170)](_0x11e37d)[_0x239cc9(0x1af)](_0x4aa062=>typeof _0x11e37d[_0x4aa062]!==_0x239cc9(0x1bd));_0x5ca461={'oldPath':_0xccb692,'hasNewConfig':_0x3982b4,'fields':_0xd78be1};break;}}const _0x911946=[],_0x323368=resolve(_0x47d6f1,_0x239cc9(0x1a7));if(existsSync(_0x323368))_0x911946[_0x239cc9(0x1a2)](_0x323368);const _0x2534b5=resolve(_0x47d6f1,_0x239cc9(0x190));if(existsSync(_0x2534b5))_0x911946['push'](_0x2534b5);const _0x5f2725=resolve(_0x47d6f1,'.claude/skills/lovrabet');if(existsSync(_0x5f2725))_0x911946['push'](_0x5f2725);for(const _0x1d3e39 of collectIdeSkillFiles(_0x47d6f1)){if(existsSync(_0x1d3e39))_0x911946[_0x239cc9(0x1a2)](_0x1d3e39);}let _0x390a43=null;const _0x215cce=resolve(_0x47d6f1,_0x239cc9(0x18f));if(existsSync(_0x215cce))try{const _0x47393f=JSON[_0x239cc9(0x1ab)](readFileSync(_0x215cce,'utf8'));if(_0x47393f?.[_0x239cc9(0x1dc)]&&typeof _0x47393f[_0x239cc9(0x1dc)]===_0x239cc9(0x172)){const _0x44f2b6=[];for(const [_0x2a98fe,_0x3993ad]of Object[_0x239cc9(0x192)](_0x47393f[_0x239cc9(0x1dc)])){const _0x197856=_0x3993ad;_0x197856?.[_0x239cc9(0x1d7)]&&Array[_0x239cc9(0x17f)](_0x197856['args'])&&_0x197856[_0x239cc9(0x1d7)][_0x239cc9(0x184)](_0x49134b=>typeof _0x49134b==='string'&&_0x49134b[_0x239cc9(0x1b2)](_0x239cc9(0x1ce)))&&_0x44f2b6[_0x239cc9(0x1a2)](_0x2a98fe);}_0x44f2b6['length']>0x0&&(_0x390a43={'path':_0x215cce,'keys':_0x44f2b6});}}catch{}const _0xf9e5ac=_0x911946['length']>0x0||_0x5ca461!==null;let _0x325d14=null;const _0x29c711=resolve(_0x47d6f1,_0x239cc9(0x1d1));if(existsSync(_0x29c711))try{const _0x4695f2=JSON[_0x239cc9(0x1ab)](readFileSync(_0x29c711,'utf8'));for(const _0x5609ce of['dependencies',_0x239cc9(0x1cd)]){const _0x2a456a=_0x4695f2?.[_0x5609ce]?.[_0x239cc9(0x1e3)];if(typeof _0x2a456a===_0x239cc9(0x173)){_0x2a456a!=='latest'&&(_0x325d14={'pkgPath':_0x29c711,'currentVersion':_0x2a456a,'field':_0x5609ce});break;}}}catch{}return{'configMigration':_0x5ca461,'oldArtifacts':_0x911946,'oldMcpConfig':_0x390a43,'needsSkillSwap':_0xf9e5ac,'sdkUpgrade':_0x325d14};}function printReport(_0x5cf94){const _0x5665ce=a163_0x44e3,{configMigration:_0x5a8fd3,oldArtifacts:_0x1dd65f,oldMcpConfig:_0x3b19c1,needsSkillSwap:_0x41babc}=_0x5cf94;console[_0x5665ce(0x1aa)](''),console[_0x5665ce(0x1aa)](a163_0x1ae510['bold']('===\x20Upgrade\x20Analysis\x20===')),console['log']('');_0x5a8fd3?(console[_0x5665ce(0x1aa)](a163_0x1ae510[_0x5665ce(0x18e)]('Config\x20file:')+('\x20\x20'+a163_0x1ae510[_0x5665ce(0x1df)](_0x5a8fd3[_0x5665ce(0x1d2)]))),console['log'](_0x5665ce(0x194)+(_0x5a8fd3['hasNewConfig']?a163_0x1ae510[_0x5665ce(0x18c)](_0x5665ce(0x1d0)):a163_0x1ae510['gray'](_0x5665ce(0x171)))),console[_0x5665ce(0x1aa)](_0x5665ce(0x1c4)+_0x5a8fd3['fields'][_0x5665ce(0x1cc)](',\x20')),console[_0x5665ce(0x1aa)](_0x5665ce(0x19b))):console['log'](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x19d))+'\x20\x20'+a163_0x1ae510[_0x5665ce(0x174)](_0x5665ce(0x1c1)));console[_0x5665ce(0x1aa)]('');if(_0x1dd65f[_0x5665ce(0x16e)]>0x0){console['log'](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x199)));for(const _0x5edae9 of _0x1dd65f){console[_0x5665ce(0x1aa)]('\x20\x20'+a163_0x1ae510['red'](_0x5665ce(0x1ac))+'\x20\x20'+_0x5edae9);}console[_0x5665ce(0x1aa)]('\x20\x20Action:\x20delete');}else console[_0x5665ce(0x1aa)](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x199))+'\x20\x20'+a163_0x1ae510['gray'](_0x5665ce(0x195)));console['log']('');_0x3b19c1?(console[_0x5665ce(0x1aa)](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x1dd))+('\x20\x20'+a163_0x1ae510['yellow'](_0x3b19c1[_0x5665ce(0x1b5)])+_0x5665ce(0x1b4)+_0x3b19c1[_0x5665ce(0x170)][_0x5665ce(0x1cc)](',\x20'))),console['log'](_0x5665ce(0x16d))):console['log'](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x1dd))+'\x20\x20'+a163_0x1ae510[_0x5665ce(0x174)]('no\x20legacy\x20entry'));console[_0x5665ce(0x1aa)](''),console['log'](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x176))+('\x20\x20'+(_0x41babc?a163_0x1ae510[_0x5665ce(0x1df)](_0x5665ce(0x17b)):a163_0x1ae510[_0x5665ce(0x18c)](_0x5665ce(0x197)))));_0x41babc&&console[_0x5665ce(0x1aa)](_0x5665ce(0x17d)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x5665ce(0x1aa)]('');if(_0x5cf94[_0x5665ce(0x1a5)]){const {currentVersion:_0x59cbcd,field:_0x25380b,pkgPath:_0xf73d34}=_0x5cf94[_0x5665ce(0x1a5)];console[_0x5665ce(0x1aa)](a163_0x1ae510['cyan'](_0x5665ce(0x196))+('\x20\x20'+a163_0x1ae510['yellow'](_0xf73d34))),console[_0x5665ce(0x1aa)](_0x5665ce(0x193)+_0x25380b+':\x20'+a163_0x1ae510['yellow'](_0x59cbcd)+'\x20→\x20'+a163_0x1ae510[_0x5665ce(0x18c)](_0x5665ce(0x1ba))),console[_0x5665ce(0x1aa)]('\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)');}else console['log'](a163_0x1ae510[_0x5665ce(0x18e)](_0x5665ce(0x196))+'\x20\x20'+a163_0x1ae510[_0x5665ce(0x174)](_0x5665ce(0x1b6)));console['log']('');}function a163_0x44e3(_0x378e83,_0x4f349d){_0x378e83=_0x378e83-0x16b;const _0x3d0acc=a163_0x3d0a();let _0x44e3a9=_0x3d0acc[_0x378e83];return _0x44e3a9;}function execConfigMigration(_0x22a78d,_0x34e764){const _0xf3b86c=a163_0x44e3,{configMigration:_0x3901fd}=_0x22a78d;if(!_0x3901fd?.[_0xf3b86c(0x1d2)])return{'step':0x1,'label':_0xf3b86c(0x18b),'ok':!![],'detail':_0xf3b86c(0x1b7)};const _0x384ff6=readConfigFile(_0x3901fd[_0xf3b86c(0x1d2)]),_0x1e5d87=resolve(_0x34e764,NEW_CONFIG_NAME),_0x1a915c=_0x3901fd['hasNewConfig']?readConfigFile(_0x1e5d87):{};for(const [_0x81705b,_0x5f0b55]of Object[_0xf3b86c(0x192)](_0x384ff6)){!(_0x81705b in _0x1a915c)&&(_0x1a915c[_0x81705b]=_0x5f0b55);}writeConfigFile(_0x1e5d87,_0x1a915c);const _0x5be433=_0x3901fd['oldPath']+_0xf3b86c(0x183);return renameSync(_0x3901fd[_0xf3b86c(0x1d2)],_0x5be433),{'step':0x1,'label':_0xf3b86c(0x18b),'ok':!![],'detail':_0x3901fd[_0xf3b86c(0x1d2)]+_0xf3b86c(0x1e0)+_0x1e5d87+_0xf3b86c(0x175)+_0x5be433+')'};}function execRemoveOldArtifacts(_0x8df6fe){const _0x432347=a163_0x44e3,_0x333b64=[];for(const _0x216412 of _0x8df6fe){try{if(!existsSync(_0x216412))continue;const _0x19a4cc=tryStat(_0x216412);_0x19a4cc?.[_0x432347(0x187)]()?rmSync(_0x216412,{'recursive':!![],'force':!![]}):unlinkSync(_0x216412);}catch(_0x64cf95){_0x333b64[_0x432347(0x1a2)](_0x216412+':\x20'+_0x64cf95[_0x432347(0x185)]);}}return{'step':0x3,'label':_0x432347(0x1ca),'ok':_0x333b64['length']===0x0,'detail':_0x333b64[_0x432347(0x16e)]>0x0?_0x8df6fe[_0x432347(0x16e)]-_0x333b64[_0x432347(0x16e)]+'/'+_0x8df6fe[_0x432347(0x16e)]+'\x20removed\x20('+_0x333b64[_0x432347(0x1cc)](';\x20')+')':_0x8df6fe[_0x432347(0x16e)]+_0x432347(0x1a8)};}function execCleanMcp(_0x390511){const _0x399b16=a163_0x44e3;if(!_0x390511[_0x399b16(0x1e6)])return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':_0x399b16(0x1e9)};try{const _0x2ccfd5=readFileSync(_0x390511['oldMcpConfig']['path'],_0x399b16(0x1c7)),_0x54bfb9=JSON[_0x399b16(0x1ab)](_0x2ccfd5);if(_0x54bfb9?.[_0x399b16(0x1dc)]&&typeof _0x54bfb9['mcpServers']===_0x399b16(0x172)){const _0x50a4f0=[];for(const [_0x4cd1e0,_0x454a59]of Object[_0x399b16(0x192)](_0x54bfb9[_0x399b16(0x1dc)])){_0x454a59?.[_0x399b16(0x1d7)]&&Array[_0x399b16(0x17f)](_0x454a59[_0x399b16(0x1d7)])&&_0x454a59['args']['some'](_0x137171=>typeof _0x137171===_0x399b16(0x173)&&_0x137171['includes'](_0x399b16(0x1ce)))&&_0x50a4f0['push'](_0x4cd1e0);}for(const _0x55dc28 of _0x50a4f0){delete _0x54bfb9['mcpServers'][_0x55dc28];}return _0x50a4f0['length']>0x0&&writeFileSync(_0x390511[_0x399b16(0x1e6)][_0x399b16(0x1b5)],JSON[_0x399b16(0x1d4)](_0x54bfb9,null,0x2)+'\x0a',_0x399b16(0x1c7)),{'step':0x4,'label':_0x399b16(0x1d5),'ok':!![],'detail':'removed\x20'+_0x50a4f0[_0x399b16(0x1cc)](',\x20')+_0x399b16(0x186)+_0x390511['oldMcpConfig']['path']};}return{'step':0x4,'label':_0x399b16(0x1d5),'ok':!![],'detail':_0x399b16(0x1e7)};}catch(_0x5188de){return{'step':0x4,'label':_0x399b16(0x1d5),'ok':![],'detail':_0x5188de[_0x399b16(0x185)]};}}function execSkillsRemove(_0x30a2ed,_0x339bb8){const _0x3744d4=a163_0x44e3,_0x45c9c6=runNpxSkillsRemove(_0x30a2ed,{'stdio':'inherit','yes':_0x339bb8});return{'step':0x5,'label':_0x3744d4(0x1b8),'ok':_0x45c9c6['ok'],'detail':_0x45c9c6['ok']?_0x3744d4(0x1e8):_0x45c9c6[_0x3744d4(0x1cb)]??_0x3744d4(0x19c)+_0x45c9c6['status']};}function execSkillsAdd(_0x2d19a3,_0x392095){const _0x20b1d6=a163_0x44e3,_0x5a2831=runNpxSkillsAddGlobal(_0x2d19a3,'lovrabet/rabetbase',{'stdio':'inherit','yes':_0x392095});return{'step':0x6,'label':_0x20b1d6(0x1c2),'ok':_0x5a2831['ok'],'detail':_0x5a2831['ok']?'lovrabet/rabetbase\x20installed\x20globally':_0x5a2831[_0x20b1d6(0x1cb)]??'exit\x20'+_0x5a2831[_0x20b1d6(0x1e1)]};}function execUpgradeSdk(_0x262513){const _0x453778=a163_0x44e3;if(!_0x262513['sdkUpgrade'])return{'step':0x7,'label':_0x453778(0x16b),'ok':!![],'detail':'skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)'};const {pkgPath:_0x191e7e,currentVersion:_0x20cbed,field:_0xd53ce8}=_0x262513[_0x453778(0x1a5)];try{const _0x3d4e1a=readFileSync(_0x191e7e,'utf8'),_0xbb1327=JSON[_0x453778(0x1ab)](_0x3d4e1a);return _0xbb1327[_0xd53ce8][_0x453778(0x1e3)]=_0x453778(0x1ba),writeFileSync(_0x191e7e,JSON['stringify'](_0xbb1327,null,0x2)+'\x0a',_0x453778(0x1c7)),{'step':0x7,'label':_0x453778(0x16b),'ok':!![],'detail':_0xd53ce8+_0x453778(0x17e)+_0x20cbed+_0x453778(0x191)};}catch(_0x306610){return{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':![],'detail':_0x306610['message']};}}function tryStat(_0x4ad213){try{return statSync(_0x4ad213);}catch{return undefined;}}function printSummary(_0x312ead){const _0x505a7e=a163_0x44e3;console[_0x505a7e(0x1aa)](''),console[_0x505a7e(0x1aa)](a163_0x1ae510[_0x505a7e(0x1b3)](_0x505a7e(0x1db))),console[_0x505a7e(0x1aa)]('');for(const _0x289e05 of _0x312ead){const _0x28b0a5=_0x289e05['ok']?a163_0x1ae510[_0x505a7e(0x18c)]('OK'):a163_0x1ae510['red'](_0x505a7e(0x1e4));console['log']('\x20\x20'+_0x28b0a5+'\x20\x20Step\x20'+_0x289e05['step']+':\x20'+_0x289e05['label']);if(_0x289e05[_0x505a7e(0x1c9)])console[_0x505a7e(0x1aa)](_0x505a7e(0x188)+a163_0x1ae510['gray'](_0x289e05['detail']));}console['log']('');}export async function upgradeApp(_0x166941,_0x4f4818){const _0x1d1245=a163_0x44e3,_0x473bb6=process[_0x1d1245(0x1b9)](),_0x532a86=analyse(_0x473bb6),_0x2e9181=!_0x532a86[_0x1d1245(0x1a1)]&&_0x532a86['oldArtifacts'][_0x1d1245(0x16e)]===0x0&&!_0x532a86['oldMcpConfig']&&!_0x532a86[_0x1d1245(0x1c3)]&&!_0x532a86[_0x1d1245(0x1a5)];if(_0x2e9181){console[_0x1d1245(0x1aa)](a163_0x1ae510[_0x1d1245(0x18c)](_0x1d1245(0x1c8)));return;}printReport(_0x532a86);const _0x359759=!!(_0x4f4818[_0x1d1245(0x19a)]||_0x4f4818['Y']||_0x166941);if(!_0x359759)try{const _0x46b343=await askConfirm(_0x1d1245(0x1c0));if(!_0x46b343){console[_0x1d1245(0x1aa)](a163_0x1ae510[_0x1d1245(0x174)](_0x1d1245(0x1da)));return;}}catch(_0x38091b){if(_0x38091b?.[_0x1d1245(0x185)]===_0x1d1245(0x1a3)){console['log'](a163_0x1ae510[_0x1d1245(0x174)](_0x1d1245(0x1da)));return;}throw _0x38091b;}const _0x4de3b5=[],_0x333e02=a163_0x3fe615({'text':_0x1d1245(0x1c6),'color':_0x1d1245(0x18e)})['start'](),_0x4d1310=execConfigMigration(_0x532a86,_0x473bb6);_0x4de3b5[_0x1d1245(0x1a2)](_0x4d1310),_0x333e02[_0x4d1310['ok']?_0x1d1245(0x178):_0x1d1245(0x17a)](_0x1d1245(0x19f)+(_0x4d1310['detail']??(_0x4d1310['ok']?_0x1d1245(0x189):'failed')));const _0x3fed62=resolve(_0x473bb6,_0x1d1245(0x1a7)),_0x1a7fb8=a163_0x3fe615({'text':_0x1d1245(0x1d8),'color':_0x1d1245(0x18e)})[_0x1d1245(0x177)]();if(existsSync(_0x3fed62))try{rmSync(_0x3fed62,{'recursive':!![],'force':!![]}),_0x1a7fb8[_0x1d1245(0x178)](_0x1d1245(0x1a6)),_0x4de3b5[_0x1d1245(0x1a2)]({'step':0x2,'label':_0x1d1245(0x16c),'ok':!![]});}catch(_0x59b895){_0x1a7fb8['fail'](_0x1d1245(0x1bb)+_0x59b895[_0x1d1245(0x185)]),_0x4de3b5['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':![],'detail':_0x59b895[_0x1d1245(0x185)]});}else _0x1a7fb8[_0x1d1245(0x1de)]('Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped'),_0x4de3b5['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![],'detail':'skipped'});const _0xd4144=a163_0x3fe615({'text':_0x1d1245(0x1d3),'color':_0x1d1245(0x18e)})[_0x1d1245(0x177)](),_0x40f6ec=execRemoveOldArtifacts(_0x532a86[_0x1d1245(0x181)]);_0x4de3b5[_0x1d1245(0x1a2)](_0x40f6ec),_0xd4144[_0x40f6ec['ok']?_0x1d1245(0x178):'fail']('Step\x203/7:\x20Legacy\x20artifacts\x20—\x20'+(_0x40f6ec[_0x1d1245(0x1c9)]??(_0x40f6ec['ok']?'done':_0x1d1245(0x1a9))));const _0x253909=a163_0x3fe615({'text':_0x1d1245(0x180),'color':_0x1d1245(0x18e)})[_0x1d1245(0x177)](),_0x569d95=execCleanMcp(_0x532a86);_0x4de3b5['push'](_0x569d95),_0x253909[_0x569d95['ok']?'succeed':'fail'](_0x1d1245(0x17c)+(_0x569d95['detail']??(_0x569d95['ok']?_0x1d1245(0x189):_0x1d1245(0x1a9))));const _0x562a24=a163_0x3fe615({'text':_0x1d1245(0x1b0),'color':_0x1d1245(0x18e)})[_0x1d1245(0x177)](),_0xcbf29=execSkillsRemove(_0x473bb6,_0x359759);_0x4de3b5[_0x1d1245(0x1a2)](_0xcbf29),_0x562a24[_0xcbf29['ok']?'succeed':_0x1d1245(0x17a)](_0x1d1245(0x19e)+(_0xcbf29['detail']??(_0xcbf29['ok']?_0x1d1245(0x189):_0x1d1245(0x1a9))));const _0xc6f6e1=a163_0x3fe615({'text':'Step\x206/7:\x20Installing\x20new\x20skill...','color':_0x1d1245(0x18e)})[_0x1d1245(0x177)](),_0x3d7fd2=execSkillsAdd(_0x473bb6,_0x359759);_0x4de3b5[_0x1d1245(0x1a2)](_0x3d7fd2),_0xc6f6e1[_0x3d7fd2['ok']?'succeed':'fail'](_0x1d1245(0x18d)+(_0x3d7fd2[_0x1d1245(0x1c9)]??(_0x3d7fd2['ok']?_0x1d1245(0x189):_0x1d1245(0x1a9))));const _0x408867=a163_0x3fe615({'text':_0x1d1245(0x1ea),'color':_0x1d1245(0x18e)})['start'](),_0x55b0f4=execUpgradeSdk(_0x532a86);_0x4de3b5[_0x1d1245(0x1a2)](_0x55b0f4),_0x408867[_0x55b0f4['ok']?_0x1d1245(0x178):_0x1d1245(0x17a)](_0x1d1245(0x182)+(_0x55b0f4[_0x1d1245(0x1c9)]??(_0x55b0f4['ok']?_0x1d1245(0x189):_0x1d1245(0x1a9)))),printSummary(_0x4de3b5);const _0x265992=_0x4de3b5[_0x1d1245(0x184)](_0x12598a=>!_0x12598a['ok']);_0x265992?console[_0x1d1245(0x1aa)](a163_0x1ae510[_0x1d1245(0x1df)](_0x1d1245(0x1c5))):console[_0x1d1245(0x1aa)](a163_0x1ae510[_0x1d1245(0x18c)](_0x1d1245(0x198))),_0x55b0f4['ok']&&_0x532a86[_0x1d1245(0x1a5)]&&(console[_0x1d1245(0x1aa)](''),console[_0x1d1245(0x1aa)](a163_0x1ae510[_0x1d1245(0x1b3)][_0x1d1245(0x18e)](_0x1d1245(0x1ad))),console['log'](a163_0x1ae510[_0x1d1245(0x18e)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console[_0x1d1245(0x1aa)](''),console[_0x1d1245(0x1aa)](a163_0x1ae510[_0x1d1245(0x1d6)](_0x1d1245(0x1e5))),console[_0x1d1245(0x1aa)](a163_0x1ae510['white'](_0x1d1245(0x1d9))),console['log'](a163_0x1ae510['white'](_0x1d1245(0x1cf))),console[_0x1d1245(0x1aa)](''));}
1
+ const a162_0x29d5e7=a162_0x5b26;(function(_0x5ad662,_0x42e89f){const _0x2b8692=a162_0x5b26,_0x24a552=_0x5ad662();while(!![]){try{const _0x5df9e3=parseInt(_0x2b8692(0x176))/0x1+parseInt(_0x2b8692(0x182))/0x2+parseInt(_0x2b8692(0x197))/0x3+-parseInt(_0x2b8692(0x1a2))/0x4+parseInt(_0x2b8692(0x1ad))/0x5+-parseInt(_0x2b8692(0x14d))/0x6+-parseInt(_0x2b8692(0x13f))/0x7;if(_0x5df9e3===_0x42e89f)break;else _0x24a552['push'](_0x24a552['shift']());}catch(_0x375c76){_0x24a552['push'](_0x24a552['shift']());}}}(a162_0x207c,0xd6358));import a162_0x247129 from'chalk';import a162_0x4de76 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[a162_0x29d5e7(0x1af)](_0xe1e256=>_0xe1e256!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x205b8b){const _0x1ea0d2=a162_0x29d5e7,_0x594fa3=[];for(const _0x410f8a of Object[_0x1ea0d2(0x194)](CORE_IDE_CONFIGS)){if(_0x410f8a['files'])for(const _0x39f60d of _0x410f8a[_0x1ea0d2(0x199)]){_0x594fa3[_0x1ea0d2(0x165)](resolve(_0x205b8b,_0x39f60d[_0x1ea0d2(0x19e)]));}}return _0x594fa3;}function analyse(_0x557b55){const _0x1b5231=a162_0x29d5e7;let _0x37c44d=null;const _0x1c8b08=resolve(_0x557b55,NEW_CONFIG_NAME),_0x281fc9=existsSync(_0x1c8b08);for(const _0x1d7603 of LEGACY_CONFIG_NAMES){const _0x175d2a=resolve(_0x557b55,_0x1d7603);if(existsSync(_0x175d2a)){const _0x39014e=readConfigFile(_0x175d2a),_0x1a1af2=Object[_0x1b5231(0x18b)](_0x39014e)[_0x1b5231(0x1af)](_0x56271c=>typeof _0x39014e[_0x56271c]!=='undefined');_0x37c44d={'oldPath':_0x175d2a,'hasNewConfig':_0x281fc9,'fields':_0x1a1af2};break;}}const _0x19dbbe=[],_0x1e6926=resolve(_0x557b55,_0x1b5231(0x1b9));if(existsSync(_0x1e6926))_0x19dbbe[_0x1b5231(0x165)](_0x1e6926);const _0x4924fd=resolve(_0x557b55,_0x1b5231(0x18d));if(existsSync(_0x4924fd))_0x19dbbe[_0x1b5231(0x165)](_0x4924fd);const _0x2366c8=resolve(_0x557b55,_0x1b5231(0x147));if(existsSync(_0x2366c8))_0x19dbbe['push'](_0x2366c8);for(const _0x1713ee of collectIdeSkillFiles(_0x557b55)){if(existsSync(_0x1713ee))_0x19dbbe[_0x1b5231(0x165)](_0x1713ee);}let _0x2e3fee=null;const _0x18120f=resolve(_0x557b55,_0x1b5231(0x177));if(existsSync(_0x18120f))try{const _0x5d59d1=JSON['parse'](readFileSync(_0x18120f,'utf8'));if(_0x5d59d1?.[_0x1b5231(0x169)]&&typeof _0x5d59d1['mcpServers']===_0x1b5231(0x155)){const _0x1ad159=[];for(const [_0xbc70b9,_0x2c7136]of Object[_0x1b5231(0x1a9)](_0x5d59d1[_0x1b5231(0x169)])){const _0xacd9f0=_0x2c7136;_0xacd9f0?.[_0x1b5231(0x1b7)]&&Array[_0x1b5231(0x1a1)](_0xacd9f0['args'])&&_0xacd9f0[_0x1b5231(0x1b7)][_0x1b5231(0x186)](_0x3e1cc4=>typeof _0x3e1cc4===_0x1b5231(0x192)&&_0x3e1cc4[_0x1b5231(0x19b)]('@lovrabet/dataset-mcp-server'))&&_0x1ad159[_0x1b5231(0x165)](_0xbc70b9);}_0x1ad159[_0x1b5231(0x15b)]>0x0&&(_0x2e3fee={'path':_0x18120f,'keys':_0x1ad159});}}catch{}const _0x5b0804=_0x19dbbe['length']>0x0||_0x37c44d!==null;let _0x2b53c2=null;const _0x33accf=resolve(_0x557b55,'package.json');if(existsSync(_0x33accf))try{const _0x6b4899=JSON[_0x1b5231(0x17e)](readFileSync(_0x33accf,_0x1b5231(0x145)));for(const _0x536abe of[_0x1b5231(0x14e),_0x1b5231(0x142)]){const _0x59407c=_0x6b4899?.[_0x536abe]?.[_0x1b5231(0x17f)];if(typeof _0x59407c===_0x1b5231(0x192)){_0x59407c!==_0x1b5231(0x15c)&&(_0x2b53c2={'pkgPath':_0x33accf,'currentVersion':_0x59407c,'field':_0x536abe});break;}}}catch{}return{'configMigration':_0x37c44d,'oldArtifacts':_0x19dbbe,'oldMcpConfig':_0x2e3fee,'needsSkillSwap':_0x5b0804,'sdkUpgrade':_0x2b53c2};}function printReport(_0x3a9091){const _0x366f14=a162_0x29d5e7,{configMigration:_0x3fd277,oldArtifacts:_0x5554e5,oldMcpConfig:_0x593267,needsSkillSwap:_0x3de62d}=_0x3a9091;console[_0x366f14(0x1a5)](''),console[_0x366f14(0x1a5)](a162_0x247129[_0x366f14(0x1ac)]('===\x20Upgrade\x20Analysis\x20===')),console[_0x366f14(0x1a5)]('');_0x3fd277?(console[_0x366f14(0x1a5)](a162_0x247129['cyan'](_0x366f14(0x152))+('\x20\x20'+a162_0x247129[_0x366f14(0x189)](_0x3fd277[_0x366f14(0x18c)]))),console['log'](_0x366f14(0x18a)+(_0x3fd277[_0x366f14(0x180)]?a162_0x247129[_0x366f14(0x17c)](_0x366f14(0x1b5)):a162_0x247129[_0x366f14(0x156)](_0x366f14(0x166)))),console['log']('\x20\x20Fields\x20to\x20migrate:\x20'+_0x3fd277[_0x366f14(0x164)][_0x366f14(0x16b)](',\x20')),console[_0x366f14(0x1a5)]('\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak')):console[_0x366f14(0x1a5)](a162_0x247129['cyan'](_0x366f14(0x152))+'\x20\x20'+a162_0x247129[_0x366f14(0x156)]('no\x20legacy\x20config\x20found'));console[_0x366f14(0x1a5)]('');if(_0x5554e5[_0x366f14(0x15b)]>0x0){console[_0x366f14(0x1a5)](a162_0x247129['cyan']('Legacy\x20artifacts:'));for(const _0x2ef09b of _0x5554e5){console[_0x366f14(0x1a5)]('\x20\x20'+a162_0x247129['red'](_0x366f14(0x15a))+'\x20\x20'+_0x2ef09b);}console['log'](_0x366f14(0x167));}else console[_0x366f14(0x1a5)](a162_0x247129['cyan'](_0x366f14(0x196))+'\x20\x20'+a162_0x247129[_0x366f14(0x156)](_0x366f14(0x19d)));console[_0x366f14(0x1a5)]('');_0x593267?(console[_0x366f14(0x1a5)](a162_0x247129['cyan'](_0x366f14(0x1a0))+('\x20\x20'+a162_0x247129[_0x366f14(0x189)](_0x593267['path'])+_0x366f14(0x153)+_0x593267[_0x366f14(0x18b)][_0x366f14(0x16b)](',\x20'))),console[_0x366f14(0x1a5)](_0x366f14(0x163))):console[_0x366f14(0x1a5)](a162_0x247129[_0x366f14(0x178)](_0x366f14(0x1a0))+'\x20\x20'+a162_0x247129[_0x366f14(0x156)](_0x366f14(0x19c)));console[_0x366f14(0x1a5)](''),console[_0x366f14(0x1a5)](a162_0x247129['cyan']('Skill\x20swap:')+('\x20\x20'+(_0x3de62d?a162_0x247129[_0x366f14(0x189)](_0x366f14(0x171)):a162_0x247129[_0x366f14(0x17c)](_0x366f14(0x195)))));_0x3de62d&&console[_0x366f14(0x1a5)]('\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x366f14(0x1a5)]('');if(_0x3a9091[_0x366f14(0x143)]){const {currentVersion:_0x4a6a2d,field:_0x470a82,pkgPath:_0x382421}=_0x3a9091[_0x366f14(0x143)];console[_0x366f14(0x1a5)](a162_0x247129[_0x366f14(0x178)](_0x366f14(0x185))+('\x20\x20'+a162_0x247129[_0x366f14(0x189)](_0x382421))),console[_0x366f14(0x1a5)]('\x20\x20Current\x20version\x20in\x20'+_0x470a82+':\x20'+a162_0x247129['yellow'](_0x4a6a2d)+_0x366f14(0x187)+a162_0x247129['green']('latest')),console[_0x366f14(0x1a5)](_0x366f14(0x162));}else console['log'](a162_0x247129[_0x366f14(0x178)]('@lovrabet/sdk:')+'\x20\x20'+a162_0x247129[_0x366f14(0x156)](_0x366f14(0x140)));console[_0x366f14(0x1a5)]('');}function execConfigMigration(_0x3f9f7e,_0xe13377){const _0x91df12=a162_0x29d5e7,{configMigration:_0x335563}=_0x3f9f7e;if(!_0x335563?.[_0x91df12(0x18c)])return{'step':0x1,'label':_0x91df12(0x174),'ok':!![],'detail':_0x91df12(0x18f)};const _0x4558cb=readConfigFile(_0x335563[_0x91df12(0x18c)]),_0x37e475=resolve(_0xe13377,NEW_CONFIG_NAME),_0x2ca1e9=_0x335563[_0x91df12(0x180)]?readConfigFile(_0x37e475):{};for(const [_0x574df0,_0x56881a]of Object[_0x91df12(0x1a9)](_0x4558cb)){!(_0x574df0 in _0x2ca1e9)&&(_0x2ca1e9[_0x574df0]=_0x56881a);}writeConfigFile(_0x37e475,_0x2ca1e9);const _0xc78b2e=_0x335563[_0x91df12(0x18c)]+_0x91df12(0x17a);return renameSync(_0x335563[_0x91df12(0x18c)],_0xc78b2e),{'step':0x1,'label':'Config\x20migration','ok':!![],'detail':_0x335563['oldPath']+_0x91df12(0x187)+_0x37e475+_0x91df12(0x144)+_0xc78b2e+')'};}function execRemoveOldArtifacts(_0x25c2e7){const _0x45f2c4=a162_0x29d5e7,_0x3ff4d9=[];for(const _0x20caf6 of _0x25c2e7){try{if(!existsSync(_0x20caf6))continue;const _0x232e91=tryStat(_0x20caf6);_0x232e91?.[_0x45f2c4(0x175)]()?rmSync(_0x20caf6,{'recursive':!![],'force':!![]}):unlinkSync(_0x20caf6);}catch(_0x34b60e){_0x3ff4d9[_0x45f2c4(0x165)](_0x20caf6+':\x20'+_0x34b60e[_0x45f2c4(0x170)]);}}return{'step':0x3,'label':_0x45f2c4(0x146),'ok':_0x3ff4d9[_0x45f2c4(0x15b)]===0x0,'detail':_0x3ff4d9['length']>0x0?_0x25c2e7[_0x45f2c4(0x15b)]-_0x3ff4d9[_0x45f2c4(0x15b)]+'/'+_0x25c2e7[_0x45f2c4(0x15b)]+_0x45f2c4(0x1b1)+_0x3ff4d9[_0x45f2c4(0x16b)](';\x20')+')':_0x25c2e7[_0x45f2c4(0x15b)]+_0x45f2c4(0x193)};}function a162_0x5b26(_0x47232e,_0x36d29c){_0x47232e=_0x47232e-0x13f;const _0x207c9d=a162_0x207c();let _0x5b2605=_0x207c9d[_0x47232e];return _0x5b2605;}function execCleanMcp(_0xaf181d){const _0x4c69eb=a162_0x29d5e7;if(!_0xaf181d[_0x4c69eb(0x1a3)])return{'step':0x4,'label':_0x4c69eb(0x191),'ok':!![],'detail':_0x4c69eb(0x1b3)};try{const _0x17bdc6=readFileSync(_0xaf181d[_0x4c69eb(0x1a3)][_0x4c69eb(0x19e)],_0x4c69eb(0x145)),_0x1029dc=JSON[_0x4c69eb(0x17e)](_0x17bdc6);if(_0x1029dc?.[_0x4c69eb(0x169)]&&typeof _0x1029dc[_0x4c69eb(0x169)]===_0x4c69eb(0x155)){const _0x5add79=[];for(const [_0x365362,_0x231142]of Object['entries'](_0x1029dc[_0x4c69eb(0x169)])){_0x231142?.[_0x4c69eb(0x1b7)]&&Array['isArray'](_0x231142[_0x4c69eb(0x1b7)])&&_0x231142['args'][_0x4c69eb(0x186)](_0x221774=>typeof _0x221774===_0x4c69eb(0x192)&&_0x221774['includes'](_0x4c69eb(0x188)))&&_0x5add79[_0x4c69eb(0x165)](_0x365362);}for(const _0x9d16b2 of _0x5add79){delete _0x1029dc[_0x4c69eb(0x169)][_0x9d16b2];}return _0x5add79[_0x4c69eb(0x15b)]>0x0&&writeFileSync(_0xaf181d[_0x4c69eb(0x1a3)][_0x4c69eb(0x19e)],JSON[_0x4c69eb(0x14c)](_0x1029dc,null,0x2)+'\x0a',_0x4c69eb(0x145)),{'step':0x4,'label':_0x4c69eb(0x191),'ok':!![],'detail':'removed\x20'+_0x5add79[_0x4c69eb(0x16b)](',\x20')+_0x4c69eb(0x157)+_0xaf181d[_0x4c69eb(0x1a3)][_0x4c69eb(0x19e)]};}return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':_0x4c69eb(0x16f)};}catch(_0x24bbe2){return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':![],'detail':_0x24bbe2[_0x4c69eb(0x170)]};}}function execSkillsRemove(_0x540b7a,_0x44906e){const _0x42c46f=a162_0x29d5e7,_0x8cb3d2=runNpxSkillsRemove(_0x540b7a,{'stdio':_0x42c46f(0x1ab),'yes':_0x44906e});return{'step':0x5,'label':_0x42c46f(0x1b6),'ok':_0x8cb3d2['ok'],'detail':_0x8cb3d2['ok']?'lovrabet/lovrabet-skill\x20removed':_0x8cb3d2[_0x42c46f(0x16a)]??_0x42c46f(0x158)+_0x8cb3d2[_0x42c46f(0x1b4)]};}function execSkillsAdd(_0xd12536,_0x1d7cc6){const _0x42542a=a162_0x29d5e7,_0x115d12=runNpxSkillsAddGlobal(_0xd12536,_0x42542a(0x184),{'stdio':_0x42542a(0x1ab),'yes':_0x1d7cc6});return{'step':0x6,'label':_0x42542a(0x18e),'ok':_0x115d12['ok'],'detail':_0x115d12['ok']?'lovrabet/rabetbase\x20installed\x20globally':_0x115d12['error']??_0x42542a(0x158)+_0x115d12[_0x42542a(0x1b4)]};}function execUpgradeSdk(_0x493ebf){const _0x3b90fd=a162_0x29d5e7;if(!_0x493ebf[_0x3b90fd(0x143)])return{'step':0x7,'label':_0x3b90fd(0x1b0),'ok':!![],'detail':_0x3b90fd(0x1a7)};const {pkgPath:_0x45eca9,currentVersion:_0x319ac8,field:_0x4d71a5}=_0x493ebf[_0x3b90fd(0x143)];try{const _0x14cb9a=readFileSync(_0x45eca9,_0x3b90fd(0x145)),_0x1624d9=JSON[_0x3b90fd(0x17e)](_0x14cb9a);return _0x1624d9[_0x4d71a5][_0x3b90fd(0x17f)]=_0x3b90fd(0x15c),writeFileSync(_0x45eca9,JSON[_0x3b90fd(0x14c)](_0x1624d9,null,0x2)+'\x0a',_0x3b90fd(0x145)),{'step':0x7,'label':_0x3b90fd(0x1b0),'ok':!![],'detail':_0x4d71a5+_0x3b90fd(0x16c)+_0x319ac8+_0x3b90fd(0x14b)};}catch(_0x52fa64){return{'step':0x7,'label':_0x3b90fd(0x1b0),'ok':![],'detail':_0x52fa64[_0x3b90fd(0x170)]};}}function tryStat(_0x8b7bc8){try{return statSync(_0x8b7bc8);}catch{return undefined;}}function printSummary(_0x2dc181){const _0x50ff93=a162_0x29d5e7;console[_0x50ff93(0x1a5)](''),console[_0x50ff93(0x1a5)](a162_0x247129[_0x50ff93(0x1ac)](_0x50ff93(0x179))),console[_0x50ff93(0x1a5)]('');for(const _0x46eeb9 of _0x2dc181){const _0x46d837=_0x46eeb9['ok']?a162_0x247129[_0x50ff93(0x17c)]('OK'):a162_0x247129[_0x50ff93(0x181)](_0x50ff93(0x16e));console['log']('\x20\x20'+_0x46d837+_0x50ff93(0x1ae)+_0x46eeb9[_0x50ff93(0x19f)]+':\x20'+_0x46eeb9[_0x50ff93(0x160)]);if(_0x46eeb9[_0x50ff93(0x183)])console[_0x50ff93(0x1a5)](_0x50ff93(0x161)+a162_0x247129[_0x50ff93(0x156)](_0x46eeb9[_0x50ff93(0x183)]));}console['log']('');}export async function upgradeApp(_0x2550e3,_0x5ba06c){const _0x1ff033=a162_0x29d5e7,_0x2fbf39=process[_0x1ff033(0x173)](),_0x268536=analyse(_0x2fbf39),_0x1b9ff2=!_0x268536['configMigration']&&_0x268536[_0x1ff033(0x150)]['length']===0x0&&!_0x268536[_0x1ff033(0x1a3)]&&!_0x268536[_0x1ff033(0x198)]&&!_0x268536[_0x1ff033(0x143)];if(_0x1b9ff2){console[_0x1ff033(0x1a5)](a162_0x247129['green']('No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.'));return;}printReport(_0x268536);const _0x4e2ccc=!!(_0x5ba06c[_0x1ff033(0x168)]||_0x5ba06c['Y']||_0x2550e3);if(!_0x4e2ccc)try{const _0x232791=await askConfirm(_0x1ff033(0x1bb));if(!_0x232791){console[_0x1ff033(0x1a5)](a162_0x247129[_0x1ff033(0x156)](_0x1ff033(0x149)));return;}}catch(_0x1b9410){if(_0x1b9410?.[_0x1ff033(0x170)]===_0x1ff033(0x1ba)){console[_0x1ff033(0x1a5)](a162_0x247129[_0x1ff033(0x156)](_0x1ff033(0x149)));return;}throw _0x1b9410;}const _0x1fe1a3=[],_0x37fca7=a162_0x4de76({'text':_0x1ff033(0x1a4),'color':'cyan'})['start'](),_0x45c76=execConfigMigration(_0x268536,_0x2fbf39);_0x1fe1a3['push'](_0x45c76),_0x37fca7[_0x45c76['ok']?_0x1ff033(0x15e):_0x1ff033(0x1b2)](_0x1ff033(0x1b8)+(_0x45c76['detail']??(_0x45c76['ok']?_0x1ff033(0x151):_0x1ff033(0x1a8))));const _0x14361e=resolve(_0x2fbf39,_0x1ff033(0x1b9)),_0x3c9054=a162_0x4de76({'text':'Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','color':_0x1ff033(0x178)})[_0x1ff033(0x17b)]();if(existsSync(_0x14361e))try{rmSync(_0x14361e,{'recursive':!![],'force':!![]}),_0x3c9054[_0x1ff033(0x15e)]('Step\x202/7:\x20.lovrabet/\x20directory\x20removed'),_0x1fe1a3['push']({'step':0x2,'label':_0x1ff033(0x154),'ok':!![]});}catch(_0x19c8b1){_0x3c9054[_0x1ff033(0x1b2)](_0x1ff033(0x14f)+_0x19c8b1[_0x1ff033(0x170)]),_0x1fe1a3[_0x1ff033(0x165)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':![],'detail':_0x19c8b1[_0x1ff033(0x170)]});}else _0x3c9054[_0x1ff033(0x148)](_0x1ff033(0x19a)),_0x1fe1a3[_0x1ff033(0x165)]({'step':0x2,'label':_0x1ff033(0x154),'ok':!![],'detail':'skipped'});const _0x1ec0a8=a162_0x4de76({'text':'Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','color':_0x1ff033(0x178)})['start'](),_0x17a810=execRemoveOldArtifacts(_0x268536[_0x1ff033(0x150)]);_0x1fe1a3[_0x1ff033(0x165)](_0x17a810),_0x1ec0a8[_0x17a810['ok']?_0x1ff033(0x15e):_0x1ff033(0x1b2)](_0x1ff033(0x1bc)+(_0x17a810[_0x1ff033(0x183)]??(_0x17a810['ok']?'done':_0x1ff033(0x1a8))));const _0x3b77fb=a162_0x4de76({'text':_0x1ff033(0x17d),'color':_0x1ff033(0x178)})[_0x1ff033(0x17b)](),_0x1f8a98=execCleanMcp(_0x268536);_0x1fe1a3[_0x1ff033(0x165)](_0x1f8a98),_0x3b77fb[_0x1f8a98['ok']?_0x1ff033(0x15e):'fail']('Step\x204/7:\x20MCP\x20config\x20—\x20'+(_0x1f8a98[_0x1ff033(0x183)]??(_0x1f8a98['ok']?_0x1ff033(0x151):_0x1ff033(0x1a8))));const _0x3a1917=a162_0x4de76({'text':_0x1ff033(0x1aa),'color':_0x1ff033(0x178)})[_0x1ff033(0x17b)](),_0x4b5d93=execSkillsRemove(_0x2fbf39,_0x4e2ccc);_0x1fe1a3['push'](_0x4b5d93),_0x3a1917[_0x4b5d93['ok']?_0x1ff033(0x15e):'fail']('Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20'+(_0x4b5d93['detail']??(_0x4b5d93['ok']?_0x1ff033(0x151):_0x1ff033(0x1a8))));const _0x16ccd4=a162_0x4de76({'text':_0x1ff033(0x1a6),'color':'cyan'})[_0x1ff033(0x17b)](),_0x131567=execSkillsAdd(_0x2fbf39,_0x4e2ccc);_0x1fe1a3[_0x1ff033(0x165)](_0x131567),_0x16ccd4[_0x131567['ok']?_0x1ff033(0x15e):_0x1ff033(0x1b2)]('Step\x206/7:\x20Install\x20new\x20skill\x20—\x20'+(_0x131567[_0x1ff033(0x183)]??(_0x131567['ok']?_0x1ff033(0x151):_0x1ff033(0x1a8))));const _0x46a452=a162_0x4de76({'text':'Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','color':_0x1ff033(0x178)})['start'](),_0x26147d=execUpgradeSdk(_0x268536);_0x1fe1a3[_0x1ff033(0x165)](_0x26147d),_0x46a452[_0x26147d['ok']?'succeed':_0x1ff033(0x1b2)]('Step\x207/7:\x20@lovrabet/sdk\x20—\x20'+(_0x26147d[_0x1ff033(0x183)]??(_0x26147d['ok']?_0x1ff033(0x151):_0x1ff033(0x1a8)))),printSummary(_0x1fe1a3);const _0xd325ad=_0x1fe1a3[_0x1ff033(0x186)](_0x56057d=>!_0x56057d['ok']);_0xd325ad?console[_0x1ff033(0x1a5)](a162_0x247129[_0x1ff033(0x189)](_0x1ff033(0x15f))):console[_0x1ff033(0x1a5)](a162_0x247129['green'](_0x1ff033(0x190))),_0x26147d['ok']&&_0x268536[_0x1ff033(0x143)]&&(console[_0x1ff033(0x1a5)](''),console[_0x1ff033(0x1a5)](a162_0x247129[_0x1ff033(0x1ac)][_0x1ff033(0x178)](_0x1ff033(0x15d))),console['log'](a162_0x247129[_0x1ff033(0x178)](_0x1ff033(0x14a))),console[_0x1ff033(0x1a5)](''),console[_0x1ff033(0x1a5)](a162_0x247129[_0x1ff033(0x16d)](_0x1ff033(0x172))),console['log'](a162_0x247129['white'](_0x1ff033(0x141))),console[_0x1ff033(0x1a5)](a162_0x247129[_0x1ff033(0x16d)](_0x1ff033(0x159))),console[_0x1ff033(0x1a5)](''));}function a162_0x207c(){const _0x559c4e=['inherit','bold','155495pnpvYa','\x20\x20Step\x20','filter','Upgrade\x20@lovrabet/sdk','\x20removed\x20(','fail','skipped','status','already\x20exists\x20(will\x20merge)','Remove\x20old\x20skill','args','Step\x201/7:\x20Config\x20migration\x20—\x20','.lovrabet','CANCEL','Proceed\x20with\x20upgrade?','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','16625938IJaQbi','not\x20found\x20or\x20already\x20at\x20latest','\x20\x20#\x20or','devDependencies','sdkUpgrade','\x20(backup:\x20','utf8','Remove\x20legacy\x20artifacts','.claude/skills/lovrabet','info','Upgrade\x20cancelled.','Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:','\x20→\x20latest','stringify','341826WPeXxr','dependencies','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','oldArtifacts','done','Config\x20file:','\x20→\x20keys:\x20','Remove\x20.lovrabet/','object','gray','\x20from\x20','exit\x20','\x20\x20bun\x20install','FOUND','length','latest','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','succeed','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','label','\x20\x20\x20\x20\x20\x20\x20','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','fields','push','not\x20found\x20(will\x20create)','\x20\x20Action:\x20delete','yes','mcpServers','error','join','[\x22@lovrabet/sdk\x22]:\x20','white','FAIL','no\x20matching\x20entry\x20found','message','needed','\x20\x20npm\x20install','cwd','Config\x20migration','isDirectory','1531632GEUpkz','.cursor/mcp.json','cyan','===\x20Upgrade\x20Summary\x20===','.bak','start','green','Step\x204/7:\x20Cleaning\x20MCP\x20config...','parse','@lovrabet/sdk','hasNewConfig','red','1437800yaiOCL','detail','lovrabet/rabetbase','@lovrabet/sdk:','some','\x20→\x20','@lovrabet/dataset-mcp-server','yellow','\x20\x20New\x20config\x20(.rabetbase.json):\x20','keys','oldPath','.cursor/rules/lovrabet_rules.mdc','Install\x20new\x20skill','skipped\x20(no\x20legacy\x20config)','Upgrade\x20completed\x20successfully!','Clean\x20MCP\x20config','string','\x20removed','values','not\x20needed','Legacy\x20artifacts:','4902507xdYHcE','needsSkillSwap','files','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','includes','no\x20legacy\x20entry','none\x20found','path','step','MCP\x20config:','isArray','2425180YhvaWW','oldMcpConfig','Step\x201/7:\x20Migrating\x20config...','log','Step\x206/7:\x20Installing\x20new\x20skill...','skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)','failed','entries','Step\x205/7:\x20Removing\x20old\x20skill...'];a162_0x207c=function(){return _0x559c4e;};return a162_0x207c();}
@@ -1 +1 @@
1
- const a164_0x4058c4=a164_0x362c;(function(_0x1d12dd,_0x321aae){const _0x376638=a164_0x362c,_0x25fa1b=_0x1d12dd();while(!![]){try{const _0xd92244=-parseInt(_0x376638(0x1b7))/0x1+parseInt(_0x376638(0x1ce))/0x2*(parseInt(_0x376638(0x1fe))/0x3)+parseInt(_0x376638(0x1e0))/0x4+parseInt(_0x376638(0x1d6))/0x5+parseInt(_0x376638(0x1f0))/0x6+-parseInt(_0x376638(0x1e2))/0x7+-parseInt(_0x376638(0x1f7))/0x8;if(_0xd92244===_0x321aae)break;else _0x25fa1b['push'](_0x25fa1b['shift']());}catch(_0x1af318){_0x25fa1b['push'](_0x25fa1b['shift']());}}}(a164_0x5e79,0xa05de));import{apiDefinitions}from'../commands/api/index.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{pageDefinitions}from'../commands/page/index.js';import{dataDefinitions}from'../commands/data/index.js';import{dbDefinitions}from'../commands/db/index.js';import{codegenDefinitions}from'../commands/codegen/index.js';import{menuDefinitions}from'../commands/menu/index.js';import{taskDefinitions}from'../commands/task/index.js';function a164_0x362c(_0x5bfaf9,_0x357df2){_0x5bfaf9=_0x5bfaf9-0x1b4;const _0x5e79ee=a164_0x5e79();let _0x362c25=_0x5e79ee[_0x5bfaf9];return _0x362c25;}import{roleDefinitions}from'../commands/role/index.js';import{permitDefinitions}from'../commands/permit/index.js';import{appDefinitions}from'../commands/app/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/index.js';import{doctorDefinition}from'../commands/doctor.js';import{updateDefinition}from'../commands/cli-update.js';import{schemaDefinition}from'../commands/schema.js';import{issueDefinitions}from'../commands/issue/index.js';function a164_0x5e79(){const _0xf9e58f=['start','filter','`rabetbase\x20knowledge-base\x20','values','skills','from','2721280jsqnju','install','isSingleCommand','knowledge-base','Runtime\x20App\x20Config\x20Management','service','has','write','Workspace','Schema','4545648MoLFqt','get','2928765OoiirW','use','list','knowledge-base\x20','auth','Authentication','create','read','detail','`rabetbase\x20app\x20remote`\x20has\x20been\x20removed.','`\x20has\x20been\x20removed.','app','wildcardDef','Run\x20any\x20package.json\x20script','3774924poBIIQ','app\x20remote','commands','File','Use\x20`rabetbase\x20kb\x20','skill\x20','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20instead.','7678304reCnAv','`rabetbase\x20skills`\x20has\x20been\x20removed.','Quick\x20Start','preview','project','Diagnostics','Project','449937tFvQtq','Dataset\x20&\x20Operations','login','Database\x20Connections','API\x20Development','Run\x20Scripts','Code\x20Generation','1174651PRHRGM','Instant\x20API','Roles','asset-update','Self\x20Update','push','skill','BFF\x20Scripts','Logs','description','delete','run','defaultCommand','CLI\x20Built-in\x20Skill','SQL\x20Queries','show','Platform\x20Issue','App\x20Management','logout','`rabetbase\x20','<script>','update','`rabetbase\x20app\x20use`\x20has\x20been\x20removed.','12onxkPt','command'];a164_0x5e79=function(){return _0xf9e58f;};return a164_0x5e79();}import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{projectDefinitions}from'../commands/project/index.js';import{initDefinitions}from'../commands/init/index.js';import{runDefinition}from'../commands/run/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x49c491){const _0x4fc59f=a164_0x362c;for(const _0x465c36 of _0x49c491){definitions['set'](_0x465c36[_0x4fc59f(0x1db)]+':'+_0x465c36[_0x4fc59f(0x1cf)],_0x465c36);let _0x2c9ecd=serviceGroups[_0x4fc59f(0x1e1)](_0x465c36['service']);!_0x2c9ecd&&(_0x2c9ecd=[],serviceGroups['set'](_0x465c36[_0x4fc59f(0x1db)],_0x2c9ecd)),_0x2c9ecd[_0x4fc59f(0x1bc)](_0x465c36);}}function registerDeclarativeService(_0x2baa46,_0x2a80d6,_0x4d3236){const _0x11b53a=a164_0x362c;registerDefinitions(_0x2a80d6);_0x4d3236?.['wildcardDef']&&registerDefinitions([_0x4d3236['wildcardDef']]);const _0x170075=_0x3b6a64=>_0x3b6a64===_0x11b53a(0x1e9)?'':_0x3b6a64===_0x11b53a(0x1dd)?'\x20\x20[write]':'\x20\x20[high-risk-write]',_0x4bcd4e={'service':_0x2a80d6[0x0][_0x11b53a(0x1db)],'label':_0x2baa46,'commands':_0x2a80d6[_0x11b53a(0x1d1)](_0x2473a3=>!_0x2473a3['hidden'])['map'](_0x5d7e6e=>({'command':_0x5d7e6e['command'],'description':_0x5d7e6e[_0x11b53a(0x1c0)],'tag':_0x170075(_0x5d7e6e['risk'])})),'declarative':!![],'defaultCommand':_0x4d3236?.[_0x11b53a(0x1c3)]??(_0x4d3236?.[_0x11b53a(0x1d8)]?_0x2a80d6[0x0][_0x11b53a(0x1cf)]:undefined),'wildcardDef':_0x4d3236?.[_0x11b53a(0x1ee)],'isSingleCommand':_0x4d3236?.[_0x11b53a(0x1d8)]};serviceRegistry[_0x11b53a(0x1bc)](_0x4bcd4e),serviceByName['set'](_0x4bcd4e[_0x11b53a(0x1db)],_0x4bcd4e);}registerDeclarativeService(a164_0x4058c4(0x1f9),initDefinitions,{'defaultCommand':a164_0x4058c4(0x1c2),'isSingleCommand':!![]}),registerDeclarativeService(a164_0x4058c4(0x1fd),projectDefinitions),registerDeclarativeService(a164_0x4058c4(0x1de),workspaceDefinitions),registerDeclarativeService(a164_0x4058c4(0x1c8),appDefinitions),registerDeclarativeService(a164_0x4058c4(0x1e7),authDefinitions,{'defaultCommand':a164_0x4058c4(0x200)}),registerDeclarativeService(a164_0x4058c4(0x1ff),datasetDefinitions),registerDeclarativeService('Smart\x20List\x20Pages',pageDefinitions),registerDeclarativeService(a164_0x4058c4(0x1b4),apiDefinitions),registerDeclarativeService(a164_0x4058c4(0x1b8),dataDefinitions),registerDeclarativeService(a164_0x4058c4(0x1be),bffDefinitions),registerDeclarativeService('Notification\x20Configuration',notificationDefinitions),registerDeclarativeService(a164_0x4058c4(0x1c5),sqlDefinitions),registerDeclarativeService(a164_0x4058c4(0x201),dbDefinitions),registerDeclarativeService('Menu',menuDefinitions),registerDeclarativeService('Async\x20Tasks',taskDefinitions),registerDeclarativeService(a164_0x4058c4(0x1b9),roleDefinitions),registerDeclarativeService('Permissions',permitDefinitions),registerDeclarativeService(a164_0x4058c4(0x1da),appConfigDefinitions),registerDeclarativeService('Company\x20Knowledge\x20Base',kbDefinitions),registerDeclarativeService(a164_0x4058c4(0x1c7),issueDefinitions),registerDeclarativeService(a164_0x4058c4(0x1f3),fileDefinitions),registerDeclarativeService('OCR',ocrDefinitions),registerDeclarativeService(a164_0x4058c4(0x1b6),codegenDefinitions),registerDeclarativeService('Configuration',configDefinitions),registerDeclarativeService(a164_0x4058c4(0x1fc),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a164_0x4058c4(0x1df),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a164_0x4058c4(0x1bb),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a164_0x4058c4(0x1c4),cliSkillDefinitions,{'defaultCommand':a164_0x4058c4(0x1d7)}),registerDeclarativeService(a164_0x4058c4(0x1bf),logsDefinitions,{'defaultCommand':a164_0x4058c4(0x1c6)}),registerDeclarativeService(a164_0x4058c4(0x1b5),[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry['length']-0x1];last[a164_0x4058c4(0x1f2)]=[{'command':a164_0x4058c4(0x1cb),'description':a164_0x4058c4(0x1ef),'tag':''}];}export const deprecatedAliases={'create':{'service':a164_0x4058c4(0x1fb),'command':'create'},'start':{'service':a164_0x4058c4(0x1c2),'command':a164_0x4058c4(0x1d0)},'build':{'service':a164_0x4058c4(0x1c2),'command':'build'},'preview':{'service':a164_0x4058c4(0x1c2),'command':a164_0x4058c4(0x1fa)},'logout':{'service':a164_0x4058c4(0x1e6),'command':a164_0x4058c4(0x1c9)}};const CLI_SKILL_INSTALL_REMOVED_HINT='Use\x20`rabetbase\x20cli-skill\x20install`\x20to\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill.\x20To\x20install\x20business\x20Skills,\x20use\x20`lovrabet\x20skill\x20install`.',APP_REMOTE_REMOVED_HINT=a164_0x4058c4(0x1f6),APP_USE_REMOVED_HINT='Use\x20`rabetbase\x20workspace\x20use\x20--app\x20<name>`\x20instead.',REMOVED_KNOWLEDGE_BASE_COMMANDS=new Set([a164_0x4058c4(0x1e4),a164_0x4058c4(0x1ea),a164_0x4058c4(0x1e8),a164_0x4058c4(0x1cc),a164_0x4058c4(0x1c1)]);export function resolveRemovedCommand(_0x471176,_0x33bb42){const _0xf0dade=a164_0x4058c4;if(_0x471176==='skill'){const _0x101f22=_0x33bb42?_0xf0dade(0x1f5)+_0x33bb42:_0xf0dade(0x1bd);return{'command':_0x101f22,'message':_0xf0dade(0x1ca)+_0x101f22+_0xf0dade(0x1ec),'hint':CLI_SKILL_INSTALL_REMOVED_HINT};}if(_0x471176===_0xf0dade(0x1d4))return{'command':'skills','message':_0xf0dade(0x1f8),'hint':CLI_SKILL_INSTALL_REMOVED_HINT};if(_0x471176===_0xf0dade(0x1ed)&&_0x33bb42==='remote')return{'command':_0xf0dade(0x1f1),'message':_0xf0dade(0x1eb),'hint':APP_REMOTE_REMOVED_HINT};if(_0x471176===_0xf0dade(0x1ed)&&_0x33bb42===_0xf0dade(0x1e3))return{'command':'app\x20use','message':_0xf0dade(0x1cd),'hint':APP_USE_REMOVED_HINT};if(_0x471176===_0xf0dade(0x1d9)&&_0x33bb42&&REMOVED_KNOWLEDGE_BASE_COMMANDS['has'](_0x33bb42))return{'command':_0xf0dade(0x1e5)+_0x33bb42,'message':_0xf0dade(0x1d2)+_0x33bb42+_0xf0dade(0x1ec),'hint':_0xf0dade(0x1f4)+_0x33bb42+'`\x20instead.'};return undefined;}export const deprecatedSubcommands={'bff':{'new':'create'},'sql':{'new':'create'},'menu':{'update':a164_0x4058c4(0x1ba)}};export function resolveDeprecatedSubcommand(_0x1c5cf9,_0x39021f){return deprecatedSubcommands[_0x1c5cf9]?.[_0x39021f];}export function findDefinition(_0x24dc10,_0x24df19){const _0x254ee6=a164_0x4058c4;return definitions[_0x254ee6(0x1e1)](_0x24dc10+':'+_0x24df19);}export function isKnownService(_0x268c27){const _0x593923=a164_0x4058c4;return serviceByName[_0x593923(0x1dc)](_0x268c27);}export function isDeclarativeService(_0x8d5ffd){const _0x3aac7e=a164_0x4058c4;return serviceGroups[_0x3aac7e(0x1dc)](_0x8d5ffd)||serviceByName[_0x3aac7e(0x1e1)](_0x8d5ffd)?.[_0x3aac7e(0x1ee)]!==undefined;}export function getServiceEntry(_0x3b0992){const _0x173caa=a164_0x4058c4;return serviceByName[_0x173caa(0x1e1)](_0x3b0992);}export function getLegacyHandler(_0x57e06b,_0x230588){return undefined;}export function getAllDefinitions(){const _0x1d8e33=a164_0x4058c4;return Array[_0x1d8e33(0x1d5)](definitions[_0x1d8e33(0x1d3)]());}
1
+ const a163_0x55ad70=a163_0x18a9;(function(_0x3c4da5,_0x523b53){const _0x49a610=a163_0x18a9,_0x2ade83=_0x3c4da5();while(!![]){try{const _0x5e7a6f=-parseInt(_0x49a610(0xea))/0x1*(parseInt(_0x49a610(0xc2))/0x2)+-parseInt(_0x49a610(0xf4))/0x3+-parseInt(_0x49a610(0x102))/0x4*(-parseInt(_0x49a610(0x10b))/0x5)+-parseInt(_0x49a610(0xf3))/0x6*(parseInt(_0x49a610(0xe6))/0x7)+parseInt(_0x49a610(0xba))/0x8+-parseInt(_0x49a610(0xf8))/0x9+parseInt(_0x49a610(0xc8))/0xa;if(_0x5e7a6f===_0x523b53)break;else _0x2ade83['push'](_0x2ade83['shift']());}catch(_0x2a5c57){_0x2ade83['push'](_0x2ade83['shift']());}}}(a163_0x3f2b,0xc2f08));import{apiDefinitions}from'../commands/api/index.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{pageDefinitions}from'../commands/page/index.js';import{dataDefinitions}from'../commands/data/index.js';import{dbDefinitions}from'../commands/db/index.js';import{codegenDefinitions}from'../commands/codegen/index.js';import{menuDefinitions}from'../commands/menu/index.js';import{taskDefinitions}from'../commands/task/index.js';import{tenantDefinitions}from'../commands/tenant/index.js';import{roleDefinitions}from'../commands/role/index.js';import{permitDefinitions}from'../commands/permit/index.js';import{appDefinitions}from'../commands/app/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/index.js';import{doctorDefinition}from'../commands/doctor.js';import{updateDefinition}from'../commands/cli-update.js';import{schemaDefinition}from'../commands/schema.js';import{issueDefinitions}from'../commands/issue/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{projectDefinitions}from'../commands/project/index.js';import{initDefinitions}from'../commands/init/index.js';import{runDefinition}from'../commands/run/index.js';function a163_0x18a9(_0x535643,_0x495aa4){_0x535643=_0x535643-0xb9;const _0x3f2b30=a163_0x3f2b();let _0x18a971=_0x3f2b30[_0x535643];return _0x18a971;}export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x394457){const _0x5a32db=a163_0x18a9;for(const _0x5da6d7 of _0x394457){definitions[_0x5a32db(0x104)](_0x5da6d7[_0x5a32db(0xe3)]+':'+_0x5da6d7[_0x5a32db(0xd1)],_0x5da6d7);let _0x54f2a8=serviceGroups[_0x5a32db(0xfc)](_0x5da6d7[_0x5a32db(0xe3)]);!_0x54f2a8&&(_0x54f2a8=[],serviceGroups['set'](_0x5da6d7[_0x5a32db(0xe3)],_0x54f2a8)),_0x54f2a8[_0x5a32db(0x10d)](_0x5da6d7);}}function registerDeclarativeService(_0x5e2e54,_0xf7eb6e,_0x2efb69){const _0x88e6ef=a163_0x18a9;registerDefinitions(_0xf7eb6e);_0x2efb69?.['wildcardDef']&&registerDefinitions([_0x2efb69[_0x88e6ef(0xef)]]);const _0x426b48=_0xd8cbd4=>_0xd8cbd4===_0x88e6ef(0xd7)?'':_0xd8cbd4==='write'?_0x88e6ef(0xda):'\x20\x20[high-risk-write]',_0x5db5c1={'service':_0xf7eb6e[0x0][_0x88e6ef(0xe3)],'label':_0x5e2e54,'commands':_0xf7eb6e[_0x88e6ef(0xe0)](_0x1e5e19=>!_0x1e5e19[_0x88e6ef(0x110)])[_0x88e6ef(0x100)](_0x4e67d5=>({'command':_0x4e67d5[_0x88e6ef(0xd1)],'description':_0x4e67d5[_0x88e6ef(0xc0)],'tag':_0x426b48(_0x4e67d5[_0x88e6ef(0xd0)])})),'declarative':!![],'defaultCommand':_0x2efb69?.[_0x88e6ef(0xc3)]??(_0x2efb69?.['isSingleCommand']?_0xf7eb6e[0x0][_0x88e6ef(0xd1)]:undefined),'wildcardDef':_0x2efb69?.['wildcardDef'],'isSingleCommand':_0x2efb69?.[_0x88e6ef(0xfb)]};serviceRegistry[_0x88e6ef(0x10d)](_0x5db5c1),serviceByName[_0x88e6ef(0x104)](_0x5db5c1['service'],_0x5db5c1);}registerDeclarativeService(a163_0x55ad70(0xbd),initDefinitions,{'defaultCommand':a163_0x55ad70(0xff),'isSingleCommand':!![]}),registerDeclarativeService(a163_0x55ad70(0xdc),projectDefinitions),registerDeclarativeService(a163_0x55ad70(0x109),workspaceDefinitions),registerDeclarativeService(a163_0x55ad70(0xd8),appDefinitions),registerDeclarativeService(a163_0x55ad70(0xde),authDefinitions,{'defaultCommand':a163_0x55ad70(0xcd)}),registerDeclarativeService(a163_0x55ad70(0x111),tenantDefinitions),registerDeclarativeService(a163_0x55ad70(0xe4),datasetDefinitions),registerDeclarativeService(a163_0x55ad70(0x106),pageDefinitions),registerDeclarativeService(a163_0x55ad70(0xf1),apiDefinitions),registerDeclarativeService(a163_0x55ad70(0x10e),dataDefinitions),registerDeclarativeService(a163_0x55ad70(0xfe),bffDefinitions),registerDeclarativeService(a163_0x55ad70(0xb9),notificationDefinitions),registerDeclarativeService(a163_0x55ad70(0xee),sqlDefinitions),registerDeclarativeService(a163_0x55ad70(0xc5),dbDefinitions),registerDeclarativeService(a163_0x55ad70(0xed),menuDefinitions),registerDeclarativeService(a163_0x55ad70(0xf6),taskDefinitions),registerDeclarativeService(a163_0x55ad70(0xc7),roleDefinitions),registerDeclarativeService(a163_0x55ad70(0xbe),permitDefinitions),registerDeclarativeService(a163_0x55ad70(0xbf),appConfigDefinitions),registerDeclarativeService(a163_0x55ad70(0xc6),kbDefinitions),registerDeclarativeService(a163_0x55ad70(0x10c),issueDefinitions),registerDeclarativeService(a163_0x55ad70(0x113),fileDefinitions),registerDeclarativeService(a163_0x55ad70(0xbb),ocrDefinitions),registerDeclarativeService('Code\x20Generation',codegenDefinitions),registerDeclarativeService(a163_0x55ad70(0xfa),configDefinitions),registerDeclarativeService(a163_0x55ad70(0xfd),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a163_0x55ad70(0xe8),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a163_0x55ad70(0xd5),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a163_0x55ad70(0xcb),cliSkillDefinitions,{'defaultCommand':'install'}),registerDeclarativeService(a163_0x55ad70(0xd3),logsDefinitions,{'defaultCommand':a163_0x55ad70(0xcf)}),registerDeclarativeService(a163_0x55ad70(0xc1),[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry['length']-0x1];last[a163_0x55ad70(0xe9)]=[{'command':a163_0x55ad70(0xe5),'description':a163_0x55ad70(0xe1),'tag':''}];}export const deprecatedAliases={'create':{'service':'project','command':a163_0x55ad70(0xf5)},'start':{'service':a163_0x55ad70(0xff),'command':a163_0x55ad70(0x114)},'build':{'service':a163_0x55ad70(0xff),'command':a163_0x55ad70(0xf2)},'preview':{'service':a163_0x55ad70(0xff),'command':a163_0x55ad70(0xd2)},'logout':{'service':a163_0x55ad70(0xce),'command':a163_0x55ad70(0xd6)}};const CLI_SKILL_INSTALL_REMOVED_HINT=a163_0x55ad70(0x116),APP_REMOTE_REMOVED_HINT=a163_0x55ad70(0x107),APP_USE_REMOVED_HINT=a163_0x55ad70(0xf9),APP_ADD_REMOVED_HINT=a163_0x55ad70(0xcc),APP_REMOVE_REMOVED_HINT=a163_0x55ad70(0xf7),REMOVED_KNOWLEDGE_BASE_COMMANDS=new Set([a163_0x55ad70(0x101),'detail',a163_0x55ad70(0xf5),a163_0x55ad70(0xe2),a163_0x55ad70(0x112)]);export function resolveRemovedCommand(_0x477d7c,_0x56182d){const _0x3e701a=a163_0x55ad70;if(_0x477d7c===_0x3e701a(0x108)){const _0x369452=_0x56182d?'skill\x20'+_0x56182d:_0x3e701a(0x108);return{'command':_0x369452,'message':_0x3e701a(0x103)+_0x369452+_0x3e701a(0xbc),'hint':CLI_SKILL_INSTALL_REMOVED_HINT};}if(_0x477d7c===_0x3e701a(0xe7))return{'command':'skills','message':'`rabetbase\x20skills`\x20has\x20been\x20removed.','hint':CLI_SKILL_INSTALL_REMOVED_HINT};if(_0x477d7c==='app'&&_0x56182d===_0x3e701a(0xd9))return{'command':'app\x20remote','message':_0x3e701a(0x10a),'hint':APP_REMOTE_REMOVED_HINT};if(_0x477d7c===_0x3e701a(0x10f)&&_0x56182d===_0x3e701a(0xf0))return{'command':_0x3e701a(0xc4),'message':'`rabetbase\x20app\x20use`\x20has\x20been\x20removed.','hint':APP_USE_REMOVED_HINT};if(_0x477d7c===_0x3e701a(0x10f)&&_0x56182d===_0x3e701a(0x105))return{'command':'app\x20add','message':_0x3e701a(0xca),'hint':APP_ADD_REMOVED_HINT};if(_0x477d7c===_0x3e701a(0x10f)&&_0x56182d===_0x3e701a(0xec))return{'command':'app\x20remove','message':'`rabetbase\x20app\x20remove`\x20has\x20been\x20removed.','hint':APP_REMOVE_REMOVED_HINT};if(_0x477d7c===_0x3e701a(0xdf)&&_0x56182d&&REMOVED_KNOWLEDGE_BASE_COMMANDS[_0x3e701a(0xdd)](_0x56182d))return{'command':_0x3e701a(0xeb)+_0x56182d,'message':'`rabetbase\x20knowledge-base\x20'+_0x56182d+_0x3e701a(0xbc),'hint':'Use\x20`rabetbase\x20kb\x20'+_0x56182d+_0x3e701a(0xc9)};return undefined;}export const deprecatedSubcommands={'bff':{'new':a163_0x55ad70(0xf5)},'sql':{'new':a163_0x55ad70(0xf5)},'menu':{'update':a163_0x55ad70(0x115)}};export function resolveDeprecatedSubcommand(_0x2b32ce,_0x34350e){return deprecatedSubcommands[_0x2b32ce]?.[_0x34350e];}export function findDefinition(_0x4a2d55,_0x16866d){const _0x2c1c4b=a163_0x55ad70;return definitions[_0x2c1c4b(0xfc)](_0x4a2d55+':'+_0x16866d);}export function isKnownService(_0x1bb561){return serviceByName['has'](_0x1bb561);}export function isDeclarativeService(_0x4397b1){const _0x5f3bb1=a163_0x55ad70;return serviceGroups['has'](_0x4397b1)||serviceByName[_0x5f3bb1(0xfc)](_0x4397b1)?.[_0x5f3bb1(0xef)]!==undefined;}function a163_0x3f2b(){const _0x12690d=['`rabetbase\x20app\x20add`\x20has\x20been\x20removed.','CLI\x20Built-in\x20Skill','Use\x20`rabetbase\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20instead.','login','auth','show','risk','command','preview','Logs','values','Self\x20Update','logout','read','App\x20Management','remote','\x20\x20[write]','from','Project','has','Authentication','knowledge-base','filter','Run\x20any\x20package.json\x20script','update','service','Dataset\x20&\x20Operations','<script>','811503elLcIt','skills','Schema','commands','1060175aFWJjL','knowledge-base\x20','remove','Menu','SQL\x20Queries','wildcardDef','use','API\x20Development','build','42XnZxOG','1552803ZxOCRw','create','Async\x20Tasks','Use\x20`rabetbase\x20workspace\x20remove\x20<name>`\x20instead.','9636066KKltzw','Use\x20`rabetbase\x20workspace\x20use\x20--app\x20<name>`\x20instead.','Configuration','isSingleCommand','get','Diagnostics','BFF\x20Scripts','run','map','list','24EMgCGn','`rabetbase\x20','set','add','Smart\x20List\x20Pages','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20instead.','skill','Workspace','`rabetbase\x20app\x20remote`\x20has\x20been\x20removed.','127805TsAXzE','Platform\x20Issue','push','Instant\x20API','app','hidden','Tenant\x20Members','delete','File','start','asset-update','Use\x20`rabetbase\x20cli-skill\x20install`\x20to\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill.\x20To\x20install\x20business\x20Skills,\x20use\x20`lovrabet\x20skill\x20install`.','Notification\x20Configuration','11557824blgjVr','OCR','`\x20has\x20been\x20removed.','Quick\x20Start','Permissions','Runtime\x20App\x20Config\x20Management','description','Run\x20Scripts','2ykjRKW','defaultCommand','app\x20use','Database\x20Connections','Company\x20Knowledge\x20Base','Roles','26603310OYcrez','`\x20instead.'];a163_0x3f2b=function(){return _0x12690d;};return a163_0x3f2b();}export function getServiceEntry(_0x46969b){const _0x48ccf2=a163_0x55ad70;return serviceByName[_0x48ccf2(0xfc)](_0x46969b);}export function getLegacyHandler(_0x344a45,_0x142c6c){return undefined;}export function getAllDefinitions(){const _0x22d2bd=a163_0x55ad70;return Array[_0x22d2bd(0xdb)](definitions[_0x22d2bd(0xd4)]());}
@@ -1 +1 @@
1
- const a165_0x5e8599=a165_0x2a64;(function(_0x56b412,_0x38e82f){const _0x23c5cf=a165_0x2a64,_0x33137e=_0x56b412();while(!![]){try{const _0x5567e8=parseInt(_0x23c5cf(0x180))/0x1+-parseInt(_0x23c5cf(0x181))/0x2+parseInt(_0x23c5cf(0x176))/0x3+-parseInt(_0x23c5cf(0x187))/0x4+parseInt(_0x23c5cf(0x185))/0x5+-parseInt(_0x23c5cf(0x174))/0x6*(-parseInt(_0x23c5cf(0x182))/0x7)+parseInt(_0x23c5cf(0x179))/0x8*(-parseInt(_0x23c5cf(0x17e))/0x9);if(_0x5567e8===_0x38e82f)break;else _0x33137e['push'](_0x33137e['shift']());}catch(_0x29c975){_0x33137e['push'](_0x33137e['shift']());}}}(a165_0x1749,0x297f8));import{createAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a165_0x2a64(_0x5e7b5f,_0x58dc20){_0x5e7b5f=_0x5e7b5f-0x16e;const _0x1749c8=a165_0x1749();let _0x2a642f=_0x1749c8[_0x5e7b5f];return _0x2a642f;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{NAME_FLAG,REMARK_FLAG,projectRole}from'../../commands/role/shared.js';function a165_0x1749(){const _0x19395b=['60wtSIWk','length','523332sMnXtI','write','trim','8QeqIzS','/smartapi/permit/role/create','Create\x20a\x20CUSTOM\x20user\x20group\x20(role)','\x20(id=','name','1095741TJBWNx','CUSTOM','149580PVHWlr','32450mFWDIn','162106wBvevT','roleName','str','7800TkALuQ','POST','996856DlDMlN','appCode','validation','role','Created\x20role\x20','create','flagMissing','Role\x20name\x20cannot\x20exceed\x2064\x20characters.','remark'];a165_0x1749=function(){return _0x19395b;};return a165_0x1749();}const CREATE_PATH=a165_0x5e8599(0x17a);function readName(_0x4d8584){const _0x5205b7=a165_0x5e8599,_0x4e896c=_0x4d8584['str'](_0x5205b7(0x17d))[_0x5205b7(0x178)]();if(!_0x4e896c)throw CliErrors[_0x5205b7(0x171)](_0x5205b7(0x17d),'Pass\x20--name\x20<roleName>.');if(_0x4e896c[_0x5205b7(0x175)]>0x40)throw CliErrors[_0x5205b7(0x189)](_0x5205b7(0x172));return _0x4e896c;}export const roleCreate={'service':a165_0x5e8599(0x16e),'command':a165_0x5e8599(0x170),'description':a165_0x5e8599(0x17b),'risk':a165_0x5e8599(0x177),'flags':[NAME_FLAG,REMARK_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x9f928a){readName(_0x9f928a);},async 'dryRun'(_0x538ced){const _0xd851a7=a165_0x5e8599,_0x226aea=readName(_0x538ced),_0x46a555=_0x538ced[_0xd851a7(0x184)](_0xd851a7(0x173))[_0xd851a7(0x178)]()||undefined;return asDryRunResult({'operation':_0xd851a7(0x170),'selector':{'appCode':_0x538ced['appCode'],'roleName':_0x226aea},'before':null,'after':{'roleName':_0x226aea,'roleType':_0xd851a7(0x17f),'remark':_0x46a555},'dryRun':!![],'backend':{'method':_0xd851a7(0x186),'path':CREATE_PATH},'warnings':[]},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x299e2a){const _0x150c6d=a165_0x5e8599,_0x56c925=readName(_0x299e2a),_0x5eebd8=_0x299e2a[_0x150c6d(0x184)]('remark')[_0x150c6d(0x178)]()||undefined,_0x5e1f8a=await createAppRole({'appCode':_0x299e2a[_0x150c6d(0x188)],'roleName':_0x56c925,..._0x5eebd8?{'remark':_0x5eebd8}:{}});return{'ok':!![],'data':{'operation':_0x150c6d(0x170),'selector':{'appCode':_0x299e2a[_0x150c6d(0x188)],'roleId':_0x5e1f8a['id'],'roleName':_0x56c925},'before':null,'after':projectRole(_0x5e1f8a),'dryRun':![],'backend':{'method':_0x150c6d(0x186),'path':CREATE_PATH},'warnings':[]},'message':_0x150c6d(0x16f)+_0x5e1f8a[_0x150c6d(0x183)]+_0x150c6d(0x17c)+_0x5e1f8a['id']+')'};}};
1
+ const a164_0x771507=a164_0x589c;(function(_0x57dff2,_0xd03e5b){const _0x1cb9a8=a164_0x589c,_0x447726=_0x57dff2();while(!![]){try{const _0x121087=-parseInt(_0x1cb9a8(0x9f))/0x1+-parseInt(_0x1cb9a8(0x9c))/0x2*(-parseInt(_0x1cb9a8(0xa2))/0x3)+parseInt(_0x1cb9a8(0xa0))/0x4*(parseInt(_0x1cb9a8(0xb2))/0x5)+parseInt(_0x1cb9a8(0xa4))/0x6*(-parseInt(_0x1cb9a8(0xa5))/0x7)+parseInt(_0x1cb9a8(0xb0))/0x8*(-parseInt(_0x1cb9a8(0xae))/0x9)+parseInt(_0x1cb9a8(0xa6))/0xa+-parseInt(_0x1cb9a8(0x9a))/0xb*(-parseInt(_0x1cb9a8(0xa1))/0xc);if(_0x121087===_0xd03e5b)break;else _0x447726['push'](_0x447726['shift']());}catch(_0x233ab6){_0x447726['push'](_0x447726['shift']());}}}(a164_0x11cb,0x26e8a));import{createAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{NAME_FLAG,REMARK_FLAG,projectRole}from'../../commands/role/shared.js';const CREATE_PATH=a164_0x771507(0xa3);function readName(_0x17fdb9){const _0x4cfdb2=a164_0x771507,_0x23d727=_0x17fdb9[_0x4cfdb2(0xaa)](_0x4cfdb2(0x9d))[_0x4cfdb2(0xa8)]();if(!_0x23d727)throw CliErrors[_0x4cfdb2(0xb1)](_0x4cfdb2(0x9d),_0x4cfdb2(0xab));if(_0x23d727[_0x4cfdb2(0xa7)]>0x40)throw CliErrors[_0x4cfdb2(0x96)](_0x4cfdb2(0xa9));return _0x23d727;}export const roleCreate={'service':a164_0x771507(0x98),'command':a164_0x771507(0xaf),'description':a164_0x771507(0x9e),'risk':'write','flags':[NAME_FLAG,REMARK_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x446015){readName(_0x446015);},async 'dryRun'(_0xf3a37c){const _0x32d7b4=a164_0x771507,_0x4a9497=readName(_0xf3a37c),_0x445053=_0xf3a37c[_0x32d7b4(0xaa)](_0x32d7b4(0x99))[_0x32d7b4(0xa8)]()||undefined;return asDryRunResult({'operation':_0x32d7b4(0xaf),'selector':{'appCode':_0xf3a37c[_0x32d7b4(0x97)],'roleName':_0x4a9497},'before':null,'after':{'roleName':_0x4a9497,'roleType':_0x32d7b4(0xad),'remark':_0x445053},'dryRun':!![],'backend':{'method':_0x32d7b4(0x9b),'path':CREATE_PATH},'warnings':[]},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x51cace){const _0x518b2a=a164_0x771507,_0x3ef43c=readName(_0x51cace),_0x2f745b=_0x51cace[_0x518b2a(0xaa)](_0x518b2a(0x99))['trim']()||undefined,_0x151789=await createAppRole({'appCode':_0x51cace['appCode'],'roleName':_0x3ef43c,..._0x2f745b?{'remark':_0x2f745b}:{}});return{'ok':!![],'data':{'operation':_0x518b2a(0xaf),'selector':{'appCode':_0x51cace[_0x518b2a(0x97)],'roleId':_0x151789['id'],'roleName':_0x3ef43c},'before':null,'after':projectRole(_0x151789),'dryRun':![],'backend':{'method':_0x518b2a(0x9b),'path':CREATE_PATH},'warnings':[]},'message':'Created\x20role\x20'+_0x151789[_0x518b2a(0xac)]+'\x20(id='+_0x151789['id']+')'};}};function a164_0x589c(_0x4b0710,_0x2fd351){_0x4b0710=_0x4b0710-0x96;const _0x11cbc7=a164_0x11cb();let _0x589c59=_0x11cbc7[_0x4b0710];return _0x589c59;}function a164_0x11cb(){const _0x56607d=['288873PCSYAN','4JMsAyw','12HozJSL','657453FYUuMx','/smartapi/permit/role/create','6gIHaUD','691838KiuPVw','1067220hBpCWy','length','trim','Role\x20name\x20cannot\x20exceed\x2064\x20characters.','str','Pass\x20--name\x20<roleName>.','roleName','CUSTOM','9tIAoXq','create','1215904xzEDjW','flagMissing','1501205ocSgyb','validation','appCode','role','remark','802461lIrFlY','POST','2CyCjtx','name','Create\x20a\x20CUSTOM\x20user\x20group\x20(role)'];a164_0x11cb=function(){return _0x56607d;};return a164_0x11cb();}
@@ -1 +1 @@
1
- function a166_0x47a9(){const _0xf96580=['157867xZmFrg','999nLUjty','POST','/smartapi/permit/role/delete','2870328YMVSBB','userCount','num','7zAxiZB','delete','Role\x20still\x20has\x20','appCode','\x20(id=','Delete\x20a\x20CUSTOM\x20role\x20(DEV/ADMIN\x20rejected);\x20requires\x20--yes','1784220UkgRrL','role','Deleted\x20role\x20','5hzqXKH','8493588MxtHzb','77530uSGGUi','14KPIWJk','high-risk-write','roleName','923332ONfRDa','18693631lcxTmD'];a166_0x47a9=function(){return _0xf96580;};return a166_0x47a9();}const a166_0x20e590=a166_0x3960;(function(_0x59e51c,_0x3a24d2){const _0xbaea9a=a166_0x3960,_0xc34be6=_0x59e51c();while(!![]){try{const _0x427cb8=parseInt(_0xbaea9a(0xd5))/0x1*(-parseInt(_0xbaea9a(0xe8))/0x2)+parseInt(_0xbaea9a(0xe2))/0x3+parseInt(_0xbaea9a(0xeb))/0x4*(-parseInt(_0xbaea9a(0xe5))/0x5)+-parseInt(_0xbaea9a(0xe6))/0x6+-parseInt(_0xbaea9a(0xdc))/0x7*(-parseInt(_0xbaea9a(0xd9))/0x8)+parseInt(_0xbaea9a(0xd6))/0x9*(parseInt(_0xbaea9a(0xe7))/0xa)+parseInt(_0xbaea9a(0xd4))/0xb;if(_0x427cb8===_0x3a24d2)break;else _0xc34be6['push'](_0xc34be6['shift']());}catch(_0xdc0b53){_0xc34be6['push'](_0xc34be6['shift']());}}}(a166_0x47a9,0xba0b3));import{deleteAppRole}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a166_0x3960(_0x3ad5cd,_0x407f88){_0x3ad5cd=_0x3ad5cd-0xd4;const _0x47a9d9=a166_0x47a9();let _0x3960c5=_0x47a9d9[_0x3ad5cd];return _0x3960c5;}import{assertCustomRole,getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';const DELETE_PATH=a166_0x20e590(0xd8);export const roleDelete={'service':a166_0x20e590(0xe3),'command':a166_0x20e590(0xdd),'description':a166_0x20e590(0xe1),'risk':a166_0x20e590(0xe9),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x24354d){const _0x2b2eca=a166_0x20e590,_0x25bc22=_0x24354d[_0x2b2eca(0xdb)]('id'),_0x2a48c2=await getRoleById(_0x24354d[_0x2b2eca(0xdf)],_0x25bc22);return assertCustomRole(_0x2a48c2,'delete'),asDryRunResult({'operation':_0x2b2eca(0xdd),'selector':{'appCode':_0x24354d[_0x2b2eca(0xdf)],'roleId':_0x25bc22,'roleName':_0x2a48c2['roleName']},'before':projectRole(_0x2a48c2),'after':null,'dryRun':!![],'backend':{'method':_0x2b2eca(0xd7),'path':DELETE_PATH},'warnings':_0x2a48c2['userCount']>0x0?[_0x2b2eca(0xde)+_0x2a48c2[_0x2b2eca(0xda)]+'\x20member(s);\x20they\x20will\x20lose\x20this\x20group.']:[]},{'method':_0x2b2eca(0xd7),'url':DELETE_PATH});},async 'execute'(_0x19ccc3){const _0x58d336=a166_0x20e590,_0x4e45e8=_0x19ccc3[_0x58d336(0xdb)]('id'),_0x58780e=await getRoleById(_0x19ccc3[_0x58d336(0xdf)],_0x4e45e8);return assertCustomRole(_0x58780e,_0x58d336(0xdd)),await deleteAppRole(_0x4e45e8),{'ok':!![],'data':{'operation':_0x58d336(0xdd),'selector':{'appCode':_0x19ccc3[_0x58d336(0xdf)],'roleId':_0x4e45e8,'roleName':_0x58780e[_0x58d336(0xea)]},'before':projectRole(_0x58780e),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[]},'message':_0x58d336(0xe4)+_0x58780e[_0x58d336(0xea)]+_0x58d336(0xe0)+_0x4e45e8+')'};}};
1
+ const a165_0x1b011c=a165_0x1a6e;function a165_0x1a6e(_0x5b189d,_0xd05622){_0x5b189d=_0x5b189d-0x1e5;const _0x37a3ac=a165_0x37a3();let _0x1a6e5d=_0x37a3ac[_0x5b189d];return _0x1a6e5d;}(function(_0x19aa8e,_0x46e34b){const _0x24d74f=a165_0x1a6e,_0x2ad778=_0x19aa8e();while(!![]){try{const _0x1dad72=parseInt(_0x24d74f(0x1f1))/0x1*(parseInt(_0x24d74f(0x1fe))/0x2)+parseInt(_0x24d74f(0x1f4))/0x3*(parseInt(_0x24d74f(0x1f9))/0x4)+parseInt(_0x24d74f(0x1fb))/0x5*(-parseInt(_0x24d74f(0x1ef))/0x6)+-parseInt(_0x24d74f(0x1fa))/0x7+-parseInt(_0x24d74f(0x1ea))/0x8*(-parseInt(_0x24d74f(0x1f6))/0x9)+parseInt(_0x24d74f(0x1f8))/0xa+parseInt(_0x24d74f(0x1e5))/0xb*(-parseInt(_0x24d74f(0x1fc))/0xc);if(_0x1dad72===_0x46e34b)break;else _0x2ad778['push'](_0x2ad778['shift']());}catch(_0x24fa19){_0x2ad778['push'](_0x2ad778['shift']());}}}(a165_0x37a3,0xb207d));import{deleteAppRole}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCustomRole,getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';const DELETE_PATH=a165_0x1b011c(0x1e8);function a165_0x37a3(){const _0x1c2f80=['Delete\x20a\x20CUSTOM\x20role\x20(DEV/ADMIN\x20rejected);\x20requires\x20--yes','1bmEJtn','Deleted\x20role\x20','roleName','39ZLNGNR','role','6432570hrKyHO','\x20member(s);\x20they\x20will\x20lose\x20this\x20group.','5567800Pqzfbs','288836spLanR','6793143fnmEfW','35wbshMr','160092QFNmnb','POST','2366246mXLuJF','891JttEhm','\x20(id=','num','/smartapi/permit/role/delete','userCount','8dFcuwI','appCode','delete','Role\x20still\x20has\x20','high-risk-write','525486hIjmgW'];a165_0x37a3=function(){return _0x1c2f80;};return a165_0x37a3();}export const roleDelete={'service':a165_0x1b011c(0x1f5),'command':a165_0x1b011c(0x1ec),'description':a165_0x1b011c(0x1f0),'risk':a165_0x1b011c(0x1ee),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x589c2d){const _0x4b53ef=a165_0x1b011c,_0x55b42a=_0x589c2d[_0x4b53ef(0x1e7)]('id'),_0xff8e31=await getRoleById(_0x589c2d[_0x4b53ef(0x1eb)],_0x55b42a);return assertCustomRole(_0xff8e31,_0x4b53ef(0x1ec)),asDryRunResult({'operation':'delete','selector':{'appCode':_0x589c2d[_0x4b53ef(0x1eb)],'roleId':_0x55b42a,'roleName':_0xff8e31[_0x4b53ef(0x1f3)]},'before':projectRole(_0xff8e31),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0xff8e31[_0x4b53ef(0x1e9)]>0x0?[_0x4b53ef(0x1ed)+_0xff8e31['userCount']+_0x4b53ef(0x1f7)]:[]},{'method':_0x4b53ef(0x1fd),'url':DELETE_PATH});},async 'execute'(_0x9f62c8){const _0x5dcd59=a165_0x1b011c,_0x564a83=_0x9f62c8[_0x5dcd59(0x1e7)]('id'),_0x3f2205=await getRoleById(_0x9f62c8[_0x5dcd59(0x1eb)],_0x564a83);return assertCustomRole(_0x3f2205,_0x5dcd59(0x1ec)),await deleteAppRole(_0x564a83),{'ok':!![],'data':{'operation':_0x5dcd59(0x1ec),'selector':{'appCode':_0x9f62c8['appCode'],'roleId':_0x564a83,'roleName':_0x3f2205[_0x5dcd59(0x1f3)]},'before':projectRole(_0x3f2205),'after':null,'dryRun':![],'backend':{'method':_0x5dcd59(0x1fd),'path':DELETE_PATH},'warnings':[]},'message':_0x5dcd59(0x1f2)+_0x3f2205[_0x5dcd59(0x1f3)]+_0x5dcd59(0x1e6)+_0x564a83+')'};}};
@@ -1 +1 @@
1
- const a167_0x9140f1=a167_0x59ff;(function(_0x1ed1e3,_0x4f05f0){const _0x135761=a167_0x59ff,_0x1b55ce=_0x1ed1e3();while(!![]){try{const _0x1e4877=-parseInt(_0x135761(0xd8))/0x1+parseInt(_0x135761(0xc6))/0x2*(parseInt(_0x135761(0xce))/0x3)+-parseInt(_0x135761(0xd4))/0x4*(-parseInt(_0x135761(0xca))/0x5)+-parseInt(_0x135761(0xd6))/0x6*(parseInt(_0x135761(0xcb))/0x7)+parseInt(_0x135761(0xc9))/0x8*(parseInt(_0x135761(0xd0))/0x9)+parseInt(_0x135761(0xcd))/0xa*(parseInt(_0x135761(0xd2))/0xb)+-parseInt(_0x135761(0xd1))/0xc*(parseInt(_0x135761(0xd5))/0xd);if(_0x1e4877===_0x4f05f0)break;else _0x1b55ce['push'](_0x1b55ce['shift']());}catch(_0x52c3b7){_0x1b55ce['push'](_0x1b55ce['shift']());}}}(a167_0x30d9,0xb8957));function a167_0x59ff(_0x306819,_0xf6729b){_0x306819=_0x306819-0xc5;const _0x30d9e3=a167_0x30d9();let _0x59ff47=_0x30d9e3[_0x306819];return _0x59ff47;}function a167_0x30d9(){const _0x12ea93=['Show\x20a\x20single\x20role\x27s\x20detail','roleType','read','106090RzehpZ','detail','appCode','11712584hPoOhV','7060aXDZij','7nNIWtu','role','70UHXmdd','6cegCBt','Role\x20','9SneNzO','24384QdUiHi','943393mqOTvL','roleName','1816BeBVoP','4082LkODQa','3715854cVOFdY','num','798140umNCBV'];a167_0x30d9=function(){return _0x12ea93;};return a167_0x30d9();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';export const roleDetail={'service':a167_0x9140f1(0xcc),'command':a167_0x9140f1(0xc7),'description':a167_0x9140f1(0xd9),'risk':a167_0x9140f1(0xc5),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xae82c2){const _0x5a3990=a167_0x9140f1,_0x379624=_0xae82c2[_0x5a3990(0xd7)]('id'),_0x5b52a3=await getRoleById(_0xae82c2[_0x5a3990(0xc8)],_0x379624);return{'ok':!![],'data':{'role':projectRole(_0x5b52a3)},'message':_0x5a3990(0xcf)+_0x5b52a3[_0x5a3990(0xd3)]+'\x20('+_0x5b52a3[_0x5a3990(0xda)]+')'};}};
1
+ function a166_0x45a0(){const _0x761708=['read','roleType','258VWOuxg','role','465112cEYqUc','roleName','90nCkIZH','23xFvpys','num','19322MVsqVq','152IfDseC','Role\x20','appCode','5680587BAjYiA','detail','85141UxCNgf','55275WzATiH','27515hygpQS','171729TJtQzI'];a166_0x45a0=function(){return _0x761708;};return a166_0x45a0();}function a166_0x16ae(_0xe74e6b,_0x1b7704){_0xe74e6b=_0xe74e6b-0x12e;const _0x45a008=a166_0x45a0();let _0x16aeca=_0x45a008[_0xe74e6b];return _0x16aeca;}const a166_0x59edf7=a166_0x16ae;(function(_0x30dca3,_0x206e83){const _0x4e8392=a166_0x16ae,_0xde2474=_0x30dca3();while(!![]){try{const _0x350e77=-parseInt(_0x4e8392(0x13f))/0x1*(parseInt(_0x4e8392(0x12e))/0x2)+parseInt(_0x4e8392(0x135))/0x3+parseInt(_0x4e8392(0x13c))/0x4+parseInt(_0x4e8392(0x136))/0x5*(-parseInt(_0x4e8392(0x13a))/0x6)+parseInt(_0x4e8392(0x134))/0x7*(-parseInt(_0x4e8392(0x12f))/0x8)+-parseInt(_0x4e8392(0x137))/0x9*(-parseInt(_0x4e8392(0x13e))/0xa)+parseInt(_0x4e8392(0x132))/0xb;if(_0x350e77===_0x206e83)break;else _0xde2474['push'](_0xde2474['shift']());}catch(_0x4518f8){_0xde2474['push'](_0xde2474['shift']());}}}(a166_0x45a0,0x20738));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';export const roleDetail={'service':a166_0x59edf7(0x13b),'command':a166_0x59edf7(0x133),'description':'Show\x20a\x20single\x20role\x27s\x20detail','risk':a166_0x59edf7(0x138),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2a51e7){const _0x5e33a5=a166_0x59edf7,_0x1cf634=_0x2a51e7[_0x5e33a5(0x140)]('id'),_0x6b907b=await getRoleById(_0x2a51e7[_0x5e33a5(0x131)],_0x1cf634);return{'ok':!![],'data':{'role':projectRole(_0x6b907b)},'message':_0x5e33a5(0x130)+_0x6b907b[_0x5e33a5(0x13d)]+'\x20('+_0x6b907b[_0x5e33a5(0x139)]+')'};}};
@@ -1 +1 @@
1
- function a168_0x4dd0(){const _0x3da6f6=['1934178tfoaGB','50LhGtsH','1816592LydxXn','1384524YhekpX','5eOXOEF','28914VByFOR','2624607vVlQcQ','2300319kIpaAd','17dwkqUz','2971064HEbVyz'];a168_0x4dd0=function(){return _0x3da6f6;};return a168_0x4dd0();}(function(_0x22656a,_0x16381c){const _0x47f16e=a168_0x19b0,_0x1780ad=_0x22656a();while(!![]){try{const _0x40ac88=parseInt(_0x47f16e(0x11d))/0x1*(-parseInt(_0x47f16e(0x11a))/0x2)+-parseInt(_0x47f16e(0x118))/0x3+-parseInt(_0x47f16e(0x11e))/0x4*(parseInt(_0x47f16e(0x119))/0x5)+parseInt(_0x47f16e(0x115))/0x6+parseInt(_0x47f16e(0x11c))/0x7+-parseInt(_0x47f16e(0x117))/0x8+parseInt(_0x47f16e(0x11b))/0x9*(parseInt(_0x47f16e(0x116))/0xa);if(_0x40ac88===_0x16381c)break;else _0x1780ad['push'](_0x1780ad['shift']());}catch(_0x1a46fa){_0x1780ad['push'](_0x1780ad['shift']());}}}(a168_0x4dd0,0x6976a));import{roleList}from'../../commands/role/list.js';import{roleDetail}from'../../commands/role/detail.js';import{roleCreate}from'../../commands/role/create.js';import{roleUpdate}from'../../commands/role/update.js';import{roleDelete}from'../../commands/role/delete.js';import{roleUserResolve}from'../../commands/role/user-resolve.js';import{roleUserAdd}from'../../commands/role/user-add.js';import{roleUserRemove}from'../../commands/role/user-remove.js';function a168_0x19b0(_0x5c4546,_0x256d72){_0x5c4546=_0x5c4546-0x115;const _0x4dd0af=a168_0x4dd0();let _0x19b0fb=_0x4dd0af[_0x5c4546];return _0x19b0fb;}export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserResolve,roleUserAdd,roleUserRemove];
1
+ (function(_0x4a3519,_0x46accd){const _0x30225d=a167_0x5ef0,_0x18ae62=_0x4a3519();while(!![]){try{const _0x424ad4=parseInt(_0x30225d(0x142))/0x1+parseInt(_0x30225d(0x13e))/0x2+-parseInt(_0x30225d(0x13f))/0x3+-parseInt(_0x30225d(0x13d))/0x4+-parseInt(_0x30225d(0x140))/0x5*(parseInt(_0x30225d(0x141))/0x6)+parseInt(_0x30225d(0x13c))/0x7+parseInt(_0x30225d(0x143))/0x8;if(_0x424ad4===_0x46accd)break;else _0x18ae62['push'](_0x18ae62['shift']());}catch(_0x23a79a){_0x18ae62['push'](_0x18ae62['shift']());}}}(a167_0x35cb,0xa36af));import{roleList}from'../../commands/role/list.js';function a167_0x5ef0(_0xbf3a3f,_0x2daf7c){_0xbf3a3f=_0xbf3a3f-0x13c;const _0x35cb12=a167_0x35cb();let _0x5ef089=_0x35cb12[_0xbf3a3f];return _0x5ef089;}import{roleDetail}from'../../commands/role/detail.js';import{roleCreate}from'../../commands/role/create.js';import{roleUpdate}from'../../commands/role/update.js';function a167_0x35cb(){const _0x60b657=['1846676mJaVIK','2443176VeSJoH','2530107lQlyEP','113565SsVLDN','270uyPbDn','1247388uDRbGm','1148872sGBfDN','2687279sSbtXL'];a167_0x35cb=function(){return _0x60b657;};return a167_0x35cb();}import{roleDelete}from'../../commands/role/delete.js';import{roleUserResolve}from'../../commands/role/user-resolve.js';import{roleUserAdd}from'../../commands/role/user-add.js';import{roleUserRemove}from'../../commands/role/user-remove.js';export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserResolve,roleUserAdd,roleUserRemove];
@@ -1 +1 @@
1
- const a169_0x3fd53c=a169_0x267e;(function(_0x7e89f9,_0x407aee){const _0x3b04ec=a169_0x267e,_0x5ce35f=_0x7e89f9();while(!![]){try{const _0x5570a9=-parseInt(_0x3b04ec(0x195))/0x1+-parseInt(_0x3b04ec(0x18b))/0x2+-parseInt(_0x3b04ec(0x185))/0x3+-parseInt(_0x3b04ec(0x194))/0x4+-parseInt(_0x3b04ec(0x18f))/0x5+-parseInt(_0x3b04ec(0x198))/0x6*(parseInt(_0x3b04ec(0x17f))/0x7)+-parseInt(_0x3b04ec(0x181))/0x8*(-parseInt(_0x3b04ec(0x183))/0x9);if(_0x5570a9===_0x407aee)break;else _0x5ce35f['push'](_0x5ce35f['shift']());}catch(_0x4b5fdf){_0x5ce35f['push'](_0x5ce35f['shift']());}}}(a169_0x1a72,0xa6571));function a169_0x267e(_0x307a35,_0x112adf){_0x307a35=_0x307a35-0x177;const _0x1a721f=a169_0x1a72();let _0x267ef4=_0x1a721f[_0x307a35];return _0x267ef4;}import{listAppRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a169_0x1a72(){const _0x397f7e=['type','str','string','DEV','CUSTOM','num','27377LYIPzq','\x20role(s)','294808unnWFQ','Page\x20size\x20(1-100)','936DdZRRH','includes','1290033eAKdDk','Page\x20index\x20(1-based)','List\x20user\x20groups\x20(roles)\x20for\x20the\x20current\x20app','filter','list','toUpperCase','556778hHvpsV','Invalid\x20--type\x20\x22','--page\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201.','roleType','1976220LAnlrc','Filter\x20by\x20role\x20type','trim','map','ADMIN','5006692wrUpak','260051vTpHMc','validation','pagesize','822NjiVre','Use\x20one\x20of:\x20','Found\x20','page','USER','number'];a169_0x1a72=function(){return _0x397f7e;};return a169_0x1a72();}import{projectRole}from'../../commands/role/shared.js';const ROLE_TYPES=[a169_0x3fd53c(0x193),a169_0x3fd53c(0x17c),a169_0x3fd53c(0x177),a169_0x3fd53c(0x17d)];export const roleList={'service':'role','command':a169_0x3fd53c(0x189),'description':a169_0x3fd53c(0x187),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a169_0x3fd53c(0x179),'type':a169_0x3fd53c(0x17b),'required':![],'description':a169_0x3fd53c(0x190),'enum':ROLE_TYPES},{'name':a169_0x3fd53c(0x19b),'type':a169_0x3fd53c(0x178),'description':a169_0x3fd53c(0x186),'default':0x1},{'name':a169_0x3fd53c(0x197),'type':'number','description':a169_0x3fd53c(0x182),'default':0x64}],async 'validate'(_0x370976){const _0x4dc2ad=a169_0x3fd53c,_0x1d08fd=_0x370976[_0x4dc2ad(0x17a)](_0x4dc2ad(0x179))[_0x4dc2ad(0x191)]();if(_0x1d08fd&&!ROLE_TYPES[_0x4dc2ad(0x184)](_0x1d08fd[_0x4dc2ad(0x18a)]()))throw CliErrors[_0x4dc2ad(0x196)](_0x4dc2ad(0x18c)+_0x1d08fd+'\x22.',_0x4dc2ad(0x199)+ROLE_TYPES['join'](',\x20')+'.');const _0xe2dfc=_0x370976[_0x4dc2ad(0x17e)](_0x4dc2ad(0x19b),0x1),_0x486e7e=_0x370976[_0x4dc2ad(0x17e)](_0x4dc2ad(0x197),0x64);if(_0xe2dfc<0x1)throw CliErrors[_0x4dc2ad(0x196)](_0x4dc2ad(0x18d));if(_0x486e7e<0x1||_0x486e7e>0x64)throw CliErrors[_0x4dc2ad(0x196)]('--pagesize\x20must\x20be\x20between\x201\x20and\x20100.');},async 'execute'(_0xd06311){const _0x4986ac=a169_0x3fd53c,_0x235393=_0xd06311[_0x4986ac(0x17e)](_0x4986ac(0x19b),0x1)||0x1,_0x552715=_0xd06311[_0x4986ac(0x17e)](_0x4986ac(0x197),0x64)||0x64,_0x5c8e9d=_0xd06311[_0x4986ac(0x17a)](_0x4986ac(0x179))[_0x4986ac(0x191)]()[_0x4986ac(0x18a)](),{items:_0x23ac42,paging:_0x3367af}=await listAppRoles(_0xd06311['appCode'],{'currentPage':_0x235393,'pageSize':_0x552715}),_0x2f31fa=_0x5c8e9d?_0x23ac42[_0x4986ac(0x188)](_0x50d81d=>_0x50d81d[_0x4986ac(0x18e)]===_0x5c8e9d):_0x23ac42,_0x5a985d=_0x2f31fa[_0x4986ac(0x192)](projectRole);return{'ok':!![],'data':{'roles':_0x5a985d,'paging':_0x3367af},'message':_0x4986ac(0x19a)+_0x5a985d['length']+_0x4986ac(0x180)};}};
1
+ const a168_0x5962ca=a168_0x4fc1;function a168_0x25fe(){const _0x2d785d=['type','pagesize','2784375ThdDXC','List\x20user\x20groups\x20(roles)\x20for\x20the\x20current\x20app','Invalid\x20--type\x20\x22','Filter\x20by\x20role\x20type','validation','\x20role(s)','63KuaKSO','Page\x20index\x20(1-based)','247674ARDSke','USER','Use\x20one\x20of:\x20','list','184848cdiyIU','filter','length','number','CUSTOM','read','1535768ZiLdCp','num','1197540FvMfZy','join','string','Found\x20','appCode','--page\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201.','toUpperCase','roleType','--pagesize\x20must\x20be\x20between\x201\x20and\x20100.','462366DHUAvD','2137088XNFyuj','str','ADMIN','map','page','Page\x20size\x20(1-100)'];a168_0x25fe=function(){return _0x2d785d;};return a168_0x25fe();}(function(_0x5b3186,_0x5d6c68){const _0xa12a79=a168_0x4fc1,_0x47866e=_0x5b3186();while(!![]){try{const _0x2204af=parseInt(_0xa12a79(0x1d7))/0x1+-parseInt(_0xa12a79(0x1e8))/0x2+parseInt(_0xa12a79(0x1df))/0x3+-parseInt(_0xa12a79(0x1dd))/0x4+parseInt(_0xa12a79(0x1cb))/0x5+-parseInt(_0xa12a79(0x1d3))/0x6*(parseInt(_0xa12a79(0x1d1))/0x7)+parseInt(_0xa12a79(0x1c3))/0x8;if(_0x2204af===_0x5d6c68)break;else _0x47866e['push'](_0x47866e['shift']());}catch(_0x4f0711){_0x47866e['push'](_0x47866e['shift']());}}}(a168_0x25fe,0x66e1b));import{listAppRoles}from'../../core/api-client.js';function a168_0x4fc1(_0x2b1e29,_0x23c08a){_0x2b1e29=_0x2b1e29-0x1c3;const _0x25fe67=a168_0x25fe();let _0x4fc1b8=_0x25fe67[_0x2b1e29];return _0x4fc1b8;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectRole}from'../../commands/role/shared.js';const ROLE_TYPES=[a168_0x5962ca(0x1c5),'DEV',a168_0x5962ca(0x1d4),a168_0x5962ca(0x1db)];export const roleList={'service':'role','command':a168_0x5962ca(0x1d6),'description':a168_0x5962ca(0x1cc),'risk':a168_0x5962ca(0x1dc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a168_0x5962ca(0x1c9),'type':a168_0x5962ca(0x1e1),'required':![],'description':a168_0x5962ca(0x1ce),'enum':ROLE_TYPES},{'name':a168_0x5962ca(0x1c7),'type':a168_0x5962ca(0x1da),'description':a168_0x5962ca(0x1d2),'default':0x1},{'name':a168_0x5962ca(0x1ca),'type':a168_0x5962ca(0x1da),'description':a168_0x5962ca(0x1c8),'default':0x64}],async 'validate'(_0x40d1d8){const _0x199326=a168_0x5962ca,_0x3b47a8=_0x40d1d8[_0x199326(0x1c4)](_0x199326(0x1c9))['trim']();if(_0x3b47a8&&!ROLE_TYPES['includes'](_0x3b47a8[_0x199326(0x1e5)]()))throw CliErrors[_0x199326(0x1cf)](_0x199326(0x1cd)+_0x3b47a8+'\x22.',_0x199326(0x1d5)+ROLE_TYPES[_0x199326(0x1e0)](',\x20')+'.');const _0x4728c2=_0x40d1d8[_0x199326(0x1de)](_0x199326(0x1c7),0x1),_0x537de4=_0x40d1d8[_0x199326(0x1de)]('pagesize',0x64);if(_0x4728c2<0x1)throw CliErrors[_0x199326(0x1cf)](_0x199326(0x1e4));if(_0x537de4<0x1||_0x537de4>0x64)throw CliErrors['validation'](_0x199326(0x1e7));},async 'execute'(_0x3d669b){const _0x4fefa0=a168_0x5962ca,_0x37469d=_0x3d669b[_0x4fefa0(0x1de)]('page',0x1)||0x1,_0x40c9fb=_0x3d669b[_0x4fefa0(0x1de)](_0x4fefa0(0x1ca),0x64)||0x64,_0x1831de=_0x3d669b[_0x4fefa0(0x1c4)](_0x4fefa0(0x1c9))['trim']()[_0x4fefa0(0x1e5)](),{items:_0x3b9b9b,paging:_0x225480}=await listAppRoles(_0x3d669b[_0x4fefa0(0x1e3)],{'currentPage':_0x37469d,'pageSize':_0x40c9fb}),_0x296e3b=_0x1831de?_0x3b9b9b[_0x4fefa0(0x1d8)](_0x4c1ddd=>_0x4c1ddd[_0x4fefa0(0x1e6)]===_0x1831de):_0x3b9b9b,_0x138fd2=_0x296e3b[_0x4fefa0(0x1c6)](projectRole);return{'ok':!![],'data':{'roles':_0x138fd2,'paging':_0x225480},'message':_0x4fefa0(0x1e2)+_0x138fd2[_0x4fefa0(0x1d9)]+_0x4fefa0(0x1d0)};}};