@lovrabet/rabetbase-cli 2.4.4 → 2.4.5

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 (330) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.d.ts +1 -0
  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/{permit/index.d.ts → dataset/business-groups.d.ts} +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -0
  64. package/lib/commands/dataset/capability.js +1 -1
  65. package/lib/commands/dataset/delete.js +1 -1
  66. package/lib/commands/dataset/detail.js +1 -1
  67. package/lib/commands/dataset/extend-update.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.d.ts +15 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/doctor.js +1 -1
  100. package/lib/commands/file/index.js +1 -1
  101. package/lib/commands/init/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/shared.js +1 -1
  112. package/lib/commands/kb/update.js +1 -1
  113. package/lib/commands/logs/index.js +1 -1
  114. package/lib/commands/menu/asset-update.js +1 -1
  115. package/lib/commands/menu/delete.js +1 -1
  116. package/lib/commands/menu/external-link-create.js +1 -1
  117. package/lib/commands/menu/external-link-update.js +1 -1
  118. package/lib/commands/menu/group-create.js +1 -1
  119. package/lib/commands/menu/group-update.js +1 -1
  120. package/lib/commands/menu/index.js +1 -1
  121. package/lib/commands/menu/list.js +1 -1
  122. package/lib/commands/menu/move.js +1 -1
  123. package/lib/commands/menu/regroup-start.js +1 -1
  124. package/lib/commands/menu/rename.js +1 -1
  125. package/lib/commands/menu/shared/compare-table.js +1 -1
  126. package/lib/commands/menu/shared/delete-plan.js +1 -1
  127. package/lib/commands/menu/shared/facts.js +1 -1
  128. package/lib/commands/menu/shared/index.js +1 -1
  129. package/lib/commands/menu/shared/inquirer.js +1 -1
  130. package/lib/commands/menu/shared/local-pages.js +1 -1
  131. package/lib/commands/menu/shared/logic.js +1 -1
  132. package/lib/commands/menu/shared/mutations.js +1 -1
  133. package/lib/commands/menu/shared/service.js +1 -1
  134. package/lib/commands/menu/shared/sync-core.js +1 -1
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/generate-start.js +1 -1
  146. package/lib/commands/page/generate-status.js +1 -1
  147. package/lib/commands/page/index.js +1 -1
  148. package/lib/commands/page/pull.js +1 -1
  149. package/lib/commands/page/push.js +1 -1
  150. package/lib/commands/page/react/create.js +1 -1
  151. package/lib/commands/page/react/detail.js +1 -1
  152. package/lib/commands/page/react/list.js +1 -1
  153. package/lib/commands/page/react/publish.js +1 -1
  154. package/lib/commands/page/react/shared.js +1 -1
  155. package/lib/commands/page/react/syntax.js +1 -1
  156. package/lib/commands/page/react/template.js +1 -1
  157. package/lib/commands/page/react/update.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.d.ts +15 -17
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.d.ts +70 -79
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.js +1 -1
  226. package/lib/core/bff/file-system.d.ts +1 -0
  227. package/lib/core/bff/file-system.js +1 -1
  228. package/lib/core/bff/hash.js +1 -1
  229. package/lib/core/bff/lock.js +1 -1
  230. package/lib/core/bff/utils.js +1 -1
  231. package/lib/core/db-resolver.js +1 -1
  232. package/lib/core/page/file-system.js +1 -1
  233. package/lib/core/page/hash.js +1 -1
  234. package/lib/core/page/lock.js +1 -1
  235. package/lib/core/sql-index-auditor.js +1 -1
  236. package/lib/core/sql-sync/config.js +1 -1
  237. package/lib/core/sql-sync/file-system.js +1 -1
  238. package/lib/core/sql-sync/hash.js +1 -1
  239. package/lib/core/sql-sync/lock.js +1 -1
  240. package/lib/core/sql-sync/utils.js +1 -1
  241. package/lib/core/sql-validator.js +1 -1
  242. package/lib/errors.js +1 -1
  243. package/lib/framework/build-all-flags.js +1 -1
  244. package/lib/framework/error-output.js +1 -1
  245. package/lib/framework/explicit-yes.js +1 -1
  246. package/lib/framework/flags.js +1 -1
  247. package/lib/framework/help.js +1 -1
  248. package/lib/framework/index.js +1 -1
  249. package/lib/framework/output.js +1 -1
  250. package/lib/framework/response.js +1 -1
  251. package/lib/framework/runner-alias.js +1 -1
  252. package/lib/framework/runner.js +1 -1
  253. package/lib/framework/schema-export.js +1 -1
  254. package/lib/framework/types.js +1 -1
  255. package/lib/generated/build-info.d.ts +4 -4
  256. package/lib/generated/build-info.js +1 -1
  257. package/lib/help.js +1 -1
  258. package/lib/postinstall.js +1 -1
  259. package/lib/runtime/confirmation.js +1 -1
  260. package/lib/runtime/event.js +1 -1
  261. package/lib/runtime/index.js +1 -1
  262. package/lib/runtime/queue.js +1 -1
  263. package/lib/runtime/resolve.js +1 -1
  264. package/lib/skills/builtin-skill.js +1 -1
  265. package/lib/skills/main.js +1 -1
  266. package/lib/skills/npx-skills-add.js +1 -1
  267. package/lib/skills/skill-presence.js +1 -1
  268. package/lib/telemetry/cli-command-trace.js +1 -1
  269. package/lib/telemetry/cli-help-trace.js +1 -1
  270. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  271. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  272. package/lib/telemetry/send-cli-trace-log.js +1 -1
  273. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  274. package/lib/utils/ai_config.js +1 -1
  275. package/lib/utils/apply-jq-filter.js +1 -1
  276. package/lib/utils/cdn-config.js +1 -1
  277. package/lib/utils/check-sdk-version.js +1 -1
  278. package/lib/utils/cli-version-check.js +1 -1
  279. package/lib/utils/cli-version-policy.js +1 -1
  280. package/lib/utils/config.js +1 -1
  281. package/lib/utils/entity-with-id.js +1 -1
  282. package/lib/utils/file-utils.js +1 -1
  283. package/lib/utils/guides-cdn.js +1 -1
  284. package/lib/utils/http-client.js +1 -1
  285. package/lib/utils/is-non-interactive.js +1 -1
  286. package/lib/utils/logger.js +1 -1
  287. package/lib/utils/params.js +1 -1
  288. package/lib/utils/platform.js +1 -1
  289. package/lib/utils/rules-cdn.js +1 -1
  290. package/lib/utils/sleep.js +1 -1
  291. package/lib/utils/template-replacer.js +1 -1
  292. package/lib/utils/update-notice.js +1 -1
  293. package/lib/utils/version.js +1 -1
  294. package/lib/utils/with-active-cookie.js +1 -1
  295. package/lib/utils/write-cli-side-channel.js +1 -1
  296. package/package.json +1 -1
  297. package/skills/rabetbase/SKILL.md +18 -24
  298. package/skills/rabetbase/guides/database-connection-workflow.md +6 -2
  299. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +28 -0
  300. package/skills/rabetbase/references/rabetbase-dataset-delete.md +7 -5
  301. package/skills/rabetbase/references/rabetbase-dataset-list.md +6 -6
  302. package/skills/rabetbase/references/rabetbase-dataset-restore.md +5 -5
  303. package/skills/rabetbase/references/rabetbase-db-create.md +3 -0
  304. package/skills/rabetbase/references/rabetbase-db-delete.md +10 -2
  305. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -0
  306. package/skills/rabetbase/references/rabetbase-db-list.md +3 -2
  307. package/skills/rabetbase/references/rabetbase-db-update.md +4 -2
  308. package/skills/rabetbase/references/rabetbase-role-list.md +9 -17
  309. package/skills/rabetbase/references/rabetbase-role-user-add.md +44 -16
  310. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  311. package/skills/rabetbase.manifest.json +4 -7
  312. package/lib/commands/permit/index.js +0 -1
  313. package/lib/commands/permit/page-get.d.ts +0 -2
  314. package/lib/commands/permit/page-get.js +0 -1
  315. package/lib/commands/permit/page-set.d.ts +0 -2
  316. package/lib/commands/permit/page-set.js +0 -1
  317. package/lib/commands/permit/role-apis-set.d.ts +0 -2
  318. package/lib/commands/permit/role-apis-set.js +0 -1
  319. package/lib/commands/permit/role-menus-set.d.ts +0 -2
  320. package/lib/commands/permit/role-menus-set.js +0 -1
  321. package/lib/commands/permit/role-menus.d.ts +0 -2
  322. package/lib/commands/permit/role-menus.js +0 -1
  323. package/lib/commands/permit/shared.d.ts +0 -74
  324. package/lib/commands/permit/shared.js +0 -1
  325. package/lib/commands/role/create.d.ts +0 -2
  326. package/lib/commands/role/create.js +0 -1
  327. package/skills/rabetbase/guides/role-permit-workflow.md +0 -127
  328. package/skills/rabetbase/references/rabetbase-permit-page-set.md +0 -69
  329. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +0 -53
  330. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +0 -57
@@ -1 +1 @@
1
- const a169_0x5b2af7=a169_0x3471;(function(_0x37d60a,_0x2d5f20){const _0x1ebea7=a169_0x3471,_0x3d12bb=_0x37d60a();while(!![]){try{const _0x37a225=-parseInt(_0x1ebea7(0x1f0))/0x1*(parseInt(_0x1ebea7(0x1e8))/0x2)+-parseInt(_0x1ebea7(0x1c2))/0x3+parseInt(_0x1ebea7(0x1e7))/0x4+parseInt(_0x1ebea7(0x1c7))/0x5+-parseInt(_0x1ebea7(0x1c8))/0x6*(parseInt(_0x1ebea7(0x1f7))/0x7)+parseInt(_0x1ebea7(0x1c9))/0x8*(-parseInt(_0x1ebea7(0x1fc))/0x9)+-parseInt(_0x1ebea7(0x1fa))/0xa*(-parseInt(_0x1ebea7(0x1d4))/0xb);if(_0x37a225===_0x2d5f20)break;else _0x3d12bb['push'](_0x3d12bb['shift']());}catch(_0x1a47e5){_0x3d12bb['push'](_0x3d12bb['shift']());}}}(a169_0x53cd,0xc9b6e));import{createHash}from'node:crypto';import a169_0x32b02e from'node:fs/promises';import a169_0x5b8fba from'node:path';import{PROJECT_TEMPLATE_ASSET_BASE_URL}from'../../../constant/cdn.js';import{extractProjectTemplateArchive}from'../../../commands/project/create/project-template-archive.js';import{getRabetbaseCdnConfig}from'../../../utils/cli-version-policy.js';import{CliErrors}from'../../../errors.js';const TEMPLATE_ID=a169_0x5b2af7(0x1f8),ARCHIVE_TIMEOUT_MS=0x3a98,MAX_ARCHIVE_SIZE=0x14*0x400*0x400;function nonEmptyString(_0x22cb16){const _0x51064d=a169_0x5b2af7;return typeof _0x22cb16===_0x51064d(0x206)&&_0x22cb16[_0x51064d(0x1ee)]()?_0x22cb16[_0x51064d(0x1ee)]():null;}function parseDescriptor(_0x14f80b){const _0x35764f=a169_0x5b2af7;if(!_0x14f80b||typeof _0x14f80b!=='object')throw new Error('CDN\x20config\x20does\x20not\x20define\x20template\x20\x22'+TEMPLATE_ID+'\x22.');const _0x499e33=_0x14f80b,_0x15f2c8=nonEmptyString(_0x499e33[_0x35764f(0x1fd)]),_0x34c77f=nonEmptyString(_0x499e33[_0x35764f(0x1f4)]),_0x4865e9=nonEmptyString(_0x499e33[_0x35764f(0x1d6)])?.['toLowerCase'](),_0x5472f7=_0x499e33[_0x35764f(0x1db)];if(!_0x15f2c8||!_0x34c77f||_0x34c77f!==a169_0x5b8fba['posix'][_0x35764f(0x1e6)](_0x34c77f)||_0x34c77f['includes']('\x5c')||!_0x4865e9||!/^sha256:[a-f0-9]{64}$/[_0x35764f(0x1d5)](_0x4865e9)||typeof _0x5472f7!=='number'||!Number[_0x35764f(0x1f2)](_0x5472f7)||_0x5472f7<=0x0||_0x5472f7>MAX_ARCHIVE_SIZE)throw new Error(_0x35764f(0x20b)+TEMPLATE_ID+'\x22.');return{'version':_0x15f2c8,'name':_0x34c77f,'sha256':_0x4865e9,'size':_0x5472f7};}async function fetchWithTimeout(_0xe99493,_0x1135c1,_0x2fb328,_0x3cee83){const _0x687f8d=a169_0x5b2af7,_0x3079b0=new AbortController(),_0x185921=setTimeout(()=>_0x3079b0[_0x687f8d(0x1ef)](),_0x1135c1);try{const _0xa8b300=await fetch(_0xe99493,{'headers':{'Accept':_0x2fb328},'signal':_0x3079b0[_0x687f8d(0x1f3)]});return await _0x3cee83(_0xa8b300);}finally{clearTimeout(_0x185921);}}async function fetchTemplateDescriptor(){const _0x5d3df0=a169_0x5b2af7,_0x4a62bf=await getRabetbaseCdnConfig();if(!_0x4a62bf)throw new Error('Rabetbase\x20CDN\x20config\x20is\x20unavailable.');return parseDescriptor(_0x4a62bf[_0x5d3df0(0x1f1)]);}function resolveArchiveUrl(_0x12fcbc){const _0x26263c=a169_0x5b2af7,_0x50fd51=new URL(PROJECT_TEMPLATE_ASSET_BASE_URL+'/'),_0x2c8910=new URL(_0x12fcbc,_0x50fd51);if(_0x2c8910['protocol']!==_0x26263c(0x1e3)||_0x2c8910[_0x26263c(0x1d8)]!==_0x50fd51['origin']||!_0x2c8910[_0x26263c(0x1da)][_0x26263c(0x1ce)](_0x50fd51[_0x26263c(0x1da)]))throw new Error('CDN\x20project\x20template\x20URL\x20must\x20use\x20the\x20trusted\x20HTTPS\x20origin.');return _0x2c8910[_0x26263c(0x1ea)];}async function readResponseBytes(_0x3dda86,_0x313b9e){const _0x73b565=a169_0x5b2af7;if(!_0x3dda86[_0x73b565(0x1c1)]){const _0x60db10=Buffer['from'](await _0x3dda86['arrayBuffer']());if(_0x60db10[_0x73b565(0x1ec)]>_0x313b9e)throw new Error(_0x73b565(0x1e4));return _0x60db10;}const _0x46832c=_0x3dda86[_0x73b565(0x1c1)]['getReader'](),_0x1e503c=[];let _0x2fbc59=0x0;try{while(!![]){const {done:_0x47e571,value:_0x595099}=await _0x46832c[_0x73b565(0x1e2)]();if(_0x47e571)break;_0x2fbc59+=_0x595099['byteLength'];if(_0x2fbc59>_0x313b9e){await _0x46832c[_0x73b565(0x202)]();throw new Error(_0x73b565(0x1e4));}_0x1e503c[_0x73b565(0x1c6)](Buffer['from'](_0x595099));}}finally{_0x46832c[_0x73b565(0x204)]();}return Buffer[_0x73b565(0x1fb)](_0x1e503c,_0x2fbc59);}async function downloadArchive(_0x567a41,_0x24b4cd,_0x1d48aa){const _0x2d3836=a169_0x5b2af7,_0xbdd0de=await fetchWithTimeout(resolveArchiveUrl(_0x567a41[_0x2d3836(0x1f4)]),ARCHIVE_TIMEOUT_MS,_0x2d3836(0x1e5),async _0x11d314=>{const _0x265ca2=_0x2d3836;if(!_0x11d314['ok'])throw new Error(_0x265ca2(0x1d7)+_0x11d314[_0x265ca2(0x1f5)]+'.');const _0x4fb0b5=Number(_0x11d314[_0x265ca2(0x207)]['get'](_0x265ca2(0x1ca)));if(Number[_0x265ca2(0x200)](_0x4fb0b5)&&_0x4fb0b5>MAX_ARCHIVE_SIZE)throw new Error(_0x265ca2(0x1df));return readResponseBytes(_0x11d314,_0x567a41['size']);});if(_0xbdd0de['length']!==_0x567a41[_0x2d3836(0x1db)])throw new Error(_0x2d3836(0x203)+_0x567a41[_0x2d3836(0x1db)]+',\x20received\x20'+_0xbdd0de[_0x2d3836(0x1ec)]+'.');_0x1d48aa?.('verifying');const _0x504122='sha256:'+createHash('sha256')[_0x2d3836(0x20c)](_0xbdd0de)[_0x2d3836(0x208)](_0x2d3836(0x1e0));if(_0x504122!==_0x567a41[_0x2d3836(0x1d6)])throw new Error('CDN\x20project\x20template\x20checksum\x20verification\x20failed.');await a169_0x32b02e[_0x2d3836(0x1dc)](_0x24b4cd,_0xbdd0de,{'flag':'wx'});}function a169_0x3471(_0x4b9185,_0x292ba0){_0x4b9185=_0x4b9185-0x1c1;const _0x53cd6a=a169_0x53cd();let _0x3471bf=_0x53cd6a[_0x4b9185];return _0x3471bf;}async function assertTemplateRoot(_0x190786){const _0x3ece64=a169_0x5b2af7,_0x200863=a169_0x5b8fba[_0x3ece64(0x1cc)](_0x190786,'package.json'),_0x1e66b1=JSON['parse'](await a169_0x32b02e['readFile'](_0x200863,_0x3ece64(0x1cb)));if(!_0x1e66b1||typeof _0x1e66b1!=='object')throw new Error(_0x3ece64(0x1cd));}async function readDirectoryIdentity(_0x2486dc){const _0x3f3ad7=a169_0x5b2af7;try{const _0x15da84=await a169_0x32b02e[_0x3f3ad7(0x201)](_0x2486dc);if(!_0x15da84[_0x3f3ad7(0x1eb)]())return null;return{'dev':_0x15da84[_0x3f3ad7(0x1c3)],'ino':_0x15da84['ino']};}catch{return null;}}async function commitStagedProject(_0x4da6de,_0x44f27a){const _0x32f818=a169_0x5b2af7;await a169_0x32b02e[_0x32f818(0x1d9)](_0x44f27a);const _0x40d24e=await readDirectoryIdentity(_0x44f27a);if(!_0x40d24e)throw new Error('Unable\x20to\x20claim\x20the\x20project\x20directory.');try{for(const _0x49bd05 of await a169_0x32b02e['readdir'](_0x4da6de)){await a169_0x32b02e[_0x32f818(0x1d0)](a169_0x5b8fba['join'](_0x4da6de,_0x49bd05),a169_0x5b8fba[_0x32f818(0x1cc)](_0x44f27a,_0x49bd05));}}catch(_0x92d4e5){const _0x4f8baf=await readDirectoryIdentity(_0x44f27a);_0x4f8baf?.['dev']===_0x40d24e[_0x32f818(0x1c3)]&&_0x4f8baf['ino']===_0x40d24e[_0x32f818(0x205)]&&await a169_0x32b02e['rm'](_0x44f27a,{'recursive':!![],'force':!![]});throw _0x92d4e5;}}function a169_0x53cd(){const _0x8f8715=['CDN\x20project\x20template\x20size\x20mismatch:\x20expected\x20','releaseLock','ino','string','headers','digest','message','downloading','CDN\x20config\x20contains\x20an\x20invalid\x20descriptor\x20for\x20\x22','update','body','4219275MNLBdq','dev','code','mkdtemp','push','5862935xbodmD','6AHExpB','103600wkKOhT','content-length','utf8','join','Project\x20template\x20package.json\x20is\x20invalid.','startsWith','validation','rename','EEXIST','Check\x20your\x20network\x20and\x20retry.\x20Details:\x20','resolving','13508cakmZZ','test','sha256','CDN\x20project\x20template\x20request\x20failed\x20with\x20HTTP\x20','origin','mkdir','pathname','size','writeFile','cdn','Use\x20a\x20different\x20project\x20name.','CDN\x20project\x20template\x20exceeds\x20the\x2020\x20MB\x20download\x20limit.','hex','resolve','read','https:','CDN\x20project\x20template\x20exceeds\x20its\x20declared\x20download\x20size.','application/zip','basename','5830740NTZoRQ','4KkLHDr','ENOENT','href','isDirectory','length','Project\x20directory\x20already\x20exists:\x20','trim','abort','134863DsuLyq','projectTemplate','isSafeInteger','signal','name','status','extracting','2119047IjvrDu','sub-app-react-demo','project','1740kzgSPk','concat','27mXWmAp','version','template.zip','Unable\x20to\x20download\x20a\x20valid\x20project\x20template\x20from\x20CDN.','isFinite','lstat','cancel'];a169_0x53cd=function(){return _0x8f8715;};return a169_0x53cd();}export async function materializeProjectTemplate(_0x59ecfd,_0x41e790){const _0x1d3d57=a169_0x5b2af7,_0x26f48b=a169_0x5b8fba[_0x1d3d57(0x1e1)](_0x59ecfd),_0x48aa31=a169_0x5b8fba['dirname'](_0x26f48b);try{await a169_0x32b02e[_0x1d3d57(0x201)](_0x26f48b);throw new Error(_0x1d3d57(0x1ed)+_0x26f48b);}catch(_0xc10123){if(_0xc10123['code']!==_0x1d3d57(0x1e9))throw _0xc10123;}const _0x13f398=await a169_0x32b02e[_0x1d3d57(0x1c5)](a169_0x5b8fba['join'](_0x48aa31,'.rabetbase-create-')),_0x4f07f4=a169_0x5b8fba[_0x1d3d57(0x1cc)](_0x13f398,_0x1d3d57(0x1f9)),_0x443492=a169_0x5b8fba[_0x1d3d57(0x1cc)](_0x13f398,_0x1d3d57(0x1fe));try{try{_0x41e790?.(_0x1d3d57(0x1d3));const _0x32ae75=await fetchTemplateDescriptor();return _0x41e790?.(_0x1d3d57(0x20a)),await downloadArchive(_0x32ae75,_0x443492,_0x41e790),_0x41e790?.(_0x1d3d57(0x1f6)),await extractProjectTemplateArchive(_0x443492,_0x4f07f4),await assertTemplateRoot(_0x4f07f4),await commitStagedProject(_0x4f07f4,_0x26f48b),{'source':_0x1d3d57(0x1dd),'version':_0x32ae75[_0x1d3d57(0x1fd)]};}catch(_0x14a590){if(_0x14a590[_0x1d3d57(0x1c4)]===_0x1d3d57(0x1d1))throw CliErrors[_0x1d3d57(0x1cf)](_0x1d3d57(0x1ed)+_0x26f48b,_0x1d3d57(0x1de));const _0x33c956=_0x14a590 instanceof Error?_0x14a590[_0x1d3d57(0x209)]:String(_0x14a590);throw CliErrors[_0x1d3d57(0x1cf)](_0x1d3d57(0x1ff),_0x1d3d57(0x1d2)+_0x33c956);}}finally{await a169_0x32b02e['rm'](_0x13f398,{'recursive':!![],'force':!![]});}}
1
+ const a163_0x306dcb=a163_0xe452;(function(_0x2628f7,_0x243927){const _0x10d0c3=a163_0xe452,_0x5ea9e1=_0x2628f7();while(!![]){try{const _0x1c982f=parseInt(_0x10d0c3(0x1d0))/0x1+parseInt(_0x10d0c3(0x1c9))/0x2+-parseInt(_0x10d0c3(0x1f7))/0x3*(parseInt(_0x10d0c3(0x1cb))/0x4)+parseInt(_0x10d0c3(0x1bf))/0x5+-parseInt(_0x10d0c3(0x1e0))/0x6+parseInt(_0x10d0c3(0x1c8))/0x7*(-parseInt(_0x10d0c3(0x1cc))/0x8)+-parseInt(_0x10d0c3(0x1c6))/0x9;if(_0x1c982f===_0x243927)break;else _0x5ea9e1['push'](_0x5ea9e1['shift']());}catch(_0x5f3f0c){_0x5ea9e1['push'](_0x5ea9e1['shift']());}}}(a163_0x1116,0x35b33));import{createHash}from'node:crypto';import a163_0x42cc48 from'node:fs/promises';import a163_0xac26b5 from'node:path';import{PROJECT_TEMPLATE_ASSET_BASE_URL}from'../../../constant/cdn.js';import{extractProjectTemplateArchive}from'../../../commands/project/create/project-template-archive.js';import{getRabetbaseCdnConfig}from'../../../utils/cli-version-policy.js';import{CliErrors}from'../../../errors.js';const TEMPLATE_ID=a163_0x306dcb(0x1c4),ARCHIVE_TIMEOUT_MS=0x3a98,MAX_ARCHIVE_SIZE=0x14*0x400*0x400;function nonEmptyString(_0xb05cd1){const _0x225922=a163_0x306dcb;return typeof _0xb05cd1==='string'&&_0xb05cd1[_0x225922(0x1b6)]()?_0xb05cd1[_0x225922(0x1b6)]():null;}function a163_0xe452(_0x7bbf3e,_0x4f7b53){_0x7bbf3e=_0x7bbf3e-0x1b3;const _0x1116c=a163_0x1116();let _0xe452c2=_0x1116c[_0x7bbf3e];return _0xe452c2;}function parseDescriptor(_0x55f06b){const _0x240d2b=a163_0x306dcb;if(!_0x55f06b||typeof _0x55f06b!=='object')throw new Error('CDN\x20config\x20does\x20not\x20define\x20template\x20\x22'+TEMPLATE_ID+'\x22.');const _0x96adba=_0x55f06b,_0x5751d9=nonEmptyString(_0x96adba['version']),_0x3a4336=nonEmptyString(_0x96adba[_0x240d2b(0x1c7)]),_0x4b02ce=nonEmptyString(_0x96adba[_0x240d2b(0x1de)])?.[_0x240d2b(0x1e1)](),_0x2e33fd=_0x96adba[_0x240d2b(0x1f4)];if(!_0x5751d9||!_0x3a4336||_0x3a4336!==a163_0xac26b5[_0x240d2b(0x1d1)]['basename'](_0x3a4336)||_0x3a4336[_0x240d2b(0x1d9)]('\x5c')||!_0x4b02ce||!/^sha256:[a-f0-9]{64}$/['test'](_0x4b02ce)||typeof _0x2e33fd!==_0x240d2b(0x1f5)||!Number['isSafeInteger'](_0x2e33fd)||_0x2e33fd<=0x0||_0x2e33fd>MAX_ARCHIVE_SIZE)throw new Error('CDN\x20config\x20contains\x20an\x20invalid\x20descriptor\x20for\x20\x22'+TEMPLATE_ID+'\x22.');return{'version':_0x5751d9,'name':_0x3a4336,'sha256':_0x4b02ce,'size':_0x2e33fd};}async function fetchWithTimeout(_0x2c5756,_0x4b0e1d,_0x5cf39d,_0x2984a9){const _0x582bac=a163_0x306dcb,_0x1d9325=new AbortController(),_0x47aeb1=setTimeout(()=>_0x1d9325[_0x582bac(0x1c2)](),_0x4b0e1d);try{const _0x6e7f79=await fetch(_0x2c5756,{'headers':{'Accept':_0x5cf39d},'signal':_0x1d9325[_0x582bac(0x1ea)]});return await _0x2984a9(_0x6e7f79);}finally{clearTimeout(_0x47aeb1);}}async function fetchTemplateDescriptor(){const _0x2f139e=a163_0x306dcb,_0x697565=await getRabetbaseCdnConfig();if(!_0x697565)throw new Error('Rabetbase\x20CDN\x20config\x20is\x20unavailable.');return parseDescriptor(_0x697565[_0x2f139e(0x1d2)]);}function resolveArchiveUrl(_0x3bb428){const _0x53a499=a163_0x306dcb,_0x3f022f=new URL(PROJECT_TEMPLATE_ASSET_BASE_URL+'/'),_0x3ebf02=new URL(_0x3bb428,_0x3f022f);if(_0x3ebf02[_0x53a499(0x1dc)]!==_0x53a499(0x1f3)||_0x3ebf02[_0x53a499(0x1c3)]!==_0x3f022f['origin']||!_0x3ebf02[_0x53a499(0x1cf)][_0x53a499(0x1ec)](_0x3f022f['pathname']))throw new Error(_0x53a499(0x1f8));return _0x3ebf02[_0x53a499(0x1b3)];}async function readResponseBytes(_0x4dc33c,_0x1c92f1){const _0x4c7536=a163_0x306dcb;if(!_0x4dc33c['body']){const _0x5afe63=Buffer[_0x4c7536(0x1fc)](await _0x4dc33c[_0x4c7536(0x1ca)]());if(_0x5afe63['length']>_0x1c92f1)throw new Error(_0x4c7536(0x1e6));return _0x5afe63;}const _0x1fb47c=_0x4dc33c[_0x4c7536(0x1dd)][_0x4c7536(0x1b4)](),_0x1ee160=[];let _0x5f46b4=0x0;try{while(!![]){const {done:_0x33c638,value:_0x39dd36}=await _0x1fb47c['read']();if(_0x33c638)break;_0x5f46b4+=_0x39dd36['byteLength'];if(_0x5f46b4>_0x1c92f1){await _0x1fb47c[_0x4c7536(0x1f2)]();throw new Error(_0x4c7536(0x1e6));}_0x1ee160['push'](Buffer[_0x4c7536(0x1fc)](_0x39dd36));}}finally{_0x1fb47c[_0x4c7536(0x1d7)]();}return Buffer['concat'](_0x1ee160,_0x5f46b4);}async function downloadArchive(_0x1a7957,_0x461ec0,_0x4cd7d4){const _0x411616=a163_0x306dcb,_0x563933=await fetchWithTimeout(resolveArchiveUrl(_0x1a7957[_0x411616(0x1c7)]),ARCHIVE_TIMEOUT_MS,_0x411616(0x1bd),async _0x3efee7=>{const _0x247cf8=_0x411616;if(!_0x3efee7['ok'])throw new Error(_0x247cf8(0x1d6)+_0x3efee7[_0x247cf8(0x1b5)]+'.');const _0x495dad=Number(_0x3efee7[_0x247cf8(0x1bb)][_0x247cf8(0x1d4)]('content-length'));if(Number[_0x247cf8(0x1c1)](_0x495dad)&&_0x495dad>MAX_ARCHIVE_SIZE)throw new Error('CDN\x20project\x20template\x20exceeds\x20the\x2020\x20MB\x20download\x20limit.');return readResponseBytes(_0x3efee7,_0x1a7957['size']);});if(_0x563933['length']!==_0x1a7957['size'])throw new Error('CDN\x20project\x20template\x20size\x20mismatch:\x20expected\x20'+_0x1a7957[_0x411616(0x1f4)]+',\x20received\x20'+_0x563933['length']+'.');_0x4cd7d4?.(_0x411616(0x1eb));const _0xa6a50=_0x411616(0x1e8)+createHash(_0x411616(0x1de))[_0x411616(0x1e5)](_0x563933)[_0x411616(0x1ce)]('hex');if(_0xa6a50!==_0x1a7957['sha256'])throw new Error(_0x411616(0x1e9));await a163_0x42cc48[_0x411616(0x1be)](_0x461ec0,_0x563933,{'flag':'wx'});}async function assertTemplateRoot(_0x13e1a6){const _0x5be983=a163_0x306dcb,_0xe1a11f=a163_0xac26b5[_0x5be983(0x1e4)](_0x13e1a6,_0x5be983(0x1e7)),_0x317062=JSON[_0x5be983(0x1ef)](await a163_0x42cc48[_0x5be983(0x1ed)](_0xe1a11f,_0x5be983(0x1fe)));if(!_0x317062||typeof _0x317062!==_0x5be983(0x1fd))throw new Error('Project\x20template\x20package.json\x20is\x20invalid.');}async function readDirectoryIdentity(_0x469a7f){const _0x4f257e=a163_0x306dcb;try{const _0x5ec4aa=await a163_0x42cc48[_0x4f257e(0x1db)](_0x469a7f);if(!_0x5ec4aa[_0x4f257e(0x1d8)]())return null;return{'dev':_0x5ec4aa[_0x4f257e(0x1f9)],'ino':_0x5ec4aa[_0x4f257e(0x1d5)]};}catch{return null;}}async function commitStagedProject(_0x585b05,_0x3a0b85){const _0x72249e=a163_0x306dcb;await a163_0x42cc48[_0x72249e(0x1d3)](_0x3a0b85);const _0x3f27a3=await readDirectoryIdentity(_0x3a0b85);if(!_0x3f27a3)throw new Error(_0x72249e(0x1c0));try{for(const _0x1d6780 of await a163_0x42cc48['readdir'](_0x585b05)){await a163_0x42cc48[_0x72249e(0x1f6)](a163_0xac26b5['join'](_0x585b05,_0x1d6780),a163_0xac26b5['join'](_0x3a0b85,_0x1d6780));}}catch(_0x371cb3){const _0x252342=await readDirectoryIdentity(_0x3a0b85);_0x252342?.['dev']===_0x3f27a3[_0x72249e(0x1f9)]&&_0x252342['ino']===_0x3f27a3['ino']&&await a163_0x42cc48['rm'](_0x3a0b85,{'recursive':!![],'force':!![]});throw _0x371cb3;}}export async function materializeProjectTemplate(_0x3017e5,_0x1092d4){const _0x3f3501=a163_0x306dcb,_0x1e839b=a163_0xac26b5[_0x3f3501(0x1fb)](_0x3017e5),_0x1cea6c=a163_0xac26b5[_0x3f3501(0x1fa)](_0x1e839b);try{await a163_0x42cc48[_0x3f3501(0x1db)](_0x1e839b);throw new Error(_0x3f3501(0x1da)+_0x1e839b);}catch(_0x355d09){if(_0x355d09[_0x3f3501(0x1c5)]!=='ENOENT')throw _0x355d09;}const _0x421b7c=await a163_0x42cc48[_0x3f3501(0x1e2)](a163_0xac26b5[_0x3f3501(0x1e4)](_0x1cea6c,_0x3f3501(0x1df))),_0x3b0a41=a163_0xac26b5[_0x3f3501(0x1e4)](_0x421b7c,_0x3f3501(0x1b8)),_0x122de5=a163_0xac26b5[_0x3f3501(0x1e4)](_0x421b7c,_0x3f3501(0x1f1));try{try{_0x1092d4?.(_0x3f3501(0x1b9));const _0x3d4ead=await fetchTemplateDescriptor();return _0x1092d4?.(_0x3f3501(0x1bc)),await downloadArchive(_0x3d4ead,_0x122de5,_0x1092d4),_0x1092d4?.(_0x3f3501(0x1b7)),await extractProjectTemplateArchive(_0x122de5,_0x3b0a41),await assertTemplateRoot(_0x3b0a41),await commitStagedProject(_0x3b0a41,_0x1e839b),{'source':_0x3f3501(0x1f0),'version':_0x3d4ead[_0x3f3501(0x1e3)]};}catch(_0x507094){if(_0x507094[_0x3f3501(0x1c5)]===_0x3f3501(0x1ee))throw CliErrors[_0x3f3501(0x1ba)](_0x3f3501(0x1da)+_0x1e839b,'Use\x20a\x20different\x20project\x20name.');const _0x304e38=_0x507094 instanceof Error?_0x507094['message']:String(_0x507094);throw CliErrors[_0x3f3501(0x1ba)](_0x3f3501(0x1cd),'Check\x20your\x20network\x20and\x20retry.\x20Details:\x20'+_0x304e38);}}finally{await a163_0x42cc48['rm'](_0x421b7c,{'recursive':!![],'force':!![]});}}function a163_0x1116(){const _0x58fa6d=['sub-app-react-demo','code','1819368aGeXuE','name','7UUkrSL','452838FPuuui','arrayBuffer','84aXbXTr','1579064cDyTeq','Unable\x20to\x20download\x20a\x20valid\x20project\x20template\x20from\x20CDN.','digest','pathname','408290sAPcuQ','posix','projectTemplate','mkdir','get','ino','CDN\x20project\x20template\x20request\x20failed\x20with\x20HTTP\x20','releaseLock','isDirectory','includes','Project\x20directory\x20already\x20exists:\x20','lstat','protocol','body','sha256','.rabetbase-create-','567102raCLhA','toLowerCase','mkdtemp','version','join','update','CDN\x20project\x20template\x20exceeds\x20its\x20declared\x20download\x20size.','package.json','sha256:','CDN\x20project\x20template\x20checksum\x20verification\x20failed.','signal','verifying','startsWith','readFile','EEXIST','parse','cdn','template.zip','cancel','https:','size','number','rename','45183VDsVzz','CDN\x20project\x20template\x20URL\x20must\x20use\x20the\x20trusted\x20HTTPS\x20origin.','dev','dirname','resolve','from','object','utf8','href','getReader','status','trim','extracting','project','resolving','validation','headers','downloading','application/zip','writeFile','1977895jEZuCj','Unable\x20to\x20claim\x20the\x20project\x20directory.','isFinite','abort','origin'];a163_0x1116=function(){return _0x58fa6d;};return a163_0x1116();}
@@ -1 +1 @@
1
- (function(_0x3e4c5f,_0xe0888e){const _0x43e0e5=a170_0x1492,_0x265397=_0x3e4c5f();while(!![]){try{const _0x25ffbb=-parseInt(_0x43e0e5(0x19d))/0x1*(-parseInt(_0x43e0e5(0x18c))/0x2)+parseInt(_0x43e0e5(0x195))/0x3*(-parseInt(_0x43e0e5(0x18e))/0x4)+-parseInt(_0x43e0e5(0x18a))/0x5+parseInt(_0x43e0e5(0x18f))/0x6+-parseInt(_0x43e0e5(0x18b))/0x7*(-parseInt(_0x43e0e5(0x193))/0x8)+parseInt(_0x43e0e5(0x197))/0x9*(parseInt(_0x43e0e5(0x192))/0xa)+-parseInt(_0x43e0e5(0x198))/0xb*(parseInt(_0x43e0e5(0x190))/0xc);if(_0x25ffbb===_0xe0888e)break;else _0x265397['push'](_0x265397['shift']());}catch(_0x3205f2){_0x265397['push'](_0x265397['shift']());}}}(a170_0x4a7e,0x5000d));function a170_0x4a7e(){const _0x2e364b=['Project\x20name\x20cannot\x20be\x20empty','1375641ihMTis','test','73611YcCpPu','1067ThbDRH','\x22\x20is\x20reserved\x20on\x20Windows','length','Project\x20name\x20\x22','\x20characters','481181uefurw','Use\x20a\x20portable\x20directory\x20name\x20without\x20path\x20separators.','3079655WZzayy','536333gxPbFe','2oIFAxk','Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','4KdoIsk','3092490TayhWC','41100mWkqIb','trim','340usaJwq','48PFMIUM'];a170_0x4a7e=function(){return _0x2e364b;};return a170_0x4a7e();}import{CliErrors}from'../../../errors.js';const PROJECT_NAME_PATTERN=/^[A-Za-z0-9][A-Za-z0-9_-]*$/,WINDOWS_RESERVED_NAME=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i,MAX_PROJECT_NAME_LENGTH=0x64;function a170_0x1492(_0x4220a4,_0x239813){_0x4220a4=_0x4220a4-0x18a;const _0x4a7edb=a170_0x4a7e();let _0x1492d4=_0x4a7edb[_0x4220a4];return _0x1492d4;}export function getProjectNameValidationError(_0x4a5d6d){const _0x1180ac=a170_0x1492,_0x1e3284=_0x4a5d6d['trim']();if(!_0x1e3284)return _0x1180ac(0x194);if(_0x1e3284[_0x1180ac(0x19a)]>MAX_PROJECT_NAME_LENGTH)return'Project\x20name\x20cannot\x20exceed\x20'+MAX_PROJECT_NAME_LENGTH+_0x1180ac(0x19c);if(!PROJECT_NAME_PATTERN[_0x1180ac(0x196)](_0x1e3284))return _0x1180ac(0x18d);if(WINDOWS_RESERVED_NAME[_0x1180ac(0x196)](_0x1e3284))return _0x1180ac(0x19b)+_0x1e3284+_0x1180ac(0x199);return null;}export function validateProjectName(_0x311912){const _0x185777=a170_0x1492,_0x18f363=_0x311912[_0x185777(0x191)](),_0x425e49=getProjectNameValidationError(_0x18f363);if(_0x425e49)throw CliErrors['validation'](_0x425e49,_0x185777(0x19e));return _0x18f363;}
1
+ (function(_0x22bcac,_0x481385){const _0x278669=a164_0x11ce,_0x4bcbfd=_0x22bcac();while(!![]){try{const _0x3dff75=parseInt(_0x278669(0xc7))/0x1+-parseInt(_0x278669(0xca))/0x2*(parseInt(_0x278669(0xcf))/0x3)+-parseInt(_0x278669(0xcb))/0x4*(-parseInt(_0x278669(0xc4))/0x5)+-parseInt(_0x278669(0xc9))/0x6*(parseInt(_0x278669(0xd0))/0x7)+parseInt(_0x278669(0xcd))/0x8*(parseInt(_0x278669(0xce))/0x9)+-parseInt(_0x278669(0xd1))/0xa*(parseInt(_0x278669(0xc8))/0xb)+parseInt(_0x278669(0xd4))/0xc;if(_0x3dff75===_0x481385)break;else _0x4bcbfd['push'](_0x4bcbfd['shift']());}catch(_0x3ec5fb){_0x4bcbfd['push'](_0x4bcbfd['shift']());}}}(a164_0x315a,0xdf8a5));function a164_0x11ce(_0x315536,_0x59823f){_0x315536=_0x315536-0xc4;const _0x315ae3=a164_0x315a();let _0x11ceb4=_0x315ae3[_0x315536];return _0x11ceb4;}import{CliErrors}from'../../../errors.js';const PROJECT_NAME_PATTERN=/^[A-Za-z0-9][A-Za-z0-9_-]*$/,WINDOWS_RESERVED_NAME=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i,MAX_PROJECT_NAME_LENGTH=0x64;export function getProjectNameValidationError(_0x3c8fd6){const _0x528610=a164_0x11ce,_0x42140a=_0x3c8fd6[_0x528610(0xd3)]();if(!_0x42140a)return _0x528610(0xc6);if(_0x42140a['length']>MAX_PROJECT_NAME_LENGTH)return _0x528610(0xd8)+MAX_PROJECT_NAME_LENGTH+_0x528610(0xcc);if(!PROJECT_NAME_PATTERN[_0x528610(0xd7)](_0x42140a))return _0x528610(0xd6);if(WINDOWS_RESERVED_NAME[_0x528610(0xd7)](_0x42140a))return'Project\x20name\x20\x22'+_0x42140a+_0x528610(0xd2);return null;}export function validateProjectName(_0x588647){const _0x3945f2=a164_0x11ce,_0x407d4d=_0x588647[_0x3945f2(0xd3)](),_0x44054a=getProjectNameValidationError(_0x407d4d);if(_0x44054a)throw CliErrors[_0x3945f2(0xc5)](_0x44054a,_0x3945f2(0xd5));return _0x407d4d;}function a164_0x315a(){const _0x516917=['Use\x20a\x20portable\x20directory\x20name\x20without\x20path\x20separators.','Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','test','Project\x20name\x20cannot\x20exceed\x20','149690aOIbma','validation','Project\x20name\x20cannot\x20be\x20empty','1816422OihQqt','66tUvINz','6zgUZBa','50ZSgLIL','196gBmQwk','\x20characters','47192JJfAul','342eXrdkq','107277YpdvAX','36911lYmpmF','3031870WfhZYM','\x22\x20is\x20reserved\x20on\x20Windows','trim','1517340CSqXGQ'];a164_0x315a=function(){return _0x516917;};return a164_0x315a();}
@@ -1 +1 @@
1
- function a171_0x3b1f(){const _0x41d947=['3275454VtpPhD','has','once','resolve','Project\x20template\x20ZIP\x20exceeds\x20','26TxcrYY','replace','openReadStream','45qVLLum','close','fileName','toLocaleLowerCase','startsWith','16347090vzeYEp','readEntry','isEncrypted','get','2031666WqtDkH','endsWith','Unable\x20to\x20read\x20ZIP\x20entry:\x20','44854iISJXc','1073164nSJJAJ','Unsafe\x20absolute\x20ZIP\x20entry\x20path:\x20','join','10VebhPF','test','set','Case-conflicting\x20ZIP\x20entry\x20path:\x20','dirname','open','3115086XnOxQq','sep','length','split','923408flYaKL','add','\x20entries.','slice','mkdir','catch'];a171_0x3b1f=function(){return _0x41d947;};return a171_0x3b1f();}(function(_0xdf71dc,_0x4224f1){const _0x500e50=a171_0x1a1f,_0x9248d5=_0xdf71dc();while(!![]){try{const _0x5409dc=-parseInt(_0x500e50(0xa7))/0x1*(-parseInt(_0x500e50(0x98))/0x2)+-parseInt(_0x500e50(0xa4))/0x3+-parseInt(_0x500e50(0xa8))/0x4*(parseInt(_0x500e50(0xab))/0x5)+-parseInt(_0x500e50(0xb1))/0x6+parseInt(_0x500e50(0x93))/0x7+parseInt(_0x500e50(0xb5))/0x8*(-parseInt(_0x500e50(0x9b))/0x9)+parseInt(_0x500e50(0xa0))/0xa;if(_0x5409dc===_0x4224f1)break;else _0x9248d5['push'](_0x9248d5['shift']());}catch(_0x395c1b){_0x9248d5['push'](_0x9248d5['shift']());}}}(a171_0x3b1f,0x5bb42));import{createWriteStream}from'node:fs';import a171_0x580ff9 from'node:fs/promises';import a171_0x558d41 from'node:path';import{pipeline}from'node:stream/promises';import a171_0x25caf0 from'yauzl';const MAX_ENTRY_COUNT=0x7d0,MAX_UNCOMPRESSED_SIZE=0x32*0x400*0x400,WINDOWS_RESERVED_NAME=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i,WINDOWS_INVALID_CHAR=/[<>:"|?*\x00-\x1f]/;function openZip(_0x2a4170){return new Promise((_0x501f1b,_0x220371)=>{const _0x19de26=a171_0x1a1f;a171_0x25caf0[_0x19de26(0xb0)](_0x2a4170,{'lazyEntries':!![],'decodeStrings':!![],'strictFileNames':!![],'validateEntrySizes':!![]},(_0x51d756,_0x50ae26)=>{if(_0x51d756||!_0x50ae26){_0x220371(_0x51d756||new Error('Unable\x20to\x20open\x20project\x20template\x20archive.'));return;}_0x501f1b(_0x50ae26);});});}function openEntryStream(_0x5a8d1e,_0x1acd09){return new Promise((_0x3e01c5,_0x1a53d1)=>{const _0xff94a3=a171_0x1a1f;_0x5a8d1e[_0xff94a3(0x9a)](_0x1acd09,(_0x1d3c58,_0x31801f)=>{const _0x467b93=_0xff94a3;if(_0x1d3c58||!_0x31801f){_0x1a53d1(_0x1d3c58||new Error(_0x467b93(0xa6)+_0x1acd09[_0x467b93(0x9d)]));return;}_0x3e01c5(_0x31801f);});});}function validateEntryPath(_0xfad2da){const _0x3a9e94=a171_0x1a1f,_0x3b5818=_0xfad2da[_0x3a9e94(0x99)](/\\/g,'/'),_0x3ad25a=_0x3b5818[_0x3a9e94(0xa5)]('/'),_0x45c93e=_0x3ad25a?_0x3b5818[_0x3a9e94(0x90)](0x0,-0x1):_0x3b5818;if(!_0x45c93e||_0x3b5818[_0x3a9e94(0x9f)]('/')||/^[A-Za-z]:\//['test'](_0x3b5818))throw new Error(_0x3a9e94(0xa9)+_0xfad2da);const _0xb74eb4=_0x45c93e[_0x3a9e94(0xb4)]('/');for(const _0x120b58 of _0xb74eb4){if(!_0x120b58||_0x120b58==='.'||_0x120b58==='..'||_0x120b58['endsWith']('.')||_0x120b58[_0x3a9e94(0xa5)]('\x20')||WINDOWS_INVALID_CHAR[_0x3a9e94(0xac)](_0x120b58)||WINDOWS_RESERVED_NAME[_0x3a9e94(0xac)](_0x120b58))throw new Error('Unsafe\x20or\x20non-portable\x20ZIP\x20entry\x20path:\x20'+_0xfad2da);}return{'relativePath':_0xb74eb4[_0x3a9e94(0xaa)](a171_0x558d41[_0x3a9e94(0xb2)]),'directory':_0x3ad25a};}function a171_0x1a1f(_0x1e4abd,_0x3b156b){_0x1e4abd=_0x1e4abd-0x90;const _0x3b1f01=a171_0x3b1f();let _0x1a1fab=_0x3b1f01[_0x1e4abd];return _0x1a1fab;}function isSymbolicLink(_0x595010){const _0xce63ce=_0x595010['externalFileAttributes']>>>0x10&0xffff;return(_0xce63ce&0xf000)===0xa000;}export async function extractProjectTemplateArchive(_0x54dbac,_0x16f7a2){const _0x2f608a=a171_0x1a1f,_0x4f0bac=await openZip(_0x54dbac),_0x50997f=a171_0x558d41[_0x2f608a(0x96)](_0x16f7a2),_0x317f10=new Set(),_0x326a09=new Map();let _0x4d7e0b=0x0,_0x2eea46=0x0;await a171_0x580ff9[_0x2f608a(0x91)](_0x50997f,{'recursive':!![]}),await new Promise((_0x21f171,_0x1f2d3b)=>{const _0x3bd46c=_0x2f608a;let _0x266780=![];const _0x557e74=_0x42f1bc=>{const _0x225074=a171_0x1a1f;if(_0x266780)return;_0x266780=!![],_0x4f0bac[_0x225074(0x9c)](),_0x1f2d3b(_0x42f1bc instanceof Error?_0x42f1bc:new Error(String(_0x42f1bc)));};_0x4f0bac[_0x3bd46c(0x95)]('error',_0x557e74),_0x4f0bac[_0x3bd46c(0x95)]('end',()=>{if(_0x266780)return;_0x266780=!![],_0x21f171();}),_0x4f0bac['on']('entry',_0x4a6221=>{const _0x2a4cac=_0x3bd46c;void(async()=>{const _0x551a9a=a171_0x1a1f;_0x4d7e0b+=0x1,_0x2eea46+=_0x4a6221['uncompressedSize'];if(_0x4d7e0b>MAX_ENTRY_COUNT)throw new Error(_0x551a9a(0x97)+MAX_ENTRY_COUNT+_0x551a9a(0xb7));if(_0x2eea46>MAX_UNCOMPRESSED_SIZE)throw new Error('Project\x20template\x20ZIP\x20expands\x20beyond\x20the\x2050\x20MB\x20safety\x20limit.');if(_0x4a6221[_0x551a9a(0xa2)]())throw new Error('Encrypted\x20ZIP\x20entries\x20are\x20not\x20supported:\x20'+_0x4a6221[_0x551a9a(0x9d)]);if(isSymbolicLink(_0x4a6221))throw new Error('Symbolic\x20links\x20are\x20not\x20allowed\x20in\x20project\x20templates:\x20'+_0x4a6221[_0x551a9a(0x9d)]);const {relativePath:_0x22f4c5,directory:_0x57da93}=validateEntryPath(_0x4a6221['fileName']),_0x24dacb=_0x22f4c5[_0x551a9a(0xb4)](a171_0x558d41[_0x551a9a(0xb2)]);for(let _0x5613c6=0x1;_0x5613c6<=_0x24dacb[_0x551a9a(0xb3)];_0x5613c6+=0x1){const _0x4425e3=_0x24dacb[_0x551a9a(0x90)](0x0,_0x5613c6)[_0x551a9a(0xaa)](a171_0x558d41[_0x551a9a(0xb2)]),_0x5693cd=_0x4425e3['toLocaleLowerCase']('en-US'),_0x698c78=_0x326a09[_0x551a9a(0xa3)](_0x5693cd);if(_0x698c78&&_0x698c78!==_0x4425e3)throw new Error(_0x551a9a(0xae)+_0x4a6221['fileName']);_0x326a09[_0x551a9a(0xad)](_0x5693cd,_0x4425e3);}const _0xfcb664=_0x22f4c5[_0x551a9a(0x9e)]('en-US');if(_0x317f10[_0x551a9a(0x94)](_0xfcb664))throw new Error('Duplicate\x20or\x20case-conflicting\x20ZIP\x20entry:\x20'+_0x4a6221[_0x551a9a(0x9d)]);_0x317f10[_0x551a9a(0xb6)](_0xfcb664);const _0x1cf96b=a171_0x558d41[_0x551a9a(0x96)](_0x50997f,_0x22f4c5);if(_0x1cf96b!==_0x50997f&&!_0x1cf96b[_0x551a9a(0x9f)](''+_0x50997f+a171_0x558d41[_0x551a9a(0xb2)]))throw new Error('ZIP\x20entry\x20escapes\x20the\x20destination\x20directory:\x20'+_0x4a6221[_0x551a9a(0x9d)]);if(_0x57da93)await a171_0x580ff9['mkdir'](_0x1cf96b,{'recursive':!![]});else{await a171_0x580ff9['mkdir'](a171_0x558d41[_0x551a9a(0xaf)](_0x1cf96b),{'recursive':!![]});const _0x3e03d4=await openEntryStream(_0x4f0bac,_0x4a6221);await pipeline(_0x3e03d4,createWriteStream(_0x1cf96b,{'flags':'wx','mode':0x1a4}));}_0x4f0bac[_0x551a9a(0xa1)]();})()[_0x2a4cac(0x92)](_0x557e74);}),_0x4f0bac[_0x3bd46c(0xa1)]();});}
1
+ (function(_0x101649,_0x5ec941){const _0x32b648=a165_0x1be9,_0x5aa32c=_0x101649();while(!![]){try{const _0x1fe95c=parseInt(_0x32b648(0x202))/0x1*(parseInt(_0x32b648(0x1f8))/0x2)+-parseInt(_0x32b648(0x1ef))/0x3*(parseInt(_0x32b648(0x1f7))/0x4)+-parseInt(_0x32b648(0x1fe))/0x5+-parseInt(_0x32b648(0x1f3))/0x6*(-parseInt(_0x32b648(0x1fc))/0x7)+-parseInt(_0x32b648(0x203))/0x8+-parseInt(_0x32b648(0x1fa))/0x9+-parseInt(_0x32b648(0x20c))/0xa*(-parseInt(_0x32b648(0x1ec))/0xb);if(_0x1fe95c===_0x5ec941)break;else _0x5aa32c['push'](_0x5aa32c['shift']());}catch(_0x4b39cd){_0x5aa32c['push'](_0x5aa32c['shift']());}}}(a165_0x275c,0xb7b17));import{createWriteStream}from'node:fs';import a165_0x5277b5 from'node:fs/promises';import a165_0x4e245a from'node:path';import{pipeline}from'node:stream/promises';import a165_0x56e1c3 from'yauzl';const MAX_ENTRY_COUNT=0x7d0,MAX_UNCOMPRESSED_SIZE=0x32*0x400*0x400,WINDOWS_RESERVED_NAME=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i,WINDOWS_INVALID_CHAR=/[<>:"|?*\x00-\x1f]/;function openZip(_0x79d265){return new Promise((_0x38a3bd,_0x423a96)=>{const _0x53bc59=a165_0x1be9;a165_0x56e1c3[_0x53bc59(0x209)](_0x79d265,{'lazyEntries':!![],'decodeStrings':!![],'strictFileNames':!![],'validateEntrySizes':!![]},(_0x4f7fc7,_0x3cc6f7)=>{const _0x569f0e=_0x53bc59;if(_0x4f7fc7||!_0x3cc6f7){_0x423a96(_0x4f7fc7||new Error(_0x569f0e(0x20d)));return;}_0x38a3bd(_0x3cc6f7);});});}function openEntryStream(_0x4866ec,_0x195e30){return new Promise((_0x43a88b,_0xd3df9c)=>{_0x4866ec['openReadStream'](_0x195e30,(_0x39c9c1,_0x2c4bee)=>{const _0x209456=a165_0x1be9;if(_0x39c9c1||!_0x2c4bee){_0xd3df9c(_0x39c9c1||new Error('Unable\x20to\x20read\x20ZIP\x20entry:\x20'+_0x195e30[_0x209456(0x205)]));return;}_0x43a88b(_0x2c4bee);});});}function a165_0x275c(){const _0x2d94b9=['join','37648116SHgvrD','startsWith','add','3jnVhqu','test','once','Symbolic\x20links\x20are\x20not\x20allowed\x20in\x20project\x20templates:\x20','1542dpIHEs','uncompressedSize','replace','Duplicate\x20or\x20case-conflicting\x20ZIP\x20entry:\x20','5298340VPYTXI','54bNPmZY','externalFileAttributes','12519693ISrurB','Unsafe\x20or\x20non-portable\x20ZIP\x20entry\x20path:\x20','38549cCQkDn','\x20entries.','4447395fWJLWD','mkdir','end','dirname','31083wDHncB','10556384cpNgpe','sep','fileName','Project\x20template\x20ZIP\x20exceeds\x20','isEncrypted','Case-conflicting\x20ZIP\x20entry\x20path:\x20','open','entry','close','10wtZCrX','Unable\x20to\x20open\x20project\x20template\x20archive.','readEntry','slice','catch','ZIP\x20entry\x20escapes\x20the\x20destination\x20directory:\x20','get','endsWith','toLocaleLowerCase','set','en-US'];a165_0x275c=function(){return _0x2d94b9;};return a165_0x275c();}function validateEntryPath(_0x30e38c){const _0x332cc3=a165_0x1be9,_0x58362f=_0x30e38c[_0x332cc3(0x1f5)](/\\/g,'/'),_0x3a49c4=_0x58362f[_0x332cc3(0x213)]('/'),_0x51537c=_0x3a49c4?_0x58362f['slice'](0x0,-0x1):_0x58362f;if(!_0x51537c||_0x58362f[_0x332cc3(0x1ed)]('/')||/^[A-Za-z]:\//[_0x332cc3(0x1f0)](_0x58362f))throw new Error('Unsafe\x20absolute\x20ZIP\x20entry\x20path:\x20'+_0x30e38c);const _0x46b5a4=_0x51537c['split']('/');for(const _0x37f946 of _0x46b5a4){if(!_0x37f946||_0x37f946==='.'||_0x37f946==='..'||_0x37f946[_0x332cc3(0x213)]('.')||_0x37f946[_0x332cc3(0x213)]('\x20')||WINDOWS_INVALID_CHAR[_0x332cc3(0x1f0)](_0x37f946)||WINDOWS_RESERVED_NAME[_0x332cc3(0x1f0)](_0x37f946))throw new Error(_0x332cc3(0x1fb)+_0x30e38c);}return{'relativePath':_0x46b5a4[_0x332cc3(0x1eb)](a165_0x4e245a[_0x332cc3(0x204)]),'directory':_0x3a49c4};}function a165_0x1be9(_0x495ed1,_0x3807c6){_0x495ed1=_0x495ed1-0x1e8;const _0x275cfa=a165_0x275c();let _0x1be97f=_0x275cfa[_0x495ed1];return _0x1be97f;}function isSymbolicLink(_0x55f5a9){const _0x400f10=a165_0x1be9,_0x58d33c=_0x55f5a9[_0x400f10(0x1f9)]>>>0x10&0xffff;return(_0x58d33c&0xf000)===0xa000;}export async function extractProjectTemplateArchive(_0x49ecc8,_0x1eab71){const _0x227883=a165_0x1be9,_0x548337=await openZip(_0x49ecc8),_0xa677c2=a165_0x4e245a['resolve'](_0x1eab71),_0x1197c4=new Set(),_0x20c2e7=new Map();let _0x590370=0x0,_0x484945=0x0;await a165_0x5277b5[_0x227883(0x1ff)](_0xa677c2,{'recursive':!![]}),await new Promise((_0x17c8fe,_0x49c363)=>{const _0x3186f7=_0x227883;let _0x2b2478=![];const _0x380c74=_0x42d9c4=>{const _0x559c02=a165_0x1be9;if(_0x2b2478)return;_0x2b2478=!![],_0x548337[_0x559c02(0x20b)](),_0x49c363(_0x42d9c4 instanceof Error?_0x42d9c4:new Error(String(_0x42d9c4)));};_0x548337[_0x3186f7(0x1f1)]('error',_0x380c74),_0x548337[_0x3186f7(0x1f1)](_0x3186f7(0x200),()=>{if(_0x2b2478)return;_0x2b2478=!![],_0x17c8fe();}),_0x548337['on'](_0x3186f7(0x20a),_0x395a38=>{const _0x4bdbc7=_0x3186f7;void(async()=>{const _0x23fa34=a165_0x1be9;_0x590370+=0x1,_0x484945+=_0x395a38[_0x23fa34(0x1f4)];if(_0x590370>MAX_ENTRY_COUNT)throw new Error(_0x23fa34(0x206)+MAX_ENTRY_COUNT+_0x23fa34(0x1fd));if(_0x484945>MAX_UNCOMPRESSED_SIZE)throw new Error('Project\x20template\x20ZIP\x20expands\x20beyond\x20the\x2050\x20MB\x20safety\x20limit.');if(_0x395a38[_0x23fa34(0x207)]())throw new Error('Encrypted\x20ZIP\x20entries\x20are\x20not\x20supported:\x20'+_0x395a38[_0x23fa34(0x205)]);if(isSymbolicLink(_0x395a38))throw new Error(_0x23fa34(0x1f2)+_0x395a38[_0x23fa34(0x205)]);const {relativePath:_0x1dc128,directory:_0x2e7f52}=validateEntryPath(_0x395a38['fileName']),_0x3efa3e=_0x1dc128['split'](a165_0x4e245a[_0x23fa34(0x204)]);for(let _0x16c947=0x1;_0x16c947<=_0x3efa3e['length'];_0x16c947+=0x1){const _0x1ce158=_0x3efa3e[_0x23fa34(0x20f)](0x0,_0x16c947)[_0x23fa34(0x1eb)](a165_0x4e245a[_0x23fa34(0x204)]),_0x53f112=_0x1ce158[_0x23fa34(0x1e8)](_0x23fa34(0x1ea)),_0x64c087=_0x20c2e7[_0x23fa34(0x212)](_0x53f112);if(_0x64c087&&_0x64c087!==_0x1ce158)throw new Error(_0x23fa34(0x208)+_0x395a38[_0x23fa34(0x205)]);_0x20c2e7[_0x23fa34(0x1e9)](_0x53f112,_0x1ce158);}const _0x1d45ab=_0x1dc128[_0x23fa34(0x1e8)](_0x23fa34(0x1ea));if(_0x1197c4['has'](_0x1d45ab))throw new Error(_0x23fa34(0x1f6)+_0x395a38[_0x23fa34(0x205)]);_0x1197c4[_0x23fa34(0x1ee)](_0x1d45ab);const _0x1f34fb=a165_0x4e245a['resolve'](_0xa677c2,_0x1dc128);if(_0x1f34fb!==_0xa677c2&&!_0x1f34fb[_0x23fa34(0x1ed)](''+_0xa677c2+a165_0x4e245a[_0x23fa34(0x204)]))throw new Error(_0x23fa34(0x211)+_0x395a38[_0x23fa34(0x205)]);if(_0x2e7f52)await a165_0x5277b5[_0x23fa34(0x1ff)](_0x1f34fb,{'recursive':!![]});else{await a165_0x5277b5[_0x23fa34(0x1ff)](a165_0x4e245a[_0x23fa34(0x201)](_0x1f34fb),{'recursive':!![]});const _0x4055f5=await openEntryStream(_0x548337,_0x395a38);await pipeline(_0x4055f5,createWriteStream(_0x1f34fb,{'flags':'wx','mode':0x1a4}));}_0x548337[_0x23fa34(0x20e)]();})()[_0x4bdbc7(0x210)](_0x380c74);}),_0x548337[_0x3186f7(0x20e)]();});}
@@ -1 +1 @@
1
- const a172_0x390b5d=a172_0x3d15;(function(_0x5a19ed,_0x3e90f1){const _0x3ab9a2=a172_0x3d15,_0x2a7905=_0x5a19ed();while(!![]){try{const _0x4d2c35=parseInt(_0x3ab9a2(0x10b))/0x1+-parseInt(_0x3ab9a2(0x111))/0x2+-parseInt(_0x3ab9a2(0x10c))/0x3+-parseInt(_0x3ab9a2(0x108))/0x4+-parseInt(_0x3ab9a2(0x109))/0x5*(-parseInt(_0x3ab9a2(0x10e))/0x6)+-parseInt(_0x3ab9a2(0x10d))/0x7+parseInt(_0x3ab9a2(0x110))/0x8;if(_0x4d2c35===_0x3e90f1)break;else _0x2a7905['push'](_0x2a7905['shift']());}catch(_0x12759a){_0x2a7905['push'](_0x2a7905['shift']());}}}(a172_0x24a0,0x4024d));import a172_0xcff20 from'node:path';function a172_0x3d15(_0x4a89f7,_0xade9be){_0x4a89f7=_0x4a89f7-0x108;const _0x24a06a=a172_0x24a0();let _0x3d1543=_0x24a06a[_0x4a89f7];return _0x3d1543;}import{fileURLToPath}from'node:url';function a172_0x24a0(){const _0x56e3d6=['173538cNUvdY','1550295uBFcVw','2198245ulPoZz','930OYXwxs','dirname','9915112FWEPdP','231610GpTgda','978656MIpPsK','1325ikjBAZ','resolve'];a172_0x24a0=function(){return _0x56e3d6;};return a172_0x24a0();}const __dirname=a172_0xcff20[a172_0x390b5d(0x10f)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0x19cbed=a172_0x390b5d;return a172_0xcff20[_0x19cbed(0x10a)](__dirname,'../../../../');}
1
+ const a166_0x411ff2=a166_0xd763;function a166_0x4090(){const _0x22adcc=['dirname','6501429kvJZLR','6363945zwHJsi','../../../../','1711424MqvZNj','148024ClvpJy','105PFOfiB','1794039DdjWDr','resolve','233103mBzTJO','2UuzUQK','3832116qKXPXp'];a166_0x4090=function(){return _0x22adcc;};return a166_0x4090();}(function(_0x3cdb7f,_0x31642c){const _0x570e2e=a166_0xd763,_0x46890c=_0x3cdb7f();while(!![]){try{const _0x2970a0=-parseInt(_0x570e2e(0x1d1))/0x1+-parseInt(_0x570e2e(0x1d2))/0x2*(-parseInt(_0x570e2e(0x1cf))/0x3)+-parseInt(_0x570e2e(0x1d9))/0x4*(-parseInt(_0x570e2e(0x1da))/0x5)+-parseInt(_0x570e2e(0x1d3))/0x6+parseInt(_0x570e2e(0x1d6))/0x7+-parseInt(_0x570e2e(0x1d8))/0x8+-parseInt(_0x570e2e(0x1d5))/0x9;if(_0x2970a0===_0x31642c)break;else _0x46890c['push'](_0x46890c['shift']());}catch(_0x2999a0){_0x46890c['push'](_0x46890c['shift']());}}}(a166_0x4090,0x74410));import a166_0xde7e49 from'node:path';function a166_0xd763(_0x4676d9,_0x11edd2){_0x4676d9=_0x4676d9-0x1cf;const _0x4090e9=a166_0x4090();let _0xd76376=_0x4090e9[_0x4676d9];return _0xd76376;}import{fileURLToPath}from'node:url';const __dirname=a166_0xde7e49[a166_0x411ff2(0x1d4)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0x142936=a166_0x411ff2;return a166_0xde7e49[_0x142936(0x1d0)](__dirname,_0x142936(0x1d7));}
@@ -1 +1 @@
1
- (function(_0x57c659,_0x1bb603){const _0x4e23b2=a173_0x5814,_0x2d22c2=_0x57c659();while(!![]){try{const _0x2c2f72=parseInt(_0x4e23b2(0x1dd))/0x1*(-parseInt(_0x4e23b2(0x1e9))/0x2)+-parseInt(_0x4e23b2(0x1e6))/0x3*(parseInt(_0x4e23b2(0x1ec))/0x4)+-parseInt(_0x4e23b2(0x1f0))/0x5*(parseInt(_0x4e23b2(0x1e2))/0x6)+parseInt(_0x4e23b2(0x1de))/0x7*(parseInt(_0x4e23b2(0x1ea))/0x8)+-parseInt(_0x4e23b2(0x1f1))/0x9*(parseInt(_0x4e23b2(0x1e7))/0xa)+parseInt(_0x4e23b2(0x1e3))/0xb+parseInt(_0x4e23b2(0x1ed))/0xc*(parseInt(_0x4e23b2(0x1f2))/0xd);if(_0x2c2f72===_0x1bb603)break;else _0x2d22c2['push'](_0x2d22c2['shift']());}catch(_0x14d937){_0x2d22c2['push'](_0x2d22c2['shift']());}}}(a173_0x10cb,0xba69c));import a173_0x290436 from'node:path';function a173_0x5814(_0x25974a,_0x42d032){_0x25974a=_0x25974a-0x1dc;const _0x10cb33=a173_0x10cb();let _0x58141d=_0x10cb33[_0x25974a];return _0x58141d;}function a173_0x10cb(){const _0x2bf6e1=['5361dYLmwZ','14123020QNrwzn','项目模板创建完成','199724LYlhSl','969896cgLGzf','success','2316RiJEKZ','22104WlFVpU','copy','resolve','260855azVcBX','9GhUMNL','18317waUbgW','now','1jkWxHP','49KCEaDw','source','项目模板复制失败','info','102jbHgtS','8285805OPGbWX','version','开始创建项目模板'];a173_0x10cb=function(){return _0x2bf6e1;};return a173_0x10cb();}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{materializeProjectTemplate}from'../../../commands/project/create/materialize-project-template.js';export async function copyProjectTemplate(_0xaeb44d,_0x51e2ab){const _0x183f5c=a173_0x5814,_0xade008=Date[_0x183f5c(0x1dc)](),_0x2f88c8=a173_0x290436[_0x183f5c(0x1ef)](process['cwd'](),_0xaeb44d);try{logger[_0x183f5c(0x1e1)](_0x183f5c(0x1ee),_0x183f5c(0x1e5),{'projectCode':_0xaeb44d});const _0xfba7e9=await materializeProjectTemplate(_0x2f88c8,_0x51e2ab),_0x1b3a1e=Date[_0x183f5c(0x1dc)]()-_0xade008;logger[_0x183f5c(0x1eb)]('copy',_0x183f5c(0x1e8),_0x1b3a1e,{'projectCode':_0xaeb44d,'templateSource':_0xfba7e9[_0x183f5c(0x1df)],'templateVersion':_0xfba7e9[_0x183f5c(0x1e4)]});}catch(_0x3c9c56){const _0x54ecd4=Date['now']()-_0xade008;logger['error']('copy',_0x183f5c(0x1e0),{'projectCode':_0xaeb44d,'error':_0x3c9c56 instanceof Error?_0x3c9c56['message']:String(_0x3c9c56),'duration':_0x54ecd4});throw _0x3c9c56;}return formatElapsed(_0xade008);}
1
+ (function(_0x37a86c,_0x4de8a4){const _0x539047=a167_0x65fa,_0x510f9d=_0x37a86c();while(!![]){try{const _0x141f29=-parseInt(_0x539047(0x75))/0x1+parseInt(_0x539047(0x71))/0x2*(-parseInt(_0x539047(0x6c))/0x3)+-parseInt(_0x539047(0x77))/0x4*(-parseInt(_0x539047(0x65))/0x5)+-parseInt(_0x539047(0x78))/0x6+-parseInt(_0x539047(0x68))/0x7+parseInt(_0x539047(0x6f))/0x8+parseInt(_0x539047(0x6d))/0x9;if(_0x141f29===_0x4de8a4)break;else _0x510f9d['push'](_0x510f9d['shift']());}catch(_0x2ee335){_0x510f9d['push'](_0x510f9d['shift']());}}}(a167_0x1697,0x4598f));import a167_0x5a89dd from'node:path';function a167_0x65fa(_0x22cb8b,_0x1676f9){_0x22cb8b=_0x22cb8b-0x65;const _0x16976d=a167_0x1697();let _0x65faf8=_0x16976d[_0x22cb8b];return _0x65faf8;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{materializeProjectTemplate}from'../../../commands/project/create/materialize-project-template.js';export async function copyProjectTemplate(_0x26fe36,_0x5cab1b){const _0x247b2b=a167_0x65fa,_0xa5cc3c=Date['now'](),_0x53c74e=a167_0x5a89dd[_0x247b2b(0x70)](process['cwd'](),_0x26fe36);try{logger[_0x247b2b(0x67)](_0x247b2b(0x76),_0x247b2b(0x66),{'projectCode':_0x26fe36});const _0x1b4e67=await materializeProjectTemplate(_0x53c74e,_0x5cab1b),_0x3f9fac=Date[_0x247b2b(0x6e)]()-_0xa5cc3c;logger[_0x247b2b(0x74)]('copy',_0x247b2b(0x6b),_0x3f9fac,{'projectCode':_0x26fe36,'templateSource':_0x1b4e67[_0x247b2b(0x69)],'templateVersion':_0x1b4e67[_0x247b2b(0x6a)]});}catch(_0x4c701e){const _0x3695db=Date[_0x247b2b(0x6e)]()-_0xa5cc3c;logger[_0x247b2b(0x72)]('copy',_0x247b2b(0x73),{'projectCode':_0x26fe36,'error':_0x4c701e instanceof Error?_0x4c701e['message']:String(_0x4c701e),'duration':_0x3695db});throw _0x4c701e;}return formatElapsed(_0xa5cc3c);}function a167_0x1697(){const _0x3da0b6=['43546DhXGiF','error','项目模板复制失败','success','81617EtThLJ','copy','316pLGFlZ','557916nMLLBr','24870ubYHpT','开始创建项目模板','info','2820265GYaoZe','source','version','项目模板创建完成','39DvKiwA','5234193hPRNfH','now','1368760NlTXqc','resolve'];a167_0x1697=function(){return _0x3da0b6;};return a167_0x1697();}
@@ -1 +1 @@
1
- function a174_0xf2f1(_0x3c8376,_0x27f2c3){_0x3c8376=_0x3c8376-0x124;const _0x4d31c5=a174_0x4d31();let _0xf2f144=_0x4d31c5[_0x3c8376];return _0xf2f144;}(function(_0x4ae6f9,_0x161f81){const _0x3589af=a174_0xf2f1,_0x5139d3=_0x4ae6f9();while(!![]){try{const _0x49a551=parseInt(_0x3589af(0x129))/0x1*(parseInt(_0x3589af(0x12e))/0x2)+-parseInt(_0x3589af(0x127))/0x3+-parseInt(_0x3589af(0x131))/0x4*(parseInt(_0x3589af(0x132))/0x5)+-parseInt(_0x3589af(0x130))/0x6+-parseInt(_0x3589af(0x135))/0x7*(parseInt(_0x3589af(0x133))/0x8)+parseInt(_0x3589af(0x12a))/0x9+parseInt(_0x3589af(0x136))/0xa*(parseInt(_0x3589af(0x139))/0xb);if(_0x49a551===_0x161f81)break;else _0x5139d3['push'](_0x5139d3['shift']());}catch(_0x9e9579){_0x5139d3['push'](_0x5139d3['shift']());}}}(a174_0x4d31,0xe53cf));import a174_0x2d571b from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';function a174_0x4d31(){const _0x2e3bac=['2KDwjSI','resolve','7780146ILmmtk','20HsvoBx','1328060VZbHzM','120304AAwGii','开始格式化代码','28pJXtLN','6726060FMOvJi','message','--write','33ZaPXpI','error','prettier','info','5396403ruRdzw','npx','1832969RqYpvi','14146884ceciUZ','代码格式化失败','now','format'];a174_0x4d31=function(){return _0x2e3bac;};return a174_0x4d31();}export async function formatProjectCode(_0x14c607){const _0x2c13ae=a174_0xf2f1,_0x3112d1=Date[_0x2c13ae(0x12c)](),_0x5a9a0d=a174_0x2d571b[_0x2c13ae(0x12f)](process['cwd'](),_0x14c607);try{logger[_0x2c13ae(0x126)](_0x2c13ae(0x12d),_0x2c13ae(0x134),{'projectCode':_0x14c607}),await execa(resolveNpmBin(_0x2c13ae(0x128)),[_0x2c13ae(0x125),_0x2c13ae(0x138),'.'],{'cwd':_0x5a9a0d});const _0x561f9d=Date[_0x2c13ae(0x12c)]()-_0x3112d1;logger['success'](_0x2c13ae(0x12d),'代码格式化完成',_0x561f9d,{'projectCode':_0x14c607});}catch(_0x1aff54){const _0xa1284d=Date[_0x2c13ae(0x12c)]()-_0x3112d1;logger[_0x2c13ae(0x124)]('format',_0x2c13ae(0x12b),{'projectCode':_0x14c607,'error':_0x1aff54 instanceof Error?_0x1aff54[_0x2c13ae(0x137)]:String(_0x1aff54),'duration':_0xa1284d});throw _0x1aff54;}return formatElapsed(_0x3112d1);}
1
+ (function(_0x3cd792,_0x5d00de){const _0x5901a9=a168_0x133c,_0x313d4a=_0x3cd792();while(!![]){try{const _0x5c706f=-parseInt(_0x5901a9(0x7c))/0x1+parseInt(_0x5901a9(0x7d))/0x2+-parseInt(_0x5901a9(0x82))/0x3+parseInt(_0x5901a9(0x7f))/0x4+parseInt(_0x5901a9(0x74))/0x5+parseInt(_0x5901a9(0x72))/0x6*(parseInt(_0x5901a9(0x78))/0x7)+-parseInt(_0x5901a9(0x79))/0x8;if(_0x5c706f===_0x5d00de)break;else _0x313d4a['push'](_0x313d4a['shift']());}catch(_0x51dabe){_0x313d4a['push'](_0x313d4a['shift']());}}}(a168_0x190d,0x925d5));import a168_0x416ef9 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';function a168_0x133c(_0x15efa3,_0x42aa28){_0x15efa3=_0x15efa3-0x70;const _0x190d25=a168_0x190d();let _0x133ca5=_0x190d25[_0x15efa3];return _0x133ca5;}import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';function a168_0x190d(){const _0x3be17d=['1861950vtNTjY','代码格式化完成','info','1996896rlpvPL','开始格式化代码','2488785MClDMJ','--write','resolve','now','14zmeJFJ','11120024qMiOIC','format','prettier','728360fSUMXl','2294688wdNfxL','npx','4111156nZDBMd','cwd','message'];a168_0x190d=function(){return _0x3be17d;};return a168_0x190d();}export async function formatProjectCode(_0x3e0087){const _0x2334c3=a168_0x133c,_0x42a914=Date['now'](),_0x5c3f26=a168_0x416ef9[_0x2334c3(0x76)](process[_0x2334c3(0x80)](),_0x3e0087);try{logger[_0x2334c3(0x71)](_0x2334c3(0x7a),_0x2334c3(0x73),{'projectCode':_0x3e0087}),await execa(resolveNpmBin(_0x2334c3(0x7e)),[_0x2334c3(0x7b),_0x2334c3(0x75),'.'],{'cwd':_0x5c3f26});const _0x4bcc13=Date[_0x2334c3(0x77)]()-_0x42a914;logger['success'](_0x2334c3(0x7a),_0x2334c3(0x70),_0x4bcc13,{'projectCode':_0x3e0087});}catch(_0x4f4941){const _0x3facf7=Date[_0x2334c3(0x77)]()-_0x42a914;logger['error'](_0x2334c3(0x7a),'代码格式化失败',{'projectCode':_0x3e0087,'error':_0x4f4941 instanceof Error?_0x4f4941[_0x2334c3(0x81)]:String(_0x4f4941),'duration':_0x3facf7});throw _0x4f4941;}return formatElapsed(_0x42a914);}
@@ -1 +1 @@
1
- (function(_0x284af9,_0x4b2322){const _0x26281b=a175_0x29bf,_0x4ba4fe=_0x284af9();while(!![]){try{const _0x503f2f=-parseInt(_0x26281b(0x12f))/0x1*(parseInt(_0x26281b(0x126))/0x2)+parseInt(_0x26281b(0x120))/0x3+parseInt(_0x26281b(0x127))/0x4*(parseInt(_0x26281b(0x11c))/0x5)+parseInt(_0x26281b(0x121))/0x6+parseInt(_0x26281b(0x123))/0x7+-parseInt(_0x26281b(0x12c))/0x8+-parseInt(_0x26281b(0x12e))/0x9*(parseInt(_0x26281b(0x12b))/0xa);if(_0x503f2f===_0x4b2322)break;else _0x4ba4fe['push'](_0x4ba4fe['shift']());}catch(_0x5cc714){_0x4ba4fe['push'](_0x4ba4fe['shift']());}}}(a175_0x1d42,0x9ad4e));import a175_0x16bae8 from'node:path';import{execa}from'execa';function a175_0x29bf(_0x24bfb4,_0x388fa3){_0x24bfb4=_0x24bfb4-0x119;const _0x1d42a5=a175_0x1d42();let _0x29bfa9=_0x1d42a5[_0x24bfb4];return _0x29bfa9;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';function a175_0x1d42(){const _0x2bacc1=['message','79572ehIZEE','4272912sXTbya','依赖安装失败','4821229tOSHVO','cwd','info','6aEjrMK','228ROBUlt','https://registry.npmmirror.com','now','install','12700QVBhcD','3649648rUmAiX','--registry','3951JqEuWh','15590iMYBNq','依赖安装完成','error','npm','success','23445piuZmw','resolve','开始安装依赖'];a175_0x1d42=function(){return _0x2bacc1;};return a175_0x1d42();}import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x5728f4){const _0x219e92=a175_0x29bf,_0x4bcae8=Date[_0x219e92(0x129)](),_0x246b28=a175_0x16bae8[_0x219e92(0x11d)](process[_0x219e92(0x124)](),_0x5728f4);try{logger[_0x219e92(0x125)](_0x219e92(0x12a),_0x219e92(0x11e),{'projectCode':_0x5728f4,'registry':_0x219e92(0x128)}),await execa(resolveNpmBin(_0x219e92(0x11a)),[_0x219e92(0x12a),_0x219e92(0x12d),_0x219e92(0x128)],{'cwd':_0x246b28});const _0x524e58=Date[_0x219e92(0x129)]()-_0x4bcae8;logger[_0x219e92(0x11b)](_0x219e92(0x12a),_0x219e92(0x130),_0x524e58,{'projectCode':_0x5728f4});}catch(_0x561232){const _0x540c2a=Date[_0x219e92(0x129)]()-_0x4bcae8;logger[_0x219e92(0x119)](_0x219e92(0x12a),_0x219e92(0x122),{'projectCode':_0x5728f4,'error':_0x561232 instanceof Error?_0x561232[_0x219e92(0x11f)]:String(_0x561232),'duration':_0x540c2a});throw _0x561232;}return formatElapsed(_0x4bcae8);}
1
+ (function(_0x2661e7,_0x270144){const _0x4fc9c5=a169_0x4f48,_0x174696=_0x2661e7();while(!![]){try{const _0x3135b1=parseInt(_0x4fc9c5(0x12e))/0x1*(-parseInt(_0x4fc9c5(0x12d))/0x2)+parseInt(_0x4fc9c5(0x11a))/0x3*(parseInt(_0x4fc9c5(0x11f))/0x4)+parseInt(_0x4fc9c5(0x123))/0x5+parseInt(_0x4fc9c5(0x127))/0x6*(parseInt(_0x4fc9c5(0x126))/0x7)+parseInt(_0x4fc9c5(0x120))/0x8+-parseInt(_0x4fc9c5(0x119))/0x9*(-parseInt(_0x4fc9c5(0x11d))/0xa)+parseInt(_0x4fc9c5(0x11c))/0xb*(-parseInt(_0x4fc9c5(0x11b))/0xc);if(_0x3135b1===_0x270144)break;else _0x174696['push'](_0x174696['shift']());}catch(_0x45b852){_0x174696['push'](_0x174696['shift']());}}}(a169_0x1c73,0xb96b5));import a169_0x29dbd3 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';function a169_0x1c73(){const _0x36d278=['697165KTcbLA','6clYqVK','install','success','依赖安装完成','--registry','now','70870yKkapK','34sgbaLM','message','npm','1643823vZmjFK','3hIPniq','4692hgLzfH','29425ZVpLTy','70VGBxas','error','985492KvqQxY','1231672aAOXeb','https://registry.npmmirror.com','开始安装依赖','6158680DwnIuX','依赖安装失败','info'];a169_0x1c73=function(){return _0x36d278;};return a169_0x1c73();}import{logger}from'../../../utils/logger.js';function a169_0x4f48(_0x1b2753,_0x3fe4de){_0x1b2753=_0x1b2753-0x117;const _0x1c7338=a169_0x1c73();let _0x4f484c=_0x1c7338[_0x1b2753];return _0x4f484c;}import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x4d1640){const _0x3edd41=a169_0x4f48,_0x24c597=Date[_0x3edd41(0x12c)](),_0x3942ed=a169_0x29dbd3['resolve'](process['cwd'](),_0x4d1640);try{logger[_0x3edd41(0x125)](_0x3edd41(0x128),_0x3edd41(0x122),{'projectCode':_0x4d1640,'registry':'https://registry.npmmirror.com'}),await execa(resolveNpmBin(_0x3edd41(0x118)),[_0x3edd41(0x128),_0x3edd41(0x12b),_0x3edd41(0x121)],{'cwd':_0x3942ed});const _0x2c2327=Date[_0x3edd41(0x12c)]()-_0x24c597;logger[_0x3edd41(0x129)](_0x3edd41(0x128),_0x3edd41(0x12a),_0x2c2327,{'projectCode':_0x4d1640});}catch(_0x592120){const _0x431224=Date[_0x3edd41(0x12c)]()-_0x24c597;logger[_0x3edd41(0x11e)](_0x3edd41(0x128),_0x3edd41(0x124),{'projectCode':_0x4d1640,'error':_0x592120 instanceof Error?_0x592120[_0x3edd41(0x117)]:String(_0x592120),'duration':_0x431224});throw _0x592120;}return formatElapsed(_0x24c597);}
@@ -1 +1 @@
1
- function a176_0x1c6d(_0x5ca797,_0x2e15f5){_0x5ca797=_0x5ca797-0xb4;const _0x5d1d1c=a176_0x5d1d();let _0x1c6d29=_0x5d1d1c[_0x5ca797];return _0x1c6d29;}const a176_0x345e7e=a176_0x1c6d;(function(_0x5de2cb,_0x132721){const _0x2c5c01=a176_0x1c6d,_0x5c2fb0=_0x5de2cb();while(!![]){try{const _0x579162=parseInt(_0x2c5c01(0xd3))/0x1*(-parseInt(_0x2c5c01(0xbd))/0x2)+parseInt(_0x2c5c01(0xbb))/0x3*(parseInt(_0x2c5c01(0xd6))/0x4)+-parseInt(_0x2c5c01(0xd5))/0x5+-parseInt(_0x2c5c01(0xb6))/0x6+-parseInt(_0x2c5c01(0xbf))/0x7+-parseInt(_0x2c5c01(0xc1))/0x8*(-parseInt(_0x2c5c01(0xc8))/0x9)+parseInt(_0x2c5c01(0xc2))/0xa;if(_0x579162===_0x132721)break;else _0x5c2fb0['push'](_0x5c2fb0['shift']());}catch(_0x13c4b6){_0x5c2fb0['push'](_0x5c2fb0['shift']());}}}(a176_0x5d1d,0x35071));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{upgradeApp}from'../../commands/project/upgrade.js';const createFlags=[{'name':a176_0x345e7e(0xc0),'type':a176_0x345e7e(0xd1),'description':a176_0x345e7e(0xbe)},{'name':a176_0x345e7e(0xd4),'type':a176_0x345e7e(0xd1),'description':a176_0x345e7e(0xba)},{'name':a176_0x345e7e(0xb5),'type':a176_0x345e7e(0xd1),'description':a176_0x345e7e(0xc4)}],upgradeFlags=[{'name':a176_0x345e7e(0xb9),'type':a176_0x345e7e(0xb8),'description':a176_0x345e7e(0xcf),'default':![]}];function a176_0x5d1d(){const _0x58044d=['Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','create','args','upgrade','Skip\x20confirmation\x20prompt','trim','string','\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]','372182PudmfK','env','662250zvtgam','175540BjxwCZ','Create\x20a\x20new\x20project','appcode','1017720wdqOYx','project','boolean','yes','Target\x20environment','21GVELNw','str','2peOaKI','Project\x20name','2195228zGAQqX','name','376ujBzrX','5895890rVIpUK','nonInteractive','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','../../commands/project/create/main.js','write','cookie','59031mQcaAZ','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.'];a176_0x5d1d=function(){return _0x58044d;};return a176_0x5d1d();}export const projectDefinitions=[{'service':a176_0x345e7e(0xb7),'command':a176_0x345e7e(0xcc),'description':a176_0x345e7e(0xb4),'risk':a176_0x345e7e(0xc6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'project-name','description':a176_0x345e7e(0xca),'required':![]}],'flags':createFlags,async 'execute'(_0x2ab17a){const _0x98cfa5=a176_0x345e7e,{createApp:_0x25a32c}=await import(_0x98cfa5(0xc5)),_0xa2d164=_0x2ab17a[_0x98cfa5(0xbc)]('name')[_0x98cfa5(0xd0)]()||_0x2ab17a[_0x98cfa5(0xcd)][0x0]?.['trim'](),_0x2990b0=_0x2ab17a[_0x98cfa5(0xbc)](_0x98cfa5(0xd4))||undefined,_0xb262fd=_0x2ab17a[_0x98cfa5(0xbc)]('appcode')||undefined;if(_0x2ab17a[_0x98cfa5(0xc3)]){if(!_0xa2d164)throw CliErrors['validation'](_0x98cfa5(0xc9),'Usage:\x20'+CLI_BIN_NAME+_0x98cfa5(0xd2));await _0x25a32c({'projectCode':_0xa2d164,'appCode':_0xb262fd,'env':_0x2990b0,'cookie':_0x2ab17a[_0x98cfa5(0xc7)],'nonInteractive':!![]});}else await _0x25a32c({'projectCode':_0xa2d164,'appCode':_0xb262fd,'env':_0x2990b0,'cookie':_0x2ab17a[_0x98cfa5(0xc7)]});return{'ok':!![]};}},{'service':'project','command':a176_0x345e7e(0xce),'description':a176_0x345e7e(0xcb),'risk':a176_0x345e7e(0xc6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x3cf88e){const _0xce9ffd=a176_0x345e7e;return await upgradeApp(_0x3cf88e[_0xce9ffd(0xc3)],{'yes':_0x3cf88e['bool']('yes')}),{'ok':!![]};}}];
1
+ const a170_0xf07df9=a170_0x91ba;(function(_0x19a917,_0x484206){const _0x36f2d5=a170_0x91ba,_0x49c8c5=_0x19a917();while(!![]){try{const _0x529d1a=parseInt(_0x36f2d5(0xc8))/0x1*(parseInt(_0x36f2d5(0xbe))/0x2)+parseInt(_0x36f2d5(0xd4))/0x3+-parseInt(_0x36f2d5(0xcc))/0x4+-parseInt(_0x36f2d5(0xda))/0x5*(-parseInt(_0x36f2d5(0xce))/0x6)+-parseInt(_0x36f2d5(0xdd))/0x7*(-parseInt(_0x36f2d5(0xde))/0x8)+-parseInt(_0x36f2d5(0xcb))/0x9*(parseInt(_0x36f2d5(0xdb))/0xa)+-parseInt(_0x36f2d5(0xbd))/0xb*(-parseInt(_0x36f2d5(0xcf))/0xc);if(_0x529d1a===_0x484206)break;else _0x49c8c5['push'](_0x49c8c5['shift']());}catch(_0x7b8995){_0x49c8c5['push'](_0x49c8c5['shift']());}}}(a170_0x4b16,0x854f9));import{CliErrors}from'../../errors.js';function a170_0x4b16(){const _0x115522=['project','Project\x20name','Skip\x20confirmation\x20prompt','str','boolean','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','name','env','14FkSmhN','string','validation','2500596PGjOZN','3241232fZYRBA','trim','6XVVRTm','580308HoubWj','write','cookie','Usage:\x20','Target\x20environment','6714fggTCO','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','Create\x20a\x20new\x20project','project-name','nonInteractive','appcode','2951005zuhHOk','30DgOHQm','../../commands/project/create/main.js','10577ipuHEi','3160UfZYgM','upgrade','args','165AONgbx','39316wfsaEJ','bool'];a170_0x4b16=function(){return _0x115522;};return a170_0x4b16();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a170_0x91ba(_0x268336,_0x179353){_0x268336=_0x268336-0xbc;const _0x4b1681=a170_0x4b16();let _0x91ba1e=_0x4b1681[_0x268336];return _0x91ba1e;}const createFlags=[{'name':a170_0xf07df9(0xc6),'type':a170_0xf07df9(0xc9),'description':a170_0xf07df9(0xc1)},{'name':a170_0xf07df9(0xc7),'type':a170_0xf07df9(0xc9),'description':a170_0xf07df9(0xd3)},{'name':a170_0xf07df9(0xd9),'type':a170_0xf07df9(0xc9),'description':a170_0xf07df9(0xd5)}],upgradeFlags=[{'name':'yes','type':a170_0xf07df9(0xc4),'description':a170_0xf07df9(0xc2),'default':![]}];export const projectDefinitions=[{'service':'project','command':'create','description':a170_0xf07df9(0xd6),'risk':a170_0xf07df9(0xd0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a170_0xf07df9(0xd7),'description':'Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','required':![]}],'flags':createFlags,async 'execute'(_0x25004c){const _0x27ddd4=a170_0xf07df9,{createApp:_0xd76214}=await import(_0x27ddd4(0xdc)),_0x287a67=_0x25004c[_0x27ddd4(0xc3)](_0x27ddd4(0xc6))['trim']()||_0x25004c[_0x27ddd4(0xbc)][0x0]?.[_0x27ddd4(0xcd)](),_0x5b465a=_0x25004c['str']('env')||undefined,_0x251993=_0x25004c['str'](_0x27ddd4(0xd9))||undefined;if(_0x25004c[_0x27ddd4(0xd8)]){if(!_0x287a67)throw CliErrors[_0x27ddd4(0xca)]('Non-interactive\x20mode\x20requires\x20a\x20project\x20name.',_0x27ddd4(0xd2)+CLI_BIN_NAME+'\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]');await _0xd76214({'projectCode':_0x287a67,'appCode':_0x251993,'env':_0x5b465a,'cookie':_0x25004c[_0x27ddd4(0xd1)],'nonInteractive':!![]});}else await _0xd76214({'projectCode':_0x287a67,'appCode':_0x251993,'env':_0x5b465a,'cookie':_0x25004c[_0x27ddd4(0xd1)]});return{'ok':!![]};}},{'service':a170_0xf07df9(0xc0),'command':a170_0xf07df9(0xdf),'description':a170_0xf07df9(0xc5),'risk':a170_0xf07df9(0xd0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x4f7be0){const _0x21df33=a170_0xf07df9;return await upgradeApp(_0x4f7be0[_0x21df33(0xd8)],{'yes':_0x4f7be0[_0x21df33(0xbf)]('yes')}),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a177_0x210f1e=a177_0x294f;(function(_0x2a7220,_0x49114c){const _0x182b27=a177_0x294f,_0x41d8f9=_0x2a7220();while(!![]){try{const _0x55229e=-parseInt(_0x182b27(0x104))/0x1+parseInt(_0x182b27(0xc8))/0x2*(-parseInt(_0x182b27(0xab))/0x3)+-parseInt(_0x182b27(0xea))/0x4*(-parseInt(_0x182b27(0xf1))/0x5)+parseInt(_0x182b27(0xd0))/0x6+parseInt(_0x182b27(0xdb))/0x7+parseInt(_0x182b27(0xe8))/0x8+parseInt(_0x182b27(0xed))/0x9*(-parseInt(_0x182b27(0x123))/0xa);if(_0x55229e===_0x49114c)break;else _0x41d8f9['push'](_0x41d8f9['shift']());}catch(_0x31a680){_0x41d8f9['push'](_0x41d8f9['shift']());}}}(a177_0x5506,0x25728));import a177_0x1cf5f8 from'chalk';import a177_0xcdf33e 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';function a177_0x5506(){const _0x132d7c=['Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','utf8','1840336IXrWpN','Step\x204/7:\x20Cleaning\x20MCP\x20config...','883944vflsca','Config\x20migration','package.json','50616pqvpli','lovrabet/rabetbase\x20installed\x20globally','Step\x201/7:\x20Migrating\x20config...','Step\x204/7:\x20MCP\x20config\x20—\x20','5LAvWar','fail','status','\x20→\x20keys:\x20','\x20removed\x20(','join','dependencies','FAIL','Legacy\x20artifacts:','mcpServers','needsSkillSwap','oldMcpConfig','@lovrabet/dataset-mcp-server','hasNewConfig','Proceed\x20with\x20upgrade?','gray','removed\x20','Install\x20new\x20skill','keys','235086fIDgeu','===\x20Upgrade\x20Summary\x20===','isArray','.claude/skills/lovrabet','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','@lovrabet/sdk:','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','exit\x20','log','\x20(backup:\x20','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','filter','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','Step\x206/7:\x20Installing\x20new\x20skill...','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','Remove\x20old\x20skill','latest','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','no\x20matching\x20entry\x20found','message','parse','yes','\x20removed','undefined','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','Remove\x20legacy\x20artifacts','configMigration','bold','.bak','oldPath','label','260eJDurc','entries','detail','yellow','sdkUpgrade','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','@lovrabet/sdk','12zeLeoL','MCP\x20config:','\x20from\x20','Clean\x20MCP\x20config','Upgrade\x20@lovrabet/sdk','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','path','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','\x20\x20Current\x20version\x20in\x20','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','.cursor/mcp.json','cyan','length','error','Upgrade\x20completed\x20successfully!','skipped','Config\x20file:','skipped\x20(no\x20legacy\x20config)','devDependencies','includes','not\x20needed','green','Step\x205/7:\x20Removing\x20old\x20skill...','start','step','failed','\x20\x20Fields\x20to\x20migrate:\x20','no\x20legacy\x20config\x20found','red','97222zAIATH','.lovrabet','Remove\x20.lovrabet/','\x20\x20\x20\x20\x20\x20\x20','values','some','Upgrade\x20cancelled.','stringify','146280ytNhBO','\x20\x20Step\x20','done','CANCEL','fields','inherit','no\x20legacy\x20entry','succeed','FOUND','\x20\x20npm\x20install','args','1776110XqDvBQ','\x20→\x20latest','string','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','[\x22@lovrabet/sdk\x22]:\x20','.cursor/rules/lovrabet_rules.mdc','\x20\x20#\x20or','\x20→\x20','white','lovrabet/rabetbase','push'];a177_0x5506=function(){return _0x132d7c;};return a177_0x5506();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../../skills/npx-skills-add.js';function a177_0x294f(_0x4496ea,_0x17b7a4){_0x4496ea=_0x4496ea-0xa6;const _0x550696=a177_0x5506();let _0x294f94=_0x550696[_0x4496ea];return _0x294f94;}import{askConfirm}from'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a177_0x210f1e(0x10f)](_0x490c1d=>_0x490c1d!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x323e3a){const _0x2785e8=a177_0x210f1e,_0x36d041=[];for(const _0x178d52 of Object[_0x2785e8(0xcc)](CORE_IDE_CONFIGS)){if(_0x178d52['files'])for(const _0x3c53d8 of _0x178d52['files']){_0x36d041['push'](resolve(_0x323e3a,_0x3c53d8[_0x2785e8(0xb1)]));}}return _0x36d041;}function analyse(_0x3fe793){const _0x4182ee=a177_0x210f1e;let _0x5c3d27=null;const _0x2ed53a=resolve(_0x3fe793,NEW_CONFIG_NAME),_0x538721=existsSync(_0x2ed53a);for(const _0x179005 of LEGACY_CONFIG_NAMES){const _0x3a30c0=resolve(_0x3fe793,_0x179005);if(existsSync(_0x3a30c0)){const _0x588489=readConfigFile(_0x3a30c0),_0x92a2c=Object[_0x4182ee(0x103)](_0x588489)['filter'](_0x536f17=>typeof _0x588489[_0x536f17]!==_0x4182ee(0x11b));_0x5c3d27={'oldPath':_0x3a30c0,'hasNewConfig':_0x538721,'fields':_0x92a2c};break;}}const _0x16fe14=[],_0x3a1690=resolve(_0x3fe793,_0x4182ee(0xc9));if(existsSync(_0x3a1690))_0x16fe14[_0x4182ee(0xe5)](_0x3a1690);const _0x28435a=resolve(_0x3fe793,_0x4182ee(0xe0));if(existsSync(_0x28435a))_0x16fe14['push'](_0x28435a);const _0x33cd25=resolve(_0x3fe793,_0x4182ee(0x107));if(existsSync(_0x33cd25))_0x16fe14[_0x4182ee(0xe5)](_0x33cd25);for(const _0x2c7a8f of collectIdeSkillFiles(_0x3fe793)){if(existsSync(_0x2c7a8f))_0x16fe14['push'](_0x2c7a8f);}let _0x2ebd54=null;const _0xf55190=resolve(_0x3fe793,_0x4182ee(0xb5));if(existsSync(_0xf55190))try{const _0x22e2ef=JSON[_0x4182ee(0x118)](readFileSync(_0xf55190,_0x4182ee(0xe7)));if(_0x22e2ef?.[_0x4182ee(0xfa)]&&typeof _0x22e2ef['mcpServers']==='object'){const _0x49ccec=[];for(const [_0x326fc2,_0x2f195]of Object[_0x4182ee(0x124)](_0x22e2ef[_0x4182ee(0xfa)])){const _0x5dbca8=_0x2f195;_0x5dbca8?.[_0x4182ee(0xda)]&&Array[_0x4182ee(0x106)](_0x5dbca8['args'])&&_0x5dbca8[_0x4182ee(0xda)][_0x4182ee(0xcd)](_0x4f3d54=>typeof _0x4f3d54===_0x4182ee(0xdd)&&_0x4f3d54[_0x4182ee(0xbe)](_0x4182ee(0xfd)))&&_0x49ccec[_0x4182ee(0xe5)](_0x326fc2);}_0x49ccec[_0x4182ee(0xb7)]>0x0&&(_0x2ebd54={'path':_0xf55190,'keys':_0x49ccec});}}catch{}const _0x1854eb=_0x16fe14['length']>0x0||_0x5c3d27!==null;let _0x58f084=null;const _0x46c53e=resolve(_0x3fe793,_0x4182ee(0xec));if(existsSync(_0x46c53e))try{const _0x4cd2b1=JSON['parse'](readFileSync(_0x46c53e,_0x4182ee(0xe7)));for(const _0x2c5680 of[_0x4182ee(0xf7),_0x4182ee(0xbd)]){const _0x5e6ac0=_0x4cd2b1?.[_0x2c5680]?.[_0x4182ee(0xaa)];if(typeof _0x5e6ac0===_0x4182ee(0xdd)){_0x5e6ac0!==_0x4182ee(0x114)&&(_0x58f084={'pkgPath':_0x46c53e,'currentVersion':_0x5e6ac0,'field':_0x2c5680});break;}}}catch{}return{'configMigration':_0x5c3d27,'oldArtifacts':_0x16fe14,'oldMcpConfig':_0x2ebd54,'needsSkillSwap':_0x1854eb,'sdkUpgrade':_0x58f084};}function printReport(_0x17ea35){const _0x4365d5=a177_0x210f1e,{configMigration:_0x4c5083,oldArtifacts:_0x594053,oldMcpConfig:_0x3516db,needsSkillSwap:_0x21af25}=_0x17ea35;console[_0x4365d5(0x10c)](''),console[_0x4365d5(0x10c)](a177_0x1cf5f8['bold']('===\x20Upgrade\x20Analysis\x20===')),console[_0x4365d5(0x10c)]('');_0x4c5083?(console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xbb))+('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x4c5083[_0x4365d5(0x121)]))),console[_0x4365d5(0x10c)]('\x20\x20New\x20config\x20(.rabetbase.json):\x20'+(_0x4c5083['hasNewConfig']?a177_0x1cf5f8['green']('already\x20exists\x20(will\x20merge)'):a177_0x1cf5f8[_0x4365d5(0x100)]('not\x20found\x20(will\x20create)'))),console[_0x4365d5(0x10c)](_0x4365d5(0xc5)+_0x4c5083[_0x4365d5(0xd4)][_0x4365d5(0xf6)](',\x20')),console[_0x4365d5(0x10c)](_0x4365d5(0x115))):console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xbb))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)](_0x4365d5(0xc6)));console['log']('');if(_0x594053['length']>0x0){console['log'](a177_0x1cf5f8[_0x4365d5(0xb6)]('Legacy\x20artifacts:'));for(const _0x548470 of _0x594053){console['log']('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xc7)](_0x4365d5(0xd8))+'\x20\x20'+_0x548470);}console[_0x4365d5(0x10c)]('\x20\x20Action:\x20delete');}else console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xf9))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)]('none\x20found'));console[_0x4365d5(0x10c)]('');_0x3516db?(console[_0x4365d5(0x10c)](a177_0x1cf5f8['cyan'](_0x4365d5(0xac))+('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x3516db[_0x4365d5(0xb1)])+_0x4365d5(0xf4)+_0x3516db[_0x4365d5(0x103)][_0x4365d5(0xf6)](',\x20'))),console[_0x4365d5(0x10c)]('\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server')):console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xac))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)](_0x4365d5(0xd6)));console[_0x4365d5(0x10c)](''),console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)]('Skill\x20swap:')+('\x20\x20'+(_0x21af25?a177_0x1cf5f8['yellow']('needed'):a177_0x1cf5f8[_0x4365d5(0xc0)](_0x4365d5(0xbf)))));_0x21af25&&console[_0x4365d5(0x10c)](_0x4365d5(0xb0)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x4365d5(0x10c)]('');if(_0x17ea35[_0x4365d5(0xa8)]){const {currentVersion:_0x52f824,field:_0x3be1ef,pkgPath:_0x36c01b}=_0x17ea35[_0x4365d5(0xa8)];console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0x109))+('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x36c01b))),console['log'](_0x4365d5(0xb3)+_0x3be1ef+':\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x52f824)+_0x4365d5(0xe2)+a177_0x1cf5f8[_0x4365d5(0xc0)]('latest')),console[_0x4365d5(0x10c)](_0x4365d5(0x10e));}else console[_0x4365d5(0x10c)](a177_0x1cf5f8['cyan'](_0x4365d5(0x109))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)]('not\x20found\x20or\x20already\x20at\x20latest'));console['log']('');}function execConfigMigration(_0x54e5a6,_0xa15095){const _0x19a46e=a177_0x210f1e,{configMigration:_0x1a6453}=_0x54e5a6;if(!_0x1a6453?.[_0x19a46e(0x121)])return{'step':0x1,'label':_0x19a46e(0xeb),'ok':!![],'detail':_0x19a46e(0xbc)};const _0x313169=readConfigFile(_0x1a6453[_0x19a46e(0x121)]),_0x1ac4e2=resolve(_0xa15095,NEW_CONFIG_NAME),_0x15538a=_0x1a6453[_0x19a46e(0xfe)]?readConfigFile(_0x1ac4e2):{};for(const [_0x204aee,_0x2d5eb7]of Object[_0x19a46e(0x124)](_0x313169)){!(_0x204aee in _0x15538a)&&(_0x15538a[_0x204aee]=_0x2d5eb7);}writeConfigFile(_0x1ac4e2,_0x15538a);const _0xb3aaa1=_0x1a6453['oldPath']+_0x19a46e(0x120);return renameSync(_0x1a6453[_0x19a46e(0x121)],_0xb3aaa1),{'step':0x1,'label':_0x19a46e(0xeb),'ok':!![],'detail':_0x1a6453['oldPath']+_0x19a46e(0xe2)+_0x1ac4e2+_0x19a46e(0x10d)+_0xb3aaa1+')'};}function execRemoveOldArtifacts(_0x176672){const _0x30949f=a177_0x210f1e,_0x3dacc7=[];for(const _0x3d214f of _0x176672){try{if(!existsSync(_0x3d214f))continue;const _0x140be6=tryStat(_0x3d214f);_0x140be6?.['isDirectory']()?rmSync(_0x3d214f,{'recursive':!![],'force':!![]}):unlinkSync(_0x3d214f);}catch(_0x32726b){_0x3dacc7[_0x30949f(0xe5)](_0x3d214f+':\x20'+_0x32726b[_0x30949f(0x117)]);}}return{'step':0x3,'label':_0x30949f(0x11d),'ok':_0x3dacc7[_0x30949f(0xb7)]===0x0,'detail':_0x3dacc7['length']>0x0?_0x176672[_0x30949f(0xb7)]-_0x3dacc7[_0x30949f(0xb7)]+'/'+_0x176672[_0x30949f(0xb7)]+_0x30949f(0xf5)+_0x3dacc7[_0x30949f(0xf6)](';\x20')+')':_0x176672[_0x30949f(0xb7)]+_0x30949f(0x11a)};}function execCleanMcp(_0x259f29){const _0x29b27e=a177_0x210f1e;if(!_0x259f29['oldMcpConfig'])return{'step':0x4,'label':_0x29b27e(0xae),'ok':!![],'detail':_0x29b27e(0xba)};try{const _0x74cf92=readFileSync(_0x259f29[_0x29b27e(0xfc)]['path'],'utf8'),_0x19a0cf=JSON[_0x29b27e(0x118)](_0x74cf92);if(_0x19a0cf?.['mcpServers']&&typeof _0x19a0cf[_0x29b27e(0xfa)]==='object'){const _0x203e00=[];for(const [_0x490a26,_0x26ab34]of Object[_0x29b27e(0x124)](_0x19a0cf['mcpServers'])){_0x26ab34?.[_0x29b27e(0xda)]&&Array[_0x29b27e(0x106)](_0x26ab34[_0x29b27e(0xda)])&&_0x26ab34[_0x29b27e(0xda)][_0x29b27e(0xcd)](_0x5d89ac=>typeof _0x5d89ac===_0x29b27e(0xdd)&&_0x5d89ac[_0x29b27e(0xbe)](_0x29b27e(0xfd)))&&_0x203e00[_0x29b27e(0xe5)](_0x490a26);}for(const _0x25baf5 of _0x203e00){delete _0x19a0cf['mcpServers'][_0x25baf5];}return _0x203e00[_0x29b27e(0xb7)]>0x0&&writeFileSync(_0x259f29[_0x29b27e(0xfc)][_0x29b27e(0xb1)],JSON[_0x29b27e(0xcf)](_0x19a0cf,null,0x2)+'\x0a',_0x29b27e(0xe7)),{'step':0x4,'label':_0x29b27e(0xae),'ok':!![],'detail':_0x29b27e(0x101)+_0x203e00[_0x29b27e(0xf6)](',\x20')+_0x29b27e(0xad)+_0x259f29[_0x29b27e(0xfc)][_0x29b27e(0xb1)]};}return{'step':0x4,'label':_0x29b27e(0xae),'ok':!![],'detail':_0x29b27e(0x116)};}catch(_0x2911e7){return{'step':0x4,'label':_0x29b27e(0xae),'ok':![],'detail':_0x2911e7[_0x29b27e(0x117)]};}}function execSkillsRemove(_0x312b3d,_0x2a866b){const _0xe3c98c=a177_0x210f1e,_0x4ce8b9=runNpxSkillsRemove(_0x312b3d,{'stdio':_0xe3c98c(0xd5),'yes':_0x2a866b});return{'step':0x5,'label':_0xe3c98c(0x113),'ok':_0x4ce8b9['ok'],'detail':_0x4ce8b9['ok']?'lovrabet/lovrabet-skill\x20removed':_0x4ce8b9[_0xe3c98c(0xb8)]??_0xe3c98c(0x10b)+_0x4ce8b9[_0xe3c98c(0xf3)]};}function execSkillsAdd(_0x3a4318,_0xcd4a13){const _0x3b579d=a177_0x210f1e,_0x1787b1=runNpxSkillsAddGlobal(_0x3a4318,_0x3b579d(0xe4),{'stdio':_0x3b579d(0xd5),'yes':_0xcd4a13});return{'step':0x6,'label':_0x3b579d(0x102),'ok':_0x1787b1['ok'],'detail':_0x1787b1['ok']?_0x3b579d(0xee):_0x1787b1[_0x3b579d(0xb8)]??'exit\x20'+_0x1787b1[_0x3b579d(0xf3)]};}function execUpgradeSdk(_0x5a5e76){const _0xb92b5b=a177_0x210f1e;if(!_0x5a5e76['sdkUpgrade'])return{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':!![],'detail':'skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)'};const {pkgPath:_0x921eef,currentVersion:_0x15188b,field:_0x15aa24}=_0x5a5e76[_0xb92b5b(0xa8)];try{const _0x58fa32=readFileSync(_0x921eef,_0xb92b5b(0xe7)),_0x4b2fed=JSON[_0xb92b5b(0x118)](_0x58fa32);return _0x4b2fed[_0x15aa24]['@lovrabet/sdk']=_0xb92b5b(0x114),writeFileSync(_0x921eef,JSON['stringify'](_0x4b2fed,null,0x2)+'\x0a',_0xb92b5b(0xe7)),{'step':0x7,'label':_0xb92b5b(0xaf),'ok':!![],'detail':_0x15aa24+_0xb92b5b(0xdf)+_0x15188b+_0xb92b5b(0xdc)};}catch(_0x5526fc){return{'step':0x7,'label':_0xb92b5b(0xaf),'ok':![],'detail':_0x5526fc[_0xb92b5b(0x117)]};}}function tryStat(_0x4140b7){try{return statSync(_0x4140b7);}catch{return undefined;}}function printSummary(_0x29083e){const _0x3d9d29=a177_0x210f1e;console[_0x3d9d29(0x10c)](''),console[_0x3d9d29(0x10c)](a177_0x1cf5f8[_0x3d9d29(0x11f)](_0x3d9d29(0x105))),console[_0x3d9d29(0x10c)]('');for(const _0x33a73a of _0x29083e){const _0x4693ca=_0x33a73a['ok']?a177_0x1cf5f8[_0x3d9d29(0xc0)]('OK'):a177_0x1cf5f8[_0x3d9d29(0xc7)](_0x3d9d29(0xf8));console[_0x3d9d29(0x10c)]('\x20\x20'+_0x4693ca+_0x3d9d29(0xd1)+_0x33a73a[_0x3d9d29(0xc3)]+':\x20'+_0x33a73a[_0x3d9d29(0x122)]);if(_0x33a73a[_0x3d9d29(0xa6)])console[_0x3d9d29(0x10c)](_0x3d9d29(0xcb)+a177_0x1cf5f8[_0x3d9d29(0x100)](_0x33a73a[_0x3d9d29(0xa6)]));}console['log']('');}export async function upgradeApp(_0x29a7c3,_0x521604){const _0xbd42ed=a177_0x210f1e,_0x4f16c6=process['cwd'](),_0x1a4a1e=analyse(_0x4f16c6),_0x255c70=!_0x1a4a1e[_0xbd42ed(0x11e)]&&_0x1a4a1e['oldArtifacts'][_0xbd42ed(0xb7)]===0x0&&!_0x1a4a1e[_0xbd42ed(0xfc)]&&!_0x1a4a1e[_0xbd42ed(0xfb)]&&!_0x1a4a1e[_0xbd42ed(0xa8)];if(_0x255c70){console['log'](a177_0x1cf5f8[_0xbd42ed(0xc0)]('No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.'));return;}printReport(_0x1a4a1e);const _0xf142f6=!!(_0x521604[_0xbd42ed(0x119)]||_0x521604['Y']||_0x29a7c3);if(!_0xf142f6)try{const _0x471455=await askConfirm(_0xbd42ed(0xff));if(!_0x471455){console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0x100)]('Upgrade\x20cancelled.'));return;}}catch(_0x18e92d){if(_0x18e92d?.['message']===_0xbd42ed(0xd3)){console[_0xbd42ed(0x10c)](a177_0x1cf5f8['gray'](_0xbd42ed(0xce)));return;}throw _0x18e92d;}const _0x3a01e5=[],_0xa8d3ba=a177_0xcdf33e({'text':_0xbd42ed(0xef),'color':_0xbd42ed(0xb6)})['start'](),_0xfc0893=execConfigMigration(_0x1a4a1e,_0x4f16c6);_0x3a01e5[_0xbd42ed(0xe5)](_0xfc0893),_0xa8d3ba[_0xfc0893['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)]('Step\x201/7:\x20Config\x20migration\x20—\x20'+(_0xfc0893['detail']??(_0xfc0893['ok']?_0xbd42ed(0xd2):_0xbd42ed(0xc4))));const _0x2f8e23=resolve(_0x4f16c6,'.lovrabet'),_0x5c8279=a177_0xcdf33e({'text':_0xbd42ed(0x11c),'color':'cyan'})[_0xbd42ed(0xc2)]();if(existsSync(_0x2f8e23))try{rmSync(_0x2f8e23,{'recursive':!![],'force':!![]}),_0x5c8279[_0xbd42ed(0xd7)](_0xbd42ed(0x112)),_0x3a01e5['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![]});}catch(_0x2fd8e3){_0x5c8279['fail'](_0xbd42ed(0x108)+_0x2fd8e3['message']),_0x3a01e5[_0xbd42ed(0xe5)]({'step':0x2,'label':_0xbd42ed(0xca),'ok':![],'detail':_0x2fd8e3[_0xbd42ed(0x117)]});}else _0x5c8279['info']('Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped'),_0x3a01e5[_0xbd42ed(0xe5)]({'step':0x2,'label':_0xbd42ed(0xca),'ok':!![],'detail':_0xbd42ed(0xba)});const _0x4059aa=a177_0xcdf33e({'text':_0xbd42ed(0xe6),'color':'cyan'})[_0xbd42ed(0xc2)](),_0xa657b8=execRemoveOldArtifacts(_0x1a4a1e['oldArtifacts']);_0x3a01e5[_0xbd42ed(0xe5)](_0xa657b8),_0x4059aa[_0xa657b8['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)](_0xbd42ed(0xde)+(_0xa657b8['detail']??(_0xa657b8['ok']?_0xbd42ed(0xd2):_0xbd42ed(0xc4))));const _0x16051a=a177_0xcdf33e({'text':_0xbd42ed(0xe9),'color':'cyan'})[_0xbd42ed(0xc2)](),_0x1b3e10=execCleanMcp(_0x1a4a1e);_0x3a01e5[_0xbd42ed(0xe5)](_0x1b3e10),_0x16051a[_0x1b3e10['ok']?'succeed':_0xbd42ed(0xf2)](_0xbd42ed(0xf0)+(_0x1b3e10[_0xbd42ed(0xa6)]??(_0x1b3e10['ok']?'done':_0xbd42ed(0xc4))));const _0x515c71=a177_0xcdf33e({'text':_0xbd42ed(0xc1),'color':_0xbd42ed(0xb6)})['start'](),_0x4801d5=execSkillsRemove(_0x4f16c6,_0xf142f6);_0x3a01e5[_0xbd42ed(0xe5)](_0x4801d5),_0x515c71[_0x4801d5['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)](_0xbd42ed(0x10a)+(_0x4801d5[_0xbd42ed(0xa6)]??(_0x4801d5['ok']?_0xbd42ed(0xd2):_0xbd42ed(0xc4))));const _0x7d375=a177_0xcdf33e({'text':_0xbd42ed(0x111),'color':_0xbd42ed(0xb6)})['start'](),_0x48dfbb=execSkillsAdd(_0x4f16c6,_0xf142f6);_0x3a01e5['push'](_0x48dfbb),_0x7d375[_0x48dfbb['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)](_0xbd42ed(0xb4)+(_0x48dfbb[_0xbd42ed(0xa6)]??(_0x48dfbb['ok']?'done':_0xbd42ed(0xc4))));const _0x23043c=a177_0xcdf33e({'text':_0xbd42ed(0x110),'color':_0xbd42ed(0xb6)})[_0xbd42ed(0xc2)](),_0x35775e=execUpgradeSdk(_0x1a4a1e);_0x3a01e5[_0xbd42ed(0xe5)](_0x35775e),_0x23043c[_0x35775e['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)]('Step\x207/7:\x20@lovrabet/sdk\x20—\x20'+(_0x35775e[_0xbd42ed(0xa6)]??(_0x35775e['ok']?'done':_0xbd42ed(0xc4)))),printSummary(_0x3a01e5);const _0x2cc89e=_0x3a01e5[_0xbd42ed(0xcd)](_0x592122=>!_0x592122['ok']);_0x2cc89e?console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xa7)](_0xbd42ed(0xa9))):console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xc0)](_0xbd42ed(0xb9))),_0x35775e['ok']&&_0x1a4a1e[_0xbd42ed(0xa8)]&&(console[_0xbd42ed(0x10c)](''),console['log'](a177_0x1cf5f8[_0xbd42ed(0x11f)][_0xbd42ed(0xb6)](_0xbd42ed(0xb2))),console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xb6)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console['log'](''),console[_0xbd42ed(0x10c)](a177_0x1cf5f8['white'](_0xbd42ed(0xd9))),console['log'](a177_0x1cf5f8['white'](_0xbd42ed(0xe1))),console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xe3)]('\x20\x20bun\x20install')),console[_0xbd42ed(0x10c)](''));}
1
+ const a171_0x1da4f2=a171_0x46a7;function a171_0x46a7(_0x1fd40b,_0x5eb0c6){_0x1fd40b=_0x1fd40b-0x131;const _0x214430=a171_0x2144();let _0x46a723=_0x214430[_0x1fd40b];return _0x46a723;}(function(_0x759326,_0x4cdbc6){const _0x294666=a171_0x46a7,_0xae24e4=_0x759326();while(!![]){try{const _0x5c17df=parseInt(_0x294666(0x1b2))/0x1+parseInt(_0x294666(0x15f))/0x2*(-parseInt(_0x294666(0x1a3))/0x3)+-parseInt(_0x294666(0x16f))/0x4+-parseInt(_0x294666(0x187))/0x5+-parseInt(_0x294666(0x175))/0x6+-parseInt(_0x294666(0x158))/0x7*(-parseInt(_0x294666(0x14a))/0x8)+parseInt(_0x294666(0x19b))/0x9;if(_0x5c17df===_0x4cdbc6)break;else _0xae24e4['push'](_0xae24e4['shift']());}catch(_0x1a3cd0){_0xae24e4['push'](_0xae24e4['shift']());}}}(a171_0x2144,0x69e7a));import a171_0x440c3d from'chalk';import a171_0x92f1ff 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';function a171_0x2144(){const _0x1aa26a=['some','package.json','oldMcpConfig','devDependencies','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','object','path','oldPath','430696EqCmmR','===\x20Upgrade\x20Analysis\x20===','\x20→\x20latest','\x20(backup:\x20','green','Step\x204/7:\x20Cleaning\x20MCP\x20config...','already\x20exists\x20(will\x20merge)','configMigration','skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)','.cursor/rules/lovrabet_rules.mdc','Config\x20migration','cyan','Legacy\x20artifacts:','start','77ElwcUy','not\x20found\x20or\x20already\x20at\x20latest','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','Skill\x20swap:','\x20from\x20','not\x20needed','stringify','10bpLVgF','[\x22@lovrabet/sdk\x22]:\x20','mcpServers','utf8','fail','Step\x201/7:\x20Migrating\x20config...','\x20→\x20','yellow','label','includes','filter','white','.cursor/mcp.json','\x20\x20Fields\x20to\x20migrate:\x20','\x20\x20npm\x20install','info','3106760XbXZMC','\x20\x20Current\x20version\x20in\x20','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','Config\x20file:','\x20\x20Action:\x20delete','3654138GEFnhM','error','hasNewConfig','isArray','sdkUpgrade','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','args','\x20\x20#\x20or','===\x20Upgrade\x20Summary\x20===','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','lovrabet/rabetbase','\x20\x20New\x20config\x20(.rabetbase.json):\x20','@lovrabet/sdk','isDirectory','none\x20found','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','Step\x204/7:\x20MCP\x20config\x20—\x20','733410aaRmta','succeed','files','string','undefined','.lovrabet','length','skipped\x20(no\x20legacy\x20config)','cwd','Step\x205/7:\x20Removing\x20old\x20skill...','no\x20legacy\x20entry','needed','\x20\x20Step\x20','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','.bak','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','\x20removed\x20(','Remove\x20.lovrabet/','status','latest','13624461uTaMKs','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','MCP\x20config:','bold','not\x20found\x20(will\x20create)','values','entries','\x20removed','442311glhbBT','parse','lovrabet/rabetbase\x20installed\x20globally','removed\x20','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','skipped','push','@lovrabet/dataset-mcp-server','detail','keys','CANCEL','FAIL','Clean\x20MCP\x20config','Step\x201/7:\x20Config\x20migration\x20—\x20','message','597330fnmuRQ','.claude/skills/lovrabet','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','needsSkillSwap','Upgrade\x20completed\x20successfully!','join','Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','red','done','Remove\x20legacy\x20artifacts','gray','oldArtifacts','Upgrade\x20cancelled.','inherit','\x20\x20\x20\x20\x20\x20\x20','Upgrade\x20@lovrabet/sdk','dependencies','yes','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','\x20\x20bun\x20install','log','Remove\x20old\x20skill','failed'];a171_0x2144=function(){return _0x1aa26a;};return a171_0x2144();}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[a171_0x1da4f2(0x169)](_0x279a8d=>_0x279a8d!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x200faf){const _0x1e48eb=a171_0x1da4f2,_0x4533f9=[];for(const _0x52c1bb of Object[_0x1e48eb(0x1a0)](CORE_IDE_CONFIGS)){if(_0x52c1bb[_0x1e48eb(0x189)])for(const _0x8f59e3 of _0x52c1bb['files']){_0x4533f9[_0x1e48eb(0x1a9)](resolve(_0x200faf,_0x8f59e3[_0x1e48eb(0x148)]));}}return _0x4533f9;}function analyse(_0x39891c){const _0x229b6e=a171_0x1da4f2;let _0x37e429=null;const _0x19f620=resolve(_0x39891c,NEW_CONFIG_NAME),_0xd51c42=existsSync(_0x19f620);for(const _0x523df5 of LEGACY_CONFIG_NAMES){const _0x2ade59=resolve(_0x39891c,_0x523df5);if(existsSync(_0x2ade59)){const _0x3f074a=readConfigFile(_0x2ade59),_0x236e43=Object[_0x229b6e(0x1ac)](_0x3f074a)[_0x229b6e(0x169)](_0x593bb2=>typeof _0x3f074a[_0x593bb2]!==_0x229b6e(0x18b));_0x37e429={'oldPath':_0x2ade59,'hasNewConfig':_0xd51c42,'fields':_0x236e43};break;}}const _0x18357a=[],_0x5dafd1=resolve(_0x39891c,'.lovrabet');if(existsSync(_0x5dafd1))_0x18357a[_0x229b6e(0x1a9)](_0x5dafd1);const _0x429a7b=resolve(_0x39891c,_0x229b6e(0x153));if(existsSync(_0x429a7b))_0x18357a[_0x229b6e(0x1a9)](_0x429a7b);const _0xa67bdd=resolve(_0x39891c,_0x229b6e(0x1b3));if(existsSync(_0xa67bdd))_0x18357a[_0x229b6e(0x1a9)](_0xa67bdd);for(const _0x3028cb of collectIdeSkillFiles(_0x39891c)){if(existsSync(_0x3028cb))_0x18357a[_0x229b6e(0x1a9)](_0x3028cb);}let _0x218563=null;const _0x2f09f8=resolve(_0x39891c,_0x229b6e(0x16b));if(existsSync(_0x2f09f8))try{const _0x17a4cc=JSON[_0x229b6e(0x1a4)](readFileSync(_0x2f09f8,_0x229b6e(0x162)));if(_0x17a4cc?.['mcpServers']&&typeof _0x17a4cc[_0x229b6e(0x161)]===_0x229b6e(0x147)){const _0x179791=[];for(const [_0x29db04,_0x30b1f4]of Object[_0x229b6e(0x1a1)](_0x17a4cc[_0x229b6e(0x161)])){const _0x5b5827=_0x30b1f4;_0x5b5827?.['args']&&Array['isArray'](_0x5b5827[_0x229b6e(0x17c)])&&_0x5b5827[_0x229b6e(0x17c)][_0x229b6e(0x142)](_0x2a1ac5=>typeof _0x2a1ac5==='string'&&_0x2a1ac5['includes'](_0x229b6e(0x1aa)))&&_0x179791['push'](_0x29db04);}_0x179791[_0x229b6e(0x18d)]>0x0&&(_0x218563={'path':_0x2f09f8,'keys':_0x179791});}}catch{}const _0x509b42=_0x18357a[_0x229b6e(0x18d)]>0x0||_0x37e429!==null;let _0x2537a3=null;const _0x52a08c=resolve(_0x39891c,_0x229b6e(0x143));if(existsSync(_0x52a08c))try{const _0x2fb161=JSON[_0x229b6e(0x1a4)](readFileSync(_0x52a08c,_0x229b6e(0x162)));for(const _0x23ceaa of[_0x229b6e(0x13b),_0x229b6e(0x145)]){const _0x552ee5=_0x2fb161?.[_0x23ceaa]?.[_0x229b6e(0x182)];if(typeof _0x552ee5===_0x229b6e(0x18a)){_0x552ee5!==_0x229b6e(0x19a)&&(_0x2537a3={'pkgPath':_0x52a08c,'currentVersion':_0x552ee5,'field':_0x23ceaa});break;}}}catch{}return{'configMigration':_0x37e429,'oldArtifacts':_0x18357a,'oldMcpConfig':_0x218563,'needsSkillSwap':_0x509b42,'sdkUpgrade':_0x2537a3};}function printReport(_0x3fa148){const _0xd06329=a171_0x1da4f2,{configMigration:_0x782502,oldArtifacts:_0x1d891f,oldMcpConfig:_0x257af6,needsSkillSwap:_0x3f8adf}=_0x3fa148;console[_0xd06329(0x13f)](''),console[_0xd06329(0x13f)](a171_0x440c3d['bold'](_0xd06329(0x14b))),console[_0xd06329(0x13f)]('');_0x782502?(console[_0xd06329(0x13f)](a171_0x440c3d[_0xd06329(0x155)](_0xd06329(0x173))+('\x20\x20'+a171_0x440c3d[_0xd06329(0x166)](_0x782502['oldPath']))),console['log'](_0xd06329(0x181)+(_0x782502[_0xd06329(0x177)]?a171_0x440c3d[_0xd06329(0x14e)](_0xd06329(0x150)):a171_0x440c3d[_0xd06329(0x135)](_0xd06329(0x19f)))),console[_0xd06329(0x13f)](_0xd06329(0x16c)+_0x782502['fields'][_0xd06329(0x1b7)](',\x20')),console[_0xd06329(0x13f)](_0xd06329(0x17b))):console[_0xd06329(0x13f)](a171_0x440c3d[_0xd06329(0x155)](_0xd06329(0x173))+'\x20\x20'+a171_0x440c3d[_0xd06329(0x135)]('no\x20legacy\x20config\x20found'));console[_0xd06329(0x13f)]('');if(_0x1d891f[_0xd06329(0x18d)]>0x0){console[_0xd06329(0x13f)](a171_0x440c3d['cyan'](_0xd06329(0x156)));for(const _0x3df0c3 of _0x1d891f){console[_0xd06329(0x13f)]('\x20\x20'+a171_0x440c3d['red']('FOUND')+'\x20\x20'+_0x3df0c3);}console['log'](_0xd06329(0x174));}else console[_0xd06329(0x13f)](a171_0x440c3d['cyan'](_0xd06329(0x156))+'\x20\x20'+a171_0x440c3d[_0xd06329(0x135)](_0xd06329(0x184)));console[_0xd06329(0x13f)]('');_0x257af6?(console[_0xd06329(0x13f)](a171_0x440c3d['cyan'](_0xd06329(0x19d))+('\x20\x20'+a171_0x440c3d[_0xd06329(0x166)](_0x257af6[_0xd06329(0x148)])+'\x20→\x20keys:\x20'+_0x257af6['keys'][_0xd06329(0x1b7)](',\x20'))),console[_0xd06329(0x13f)](_0xd06329(0x1a7))):console[_0xd06329(0x13f)](a171_0x440c3d['cyan']('MCP\x20config:')+'\x20\x20'+a171_0x440c3d[_0xd06329(0x135)](_0xd06329(0x191)));console[_0xd06329(0x13f)](''),console[_0xd06329(0x13f)](a171_0x440c3d['cyan'](_0xd06329(0x15b))+('\x20\x20'+(_0x3f8adf?a171_0x440c3d[_0xd06329(0x166)](_0xd06329(0x192)):a171_0x440c3d[_0xd06329(0x14e)](_0xd06329(0x15d)))));_0x3f8adf&&console['log'](_0xd06329(0x1b4)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0xd06329(0x13f)]('');if(_0x3fa148['sdkUpgrade']){const {currentVersion:_0x4d262b,field:_0x38de47,pkgPath:_0x413784}=_0x3fa148[_0xd06329(0x179)];console[_0xd06329(0x13f)](a171_0x440c3d[_0xd06329(0x155)]('@lovrabet/sdk:')+('\x20\x20'+a171_0x440c3d[_0xd06329(0x166)](_0x413784))),console[_0xd06329(0x13f)](_0xd06329(0x170)+_0x38de47+':\x20'+a171_0x440c3d[_0xd06329(0x166)](_0x4d262b)+'\x20→\x20'+a171_0x440c3d[_0xd06329(0x14e)](_0xd06329(0x19a))),console[_0xd06329(0x13f)](_0xd06329(0x171));}else console[_0xd06329(0x13f)](a171_0x440c3d[_0xd06329(0x155)]('@lovrabet/sdk:')+'\x20\x20'+a171_0x440c3d['gray'](_0xd06329(0x159)));console[_0xd06329(0x13f)]('');}function execConfigMigration(_0x1cffb5,_0x10e13e){const _0x50d4b0=a171_0x1da4f2,{configMigration:_0x31ed17}=_0x1cffb5;if(!_0x31ed17?.['oldPath'])return{'step':0x1,'label':_0x50d4b0(0x154),'ok':!![],'detail':_0x50d4b0(0x18e)};const _0x3f9275=readConfigFile(_0x31ed17[_0x50d4b0(0x149)]),_0x1cc7b7=resolve(_0x10e13e,NEW_CONFIG_NAME),_0x46b4b2=_0x31ed17[_0x50d4b0(0x177)]?readConfigFile(_0x1cc7b7):{};for(const [_0x100a81,_0x38c8a9]of Object[_0x50d4b0(0x1a1)](_0x3f9275)){!(_0x100a81 in _0x46b4b2)&&(_0x46b4b2[_0x100a81]=_0x38c8a9);}writeConfigFile(_0x1cc7b7,_0x46b4b2);const _0x43af33=_0x31ed17['oldPath']+_0x50d4b0(0x195);return renameSync(_0x31ed17[_0x50d4b0(0x149)],_0x43af33),{'step':0x1,'label':_0x50d4b0(0x154),'ok':!![],'detail':_0x31ed17[_0x50d4b0(0x149)]+_0x50d4b0(0x165)+_0x1cc7b7+_0x50d4b0(0x14d)+_0x43af33+')'};}function execRemoveOldArtifacts(_0x42c255){const _0x21f176=a171_0x1da4f2,_0x388fea=[];for(const _0x192ea5 of _0x42c255){try{if(!existsSync(_0x192ea5))continue;const _0x4012d3=tryStat(_0x192ea5);_0x4012d3?.[_0x21f176(0x183)]()?rmSync(_0x192ea5,{'recursive':!![],'force':!![]}):unlinkSync(_0x192ea5);}catch(_0x3838a2){_0x388fea['push'](_0x192ea5+':\x20'+_0x3838a2[_0x21f176(0x1b1)]);}}return{'step':0x3,'label':_0x21f176(0x134),'ok':_0x388fea[_0x21f176(0x18d)]===0x0,'detail':_0x388fea[_0x21f176(0x18d)]>0x0?_0x42c255['length']-_0x388fea[_0x21f176(0x18d)]+'/'+_0x42c255[_0x21f176(0x18d)]+_0x21f176(0x197)+_0x388fea[_0x21f176(0x1b7)](';\x20')+')':_0x42c255[_0x21f176(0x18d)]+_0x21f176(0x1a2)};}function execCleanMcp(_0x2277d0){const _0x2bca87=a171_0x1da4f2;if(!_0x2277d0['oldMcpConfig'])return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':'skipped'};try{const _0x1c823e=readFileSync(_0x2277d0['oldMcpConfig'][_0x2bca87(0x148)],_0x2bca87(0x162)),_0x146811=JSON['parse'](_0x1c823e);if(_0x146811?.[_0x2bca87(0x161)]&&typeof _0x146811['mcpServers']===_0x2bca87(0x147)){const _0x41f2b1=[];for(const [_0x57e71b,_0x119355]of Object['entries'](_0x146811['mcpServers'])){_0x119355?.['args']&&Array[_0x2bca87(0x178)](_0x119355['args'])&&_0x119355[_0x2bca87(0x17c)]['some'](_0x3fa96a=>typeof _0x3fa96a===_0x2bca87(0x18a)&&_0x3fa96a[_0x2bca87(0x168)]('@lovrabet/dataset-mcp-server'))&&_0x41f2b1['push'](_0x57e71b);}for(const _0x1835b1 of _0x41f2b1){delete _0x146811[_0x2bca87(0x161)][_0x1835b1];}return _0x41f2b1[_0x2bca87(0x18d)]>0x0&&writeFileSync(_0x2277d0[_0x2bca87(0x144)][_0x2bca87(0x148)],JSON[_0x2bca87(0x15e)](_0x146811,null,0x2)+'\x0a',_0x2bca87(0x162)),{'step':0x4,'label':_0x2bca87(0x1af),'ok':!![],'detail':_0x2bca87(0x1a6)+_0x41f2b1[_0x2bca87(0x1b7)](',\x20')+_0x2bca87(0x15c)+_0x2277d0[_0x2bca87(0x144)]['path']};}return{'step':0x4,'label':_0x2bca87(0x1af),'ok':!![],'detail':'no\x20matching\x20entry\x20found'};}catch(_0x29272b){return{'step':0x4,'label':_0x2bca87(0x1af),'ok':![],'detail':_0x29272b[_0x2bca87(0x1b1)]};}}function execSkillsRemove(_0x3f6b0a,_0x2325c9){const _0x1b3eea=a171_0x1da4f2,_0x2a6fb9=runNpxSkillsRemove(_0x3f6b0a,{'stdio':'inherit','yes':_0x2325c9});return{'step':0x5,'label':_0x1b3eea(0x140),'ok':_0x2a6fb9['ok'],'detail':_0x2a6fb9['ok']?'lovrabet/lovrabet-skill\x20removed':_0x2a6fb9[_0x1b3eea(0x176)]??'exit\x20'+_0x2a6fb9[_0x1b3eea(0x199)]};}function execSkillsAdd(_0x2776b4,_0x404829){const _0x44d4db=a171_0x1da4f2,_0x8dd30d=runNpxSkillsAddGlobal(_0x2776b4,_0x44d4db(0x180),{'stdio':_0x44d4db(0x138),'yes':_0x404829});return{'step':0x6,'label':'Install\x20new\x20skill','ok':_0x8dd30d['ok'],'detail':_0x8dd30d['ok']?_0x44d4db(0x1a5):_0x8dd30d[_0x44d4db(0x176)]??'exit\x20'+_0x8dd30d['status']};}function execUpgradeSdk(_0x46f649){const _0x2e7fed=a171_0x1da4f2;if(!_0x46f649['sdkUpgrade'])return{'step':0x7,'label':_0x2e7fed(0x13a),'ok':!![],'detail':_0x2e7fed(0x152)};const {pkgPath:_0x5983ec,currentVersion:_0x2d47c1,field:_0x1018c6}=_0x46f649['sdkUpgrade'];try{const _0x324124=readFileSync(_0x5983ec,'utf8'),_0x43b5bb=JSON[_0x2e7fed(0x1a4)](_0x324124);return _0x43b5bb[_0x1018c6][_0x2e7fed(0x182)]='latest',writeFileSync(_0x5983ec,JSON[_0x2e7fed(0x15e)](_0x43b5bb,null,0x2)+'\x0a','utf8'),{'step':0x7,'label':_0x2e7fed(0x13a),'ok':!![],'detail':_0x1018c6+_0x2e7fed(0x160)+_0x2d47c1+_0x2e7fed(0x14c)};}catch(_0x2b0704){return{'step':0x7,'label':_0x2e7fed(0x13a),'ok':![],'detail':_0x2b0704[_0x2e7fed(0x1b1)]};}}function tryStat(_0x5667fd){try{return statSync(_0x5667fd);}catch{return undefined;}}function printSummary(_0x4d0b91){const _0x426ad3=a171_0x1da4f2;console[_0x426ad3(0x13f)](''),console[_0x426ad3(0x13f)](a171_0x440c3d[_0x426ad3(0x19e)](_0x426ad3(0x17e))),console[_0x426ad3(0x13f)]('');for(const _0x167930 of _0x4d0b91){const _0xbfbb05=_0x167930['ok']?a171_0x440c3d['green']('OK'):a171_0x440c3d[_0x426ad3(0x132)](_0x426ad3(0x1ae));console[_0x426ad3(0x13f)]('\x20\x20'+_0xbfbb05+_0x426ad3(0x193)+_0x167930['step']+':\x20'+_0x167930[_0x426ad3(0x167)]);if(_0x167930['detail'])console[_0x426ad3(0x13f)](_0x426ad3(0x139)+a171_0x440c3d[_0x426ad3(0x135)](_0x167930[_0x426ad3(0x1ab)]));}console[_0x426ad3(0x13f)]('');}export async function upgradeApp(_0x424256,_0x7abf37){const _0x428040=a171_0x1da4f2,_0x54b92b=process[_0x428040(0x18f)](),_0x3cf79f=analyse(_0x54b92b),_0x5db7b5=!_0x3cf79f[_0x428040(0x151)]&&_0x3cf79f['oldArtifacts']['length']===0x0&&!_0x3cf79f[_0x428040(0x144)]&&!_0x3cf79f[_0x428040(0x1b5)]&&!_0x3cf79f['sdkUpgrade'];if(_0x5db7b5){console[_0x428040(0x13f)](a171_0x440c3d[_0x428040(0x14e)](_0x428040(0x13d)));return;}printReport(_0x3cf79f);const _0x52f3af=!!(_0x7abf37[_0x428040(0x13c)]||_0x7abf37['Y']||_0x424256);if(!_0x52f3af)try{const _0x1c14a7=await askConfirm('Proceed\x20with\x20upgrade?');if(!_0x1c14a7){console[_0x428040(0x13f)](a171_0x440c3d[_0x428040(0x135)](_0x428040(0x137)));return;}}catch(_0x394cff){if(_0x394cff?.['message']===_0x428040(0x1ad)){console[_0x428040(0x13f)](a171_0x440c3d[_0x428040(0x135)](_0x428040(0x137)));return;}throw _0x394cff;}const _0x24eb35=[],_0x573b3e=a171_0x92f1ff({'text':_0x428040(0x164),'color':_0x428040(0x155)})[_0x428040(0x157)](),_0x919782=execConfigMigration(_0x3cf79f,_0x54b92b);_0x24eb35[_0x428040(0x1a9)](_0x919782),_0x573b3e[_0x919782['ok']?_0x428040(0x188):_0x428040(0x163)](_0x428040(0x1b0)+(_0x919782[_0x428040(0x1ab)]??(_0x919782['ok']?_0x428040(0x133):_0x428040(0x141))));const _0x9862af=resolve(_0x54b92b,_0x428040(0x18c)),_0x3c8cc7=a171_0x92f1ff({'text':'Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','color':'cyan'})[_0x428040(0x157)]();if(existsSync(_0x9862af))try{rmSync(_0x9862af,{'recursive':!![],'force':!![]}),_0x3c8cc7[_0x428040(0x188)](_0x428040(0x172)),_0x24eb35['push']({'step':0x2,'label':_0x428040(0x198),'ok':!![]});}catch(_0x4b4181){_0x3c8cc7['fail'](_0x428040(0x15a)+_0x4b4181[_0x428040(0x1b1)]),_0x24eb35[_0x428040(0x1a9)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':![],'detail':_0x4b4181['message']});}else _0x3c8cc7[_0x428040(0x16e)](_0x428040(0x19c)),_0x24eb35['push']({'step':0x2,'label':_0x428040(0x198),'ok':!![],'detail':_0x428040(0x1a8)});const _0x2200a7=a171_0x92f1ff({'text':_0x428040(0x131),'color':_0x428040(0x155)})[_0x428040(0x157)](),_0x556e99=execRemoveOldArtifacts(_0x3cf79f[_0x428040(0x136)]);_0x24eb35[_0x428040(0x1a9)](_0x556e99),_0x2200a7[_0x556e99['ok']?_0x428040(0x188):_0x428040(0x163)](_0x428040(0x17f)+(_0x556e99[_0x428040(0x1ab)]??(_0x556e99['ok']?'done':'failed')));const _0x4378a0=a171_0x92f1ff({'text':_0x428040(0x14f),'color':'cyan'})[_0x428040(0x157)](),_0x40894c=execCleanMcp(_0x3cf79f);_0x24eb35[_0x428040(0x1a9)](_0x40894c),_0x4378a0[_0x40894c['ok']?_0x428040(0x188):_0x428040(0x163)](_0x428040(0x186)+(_0x40894c[_0x428040(0x1ab)]??(_0x40894c['ok']?_0x428040(0x133):'failed')));const _0xea7db=a171_0x92f1ff({'text':_0x428040(0x190),'color':_0x428040(0x155)})['start'](),_0x19474a=execSkillsRemove(_0x54b92b,_0x52f3af);_0x24eb35[_0x428040(0x1a9)](_0x19474a),_0xea7db[_0x19474a['ok']?_0x428040(0x188):'fail']('Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20'+(_0x19474a[_0x428040(0x1ab)]??(_0x19474a['ok']?'done':_0x428040(0x141))));const _0xe01a33=a171_0x92f1ff({'text':'Step\x206/7:\x20Installing\x20new\x20skill...','color':_0x428040(0x155)})['start'](),_0x48e99e=execSkillsAdd(_0x54b92b,_0x52f3af);_0x24eb35[_0x428040(0x1a9)](_0x48e99e),_0xe01a33[_0x48e99e['ok']?_0x428040(0x188):_0x428040(0x163)](_0x428040(0x194)+(_0x48e99e['detail']??(_0x48e99e['ok']?'done':_0x428040(0x141))));const _0x3ee33e=a171_0x92f1ff({'text':_0x428040(0x196),'color':_0x428040(0x155)})[_0x428040(0x157)](),_0x6b636b=execUpgradeSdk(_0x3cf79f);_0x24eb35[_0x428040(0x1a9)](_0x6b636b),_0x3ee33e[_0x6b636b['ok']?'succeed':_0x428040(0x163)](_0x428040(0x17a)+(_0x6b636b['detail']??(_0x6b636b['ok']?'done':_0x428040(0x141)))),printSummary(_0x24eb35);const _0x2e1ac6=_0x24eb35[_0x428040(0x142)](_0x21f247=>!_0x21f247['ok']);_0x2e1ac6?console['log'](a171_0x440c3d[_0x428040(0x166)](_0x428040(0x146))):console[_0x428040(0x13f)](a171_0x440c3d[_0x428040(0x14e)](_0x428040(0x1b6))),_0x6b636b['ok']&&_0x3cf79f['sdkUpgrade']&&(console[_0x428040(0x13f)](''),console[_0x428040(0x13f)](a171_0x440c3d[_0x428040(0x19e)][_0x428040(0x155)](_0x428040(0x185))),console['log'](a171_0x440c3d[_0x428040(0x155)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console['log'](''),console[_0x428040(0x13f)](a171_0x440c3d['white'](_0x428040(0x16d))),console['log'](a171_0x440c3d[_0x428040(0x16a)](_0x428040(0x17d))),console['log'](a171_0x440c3d[_0x428040(0x16a)](_0x428040(0x13e))),console[_0x428040(0x13f)](''));}
@@ -1 +1 @@
1
- const a178_0x54d279=a178_0x567f;(function(_0x3b441f,_0x318c0e){const _0x2b8559=a178_0x567f,_0x1d53b3=_0x3b441f();while(!![]){try{const _0x12671d=-parseInt(_0x2b8559(0x1ae))/0x1*(-parseInt(_0x2b8559(0x1b8))/0x2)+-parseInt(_0x2b8559(0x1b9))/0x3+-parseInt(_0x2b8559(0x1c8))/0x4*(parseInt(_0x2b8559(0x1b0))/0x5)+-parseInt(_0x2b8559(0x1f7))/0x6+-parseInt(_0x2b8559(0x1f4))/0x7*(parseInt(_0x2b8559(0x1d4))/0x8)+-parseInt(_0x2b8559(0x1c7))/0x9+-parseInt(_0x2b8559(0x1fb))/0xa*(-parseInt(_0x2b8559(0x1fd))/0xb);if(_0x12671d===_0x318c0e)break;else _0x1d53b3['push'](_0x1d53b3['shift']());}catch(_0x2a16b6){_0x1d53b3['push'](_0x1d53b3['shift']());}}}(a178_0x5abe,0x8c9bf));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';function a178_0x567f(_0x4b17c2,_0x570f61){_0x4b17c2=_0x4b17c2-0x1a2;const _0x5abe87=a178_0x5abe();let _0x567f4a=_0x5abe87[_0x4b17c2];return _0x567f4a;}import{taskDefinitions}from'../commands/task/index.js';import{tenantDefinitions}from'../commands/tenant/index.js';import{roleDefinitions}from'../commands/role/index.js';function a178_0x5abe(){const _0x595214=['\x20\x20[write]','120qbeWuo','rabetbase\x20cli-skill\x20install','2225377SZCoCb','rabetbase\x20kb\x20detail','\x20\x20[','Schema','SQL\x20Queries','rabetbase\x20kb\x20delete','sql:new','rabetbase\x20sql\x20create','preview','Company\x20Knowledge\x20Base','rabetbase\x20bff\x20create','command','Platform\x20Issue','knowledge-base:create','skills:install','5668SOalga','API\x20Development','119905mqudKT','filter','build','`\x20has\x20been\x20removed.','login','App\x20Management','app:add','logout','208JXkeco','171333CNWCvs','rabetbase\x20workspace\x20remove\x20<name>','`rabetbase\x20','set','app:remove','knowledge-base:detail','Notification\x20Configuration','map','skill:','rabetbase\x20workspace\x20use\x20--app\x20<name>','from','skills:','push','CLI\x20Built-in\x20Skill','9324684ArlHfi','4fszmtW','defaultCommand','hidden','description','get','rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml','sql:save','knowledge-base:list','Diagnostics','values','Run\x20any\x20package.json\x20script','Async\x20Tasks','8nngIja','Tenant\x20Members','length','start','bff:new','`\x20instead.','install','create','rabetbase\x20kb\x20update','rabetbase\x20run\x20build','BFF\x20Scripts','\x20\x20[high-risk-write]','Workspace','Runtime\x20App\x20Config\x20Management','wildcardDef','Run\x20Scripts','commands','isSingleCommand','risk','rabetbase\x20run\x20start','rabetbase\x20auth\x20logout','service','project:init','rabetbase\x20app\x20list\x20--remote','Self\x20Update','Permissions','has','Quick\x20Start','skill:install','rabetbase\x20run\x20preview','Authentication','OCR','7279447xnODgw','Configuration','<script>','1704792LVXSnO','Smart\x20List\x20Pages\x20&\x20React\x20Custom\x20Pages','Instant\x20API'];a178_0x5abe=function(){return _0x595214;};return a178_0x5abe();}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{userAccountDefinitions}from'../commands/user-account/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(_0xbc7995){const _0xf040e1=a178_0x567f;for(const _0x36837b of _0xbc7995){definitions[_0xf040e1(0x1bc)](_0x36837b['service']+':'+_0x36837b[_0xf040e1(0x1aa)],_0x36837b);let _0x112fe1=serviceGroups[_0xf040e1(0x1cc)](_0x36837b[_0xf040e1(0x1e9)]);!_0x112fe1&&(_0x112fe1=[],serviceGroups[_0xf040e1(0x1bc)](_0x36837b[_0xf040e1(0x1e9)],_0x112fe1)),_0x112fe1[_0xf040e1(0x1c5)](_0x36837b);}}function registerDeclarativeService(_0xfe6dfe,_0x41591c,_0x32d42a){const _0x34dec0=a178_0x567f;registerDefinitions(_0x41591c);_0x32d42a?.[_0x34dec0(0x1e2)]&&registerDefinitions([_0x32d42a[_0x34dec0(0x1e2)]]);const _0x3a5ee8=_0x9b48c7=>_0x9b48c7==='read'?'':_0x9b48c7==='write'?_0x34dec0(0x1fa):_0x34dec0(0x1df),_0x2dc02f={'service':_0x41591c[0x0][_0x34dec0(0x1e9)],'label':_0xfe6dfe,'commands':_0x41591c[_0x34dec0(0x1b1)](_0x232633=>!_0x232633[_0x34dec0(0x1ca)])[_0x34dec0(0x1c0)](_0x2b9760=>({'command':_0x2b9760[_0x34dec0(0x1aa)],'description':_0x2b9760[_0x34dec0(0x1cb)],'tag':_0x3a5ee8(_0x2b9760[_0x34dec0(0x1e6)])})),'declarative':!![],'defaultCommand':_0x32d42a?.[_0x34dec0(0x1c9)]??(_0x32d42a?.[_0x34dec0(0x1e5)]?_0x41591c[0x0]['command']:undefined),'wildcardDef':_0x32d42a?.['wildcardDef'],'isSingleCommand':_0x32d42a?.[_0x34dec0(0x1e5)]};serviceRegistry[_0x34dec0(0x1c5)](_0x2dc02f),serviceByName['set'](_0x2dc02f[_0x34dec0(0x1e9)],_0x2dc02f);}registerDeclarativeService(a178_0x54d279(0x1ef),initDefinitions,{'defaultCommand':'run','isSingleCommand':!![]}),registerDeclarativeService('Project',projectDefinitions),registerDeclarativeService(a178_0x54d279(0x1e0),workspaceDefinitions),registerDeclarativeService(a178_0x54d279(0x1b5),appDefinitions),registerDeclarativeService(a178_0x54d279(0x1f2),authDefinitions,{'defaultCommand':a178_0x54d279(0x1b4)}),registerDeclarativeService(a178_0x54d279(0x1d5),tenantDefinitions),registerDeclarativeService('User\x20Accounts',userAccountDefinitions),registerDeclarativeService('Dataset\x20&\x20Operations',datasetDefinitions),registerDeclarativeService(a178_0x54d279(0x1f8),pageDefinitions),registerDeclarativeService(a178_0x54d279(0x1af),apiDefinitions),registerDeclarativeService(a178_0x54d279(0x1f9),dataDefinitions),registerDeclarativeService(a178_0x54d279(0x1de),bffDefinitions),registerDeclarativeService(a178_0x54d279(0x1bf),notificationDefinitions),registerDeclarativeService(a178_0x54d279(0x1a3),sqlDefinitions),registerDeclarativeService('Database\x20Connections',dbDefinitions),registerDeclarativeService('Menu',menuDefinitions),registerDeclarativeService(a178_0x54d279(0x1d3),taskDefinitions),registerDeclarativeService('Roles',roleDefinitions),registerDeclarativeService(a178_0x54d279(0x1ed),permitDefinitions),registerDeclarativeService(a178_0x54d279(0x1e1),appConfigDefinitions),registerDeclarativeService(a178_0x54d279(0x1a8),kbDefinitions),registerDeclarativeService(a178_0x54d279(0x1ab),issueDefinitions),registerDeclarativeService('File',fileDefinitions),registerDeclarativeService(a178_0x54d279(0x1f3),ocrDefinitions),registerDeclarativeService('Code\x20Generation',codegenDefinitions),registerDeclarativeService(a178_0x54d279(0x1f5),configDefinitions),registerDeclarativeService(a178_0x54d279(0x1d0),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x54d279(0x1a2),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x54d279(0x1ec),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x54d279(0x1c6),cliSkillDefinitions,{'defaultCommand':a178_0x54d279(0x1da)}),registerDeclarativeService('Logs',logsDefinitions,{'defaultCommand':'show'}),registerDeclarativeService(a178_0x54d279(0x1e3),[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry[a178_0x54d279(0x1d6)]-0x1];last[a178_0x54d279(0x1e4)]=[{'command':a178_0x54d279(0x1f6),'description':a178_0x54d279(0x1d2),'tag':a178_0x54d279(0x1ff)+runDefinition['risk']+']'}];}const REMOVED_COMMAND_REPLACEMENTS=new Map([[a178_0x54d279(0x1ce),a178_0x54d279(0x1cd)],[a178_0x54d279(0x1d8),a178_0x54d279(0x1a9)],[a178_0x54d279(0x1a5),a178_0x54d279(0x1a6)],['menu:update','rabetbase\x20menu\x20asset-update'],[a178_0x54d279(0x1ea),'rabetbase\x20workspace\x20init\x20--appcode\x20<code>'],[a178_0x54d279(0x1c1),'rabetbase\x20cli-skill\x20install'],[a178_0x54d279(0x1f0),a178_0x54d279(0x1fc)],[a178_0x54d279(0x1c4),a178_0x54d279(0x1fc)],[a178_0x54d279(0x1ad),a178_0x54d279(0x1fc)],['app:remote',a178_0x54d279(0x1eb)],['app:use',a178_0x54d279(0x1c2)],[a178_0x54d279(0x1b6),'rabetbase\x20workspace\x20add\x20<name>\x20--appcode\x20<code>'],[a178_0x54d279(0x1bd),a178_0x54d279(0x1ba)],[a178_0x54d279(0x1cf),'rabetbase\x20kb\x20list'],[a178_0x54d279(0x1be),a178_0x54d279(0x1fe)],[a178_0x54d279(0x1ac),'rabetbase\x20kb\x20create'],['knowledge-base:update',a178_0x54d279(0x1dc)],['knowledge-base:delete',a178_0x54d279(0x1a4)]]),REMOVED_FLAT_COMMAND_REPLACEMENTS=new Map([[a178_0x54d279(0x1db),'rabetbase\x20project\x20create\x20<project-name>'],[a178_0x54d279(0x1d7),a178_0x54d279(0x1e7)],[a178_0x54d279(0x1b2),a178_0x54d279(0x1dd)],[a178_0x54d279(0x1a7),a178_0x54d279(0x1f1)],[a178_0x54d279(0x1b7),a178_0x54d279(0x1e8)]]);export function resolveRemovedCommand(_0x584068,_0x56b2d3){const _0x10c69d=a178_0x54d279;if(!_0x584068)return undefined;const _0x3c22d5=REMOVED_COMMAND_REPLACEMENTS[_0x10c69d(0x1cc)](_0x584068+':'+(_0x56b2d3??'')),_0x1c8afb=REMOVED_FLAT_COMMAND_REPLACEMENTS[_0x10c69d(0x1cc)](_0x584068),_0x1572f1=_0x3c22d5??_0x1c8afb;if(!_0x1572f1)return undefined;const _0x2a7307=_0x1c8afb?_0x584068:_0x56b2d3?_0x584068+'\x20'+_0x56b2d3:_0x584068;return{'command':_0x2a7307,'message':_0x10c69d(0x1bb)+_0x2a7307+_0x10c69d(0x1b3),'hint':'Use\x20`'+_0x1572f1+_0x10c69d(0x1d9)};}export function findDefinition(_0x316c13,_0x1ebe80){return definitions['get'](_0x316c13+':'+_0x1ebe80);}export function isKnownService(_0x26514f){const _0x1a2434=a178_0x54d279;return serviceByName[_0x1a2434(0x1ee)](_0x26514f);}export function isDeclarativeService(_0x6df09c){const _0x598532=a178_0x54d279;return serviceGroups['has'](_0x6df09c)||serviceByName[_0x598532(0x1cc)](_0x6df09c)?.['wildcardDef']!==undefined;}export function getServiceEntry(_0x4f024d){return serviceByName['get'](_0x4f024d);}export function getLegacyHandler(_0x380f3e,_0x4084d2){return undefined;}export function getAllDefinitions(){const _0x6b8f30=a178_0x54d279;return Array[_0x6b8f30(0x1c3)](definitions[_0x6b8f30(0x1d1)]());}
1
+ const a172_0xf03f90=a172_0x1f66;(function(_0x48c866,_0x5657f5){const _0x40c6ce=a172_0x1f66,_0x546445=_0x48c866();while(!![]){try{const _0x2378e1=parseInt(_0x40c6ce(0x1ef))/0x1+-parseInt(_0x40c6ce(0x1c5))/0x2*(-parseInt(_0x40c6ce(0x1d3))/0x3)+parseInt(_0x40c6ce(0x1e4))/0x4+parseInt(_0x40c6ce(0x1e5))/0x5*(parseInt(_0x40c6ce(0x1cf))/0x6)+parseInt(_0x40c6ce(0x1e9))/0x7*(parseInt(_0x40c6ce(0x1f1))/0x8)+parseInt(_0x40c6ce(0x1f2))/0x9*(-parseInt(_0x40c6ce(0x1d7))/0xa)+parseInt(_0x40c6ce(0x1d0))/0xb*(-parseInt(_0x40c6ce(0x1dc))/0xc);if(_0x2378e1===_0x5657f5)break;else _0x546445['push'](_0x546445['shift']());}catch(_0x4dff9b){_0x546445['push'](_0x546445['shift']());}}}(a172_0x2fd5,0xddd03));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';function a172_0x1f66(_0x5a476f,_0x1f940f){_0x5a476f=_0x5a476f-0x1a2;const _0x2fd597=a172_0x2fd5();let _0x1f6607=_0x2fd597[_0x5a476f];return _0x1f6607;}import{taskDefinitions}from'../commands/task/index.js';import{tenantDefinitions}from'../commands/tenant/index.js';import{roleDefinitions}from'../commands/role/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';function a172_0x2fd5(){const _0x5d6f48=['skills:install','skills:','rabetbase\x20run\x20start','rabetbase\x20workspace\x20use\x20--app\x20<name>','app:add','set','isSingleCommand','map','menu:update','rabetbase\x20run\x20build','Instant\x20API','No\x20executable\x20CLI\x20replacement\x20is\x20available\x20under\x20the\x20current\x20server\x20authentication\x20contract.','defaultCommand','Self\x20Update','Quick\x20Start','\x20\x20[write]','BFF\x20Scripts','push','length','rabetbase\x20kb\x20create','write','Runtime\x20App\x20Config\x20Management','knowledge-base:delete','Diagnostics','has','app:use','rabetbase\x20kb\x20list','rabetbase\x20workspace\x20init\x20--appcode\x20<code>','Logs','Project','2VgUDbc','Run\x20any\x20package.json\x20script','\x20\x20[','command','Platform\x20Issue','`rabetbase\x20','API\x20Development','Tenant\x20Members','CLI\x20Built-in\x20Skill','rabetbase\x20cli-skill\x20install','6fTMWBu','11FxVvHk','app:remote','read','4879773kiwzNQ','rabetbase\x20project\x20create\x20<project-name>','rabetbase\x20workspace\x20add\x20<name>\x20--appcode\x20<code>','Smart\x20List\x20Pages\x20&\x20React\x20Custom\x20Pages','2699980RwROTR','run','App\x20Management','rabetbase\x20auth\x20logout','knowledge-base:create','35228184pHjeDd','permit:role-menus-set','Company\x20Knowledge\x20Base','File','Code\x20Generation','get','role:create','Configuration','6892928EAucFy','6362795AvVJCM','project:init','values','logout','2667tWclGy','permit:role-menus','\x20\x20[high-risk-write]','bff:new','description','Run\x20Scripts','71584mwJyME','SQL\x20Queries','10504LZMWtH','45srvkbL','Use\x20`','permit:page-get','Async\x20Tasks','Notification\x20Configuration','permit:role-apis-set','knowledge-base:update','service','commands','rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml','Authentication','<script>','build','risk','knowledge-base:list','Dataset\x20&\x20Operations','install','create','Roles','rabetbase\x20menu\x20asset-update','rabetbase\x20app\x20list\x20--remote','permit:page-set','Menu','OCR','wildcardDef','rabetbase\x20kb\x20update'];a172_0x2fd5=function(){return _0x5d6f48;};return a172_0x2fd5();}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{userAccountDefinitions}from'../commands/user-account/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(_0x44ef0d){const _0x599abc=a172_0x1f66;for(const _0x4a12e3 of _0x44ef0d){definitions[_0x599abc(0x1ac)](_0x4a12e3[_0x599abc(0x1f9)]+':'+_0x4a12e3[_0x599abc(0x1c8)],_0x4a12e3);let _0xc3bc1=serviceGroups[_0x599abc(0x1e1)](_0x4a12e3[_0x599abc(0x1f9)]);!_0xc3bc1&&(_0xc3bc1=[],serviceGroups[_0x599abc(0x1ac)](_0x4a12e3[_0x599abc(0x1f9)],_0xc3bc1)),_0xc3bc1[_0x599abc(0x1b8)](_0x4a12e3);}}function registerDeclarativeService(_0x9afdb2,_0x1ca5c7,_0x3a6066){const _0x5319eb=a172_0x1f66;registerDefinitions(_0x1ca5c7);_0x3a6066?.['wildcardDef']&&registerDefinitions([_0x3a6066[_0x5319eb(0x1a5)]]);const _0x2075f0=_0x21dcac=>_0x21dcac===_0x5319eb(0x1d2)?'':_0x21dcac===_0x5319eb(0x1bb)?_0x5319eb(0x1b6):_0x5319eb(0x1eb),_0x5dd765={'service':_0x1ca5c7[0x0][_0x5319eb(0x1f9)],'label':_0x9afdb2,'commands':_0x1ca5c7['filter'](_0xcd038=>!_0xcd038['hidden'])[_0x5319eb(0x1ae)](_0x2d8eea=>({'command':_0x2d8eea[_0x5319eb(0x1c8)],'description':_0x2d8eea[_0x5319eb(0x1ed)],'tag':_0x2075f0(_0x2d8eea['risk'])})),'declarative':!![],'defaultCommand':_0x3a6066?.[_0x5319eb(0x1b3)]??(_0x3a6066?.['isSingleCommand']?_0x1ca5c7[0x0]['command']:undefined),'wildcardDef':_0x3a6066?.[_0x5319eb(0x1a5)],'isSingleCommand':_0x3a6066?.[_0x5319eb(0x1ad)]};serviceRegistry[_0x5319eb(0x1b8)](_0x5dd765),serviceByName[_0x5319eb(0x1ac)](_0x5dd765['service'],_0x5dd765);}registerDeclarativeService(a172_0xf03f90(0x1b5),initDefinitions,{'defaultCommand':a172_0xf03f90(0x1d8),'isSingleCommand':!![]}),registerDeclarativeService(a172_0xf03f90(0x1c4),projectDefinitions),registerDeclarativeService('Workspace',workspaceDefinitions),registerDeclarativeService(a172_0xf03f90(0x1d9),appDefinitions),registerDeclarativeService(a172_0xf03f90(0x1fc),authDefinitions,{'defaultCommand':'login'}),registerDeclarativeService(a172_0xf03f90(0x1cc),tenantDefinitions),registerDeclarativeService('User\x20Accounts',userAccountDefinitions),registerDeclarativeService(a172_0xf03f90(0x201),datasetDefinitions),registerDeclarativeService(a172_0xf03f90(0x1d6),pageDefinitions),registerDeclarativeService(a172_0xf03f90(0x1cb),apiDefinitions),registerDeclarativeService(a172_0xf03f90(0x1b1),dataDefinitions),registerDeclarativeService(a172_0xf03f90(0x1b7),bffDefinitions),registerDeclarativeService(a172_0xf03f90(0x1f6),notificationDefinitions),registerDeclarativeService(a172_0xf03f90(0x1f0),sqlDefinitions),registerDeclarativeService('Database\x20Connections',dbDefinitions),registerDeclarativeService(a172_0xf03f90(0x1a3),menuDefinitions),registerDeclarativeService(a172_0xf03f90(0x1f5),taskDefinitions),registerDeclarativeService(a172_0xf03f90(0x204),roleDefinitions),registerDeclarativeService(a172_0xf03f90(0x1bc),appConfigDefinitions),registerDeclarativeService(a172_0xf03f90(0x1de),kbDefinitions),registerDeclarativeService(a172_0xf03f90(0x1c9),issueDefinitions),registerDeclarativeService(a172_0xf03f90(0x1df),fileDefinitions),registerDeclarativeService(a172_0xf03f90(0x1a4),ocrDefinitions),registerDeclarativeService(a172_0xf03f90(0x1e0),codegenDefinitions),registerDeclarativeService(a172_0xf03f90(0x1e3),configDefinitions),registerDeclarativeService(a172_0xf03f90(0x1be),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService('Schema',[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a172_0xf03f90(0x1b4),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a172_0xf03f90(0x1cd),cliSkillDefinitions,{'defaultCommand':a172_0xf03f90(0x202)}),registerDeclarativeService(a172_0xf03f90(0x1c3),logsDefinitions,{'defaultCommand':'show'}),registerDeclarativeService(a172_0xf03f90(0x1ee),[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry[a172_0xf03f90(0x1b9)]-0x1];last[a172_0xf03f90(0x1fa)]=[{'command':a172_0xf03f90(0x1fd),'description':a172_0xf03f90(0x1c6),'tag':a172_0xf03f90(0x1c7)+runDefinition[a172_0xf03f90(0x1ff)]+']'}];}const REMOVED_COMMAND_REPLACEMENTS=new Map([['sql:save',a172_0xf03f90(0x1fb)],[a172_0xf03f90(0x1ec),'rabetbase\x20bff\x20create'],['sql:new','rabetbase\x20sql\x20create'],[a172_0xf03f90(0x1af),a172_0xf03f90(0x205)],[a172_0xf03f90(0x1e6),a172_0xf03f90(0x1c2)],['skill:','rabetbase\x20cli-skill\x20install'],['skill:install',a172_0xf03f90(0x1ce)],[a172_0xf03f90(0x1a8),'rabetbase\x20cli-skill\x20install'],[a172_0xf03f90(0x1a7),a172_0xf03f90(0x1ce)],[a172_0xf03f90(0x1d1),a172_0xf03f90(0x206)],[a172_0xf03f90(0x1c0),a172_0xf03f90(0x1aa)],[a172_0xf03f90(0x1ab),a172_0xf03f90(0x1d5)],['app:remove','rabetbase\x20workspace\x20remove\x20<name>'],[a172_0xf03f90(0x200),a172_0xf03f90(0x1c1)],['knowledge-base:detail','rabetbase\x20kb\x20detail'],[a172_0xf03f90(0x1db),a172_0xf03f90(0x1ba)],[a172_0xf03f90(0x1f8),a172_0xf03f90(0x1a6)],[a172_0xf03f90(0x1bd),'rabetbase\x20kb\x20delete'],[a172_0xf03f90(0x1e2),'rabetbase\x20role\x20list']]),REMOVED_COMMAND_HINTS=new Map([[a172_0xf03f90(0x1f4),a172_0xf03f90(0x1b2)],[a172_0xf03f90(0x1a2),a172_0xf03f90(0x1b2)],[a172_0xf03f90(0x1ea),'No\x20executable\x20CLI\x20replacement\x20is\x20available\x20under\x20the\x20current\x20server\x20authentication\x20contract.'],[a172_0xf03f90(0x1dd),'No\x20executable\x20CLI\x20replacement\x20is\x20available\x20under\x20the\x20current\x20server\x20authentication\x20contract.'],[a172_0xf03f90(0x1f7),a172_0xf03f90(0x1b2)]]),REMOVED_FLAT_COMMAND_REPLACEMENTS=new Map([[a172_0xf03f90(0x203),a172_0xf03f90(0x1d4)],['start',a172_0xf03f90(0x1a9)],[a172_0xf03f90(0x1fe),a172_0xf03f90(0x1b0)],['preview','rabetbase\x20run\x20preview'],[a172_0xf03f90(0x1e8),a172_0xf03f90(0x1da)]]);export function resolveRemovedCommand(_0x104702,_0x348764){const _0x529501=a172_0xf03f90;if(!_0x104702)return undefined;const _0x2540da=REMOVED_COMMAND_REPLACEMENTS[_0x529501(0x1e1)](_0x104702+':'+(_0x348764??'')),_0x486819=REMOVED_FLAT_COMMAND_REPLACEMENTS[_0x529501(0x1e1)](_0x104702),_0x1636e3=_0x2540da??_0x486819,_0x290cfc=REMOVED_COMMAND_HINTS[_0x529501(0x1e1)](_0x104702+':'+(_0x348764??''));if(!_0x1636e3&&!_0x290cfc)return undefined;const _0x1c7645=_0x486819?_0x104702:_0x348764?_0x104702+'\x20'+_0x348764:_0x104702;return{'command':_0x1c7645,'message':_0x529501(0x1ca)+_0x1c7645+'`\x20has\x20been\x20removed.','hint':_0x290cfc??_0x529501(0x1f3)+_0x1636e3+'`\x20instead.'};}export function findDefinition(_0xb66ed1,_0x429dd3){return definitions['get'](_0xb66ed1+':'+_0x429dd3);}export function isKnownService(_0x596761){return serviceByName['has'](_0x596761);}export function isDeclarativeService(_0x17b4ec){const _0x5cce02=a172_0xf03f90;return serviceGroups[_0x5cce02(0x1bf)](_0x17b4ec)||serviceByName[_0x5cce02(0x1e1)](_0x17b4ec)?.[_0x5cce02(0x1a5)]!==undefined;}export function getServiceEntry(_0x3e34b4){const _0x2480cc=a172_0xf03f90;return serviceByName[_0x2480cc(0x1e1)](_0x3e34b4);}export function getLegacyHandler(_0x28d117,_0x5b2327){return undefined;}export function getAllDefinitions(){const _0x58ca71=a172_0xf03f90;return Array['from'](definitions[_0x58ca71(0x1e7)]());}
@@ -1 +1 @@
1
- const a180_0x198189=a180_0x432d;(function(_0x20e11e,_0x51100e){const _0x4e4e24=a180_0x432d,_0x5f38d0=_0x20e11e();while(!![]){try{const _0x3ec9b3=-parseInt(_0x4e4e24(0x94))/0x1*(-parseInt(_0x4e4e24(0x98))/0x2)+parseInt(_0x4e4e24(0x97))/0x3*(-parseInt(_0x4e4e24(0x8f))/0x4)+-parseInt(_0x4e4e24(0x8c))/0x5*(parseInt(_0x4e4e24(0x87))/0x6)+parseInt(_0x4e4e24(0x8d))/0x7+-parseInt(_0x4e4e24(0x9a))/0x8+-parseInt(_0x4e4e24(0x8e))/0x9+-parseInt(_0x4e4e24(0x88))/0xa*(-parseInt(_0x4e4e24(0x96))/0xb);if(_0x3ec9b3===_0x51100e)break;else _0x5f38d0['push'](_0x5f38d0['shift']());}catch(_0x5e6045){_0x5f38d0['push'](_0x5f38d0['shift']());}}}(a180_0x5eaf,0xd6f4e));import{deleteAppRole}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a180_0x5eaf(){const _0x43ec83=['9448873JJTyyN','13031559IQzeil','113776KfDEmT','roleName','num','high-risk-write','Deleted\x20role\x20','1261196EFCWHN','Role\x20still\x20has\x20','12332573quaPOg','69bvygCz','2gnQwQY','role','5588600eHOXEl','\x20member(s);\x20they\x20will\x20lose\x20this\x20group.','userCount','delete','305868mQcjhP','10rayYKR','POST','\x20(id=','appCode','5JkstLA'];a180_0x5eaf=function(){return _0x43ec83;};return a180_0x5eaf();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a180_0x432d(_0x260229,_0x49cb3c){_0x260229=_0x260229-0x86;const _0x5eaf41=a180_0x5eaf();let _0x432dc4=_0x5eaf41[_0x260229];return _0x432dc4;}import{assertCustomRole,getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';const DELETE_PATH='/smartapi/permit/role/delete';export const roleDelete={'service':a180_0x198189(0x99),'command':'delete','description':'Delete\x20a\x20CUSTOM\x20role\x20(DEV/ADMIN\x20rejected);\x20requires\x20--yes','risk':a180_0x198189(0x92),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xccbe3b){const _0x391ab7=a180_0x198189,_0x1cc770=_0xccbe3b[_0x391ab7(0x91)]('id'),_0xfebec8=await getRoleById(_0xccbe3b[_0x391ab7(0x8b)],_0x1cc770);return assertCustomRole(_0xfebec8,_0x391ab7(0x86)),asDryRunResult({'operation':'delete','selector':{'appCode':_0xccbe3b[_0x391ab7(0x8b)],'roleId':_0x1cc770,'roleName':_0xfebec8[_0x391ab7(0x90)]},'before':projectRole(_0xfebec8),'after':null,'dryRun':!![],'backend':{'method':_0x391ab7(0x89),'path':DELETE_PATH},'warnings':_0xfebec8[_0x391ab7(0x9c)]>0x0?[_0x391ab7(0x95)+_0xfebec8[_0x391ab7(0x9c)]+_0x391ab7(0x9b)]:[]},{'method':_0x391ab7(0x89),'url':DELETE_PATH});},async 'execute'(_0x42e1ed){const _0x4be5d5=a180_0x198189,_0x9cab01=_0x42e1ed[_0x4be5d5(0x91)]('id'),_0x13e95e=await getRoleById(_0x42e1ed[_0x4be5d5(0x8b)],_0x9cab01);return assertCustomRole(_0x13e95e,'delete'),await deleteAppRole(_0x9cab01),{'ok':!![],'data':{'operation':_0x4be5d5(0x86),'selector':{'appCode':_0x42e1ed['appCode'],'roleId':_0x9cab01,'roleName':_0x13e95e[_0x4be5d5(0x90)]},'before':projectRole(_0x13e95e),'after':null,'dryRun':![],'backend':{'method':_0x4be5d5(0x89),'path':DELETE_PATH},'warnings':[]},'message':_0x4be5d5(0x93)+_0x13e95e['roleName']+_0x4be5d5(0x8a)+_0x9cab01+')'};}};
1
+ const a173_0x22ac7a=a173_0x4cac;function a173_0x4cac(_0x18ed13,_0x1224a0){_0x18ed13=_0x18ed13-0xc9;const _0x43832e=a173_0x4383();let _0x4cac30=_0x43832e[_0x18ed13];return _0x4cac30;}function a173_0x4383(){const _0x2cbaf3=['4478301BBGuiV','appCode','delete','dev','Delete\x20a\x20CUSTOM\x20role\x20(built-in\x20roles\x20rejected);\x20requires\x20--yes','2761608mTqYhs','104DmpFSN','5zcWLld','106974lgdIWz','33qdZPUw','Role\x20still\x20has\x20','userCount','78172SpKRXX','\x20member(s);\x20they\x20will\x20lose\x20this\x20group.','42MJTfah','/smartapi/permit/role/delete','\x20(id=','1584318ibitDA','role','num','8143356PQhEwX','1XKdegZ','high-risk-write','POST','5842740mbFKBz'];a173_0x4383=function(){return _0x2cbaf3;};return a173_0x4383();}(function(_0x3ef10a,_0x4d9b09){const _0x270c71=a173_0x4cac,_0x412b18=_0x3ef10a();while(!![]){try{const _0x1eda40=-parseInt(_0x270c71(0xde))/0x1*(parseInt(_0x270c71(0xce))/0x2)+-parseInt(_0x270c71(0xd7))/0x3*(parseInt(_0x270c71(0xd5))/0x4)+-parseInt(_0x270c71(0xd0))/0x5*(-parseInt(_0x270c71(0xda))/0x6)+-parseInt(_0x270c71(0xd1))/0x7*(-parseInt(_0x270c71(0xcf))/0x8)+parseInt(_0x270c71(0xc9))/0x9+-parseInt(_0x270c71(0xe1))/0xa+-parseInt(_0x270c71(0xd2))/0xb*(-parseInt(_0x270c71(0xdd))/0xc);if(_0x1eda40===_0x4d9b09)break;else _0x412b18['push'](_0x412b18['shift']());}catch(_0x5c0bbe){_0x412b18['push'](_0x412b18['shift']());}}}(a173_0x4383,0xb8edb));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=a173_0x22ac7a(0xd8);export const roleDelete={'service':a173_0x22ac7a(0xdb),'command':a173_0x22ac7a(0xcb),'description':a173_0x22ac7a(0xcd),'risk':a173_0x22ac7a(0xdf),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x19ec4e){const _0x3593f5=a173_0x22ac7a,_0x3c7471=_0x19ec4e[_0x3593f5(0xdc)]('id'),_0x5d1870=await getRoleById(_0x19ec4e[_0x3593f5(0xca)],_0x3c7471);return assertCustomRole(_0x5d1870,'delete'),asDryRunResult({'scope':_0x3593f5(0xcc),'operation':_0x3593f5(0xcb),'selector':{'appCode':_0x19ec4e['appCode'],'roleId':_0x3c7471,'roleName':_0x5d1870['roleName']},'before':projectRole(_0x5d1870),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x5d1870[_0x3593f5(0xd4)]>0x0?[_0x3593f5(0xd3)+_0x5d1870['userCount']+_0x3593f5(0xd6)]:[]},{'method':_0x3593f5(0xe0),'url':DELETE_PATH});},async 'execute'(_0x2e31df){const _0x25422b=a173_0x22ac7a,_0x2f181d=_0x2e31df['num']('id'),_0x58376b=await getRoleById(_0x2e31df[_0x25422b(0xca)],_0x2f181d);return assertCustomRole(_0x58376b,_0x25422b(0xcb)),await deleteAppRole(_0x2f181d),{'ok':!![],'data':{'scope':_0x25422b(0xcc),'operation':_0x25422b(0xcb),'selector':{'appCode':_0x2e31df[_0x25422b(0xca)],'roleId':_0x2f181d,'roleName':_0x58376b['roleName']},'before':projectRole(_0x58376b),'after':null,'dryRun':![],'backend':{'method':_0x25422b(0xe0),'path':DELETE_PATH},'warnings':[]},'message':'Deleted\x20role\x20'+_0x58376b['roleName']+_0x25422b(0xd9)+_0x2f181d+')'};}};
@@ -1 +1 @@
1
- const a181_0x4966f0=a181_0x4089;(function(_0x5e48aa,_0xffb219){const _0x1883e3=a181_0x4089,_0x276f74=_0x5e48aa();while(!![]){try{const _0x223e4e=parseInt(_0x1883e3(0x16c))/0x1*(parseInt(_0x1883e3(0x171))/0x2)+parseInt(_0x1883e3(0x16f))/0x3*(parseInt(_0x1883e3(0x170))/0x4)+-parseInt(_0x1883e3(0x161))/0x5*(-parseInt(_0x1883e3(0x162))/0x6)+parseInt(_0x1883e3(0x166))/0x7+-parseInt(_0x1883e3(0x16a))/0x8*(parseInt(_0x1883e3(0x169))/0x9)+-parseInt(_0x1883e3(0x164))/0xa*(-parseInt(_0x1883e3(0x172))/0xb)+parseInt(_0x1883e3(0x16e))/0xc*(-parseInt(_0x1883e3(0x168))/0xd);if(_0x223e4e===_0xffb219)break;else _0x276f74['push'](_0x276f74['shift']());}catch(_0x4f9de4){_0x276f74['push'](_0x276f74['shift']());}}}(a181_0x3bf6,0x99a3e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a181_0x4089(_0x4961ed,_0x8e594e){_0x4961ed=_0x4961ed-0x160;const _0x3bf6c6=a181_0x3bf6();let _0x408971=_0x3bf6c6[_0x4961ed];return _0x408971;}import{getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';function a181_0x3bf6(){const _0x7f38fb=['11322gEddtw','4328BJYVNn','role','1212364zVriyU','detail','18483204eFabFt','34677fVsoXT','292tNiing','2fCodgQ','236643XlGvgG','read','10ZsyPjq','3253584MuFKrC','num','30YVXyoo','Role\x20','8296288WxcnVU','Show\x20a\x20single\x20role\x27s\x20detail','26sQqfoD'];a181_0x3bf6=function(){return _0x7f38fb;};return a181_0x3bf6();}export const roleDetail={'service':a181_0x4966f0(0x16b),'command':a181_0x4966f0(0x16d),'description':a181_0x4966f0(0x167),'risk':a181_0x4966f0(0x160),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x10c49f){const _0x46c51e=a181_0x4966f0,_0x118442=_0x10c49f[_0x46c51e(0x163)]('id'),_0x2ace69=await getRoleById(_0x10c49f['appCode'],_0x118442);return{'ok':!![],'data':{'role':projectRole(_0x2ace69)},'message':_0x46c51e(0x165)+_0x2ace69['roleName']+'\x20('+_0x2ace69['roleType']+')'};}};
1
+ function a174_0x1eaf(){const _0x4e8a0b=['16iHqqxM','Show\x20a\x20single\x20role\x27s\x20detail','appCode','detail','3XBxaqm','4489716eWcHHx','1530135fsOALr','451010dxLaNo','roleName','442498LwhFht','628108jKoAcj','1385ZBVPFg','num','22RjEqHn','9993RMbOGs','roleType','role','Role\x20','4566XjbAFs'];a174_0x1eaf=function(){return _0x4e8a0b;};return a174_0x1eaf();}const a174_0x36f176=a174_0x2614;(function(_0x555d66,_0x2928ec){const _0x372dc3=a174_0x2614,_0x46d653=_0x555d66();while(!![]){try{const _0x275d66=parseInt(_0x372dc3(0x140))/0x1*(parseInt(_0x372dc3(0x13f))/0x2)+-parseInt(_0x372dc3(0x149))/0x3*(parseInt(_0x372dc3(0x13c))/0x4)+parseInt(_0x372dc3(0x13d))/0x5*(-parseInt(_0x372dc3(0x144))/0x6)+parseInt(_0x372dc3(0x13b))/0x7*(-parseInt(_0x372dc3(0x145))/0x8)+parseInt(_0x372dc3(0x138))/0x9+-parseInt(_0x372dc3(0x139))/0xa+parseInt(_0x372dc3(0x14a))/0xb;if(_0x275d66===_0x2928ec)break;else _0x46d653['push'](_0x46d653['shift']());}catch(_0x3aea45){_0x46d653['push'](_0x46d653['shift']());}}}(a174_0x1eaf,0x24505));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';function a174_0x2614(_0x2533f3,_0x206aad){_0x2533f3=_0x2533f3-0x138;const _0x1eafa7=a174_0x1eaf();let _0x2614ef=_0x1eafa7[_0x2533f3];return _0x2614ef;}export const roleDetail={'service':a174_0x36f176(0x142),'command':a174_0x36f176(0x148),'description':a174_0x36f176(0x146),'risk':'read','flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x12dc49){const _0x2a2f07=a174_0x36f176,_0x437237=_0x12dc49[_0x2a2f07(0x13e)]('id'),_0x378f51=await getRoleById(_0x12dc49[_0x2a2f07(0x147)],_0x437237);return{'ok':!![],'data':{'scope':'dev','role':projectRole(_0x378f51)},'message':_0x2a2f07(0x143)+_0x378f51[_0x2a2f07(0x13a)]+'\x20('+_0x378f51[_0x2a2f07(0x141)]+')'};}};
@@ -1 +1 @@
1
- function a182_0x3cc7(){const _0x2a1049=['49916SKLvIN','22980DRfLrM','747360GrGisg','9KTMNUc','89028YYruCX','6811454rWTWdd','12PlgCgp','474888wBlOiP','2nTOYXi','1132bhqisA','2589ryYMDK','1199nnunGd','63gzUzTm'];a182_0x3cc7=function(){return _0x2a1049;};return a182_0x3cc7();}(function(_0x390159,_0x3396ea){const _0x4f912c=a182_0x5472,_0x35810d=_0x390159();while(!![]){try{const _0x3e2f76=-parseInt(_0x4f912c(0x1c4))/0x1*(parseInt(_0x4f912c(0x1c9))/0x2)+parseInt(_0x4f912c(0x1c6))/0x3*(parseInt(_0x4f912c(0x1c5))/0x4)+parseInt(_0x4f912c(0x1cb))/0x5+-parseInt(_0x4f912c(0x1cd))/0x6*(-parseInt(_0x4f912c(0x1c8))/0x7)+-parseInt(_0x4f912c(0x1c3))/0x8*(parseInt(_0x4f912c(0x1cc))/0x9)+parseInt(_0x4f912c(0x1ca))/0xa*(parseInt(_0x4f912c(0x1c7))/0xb)+parseInt(_0x4f912c(0x1c2))/0xc*(-parseInt(_0x4f912c(0x1ce))/0xd);if(_0x3e2f76===_0x3396ea)break;else _0x35810d['push'](_0x35810d['shift']());}catch(_0x113fc8){_0x35810d['push'](_0x35810d['shift']());}}}(a182_0x3cc7,0x2346a));import{roleList}from'../../commands/role/list.js';import{roleDetail}from'../../commands/role/detail.js';import{roleCreate}from'../../commands/role/create.js';function a182_0x5472(_0x3a1298,_0x13b534){_0x3a1298=_0x3a1298-0x1c2;const _0x3cc7c3=a182_0x3cc7();let _0x54724=_0x3cc7c3[_0x3a1298];return _0x54724;}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';export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserResolve,roleUserAdd,roleUserRemove];
1
+ function a175_0x2c18(){const _0x3378b6=['96iQxyno','2023796TDqyXC','17906RrpIhO','993792QQAuTg','1767423QiYNjA','3507120zGGLCT','2256282rEhPkl','2202ZWRMjg','997695yVEVon'];a175_0x2c18=function(){return _0x3378b6;};return a175_0x2c18();}(function(_0x1cfd5f,_0x19064e){const _0x2a285c=a175_0x4963,_0x2b86f6=_0x1cfd5f();while(!![]){try{const _0x151e66=parseInt(_0x2a285c(0x1da))/0x1+-parseInt(_0x2a285c(0x1d3))/0x2+-parseInt(_0x2a285c(0x1d6))/0x3+-parseInt(_0x2a285c(0x1d5))/0x4+-parseInt(_0x2a285c(0x1d7))/0x5+parseInt(_0x2a285c(0x1d9))/0x6*(-parseInt(_0x2a285c(0x1d4))/0x7)+-parseInt(_0x2a285c(0x1db))/0x8*(-parseInt(_0x2a285c(0x1d8))/0x9);if(_0x151e66===_0x19064e)break;else _0x2b86f6['push'](_0x2b86f6['shift']());}catch(_0x4942ad){_0x2b86f6['push'](_0x2b86f6['shift']());}}}(a175_0x2c18,0x7e116));import{roleList}from'../../commands/role/list.js';function a175_0x4963(_0x11556f,_0x3197b9){_0x11556f=_0x11556f-0x1d3;const _0x2c1841=a175_0x2c18();let _0x496355=_0x2c1841[_0x11556f];return _0x496355;}import{roleDetail}from'../../commands/role/detail.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';export const roleDefinitions=[roleList,roleDetail,roleUpdate,roleDelete,roleUserResolve,roleUserAdd,roleUserRemove];
@@ -1 +1 @@
1
- const a183_0x418e6c=a183_0x4ea3;(function(_0x1b50d7,_0x215efa){const _0x57183d=a183_0x4ea3,_0x46e176=_0x1b50d7();while(!![]){try{const _0x58542e=-parseInt(_0x57183d(0x1e9))/0x1+-parseInt(_0x57183d(0x1f1))/0x2+-parseInt(_0x57183d(0x1da))/0x3*(parseInt(_0x57183d(0x1e6))/0x4)+-parseInt(_0x57183d(0x1dc))/0x5+parseInt(_0x57183d(0x1f0))/0x6+-parseInt(_0x57183d(0x1d9))/0x7+-parseInt(_0x57183d(0x1e4))/0x8*(-parseInt(_0x57183d(0x1e8))/0x9);if(_0x58542e===_0x215efa)break;else _0x46e176['push'](_0x46e176['shift']());}catch(_0x40a988){_0x46e176['push'](_0x46e176['shift']());}}}(a183_0x525c,0x44d68));import{listAppRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a183_0x525c(){const _0x2553a0=['toUpperCase','appCode','Use\x20one\x20of:\x20','Page\x20index\x20(1-based)','type','number','string','96MiMflC','role','8XSKZLA','filter','1083897MeZOIs','345492MErYnz','ADMIN','Invalid\x20--type\x20\x22','--pagesize\x20must\x20be\x20between\x201\x20and\x20100.','--page\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201.','join','pagesize','1322472ztqtQL','570360VEshYN','map','page','USER','str','Page\x20size\x20(1-100)','\x20role(s)','validation','num','trim','includes','length','CUSTOM','3354652poRiOd','290688okAEgV','Filter\x20by\x20role\x20type','399740lLjblK'];a183_0x525c=function(){return _0x2553a0;};return a183_0x525c();}function a183_0x4ea3(_0x5135af,_0x1a4561){_0x5135af=_0x5135af-0x1cd;const _0x525c31=a183_0x525c();let _0x4ea3fd=_0x525c31[_0x5135af];return _0x4ea3fd;}import{projectRole}from'../../commands/role/shared.js';const ROLE_TYPES=[a183_0x418e6c(0x1ea),'DEV',a183_0x418e6c(0x1cf),a183_0x418e6c(0x1d8)];export const roleList={'service':a183_0x418e6c(0x1e5),'command':'list','description':'List\x20user\x20groups\x20(roles)\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a183_0x418e6c(0x1e1),'type':a183_0x418e6c(0x1e3),'required':![],'description':a183_0x418e6c(0x1db),'enum':ROLE_TYPES},{'name':a183_0x418e6c(0x1ce),'type':'number','description':a183_0x418e6c(0x1e0),'default':0x1},{'name':a183_0x418e6c(0x1ef),'type':a183_0x418e6c(0x1e2),'description':a183_0x418e6c(0x1d1),'default':0x64}],async 'validate'(_0x76bb01){const _0x4a6b34=a183_0x418e6c,_0x79476b=_0x76bb01[_0x4a6b34(0x1d0)](_0x4a6b34(0x1e1))[_0x4a6b34(0x1d5)]();if(_0x79476b&&!ROLE_TYPES[_0x4a6b34(0x1d6)](_0x79476b[_0x4a6b34(0x1dd)]()))throw CliErrors[_0x4a6b34(0x1d3)](_0x4a6b34(0x1eb)+_0x79476b+'\x22.',_0x4a6b34(0x1df)+ROLE_TYPES[_0x4a6b34(0x1ee)](',\x20')+'.');const _0xf03476=_0x76bb01[_0x4a6b34(0x1d4)](_0x4a6b34(0x1ce),0x1),_0xc6fa9f=_0x76bb01[_0x4a6b34(0x1d4)](_0x4a6b34(0x1ef),0x64);if(_0xf03476<0x1)throw CliErrors[_0x4a6b34(0x1d3)](_0x4a6b34(0x1ed));if(_0xc6fa9f<0x1||_0xc6fa9f>0x64)throw CliErrors['validation'](_0x4a6b34(0x1ec));},async 'execute'(_0x21819d){const _0x3d4bfa=a183_0x418e6c,_0x4158b9=_0x21819d['num'](_0x3d4bfa(0x1ce),0x1)||0x1,_0x5eee29=_0x21819d['num'](_0x3d4bfa(0x1ef),0x64)||0x64,_0x264a7f=_0x21819d[_0x3d4bfa(0x1d0)]('type')[_0x3d4bfa(0x1d5)]()[_0x3d4bfa(0x1dd)](),{items:_0x3f042e,paging:_0x285844}=await listAppRoles(_0x21819d[_0x3d4bfa(0x1de)],{'currentPage':_0x4158b9,'pageSize':_0x5eee29}),_0x3618d6=_0x264a7f?_0x3f042e[_0x3d4bfa(0x1e7)](_0x237578=>_0x237578['roleType']===_0x264a7f):_0x3f042e,_0x5bb6d5=_0x3618d6[_0x3d4bfa(0x1cd)](projectRole);return{'ok':!![],'data':{'roles':_0x5bb6d5,'paging':_0x285844},'message':'Found\x20'+_0x5bb6d5[_0x3d4bfa(0x1d7)]+_0x3d4bfa(0x1d2)};}};
1
+ function a176_0x16f6(_0x481e48,_0x5c5701){_0x481e48=_0x481e48-0x1bf;const _0x3e676e=a176_0x3e67();let _0x16f6f7=_0x3e676e[_0x481e48];return _0x16f6f7;}const a176_0x358837=a176_0x16f6;(function(_0x6aaa05,_0x4a8e0c){const _0x222087=a176_0x16f6,_0x2952f8=_0x6aaa05();while(!![]){try{const _0x5ebeb1=parseInt(_0x222087(0x1e0))/0x1*(parseInt(_0x222087(0x1e6))/0x2)+-parseInt(_0x222087(0x1da))/0x3*(parseInt(_0x222087(0x1c1))/0x4)+-parseInt(_0x222087(0x1d9))/0x5+-parseInt(_0x222087(0x1c5))/0x6*(parseInt(_0x222087(0x1c2))/0x7)+parseInt(_0x222087(0x1e2))/0x8*(parseInt(_0x222087(0x1e5))/0x9)+-parseInt(_0x222087(0x1db))/0xa+-parseInt(_0x222087(0x1d7))/0xb*(-parseInt(_0x222087(0x1e4))/0xc);if(_0x5ebeb1===_0x4a8e0c)break;else _0x2952f8['push'](_0x2952f8['shift']());}catch(_0x7e06c0){_0x2952f8['push'](_0x2952f8['shift']());}}}(a176_0x3e67,0xbc542));import{listAppRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectRole}from'../../commands/role/shared.js';const ROLE_TYPES=['ADMIN',a176_0x358837(0x1bf),a176_0x358837(0x1d1),a176_0x358837(0x1cd)];export const roleList={'service':a176_0x358837(0x1d2),'command':'list','description':a176_0x358837(0x1cf),'risk':a176_0x358837(0x1c7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a176_0x358837(0x1dd),'type':'string','required':![],'description':a176_0x358837(0x1d8),'enum':ROLE_TYPES},{'name':a176_0x358837(0x1ca),'type':a176_0x358837(0x1e8),'description':a176_0x358837(0x1c3),'default':0x1},{'name':'pagesize','type':'number','description':a176_0x358837(0x1df),'default':0x64}],async 'validate'(_0x895032){const _0x4fd17=a176_0x358837,_0x5f4fa0=_0x895032[_0x4fd17(0x1d4)](_0x4fd17(0x1dd))['trim']();if(_0x5f4fa0&&!ROLE_TYPES[_0x4fd17(0x1d0)](_0x5f4fa0[_0x4fd17(0x1c6)]()))throw CliErrors[_0x4fd17(0x1e3)](_0x4fd17(0x1e7)+_0x5f4fa0+'\x22.',_0x4fd17(0x1e1)+ROLE_TYPES[_0x4fd17(0x1c0)](',\x20')+'.');const _0x44916a=_0x895032[_0x4fd17(0x1cb)](_0x4fd17(0x1ca),0x1),_0x19d932=_0x895032['num'](_0x4fd17(0x1d6),0x64);if(_0x44916a<0x1)throw CliErrors['validation'](_0x4fd17(0x1de));if(_0x19d932<0x1||_0x19d932>0x64)throw CliErrors[_0x4fd17(0x1e3)](_0x4fd17(0x1cc));},async 'execute'(_0x305d8f){const _0x467689=a176_0x358837,_0x3a906e=_0x305d8f[_0x467689(0x1cb)](_0x467689(0x1ca),0x1)||0x1,_0x36983d=_0x305d8f['num'](_0x467689(0x1d6),0x64)||0x64,_0xc8d77f=_0x305d8f['str'](_0x467689(0x1dd))[_0x467689(0x1c4)]()[_0x467689(0x1c6)](),{items:_0x3111ca,paging:_0x29fba4}=await listAppRoles(_0x305d8f[_0x467689(0x1c8)],{'currentPage':_0x3a906e,'pageSize':_0x36983d}),_0x51c413=_0xc8d77f?_0x3111ca['filter'](_0x26cbdf=>_0x26cbdf[_0x467689(0x1ce)]===_0xc8d77f):_0x3111ca,_0x544005=_0x51c413['map'](projectRole);return{'ok':!![],'data':{'scope':_0x467689(0x1d5),'roles':_0x544005,'paging':_0x29fba4},'message':_0x467689(0x1d3)+_0x544005[_0x467689(0x1c9)]+_0x467689(0x1dc)};}};function a176_0x3e67(){const _0x573890=['type','--page\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201.','Page\x20size\x20(1-100)','19QEpNkj','Use\x20one\x20of:\x20','433232KWgPhc','validation','60tVAHwD','27AYwMmQ','128920qrIihe','Invalid\x20--type\x20\x22','number','DEV','join','488Uaeqha','8304135YtFVyw','Page\x20index\x20(1-based)','trim','6llwPxI','toUpperCase','read','appCode','length','page','num','--pagesize\x20must\x20be\x20between\x201\x20and\x20100.','CUSTOM','roleType','List\x20user\x20groups\x20(roles)\x20for\x20the\x20current\x20app','includes','OWNER','role','Found\x20','str','dev','pagesize','6100446VpASPi','Filter\x20by\x20role\x20type','3367180QZSEUV','13539yPvWrO','9784110nsoCDT','\x20role(s)'];a176_0x3e67=function(){return _0x573890;};return a176_0x3e67();}