@lovrabet/rabetbase-cli 2.3.10 → 2.3.11

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 (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -0
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- const a226_0x22ba80=a226_0x5737;(function(_0x140faf,_0x37961b){const _0x22f930=a226_0x5737,_0x89338b=_0x140faf();while(!![]){try{const _0x133769=-parseInt(_0x22f930(0xf9))/0x1*(-parseInt(_0x22f930(0xec))/0x2)+-parseInt(_0x22f930(0xed))/0x3*(parseInt(_0x22f930(0xf6))/0x4)+-parseInt(_0x22f930(0xbf))/0x5*(-parseInt(_0x22f930(0xf7))/0x6)+parseInt(_0x22f930(0xc4))/0x7+-parseInt(_0x22f930(0xdf))/0x8*(parseInt(_0x22f930(0xc2))/0x9)+parseInt(_0x22f930(0xcf))/0xa*(-parseInt(_0x22f930(0xdc))/0xb)+parseInt(_0x22f930(0xe5))/0xc*(parseInt(_0x22f930(0xd4))/0xd);if(_0x133769===_0x37961b)break;else _0x89338b['push'](_0x89338b['shift']());}catch(_0x5be216){_0x89338b['push'](_0x89338b['shift']());}}}(a226_0x3249,0x9c956));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a226_0x2a8655}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a226_0x5737(_0x52bfce,_0x30987d){_0x52bfce=_0x52bfce-0xbf;const _0x3249b5=a226_0x3249();let _0x573733=_0x3249b5[_0x52bfce];return _0x573733;}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x266b2e){const _0x31caec=a226_0x5737;return typeof _0x266b2e===_0x31caec(0xf4)&&_0x266b2e[_0x31caec(0xcc)]()?_0x266b2e[_0x31caec(0xcc)]():undefined;}function resolveEnvAppCode(){const _0x2b5919=a226_0x5737,_0x3aec31=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3aec31)return{'name':_0x2b5919(0xf8),'value':_0x3aec31};const _0x30968a=stringFlag(process.env.LOVRABET_APPCODE);if(_0x30968a)return{'name':_0x2b5919(0xce),'value':_0x30968a};return undefined;}function a226_0x3249(){const _0x411be5=['nonInteractive','appcode','execute','High-risk\x20operation\x20`','30685812vWvTfL','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','resolveAppCode','\x20\x20\x20Continue?\x20[y/N]\x20','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','find','schema','904gbAIVm','186SuSojZ','catch','selectedAppName','pageSize','defaultVerbose','hint','format','string','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','61172aRfWnX','11694hQBLuH','RABETBASE_APPCODE','2077XBWqYJ','rawFlags','apiDir','Current\x20resolved\x20appcode\x20is\x20\x22','defaultPageSize','965NrXcVW','riskLevel','replace','9BfKcXL','verbose','435694fFNeNi','filter','⚠\x20\x20High-risk\x20operation:\x20','requiresAppCode','update','hasFormat','command','_notice','trim','none','LOVRABET_APPCODE','60dEOrQW','object','service','resolveCookie','cookie','13sneVNg','doctor','includes','defaultApp','name','../core/api-client.js','apps','Set\x20appcode\x20via\x20`','2012538tkhwfV','mergedCli','value','9976592tNpyyy','validation'];a226_0x3249=function(){return _0x411be5;};return a226_0x3249();}function hasExplicitAppCode(_0x2714c8,_0x4fdcca){const _0x56731a=a226_0x5737;return!!(stringFlag(_0x2714c8[_0x56731a(0xe2)])||stringFlag(_0x4fdcca[_0x56731a(0xe2)]));}function assertEnvAppCodeNotIgnored(_0x14595c,_0x43a02d,_0x452a1b){const _0x11185d=a226_0x5737;if(!_0x43a02d||_0x452a1b||_0x14595c===_0x43a02d['value'])return;const _0x546858=_0x14595c?_0x11185d(0xfc)+_0x14595c+'\x22.':_0x11185d(0xf5);throw CliErrors['validation'](_0x43a02d[_0x11185d(0xd8)]+'='+_0x43a02d[_0x11185d(0xde)]+_0x11185d(0xe9)+_0x546858+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x43a02d[_0x11185d(0xd8)]+'\x22.'));}export function createPipelineEnv(_0x3f2f53,_0x2ea02a,_0x579d9f=[]){const _0x524f9f=a226_0x5737;return{'rawFlags':_0x2ea02a,'args':_0x579d9f,'resolveAppCode':()=>_0x3f2f53['appCode'],'resolveCookie':()=>_0x3f2f53[_0x524f9f(0xd3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a226_0x2a8655(_0x2ea02a),'defaultFormat':_0x3f2f53[_0x524f9f(0xf3)],'defaultPageSize':_0x3f2f53[_0x524f9f(0xf0)],'defaultVerbose':_0x3f2f53[_0x524f9f(0xc3)],'apiDir':_0x3f2f53['apiDir'],'riskLevel':_0x3f2f53[_0x524f9f(0xc0)],'selectedAppName':_0x3f2f53['explicitAppName'],'mergedCli':{'defaultApp':_0x3f2f53[_0x524f9f(0xd7)],'currentApp':_0x3f2f53['currentApp'],'appCode':_0x3f2f53['appCode'],'apps':_0x3f2f53[_0x524f9f(0xda)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a226_0x22ba80(0xc5)](_0x520608=>PIPELINE_FLAG_NAMES['has'](_0x520608[a226_0x22ba80(0xd8)]))['map'](({name:_0x28c732,type:_0x2f5b35,description:_0x25ad1f})=>({'name':_0x28c732,'type':_0x2f5b35,'description':_0x25ad1f})),'formatOutput':formatOutput,'getCommandLabel'(_0x311b60){const _0x2664b1=a226_0x22ba80;return CLI_BIN_NAME+'\x20'+_0x311b60[_0x2664b1(0xd1)]+'\x20'+_0x311b60[_0x2664b1(0xca)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4d9e1b){return CliErrors['validation'](_0x4d9e1b);}},async 'prepare'(_0xbb12ed,_0x221951,_0x139f9e,_0xe57f30){const _0x3b2f02=a226_0x22ba80,_0x36140a=_0x221951[_0x3b2f02(0xfb)]||DEFAULT_API_DIR;resolveAliasToCode(_0xbb12ed,_0x139f9e,_0x36140a,_0xe57f30);const _0x4cce60=resolveCommandAuthMode(_0xbb12ed);let _0x2e06bc='';if(_0x4cce60!==_0x3b2f02(0xcd)){_0x2e06bc=_0x221951[_0x3b2f02(0xd2)]()||'';if(!_0x2e06bc){if(_0x4cce60==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0xed9483}=await import(_0x3b2f02(0xd9));_0xed9483(_0x2e06bc);}}const _0xbba68c=_0x221951[_0x3b2f02(0xe7)]()??'';if(_0xbb12ed[_0x3b2f02(0xc7)]!==![]){assertEnvAppCodeNotIgnored(_0xbba68c,resolveEnvAppCode(),hasExplicitAppCode(_0x139f9e,_0x221951['rawFlags']));if(!_0xbba68c)throw CliErrors['configMissing'](_0x3b2f02(0xdb)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x221951[_0x3b2f02(0xf1)]},'numbers':{'pagesize':_0x221951[_0x3b2f02(0xfd)]}},'extras':{'appCode':_0xbba68c,'cookie':_0x2e06bc,'apiDomain':_0x221951['resolveApiDomain'](),'apiDir':_0x36140a,'selectedAppName':_0x221951[_0x3b2f02(0xef)],'mergedCli':_0x221951[_0x3b2f02(0xdd)]}};},async 'confirmHighRisk'({env:_0xc4478d,commandLabel:_0x485fab}){const _0x444ef9=a226_0x22ba80;if(_0xc4478d['isNonInteractive'])throw CliErrors['validation'](_0x444ef9(0xe4)+_0x485fab+_0x444ef9(0xe6));await requireConfirmationPrompt({'lines':[_0x444ef9(0xc6)+_0x485fab,_0x444ef9(0xe8)],'createCancelledError':_0x171ec7=>CliErrors['cancelled'](_0x171ec7)});},async 'finalize'(){const _0x5a352d=a226_0x22ba80,{clearActiveCookie:_0x4760b1}=await import(_0x5a352d(0xd9));_0x4760b1();}};export async function runCommand(_0x5758aa,_0x5e00d7){const _0x37e550=a226_0x22ba80;assertRejectedFlags(_0x5758aa,_0x5e00d7[_0x37e550(0xfa)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5758aa)?withUpdateNotice(_0x5758aa):_0x5758aa,_0x5e00d7,runnerAdapter);}function assertRejectedFlags(_0x3bcd3d,_0x47a9da){const _0x69f262=a226_0x22ba80;for(const _0x341a6f of _0x3bcd3d['rejectedFlags']??[]){const _0x52cadd=GLOBAL_FLAGS[_0x69f262(0xea)](_0x34574b=>_0x34574b[_0x69f262(0xd8)]===_0x341a6f['name']),_0x1b4bc6=new Set([_0x341a6f[_0x69f262(0xd8)],toCamelCase(_0x341a6f['name']),_0x52cadd?.['meowKey']]),_0x2da03f=[..._0x1b4bc6]['some'](_0x4fcbae=>{if(!_0x4fcbae)return![];const _0x52931f=_0x47a9da[_0x4fcbae];return _0x52931f!==undefined&&_0x52931f!==null&&_0x52931f!==![];});if(_0x2da03f)throw CliErrors[_0x69f262(0xe0)](_0x341a6f['message'],_0x341a6f[_0x69f262(0xf2)]);}}function toCamelCase(_0x2b6b33){const _0x3edc12=a226_0x22ba80;return _0x2b6b33[_0x3edc12(0xc1)](/-([a-z])/g,(_0x2960e6,_0x7a424b)=>_0x7a424b['toUpperCase']());}function shouldAttachUpdateNotice(_0x5a0ffa){const _0x5a9003=a226_0x22ba80;if(_0x5a0ffa[_0x5a9003(0xc9)]===![])return![];return![_0x5a9003(0xc8),_0x5a9003(0xeb),_0x5a9003(0xd5)][_0x5a9003(0xd6)](_0x5a0ffa['service']);}function withUpdateNotice(_0x1de41b){return{..._0x1de41b,async 'execute'(_0xe7a748){const _0x1da4a1=a226_0x5737,_0x46433f=shouldResolveUpdateNotice(_0xe7a748)?resolveLatestUpdateNotice()[_0x1da4a1(0xee)](()=>null):Promise['resolve'](null),_0xbc9e4b=await _0x1de41b[_0x1da4a1(0xe3)](_0xe7a748);return attachUpdateNotice(_0xbc9e4b,await _0x46433f);}};}function shouldResolveUpdateNotice(_0x227ed3){const _0xa86c67=a226_0x22ba80;return _0x227ed3[_0xa86c67(0xf3)]==='pretty'&&!_0x227ed3[_0xa86c67(0xe1)];}function attachUpdateNotice(_0x2144c5,_0x51d8a8){const _0x284ca6=a226_0x22ba80;if(!_0x51d8a8||!_0x2144c5||typeof _0x2144c5!==_0x284ca6(0xd0))return _0x2144c5;const _0x308bc5=_0x2144c5,_0x5c86e2=typeof _0x308bc5[_0x284ca6(0xcb)]===_0x284ca6(0xd0)&&_0x308bc5['_notice']!==null?_0x308bc5[_0x284ca6(0xcb)]:{};return{..._0x308bc5,'_notice':{..._0x5c86e2,'update':_0x51d8a8}};}
1
+ const a227_0xd3443f=a227_0x2aee;(function(_0x3edb3e,_0x11cd5f){const _0x4254de=a227_0x2aee,_0x57ca14=_0x3edb3e();while(!![]){try{const _0x8f149a=parseInt(_0x4254de(0x175))/0x1*(-parseInt(_0x4254de(0x17d))/0x2)+-parseInt(_0x4254de(0x14c))/0x3+-parseInt(_0x4254de(0x16d))/0x4*(-parseInt(_0x4254de(0x155))/0x5)+parseInt(_0x4254de(0x178))/0x6+-parseInt(_0x4254de(0x148))/0x7*(parseInt(_0x4254de(0x14b))/0x8)+-parseInt(_0x4254de(0x15e))/0x9*(parseInt(_0x4254de(0x171))/0xa)+-parseInt(_0x4254de(0x15c))/0xb*(-parseInt(_0x4254de(0x16a))/0xc);if(_0x8f149a===_0x11cd5f)break;else _0x57ca14['push'](_0x57ca14['shift']());}catch(_0x147057){_0x57ca14['push'](_0x57ca14['shift']());}}}(a227_0x4f7c,0xd0e51));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a227_0x345670}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x18976b){const _0x4c522e=a227_0x2aee;return typeof _0x18976b===_0x4c522e(0x16f)&&_0x18976b['trim']()?_0x18976b[_0x4c522e(0x142)]():undefined;}function a227_0x4f7c(){const _0x33f545=['resolveAppCode','Set\x20appcode\x20via\x20`','trim','command','resolve','schema','cookie','validation','57617ilpypU','appCode','resolveApiDomain','168uNXSXB','4710234boXDcB','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','isNonInteractive','High-risk\x20operation\x20`','verbose','⚠\x20\x20High-risk\x20operation:\x20','_notice','defaultApp','1724430uGftjV','service','pageSize','cancelled','Current\x20resolved\x20appcode\x20is\x20\x22','map','find','110YXGnml','selectedAppName','4730247aAbbgA','message','some','defaultVerbose','authRequired','execute','value','explicitAppName','doctor','apps','resolveCookie','has','2486676bEQLJA','filter','pretty','4mEtdun','hasFormat','string','../core/api-client.js','10sZEqFH','configMissing','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','1rzRBth','format','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','7859994DCXbPx','appcode','required','rejectedFlags','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','1205940SXEZuo','rawFlags','mergedCli','\x20\x20\x20Continue?\x20[y/N]\x20','RABETBASE_APPCODE','toUpperCase','requiresAppCode','catch','hint','update','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','none','object'];a227_0x4f7c=function(){return _0x33f545;};return a227_0x4f7c();}function resolveEnvAppCode(){const _0x116ed1=a227_0x2aee,_0xbcaa71=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbcaa71)return{'name':_0x116ed1(0x137),'value':_0xbcaa71};const _0x53279d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x53279d)return{'name':'LOVRABET_APPCODE','value':_0x53279d};return undefined;}function a227_0x2aee(_0x34f40a,_0x11033e){_0x34f40a=_0x34f40a-0x135;const _0x4f7c4a=a227_0x4f7c();let _0x2aee02=_0x4f7c4a[_0x34f40a];return _0x2aee02;}function hasExplicitAppCode(_0x18c1da,_0x4790b1){const _0x2d4e8c=a227_0x2aee;return!!(stringFlag(_0x18c1da[_0x2d4e8c(0x179)])||stringFlag(_0x4790b1[_0x2d4e8c(0x179)]));}function assertEnvAppCodeNotIgnored(_0x5f4a71,_0x468425,_0x4f4a69){const _0x44fd44=a227_0x2aee;if(!_0x468425||_0x4f4a69||_0x5f4a71===_0x468425[_0x44fd44(0x164)])return;const _0x43e1ae=_0x5f4a71?_0x44fd44(0x159)+_0x5f4a71+'\x22.':_0x44fd44(0x13d);throw CliErrors[_0x44fd44(0x147)](_0x468425[_0x44fd44(0x174)]+'='+_0x468425[_0x44fd44(0x164)]+_0x44fd44(0x17c)+_0x43e1ae+'\x20'+(_0x44fd44(0x173)+_0x468425['name']+'\x22.'));}export function createPipelineEnv(_0x336b37,_0x2ed820,_0x24269b=[]){const _0x2620d0=a227_0x2aee;return{'rawFlags':_0x2ed820,'args':_0x24269b,'resolveAppCode':()=>_0x336b37[_0x2620d0(0x149)],'resolveCookie':()=>_0x336b37[_0x2620d0(0x146)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a227_0x345670(_0x2ed820),'defaultFormat':_0x336b37['format'],'defaultPageSize':_0x336b37[_0x2620d0(0x157)],'defaultVerbose':_0x336b37[_0x2620d0(0x151)],'apiDir':_0x336b37['apiDir'],'riskLevel':_0x336b37['riskLevel'],'selectedAppName':_0x336b37[_0x2620d0(0x165)],'mergedCli':{'defaultApp':_0x336b37[_0x2620d0(0x154)],'currentApp':_0x336b37['currentApp'],'appCode':_0x336b37[_0x2620d0(0x149)],'apps':_0x336b37[_0x2620d0(0x167)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a227_0xd3443f(0x16b)](_0x128ede=>PIPELINE_FLAG_NAMES[a227_0xd3443f(0x169)](_0x128ede[a227_0xd3443f(0x174)]))[a227_0xd3443f(0x15a)](({name:_0x536904,type:_0x464e2e,description:_0x5d7bae})=>({'name':_0x536904,'type':_0x464e2e,'description':_0x5d7bae})),'formatOutput':formatOutput,'getCommandLabel'(_0x6539e5){const _0x2da89f=a227_0xd3443f;return CLI_BIN_NAME+'\x20'+_0x6539e5[_0x2da89f(0x156)]+'\x20'+_0x6539e5[_0x2da89f(0x143)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3a8697){const _0x396fb9=a227_0xd3443f;return CliErrors[_0x396fb9(0x147)](_0x3a8697);}},async 'prepare'(_0x1463dc,_0x13b000,_0x4ae929,_0x17b6a3){const _0x2604f2=a227_0xd3443f,_0x24d27a=_0x13b000['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1463dc,_0x4ae929,_0x24d27a,_0x17b6a3);const _0x5edfcb=resolveCommandAuthMode(_0x1463dc);let _0x3b68e4='';if(_0x5edfcb!==_0x2604f2(0x13e)){_0x3b68e4=_0x13b000[_0x2604f2(0x168)]()||'';if(!_0x3b68e4){if(_0x5edfcb===_0x2604f2(0x17a))throw CliErrors[_0x2604f2(0x162)]();}else{const {setActiveCookie:_0x4bee06}=await import(_0x2604f2(0x170));_0x4bee06(_0x3b68e4);}}const _0x29a825=_0x13b000[_0x2604f2(0x140)]()??'';if(_0x1463dc[_0x2604f2(0x139)]!==![]){assertEnvAppCodeNotIgnored(_0x29a825,resolveEnvAppCode(),hasExplicitAppCode(_0x4ae929,_0x13b000['rawFlags']));if(!_0x29a825)throw CliErrors[_0x2604f2(0x172)](_0x2604f2(0x141)+CLI_BIN_NAME+_0x2604f2(0x14e));}return{'defaults':{'booleans':{'verbose':_0x13b000[_0x2604f2(0x161)]},'numbers':{'pagesize':_0x13b000[_0x2604f2(0x14d)]}},'extras':{'appCode':_0x29a825,'cookie':_0x3b68e4,'apiDomain':_0x13b000[_0x2604f2(0x14a)](),'apiDir':_0x24d27a,'selectedAppName':_0x13b000[_0x2604f2(0x15d)],'mergedCli':_0x13b000[_0x2604f2(0x135)]}};},async 'confirmHighRisk'({env:_0x1a2202,commandLabel:_0x4561da}){const _0x203a97=a227_0xd3443f;if(_0x1a2202[_0x203a97(0x14f)])throw CliErrors[_0x203a97(0x147)](_0x203a97(0x150)+_0x4561da+_0x203a97(0x177));await requireConfirmationPrompt({'lines':[_0x203a97(0x152)+_0x4561da,_0x203a97(0x136)],'createCancelledError':_0xf8fd44=>CliErrors[_0x203a97(0x158)](_0xf8fd44)});},async 'finalize'(){const {clearActiveCookie:_0x281d93}=await import('../core/api-client.js');_0x281d93();}};export async function runCommand(_0x5ed726,_0x3dcbf4){const _0x513d03=a227_0xd3443f;assertRejectedFlags(_0x5ed726,_0x3dcbf4[_0x513d03(0x17e)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5ed726)?withUpdateNotice(_0x5ed726):_0x5ed726,_0x3dcbf4,runnerAdapter);}function assertRejectedFlags(_0x19c107,_0x3d00bf){const _0x325826=a227_0xd3443f;for(const _0x283ce6 of _0x19c107[_0x325826(0x17b)]??[]){const _0x3691dd=GLOBAL_FLAGS[_0x325826(0x15b)](_0x5b795c=>_0x5b795c[_0x325826(0x174)]===_0x283ce6[_0x325826(0x174)]),_0x59f76e=new Set([_0x283ce6['name'],toCamelCase(_0x283ce6[_0x325826(0x174)]),_0x3691dd?.['meowKey']]),_0x3ad43d=[..._0x59f76e][_0x325826(0x160)](_0x6e01fa=>{if(!_0x6e01fa)return![];const _0x166a5b=_0x3d00bf[_0x6e01fa];return _0x166a5b!==undefined&&_0x166a5b!==null&&_0x166a5b!==![];});if(_0x3ad43d)throw CliErrors[_0x325826(0x147)](_0x283ce6[_0x325826(0x15f)],_0x283ce6[_0x325826(0x13b)]);}}function toCamelCase(_0x4524b0){const _0x1eb2f6=a227_0xd3443f;return _0x4524b0['replace'](/-([a-z])/g,(_0x135244,_0x30cc3a)=>_0x30cc3a[_0x1eb2f6(0x138)]());}function shouldAttachUpdateNotice(_0x1e5f51){const _0x3a3c1c=a227_0xd3443f;if(_0x1e5f51[_0x3a3c1c(0x16e)]===![])return![];return![_0x3a3c1c(0x13c),_0x3a3c1c(0x145),_0x3a3c1c(0x166)]['includes'](_0x1e5f51[_0x3a3c1c(0x156)]);}function withUpdateNotice(_0x34b9bd){return{..._0x34b9bd,async 'execute'(_0x1e82e8){const _0x37726b=a227_0x2aee,_0xc8fb68=shouldResolveUpdateNotice(_0x1e82e8)?resolveLatestUpdateNotice()[_0x37726b(0x13a)](()=>null):Promise[_0x37726b(0x144)](null),_0x437f7b=await _0x34b9bd[_0x37726b(0x163)](_0x1e82e8);return attachUpdateNotice(_0x437f7b,await _0xc8fb68);}};}function shouldResolveUpdateNotice(_0x5cdbd7){const _0x406cc4=a227_0xd3443f;return _0x5cdbd7[_0x406cc4(0x176)]===_0x406cc4(0x16c)&&!_0x5cdbd7['nonInteractive'];}function attachUpdateNotice(_0x434e3f,_0x20c222){const _0x254005=a227_0xd3443f;if(!_0x20c222||!_0x434e3f||typeof _0x434e3f!==_0x254005(0x13f))return _0x434e3f;const _0x1f9f4c=_0x434e3f,_0x3d45ec=typeof _0x1f9f4c[_0x254005(0x153)]===_0x254005(0x13f)&&_0x1f9f4c['_notice']!==null?_0x1f9f4c[_0x254005(0x153)]:{};return{..._0x1f9f4c,'_notice':{..._0x3d45ec,'update':_0x20c222}};}
@@ -1 +1 @@
1
- (function(_0x3624c8,_0x4e67ea){const _0x2f7736=a227_0x5f48,_0xd25622=_0x3624c8();while(!![]){try{const _0x521a7a=parseInt(_0x2f7736(0x1cd))/0x1+parseInt(_0x2f7736(0x1ca))/0x2+-parseInt(_0x2f7736(0x1cb))/0x3*(parseInt(_0x2f7736(0x1c6))/0x4)+parseInt(_0x2f7736(0x1cc))/0x5*(parseInt(_0x2f7736(0x1c9))/0x6)+-parseInt(_0x2f7736(0x1c8))/0x7+parseInt(_0x2f7736(0x1c7))/0x8*(-parseInt(_0x2f7736(0x1c5))/0x9)+parseInt(_0x2f7736(0x1c4))/0xa*(parseInt(_0x2f7736(0x1ce))/0xb);if(_0x521a7a===_0x4e67ea)break;else _0xd25622['push'](_0xd25622['shift']());}catch(_0x16dd6f){_0xd25622['push'](_0xd25622['shift']());}}}(a227_0x4bea,0x23b68));import{buildSchemaPayload as a227_0x111191}from'@lovrabet/cli-framework';function a227_0x4bea(){const _0x2889a7=['69963UlziNT','55121LbGpwf','460BmsQAQ','9ewCYQx','20xZvVXk','1604696PemwhL','124677gKMVUz','163488BMEivr','205164lgmqiz','88419KqiaUM','20eWmdsY'];a227_0x4bea=function(){return _0x2889a7;};return a227_0x4bea();}function a227_0x5f48(_0x77f541,_0x295948){_0x77f541=_0x77f541-0x1c4;const _0x4bea68=a227_0x4bea();let _0x5f4809=_0x4bea68[_0x77f541];return _0x5f4809;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x4e0f0c,findDefinition:_0x30eebe}=await import('../commands/registry.js');return a227_0x111191({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4e0f0c,'buildAllFlags':buildAllFlags,'findDefinition':_0x30eebe});}
1
+ (function(_0x20c1aa,_0x392234){const _0x3adaf3=a228_0x49c5,_0x11e8bf=_0x20c1aa();while(!![]){try{const _0x4fe2e1=-parseInt(_0x3adaf3(0x65))/0x1+parseInt(_0x3adaf3(0x6a))/0x2+-parseInt(_0x3adaf3(0x6c))/0x3+parseInt(_0x3adaf3(0x68))/0x4+-parseInt(_0x3adaf3(0x6b))/0x5+parseInt(_0x3adaf3(0x66))/0x6*(-parseInt(_0x3adaf3(0x67))/0x7)+parseInt(_0x3adaf3(0x6d))/0x8*(parseInt(_0x3adaf3(0x69))/0x9);if(_0x4fe2e1===_0x392234)break;else _0x11e8bf['push'](_0x11e8bf['shift']());}catch(_0x275385){_0x11e8bf['push'](_0x11e8bf['shift']());}}}(a228_0x2541,0xb32fe));function a228_0x2541(){const _0x798521=['12462OYigTA','4844IytcDS','3024928CmIKan','3716127xZecqH','2224610iIJTsw','1509305qBBjEJ','4248045mygtOa','56mFMQeG','869748ayZAOS'];a228_0x2541=function(){return _0x798521;};return a228_0x2541();}import{buildSchemaPayload as a228_0xc0b4a7}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a228_0x49c5(_0x426531,_0xbe1730){_0x426531=_0x426531-0x65;const _0x254184=a228_0x2541();let _0x49c5ca=_0x254184[_0x426531];return _0x49c5ca;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5b5696,findDefinition:_0x3bd529}=await import('../commands/registry.js');return a228_0xc0b4a7({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5b5696,'buildAllFlags':buildAllFlags,'findDefinition':_0x3bd529});}
@@ -1 +1 @@
1
- function a228_0x452c(_0x39d815,_0x5dd637){_0x39d815=_0x39d815-0xd3;var _0x55aba7=a228_0x55ab();var _0x452c70=_0x55aba7[_0x39d815];return _0x452c70;}(function(_0x369d65,_0x4dd4dd){var _0x92aad0=a228_0x452c,_0x44c60a=_0x369d65();while(!![]){try{var _0x5b3cb0=parseInt(_0x92aad0(0xd4))/0x1+-parseInt(_0x92aad0(0xd3))/0x2+parseInt(_0x92aad0(0xd6))/0x3+-parseInt(_0x92aad0(0xd8))/0x4+parseInt(_0x92aad0(0xd9))/0x5+parseInt(_0x92aad0(0xd7))/0x6*(parseInt(_0x92aad0(0xd5))/0x7)+-parseInt(_0x92aad0(0xda))/0x8;if(_0x5b3cb0===_0x4dd4dd)break;else _0x44c60a['push'](_0x44c60a['shift']());}catch(_0x1d3f2a){_0x44c60a['push'](_0x44c60a['shift']());}}}(a228_0x55ab,0x70023));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a228_0x55ab(){var _0x11e605=['1552472WgvXvo','1185835nGWLIk','5093360hLBjUN','507888WCFKhO','445062IvoBVO','7PAXWSe','1362957UpLVyh','3605826PoafYc'];a228_0x55ab=function(){return _0x11e605;};return a228_0x55ab();}
1
+ function a229_0x188f(_0x55c9d8,_0x5822d7){_0x55c9d8=_0x55c9d8-0xa5;var _0x533354=a229_0x5333();var _0x188f4e=_0x533354[_0x55c9d8];return _0x188f4e;}(function(_0x397ad5,_0x43d638){var _0x13b22c=a229_0x188f,_0x15ac38=_0x397ad5();while(!![]){try{var _0x5ee1bd=-parseInt(_0x13b22c(0xa6))/0x1*(parseInt(_0x13b22c(0xab))/0x2)+-parseInt(_0x13b22c(0xaa))/0x3+-parseInt(_0x13b22c(0xa5))/0x4*(parseInt(_0x13b22c(0xac))/0x5)+-parseInt(_0x13b22c(0xa9))/0x6+parseInt(_0x13b22c(0xad))/0x7+parseInt(_0x13b22c(0xa7))/0x8+parseInt(_0x13b22c(0xa8))/0x9;if(_0x5ee1bd===_0x43d638)break;else _0x15ac38['push'](_0x15ac38['shift']());}catch(_0x500ed1){_0x15ac38['push'](_0x15ac38['shift']());}}}(a229_0x5333,0x6a0fc));function a229_0x5333(){var _0x72e796=['65684Pnbycv','8370ChyqeH','340072uoAjgS','15375888WJZONK','3541122mmpfXV','356085VIwzxF','176qYGzoX','15OyrLEh','1247344wrpVSu'];a229_0x5333=function(){return _0x72e796;};return a229_0x5333();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a229_0x59bd70=a229_0x2563;(function(_0x16fbc5,_0x1de716){const _0x1269a3=a229_0x2563,_0x206826=_0x16fbc5();while(!![]){try{const _0x8d89a5=-parseInt(_0x1269a3(0x190))/0x1*(parseInt(_0x1269a3(0x18c))/0x2)+-parseInt(_0x1269a3(0x185))/0x3*(parseInt(_0x1269a3(0x188))/0x4)+-parseInt(_0x1269a3(0x189))/0x5+-parseInt(_0x1269a3(0x18e))/0x6*(-parseInt(_0x1269a3(0x18a))/0x7)+parseInt(_0x1269a3(0x191))/0x8*(parseInt(_0x1269a3(0x18f))/0x9)+parseInt(_0x1269a3(0x18b))/0xa*(-parseInt(_0x1269a3(0x187))/0xb)+parseInt(_0x1269a3(0x186))/0xc;if(_0x8d89a5===_0x1de716)break;else _0x206826['push'](_0x206826['shift']());}catch(_0x3179ad){_0x206826['push'](_0x206826['shift']());}}}(a229_0x369e,0xa0356));function a229_0x2563(_0x1009e3,_0x43795e){_0x1009e3=_0x1009e3-0x184;const _0x369e73=a229_0x369e();let _0x25635b=_0x369e73[_0x1009e3];return _0x25635b;}function a229_0x369e(){const _0x365317=['4631nRKdgp','2996FmbHLi','5530580AmGTWf','21KByjAw','15340WZKJtp','2idBhXD','67559ab','198336CsILNG','4203cpzVpn','1157670edvwYO','18912eVSWNE','2.3.10','1059vcKDVG','31524660MTvycy'];a229_0x369e=function(){return _0x365317;};return a229_0x369e();}export const VERSION=a229_0x59bd70(0x184);export const GIT_TAG='v2.3.10-beta.2';export const GIT_COMMIT=a229_0x59bd70(0x18d);export const BUILD_TIME='2026-08-01T08:26:05.205Z';
1
+ const a230_0x774011=a230_0x3ba8;(function(_0x2e31db,_0x35f75d){const _0x1b1849=a230_0x3ba8,_0x5a75c4=_0x2e31db();while(!![]){try{const _0x5a8db2=-parseInt(_0x1b1849(0xb7))/0x1+parseInt(_0x1b1849(0xb2))/0x2*(parseInt(_0x1b1849(0xaf))/0x3)+parseInt(_0x1b1849(0xb0))/0x4*(parseInt(_0x1b1849(0xae))/0x5)+-parseInt(_0x1b1849(0xb9))/0x6+parseInt(_0x1b1849(0xb6))/0x7+parseInt(_0x1b1849(0xb1))/0x8*(parseInt(_0x1b1849(0xb8))/0x9)+parseInt(_0x1b1849(0xba))/0xa*(-parseInt(_0x1b1849(0xb5))/0xb);if(_0x5a8db2===_0x35f75d)break;else _0x5a75c4['push'](_0x5a75c4['shift']());}catch(_0x96ffb1){_0x5a75c4['push'](_0x5a75c4['shift']());}}}(a230_0x2c0f,0xafcd6));export const VERSION='2.3.11';function a230_0x2c0f(){const _0x31c1a1=['6032970rjezcD','35630pjhBbL','895RNxivD','2005590aXqISq','26756HPmSMP','54320qNfgnr','4ksuCVb','ebe71c9','v2.3.11-beta.1','3223bUEbDA','6135759BHCXHF','1245698DmatpY','801WPeXQf'];a230_0x2c0f=function(){return _0x31c1a1;};return a230_0x2c0f();}function a230_0x3ba8(_0x3d4d84,_0x4be7cf){_0x3d4d84=_0x3d4d84-0xae;const _0x2c0fb7=a230_0x2c0f();let _0x3ba81d=_0x2c0fb7[_0x3d4d84];return _0x3ba81d;}export const GIT_TAG=a230_0x774011(0xb4);export const GIT_COMMIT=a230_0x774011(0xb3);export const BUILD_TIME='2026-08-03T10:53:53.205Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0xa1cc81,_0x4f488a){var _0x555535=a230_0x47f4,_0x22b170=_0xa1cc81();while(!![]){try{var _0x2de2d2=-parseInt(_0x555535(0xfa))/0x1+parseInt(_0x555535(0xf4))/0x2*(-parseInt(_0x555535(0xf1))/0x3)+-parseInt(_0x555535(0xf6))/0x4*(-parseInt(_0x555535(0xf7))/0x5)+-parseInt(_0x555535(0xf9))/0x6*(-parseInt(_0x555535(0xf0))/0x7)+-parseInt(_0x555535(0xef))/0x8*(-parseInt(_0x555535(0xec))/0x9)+parseInt(_0x555535(0xf8))/0xa+-parseInt(_0x555535(0xf2))/0xb;if(_0x2de2d2===_0x4f488a)break;else _0x22b170['push'](_0x22b170['shift']());}catch(_0x195b8d){_0x22b170['push'](_0x22b170['shift']());}}}(a230_0x478e,0xbfad7));import a230_0x200dd9 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a230_0x47f4(_0x247ca1,_0x32cccb){_0x247ca1=_0x247ca1-0xec;var _0x478e28=a230_0x478e();var _0x47f453=_0x478e28[_0x247ca1];return _0x47f453;}export function showHelp(){var _0x1fc715=a230_0x47f4;console[_0x1fc715(0xf5)](),console[_0x1fc715(0xf5)](a230_0x200dd9[_0x1fc715(0xf3)][_0x1fc715(0xee)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1fc715(0xf5)](),console[_0x1fc715(0xf5)](_0x1fc715(0xed)+a230_0x200dd9['green'][_0x1fc715(0xee)](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0x1fc715(0xf5)]();}function a230_0x478e(){var _0x1232f5=['7004990GuMjww','762JbwOFk','820113XsWYet','4005PQDGsc','\x20\x20Use\x20','bold','8616qJElhk','41594GEdkYJ','2537925lcxRHc','4660843WKXWXL','green','2DwemEF','log','3368HSiFVG','5585seZIUF'];a230_0x478e=function(){return _0x1232f5;};return a230_0x478e();}
1
+ (function(_0x161474,_0x59f27d){var _0x4bf47a=a231_0x5cd5,_0x302bbd=_0x161474();while(!![]){try{var _0x1cc981=parseInt(_0x4bf47a(0x176))/0x1+parseInt(_0x4bf47a(0x179))/0x2+parseInt(_0x4bf47a(0x17e))/0x3*(-parseInt(_0x4bf47a(0x17b))/0x4)+parseInt(_0x4bf47a(0x17d))/0x5+parseInt(_0x4bf47a(0x17f))/0x6*(-parseInt(_0x4bf47a(0x177))/0x7)+parseInt(_0x4bf47a(0x17a))/0x8+-parseInt(_0x4bf47a(0x175))/0x9;if(_0x1cc981===_0x59f27d)break;else _0x302bbd['push'](_0x302bbd['shift']());}catch(_0x151e2d){_0x302bbd['push'](_0x302bbd['shift']());}}}(a231_0x36e3,0xadd97));function a231_0x36e3(){var _0x571be1=['2030486OIwIfY','1009728gFmhUz','44jDGGqJ','\x20--help','5031590KhZdDC','247668klPoeq','6glpkqb','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','log','1151649slRflf','829002BunFBp','8600305bzPOwv','bold'];a231_0x36e3=function(){return _0x571be1;};return a231_0x36e3();}function a231_0x5cd5(_0x5da292,_0x2cd7ad){_0x5da292=_0x5da292-0x175;var _0x36e3ea=a231_0x36e3();var _0x5cd53d=_0x36e3ea[_0x5da292];return _0x5cd53d;}import a231_0x101955 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3d3d0d=a231_0x5cd5;console[_0x3d3d0d(0x182)](),console['log'](a231_0x101955['green'][_0x3d3d0d(0x178)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3d3d0d(0x182)](),console[_0x3d3d0d(0x182)](_0x3d3d0d(0x181)+a231_0x101955['green'][_0x3d3d0d(0x178)](CLI_BIN_NAME+_0x3d3d0d(0x17c))+_0x3d3d0d(0x180)),console[_0x3d3d0d(0x182)]();}
@@ -1 +1 @@
1
- (function(_0x5ef231,_0x42eb83){const _0x3e96e7=a231_0x58aa,_0x44b4c9=_0x5ef231();while(!![]){try{const _0x352d82=-parseInt(_0x3e96e7(0x178))/0x1*(-parseInt(_0x3e96e7(0x17a))/0x2)+parseInt(_0x3e96e7(0x173))/0x3+-parseInt(_0x3e96e7(0x15e))/0x4*(parseInt(_0x3e96e7(0x15c))/0x5)+parseInt(_0x3e96e7(0x175))/0x6*(-parseInt(_0x3e96e7(0x174))/0x7)+-parseInt(_0x3e96e7(0x168))/0x8+-parseInt(_0x3e96e7(0x16b))/0x9*(-parseInt(_0x3e96e7(0x16d))/0xa)+parseInt(_0x3e96e7(0x177))/0xb;if(_0x352d82===_0x42eb83)break;else _0x44b4c9['push'](_0x44b4c9['shift']());}catch(_0x3bfa92){_0x44b4c9['push'](_0x44b4c9['shift']());}}}(a231_0xc52b,0xd8ccd));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x5e0e48){const _0x17bf52=a231_0x58aa,_0x53c3fc=[];for(const [_0x285b40,_0x7ade4d]of Object['entries'](_0x5e0e48)){if(_0x7ade4d===!![]){const _0x5b73e3=_0x285b40[_0x17bf52(0x16c)](/([A-Z])/g,'-$1')['toLowerCase']();_0x53c3fc[_0x17bf52(0x15f)](_0x5b73e3);}}return _0x53c3fc;}function a231_0x58aa(_0x2c5088,_0x472126){_0x2c5088=_0x2c5088-0x157;const _0xc52bbc=a231_0xc52b();let _0x58aa9f=_0xc52bbc[_0x2c5088];return _0x58aa9f;}export function parseDynamicFlags(){const _0x50159b=a231_0x58aa,_0x469cde=[];for(let _0x407897=0x3;_0x407897<process['argv'][_0x50159b(0x165)];_0x407897++){const _0x5e029a=process[_0x50159b(0x163)][_0x407897];if(_0x5e029a&&_0x5e029a[_0x50159b(0x15a)]('--')){const _0x244692=_0x5e029a[_0x50159b(0x179)](0x2);_0x244692&&!_0x244692[_0x50159b(0x167)]('=')&&_0x469cde['push'](_0x244692);}}return _0x469cde;}export function getAllProvidedFlags(_0x8d0c26){const _0x383aaa=a231_0x58aa,_0x105c22=camelCaseFlagsToKebab(_0x8d0c26),_0x1a8723=parseDynamicFlags(),_0x47ab4d=new Set([..._0x105c22,..._0x1a8723]);return Array[_0x383aaa(0x158)](_0x47ab4d);}export function normalizeLegacyBffSaveFlags(_0x56c80b){const _0x37814c=a231_0x58aa,_0xc7f437=new Set(_0x56c80b);return _0xc7f437[_0x37814c(0x16e)]('dangerously-bff-save')&&_0xc7f437['add'](_0x37814c(0x172)),Array[_0x37814c(0x158)](_0xc7f437);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a231_0xc52b(){const _0x49685f=['cwd','enable-bff-save','1662918LBFOqt','7FtqPHh','6027576vAjpuB','log','6765924rKNblD','16487Kxastm','slice','142VfJCwZ','exit','skill','from','--help','startsWith','help','43095wJmKQG','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','260HhTUeC','push','不支持的命令:\x20','error','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','setLogPath','includes','5945480VisueY','Error:\x20Unsupported\x20command:\x20','(empty)','4482WDPiyM','replace','17190JLLzrY','has','Equivalent\x20command:\x20','\x0aAvailable\x20commands:'];a231_0xc52b=function(){return _0x49685f;};return a231_0xc52b();}export async function skillsCommand(_0x9d3441,_0x400c67,_0x14a983){const _0x4635ac=a231_0x58aa;logger[_0x4635ac(0x166)](process[_0x4635ac(0x171)]());if(_0x14a983?.[_0x4635ac(0x15b)]||_0x9d3441===_0x4635ac(0x159)){showHelp();return;}console[_0x4635ac(0x161)](_0x4635ac(0x169)+(_0x9d3441||_0x4635ac(0x16a))),console[_0x4635ac(0x176)](_0x4635ac(0x170)),console[_0x4635ac(0x176)]('\x20\x20'+CLI_BIN_NAME+_0x4635ac(0x164)),console[_0x4635ac(0x176)](''),console[_0x4635ac(0x176)](_0x4635ac(0x16f)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4635ac(0x161)](_0x4635ac(0x157),_0x4635ac(0x160)+_0x9d3441),process[_0x4635ac(0x17b)](0x1);}function showHelp(){const _0x4270ce=a231_0x58aa;console[_0x4270ce(0x176)](_0x4270ce(0x162)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4270ce(0x15d));}
1
+ (function(_0x3db4eb,_0x50f9fc){const _0x38f311=a232_0x420f,_0x1ef758=_0x3db4eb();while(!![]){try{const _0x297cb4=parseInt(_0x38f311(0xed))/0x1+parseInt(_0x38f311(0xe9))/0x2+-parseInt(_0x38f311(0xe6))/0x3*(parseInt(_0x38f311(0xee))/0x4)+parseInt(_0x38f311(0xe3))/0x5+-parseInt(_0x38f311(0xfd))/0x6+-parseInt(_0x38f311(0xe7))/0x7*(-parseInt(_0x38f311(0xf8))/0x8)+parseInt(_0x38f311(0x100))/0x9*(-parseInt(_0x38f311(0xe4))/0xa);if(_0x297cb4===_0x50f9fc)break;else _0x1ef758['push'](_0x1ef758['shift']());}catch(_0x4b90e3){_0x1ef758['push'](_0x1ef758['shift']());}}}(a232_0x582a,0xe9ee0));import{logger}from'../utils/logger.js';function a232_0x420f(_0x3228c5,_0x4b91b3){_0x3228c5=_0x3228c5-0xe3;const _0x582aba=a232_0x582a();let _0x420ffb=_0x582aba[_0x3228c5];return _0x420ffb;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x75db03){const _0x29786e=a232_0x420f,_0x43dca7=[];for(const [_0x1d8802,_0xc4a37f]of Object[_0x29786e(0xe8)](_0x75db03)){if(_0xc4a37f===!![]){const _0x439899=_0x1d8802['replace'](/([A-Z])/g,_0x29786e(0xea))['toLowerCase']();_0x43dca7[_0x29786e(0xff)](_0x439899);}}return _0x43dca7;}export function parseDynamicFlags(){const _0x3668d9=a232_0x420f,_0x35daaf=[];for(let _0xd1c1c5=0x3;_0xd1c1c5<process[_0x3668d9(0xf4)][_0x3668d9(0xf3)];_0xd1c1c5++){const _0x5eba4a=process['argv'][_0xd1c1c5];if(_0x5eba4a&&_0x5eba4a[_0x3668d9(0xfc)]('--')){const _0x17aafd=_0x5eba4a[_0x3668d9(0xe5)](0x2);_0x17aafd&&!_0x17aafd['includes']('=')&&_0x35daaf[_0x3668d9(0xff)](_0x17aafd);}}return _0x35daaf;}export function getAllProvidedFlags(_0x205a84){const _0x404607=a232_0x420f,_0x2facbc=camelCaseFlagsToKebab(_0x205a84),_0x378395=parseDynamicFlags(),_0x598c40=new Set([..._0x2facbc,..._0x378395]);return Array[_0x404607(0xf7)](_0x598c40);}export function normalizeLegacyBffSaveFlags(_0x42f854){const _0x12e53a=a232_0x420f,_0x421ca4=new Set(_0x42f854);return _0x421ca4[_0x12e53a(0xf9)]('dangerously-bff-save')&&_0x421ca4[_0x12e53a(0xeb)]('enable-bff-save'),Array[_0x12e53a(0xf7)](_0x421ca4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5913fc,_0x66ea71,_0x2bf42f){const _0x510ced=a232_0x420f;logger[_0x510ced(0xfe)](process['cwd']());if(_0x2bf42f?.[_0x510ced(0xef)]||_0x5913fc===_0x510ced(0xec)){showHelp();return;}console[_0x510ced(0xf0)](_0x510ced(0xf6)+(_0x5913fc||_0x510ced(0xf1))),console[_0x510ced(0xfa)](_0x510ced(0xf5)),console[_0x510ced(0xfa)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x510ced(0xfa)](''),console[_0x510ced(0xfa)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x510ced(0xf0)]('skill',_0x510ced(0xf2)+_0x5913fc),process['exit'](0x1);}function showHelp(){const _0x524261=a232_0x420f;console[_0x524261(0xfa)](_0x524261(0x101)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x524261(0xfb));}function a232_0x582a(){const _0xb598f4=['Error:\x20Unsupported\x20command:\x20','from','1492016rNOYLT','has','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','startsWith','8819706HoiNNu','setLogPath','push','9RyHXCS','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','7794775pBYDvD','13100570ciwsWn','slice','69VoYkyb','28ELDfOe','entries','3607432ySQFYg','-$1','add','--help','668553nvTMha','180704hZtsTn','help','error','(empty)','不支持的命令:\x20','length','argv','\x0aAvailable\x20commands:'];a232_0x582a=function(){return _0xb598f4;};return a232_0x582a();}
@@ -1 +1 @@
1
- const a232_0x7bd440=a232_0x5473;(function(_0x56edc3,_0x36c8bc){const _0x501929=a232_0x5473,_0x3eb611=_0x56edc3();while(!![]){try{const _0x6733bb=-parseInt(_0x501929(0x159))/0x1+parseInt(_0x501929(0x161))/0x2+parseInt(_0x501929(0x16d))/0x3+parseInt(_0x501929(0x16c))/0x4*(-parseInt(_0x501929(0x168))/0x5)+parseInt(_0x501929(0x163))/0x6*(-parseInt(_0x501929(0x171))/0x7)+-parseInt(_0x501929(0x15c))/0x8+parseInt(_0x501929(0x157))/0x9;if(_0x6733bb===_0x36c8bc)break;else _0x3eb611['push'](_0x3eb611['shift']());}catch(_0x4c07a5){_0x3eb611['push'](_0x3eb611['shift']());}}}(a232_0x32af,0xf2422));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a232_0x7bd440(0x169);export const RABETBASE_SKILL_SOURCE=a232_0x7bd440(0x162);export const LEGACY_RABETBASE_SKILL_SOURCE=a232_0x7bd440(0x165);export const DEFAULT_RABETBASE_SKILL_NAME=a232_0x7bd440(0x15a);function a232_0x32af(){const _0x2a324b=['lovrabet/rabetbase','74370dxRiLZ','join','lovrabet/lovrabet-skill','stderr','log','326335AJYURA','--skill','remove','unknown','68aWpWyN','5407533nibRyv','status','trim','stdout','1043ybnzrZ','inherit','skill','stdio','33252111CqCQru','pipe','863795bCUwrv','Lovrabet','toString','11750272SyTuEz','exit\x20','push','yes','npx','1568146HBMypU'];a232_0x32af=function(){return _0x2a324b;};return a232_0x32af();}function a232_0x5473(_0x4481a0,_0x2a2949){_0x4481a0=_0x4481a0-0x156;const _0x32af80=a232_0x32af();let _0x547362=_0x32af80[_0x4481a0];return _0x547362;}export function buildNpxSkillsAddArgv(_0x39c759){const _0x25af6c=a232_0x7bd440,_0x58563a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x39c759&&_0x58563a[_0x25af6c(0x15e)](NPX_SKILLS_FLAG_SKILL,_0x39c759),_0x58563a;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a232_0x7bd440(0x164)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a232_0x7bd440(0x160),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a232_0x7bd440(0x164)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x47bf6b,_0x35a814){const _0x53eb43=a232_0x7bd440;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x6662b1=_0x35a814?.[_0x53eb43(0x156)]??_0x53eb43(0x172),_0x4941dc=resolveNpmBin(_0x53eb43(0x160)),_0x242f9d=buildNpxSkillsAddArgv(_0x35a814?.[_0x53eb43(0x173)]),_0x11bdb1=[_0x53eb43(0x160),..._0x242f9d]['join']('\x20');console['log']('*\x20'+_0x11bdb1);const _0x3930d2=spawnSync(_0x4941dc,_0x242f9d,{'cwd':_0x47bf6b,'stdio':_0x6662b1,'env':process.env,'shell':![]}),_0x24729b=_0x3930d2[_0x53eb43(0x16e)];if(_0x24729b===0x0)return{'ok':!![],'status':0x0};let _0x58e16c=_0x53eb43(0x15d)+(_0x24729b??_0x53eb43(0x16b));if(_0x6662b1==='pipe'){const _0x56f0aa=_0x3930d2['stderr']?_0x3930d2[_0x53eb43(0x166)][_0x53eb43(0x15b)]()[_0x53eb43(0x16f)]():'',_0x20acd7=_0x3930d2[_0x53eb43(0x170)]?_0x3930d2['stdout']['toString']()[_0x53eb43(0x16f)]():'';if(_0x56f0aa)_0x58e16c=_0x56f0aa;else{if(_0x20acd7)_0x58e16c=_0x20acd7;}}return{'ok':![],'status':_0x24729b??null,'error':_0x58e16c};}export function runNpxSkillsRemove(_0x27caa9,_0x10ebbd,_0x25961e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x6d25fe=a232_0x7bd440;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d1498=_0x10ebbd?.['stdio']??_0x6d25fe(0x172),_0x1a693e=resolveNpmBin(_0x6d25fe(0x160)),_0x2eaa43=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x6d25fe(0x16a),_0x25961e,NPX_SKILLS_FLAG_SKILL,_0x10ebbd?.[_0x6d25fe(0x173)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x10ebbd?.[_0x6d25fe(0x15f)]?['-y']:[]],_0x2d74e0=[_0x1a693e,..._0x2eaa43][_0x6d25fe(0x164)]('\x20');console[_0x6d25fe(0x167)]('*\x20'+_0x2d74e0);const _0x5c61df=spawnSync(_0x1a693e,_0x2eaa43,{'cwd':_0x27caa9,'stdio':_0x3d1498,'env':process.env,'shell':![]}),_0x298c0d=_0x5c61df[_0x6d25fe(0x16e)];if(_0x298c0d===0x0)return{'ok':!![],'status':0x0};let _0x1268f0=_0x6d25fe(0x15d)+(_0x298c0d??_0x6d25fe(0x16b));if(_0x3d1498===_0x6d25fe(0x158)){const _0x72ae99=_0x5c61df[_0x6d25fe(0x166)]?_0x5c61df['stderr'][_0x6d25fe(0x15b)]()[_0x6d25fe(0x16f)]():'',_0x478aa4=_0x5c61df[_0x6d25fe(0x170)]?_0x5c61df[_0x6d25fe(0x170)][_0x6d25fe(0x15b)]()[_0x6d25fe(0x16f)]():'';if(_0x72ae99)_0x1268f0=_0x72ae99;else{if(_0x478aa4)_0x1268f0=_0x478aa4;}}return{'ok':![],'status':_0x298c0d??null,'error':_0x1268f0};}export function runNpxSkillsAddGlobal(_0x2154c5,_0x4f6ce9,_0x2c2b02){const _0x344cfb=a232_0x7bd440;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b5ff0=_0x2c2b02?.[_0x344cfb(0x156)]??'inherit',_0x5387ad=resolveNpmBin(_0x344cfb(0x160)),_0x1f73aa=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f6ce9,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x285d64=[_0x344cfb(0x160),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f6ce9,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x344cfb(0x164)]('\x20');console[_0x344cfb(0x167)]('*\x20'+_0x285d64);const _0xe8080b=spawnSync(_0x5387ad,_0x1f73aa,{'cwd':_0x2154c5,'stdio':_0x5b5ff0,'env':process.env,'shell':![]}),_0x12cd87=_0xe8080b[_0x344cfb(0x16e)];if(_0x12cd87===0x0)return{'ok':!![],'status':0x0};let _0x42df69='exit\x20'+(_0x12cd87??_0x344cfb(0x16b));if(_0x5b5ff0===_0x344cfb(0x158)){const _0x320d0b=_0xe8080b['stderr']?_0xe8080b[_0x344cfb(0x166)][_0x344cfb(0x15b)]()[_0x344cfb(0x16f)]():'',_0x1867d8=_0xe8080b[_0x344cfb(0x170)]?_0xe8080b[_0x344cfb(0x170)][_0x344cfb(0x15b)]()[_0x344cfb(0x16f)]():'';if(_0x320d0b)_0x42df69=_0x320d0b;else{if(_0x1867d8)_0x42df69=_0x1867d8;}}return{'ok':![],'status':_0x12cd87??null,'error':_0x42df69};}
1
+ const a233_0x63dd19=a233_0x5422;(function(_0x390105,_0x157089){const _0x1b18d3=a233_0x5422,_0x10f874=_0x390105();while(!![]){try{const _0x2a4455=parseInt(_0x1b18d3(0xf3))/0x1*(-parseInt(_0x1b18d3(0xf5))/0x2)+parseInt(_0x1b18d3(0xeb))/0x3+-parseInt(_0x1b18d3(0xfc))/0x4+-parseInt(_0x1b18d3(0xee))/0x5+parseInt(_0x1b18d3(0xe9))/0x6+-parseInt(_0x1b18d3(0xed))/0x7+parseInt(_0x1b18d3(0xff))/0x8;if(_0x2a4455===_0x157089)break;else _0x10f874['push'](_0x10f874['shift']());}catch(_0x58fa0e){_0x10f874['push'](_0x10f874['shift']());}}}(a233_0x1000,0x4b224));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a233_0x1000(){const _0x5ee0e9=['3778201MxNwVC','1137655txwapE','push','inherit','pipe','unknown','3708JVWURG','lovrabet/lovrabet-skill','156mehZCi','skill','exit\x20','yes','toString','npx','join','1676296WkOeJe','add','stderr','12365192dEaCJq','Lovrabet','--skill','log','stdout','skills','status','trim','708402HfmZxt','remove','358812XMGJVd','stdio'];a233_0x1000=function(){return _0x5ee0e9;};return a233_0x1000();}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a233_0x5422(_0x3dc682,_0x14522c){_0x3dc682=_0x3dc682-0xe2;const _0x100000=a233_0x1000();let _0x542229=_0x100000[_0x3dc682];return _0x542229;}export const NPX_SKILLS_CLI=a233_0x63dd19(0xe6);export const NPX_SKILLS_SUBCOMMAND_ADD=a233_0x63dd19(0xfd);export const NPX_SKILLS_FLAG_SKILL=a233_0x63dd19(0xe3);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a233_0x63dd19(0xf4);export const DEFAULT_RABETBASE_SKILL_NAME=a233_0x63dd19(0xe2);export function buildNpxSkillsAddArgv(_0xfa8bbc){const _0x19ec48=a233_0x63dd19,_0x2d4660=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xfa8bbc&&_0x2d4660[_0x19ec48(0xef)](NPX_SKILLS_FLAG_SKILL,_0xfa8bbc),_0x2d4660;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a233_0x63dd19(0xfa),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a233_0x63dd19(0xfb)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x9b4e46,_0x4b5e68){const _0x2aab18=a233_0x63dd19;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x39bbbb=_0x4b5e68?.[_0x2aab18(0xec)]??_0x2aab18(0xf0),_0xba080a=resolveNpmBin(_0x2aab18(0xfa)),_0x1ba2c5=buildNpxSkillsAddArgv(_0x4b5e68?.[_0x2aab18(0xf6)]),_0x120953=[_0x2aab18(0xfa),..._0x1ba2c5][_0x2aab18(0xfb)]('\x20');console[_0x2aab18(0xe4)]('*\x20'+_0x120953);const _0x2e4566=spawnSync(_0xba080a,_0x1ba2c5,{'cwd':_0x9b4e46,'stdio':_0x39bbbb,'env':process.env,'shell':![]}),_0x1e2f98=_0x2e4566[_0x2aab18(0xe7)];if(_0x1e2f98===0x0)return{'ok':!![],'status':0x0};let _0x4d71f9='exit\x20'+(_0x1e2f98??_0x2aab18(0xf2));if(_0x39bbbb===_0x2aab18(0xf1)){const _0x436ac8=_0x2e4566[_0x2aab18(0xfe)]?_0x2e4566[_0x2aab18(0xfe)][_0x2aab18(0xf9)]()['trim']():'',_0x1a55fe=_0x2e4566[_0x2aab18(0xe5)]?_0x2e4566[_0x2aab18(0xe5)]['toString']()[_0x2aab18(0xe8)]():'';if(_0x436ac8)_0x4d71f9=_0x436ac8;else{if(_0x1a55fe)_0x4d71f9=_0x1a55fe;}}return{'ok':![],'status':_0x1e2f98??null,'error':_0x4d71f9};}export function runNpxSkillsRemove(_0x276e29,_0xffd4e9,_0x5e4da7=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5a7ec6=a233_0x63dd19;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53eb1b=_0xffd4e9?.[_0x5a7ec6(0xec)]??'inherit',_0x38c08f=resolveNpmBin(_0x5a7ec6(0xfa)),_0x14f463=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5a7ec6(0xea),_0x5e4da7,NPX_SKILLS_FLAG_SKILL,_0xffd4e9?.[_0x5a7ec6(0xf6)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xffd4e9?.[_0x5a7ec6(0xf8)]?['-y']:[]],_0x4a6551=[_0x38c08f,..._0x14f463][_0x5a7ec6(0xfb)]('\x20');console[_0x5a7ec6(0xe4)]('*\x20'+_0x4a6551);const _0x5cd315=spawnSync(_0x38c08f,_0x14f463,{'cwd':_0x276e29,'stdio':_0x53eb1b,'env':process.env,'shell':![]}),_0x44becb=_0x5cd315[_0x5a7ec6(0xe7)];if(_0x44becb===0x0)return{'ok':!![],'status':0x0};let _0x5a75f4=_0x5a7ec6(0xf7)+(_0x44becb??_0x5a7ec6(0xf2));if(_0x53eb1b===_0x5a7ec6(0xf1)){const _0x4dfbf6=_0x5cd315[_0x5a7ec6(0xfe)]?_0x5cd315['stderr'][_0x5a7ec6(0xf9)]()['trim']():'',_0x56f5c4=_0x5cd315[_0x5a7ec6(0xe5)]?_0x5cd315[_0x5a7ec6(0xe5)][_0x5a7ec6(0xf9)]()[_0x5a7ec6(0xe8)]():'';if(_0x4dfbf6)_0x5a75f4=_0x4dfbf6;else{if(_0x56f5c4)_0x5a75f4=_0x56f5c4;}}return{'ok':![],'status':_0x44becb??null,'error':_0x5a75f4};}export function runNpxSkillsAddGlobal(_0x559029,_0x3631b3,_0xd83f4){const _0x214493=a233_0x63dd19;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a08c4=_0xd83f4?.[_0x214493(0xec)]??_0x214493(0xf0),_0x383832=resolveNpmBin('npx'),_0x1f4b0e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3631b3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x34b860=[_0x214493(0xfa),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3631b3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x214493(0xfb)]('\x20');console[_0x214493(0xe4)]('*\x20'+_0x34b860);const _0x533c0d=spawnSync(_0x383832,_0x1f4b0e,{'cwd':_0x559029,'stdio':_0x4a08c4,'env':process.env,'shell':![]}),_0x151f01=_0x533c0d['status'];if(_0x151f01===0x0)return{'ok':!![],'status':0x0};let _0x4e51b9=_0x214493(0xf7)+(_0x151f01??_0x214493(0xf2));if(_0x4a08c4==='pipe'){const _0x1cc04d=_0x533c0d[_0x214493(0xfe)]?_0x533c0d['stderr'][_0x214493(0xf9)]()[_0x214493(0xe8)]():'',_0x4c2d12=_0x533c0d[_0x214493(0xe5)]?_0x533c0d['stdout'][_0x214493(0xf9)]()[_0x214493(0xe8)]():'';if(_0x1cc04d)_0x4e51b9=_0x1cc04d;else{if(_0x4c2d12)_0x4e51b9=_0x4c2d12;}}return{'ok':![],'status':_0x151f01??null,'error':_0x4e51b9};}
@@ -1 +1 @@
1
- (function(_0x2bde5d,_0x3d382e){const _0x3b6daf=a233_0x49fd,_0x2fce8b=_0x2bde5d();while(!![]){try{const _0x449481=-parseInt(_0x3b6daf(0x1bf))/0x1+parseInt(_0x3b6daf(0x1bd))/0x2*(parseInt(_0x3b6daf(0x1b3))/0x3)+-parseInt(_0x3b6daf(0x1c3))/0x4+-parseInt(_0x3b6daf(0x1b6))/0x5*(parseInt(_0x3b6daf(0x1ba))/0x6)+parseInt(_0x3b6daf(0x1b8))/0x7*(parseInt(_0x3b6daf(0x1bb))/0x8)+-parseInt(_0x3b6daf(0x1b7))/0x9*(-parseInt(_0x3b6daf(0x1c2))/0xa)+parseInt(_0x3b6daf(0x1c8))/0xb*(parseInt(_0x3b6daf(0x1c0))/0xc);if(_0x449481===_0x3d382e)break;else _0x2fce8b['push'](_0x2fce8b['shift']());}catch(_0x2391f3){_0x2fce8b['push'](_0x2fce8b['shift']());}}}(a233_0x1d88,0x2d336));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4ecd37){const _0x588317=a233_0x49fd;return SENSITIVE_PATTERNS[_0x588317(0x1be)](_0x9a6fcc=>_0x9a6fcc[_0x588317(0x1bc)](_0x4ecd37));}function sanitizeFlags(_0x186708){const _0x244857=a233_0x49fd,_0x1c3cff={};for(const [_0x2600e2,_0x358006]of Object[_0x244857(0x1c1)](_0x186708)){isSensitiveKey(_0x2600e2)?_0x1c3cff[_0x2600e2]=_0x358006!=null&&_0x358006!==''?_0x244857(0x1c6):_0x358006:_0x1c3cff[_0x2600e2]=_0x358006;}return _0x1c3cff;}export async function reportCommandTrace(_0x1b0cd8){const _0x21b7e7=a233_0x49fd;try{const _0x209088=sanitizeFlags(_0x1b0cd8['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1b0cd8[_0x21b7e7(0x1c7)],'command.name':_0x1b0cd8[_0x21b7e7(0x1c5)],'command.flags':JSON[_0x21b7e7(0x1b9)](_0x209088),..._0x1b0cd8[_0x21b7e7(0x1b5)]!=null?{'command.duration_ms':_0x1b0cd8['durationMs']}:{},..._0x1b0cd8['error']?{'command.error':_0x1b0cd8['error']instanceof Error?_0x1b0cd8[_0x21b7e7(0x1b4)][_0x21b7e7(0x1c4)]:String(_0x1b0cd8[_0x21b7e7(0x1b4)])}:{}}});}catch{}}function a233_0x49fd(_0x2682b5,_0x332c3e){_0x2682b5=_0x2682b5-0x1b3;const _0x1d882c=a233_0x1d88();let _0x49fdd1=_0x1d882c[_0x2682b5];return _0x49fdd1;}function a233_0x1d88(){const _0x558af0=['service','4609axbUNm','415578wxodFr','error','durationMs','13605RODDxD','234hziLuJ','153251xNulvc','stringify','102lPFVQN','16yEsAEk','test','2thTUrL','some','282405yPogNg','16932ILWMtV','entries','2230OrXNbw','1062060YttDQN','message','command','[REDACTED]'];a233_0x1d88=function(){return _0x558af0;};return a233_0x1d88();}
1
+ function a234_0x5034(_0x3d3c71,_0x571457){_0x3d3c71=_0x3d3c71-0xcc;const _0x261317=a234_0x2613();let _0x5034a1=_0x261317[_0x3d3c71];return _0x5034a1;}(function(_0x30d180,_0x11855c){const _0x414a32=a234_0x5034,_0x124b1a=_0x30d180();while(!![]){try{const _0x560db7=parseInt(_0x414a32(0xd1))/0x1+parseInt(_0x414a32(0xd6))/0x2*(-parseInt(_0x414a32(0xd4))/0x3)+parseInt(_0x414a32(0xdb))/0x4+-parseInt(_0x414a32(0xda))/0x5*(parseInt(_0x414a32(0xd2))/0x6)+parseInt(_0x414a32(0xd0))/0x7*(parseInt(_0x414a32(0xd8))/0x8)+-parseInt(_0x414a32(0xcc))/0x9+parseInt(_0x414a32(0xdc))/0xa;if(_0x560db7===_0x11855c)break;else _0x124b1a['push'](_0x124b1a['shift']());}catch(_0x5193ee){_0x124b1a['push'](_0x124b1a['shift']());}}}(a234_0x2613,0xc87d4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a234_0x2613(){const _0x16d5da=['171505LBqVWp','6139100NJgNPc','6946700gPFjQa','rabetbase.command','error','some','4464810ZnrMgj','command','service','durationMs','172095QNpTCz','826853CIzSjQ','234RdBfqI','[REDACTED]','3yUMEPw','stringify','1097550DGTICr','flags','48nedSFQ','entries'];a234_0x2613=function(){return _0x16d5da;};return a234_0x2613();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x3d5099){const _0x12e4ac=a234_0x5034;return SENSITIVE_PATTERNS[_0x12e4ac(0xdf)](_0x5c4e4c=>_0x5c4e4c['test'](_0x3d5099));}function sanitizeFlags(_0x1b6157){const _0x49b653=a234_0x5034,_0x242ca0={};for(const [_0x129486,_0x51b5b9]of Object[_0x49b653(0xd9)](_0x1b6157)){isSensitiveKey(_0x129486)?_0x242ca0[_0x129486]=_0x51b5b9!=null&&_0x51b5b9!==''?_0x49b653(0xd3):_0x51b5b9:_0x242ca0[_0x129486]=_0x51b5b9;}return _0x242ca0;}export async function reportCommandTrace(_0x4ef406){const _0x1e0be1=a234_0x5034;try{const _0x489521=sanitizeFlags(_0x4ef406[_0x1e0be1(0xd7)]);await sendCliTraceLog({'spanName':_0x1e0be1(0xdd),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4ef406[_0x1e0be1(0xce)],'command.name':_0x4ef406[_0x1e0be1(0xcd)],'command.flags':JSON[_0x1e0be1(0xd5)](_0x489521),..._0x4ef406[_0x1e0be1(0xcf)]!=null?{'command.duration_ms':_0x4ef406[_0x1e0be1(0xcf)]}:{},..._0x4ef406[_0x1e0be1(0xde)]?{'command.error':_0x4ef406[_0x1e0be1(0xde)]instanceof Error?_0x4ef406[_0x1e0be1(0xde)]['message']:String(_0x4ef406[_0x1e0be1(0xde)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a234_0x8da9(_0x3d9fa3,_0x286b){_0x3d9fa3=_0x3d9fa3-0x97;var _0x1e5d68=a234_0x1e5d();var _0x8da940=_0x1e5d68[_0x3d9fa3];return _0x8da940;}(function(_0x51243c,_0x5135df){var _0x2bd9af=a234_0x8da9,_0x5c8116=_0x51243c();while(!![]){try{var _0xa96e56=parseInt(_0x2bd9af(0x9b))/0x1+-parseInt(_0x2bd9af(0x97))/0x2+parseInt(_0x2bd9af(0x9e))/0x3+parseInt(_0x2bd9af(0xa1))/0x4*(-parseInt(_0x2bd9af(0x99))/0x5)+-parseInt(_0x2bd9af(0xa3))/0x6+-parseInt(_0x2bd9af(0xa2))/0x7*(-parseInt(_0x2bd9af(0x9d))/0x8)+parseInt(_0x2bd9af(0x9a))/0x9;if(_0xa96e56===_0x5135df)break;else _0x5c8116['push'](_0x5c8116['shift']());}catch(_0x18eacc){_0x5c8116['push'](_0x5c8116['shift']());}}}(a234_0x1e5d,0x91746));function a234_0x1e5d(){var _0xeca649=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','44xpxBzg','6171851UcHNBs','5567652ggekCD','701338SCKKSy','cli.help','529855HZkoUy','9047124QHcvdq','328520hufryQ','error','8owmiET','2473875qpQUkL','service'];a234_0x1e5d=function(){return _0xeca649;};return a234_0x1e5d();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5b8e5f,_0x1c93ca){var _0x41bbf0=a234_0x8da9;try{await sendCliTraceLog({'spanName':_0x41bbf0(0x98),'logData':{'rabetbase.help.kind':_0x5b8e5f,..._0x1c93ca?.[_0x41bbf0(0x9f)]&&{'rabetbase.help.service':_0x1c93ca[_0x41bbf0(0x9f)]}}});}catch(_0x49dd4a){console[_0x41bbf0(0x9c)](_0x41bbf0(0xa0),_0x49dd4a);}}
1
+ (function(_0x2ae6c2,_0x440ae5){var _0x4b9381=a235_0x582b,_0x3aedcc=_0x2ae6c2();while(!![]){try{var _0x3a307e=parseInt(_0x4b9381(0x19f))/0x1*(-parseInt(_0x4b9381(0x1a9))/0x2)+parseInt(_0x4b9381(0x1ac))/0x3*(parseInt(_0x4b9381(0x1a1))/0x4)+parseInt(_0x4b9381(0x1a2))/0x5+-parseInt(_0x4b9381(0x1a3))/0x6*(parseInt(_0x4b9381(0x1a0))/0x7)+-parseInt(_0x4b9381(0x1a8))/0x8*(parseInt(_0x4b9381(0x1aa))/0x9)+-parseInt(_0x4b9381(0x1a6))/0xa*(parseInt(_0x4b9381(0x19e))/0xb)+parseInt(_0x4b9381(0x1a4))/0xc;if(_0x3a307e===_0x440ae5)break;else _0x3aedcc['push'](_0x3aedcc['shift']());}catch(_0x5cb83d){_0x3aedcc['push'](_0x3aedcc['shift']());}}}(a235_0x1615,0x50b9e));function a235_0x582b(_0x18ac1d,_0x48b3f1){_0x18ac1d=_0x18ac1d-0x19d;var _0x1615f3=a235_0x1615();var _0x582b75=_0x1615f3[_0x18ac1d];return _0x582b75;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x576910,_0x5e9017){var _0x3f7db9=a235_0x582b;try{await sendCliTraceLog({'spanName':_0x3f7db9(0x1a5),'logData':{'rabetbase.help.kind':_0x576910,..._0x5e9017?.[_0x3f7db9(0x1ab)]&&{'rabetbase.help.service':_0x5e9017[_0x3f7db9(0x1ab)]}}});}catch(_0x10ba1f){console[_0x3f7db9(0x19d)](_0x3f7db9(0x1a7),_0x10ba1f);}}function a235_0x1615(){var _0x43be9f=['40phsVRT','Failed\x20to\x20report\x20CLI\x20help\x20trace:','138872IBzHYo','2bhQloc','72sxkhbq','service','223341BSCJBr','error','1556533XpyXAF','41023FQwkhd','4188191RnVuVF','4rbAZXQ','483545BWeZos','6BynLkU','18044616RGRrFI','cli.help'];a235_0x1615=function(){return _0x43be9f;};return a235_0x1615();}
@@ -1 +1 @@
1
- (function(_0xe5b819,_0x111478){const _0x121a94=a235_0xa275,_0x24d976=_0xe5b819();while(!![]){try{const _0x3a6925=parseInt(_0x121a94(0x1a8))/0x1+parseInt(_0x121a94(0x1ab))/0x2*(-parseInt(_0x121a94(0x1a6))/0x3)+parseInt(_0x121a94(0x1b5))/0x4*(-parseInt(_0x121a94(0x1aa))/0x5)+-parseInt(_0x121a94(0x1a1))/0x6*(parseInt(_0x121a94(0x1b3))/0x7)+-parseInt(_0x121a94(0x1a3))/0x8*(-parseInt(_0x121a94(0x1a4))/0x9)+parseInt(_0x121a94(0x1a9))/0xa+-parseInt(_0x121a94(0x1ad))/0xb*(parseInt(_0x121a94(0x1b2))/0xc);if(_0x3a6925===_0x111478)break;else _0x24d976['push'](_0x24d976['shift']());}catch(_0x1cafe9){_0x24d976['push'](_0x24d976['shift']());}}}(a235_0x2283,0x1e02b));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a235_0xa275(_0x210320,_0x33c154){_0x210320=_0x210320-0x1a1;const _0x22834e=a235_0x2283();let _0xa275d3=_0x22834e[_0x210320];return _0xa275d3;}function a235_0x2283(){const _0x60bded=['production','email','unknown','username','315996JrnxjD','35fIsdkW','nickname','630516ibeKWQ','73878CJHbUZ','tenant','1400XvWeAO','6516KSbbhS','user','9rapCkd','daily','120771bJPHeQ','1489900WatlZi','5TXlXqy','18674chQMmd','tenant_code','11osQEiQ'];a235_0x2283=function(){return _0x60bded;};return a235_0x2283();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x54f6c5=a235_0xa275,_0x2c0566=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xe114b0=_0x2c0566?.[_0x54f6c5(0x1a5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x54f6c5(0x1b0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x54f6c5(0x1a7):_0x54f6c5(0x1ae))}),setUserContext({'id':_0xe114b0?.['id'],'username':_0xe114b0?.[_0x54f6c5(0x1b1)],'nickname':_0xe114b0?.[_0x54f6c5(0x1b4)],'email':_0xe114b0?.[_0x54f6c5(0x1af)],'tenantCode':_0xe114b0?.[_0x54f6c5(0x1a2)][_0x54f6c5(0x1ac)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2c0566;}
1
+ (function(_0x4609e3,_0x469f6b){const _0x45db32=a236_0x493b,_0x1c6bb7=_0x4609e3();while(!![]){try{const _0x4c96c3=-parseInt(_0x45db32(0xce))/0x1+-parseInt(_0x45db32(0xd7))/0x2*(-parseInt(_0x45db32(0xd4))/0x3)+-parseInt(_0x45db32(0xd1))/0x4+-parseInt(_0x45db32(0xcb))/0x5+-parseInt(_0x45db32(0xd8))/0x6*(parseInt(_0x45db32(0xcf))/0x7)+-parseInt(_0x45db32(0xcd))/0x8+parseInt(_0x45db32(0xd3))/0x9;if(_0x4c96c3===_0x469f6b)break;else _0x1c6bb7['push'](_0x1c6bb7['shift']());}catch(_0x2140d8){_0x1c6bb7['push'](_0x1c6bb7['shift']());}}}(a236_0x55cd,0xd3bff));function a236_0x493b(_0xcdb7b9,_0x34dc87){_0xcdb7b9=_0xcdb7b9-0xc9;const _0x55cd8d=a236_0x55cd();let _0x493b43=_0x55cd8d[_0xcdb7b9];return _0x493b43;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a236_0x55cd(){const _0x4a8e83=['unknown','nickname','276rqofQZ','6kaFmGT','tenant_code','daily','6666335IBcDjK','production','7981616wblJLc','1611057aZZpvi','9567215JZRCsj','email','2479524PBZMnR','tenant','45652473WwXwAy','37467iYqhcz'];a236_0x55cd=function(){return _0x4a8e83;};return a236_0x55cd();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x33c113=a236_0x493b,_0xfddeb8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x54030b=_0xfddeb8?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x33c113(0xd5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x33c113(0xca):_0x33c113(0xcc))}),setUserContext({'id':_0x54030b?.['id'],'username':_0x54030b?.['username'],'nickname':_0x54030b?.[_0x33c113(0xd6)],'email':_0x54030b?.[_0x33c113(0xd0)],'tenantCode':_0x54030b?.[_0x33c113(0xd2)][_0x33c113(0xc9)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xfddeb8;}
@@ -1 +1 @@
1
- function a236_0x2707(){const _0x157f90=['SIGTERM','4073388RSaZuv','then','4556259jSqSOZ','once','beforeExit','20CzDTjO','6MmdrXP','1418781klxRZq','SIGINT','exit','24wTvYyF','20BAMuXh','3349122YjBiRI','19316275dtFWUQ','413899XIEmAR','1030254IKkYAr'];a236_0x2707=function(){return _0x157f90;};return a236_0x2707();}(function(_0x17c7b2,_0x1e6905){const _0x2951bd=a236_0x2a96,_0x208736=_0x17c7b2();while(!![]){try{const _0x363d6f=parseInt(_0x2951bd(0x1be))/0x1*(-parseInt(_0x2951bd(0x1c7))/0x2)+-parseInt(_0x2951bd(0x1cd))/0x3+-parseInt(_0x2951bd(0x1c1))/0x4+-parseInt(_0x2951bd(0x1c6))/0x5*(-parseInt(_0x2951bd(0x1bf))/0x6)+parseInt(_0x2951bd(0x1c8))/0x7*(parseInt(_0x2951bd(0x1cb))/0x8)+-parseInt(_0x2951bd(0x1c3))/0x9+-parseInt(_0x2951bd(0x1cc))/0xa*(-parseInt(_0x2951bd(0x1bd))/0xb);if(_0x363d6f===_0x1e6905)break;else _0x208736['push'](_0x208736['shift']());}catch(_0x57f24d){_0x208736['push'](_0x208736['shift']());}}}(a236_0x2707,0xe1a6a));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a236_0x2a96(_0x4ddb6c,_0x583f54){_0x4ddb6c=_0x4ddb6c-0x1bd;const _0x270772=a236_0x2707();let _0x2a9644=_0x270772[_0x4ddb6c];return _0x2a9644;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x503267=a236_0x2a96;process[_0x503267(0x1c4)](_0x503267(0x1c5),()=>{void flushOtelNodeIfUsed();});const _0xcfd67d=()=>{const _0x8342ba=_0x503267;void flushOtelNodeIfUsed()[_0x8342ba(0x1c2)](()=>process[_0x8342ba(0x1ca)](0x0));};process[_0x503267(0x1c4)](_0x503267(0x1c9),_0xcfd67d),process['once'](_0x503267(0x1c0),_0xcfd67d);}export async function exitWithOtelShutdown(_0x309783){const _0x58bd48=a236_0x2a96;await flushOtelNodeIfUsed(),process[_0x58bd48(0x1ca)](_0x309783);}
1
+ (function(_0x374199,_0x3d6dab){const _0x4fb9c4=a237_0x71a3,_0x1a80b0=_0x374199();while(!![]){try{const _0x4b46a0=parseInt(_0x4fb9c4(0xd7))/0x1*(parseInt(_0x4fb9c4(0xc9))/0x2)+parseInt(_0x4fb9c4(0xcd))/0x3*(-parseInt(_0x4fb9c4(0xd8))/0x4)+-parseInt(_0x4fb9c4(0xca))/0x5*(-parseInt(_0x4fb9c4(0xd2))/0x6)+-parseInt(_0x4fb9c4(0xcb))/0x7+parseInt(_0x4fb9c4(0xcf))/0x8*(parseInt(_0x4fb9c4(0xd1))/0x9)+-parseInt(_0x4fb9c4(0xd0))/0xa*(-parseInt(_0x4fb9c4(0xcc))/0xb)+-parseInt(_0x4fb9c4(0xd3))/0xc;if(_0x4b46a0===_0x3d6dab)break;else _0x1a80b0['push'](_0x1a80b0['shift']());}catch(_0x174635){_0x1a80b0['push'](_0x1a80b0['shift']());}}}(a237_0x5a40,0x1b3fa));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a237_0x71a3(_0x97dd76,_0xb18dd2){_0x97dd76=_0x97dd76-0xc9;const _0x5a40c2=a237_0x5a40();let _0x71a31f=_0x5a40c2[_0x97dd76];return _0x71a31f;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3deaa1=a237_0x71a3;process[_0x3deaa1(0xce)](_0x3deaa1(0xd9),()=>{void flushOtelNodeIfUsed();});const _0x2eb801=()=>{const _0x2a7ea5=_0x3deaa1;void flushOtelNodeIfUsed()[_0x2a7ea5(0xd6)](()=>process[_0x2a7ea5(0xd4)](0x0));};process['once'](_0x3deaa1(0xd5),_0x2eb801),process[_0x3deaa1(0xce)]('SIGTERM',_0x2eb801);}export async function exitWithOtelShutdown(_0x41241d){const _0x1268f6=a237_0x71a3;await flushOtelNodeIfUsed(),process[_0x1268f6(0xd4)](_0x41241d);}function a237_0x5a40(){const _0x380b7a=['900132RwMjgA','exit','SIGINT','then','154931eIHUQM','111732hajjge','beforeExit','2TLkIEJ','85JFTHqF','962031OHVUGV','4169dYlWin','18IxCtHr','once','8uPXNax','2490PiRjPw','1965267Psgtuz','8466gdzBdI'];a237_0x5a40=function(){return _0x380b7a;};return a237_0x5a40();}
@@ -1 +1 @@
1
- const a237_0xb0a551=a237_0x5abd;function a237_0x3437(){const _0x5c8542=['96684dDvOgm','7Vonipg','traceparent','traceName','809224qHjFWW','1330735qCAPTn','1436274ADHpGW','192769VVkxcs','rabetbase-cli','1180176faueIV','353166xUJCWl','version','logData','manual'];a237_0x3437=function(){return _0x5c8542;};return a237_0x3437();}(function(_0xbde007,_0x26d1ec){const _0x322914=a237_0x5abd,_0x226db6=_0xbde007();while(!![]){try{const _0x32ad0f=parseInt(_0x322914(0x93))/0x1+-parseInt(_0x322914(0x9a))/0x2+parseInt(_0x322914(0x96))/0x3+parseInt(_0x322914(0x95))/0x4+-parseInt(_0x322914(0x9f))/0x5+parseInt(_0x322914(0xa0))/0x6*(-parseInt(_0x322914(0x9b))/0x7)+parseInt(_0x322914(0x9e))/0x8;if(_0x32ad0f===_0x26d1ec)break;else _0x226db6['push'](_0x226db6['shift']());}catch(_0x4815c8){_0x226db6['push'](_0x226db6['shift']());}}}(a237_0x3437,0x254f4));function a237_0x5abd(_0x286fc8,_0x25c3a3){_0x286fc8=_0x286fc8-0x93;const _0x3437f9=a237_0x3437();let _0x5abddc=_0x3437f9[_0x286fc8];return _0x5abddc;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a237_0xb0a551(0x94);export async function sendCliTraceLog(_0x258e2f){const _0x9fa74d=a237_0xb0a551;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x258e2f[_0x9fa74d(0x9d)]??DEFAULT_TRACE_NAME,'version':_0x258e2f[_0x9fa74d(0x97)]??getCliVersion(),'spanName':_0x258e2f['spanName'],'eventType':_0x9fa74d(0x99),'logData':_0x258e2f[_0x9fa74d(0x98)],..._0x258e2f[_0x9fa74d(0x9c)]&&{'traceparent':_0x258e2f[_0x9fa74d(0x9c)]}});}
1
+ (function(_0x55b071,_0x5f2449){const _0x2a24a0=a238_0x5cb1,_0x2e828c=_0x55b071();while(!![]){try{const _0x35d0bc=-parseInt(_0x2a24a0(0x10a))/0x1+parseInt(_0x2a24a0(0x110))/0x2*(-parseInt(_0x2a24a0(0x10e))/0x3)+-parseInt(_0x2a24a0(0x109))/0x4*(parseInt(_0x2a24a0(0x10b))/0x5)+-parseInt(_0x2a24a0(0x10f))/0x6*(-parseInt(_0x2a24a0(0x102))/0x7)+-parseInt(_0x2a24a0(0x106))/0x8+parseInt(_0x2a24a0(0x10c))/0x9*(parseInt(_0x2a24a0(0x108))/0xa)+parseInt(_0x2a24a0(0x105))/0xb;if(_0x35d0bc===_0x5f2449)break;else _0x2e828c['push'](_0x2e828c['shift']());}catch(_0x5964d7){_0x2e828c['push'](_0x2e828c['shift']());}}}(a238_0x34c2,0x2785a));import{sendTraceLog}from'@lovrabet/otel-logger';function a238_0x34c2(){const _0x4ee7cc=['traceparent','1177370yyBvQB','164eYoJfx','180575bjPpjh','36215JETxal','18FPdWCA','version','179358lDlYNV','17586ZSKMDd','4UmqvzN','traceName','595oFTvFx','spanName','manual','3261929TUpWmj','177248YMsFHl'];a238_0x34c2=function(){return _0x4ee7cc;};return a238_0x34c2();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a238_0x5cb1(_0x4d32a8,_0x39db0a){_0x4d32a8=_0x4d32a8-0x102;const _0x34c24e=a238_0x34c2();let _0x5cb11c=_0x34c24e[_0x4d32a8];return _0x5cb11c;}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5e7dec){const _0x353f02=a238_0x5cb1;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5e7dec[_0x353f02(0x111)]??DEFAULT_TRACE_NAME,'version':_0x5e7dec[_0x353f02(0x10d)]??getCliVersion(),'spanName':_0x5e7dec[_0x353f02(0x103)],'eventType':_0x353f02(0x104),'logData':_0x5e7dec['logData'],..._0x5e7dec[_0x353f02(0x107)]&&{'traceparent':_0x5e7dec[_0x353f02(0x107)]}});}
@@ -1 +1 @@
1
- function a238_0x121d(_0x41308b,_0x577fce){_0x41308b=_0x41308b-0xb7;const _0xad2238=a238_0xad22();let _0x121d7c=_0xad2238[_0x41308b];return _0x121d7c;}function a238_0xad22(){const _0x12dd24=['24gZiwcr','2407544UZuIUW','307ELQYNj','description','46749070NgCAYS','issue.log.collect','join','225198VZJLTp','title','13638834xBAiCO','platform-issue-log-collect','sanitize','543414mGRLrA','2510bAGoNe','originalBytes','redactionCount','1118551GTZmnf','205UTVYsV'];a238_0xad22=function(){return _0x12dd24;};return a238_0xad22();}const a238_0x51d394=a238_0x121d;(function(_0x10b095,_0x5b31fe){const _0x57b901=a238_0x121d,_0x4a5700=_0x10b095();while(!![]){try{const _0x5eb74b=-parseInt(_0x57b901(0xba))/0x1*(parseInt(_0x57b901(0xc5))/0x2)+-parseInt(_0x57b901(0xc4))/0x3+-parseInt(_0x57b901(0xb9))/0x4+-parseInt(_0x57b901(0xb7))/0x5*(parseInt(_0x57b901(0xbf))/0x6)+parseInt(_0x57b901(0xc8))/0x7*(parseInt(_0x57b901(0xb8))/0x8)+-parseInt(_0x57b901(0xc1))/0x9+parseInt(_0x57b901(0xbc))/0xa;if(_0x5eb74b===_0x5b31fe)break;else _0x4a5700['push'](_0x4a5700['shift']());}catch(_0x21dcd4){_0x4a5700['push'](_0x4a5700['shift']());}}}(a238_0xad22,0xe3772));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a238_0x51d394(0xc2);export const PLATFORM_ISSUE_SPAN_NAME=a238_0x51d394(0xbd);export async function sendPlatformIssueCollectLog(_0x4ea141){const _0x454ca0=a238_0x51d394;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4ea141[_0x454ca0(0xc0)],'issue.description':_0x4ea141[_0x454ca0(0xbb)],..._0x4ea141[_0x454ca0(0xc3)]?{'issue.description_original_bytes':_0x4ea141[_0x454ca0(0xc3)][_0x454ca0(0xc6)],'issue.description_truncated':_0x4ea141[_0x454ca0(0xc3)]['truncated'],'issue.description_redactions':_0x4ea141[_0x454ca0(0xc3)][_0x454ca0(0xc7)],'issue.description_redaction_kinds':_0x4ea141[_0x454ca0(0xc3)]['redactionKinds'][_0x454ca0(0xbe)](',')}:{}}});}
1
+ function a239_0x306c(){const _0x3ae4b5=['4505142dAUJwG','description','56hHygHo','originalBytes','sanitize','496077UYtnKQ','911800WejhKA','8064243Dctvih','join','889861fJZWkT','redactionKinds','1930092LjdTee','redactionCount','platform-issue-log-collect','title','2hzIwAN','issue.log.collect','4537575UvywmG'];a239_0x306c=function(){return _0x3ae4b5;};return a239_0x306c();}const a239_0x5235ef=a239_0x24cf;(function(_0x4e543b,_0x16dfd6){const _0x176347=a239_0x24cf,_0x23e493=_0x4e543b();while(!![]){try{const _0x5c4343=-parseInt(_0x176347(0xc1))/0x1*(parseInt(_0x176347(0xcb))/0x2)+parseInt(_0x176347(0xc7))/0x3+parseInt(_0x176347(0xc2))/0x4+-parseInt(_0x176347(0xcd))/0x5+-parseInt(_0x176347(0xbc))/0x6+-parseInt(_0x176347(0xc5))/0x7*(-parseInt(_0x176347(0xbe))/0x8)+parseInt(_0x176347(0xc3))/0x9;if(_0x5c4343===_0x16dfd6)break;else _0x23e493['push'](_0x23e493['shift']());}catch(_0x3b458a){_0x23e493['push'](_0x23e493['shift']());}}}(a239_0x306c,0x7abe1));function a239_0x24cf(_0x3afb20,_0x15382e){_0x3afb20=_0x3afb20-0xbc;const _0x306cfd=a239_0x306c();let _0x24cf0a=_0x306cfd[_0x3afb20];return _0x24cf0a;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a239_0x5235ef(0xc9);export const PLATFORM_ISSUE_SPAN_NAME=a239_0x5235ef(0xcc);export async function sendPlatformIssueCollectLog(_0x33916c){const _0x50da36=a239_0x5235ef;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x33916c[_0x50da36(0xca)],'issue.description':_0x33916c[_0x50da36(0xbd)],..._0x33916c[_0x50da36(0xc0)]?{'issue.description_original_bytes':_0x33916c[_0x50da36(0xc0)][_0x50da36(0xbf)],'issue.description_truncated':_0x33916c[_0x50da36(0xc0)]['truncated'],'issue.description_redactions':_0x33916c[_0x50da36(0xc0)][_0x50da36(0xc8)],'issue.description_redaction_kinds':_0x33916c['sanitize'][_0x50da36(0xc6)][_0x50da36(0xc4)](',')}:{}}});}
@@ -1 +1 @@
1
- const a240_0x582c6d=a240_0x55cf;function a240_0x55cf(_0x499ec7,_0x4bdeb6){_0x499ec7=_0x499ec7-0x80;const _0x3707d0=a240_0x3707();let _0x55cf87=_0x3707d0[_0x499ec7];return _0x55cf87;}(function(_0x222df1,_0x23aa3d){const _0x3a3203=a240_0x55cf,_0x317f53=_0x222df1();while(!![]){try{const _0x12a525=-parseInt(_0x3a3203(0xa7))/0x1+-parseInt(_0x3a3203(0x95))/0x2*(parseInt(_0x3a3203(0x8a))/0x3)+-parseInt(_0x3a3203(0x8b))/0x4+-parseInt(_0x3a3203(0x8f))/0x5+-parseInt(_0x3a3203(0xaa))/0x6*(-parseInt(_0x3a3203(0xae))/0x7)+parseInt(_0x3a3203(0x99))/0x8+parseInt(_0x3a3203(0xa5))/0x9;if(_0x12a525===_0x23aa3d)break;else _0x317f53['push'](_0x317f53['shift']());}catch(_0x13a096){_0x317f53['push'](_0x317f53['shift']());}}}(a240_0x3707,0x89491));export const CORE_IDE_CONFIGS={'cursor':{'name':a240_0x582c6d(0xa3),'description':'Cursor\x20IDE','folders':[a240_0x582c6d(0x89),'.cursor'],'files':[{'type':'file','path':a240_0x582c6d(0x91),'template':a240_0x582c6d(0xa8)}]},'windsurf':{'name':a240_0x582c6d(0xa4),'description':a240_0x582c6d(0x9d),'folders':[a240_0x582c6d(0xb2)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x94),'template':a240_0x582c6d(0xa8)}]},'claude':{'name':a240_0x582c6d(0xad),'description':a240_0x582c6d(0xad),'folders':[a240_0x582c6d(0xa9)],'files':[{'type':a240_0x582c6d(0xaf),'path':'.claude/skills/lovrabet/SKILL.md','template':a240_0x582c6d(0xa8)}]},'cline':{'name':a240_0x582c6d(0x8c),'description':'Cline\x20IDE','folders':[a240_0x582c6d(0x96)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0xb5),'template':a240_0x582c6d(0xa8)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a240_0x582c6d(0x9c)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x84),'template':a240_0x582c6d(0xa8)}]},'opencode':{'name':a240_0x582c6d(0x90),'description':a240_0x582c6d(0xab),'folders':[a240_0x582c6d(0xa0)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x87),'template':a240_0x582c6d(0xa8)}]},'qoder':{'name':'Qoder','description':a240_0x582c6d(0x8e),'folders':[a240_0x582c6d(0x9f)],'files':[{'type':a240_0x582c6d(0xaf),'path':'.qoder/rules/rabetbase.md','template':a240_0x582c6d(0xa8)},{'type':'file','path':a240_0x582c6d(0xb4),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a240_0x582c6d(0x9b),'description':a240_0x582c6d(0xb0),'folders':[a240_0x582c6d(0xb6)],'files':[{'type':'file','path':a240_0x582c6d(0x86),'template':a240_0x582c6d(0xa8)}]},'trae':{'name':'Trae','description':a240_0x582c6d(0xa1),'folders':[a240_0x582c6d(0x9a)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x9e),'template':a240_0x582c6d(0xa8)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a240_0x582c6d(0xa6),'description':a240_0x582c6d(0x88),'folders':[a240_0x582c6d(0x92)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a240_0x582c6d(0xa8)}]},'antigravity':{'name':a240_0x582c6d(0xac),'description':a240_0x582c6d(0x93),'folders':[a240_0x582c6d(0x92)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a240_0x582c6d(0xa8)}]}};export const CORE_IDE_LIST=[a240_0x582c6d(0x98),a240_0x582c6d(0xb3),a240_0x582c6d(0x82),a240_0x582c6d(0x97),a240_0x582c6d(0x8d),a240_0x582c6d(0x80),a240_0x582c6d(0x85),a240_0x582c6d(0x83),a240_0x582c6d(0xa2)];function a240_0x3707(){const _0x4561b6=['Windsurf\x20IDE','.trae/skills/lovrabet/SKILL.md','.qoder','.opencode','Trae\x20IDE','windsurf','Cursor','Windsurf','15375060yMYxig','其他\x20(通用模板)','223593IxVEhQ','SKILL.md.tpl','.claude','194604eBRyAG','OpenCode\x20IDE','Antigravity','Claude\x20Code','119fWFClm','file','CodeBuddy\x20IDE','antigravity','.windsurf','cline','.qoder/skills/lovrabet/SKILL.md','.cline/skills/lovrabet/SKILL.md','.codebuddy','opencode','agent','codebuddy','trae','.codex/skills/lovrabet/SKILL.md','qoder','.codebuddy/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.cursorrules','6bIDzlG','3088336CTNJDa','Cline','cursor','Qoder\x20IDE','1643840WYrVUn','OpenCode','.cursor/skills/rabetbase.md','.agent','Antigravity\x20IDE','.windsurf/workflows/rabetbase.md','1011286RtKQpv','.cline','codex','claude','5106672EuZhvw','.trae','CodeBuddy','.codex'];a240_0x3707=function(){return _0x4561b6;};return a240_0x3707();}export const IDE_LIST=[a240_0x582c6d(0xb1),a240_0x582c6d(0x98),a240_0x582c6d(0xb3),a240_0x582c6d(0x82),'codex',a240_0x582c6d(0x8d),a240_0x582c6d(0x80),a240_0x582c6d(0x85),'trae','windsurf',a240_0x582c6d(0x81)];export const ALL_CORE_IDES=[a240_0x582c6d(0x8d),a240_0x582c6d(0xa2),a240_0x582c6d(0x98),a240_0x582c6d(0xb3),'codex',a240_0x582c6d(0x80),a240_0x582c6d(0x85),a240_0x582c6d(0x82),a240_0x582c6d(0x83)];
1
+ const a241_0x29c6f5=a241_0x2a44;(function(_0x42dc1d,_0x1073c6){const _0x2d11fe=a241_0x2a44,_0x1ee326=_0x42dc1d();while(!![]){try{const _0x3f9003=parseInt(_0x2d11fe(0x12f))/0x1*(-parseInt(_0x2d11fe(0x14b))/0x2)+parseInt(_0x2d11fe(0x148))/0x3+parseInt(_0x2d11fe(0x13a))/0x4*(parseInt(_0x2d11fe(0x15d))/0x5)+parseInt(_0x2d11fe(0x139))/0x6+parseInt(_0x2d11fe(0x149))/0x7+parseInt(_0x2d11fe(0x126))/0x8+-parseInt(_0x2d11fe(0x133))/0x9*(parseInt(_0x2d11fe(0x151))/0xa);if(_0x3f9003===_0x1073c6)break;else _0x1ee326['push'](_0x1ee326['shift']());}catch(_0x1008c2){_0x1ee326['push'](_0x1ee326['shift']());}}}(a241_0xfb85,0xdfd9d));export const CORE_IDE_CONFIGS={'cursor':{'name':a241_0x29c6f5(0x12b),'description':a241_0x29c6f5(0x154),'folders':[a241_0x29c6f5(0x15b),a241_0x29c6f5(0x13f)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x138),'template':a241_0x29c6f5(0x12e)}]},'windsurf':{'name':a241_0x29c6f5(0x156),'description':a241_0x29c6f5(0x13e),'folders':[a241_0x29c6f5(0x13c)],'files':[{'type':'file','path':a241_0x29c6f5(0x137),'template':a241_0x29c6f5(0x12e)}]},'claude':{'name':a241_0x29c6f5(0x128),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x143),'template':a241_0x29c6f5(0x12e)}]},'cline':{'name':a241_0x29c6f5(0x146),'description':a241_0x29c6f5(0x157),'folders':[a241_0x29c6f5(0x147)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x124),'template':'SKILL.md.tpl'}]},'codex':{'name':a241_0x29c6f5(0x159),'description':a241_0x29c6f5(0x12d),'folders':['.codex'],'files':[{'type':'file','path':a241_0x29c6f5(0x155),'template':a241_0x29c6f5(0x12e)}]},'opencode':{'name':a241_0x29c6f5(0x142),'description':a241_0x29c6f5(0x122),'folders':[a241_0x29c6f5(0x13d)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x15a),'template':a241_0x29c6f5(0x12e)}]},'qoder':{'name':a241_0x29c6f5(0x14a),'description':a241_0x29c6f5(0x13b),'folders':[a241_0x29c6f5(0x131)],'files':[{'type':'file','path':a241_0x29c6f5(0x12c),'template':a241_0x29c6f5(0x12e)},{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x127),'template':a241_0x29c6f5(0x12e)}]},'codebuddy':{'name':a241_0x29c6f5(0x129),'description':'CodeBuddy\x20IDE','folders':[a241_0x29c6f5(0x14c)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x130),'template':a241_0x29c6f5(0x12e)}]},'trae':{'name':a241_0x29c6f5(0x123),'description':a241_0x29c6f5(0x14e),'folders':[a241_0x29c6f5(0x150)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x152),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a241_0x29c6f5(0x15e),'description':'通用模板\x20-\x20兜底方案','folders':[a241_0x29c6f5(0x158)],'files':[{'type':a241_0x29c6f5(0x14f),'path':'.agent/skills/lovrabet/SKILL.md','template':a241_0x29c6f5(0x12e)}]},'antigravity':{'name':a241_0x29c6f5(0x135),'description':a241_0x29c6f5(0x136),'folders':[a241_0x29c6f5(0x158)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x14d),'template':a241_0x29c6f5(0x12e)}]}};export const CORE_IDE_LIST=['claude',a241_0x29c6f5(0x125),'codebuddy','codex','cursor',a241_0x29c6f5(0x140),a241_0x29c6f5(0x15c),a241_0x29c6f5(0x144),'windsurf'];function a241_0x2a44(_0x3afa82,_0x4e1e63){_0x3afa82=_0x3afa82-0x122;const _0xfb85fd=a241_0xfb85();let _0x2a4434=_0xfb85fd[_0x3afa82];return _0x2a4434;}export const IDE_LIST=[a241_0x29c6f5(0x141),a241_0x29c6f5(0x134),a241_0x29c6f5(0x125),a241_0x29c6f5(0x132),a241_0x29c6f5(0x153),'cursor',a241_0x29c6f5(0x140),a241_0x29c6f5(0x15c),'trae',a241_0x29c6f5(0x145),'agent'];export const ALL_CORE_IDES=[a241_0x29c6f5(0x12a),a241_0x29c6f5(0x145),'claude',a241_0x29c6f5(0x125),'codex',a241_0x29c6f5(0x140),a241_0x29c6f5(0x15c),a241_0x29c6f5(0x132),a241_0x29c6f5(0x144)];function a241_0xfb85(){const _0x4015c7=['claude','Antigravity','Antigravity\x20IDE','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','2857842pGMfEg','992916xbZiWJ','Qoder\x20IDE','.windsurf','.opencode','Windsurf\x20IDE','.cursor','opencode','antigravity','OpenCode','.claude/skills/lovrabet/SKILL.md','trae','windsurf','Cline','.cline','3197529FWbiqG','6012440bQHlYh','Qoder','110706vrfdwU','.codebuddy','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','file','.trae','2110ogBRwR','.trae/skills/lovrabet/SKILL.md','codex','Cursor\x20IDE','.codex/skills/lovrabet/SKILL.md','Windsurf','Cline\x20IDE','.agent','Codex','.opencode/skills/lovrabet/SKILL.md','.cursorrules','qoder','25mobBfd','其他\x20(通用模板)','OpenCode\x20IDE','Trae','.cline/skills/lovrabet/SKILL.md','cline','9028336dNEoxY','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','CodeBuddy','cursor','Cursor','.qoder/rules/rabetbase.md','Codex\x20IDE','SKILL.md.tpl','29lEioOj','.codebuddy/skills/lovrabet/SKILL.md','.qoder','codebuddy','95913buMafe'];a241_0xfb85=function(){return _0x4015c7;};return a241_0xfb85();}
@@ -1 +1 @@
1
- (function(_0x391d7c,_0x14002a){const _0x32133e=a241_0x18e9,_0x1228c0=_0x391d7c();while(!![]){try{const _0xdd6a72=parseInt(_0x32133e(0xfe))/0x1*(parseInt(_0x32133e(0xfb))/0x2)+parseInt(_0x32133e(0xf9))/0x3+-parseInt(_0x32133e(0xfa))/0x4+parseInt(_0x32133e(0x100))/0x5*(parseInt(_0x32133e(0xf7))/0x6)+-parseInt(_0x32133e(0x101))/0x7+parseInt(_0x32133e(0xf8))/0x8*(parseInt(_0x32133e(0xfc))/0x9)+-parseInt(_0x32133e(0xff))/0xa*(-parseInt(_0x32133e(0xfd))/0xb);if(_0xdd6a72===_0x14002a)break;else _0x1228c0['push'](_0x1228c0['shift']());}catch(_0x7d1af0){_0x1228c0['push'](_0x1228c0['shift']());}}}(a241_0x343d,0xed7fd));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a241_0x18e9(_0x13da84,_0x307ee4){_0x13da84=_0x13da84-0xf7;const _0x343df6=a241_0x343d();let _0x18e9e8=_0x343df6[_0x13da84];return _0x18e9e8;}function a241_0x343d(){const _0x27c8d0=['1261345RutrEV','1915928rOjPms','18BaZJQO','16ukhUqo','2807046ixFRsC','5295836lRnzxt','36802XspxIr','3447153QcxQGM','11XjsHqi','1VDVYEt','935360xkatad'];a241_0x343d=function(){return _0x27c8d0;};return a241_0x343d();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a242_0x538e(_0x515c7a,_0x1a590f){_0x515c7a=_0x515c7a-0xb7;const _0x3653d4=a242_0x3653();let _0x538ed5=_0x3653d4[_0x515c7a];return _0x538ed5;}(function(_0x33ba87,_0x4d63b5){const _0x5db5c0=a242_0x538e,_0x4a01e3=_0x33ba87();while(!![]){try{const _0x45685a=-parseInt(_0x5db5c0(0xb8))/0x1*(parseInt(_0x5db5c0(0xb9))/0x2)+-parseInt(_0x5db5c0(0xbf))/0x3+parseInt(_0x5db5c0(0xbe))/0x4+parseInt(_0x5db5c0(0xbb))/0x5*(parseInt(_0x5db5c0(0xb7))/0x6)+parseInt(_0x5db5c0(0xc0))/0x7+-parseInt(_0x5db5c0(0xbd))/0x8*(-parseInt(_0x5db5c0(0xba))/0x9)+parseInt(_0x5db5c0(0xbc))/0xa;if(_0x45685a===_0x4d63b5)break;else _0x4a01e3['push'](_0x4a01e3['shift']());}catch(_0x1bfd5d){_0x4a01e3['push'](_0x4a01e3['shift']());}}}(a242_0x3653,0x67fef));function a242_0x3653(){const _0x1a68f5=['1383800cEMxBG','8992LdmgSx','82564GZMuWm','801129UIxjQO','2986795KXctzt','390ClmFuD','31517ZlLIYE','52OAWCwa','4761QSXYVF','25550LQvYPn'];a242_0x3653=function(){return _0x1a68f5;};return a242_0x3653();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5362d0,_0x5bf255){const _0x1d43e9=a242_0x2247,_0x4a6ea5=_0x5362d0();while(!![]){try{const _0x17bc94=parseInt(_0x1d43e9(0x142))/0x1+-parseInt(_0x1d43e9(0x14b))/0x2+-parseInt(_0x1d43e9(0x143))/0x3*(-parseInt(_0x1d43e9(0x13c))/0x4)+-parseInt(_0x1d43e9(0x14a))/0x5*(parseInt(_0x1d43e9(0x144))/0x6)+-parseInt(_0x1d43e9(0x14e))/0x7*(-parseInt(_0x1d43e9(0x141))/0x8)+parseInt(_0x1d43e9(0x14d))/0x9*(parseInt(_0x1d43e9(0x145))/0xa)+-parseInt(_0x1d43e9(0x148))/0xb;if(_0x17bc94===_0x5bf255)break;else _0x4a6ea5['push'](_0x4a6ea5['shift']());}catch(_0x197873){_0x4a6ea5['push'](_0x4a6ea5['shift']());}}}(a242_0x5d09,0x6b604));function a242_0x2247(_0x4e9ec5,_0x3aa768){_0x4e9ec5=_0x4e9ec5-0x13c;const _0x5d0915=a242_0x5d09();let _0x2247a8=_0x5d0915[_0x4e9ec5];return _0x2247a8;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x30d61c=a242_0x2247,_0x2c805d=getTemplateBaseUrl(),_0x222043=[_0x2c805d+'/config.json',_0x2c805d+_0x30d61c(0x13d)];for(const _0x4a914a of _0x222043){try{const _0x123f9c=await fetch(_0x4a914a,{'headers':{'Accept':_0x30d61c(0x146)}});if(!_0x123f9c['ok'])continue;const _0x57aec0=await _0x123f9c[_0x30d61c(0x140)]();if(!_0x57aec0[_0x30d61c(0x13e)]?.[_0x30d61c(0x14c)]||!_0x57aec0[_0x30d61c(0x147)]?.[_0x30d61c(0x13f)]?.[_0x30d61c(0x14c)])continue;return _0x57aec0;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a242_0x5d09(){const _0x5e2df8=['71015rWuVXU','3128044hRuTvX','/config/index.json','cli','node','json','216VBaJon','416454Ylzrph','3BuVajC','6GhjBQO','7180730qZcrUM','application/json','sdk','3395678vBJFyy','now','3530760LGiSze','1471582jbriHd','stableVersion','9LlaNrx'];a242_0x5d09=function(){return _0x5e2df8;};return a242_0x5d09();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0xe704b6=a242_0x2247,_0x4435c0=Date[_0xe704b6(0x149)]();if(hasCachedConfig){const _0x56fe0d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4435c0-cacheTime<_0x56fe0d)return cachedConfig;}const _0x4b0585=await fetchCdnConfig();return cachedConfig=_0x4b0585,cacheTime=_0x4435c0,hasCachedConfig=!![],_0x4b0585;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x575b47,_0x23a965){const _0xba6940=a243_0x279f,_0xe07901=_0x575b47();while(!![]){try{const _0x20d0ad=parseInt(_0xba6940(0x1d6))/0x1*(-parseInt(_0xba6940(0x1e0))/0x2)+parseInt(_0xba6940(0x1e2))/0x3*(parseInt(_0xba6940(0x1e1))/0x4)+-parseInt(_0xba6940(0x1db))/0x5+parseInt(_0xba6940(0x1d2))/0x6+-parseInt(_0xba6940(0x1d8))/0x7*(-parseInt(_0xba6940(0x1d5))/0x8)+parseInt(_0xba6940(0x1d3))/0x9+parseInt(_0xba6940(0x1da))/0xa*(-parseInt(_0xba6940(0x1dc))/0xb);if(_0x20d0ad===_0x23a965)break;else _0xe07901['push'](_0xe07901['shift']());}catch(_0x41c046){_0xe07901['push'](_0xe07901['shift']());}}}(a243_0x3faa,0xddae2));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5367ef=a243_0x279f,_0x314966=getTemplateBaseUrl(),_0x17e932=[_0x314966+_0x5367ef(0x1dd),_0x314966+_0x5367ef(0x1d7)];for(const _0x36218f of _0x17e932){try{const _0x4da04f=await fetch(_0x36218f,{'headers':{'Accept':'application/json'}});if(!_0x4da04f['ok'])continue;const _0x3d0165=await _0x4da04f['json']();if(!_0x3d0165[_0x5367ef(0x1d4)]?.[_0x5367ef(0x1d9)]||!_0x3d0165[_0x5367ef(0x1de)]?.[_0x5367ef(0x1df)]?.['stableVersion'])continue;return _0x3d0165;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a243_0x3faa(){const _0x255228=['12767403fkyeKV','/config.json','sdk','node','2xPJDAr','37372sGqRGc','216YPSMbl','6574008pCKfNO','3227859WUGmJN','cli','88jjCCGY','1069987hFthwc','/config/index.json','783461zlPsVR','stableVersion','10eYhlDW','1097530ZUueGj'];a243_0x3faa=function(){return _0x255228;};return a243_0x3faa();}function a243_0x279f(_0x176e35,_0x4f9605){_0x176e35=_0x176e35-0x1d2;const _0x3faa36=a243_0x3faa();let _0x279f22=_0x3faa36[_0x176e35];return _0x279f22;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x171e2d=Date['now']();if(hasCachedConfig){const _0x5b33f3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x171e2d-cacheTime<_0x5b33f3)return cachedConfig;}const _0x578e2a=await fetchCdnConfig();return cachedConfig=_0x578e2a,cacheTime=_0x171e2d,hasCachedConfig=!![],_0x578e2a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x1d97c4,_0x56e4ca){const _0x1df705=a243_0x426e,_0x2e8ce9=_0x1d97c4();while(!![]){try{const _0x452268=-parseInt(_0x1df705(0x1dc))/0x1*(parseInt(_0x1df705(0x1d4))/0x2)+-parseInt(_0x1df705(0x1e9))/0x3*(-parseInt(_0x1df705(0x1e4))/0x4)+parseInt(_0x1df705(0x1ef))/0x5*(parseInt(_0x1df705(0x1d8))/0x6)+-parseInt(_0x1df705(0x1d9))/0x7*(-parseInt(_0x1df705(0x1e7))/0x8)+-parseInt(_0x1df705(0x1e2))/0x9*(-parseInt(_0x1df705(0x1dd))/0xa)+-parseInt(_0x1df705(0x1f0))/0xb*(-parseInt(_0x1df705(0x1d7))/0xc)+-parseInt(_0x1df705(0x1df))/0xd;if(_0x452268===_0x56e4ca)break;else _0x2e8ce9['push'](_0x2e8ce9['shift']());}catch(_0xb749c6){_0x2e8ce9['push'](_0x2e8ce9['shift']());}}}(a243_0x15cc,0xec04a));import a243_0x259d0c from'node:fs';import a243_0x52039d from'node:path';import a243_0x35026d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x37fe0a){const _0x17bb2a=a243_0x426e,_0x26960e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x26960e['some'](_0x525e25=>_0x525e25[_0x17bb2a(0x1e5)](_0x37fe0a));}function getInstalledVersion(_0x12c226,_0x12252d){const _0x1aab21=a243_0x426e;try{const _0x5d06f2=a243_0x52039d['join'](_0x12c226,'node_modules',_0x12252d,'package.json');if(a243_0x259d0c[_0x1aab21(0x1d5)](_0x5d06f2)){const _0x30a1e3=JSON['parse'](a243_0x259d0c[_0x1aab21(0x1da)](_0x5d06f2,'utf-8'));return _0x30a1e3[_0x1aab21(0x1f4)]||null;}}catch{}return null;}function a243_0x426e(_0x205659,_0x4b584b){_0x205659=_0x205659-0x1d2;const _0x15cc65=a243_0x15cc();let _0x426e39=_0x15cc65[_0x205659];return _0x426e39;}async function getSdkStableVersion(){const _0x983790=a243_0x426e;try{const _0x2ab43e=await getCdnConfig();return _0x2ab43e?.['sdk']?.[_0x983790(0x1e1)]?.[_0x983790(0x1d6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x12b0e4=a243_0x426e;try{const _0x5b339f=await getCdnConfig();return _0x5b339f?.[_0x12b0e4(0x1f8)]?.[_0x12b0e4(0x1e1)]?.[_0x12b0e4(0x1f1)]||_0x12b0e4(0x1ec);}catch{return _0x12b0e4(0x1ec);}}export async function checkSdkVersion(_0x3cdaba){const _0x5c24a9=a243_0x426e,_0x2fc3af=a243_0x52039d[_0x5c24a9(0x1f7)](_0x3cdaba,'package.json'),[_0x112037,_0x20f2bc]=await Promise[_0x5c24a9(0x1e0)]([getSdkStableVersion(),getSdkPackageName()]),_0x3563d4=_0x112037||FALLBACK_MIN_SDK_VERSION;if(!a243_0x259d0c['existsSync'](_0x2fc3af))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};try{const _0x49c8da=JSON[_0x5c24a9(0x1eb)](a243_0x259d0c['readFileSync'](_0x2fc3af,_0x5c24a9(0x1f5))),_0x979b22=_0x49c8da['dependencies']||{},_0x327075=_0x49c8da['devDependencies']||{},_0x1b2bad=_0x979b22[_0x20f2bc]||_0x327075[_0x20f2bc];if(!_0x1b2bad)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};let _0x3afdc5=getInstalledVersion(_0x3cdaba,_0x20f2bc);!_0x3afdc5&&(_0x3afdc5=_0x1b2bad);if(isNonNumericVersion(_0x1b2bad))return{'installed':!![],'version':_0x3afdc5,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};const _0x3fe9b4=a243_0x35026d['coerce'](_0x3afdc5),_0x2b03b1=a243_0x35026d[_0x5c24a9(0x1f3)](_0x3563d4),_0x1d5dca=_0x3fe9b4&&_0x2b03b1?a243_0x35026d['lt'](_0x3fe9b4,_0x2b03b1):![];return{'installed':!![],'version':_0x3afdc5,'needsUpgrade':_0x1d5dca,'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};}}function a243_0x15cc(){const _0x3ef600=['\x1b[1m','2mBYobp','existsSync','stableVersion','6656124BIifYZ','61590TtnMdH','842387RqYJpa','readFileSync','\x1b[33m','1415651vIQSmr','285450QSEzZe','\x20\x20\x20Upgrade\x20command:\x20','5596591BGWpTx','all','node','99xJUwFk','needsUpgrade','1382860PXoGho','test','minVersion','8yKtUEo','↪\x20SDK\x20update\x20available','3PLzosN','devDependencies','parse','@lovrabet/sdk','\x1b[0m','\x20\x20\x20Current\x20version:\x20','720XKviIc','11DWWlod','packageName','log','coerce','version','utf8','\x20\x20\x20Stable\x20version:\x20','join','sdk','latest'];a243_0x15cc=function(){return _0x3ef600;};return a243_0x15cc();}export function checkSdkVersionSync(_0x5c3afd){const _0x8d0685=a243_0x426e,_0x317a50=a243_0x52039d[_0x8d0685(0x1f7)](_0x5c3afd,'package.json'),_0x458fa5=_0x8d0685(0x1ec);if(!a243_0x259d0c[_0x8d0685(0x1d5)](_0x317a50))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};try{const _0x2d7caa=JSON['parse'](a243_0x259d0c[_0x8d0685(0x1da)](_0x317a50,_0x8d0685(0x1f5))),_0x3d4e97=_0x2d7caa['dependencies']||{},_0x3c7203=_0x2d7caa[_0x8d0685(0x1ea)]||{},_0x167ae2=_0x3d4e97[_0x458fa5]||_0x3c7203[_0x458fa5];if(!_0x167ae2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};let _0x29c6ea=getInstalledVersion(_0x5c3afd,_0x458fa5);!_0x29c6ea&&(_0x29c6ea=_0x167ae2);if(isNonNumericVersion(_0x167ae2))return{'installed':!![],'version':_0x29c6ea,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};const _0x3a5e41=a243_0x35026d[_0x8d0685(0x1f3)](_0x29c6ea),_0x2722d8=_0x3a5e41?a243_0x35026d['lt'](_0x3a5e41,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x29c6ea,'needsUpgrade':_0x2722d8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3c3dea){const _0xd92142=a243_0x426e;if(!_0x3c3dea[_0xd92142(0x1e3)])return;const _0x5c5bba=_0xd92142(0x1db),_0x28e858=_0xd92142(0x1ed),_0x3d18d0=_0xd92142(0x1d3),_0x49e00d=_0x3c3dea[_0xd92142(0x1f1)]||_0xd92142(0x1ec),_0x3203c8=_0x3c3dea[_0xd92142(0x1d6)]||_0x3c3dea[_0xd92142(0x1e6)],_0x500ed3='npm\x20install\x20'+_0x49e00d+'@'+(_0x3203c8||_0xd92142(0x1d2));console['log'](),console[_0xd92142(0x1f2)](''+_0x5c5bba+_0x3d18d0+_0xd92142(0x1e8)+_0x28e858),console['log'](_0x5c5bba+_0xd92142(0x1ee)+_0x49e00d+'@'+_0x3c3dea[_0xd92142(0x1f4)]+_0x28e858),console[_0xd92142(0x1f2)](_0x5c5bba+_0xd92142(0x1f6)+_0x3203c8+_0x28e858),console[_0xd92142(0x1f2)](_0x5c5bba+_0xd92142(0x1de)+_0x500ed3+_0x28e858),console[_0xd92142(0x1f2)]();}
1
+ const a244_0x220dad=a244_0x275c;(function(_0x322e20,_0x505b07){const _0x4555ae=a244_0x275c,_0x157fd5=_0x322e20();while(!![]){try{const _0x2b937a=parseInt(_0x4555ae(0xb9))/0x1*(-parseInt(_0x4555ae(0xae))/0x2)+parseInt(_0x4555ae(0xb4))/0x3*(-parseInt(_0x4555ae(0xb8))/0x4)+-parseInt(_0x4555ae(0xa0))/0x5*(parseInt(_0x4555ae(0x9a))/0x6)+parseInt(_0x4555ae(0xbb))/0x7*(parseInt(_0x4555ae(0xa2))/0x8)+parseInt(_0x4555ae(0x97))/0x9+-parseInt(_0x4555ae(0xaa))/0xa*(-parseInt(_0x4555ae(0xb3))/0xb)+parseInt(_0x4555ae(0x96))/0xc;if(_0x2b937a===_0x505b07)break;else _0x157fd5['push'](_0x157fd5['shift']());}catch(_0x2050a1){_0x157fd5['push'](_0x157fd5['shift']());}}}(a244_0x1c9d,0xe3533));import a244_0x24e5f8 from'node:fs';function a244_0x275c(_0x57562c,_0x3f934a){_0x57562c=_0x57562c-0x96;const _0x1c9d9d=a244_0x1c9d();let _0x275c90=_0x1c9d9d[_0x57562c];return _0x275c90;}import a244_0x4461f3 from'node:path';import a244_0xbd7f9d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a244_0x220dad(0xb2);function isNonNumericVersion(_0x4b42b3){const _0x2d1d8f=a244_0x220dad,_0x5cb7dd=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5cb7dd[_0x2d1d8f(0x9e)](_0x388682=>_0x388682[_0x2d1d8f(0xa3)](_0x4b42b3));}function getInstalledVersion(_0x3a5b71,_0x159267){const _0x5248ed=a244_0x220dad;try{const _0x5256c5=a244_0x4461f3['join'](_0x3a5b71,_0x5248ed(0xa5),_0x159267,'package.json');if(a244_0x24e5f8[_0x5248ed(0xa8)](_0x5256c5)){const _0x5dd551=JSON[_0x5248ed(0xaf)](a244_0x24e5f8[_0x5248ed(0xb0)](_0x5256c5,'utf-8'));return _0x5dd551[_0x5248ed(0xb1)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x190b3c=a244_0x220dad;try{const _0x39ca35=await getCdnConfig();return _0x39ca35?.[_0x190b3c(0x99)]?.[_0x190b3c(0xb5)]?.[_0x190b3c(0xac)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5b738c=a244_0x220dad;try{const _0x2beebf=await getCdnConfig();return _0x2beebf?.[_0x5b738c(0x99)]?.[_0x5b738c(0xb5)]?.[_0x5b738c(0x9f)]||'@lovrabet/sdk';}catch{return _0x5b738c(0x9b);}}export async function checkSdkVersion(_0x52034e){const _0xd0ea31=a244_0x220dad,_0x2e2399=a244_0x4461f3[_0xd0ea31(0xb6)](_0x52034e,'package.json'),[_0x5a9660,_0x407025]=await Promise[_0xd0ea31(0xa4)]([getSdkStableVersion(),getSdkPackageName()]),_0x56ceb1=_0x5a9660||FALLBACK_MIN_SDK_VERSION;if(!a244_0x24e5f8[_0xd0ea31(0xa8)](_0x2e2399))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};try{const _0x4d3d99=JSON[_0xd0ea31(0xaf)](a244_0x24e5f8[_0xd0ea31(0xb0)](_0x2e2399,_0xd0ea31(0xbd))),_0x33d45f=_0x4d3d99['dependencies']||{},_0x591682=_0x4d3d99[_0xd0ea31(0xa9)]||{},_0x896507=_0x33d45f[_0x407025]||_0x591682[_0x407025];if(!_0x896507)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};let _0x24b63a=getInstalledVersion(_0x52034e,_0x407025);!_0x24b63a&&(_0x24b63a=_0x896507);if(isNonNumericVersion(_0x896507))return{'installed':!![],'version':_0x24b63a,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};const _0x251878=a244_0xbd7f9d[_0xd0ea31(0x9c)](_0x24b63a),_0x4c16b7=a244_0xbd7f9d[_0xd0ea31(0x9c)](_0x56ceb1),_0x2f15c5=_0x251878&&_0x4c16b7?a244_0xbd7f9d['lt'](_0x251878,_0x4c16b7):![];return{'installed':!![],'version':_0x24b63a,'needsUpgrade':_0x2f15c5,'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};}}function a244_0x1c9d(){const _0x2e5025=['readFileSync','version','1.2.0','330KcNQsJ','6gORztF','node','join','log','3709248XHbYhl','17oaENnh','latest','9500288KjKIOq','\x20\x20\x20Current\x20version:\x20','utf8','12011820ybFjoY','14778441scWRuT','npm\x20install\x20','sdk','12BKSTZl','@lovrabet/sdk','coerce','\x1b[33m','some','packageName','3159475EZFduV','\x1b[1m','8NjYZZS','test','all','node_modules','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','existsSync','devDependencies','207310wihbkS','\x1b[0m','stableVersion','needsUpgrade','67366NoIVPq','parse'];a244_0x1c9d=function(){return _0x2e5025;};return a244_0x1c9d();}export function checkSdkVersionSync(_0x45f775){const _0x15668d=a244_0x220dad,_0x206157=a244_0x4461f3['join'](_0x45f775,'package.json'),_0x56beb3=_0x15668d(0x9b);if(!a244_0x24e5f8[_0x15668d(0xa8)](_0x206157))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};try{const _0x3515cc=JSON['parse'](a244_0x24e5f8[_0x15668d(0xb0)](_0x206157,'utf8')),_0x454644=_0x3515cc['dependencies']||{},_0x2c8176=_0x3515cc[_0x15668d(0xa9)]||{},_0x43d9ee=_0x454644[_0x56beb3]||_0x2c8176[_0x56beb3];if(!_0x43d9ee)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};let _0x161bce=getInstalledVersion(_0x45f775,_0x56beb3);!_0x161bce&&(_0x161bce=_0x43d9ee);if(isNonNumericVersion(_0x43d9ee))return{'installed':!![],'version':_0x161bce,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};const _0x18af26=a244_0xbd7f9d[_0x15668d(0x9c)](_0x161bce),_0x423296=_0x18af26?a244_0xbd7f9d['lt'](_0x18af26,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x161bce,'needsUpgrade':_0x423296,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x235150){const _0x282dc1=a244_0x220dad;if(!_0x235150[_0x282dc1(0xad)])return;const _0x35c04e=_0x282dc1(0x9d),_0x109044=_0x282dc1(0xab),_0xd7407c=_0x282dc1(0xa1),_0xf8c196=_0x235150[_0x282dc1(0x9f)]||_0x282dc1(0x9b),_0x50f93b=_0x235150[_0x282dc1(0xac)]||_0x235150['minVersion'],_0x50f4f5=_0x282dc1(0x98)+_0xf8c196+'@'+(_0x50f93b||_0x282dc1(0xba));console[_0x282dc1(0xb7)](),console['log'](''+_0x35c04e+_0xd7407c+'↪\x20SDK\x20update\x20available'+_0x109044),console[_0x282dc1(0xb7)](_0x35c04e+_0x282dc1(0xbc)+_0xf8c196+'@'+_0x235150['version']+_0x109044),console[_0x282dc1(0xb7)](_0x35c04e+_0x282dc1(0xa7)+_0x50f93b+_0x109044),console[_0x282dc1(0xb7)](_0x35c04e+_0x282dc1(0xa6)+_0x50f4f5+_0x109044),console[_0x282dc1(0xb7)]();}
@@ -1 +1 @@
1
- (function(_0x3a7919,_0x10763c){const _0x56819f=a244_0x1a5a,_0xc6ae6b=_0x3a7919();while(!![]){try{const _0x349ede=parseInt(_0x56819f(0xb2))/0x1+parseInt(_0x56819f(0xb3))/0x2*(parseInt(_0x56819f(0x98))/0x3)+parseInt(_0x56819f(0xb4))/0x4*(parseInt(_0x56819f(0xad))/0x5)+parseInt(_0x56819f(0x97))/0x6+parseInt(_0x56819f(0xb8))/0x7*(-parseInt(_0x56819f(0xb9))/0x8)+-parseInt(_0x56819f(0xa2))/0x9*(parseInt(_0x56819f(0xbb))/0xa)+parseInt(_0x56819f(0x99))/0xb*(-parseInt(_0x56819f(0x95))/0xc);if(_0x349ede===_0x10763c)break;else _0xc6ae6b['push'](_0xc6ae6b['shift']());}catch(_0x256b02){_0xc6ae6b['push'](_0xc6ae6b['shift']());}}}(a244_0x2d23,0xd7aa2));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a244_0x49541d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a244_0x1a5a(_0x52ebc8,_0x4dc99a){_0x52ebc8=_0x52ebc8-0x93;const _0x2d2371=a244_0x2d23();let _0x1a5aff=_0x2d2371[_0x52ebc8];return _0x1a5aff;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x7cd5e7){const _0x3f5fa6=a244_0x1a5a,_0x49960b=_0x7cd5e7[_0x3f5fa6(0xa7)]||_0x3f5fa6(0xba);return _0x3f5fa6(0xb5)+NPM_PACKAGE_NAME+'@'+_0x49960b;}function getCurrentCliVersion(){const _0x15312e=a244_0x1a5a;try{const _0x31c74b=fileURLToPath(import.meta.url),_0x4d5ebf=resolve(dirname(_0x31c74b),_0x15312e(0x96)),_0x393a80=resolve(_0x4d5ebf,_0x15312e(0xae)),_0x1915c4=JSON['parse'](readFileSync(_0x393a80,'utf-8'));return _0x1915c4[_0x15312e(0xac)]||_0x15312e(0xa0);}catch{return _0x15312e(0xa0);}}export async function checkCliVersion(){const _0x214fcd=a244_0x1a5a,_0x212446=getCurrentCliVersion(),_0x2a911d=await getCliVersionPolicy(),_0x569894=_0x2a911d?.[_0x214fcd(0xa7)]||null,_0x516e27=_0x2a911d?.[_0x214fcd(0xb7)]||null;let _0x3e6d08=![],_0x26da3d=![];const _0x41f15e=a244_0x49541d['coerce'](_0x212446);if(_0x41f15e&&_0x569894)try{const _0x25b8a7=a244_0x49541d[_0x214fcd(0x9f)](_0x569894);if(_0x25b8a7)_0x3e6d08=a244_0x49541d['lt'](_0x41f15e,_0x25b8a7);}catch{}if(_0x41f15e&&_0x516e27)try{const _0x6f47a0=a244_0x49541d[_0x214fcd(0x9f)](_0x516e27);if(_0x6f47a0)_0x26da3d=a244_0x49541d['lt'](_0x41f15e,_0x6f47a0);}catch{}return _0x26da3d&&(_0x3e6d08=!![]),{'currentVersion':_0x212446,'stableVersion':_0x569894,'minimumVersion':_0x516e27,'needsUpgrade':_0x3e6d08,'belowMinimum':_0x26da3d,'isPreRelease':![],'upgradeMessage':_0x2a911d?.[_0x214fcd(0xb6)],'minimumVersionMessage':_0x2a911d?.['minimumVersionMessage']};}function a244_0x2d23(){const _0x2aba6a=['254290ZIuAEu','Upgrade\x20command:\x20','minimumVersionMessage','\x1b[0m','needsUpgrade','780JSxlkC','../..','10265676evdjHc','128001MicGkZ','58575jRniKs','\x1b[1m','validation','Current\x20version:\x20','currentVersion','filter','coerce','1.0.0','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','621VYafHi','\x20\x20\x20Stable\x20version:\x20','belowMinimum','log','\x1b[31m','stableVersion','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','version','273190pwdbiS','package.json','\x20\x20\x20Upgrade\x20command:\x20','↪\x20New\x20version\x20available','\x20\x20\x20Current\x20CLI\x20version:\x20','415392ALjRvN','50PvueJu','92UDWvVY','npm\x20install\x20-g\x20','upgradeMessage','minimumVersion','9597XGfgBe','8552yUnDSS','latest'];a244_0x2d23=function(){return _0x2aba6a;};return a244_0x2d23();}export function printCliUpgradeWarning(_0x75b75c){const _0x6749bc=a244_0x1a5a;if(!_0x75b75c[_0x6749bc(0x94)]&&!_0x75b75c['belowMinimum'])return;const _0x28ea77=_0x6749bc(0xa6),_0x4f5d87=_0x6749bc(0xab),_0x261cf6=_0x6749bc(0x93),_0x482322=_0x6749bc(0x9a),_0x3efee9=getCliUpgradeCommand(_0x75b75c);console[_0x6749bc(0xa5)](),_0x75b75c['belowMinimum']?(console[_0x6749bc(0xa5)](''+_0x28ea77+_0x482322+_0x6749bc(0xaa)+_0x261cf6),console[_0x6749bc(0xa5)](_0x28ea77+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x75b75c['currentVersion']+_0x261cf6),_0x75b75c[_0x6749bc(0xb7)]&&console['log'](_0x28ea77+'\x20\x20\x20Minimum\x20supported:\x20'+_0x75b75c[_0x6749bc(0xb7)]+_0x261cf6),_0x75b75c[_0x6749bc(0xa7)]&&_0x75b75c[_0x6749bc(0xa7)]!==_0x75b75c[_0x6749bc(0xb7)]&&console[_0x6749bc(0xa5)](_0x28ea77+_0x6749bc(0xa8)+_0x75b75c[_0x6749bc(0xa7)]+_0x261cf6),_0x75b75c[_0x6749bc(0xbd)]&&console[_0x6749bc(0xa5)](_0x28ea77+_0x6749bc(0xa9)+_0x75b75c[_0x6749bc(0xbd)]+_0x261cf6),console[_0x6749bc(0xa5)](_0x28ea77+_0x6749bc(0xaf)+_0x3efee9+_0x261cf6)):(console[_0x6749bc(0xa5)](''+_0x4f5d87+_0x482322+_0x6749bc(0xb0)+_0x261cf6),console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xb1)+_0x75b75c[_0x6749bc(0x9d)]+_0x261cf6),console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xa3)+_0x75b75c[_0x6749bc(0xa7)]+_0x261cf6),_0x75b75c[_0x6749bc(0xb6)]&&console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xa9)+_0x75b75c['upgradeMessage']+_0x261cf6),console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xaf)+_0x3efee9+_0x261cf6)),console[_0x6749bc(0xa5)]();}export function assertCliVersionSupported(_0x317032){const _0x5ce661=a244_0x1a5a;if(!_0x317032[_0x5ce661(0xa4)])return;const _0x3295a8=[_0x317032[_0x5ce661(0xbd)],_0x5ce661(0x9c)+_0x317032[_0x5ce661(0x9d)],_0x317032[_0x5ce661(0xb7)]?'Minimum\x20supported:\x20'+_0x317032[_0x5ce661(0xb7)]:null,_0x5ce661(0xbc)+getCliUpgradeCommand(_0x317032)][_0x5ce661(0x9e)](Boolean)['join']('\x0a');throw CliErrors[_0x5ce661(0x9b)](_0x5ce661(0xa1),_0x3295a8);}
1
+ (function(_0x426216,_0x20662e){const _0x75d17f=a245_0x3e5e,_0x1c3517=_0x426216();while(!![]){try{const _0x1bcfab=parseInt(_0x75d17f(0x13c))/0x1+parseInt(_0x75d17f(0x131))/0x2*(-parseInt(_0x75d17f(0x14e))/0x3)+parseInt(_0x75d17f(0x130))/0x4+-parseInt(_0x75d17f(0x140))/0x5+parseInt(_0x75d17f(0x12a))/0x6*(-parseInt(_0x75d17f(0x14f))/0x7)+-parseInt(_0x75d17f(0x12f))/0x8*(parseInt(_0x75d17f(0x12d))/0x9)+parseInt(_0x75d17f(0x14c))/0xa*(parseInt(_0x75d17f(0x14a))/0xb);if(_0x1bcfab===_0x20662e)break;else _0x1c3517['push'](_0x1c3517['shift']());}catch(_0x24c14e){_0x1c3517['push'](_0x1c3517['shift']());}}}(a245_0x2139,0xae45b));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a245_0xf0c371 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a245_0x3e5e(_0x3ca6f5,_0x417977){_0x3ca6f5=_0x3ca6f5-0x12a;const _0x2139a9=a245_0x2139();let _0x3e5ef5=_0x2139a9[_0x3ca6f5];return _0x3e5ef5;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x358c3f){const _0x419d43=a245_0x3e5e,_0x189986=_0x358c3f['stableVersion']||_0x419d43(0x136);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x189986;}function getCurrentCliVersion(){const _0x14e805=a245_0x3e5e;try{const _0x479e83=fileURLToPath(import.meta.url),_0xbfed1d=resolve(dirname(_0x479e83),_0x14e805(0x142)),_0x340662=resolve(_0xbfed1d,'package.json'),_0x3adb25=JSON[_0x14e805(0x149)](readFileSync(_0x340662,_0x14e805(0x12e)));return _0x3adb25[_0x14e805(0x14b)]||_0x14e805(0x13f);}catch{return _0x14e805(0x13f);}}function a245_0x2139(){const _0x2d954d=['\x20\x20\x20Current\x20CLI\x20version:\x20','197487pTcwAX','utf-8','296JPMMeh','2564032vRuZuk','414SLxxVD','log','validation','belowMinimum','\x20\x20\x20Recommended\x20stable:\x20','latest','\x20\x20\x20','\x1b[0m','coerce','↪\x20New\x20version\x20available','↪\x20Critical\x20CLI\x20upgrade\x20required','1406810VQTlRm','minimumVersion','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','1487290jAZxjk','\x20\x20\x20Stable\x20version:\x20','../..','currentVersion','Minimum\x20supported:\x20','Current\x20version:\x20','stableVersion','upgradeMessage','Upgrade\x20command:\x20','parse','11oKDdQe','version','17041660vzTdHd','\x20\x20\x20Minimum\x20supported:\x20','20244rrZvwe','11116lIjOid','2010PyRnZm','minimumVersionMessage'];a245_0x2139=function(){return _0x2d954d;};return a245_0x2139();}export async function checkCliVersion(){const _0x27df16=a245_0x3e5e,_0xe94348=getCurrentCliVersion(),_0x4bd467=await getCliVersionPolicy(),_0x189af2=_0x4bd467?.[_0x27df16(0x146)]||null,_0x4130ad=_0x4bd467?.[_0x27df16(0x13d)]||null;let _0x40a5bd=![],_0x1fd9bd=![];const _0x116667=a245_0xf0c371[_0x27df16(0x139)](_0xe94348);if(_0x116667&&_0x189af2)try{const _0x5e99db=a245_0xf0c371[_0x27df16(0x139)](_0x189af2);if(_0x5e99db)_0x40a5bd=a245_0xf0c371['lt'](_0x116667,_0x5e99db);}catch{}if(_0x116667&&_0x4130ad)try{const _0x355368=a245_0xf0c371[_0x27df16(0x139)](_0x4130ad);if(_0x355368)_0x1fd9bd=a245_0xf0c371['lt'](_0x116667,_0x355368);}catch{}return _0x1fd9bd&&(_0x40a5bd=!![]),{'currentVersion':_0xe94348,'stableVersion':_0x189af2,'minimumVersion':_0x4130ad,'needsUpgrade':_0x40a5bd,'belowMinimum':_0x1fd9bd,'isPreRelease':![],'upgradeMessage':_0x4bd467?.['upgradeMessage'],'minimumVersionMessage':_0x4bd467?.[_0x27df16(0x12b)]};}export function printCliUpgradeWarning(_0x2f9915){const _0x81e735=a245_0x3e5e;if(!_0x2f9915['needsUpgrade']&&!_0x2f9915[_0x81e735(0x134)])return;const _0x39672b='\x1b[31m',_0x186e7b='\x1b[33m',_0x55c3c7=_0x81e735(0x138),_0x48a3b4='\x1b[1m',_0x53c562=getCliUpgradeCommand(_0x2f9915);console[_0x81e735(0x132)](),_0x2f9915[_0x81e735(0x134)]?(console[_0x81e735(0x132)](''+_0x39672b+_0x48a3b4+_0x81e735(0x13b)+_0x55c3c7),console[_0x81e735(0x132)](_0x39672b+_0x81e735(0x12c)+_0x2f9915['currentVersion']+_0x55c3c7),_0x2f9915[_0x81e735(0x13d)]&&console['log'](_0x39672b+_0x81e735(0x14d)+_0x2f9915[_0x81e735(0x13d)]+_0x55c3c7),_0x2f9915[_0x81e735(0x146)]&&_0x2f9915['stableVersion']!==_0x2f9915[_0x81e735(0x13d)]&&console[_0x81e735(0x132)](_0x39672b+_0x81e735(0x135)+_0x2f9915['stableVersion']+_0x55c3c7),_0x2f9915[_0x81e735(0x12b)]&&console[_0x81e735(0x132)](_0x39672b+'\x20\x20\x20'+_0x2f9915['minimumVersionMessage']+_0x55c3c7),console[_0x81e735(0x132)](_0x39672b+_0x81e735(0x13e)+_0x53c562+_0x55c3c7)):(console[_0x81e735(0x132)](''+_0x186e7b+_0x48a3b4+_0x81e735(0x13a)+_0x55c3c7),console['log'](_0x186e7b+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2f9915[_0x81e735(0x143)]+_0x55c3c7),console['log'](_0x186e7b+_0x81e735(0x141)+_0x2f9915[_0x81e735(0x146)]+_0x55c3c7),_0x2f9915[_0x81e735(0x147)]&&console[_0x81e735(0x132)](_0x186e7b+_0x81e735(0x137)+_0x2f9915[_0x81e735(0x147)]+_0x55c3c7),console[_0x81e735(0x132)](_0x186e7b+_0x81e735(0x13e)+_0x53c562+_0x55c3c7)),console[_0x81e735(0x132)]();}export function assertCliVersionSupported(_0x3d5ae5){const _0x4eeb81=a245_0x3e5e;if(!_0x3d5ae5[_0x4eeb81(0x134)])return;const _0x39a4fc=[_0x3d5ae5[_0x4eeb81(0x12b)],_0x4eeb81(0x145)+_0x3d5ae5['currentVersion'],_0x3d5ae5[_0x4eeb81(0x13d)]?_0x4eeb81(0x144)+_0x3d5ae5[_0x4eeb81(0x13d)]:null,_0x4eeb81(0x148)+getCliUpgradeCommand(_0x3d5ae5)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x4eeb81(0x133)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x39a4fc);}
@@ -1 +1 @@
1
- (function(_0x1f1b98,_0x8ff401){const _0x3465ac=a245_0x2224,_0x307892=_0x1f1b98();while(!![]){try{const _0x22b3ed=parseInt(_0x3465ac(0x9c))/0x1*(parseInt(_0x3465ac(0xa2))/0x2)+parseInt(_0x3465ac(0x9a))/0x3*(parseInt(_0x3465ac(0xa0))/0x4)+-parseInt(_0x3465ac(0x92))/0x5*(parseInt(_0x3465ac(0xa5))/0x6)+parseInt(_0x3465ac(0x98))/0x7*(parseInt(_0x3465ac(0x9f))/0x8)+-parseInt(_0x3465ac(0xa9))/0x9+-parseInt(_0x3465ac(0x95))/0xa*(parseInt(_0x3465ac(0xab))/0xb)+parseInt(_0x3465ac(0xa8))/0xc;if(_0x22b3ed===_0x8ff401)break;else _0x307892['push'](_0x307892['shift']());}catch(_0x54e804){_0x307892['push'](_0x307892['shift']());}}}(a245_0x4c25,0x9d9ec));function a245_0x4c25(){const _0x18d3ba=['2KQbMhi','stableVersion','object','18BzAyRE','minimumVersion','trim','5898108XmcpbT','5390874tzjIOL','length','22xLNZMl','minimumVersionMessage','738230nkObSt','now','latestVersion','4162690mHqmRA','abort','cli','617414ymuNRH','recommendedVersion','9HFBeNp','string','446466ndVejd','json','signal','40tQuFVD','1521452UKncWn','upgradeMessage'];a245_0x4c25=function(){return _0x18d3ba;};return a245_0x4c25();}function a245_0x2224(_0x30c6d5,_0x1adbea){_0x30c6d5=_0x30c6d5-0x92;const _0x4c25da=a245_0x4c25();let _0x22247b=_0x4c25da[_0x30c6d5];return _0x22247b;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x553331){const _0x53c550=a245_0x2224;return typeof _0x553331===_0x53c550(0x9b)&&_0x553331[_0x53c550(0xa7)]()[_0x53c550(0xaa)]>0x0?_0x553331['trim']():null;}function normalizeCliVersionPolicy(_0x249168){const _0x2bab03=a245_0x2224;if(!_0x249168||typeof _0x249168!=='object')return null;const _0xc0569=_0x249168,_0x5a9a16=_0xc0569[_0x2bab03(0x97)]&&typeof _0xc0569[_0x2bab03(0x97)]===_0x2bab03(0xa4)?_0xc0569[_0x2bab03(0x97)]:_0xc0569,_0x2cfdc7=pickString(_0x5a9a16[_0x2bab03(0xa3)])||pickString(_0x5a9a16[_0x2bab03(0x94)])||pickString(_0x5a9a16[_0x2bab03(0x99)]),_0x3140ae=pickString(_0x5a9a16[_0x2bab03(0xa6)])||pickString(_0x5a9a16['minVersion']);if(!_0x2cfdc7&&!_0x3140ae)return null;return{'stableVersion':_0x2cfdc7,'minimumVersion':_0x3140ae,'upgradeMessage':pickString(_0x5a9a16[_0x2bab03(0xa1)])||undefined,'minimumVersionMessage':pickString(_0x5a9a16[_0x2bab03(0xac)])||undefined};}export async function fetchCliVersionPolicy(){const _0xc415ec=a245_0x2224,_0x3e2a52=new AbortController(),_0x4b026d=setTimeout(()=>_0x3e2a52[_0xc415ec(0x96)](),FETCH_TIMEOUT_MS);try{const _0xed0980=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x3e2a52[_0xc415ec(0x9e)]});if(!_0xed0980['ok'])return null;const _0xde62d2=await _0xed0980[_0xc415ec(0x9d)]();return normalizeCliVersionPolicy(_0xde62d2);}catch{return null;}finally{clearTimeout(_0x4b026d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3a37ac=a245_0x2224,_0xe2f712=Date[_0x3a37ac(0x93)]();if(hasCachedPolicy){const _0x4e2398=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xe2f712-cacheTime<_0x4e2398)return cachedPolicy;}const _0x382d67=await fetchCliVersionPolicy();return cachedPolicy=_0x382d67,cacheTime=_0xe2f712,hasCachedPolicy=!![],_0x382d67;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a246_0x57e6(){const _0x21a0cd=['string','cli','1632104lGJRUl','minVersion','966192Isgkbp','96320RTowSD','1816255UYuydd','minimumVersion','length','444548aWUpPA','trim','837YxHbuN','latestVersion','574284efIEeX','json','now','recommendedVersion','30470rsEoNT','application/json','1ZgciKE','object','18BljRXT'];a246_0x57e6=function(){return _0x21a0cd;};return a246_0x57e6();}(function(_0x2df1f7,_0x34e4a3){const _0x26a05b=a246_0x2f4f,_0x2825c7=_0x2df1f7();while(!![]){try{const _0x2832a6=parseInt(_0x26a05b(0x202))/0x1*(parseInt(_0x26a05b(0x1fc))/0x2)+-parseInt(_0x26a05b(0x1f3))/0x3+parseInt(_0x26a05b(0x1f8))/0x4+-parseInt(_0x26a05b(0x1f4))/0x5*(parseInt(_0x26a05b(0x204))/0x6)+parseInt(_0x26a05b(0x1f5))/0x7+parseInt(_0x26a05b(0x1f1))/0x8+-parseInt(_0x26a05b(0x1fa))/0x9*(parseInt(_0x26a05b(0x200))/0xa);if(_0x2832a6===_0x34e4a3)break;else _0x2825c7['push'](_0x2825c7['shift']());}catch(_0x2d9bf4){_0x2825c7['push'](_0x2825c7['shift']());}}}(a246_0x57e6,0x30782));function a246_0x2f4f(_0x5124b5,_0x4a1ab9){_0x5124b5=_0x5124b5-0x1f1;const _0x57e6a8=a246_0x57e6();let _0x2f4f8b=_0x57e6a8[_0x5124b5];return _0x2f4f8b;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x419d8d){const _0x2a735a=a246_0x2f4f;return typeof _0x419d8d===_0x2a735a(0x205)&&_0x419d8d[_0x2a735a(0x1f9)]()[_0x2a735a(0x1f7)]>0x0?_0x419d8d[_0x2a735a(0x1f9)]():null;}function normalizeCliVersionPolicy(_0x384cfd){const _0x18ef08=a246_0x2f4f;if(!_0x384cfd||typeof _0x384cfd!==_0x18ef08(0x203))return null;const _0x17dcd9=_0x384cfd,_0x44ef23=_0x17dcd9[_0x18ef08(0x206)]&&typeof _0x17dcd9[_0x18ef08(0x206)]===_0x18ef08(0x203)?_0x17dcd9[_0x18ef08(0x206)]:_0x17dcd9,_0x3fdac2=pickString(_0x44ef23['stableVersion'])||pickString(_0x44ef23[_0x18ef08(0x1fb)])||pickString(_0x44ef23[_0x18ef08(0x1ff)]),_0x196b8a=pickString(_0x44ef23[_0x18ef08(0x1f6)])||pickString(_0x44ef23[_0x18ef08(0x1f2)]);if(!_0x3fdac2&&!_0x196b8a)return null;return{'stableVersion':_0x3fdac2,'minimumVersion':_0x196b8a,'upgradeMessage':pickString(_0x44ef23['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x44ef23['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x430149=a246_0x2f4f,_0x594562=new AbortController(),_0x49579c=setTimeout(()=>_0x594562['abort'](),FETCH_TIMEOUT_MS);try{const _0x1be7b1=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x430149(0x201)},'signal':_0x594562['signal']});if(!_0x1be7b1['ok'])return null;const _0xb442a7=await _0x1be7b1[_0x430149(0x1fd)]();return normalizeCliVersionPolicy(_0xb442a7);}catch{return null;}finally{clearTimeout(_0x49579c);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x406884=a246_0x2f4f,_0x58b48c=Date[_0x406884(0x1fe)]();if(hasCachedPolicy){const _0x1c340e=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x58b48c-cacheTime<_0x1c340e)return cachedPolicy;}const _0x4a9d4d=await fetchCliVersionPolicy();return cachedPolicy=_0x4a9d4d,cacheTime=_0x58b48c,hasCachedPolicy=!![],_0x4a9d4d;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a246_0x182d(){const _0x566029=['string','16210200KhuPAr','8KIZHBw','env','1NUpQoc','2980116jXFjAa','858385uCqAeo','11697RebzUA','79248izuiAd','2814LdXSrk','110478LNjpAY','project','70WhdnRE','40CBXRFG','865329ilhPHt'];a246_0x182d=function(){return _0x566029;};return a246_0x182d();}const a246_0x1ef7c4=a246_0x5d75;function a246_0x5d75(_0x4642ba,_0x4a4342){_0x4642ba=_0x4642ba-0xee;const _0x182d30=a246_0x182d();let _0x5d751a=_0x182d30[_0x4642ba];return _0x5d751a;}(function(_0xfb5c2,_0x52a284){const _0x177217=a246_0x5d75,_0x2d085e=_0xfb5c2();while(!![]){try{const _0x53b8c7=parseInt(_0x177217(0xf6))/0x1*(-parseInt(_0x177217(0xfc))/0x2)+parseInt(_0x177217(0xf1))/0x3+-parseInt(_0x177217(0xfa))/0x4*(parseInt(_0x177217(0xef))/0x5)+-parseInt(_0x177217(0xfb))/0x6*(parseInt(_0x177217(0xf9))/0x7)+parseInt(_0x177217(0xf4))/0x8*(parseInt(_0x177217(0xf7))/0x9)+parseInt(_0x177217(0xf0))/0xa*(-parseInt(_0x177217(0xf8))/0xb)+parseInt(_0x177217(0xf3))/0xc;if(_0x53b8c7===_0x52a284)break;else _0x2d085e['push'](_0x2d085e['shift']());}catch(_0x4e65e8){_0x2d085e['push'](_0x2d085e['shift']());}}}(a246_0x182d,0x84513));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a246_0x37463c,getMultiAppConfigs as a246_0x340d52,getTemplateBaseUrl as a246_0x3807bb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xb09fb6){const _0x566c85=a246_0x5d75,_0x51d0b8=readRawConfig(_0xb09fb6);return _0x51d0b8[_0x566c85(0xf5)]&&typeof _0x51d0b8[_0x566c85(0xf5)]===_0x566c85(0xf2)&&initEnv(_0x51d0b8[_0x566c85(0xf5)]),_0x51d0b8;}export function getConfigAppCode(){return a246_0x37463c();}export function getMultiAppConfigs(_0x49aeae=a246_0x1ef7c4(0xee)){return a246_0x340d52(_0x49aeae);}export function getTemplateBaseUrl(){return a246_0x3807bb();}
1
+ const a247_0x2b4205=a247_0x4332;(function(_0x2f3fb2,_0x497160){const _0x396417=a247_0x4332,_0x523de1=_0x2f3fb2();while(!![]){try{const _0x3f7c34=parseInt(_0x396417(0xe7))/0x1*(-parseInt(_0x396417(0xea))/0x2)+parseInt(_0x396417(0xe5))/0x3+-parseInt(_0x396417(0xe2))/0x4+-parseInt(_0x396417(0xe6))/0x5*(parseInt(_0x396417(0xe1))/0x6)+-parseInt(_0x396417(0xe3))/0x7*(-parseInt(_0x396417(0xed))/0x8)+parseInt(_0x396417(0xe8))/0x9*(-parseInt(_0x396417(0xe9))/0xa)+parseInt(_0x396417(0xeb))/0xb;if(_0x3f7c34===_0x497160)break;else _0x523de1['push'](_0x523de1['shift']());}catch(_0x8c3d1b){_0x523de1['push'](_0x523de1['shift']());}}}(a247_0x1068,0x1a2a4));function a247_0x1068(){const _0x5d2507=['652356yTuAid','10HnSeJD','1966YFFIwl','1381028teLzic','project','792ddDOOn','string','18222ptDBfi','114696cBvWeU','2478hFvMgw','env','638286qCnUDc','105DKTbTu','103MLDbWU'];a247_0x1068=function(){return _0x5d2507;};return a247_0x1068();}function a247_0x4332(_0x2f81cb,_0xfc07e4){_0x2f81cb=_0x2f81cb-0xe0;const _0x10685f=a247_0x1068();let _0x433250=_0x10685f[_0x2f81cb];return _0x433250;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a247_0x2e8274,getMultiAppConfigs as a247_0xf1b7e3,getTemplateBaseUrl as a247_0x102638}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1f6ed3){const _0x1945a0=a247_0x4332,_0xe2f974=readRawConfig(_0x1f6ed3);return _0xe2f974[_0x1945a0(0xe4)]&&typeof _0xe2f974[_0x1945a0(0xe4)]===_0x1945a0(0xe0)&&initEnv(_0xe2f974[_0x1945a0(0xe4)]),_0xe2f974;}export function getConfigAppCode(){return a247_0x2e8274();}export function getMultiAppConfigs(_0x29bcbb=a247_0x2b4205(0xec)){return a247_0xf1b7e3(_0x29bcbb);}export function getTemplateBaseUrl(){return a247_0x102638();}
@@ -1 +1 @@
1
- (function(_0x2fe7f4,_0x3d0da7){const _0x1bea72=a247_0x521a,_0x93acad=_0x2fe7f4();while(!![]){try{const _0x124e61=-parseInt(_0x1bea72(0x1dc))/0x1*(-parseInt(_0x1bea72(0x1da))/0x2)+-parseInt(_0x1bea72(0x1d4))/0x3+parseInt(_0x1bea72(0x1d6))/0x4*(parseInt(_0x1bea72(0x1d3))/0x5)+-parseInt(_0x1bea72(0x1d7))/0x6+parseInt(_0x1bea72(0x1db))/0x7*(parseInt(_0x1bea72(0x1e3))/0x8)+-parseInt(_0x1bea72(0x1e1))/0x9*(-parseInt(_0x1bea72(0x1e2))/0xa)+-parseInt(_0x1bea72(0x1d5))/0xb;if(_0x124e61===_0x3d0da7)break;else _0x93acad['push'](_0x93acad['shift']());}catch(_0x32c76f){_0x93acad['push'](_0x93acad['shift']());}}}(a247_0x56fe,0x28b66));function a247_0x521a(_0x9ce18b,_0x4e87bb){_0x9ce18b=_0x9ce18b-0x1d3;const _0x56fee0=a247_0x56fe();let _0x521ae9=_0x56fee0[_0x9ce18b];return _0x521ae9;}function a247_0x56fe(){const _0x394f54=['6430TRiqrq','14jUWkyO','89qFUlIs','copyFileSync','readdirSync','join','name','819eHZjDq','20510aoZDve','397608PzeZHE','5wWLHhL','236853RiqcpE','3568917SSdNCf','628620CXzhfO','955062yMwSnX','isDirectory','mkdirSync'];a247_0x56fe=function(){return _0x394f54;};return a247_0x56fe();}import a247_0x22c481 from'node:path';import a247_0x4ee7df from'node:fs';export async function copyDirectory(_0x1dae89,_0x310771){const _0x27966f=a247_0x521a;try{const _0x1acb3e=a247_0x4ee7df[_0x27966f(0x1de)](_0x1dae89,{'withFileTypes':!![]});a247_0x4ee7df[_0x27966f(0x1d9)](_0x310771,{'recursive':!![]});for(const _0x115516 of _0x1acb3e){const _0x28eb84=a247_0x22c481['join'](_0x1dae89,_0x115516[_0x27966f(0x1e0)]),_0x311b9a=a247_0x22c481[_0x27966f(0x1df)](_0x310771,_0x115516[_0x27966f(0x1e0)]);_0x115516[_0x27966f(0x1d8)]()?await copyDirectory(_0x28eb84,_0x311b9a):a247_0x4ee7df[_0x27966f(0x1dd)](_0x28eb84,_0x311b9a);}}catch(_0x486af2){console['error']('复制目录时出错:',_0x486af2);}}
1
+ function a248_0x4baa(){const _0x2a5fee=['5987150CRssgA','name','1198caXhsC','4gqiXtx','4968864aQKhNZ','error','238uzVWCa','join','23064DXVxmY','11nVRYkX','1207900JJgQIl','isDirectory','readdirSync','4327914yFDjPD','2812629HqWXQx','1624DlKZXz','copyFileSync','复制目录时出错:'];a248_0x4baa=function(){return _0x2a5fee;};return a248_0x4baa();}(function(_0x57dd21,_0x326bd9){const _0x5194e3=a248_0x3322,_0x567b63=_0x57dd21();while(!![]){try{const _0x5e61e3=-parseInt(_0x5194e3(0x121))/0x1*(parseInt(_0x5194e3(0x11c))/0x2)+parseInt(_0x5194e3(0x11b))/0x3*(parseInt(_0x5194e3(0x122))/0x4)+-parseInt(_0x5194e3(0x117))/0x5+parseInt(_0x5194e3(0x11a))/0x6+parseInt(_0x5194e3(0x113))/0x7*(parseInt(_0x5194e3(0x115))/0x8)+-parseInt(_0x5194e3(0x123))/0x9+parseInt(_0x5194e3(0x11f))/0xa*(parseInt(_0x5194e3(0x116))/0xb);if(_0x5e61e3===_0x326bd9)break;else _0x567b63['push'](_0x567b63['shift']());}catch(_0x100463){_0x567b63['push'](_0x567b63['shift']());}}}(a248_0x4baa,0x8fd5b));import a248_0x3003dc from'node:path';function a248_0x3322(_0x3f1ba3,_0x5cb405){_0x3f1ba3=_0x3f1ba3-0x113;const _0x4baaae=a248_0x4baa();let _0x3322cc=_0x4baaae[_0x3f1ba3];return _0x3322cc;}import a248_0x516428 from'node:fs';export async function copyDirectory(_0x390ff9,_0x56bbc6){const _0x39591b=a248_0x3322;try{const _0x2c8798=a248_0x516428[_0x39591b(0x119)](_0x390ff9,{'withFileTypes':!![]});a248_0x516428['mkdirSync'](_0x56bbc6,{'recursive':!![]});for(const _0x5851cb of _0x2c8798){const _0x454f29=a248_0x3003dc['join'](_0x390ff9,_0x5851cb[_0x39591b(0x120)]),_0x62cf7f=a248_0x3003dc[_0x39591b(0x114)](_0x56bbc6,_0x5851cb[_0x39591b(0x120)]);_0x5851cb[_0x39591b(0x118)]()?await copyDirectory(_0x454f29,_0x62cf7f):a248_0x516428[_0x39591b(0x11d)](_0x454f29,_0x62cf7f);}}catch(_0x1341f5){console[_0x39591b(0x124)](_0x39591b(0x11e),_0x1341f5);}}