@lovrabet/rabetbase-cli 2.1.6-beta.0 → 2.1.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -0
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -0
  55. package/lib/commands/dataset/link-delete.js +1 -0
  56. package/lib/commands/dataset/link-shared.js +1 -0
  57. package/lib/commands/dataset/link-update.js +1 -0
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -0
  77. package/lib/commands/issue/report.js +1 -0
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +2 -1
@@ -1 +1 @@
1
- function a137_0x3fd2(_0x55ad2c,_0x453525){_0x55ad2c=_0x55ad2c-0x174;const _0x4670ec=a137_0x4670();let _0x3fd27d=_0x4670ec[_0x55ad2c];return _0x3fd27d;}function a137_0x4670(){const _0x27a3d8=['No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','entries','isNaN','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','join','.\x20Be\x20more\x20specific.','dbId','dbtableConfig','find','db-','dbName','231enmFrU','40ZNBSDx','map','81053DtZKJM','toLowerCase','176150ZqYpfF','341586LFfViU','filter','includes','30cLjkBW','\x22\x20matches\x20multiple\x20databases:\x20','2912520NyhZFV','5178ZxTHAe','length','No\x20database\x20matching\x20\x22','set','301016RjkdJn','155995NBEqcG'];a137_0x4670=function(){return _0x27a3d8;};return a137_0x4670();}(function(_0x5cf153,_0x2f69ea){const _0x4f3f4e=a137_0x3fd2,_0x249ab2=_0x5cf153();while(!![]){try{const _0x33559e=-parseInt(_0x4f3f4e(0x17d))/0x1+-parseInt(_0x4f3f4e(0x178))/0x2*(-parseInt(_0x4f3f4e(0x189))/0x3)+parseInt(_0x4f3f4e(0x17c))/0x4+parseInt(_0x4f3f4e(0x18e))/0x5+parseInt(_0x4f3f4e(0x175))/0x6*(parseInt(_0x4f3f4e(0x18c))/0x7)+parseInt(_0x4f3f4e(0x18a))/0x8*(parseInt(_0x4f3f4e(0x18f))/0x9)+-parseInt(_0x4f3f4e(0x177))/0xa;if(_0x33559e===_0x2f69ea)break;else _0x249ab2['push'](_0x249ab2['shift']());}catch(_0x2fea85){_0x249ab2['push'](_0x249ab2['shift']());}}}(a137_0x4670,0x1aeaf));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x2e51a5){const _0x56055b=a137_0x3fd2;if(cache['has'](_0x2e51a5))return cache['get'](_0x2e51a5);const _0x104ea1=await listDatasets(_0x2e51a5),_0x4fda07=new Map();for(const _0x5ccc03 of _0x104ea1){const _0x16dd07=_0x5ccc03[_0x56055b(0x185)];_0x16dd07?.['dbId']!=null&&_0x4fda07[_0x56055b(0x17b)](_0x16dd07[_0x56055b(0x184)],_0x16dd07[_0x56055b(0x188)]??_0x56055b(0x187)+_0x16dd07[_0x56055b(0x184)]);}const _0x18b904=[..._0x4fda07[_0x56055b(0x17f)]()][_0x56055b(0x18b)](([_0x58fe5d,_0x1f55a0])=>({'dbId':_0x58fe5d,'dbName':_0x1f55a0}));return cache[_0x56055b(0x17b)](_0x2e51a5,_0x18b904),_0x18b904;}export async function resolveDb(_0x17f510,_0x536dd8){const _0x2cd0c5=a137_0x3fd2,_0x1095cd=await listDatabases(_0x17f510);if(_0x1095cd[_0x2cd0c5(0x179)]===0x0)return{'resolved':[],'error':_0x2cd0c5(0x17e)};if(!_0x536dd8)return{'resolved':_0x1095cd};const _0x3b8105=Number(_0x536dd8);if(!Number[_0x2cd0c5(0x180)](_0x3b8105)){const _0x197314=_0x1095cd['find'](_0x3d81e6=>_0x3d81e6[_0x2cd0c5(0x184)]===_0x3b8105);if(_0x197314)return{'resolved':[_0x197314]};}const _0x4aab3c=_0x536dd8[_0x2cd0c5(0x18d)](),_0x3ea21c=_0x1095cd[_0x2cd0c5(0x190)](_0x3731c4=>_0x3731c4['dbName']['toLowerCase']()[_0x2cd0c5(0x174)](_0x4aab3c));if(_0x3ea21c[_0x2cd0c5(0x179)]>0x0)return{'resolved':_0x3ea21c};const _0x55be71=_0x1095cd[_0x2cd0c5(0x18b)](_0x57e653=>_0x57e653[_0x2cd0c5(0x188)]+'\x20('+_0x57e653[_0x2cd0c5(0x184)]+')')[_0x2cd0c5(0x182)](',\x20');return{'resolved':[],'error':_0x2cd0c5(0x17a)+_0x536dd8+'\x22.\x20Available:\x20'+_0x55be71};}export async function resolveOneDb(_0x1d73a8,_0x372ffb){const _0x350e07=a137_0x3fd2,{resolved:_0x21635f,error:_0x731926}=await resolveDb(_0x1d73a8,_0x372ffb);if(_0x731926)return{'db':null,'error':_0x731926};if(_0x21635f[_0x350e07(0x179)]===0x1)return{'db':_0x21635f[0x0]};if(!_0x372ffb){const _0xe91938=_0x21635f[_0x350e07(0x18b)](_0x2acc38=>_0x2acc38[_0x350e07(0x188)]+'\x20('+_0x2acc38[_0x350e07(0x184)]+')')['join'](',\x20');return{'db':null,'error':_0x350e07(0x181)+_0xe91938};}const _0x4be86e=_0x21635f[_0x350e07(0x18b)](_0x34fa4d=>_0x34fa4d[_0x350e07(0x188)]+'\x20('+_0x34fa4d['dbId']+')')[_0x350e07(0x182)](',\x20');return{'db':null,'error':'\x22'+_0x372ffb+_0x350e07(0x176)+_0x4be86e+_0x350e07(0x183)};}export async function getDbName(_0x41e094,_0x2be701){const _0x842222=a137_0x3fd2,_0x1aed2e=await listDatabases(_0x41e094);return _0x1aed2e[_0x842222(0x186)](_0x31ca58=>_0x31ca58['dbId']===_0x2be701)?.[_0x842222(0x188)];}
1
+ (function(_0x57fe54,_0x5ae596){const _0x3ed190=a144_0x1dd5,_0x269e7a=_0x57fe54();while(!![]){try{const _0x349428=parseInt(_0x3ed190(0x17a))/0x1*(-parseInt(_0x3ed190(0x173))/0x2)+-parseInt(_0x3ed190(0x18b))/0x3*(parseInt(_0x3ed190(0x189))/0x4)+-parseInt(_0x3ed190(0x172))/0x5+-parseInt(_0x3ed190(0x183))/0x6+parseInt(_0x3ed190(0x178))/0x7*(-parseInt(_0x3ed190(0x186))/0x8)+-parseInt(_0x3ed190(0x17e))/0x9+-parseInt(_0x3ed190(0x181))/0xa*(-parseInt(_0x3ed190(0x177))/0xb);if(_0x349428===_0x5ae596)break;else _0x269e7a['push'](_0x269e7a['shift']());}catch(_0x21db98){_0x269e7a['push'](_0x269e7a['shift']());}}}(a144_0x68b1,0xe0231));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a144_0x1dd5(_0xa214bd,_0x4c9caf){_0xa214bd=_0xa214bd-0x172;const _0x68b166=a144_0x68b1();let _0x1dd503=_0x68b166[_0xa214bd];return _0x1dd503;}export async function listDatabases(_0x5b0e02){const _0x40d859=a144_0x1dd5;if(cache['has'](_0x5b0e02))return cache[_0x40d859(0x176)](_0x5b0e02);const _0xc5196f=await listDatasets(_0x5b0e02),_0x23b640=new Map();for(const _0x21d7b4 of _0xc5196f){const _0x5f37b5=_0x21d7b4['dbtableConfig'];_0x5f37b5?.['dbId']!=null&&_0x23b640[_0x40d859(0x182)](_0x5f37b5[_0x40d859(0x180)],_0x5f37b5['dbName']??_0x40d859(0x17c)+_0x5f37b5['dbId']);}const _0x4c566f=[..._0x23b640[_0x40d859(0x179)]()]['map'](([_0x212185,_0x3db190])=>({'dbId':_0x212185,'dbName':_0x3db190}));return cache[_0x40d859(0x182)](_0x5b0e02,_0x4c566f),_0x4c566f;}export async function resolveDb(_0x1a940a,_0x190959){const _0x3b1073=a144_0x1dd5,_0x54c0b4=await listDatabases(_0x1a940a);if(_0x54c0b4['length']===0x0)return{'resolved':[],'error':_0x3b1073(0x175)};if(!_0x190959)return{'resolved':_0x54c0b4};const _0x310698=Number(_0x190959);if(!Number[_0x3b1073(0x17b)](_0x310698)){const _0x20c8f9=_0x54c0b4['find'](_0x59d92c=>_0x59d92c['dbId']===_0x310698);if(_0x20c8f9)return{'resolved':[_0x20c8f9]};}const _0x2911a0=_0x190959[_0x3b1073(0x188)](),_0x2bb328=_0x54c0b4[_0x3b1073(0x187)](_0x54eca3=>_0x54eca3['dbName'][_0x3b1073(0x188)]()['includes'](_0x2911a0));if(_0x2bb328[_0x3b1073(0x174)]>0x0)return{'resolved':_0x2bb328};const _0x6d0f1f=_0x54c0b4[_0x3b1073(0x185)](_0x1d203a=>_0x1d203a[_0x3b1073(0x17f)]+'\x20('+_0x1d203a['dbId']+')')[_0x3b1073(0x18a)](',\x20');return{'resolved':[],'error':_0x3b1073(0x184)+_0x190959+'\x22.\x20Available:\x20'+_0x6d0f1f};}export async function resolveOneDb(_0x334e8d,_0x4738f9){const _0x53f3f0=a144_0x1dd5,{resolved:_0x545693,error:_0x4755a0}=await resolveDb(_0x334e8d,_0x4738f9);if(_0x4755a0)return{'db':null,'error':_0x4755a0};if(_0x545693['length']===0x1)return{'db':_0x545693[0x0]};if(!_0x4738f9){const _0x28f008=_0x545693[_0x53f3f0(0x185)](_0x1f2afe=>_0x1f2afe[_0x53f3f0(0x17f)]+'\x20('+_0x1f2afe[_0x53f3f0(0x180)]+')')['join'](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x28f008};}const _0x2297b9=_0x545693[_0x53f3f0(0x185)](_0x25337c=>_0x25337c[_0x53f3f0(0x17f)]+'\x20('+_0x25337c[_0x53f3f0(0x180)]+')')[_0x53f3f0(0x18a)](',\x20');return{'db':null,'error':'\x22'+_0x4738f9+_0x53f3f0(0x17d)+_0x2297b9+'.\x20Be\x20more\x20specific.'};}function a144_0x68b1(){const _0x2c60fe=['331709hcHamv','entries','2119FuNmIe','isNaN','db-','\x22\x20matches\x20multiple\x20databases:\x20','10865493OqofUA','dbName','dbId','990SntEmb','set','6419196vhnlmG','No\x20database\x20matching\x20\x22','map','160JzlXoV','filter','toLowerCase','36HVFnft','join','433119ddFPUY','find','2830085DbNZkZ','138pPDCGi','length','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','get','683837hFffZQ'];a144_0x68b1=function(){return _0x2c60fe;};return a144_0x68b1();}export async function getDbName(_0x4d846f,_0x80eace){const _0x467cf8=a144_0x1dd5,_0x499067=await listDatabases(_0x4d846f);return _0x499067[_0x467cf8(0x18c)](_0x3dd282=>_0x3dd282[_0x467cf8(0x180)]===_0x80eace)?.[_0x467cf8(0x17f)];}
@@ -1 +1 @@
1
- const a138_0x549f1d=a138_0x678a;(function(_0xe5ecbe,_0x3c99c5){const _0x36d1b7=a138_0x678a,_0x17261f=_0xe5ecbe();while(!![]){try{const _0x3bfe99=-parseInt(_0x36d1b7(0x1d5))/0x1+-parseInt(_0x36d1b7(0x1cf))/0x2+-parseInt(_0x36d1b7(0x1d1))/0x3*(parseInt(_0x36d1b7(0x1d0))/0x4)+parseInt(_0x36d1b7(0x1df))/0x5*(parseInt(_0x36d1b7(0x1d6))/0x6)+parseInt(_0x36d1b7(0x1d2))/0x7*(-parseInt(_0x36d1b7(0x1d8))/0x8)+-parseInt(_0x36d1b7(0x1dc))/0x9+-parseInt(_0x36d1b7(0x1dd))/0xa*(-parseInt(_0x36d1b7(0x1d4))/0xb);if(_0x3bfe99===_0x3c99c5)break;else _0x17261f['push'](_0x17261f['shift']());}catch(_0x351f8d){_0x17261f['push'](_0x17261f['shift']());}}}(a138_0xa7cc,0x4b270));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a138_0x678a(_0x598324,_0x11a5fd){_0x598324=_0x598324-0x1cf;const _0xa7cc33=a138_0xa7cc();let _0x678a54=_0xa7cc33[_0x598324];return _0x678a54;}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x264679,_0x5dccc5=process[a138_0x549f1d(0x1d7)]()){const _0x538efc=a138_0x549f1d,_0x499889=resolve(_0x5dccc5),_0xfb67fb=join(_0x499889,_0x538efc(0x1e1),_0x538efc(0x1db));return{'projectRoot':_0x499889,'pagesBaseDir':_0xfb67fb,'appPagesDir':join(_0xfb67fb,_0x264679),'lockFilePath':join(_0x499889,'.rabetbase',_0x538efc(0x1d9))};}export function buildPageFileName(_0x4da844,_0xefab8){const _0x4debe2=a138_0x549f1d;return _0x4da844+'-'+String(_0xefab8)[_0x4debe2(0x1da)]()+_0x4debe2(0x1d3);}export function resolvePageFilePath(_0x43534d,_0x259a59,_0x252c47){const _0x20e408=a138_0x549f1d;return join(_0x43534d[_0x20e408(0x1e0)],buildPageFileName(_0x259a59,_0x252c47));}export async function ensureParentDirectory(_0x454ae9){await mkdir(dirname(_0x454ae9),{'recursive':!![]});}function a138_0xa7cc(){const _0x4739b7=['4731507BaUwGZ','10898230YcXBpE','F_OK','625060PCyFDd','appPagesDir','.rabetbase','95622urBcdq','101388eBOEVZ','21tCGPKW','623PXzQvQ','.json','11grxepa','439147QHzPSu','24hPOdXW','cwd','8264fnFSoI','page.lock.json','toUpperCase','page'];a138_0xa7cc=function(){return _0x4739b7;};return a138_0xa7cc();}export async function fileExists(_0x551051){const _0x3bc9c3=a138_0x549f1d;try{return await access(_0x551051,constants[_0x3bc9c3(0x1de)]),!![];}catch{return![];}}
1
+ const a145_0x2c8a9f=a145_0x441d;function a145_0x116d(){const _0x9957d6=['.json','330kBOXvZ','6070vQeWtQ','654eYgosC','cwd','3mdPmIH','691MeicKU','1317415zKlEay','2051708lLTXjt','3258136twfiip','7kMrrbs','toUpperCase','14375ZNRcFn','24025308GLvaFu','9495JvCwWr','.rabetbase','page.lock.json'];a145_0x116d=function(){return _0x9957d6;};return a145_0x116d();}(function(_0x12b32b,_0x49d255){const _0x27190a=a145_0x441d,_0x1e59d1=_0x12b32b();while(!![]){try{const _0xe74974=parseInt(_0x27190a(0xa7))/0x1*(parseInt(_0x27190a(0xa2))/0x2)+parseInt(_0x27190a(0xa6))/0x3*(-parseInt(_0x27190a(0xa9))/0x4)+-parseInt(_0x27190a(0xad))/0x5*(parseInt(_0x27190a(0xa4))/0x6)+-parseInt(_0x27190a(0xab))/0x7*(parseInt(_0x27190a(0xaa))/0x8)+-parseInt(_0x27190a(0xaf))/0x9*(parseInt(_0x27190a(0xa3))/0xa)+parseInt(_0x27190a(0xa8))/0xb+parseInt(_0x27190a(0xae))/0xc;if(_0xe74974===_0x49d255)break;else _0x1e59d1['push'](_0x1e59d1['shift']());}catch(_0x5e0387){_0x1e59d1['push'](_0x1e59d1['shift']());}}}(a145_0x116d,0x585cf));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x4e3c03,_0x1394f1=process[a145_0x2c8a9f(0xa5)]()){const _0x1818be=a145_0x2c8a9f,_0x4c41a6=resolve(_0x1394f1),_0x3be3dc=join(_0x4c41a6,_0x1818be(0xb0),'page');return{'projectRoot':_0x4c41a6,'pagesBaseDir':_0x3be3dc,'appPagesDir':join(_0x3be3dc,_0x4e3c03),'lockFilePath':join(_0x4c41a6,'.rabetbase',_0x1818be(0xb1))};}export function buildPageFileName(_0xd3e6ba,_0x5ea8e6){const _0xcb9c83=a145_0x2c8a9f;return _0xd3e6ba+'-'+String(_0x5ea8e6)[_0xcb9c83(0xac)]()+_0xcb9c83(0xb2);}export function resolvePageFilePath(_0x274c92,_0x52bba3,_0x5c12c3){return join(_0x274c92['appPagesDir'],buildPageFileName(_0x52bba3,_0x5c12c3));}export async function ensureParentDirectory(_0x289f99){await mkdir(dirname(_0x289f99),{'recursive':!![]});}function a145_0x441d(_0x431b9e,_0x4e8067){_0x431b9e=_0x431b9e-0xa2;const _0x116d50=a145_0x116d();let _0x441da1=_0x116d50[_0x431b9e];return _0x441da1;}export async function fileExists(_0x406e82){try{return await access(_0x406e82,constants['F_OK']),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a139_0x4446(_0x57bace,_0x14f3e6){_0x57bace=_0x57bace-0x70;const _0x3b75c4=a139_0x3b75();let _0x4446e1=_0x3b75c4[_0x57bace];return _0x4446e1;}(function(_0x342bf1,_0x222478){const _0xc80584=a139_0x4446,_0x486405=_0x342bf1();while(!![]){try{const _0x287dd8=parseInt(_0xc80584(0x72))/0x1+parseInt(_0xc80584(0x7c))/0x2+-parseInt(_0xc80584(0x75))/0x3+parseInt(_0xc80584(0x71))/0x4+parseInt(_0xc80584(0x74))/0x5*(-parseInt(_0xc80584(0x76))/0x6)+-parseInt(_0xc80584(0x7b))/0x7*(parseInt(_0xc80584(0x77))/0x8)+parseInt(_0xc80584(0x7d))/0x9;if(_0x287dd8===_0x222478)break;else _0x486405['push'](_0x486405['shift']());}catch(_0x5ab251){_0x486405['push'](_0x486405['shift']());}}}(a139_0x3b75,0x775af));import a139_0x8972b8 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x118d25){const _0x304501=a139_0x4446;return JSON[_0x304501(0x78)](JSON[_0x304501(0x73)](_0x118d25),null,0x2)+'\x0a';}export function computePageContentHash(_0x2136d6){const _0x360066=a139_0x4446;return a139_0x8972b8[_0x360066(0x7a)](_0x360066(0x70))['update'](_0x2136d6)['digest'](_0x360066(0x79));}function a139_0x3b75(){const _0x581306=['980606xLFRyv','7818219vfmKhp','md5','2363980pBLTsI','780187iekQMd','parse','1121730vvMKMK','2618019yHssTe','12XkCktC','1248SrcnmH','stringify','hex','createHash','41279JsdlGH'];a139_0x3b75=function(){return _0x581306;};return a139_0x3b75();}export function computeSerializedSchemaHash(_0x2d6ae0){return computePageContentHash(serializePageSchemaForFile(_0x2d6ae0));}export async function computePageFileHash(_0x1eb32d){const _0x50646b=await readFile(_0x1eb32d,'utf8');return computePageContentHash(_0x50646b);}
1
+ function a146_0x56ba(_0x5863cc,_0x391406){_0x5863cc=_0x5863cc-0x1b5;const _0x5ee299=a146_0x5ee2();let _0x56ba0e=_0x5ee299[_0x5863cc];return _0x56ba0e;}(function(_0x104961,_0x101f57){const _0x263af0=a146_0x56ba,_0x38c5f9=_0x104961();while(!![]){try{const _0x459434=parseInt(_0x263af0(0x1c2))/0x1+parseInt(_0x263af0(0x1bb))/0x2+-parseInt(_0x263af0(0x1b5))/0x3+parseInt(_0x263af0(0x1c0))/0x4+-parseInt(_0x263af0(0x1bf))/0x5+-parseInt(_0x263af0(0x1be))/0x6+parseInt(_0x263af0(0x1bd))/0x7*(parseInt(_0x263af0(0x1b9))/0x8);if(_0x459434===_0x101f57)break;else _0x38c5f9['push'](_0x38c5f9['shift']());}catch(_0x374f1e){_0x38c5f9['push'](_0x38c5f9['shift']());}}}(a146_0x5ee2,0x54425));import a146_0x46efb9 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x22f0c1){const _0xd5410a=a146_0x56ba;return JSON[_0xd5410a(0x1c1)](JSON[_0xd5410a(0x1b7)](_0x22f0c1),null,0x2)+'\x0a';}function a146_0x5ee2(){const _0x1e8490=['7JlShkb','3569652knWdfs','96990welwTZ','952776wuSYIb','stringify','9965XPuuSN','1666626awwDLu','md5','parse','hex','5714056BLmNbU','update','1105182gOqpPv','utf8'];a146_0x5ee2=function(){return _0x1e8490;};return a146_0x5ee2();}export function computePageContentHash(_0x582ad4){const _0x49dee2=a146_0x56ba;return a146_0x46efb9['createHash'](_0x49dee2(0x1b6))[_0x49dee2(0x1ba)](_0x582ad4)['digest'](_0x49dee2(0x1b8));}export function computeSerializedSchemaHash(_0xd27cad){return computePageContentHash(serializePageSchemaForFile(_0xd27cad));}export async function computePageFileHash(_0x33a07e){const _0x54f4ea=a146_0x56ba,_0x195615=await readFile(_0x33a07e,_0x54f4ea(0x1bc));return computePageContentHash(_0x195615);}
@@ -1 +1 @@
1
- (function(_0x58d676,_0x523acc){const _0x16c337=a140_0x32ff,_0x402ce9=_0x58d676();while(!![]){try{const _0x18fd77=-parseInt(_0x16c337(0xcd))/0x1+parseInt(_0x16c337(0xc3))/0x2*(parseInt(_0x16c337(0xc1))/0x3)+parseInt(_0x16c337(0xc8))/0x4+parseInt(_0x16c337(0xbf))/0x5*(-parseInt(_0x16c337(0xc4))/0x6)+-parseInt(_0x16c337(0xcb))/0x7*(parseInt(_0x16c337(0xca))/0x8)+parseInt(_0x16c337(0xc5))/0x9*(parseInt(_0x16c337(0xc2))/0xa)+parseInt(_0x16c337(0xc6))/0xb*(parseInt(_0x16c337(0xce))/0xc);if(_0x18fd77===_0x523acc)break;else _0x402ce9['push'](_0x402ce9['shift']());}catch(_0x371718){_0x402ce9['push'](_0x402ce9['shift']());}}}(a140_0x35ea,0xbfc6a));import{mkdir,readFile,writeFile}from'node:fs/promises';function a140_0x35ea(){const _0x29ed20=['24WIMoiJ','3433990zveoOm','lastSync','796336MpkHzL','2088iNrbiY','apps','parse','code','pages','4445dtJveL','utf8','91551EsHRdQ','10jlccQI','10gyGoJd','8130ubghdg','12232071JXBiUu','74701tnOIfz','object','6259268JJEdsa','stringify'];a140_0x35ea=function(){return _0x29ed20;};return a140_0x35ea();}function a140_0x32ff(_0x33f51d,_0x31c046){_0x33f51d=_0x33f51d-0xbc;const _0x35eaa2=a140_0x35ea();let _0x32ff55=_0x35eaa2[_0x33f51d];return _0x32ff55;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x56ee4f,_0x543eac){const _0x2590a8=a140_0x32ff,_0x5c08a6={'apps':_0x56ee4f[_0x2590a8(0xcf)]&&typeof _0x56ee4f[_0x2590a8(0xcf)]===_0x2590a8(0xc7)?_0x56ee4f[_0x2590a8(0xcf)]:{}};let _0x217a8f=_0x5c08a6[_0x2590a8(0xcf)][_0x543eac];if(!_0x217a8f)return _0x217a8f={'lastSync':'','pages':{}},_0x5c08a6[_0x2590a8(0xcf)][_0x543eac]=_0x217a8f,{'lockData':_0x5c08a6,'appLock':_0x217a8f};return!_0x217a8f[_0x2590a8(0xcc)]&&(_0x217a8f[_0x2590a8(0xcc)]=''),(!_0x217a8f[_0x2590a8(0xbe)]||typeof _0x217a8f['pages']!==_0x2590a8(0xc7))&&(_0x217a8f[_0x2590a8(0xbe)]={}),{'lockData':_0x5c08a6,'appLock':_0x217a8f};}export async function readPageLockFile(_0x5b9716){const _0x490db2=a140_0x32ff;try{const _0x307899=await readFile(_0x5b9716,'utf8'),_0x592dad=JSON[_0x490db2(0xbc)](_0x307899);return{'apps':_0x592dad[_0x490db2(0xcf)]&&typeof _0x592dad[_0x490db2(0xcf)]===_0x490db2(0xc7)?_0x592dad[_0x490db2(0xcf)]:{}};}catch(_0x2104bf){if(_0x2104bf[_0x490db2(0xbd)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0x2104bf));}}export async function writePageLockFile(_0x41c2ae,_0x1f92d1){const _0x565421=a140_0x32ff;await mkdir(dirname(_0x41c2ae),{'recursive':!![]}),await writeFile(_0x41c2ae,JSON[_0x565421(0xc9)](_0x1f92d1,null,0x2),_0x565421(0xc0));}
1
+ (function(_0x1d8080,_0x21ec01){const _0x51119a=a147_0x5b3c,_0x4827af=_0x1d8080();while(!![]){try{const _0x1bbfef=-parseInt(_0x51119a(0xd3))/0x1*(-parseInt(_0x51119a(0xdc))/0x2)+parseInt(_0x51119a(0xe0))/0x3*(-parseInt(_0x51119a(0xce))/0x4)+parseInt(_0x51119a(0xd6))/0x5*(parseInt(_0x51119a(0xcd))/0x6)+parseInt(_0x51119a(0xdb))/0x7*(-parseInt(_0x51119a(0xd4))/0x8)+parseInt(_0x51119a(0xd2))/0x9+parseInt(_0x51119a(0xd0))/0xa+parseInt(_0x51119a(0xcf))/0xb*(-parseInt(_0x51119a(0xd5))/0xc);if(_0x1bbfef===_0x21ec01)break;else _0x4827af['push'](_0x4827af['shift']());}catch(_0x260065){_0x4827af['push'](_0x4827af['shift']());}}}(a147_0x41b0,0x52a8f));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a147_0x5b3c(_0x2651e8,_0x9249e5){_0x2651e8=_0x2651e8-0xcc;const _0x41b03b=a147_0x41b0();let _0x5b3ccc=_0x41b03b[_0x2651e8];return _0x5b3ccc;}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x1777c2,_0x1d29d9){const _0x506018=a147_0x5b3c,_0x1ef4fa={'apps':_0x1777c2['apps']&&typeof _0x1777c2[_0x506018(0xd9)]==='object'?_0x1777c2[_0x506018(0xd9)]:{}};let _0x23ae9b=_0x1ef4fa[_0x506018(0xd9)][_0x1d29d9];if(!_0x23ae9b)return _0x23ae9b={'lastSync':'','pages':{}},_0x1ef4fa[_0x506018(0xd9)][_0x1d29d9]=_0x23ae9b,{'lockData':_0x1ef4fa,'appLock':_0x23ae9b};return!_0x23ae9b[_0x506018(0xd8)]&&(_0x23ae9b[_0x506018(0xd8)]=''),(!_0x23ae9b['pages']||typeof _0x23ae9b[_0x506018(0xcc)]!==_0x506018(0xda))&&(_0x23ae9b['pages']={}),{'lockData':_0x1ef4fa,'appLock':_0x23ae9b};}export async function readPageLockFile(_0x5a9f51){const _0x5c0b80=a147_0x5b3c;try{const _0x2c7d46=await readFile(_0x5a9f51,'utf8'),_0x3c18d7=JSON[_0x5c0b80(0xdd)](_0x2c7d46);return{'apps':_0x3c18d7[_0x5c0b80(0xd9)]&&typeof _0x3c18d7[_0x5c0b80(0xd9)]==='object'?_0x3c18d7[_0x5c0b80(0xd9)]:{}};}catch(_0x523a61){if(_0x523a61[_0x5c0b80(0xd7)]===_0x5c0b80(0xd1))return null;throw new Error(_0x5c0b80(0xde)+String(_0x523a61));}}export async function writePageLockFile(_0x37f8f4,_0x51396e){const _0x3ebb00=a147_0x5b3c;await mkdir(dirname(_0x37f8f4),{'recursive':!![]}),await writeFile(_0x37f8f4,JSON['stringify'](_0x51396e,null,0x2),_0x3ebb00(0xdf));}function a147_0x41b0(){const _0x115b05=['7273ibSKWm','6JYoUSc','parse','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','utf8','166503speeZp','pages','3742140ncXlyI','12bmxUnR','10483451QcOaUZ','1355080QNizpr','ENOENT','6092550qMenVS','9748BCpXzR','56xcvIUy','12AlWHmX','5wRVSQo','code','lastSync','apps','object'];a147_0x41b0=function(){return _0x115b05;};return a147_0x41b0();}
@@ -1 +1 @@
1
- const a142_0x61d9e8=a142_0x2963;function a142_0x258a(){const _0x5d7550=['3502411vobjen','20814YlUSwh','447918AYQUAt','sql','14QnWkoZ','10QSQdip','.rabetbase','11ZRMMFT','48942jcffXo','sql.lock.json','200BTURON','1812NyfcyJ','611uQESPg','/sql','sql-trash','2455tcuUYn','63612mkBeBU','724374yBTbkl'];a142_0x258a=function(){return _0x5d7550;};return a142_0x258a();}(function(_0x47a144,_0x2568cf){const _0x370d20=a142_0x2963,_0x5408f8=_0x47a144();while(!![]){try{const _0x41bb2b=-parseInt(_0x370d20(0x7c))/0x1*(-parseInt(_0x370d20(0x76))/0x2)+-parseInt(_0x370d20(0x86))/0x3+-parseInt(_0x370d20(0x80))/0x4*(parseInt(_0x370d20(0x84))/0x5)+parseInt(_0x370d20(0x77))/0x6*(-parseInt(_0x370d20(0x79))/0x7)+-parseInt(_0x370d20(0x7f))/0x8*(-parseInt(_0x370d20(0x7d))/0x9)+parseInt(_0x370d20(0x7a))/0xa*(parseInt(_0x370d20(0x87))/0xb)+-parseInt(_0x370d20(0x85))/0xc*(-parseInt(_0x370d20(0x81))/0xd);if(_0x41bb2b===_0x2568cf)break;else _0x5408f8['push'](_0x5408f8['shift']());}catch(_0xa5f980){_0x5408f8['push'](_0x5408f8['shift']());}}}(a142_0x258a,0x31ff4));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a142_0x2963(_0x3c9876,_0x4f6ff1){_0x3c9876=_0x3c9876-0x76;const _0x258a22=a142_0x258a();let _0x296325=_0x258a22[_0x3c9876];return _0x296325;}const DOT_DIR=a142_0x61d9e8(0x7b),LOCK_FILE_NAME=a142_0x61d9e8(0x7e),TRASH_DIR_NAME=a142_0x61d9e8(0x83);export function loadSqlProjectConfig(_0x2aa0b3,_0x2516bd){const _0x36c03d=a142_0x61d9e8,_0x3f8d59=resolve(_0x2516bd??findProjectRootDirectory()),_0x5e069b=DOT_DIR+_0x36c03d(0x82),_0x498467=_0x5e069b+'/'+_0x2aa0b3;return{'projectRoot':_0x3f8d59,'appCode':_0x2aa0b3,'sqlWorkspaceRoot':_0x5e069b,'sqlRoot':_0x498467,'sqlRootDir':resolve(_0x3f8d59,DOT_DIR,_0x36c03d(0x78),_0x2aa0b3),'lockFilePath':resolve(_0x3f8d59,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x3f8d59,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a149_0x258700=a149_0x1def;(function(_0x1645c2,_0x42e195){const _0x476aba=a149_0x1def,_0x2670f9=_0x1645c2();while(!![]){try{const _0x30ce27=parseInt(_0x476aba(0x171))/0x1+-parseInt(_0x476aba(0x165))/0x2+parseInt(_0x476aba(0x172))/0x3*(parseInt(_0x476aba(0x167))/0x4)+parseInt(_0x476aba(0x16b))/0x5*(parseInt(_0x476aba(0x16c))/0x6)+parseInt(_0x476aba(0x168))/0x7*(parseInt(_0x476aba(0x16e))/0x8)+-parseInt(_0x476aba(0x166))/0x9+parseInt(_0x476aba(0x16a))/0xa*(-parseInt(_0x476aba(0x169))/0xb);if(_0x30ce27===_0x42e195)break;else _0x2670f9['push'](_0x2670f9['shift']());}catch(_0x4877de){_0x2670f9['push'](_0x2670f9['shift']());}}}(a149_0x50e7,0x78a59));function a149_0x1def(_0x504911,_0x3f22b1){_0x504911=_0x504911-0x165;const _0x50e72a=a149_0x50e7();let _0x1defd2=_0x50e72a[_0x504911];return _0x1defd2;}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a149_0x258700(0x170),LOCK_FILE_NAME=a149_0x258700(0x16d),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x39a72e,_0x177094){const _0x2e6b3f=a149_0x258700,_0x545209=resolve(_0x177094??findProjectRootDirectory()),_0x13b115=DOT_DIR+'/sql',_0x3c1831=_0x13b115+'/'+_0x39a72e;return{'projectRoot':_0x545209,'appCode':_0x39a72e,'sqlWorkspaceRoot':_0x13b115,'sqlRoot':_0x3c1831,'sqlRootDir':resolve(_0x545209,DOT_DIR,_0x2e6b3f(0x16f),_0x39a72e),'lockFilePath':resolve(_0x545209,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x545209,DOT_DIR,TRASH_DIR_NAME)};}function a149_0x50e7(){const _0x3f960b=['1474195YOhKpd','18cmMcQn','sql.lock.json','8FsmmNj','sql','.rabetbase','421617ecvqCe','243375YQiDcK','1310252jlikrI','2151306WGAkAN','4tktGud','6867987rMbWmb','10780781xmeGlw','10ZyEhHZ'];a149_0x50e7=function(){return _0x3f960b;};return a149_0x50e7();}
@@ -1 +1 @@
1
- function a143_0x1856(_0xffc39d,_0x305d33){_0xffc39d=_0xffc39d-0xda;const _0x39f4ae=a143_0x39f4();let _0x185612=_0x39f4ae[_0xffc39d];return _0x185612;}(function(_0x278b52,_0x3d2d3a){const _0x552162=a143_0x1856,_0x2334f7=_0x278b52();while(!![]){try{const _0x346250=parseInt(_0x552162(0xde))/0x1*(-parseInt(_0x552162(0xe2))/0x2)+parseInt(_0x552162(0xe7))/0x3+parseInt(_0x552162(0xe8))/0x4*(-parseInt(_0x552162(0xe5))/0x5)+parseInt(_0x552162(0xe6))/0x6+parseInt(_0x552162(0xef))/0x7*(parseInt(_0x552162(0xea))/0x8)+parseInt(_0x552162(0xf0))/0x9+-parseInt(_0x552162(0xf6))/0xa*(-parseInt(_0x552162(0xe9))/0xb);if(_0x346250===_0x3d2d3a)break;else _0x2334f7['push'](_0x2334f7['shift']());}catch(_0x411b42){_0x2334f7['push'](_0x2334f7['shift']());}}}(a143_0x39f4,0x1dca6));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x19ab42){const _0x41e8f5=a143_0x1856;if(_0x19ab42===_0x41e8f5(0xda))return _0x41e8f5(0xdb);if(_0x19ab42===_0x41e8f5(0xf1))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x20e94a,_0x3d00d8){const _0x5ef167=a143_0x1856,_0xf627f=[];try{const _0x123aef=await readdir(_0x20e94a,{'withFileTypes':!![]});for(const _0x3d9bcd of _0x123aef){const _0x1798c7=join(_0x20e94a,_0x3d9bcd[_0x5ef167(0xe3)]);if(_0x3d9bcd[_0x5ef167(0xeb)]()){_0xf627f[_0x5ef167(0xe1)](...await scanSqlFilesRecursively(_0x1798c7,_0x3d00d8));continue;}if(!_0x3d9bcd[_0x5ef167(0xf4)]())continue;const _0x271a99=extname(_0x3d9bcd['name'])['toLowerCase'](),_0x4679fd=extensionToMode(_0x271a99);if(!_0x4679fd)continue;const _0x489ce5=relative(_0x3d00d8,_0x1798c7)[_0x5ef167(0xe0)](/\\/g,'/'),_0x453864=_0x489ce5['split']('/')[_0x5ef167(0xf5)](Boolean),_0x255d59=parseSqlPath(_0x453864,_0x3d9bcd['name'],_0x271a99);if(!_0x255d59)continue;_0xf627f['push']({'sqlCode':_0x255d59['sqlCode'],'sqlName':_0x255d59[_0x5ef167(0xec)],'dbDirectory':_0x453864[0x0],'filePath':_0x1798c7,'relativePath':_0x489ce5,'lockKey':_0x255d59[_0x5ef167(0xf3)],'mode':_0x4679fd});}}catch(_0x3a9d1d){if(_0x3a9d1d[_0x5ef167(0xdc)]!==_0x5ef167(0xf2))throw _0x3a9d1d;}return _0xf627f;}export async function scanLocalSqlQueries(_0x26a87c){const _0x15b828=a143_0x1856;return scanSqlFilesRecursively(_0x26a87c[_0x15b828(0xee)],_0x26a87c['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x58a19f,_0x23d272,_0xa35f82){const _0x14447=a143_0x1856,_0x23f3d3=_0xa35f82?.[_0x14447(0xed)]||(_0xa35f82?.[_0x14447(0xec)]||_0xa35f82?.[_0x14447(0xf7)]?buildSqlRelativePath(_0x23d272,_0xa35f82?.['sqlName'],_0xa35f82?.[_0x14447(0xf7)],_0xa35f82?.[_0x14447(0xe4)]||_0x14447(0xdb),_0xa35f82?.['dbId']):buildDefaultSqlFileName(_0x23d272,_0xa35f82?.[_0x14447(0xe4)]||_0x14447(0xdb)));return join(_0x58a19f[_0x14447(0xee)],_0x23f3d3);}export async function directoryExists(_0x293835){try{const _0x194ed0=await stat(_0x293835);return _0x194ed0['isDirectory']();}catch{return![];}}function parseSqlPath(_0x562331,_0x157878,_0x284b32){const _0x16a640=a143_0x1856,_0x9161d1=_0x157878[_0x16a640(0xdd)](0x0,-_0x284b32['length']);if(_0x562331[_0x16a640(0xdf)]<0x2)return null;const _0x3afdbc=_0x9161d1['indexOf']('_');if(_0x3afdbc<=0x0||_0x3afdbc>=_0x9161d1[_0x16a640(0xdf)]-0x1)return null;const _0x182231=_0x9161d1[_0x16a640(0xdd)](0x0,_0x3afdbc);if(!isLikelySqlCode(_0x182231))return null;return{'sqlCode':_0x182231,'sqlName':_0x9161d1[_0x16a640(0xdd)](_0x3afdbc+0x1)};}function a143_0x39f4(){const _0x3e4071=['sql','code','slice','1GHWkmD','length','replace','push','457820CwKcjS','name','mode','20pbYXDG','216930xsRWUa','697830ENFytT','112244tWRwsU','47938GWQRvb','69464tNfcmv','isDirectory','sqlName','path','sqlRootDir','7txdBKJ','377226pkOBdw','.xml','ENOENT','sqlCode','isFile','filter','330AoIXHi','dbName','.sql'];a143_0x39f4=function(){return _0x3e4071;};return a143_0x39f4();}function isLikelySqlCode(_0x4a988a){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x4a988a);}
1
+ (function(_0x318376,_0x5c4225){const _0x4e8a03=a150_0x4ef3,_0xc35186=_0x318376();while(!![]){try{const _0x1e5a33=-parseInt(_0x4e8a03(0x193))/0x1+parseInt(_0x4e8a03(0x19f))/0x2+parseInt(_0x4e8a03(0x192))/0x3+-parseInt(_0x4e8a03(0x18a))/0x4+parseInt(_0x4e8a03(0x19c))/0x5+-parseInt(_0x4e8a03(0x19a))/0x6*(parseInt(_0x4e8a03(0x1a2))/0x7)+parseInt(_0x4e8a03(0x1a3))/0x8;if(_0x1e5a33===_0x5c4225)break;else _0xc35186['push'](_0xc35186['shift']());}catch(_0xe4b600){_0xc35186['push'](_0xc35186['shift']());}}}(a150_0x3d05,0x6b904));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a150_0x3d05(){const _0xd7565c=['.sql','sqlName','sqlRootDir','143979WfEDuP','720511dSJnVo','dbId','split','ENOENT','mybatisXml','sql','test','24114eoCemv','sqlCode','3982700DNcayK','filter','replace','1097606zlWhOp','name','mode','42bzOPhM','641496UaNgJF','.xml','path','push','length','code','1153272YXXeKq','dbName','isDirectory','indexOf','slice'];a150_0x3d05=function(){return _0xd7565c;};return a150_0x3d05();}function extensionToMode(_0x2e8224){const _0x448ace=a150_0x4ef3;if(_0x2e8224===_0x448ace(0x18f))return _0x448ace(0x198);if(_0x2e8224===_0x448ace(0x1a4))return _0x448ace(0x197);return undefined;}async function scanSqlFilesRecursively(_0x356d5f,_0x24ec4d){const _0x1e13b5=a150_0x4ef3,_0x202c11=[];try{const _0x287e5b=await readdir(_0x356d5f,{'withFileTypes':!![]});for(const _0x186702 of _0x287e5b){const _0x478f23=join(_0x356d5f,_0x186702[_0x1e13b5(0x1a0)]);if(_0x186702[_0x1e13b5(0x18c)]()){_0x202c11[_0x1e13b5(0x1a6)](...await scanSqlFilesRecursively(_0x478f23,_0x24ec4d));continue;}if(!_0x186702['isFile']())continue;const _0x59e410=extname(_0x186702[_0x1e13b5(0x1a0)])['toLowerCase'](),_0x1b0148=extensionToMode(_0x59e410);if(!_0x1b0148)continue;const _0x311299=relative(_0x24ec4d,_0x478f23)[_0x1e13b5(0x19e)](/\\/g,'/'),_0x36a7b9=_0x311299[_0x1e13b5(0x195)]('/')[_0x1e13b5(0x19d)](Boolean),_0x4bb6cd=parseSqlPath(_0x36a7b9,_0x186702[_0x1e13b5(0x1a0)],_0x59e410);if(!_0x4bb6cd)continue;_0x202c11[_0x1e13b5(0x1a6)]({'sqlCode':_0x4bb6cd[_0x1e13b5(0x19b)],'sqlName':_0x4bb6cd['sqlName'],'dbDirectory':_0x36a7b9[0x0],'filePath':_0x478f23,'relativePath':_0x311299,'lockKey':_0x4bb6cd[_0x1e13b5(0x19b)],'mode':_0x1b0148});}}catch(_0x1df4c4){if(_0x1df4c4[_0x1e13b5(0x189)]!==_0x1e13b5(0x196))throw _0x1df4c4;}return _0x202c11;}export async function scanLocalSqlQueries(_0x4fd56c){const _0xe9ff79=a150_0x4ef3;return scanSqlFilesRecursively(_0x4fd56c[_0xe9ff79(0x191)],_0x4fd56c[_0xe9ff79(0x191)]);}function a150_0x4ef3(_0x47fdd5,_0x16d179){_0x47fdd5=_0x47fdd5-0x189;const _0x3d0506=a150_0x3d05();let _0x4ef338=_0x3d0506[_0x47fdd5];return _0x4ef338;}export function resolveLocalSqlFilePath(_0x36f131,_0x4a103f,_0x5e58e2){const _0x56ee83=a150_0x4ef3,_0x54573d=_0x5e58e2?.[_0x56ee83(0x1a5)]||(_0x5e58e2?.['sqlName']||_0x5e58e2?.['dbName']?buildSqlRelativePath(_0x4a103f,_0x5e58e2?.[_0x56ee83(0x190)],_0x5e58e2?.[_0x56ee83(0x18b)],_0x5e58e2?.[_0x56ee83(0x1a1)]||'sql',_0x5e58e2?.[_0x56ee83(0x194)]):buildDefaultSqlFileName(_0x4a103f,_0x5e58e2?.['mode']||_0x56ee83(0x198)));return join(_0x36f131[_0x56ee83(0x191)],_0x54573d);}export async function directoryExists(_0x309f47){const _0x4c64f6=a150_0x4ef3;try{const _0xd74b9=await stat(_0x309f47);return _0xd74b9[_0x4c64f6(0x18c)]();}catch{return![];}}function parseSqlPath(_0x507c18,_0x23d1a8,_0x603566){const _0x3d91e3=a150_0x4ef3,_0xbe5e10=_0x23d1a8['slice'](0x0,-_0x603566[_0x3d91e3(0x1a7)]);if(_0x507c18[_0x3d91e3(0x1a7)]<0x2)return null;const _0x4eee87=_0xbe5e10[_0x3d91e3(0x18d)]('_');if(_0x4eee87<=0x0||_0x4eee87>=_0xbe5e10[_0x3d91e3(0x1a7)]-0x1)return null;const _0x9aee03=_0xbe5e10[_0x3d91e3(0x18e)](0x0,_0x4eee87);if(!isLikelySqlCode(_0x9aee03))return null;return{'sqlCode':_0x9aee03,'sqlName':_0xbe5e10[_0x3d91e3(0x18e)](_0x4eee87+0x1)};}function isLikelySqlCode(_0x1894ba){const _0x4e98bc=a150_0x4ef3;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x4e98bc(0x199)](_0x1894ba);}
@@ -1 +1 @@
1
- (function(_0x4f83c4,_0x22877b){const _0x2c0e66=a144_0x2be0,_0x2d62a0=_0x4f83c4();while(!![]){try{const _0x325ac3=parseInt(_0x2c0e66(0xad))/0x1+parseInt(_0x2c0e66(0xac))/0x2*(parseInt(_0x2c0e66(0xae))/0x3)+parseInt(_0x2c0e66(0xb0))/0x4+-parseInt(_0x2c0e66(0xa9))/0x5+-parseInt(_0x2c0e66(0xa3))/0x6+parseInt(_0x2c0e66(0xa5))/0x7*(parseInt(_0x2c0e66(0xab))/0x8)+-parseInt(_0x2c0e66(0xa6))/0x9*(parseInt(_0x2c0e66(0xa8))/0xa);if(_0x325ac3===_0x22877b)break;else _0x2d62a0['push'](_0x2d62a0['shift']());}catch(_0x3e2db8){_0x2d62a0['push'](_0x2d62a0['shift']());}}}(a144_0x28c5,0x6e0d2));function a144_0x2be0(_0x27b522,_0x5718d7){_0x27b522=_0x27b522-0xa2;const _0x28c5f3=a144_0x28c5();let _0x2be030=_0x28c5f3[_0x27b522];return _0x2be030;}import{readFile}from'node:fs/promises';import a144_0x2d03ad from'node:crypto';export function computeSqlContentHash(_0x443865){const _0x1be9c9=a144_0x2be0;return a144_0x2d03ad[_0x1be9c9(0xa7)](_0x1be9c9(0xa4))['update'](_0x443865)[_0x1be9c9(0xa2)](_0x1be9c9(0xaa));}export async function computeSqlFileHash(_0x40e1fb){const _0x1ccf5a=a144_0x2be0,_0x58b594=await readFile(_0x40e1fb,_0x1ccf5a(0xaf));return computeSqlContentHash(_0x58b594);}function a144_0x28c5(){const _0x706a51=['digest','2235324IDEoQy','md5','5985IMbqJG','18DPeDaH','createHash','11967770qdREDh','33610hpqRFF','hex','8376RcAKOe','814326bygmFV','693462dsdCGz','6XLgteT','utf8','3282508jhOSOh'];a144_0x28c5=function(){return _0x706a51;};return a144_0x28c5();}
1
+ (function(_0x3f66fa,_0x2aa6da){const _0x59fe00=a151_0x5c75,_0x5b539e=_0x3f66fa();while(!![]){try{const _0x1cabbb=parseInt(_0x59fe00(0x108))/0x1*(parseInt(_0x59fe00(0x10e))/0x2)+parseInt(_0x59fe00(0x103))/0x3*(-parseInt(_0x59fe00(0x102))/0x4)+parseInt(_0x59fe00(0x105))/0x5+parseInt(_0x59fe00(0x10b))/0x6+parseInt(_0x59fe00(0x107))/0x7+-parseInt(_0x59fe00(0x10d))/0x8+-parseInt(_0x59fe00(0x109))/0x9*(parseInt(_0x59fe00(0x106))/0xa);if(_0x1cabbb===_0x2aa6da)break;else _0x5b539e['push'](_0x5b539e['shift']());}catch(_0x43e50b){_0x5b539e['push'](_0x5b539e['shift']());}}}(a151_0x587c,0x8a661));function a151_0x5c75(_0x59d6d2,_0x10c15c){_0x59d6d2=_0x59d6d2-0x102;const _0x587c69=a151_0x587c();let _0x5c7534=_0x587c69[_0x59d6d2];return _0x5c7534;}import{readFile}from'node:fs/promises';import a151_0x2ed1ef from'node:crypto';export function computeSqlContentHash(_0x33b4f8){const _0x5951c5=a151_0x5c75;return a151_0x2ed1ef[_0x5951c5(0x10a)]('md5')[_0x5951c5(0x104)](_0x33b4f8)[_0x5951c5(0x10c)]('hex');}export async function computeSqlFileHash(_0x266368){const _0x642b6f=await readFile(_0x266368,'utf8');return computeSqlContentHash(_0x642b6f);}function a151_0x587c(){const _0x294697=['121223BFxIzH','1573209miVjXl','createHash','5800374ebMkcb','digest','5107288AkMVBo','2vTknqx','3377624puTYDy','3QIeloe','update','2831200zUlTHe','20rRcwuG','5215756JQzhOE'];a151_0x587c=function(){return _0x294697;};return a151_0x587c();}
@@ -1 +1 @@
1
- (function(_0x5bb919,_0x1cfd2){const _0x1c9786=a145_0x4e04,_0x3f57b5=_0x5bb919();while(!![]){try{const _0x44046b=-parseInt(_0x1c9786(0x176))/0x1*(parseInt(_0x1c9786(0x177))/0x2)+parseInt(_0x1c9786(0x17f))/0x3*(parseInt(_0x1c9786(0x170))/0x4)+-parseInt(_0x1c9786(0x174))/0x5+parseInt(_0x1c9786(0x173))/0x6+-parseInt(_0x1c9786(0x172))/0x7+parseInt(_0x1c9786(0x17c))/0x8*(parseInt(_0x1c9786(0x17b))/0x9)+-parseInt(_0x1c9786(0x17d))/0xa*(-parseInt(_0x1c9786(0x179))/0xb);if(_0x44046b===_0x1cfd2)break;else _0x3f57b5['push'](_0x3f57b5['shift']());}catch(_0x4e2096){_0x3f57b5['push'](_0x3f57b5['shift']());}}}(a145_0x2559,0x422bd));function a145_0x2559(){const _0x4d3acb=['2714kxYGjP','ENOENT','130603vPyjtZ','apps','2232702mSncJw','8rWZNkH','50kkGgIR','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','147kmCSvt','\x22\x20vs\x20lock\x20\x22','sqlRoot','utf8','sqls',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22.\x20','39308lfNIBZ','lastSync','3516835NjfBfC','2059680ksnudl','952680QqBJJX','code','124vFrZcs'];a145_0x2559=function(){return _0x4d3acb;};return a145_0x2559();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a145_0x4e04(_0x11cde5,_0x12b094){_0x11cde5=_0x11cde5-0x170;const _0x25595a=a145_0x2559();let _0x4e04b5=_0x25595a[_0x11cde5];return _0x4e04b5;}export function ensureSqlLockScope(_0x3d0c09,_0x1c323d,_0x3b50d8,_0x5c4488){const _0x1702ca=a145_0x4e04,_0x21624a=_0x3d0c09??createEmptySqlLock();let _0x523f5b=_0x21624a[_0x1702ca(0x17a)][_0x1c323d];if(!_0x523f5b)return _0x523f5b={'sqlRoot':_0x3b50d8,'lastSync':'','sqls':{}},_0x21624a['apps'][_0x1c323d]=_0x523f5b,{'lockData':_0x21624a,'appLock':_0x523f5b};if(!_0x523f5b[_0x1702ca(0x181)])_0x523f5b[_0x1702ca(0x181)]=_0x3b50d8;else{if(_0x523f5b[_0x1702ca(0x181)]!==_0x3b50d8)throw new Error(_0x5c4488+_0x1702ca(0x184)+_0x3b50d8+_0x1702ca(0x180)+_0x523f5b[_0x1702ca(0x181)]+_0x1702ca(0x185)+_0x1702ca(0x17e));}return!_0x523f5b[_0x1702ca(0x183)]&&(_0x523f5b[_0x1702ca(0x183)]={}),!_0x523f5b[_0x1702ca(0x171)]&&(_0x523f5b[_0x1702ca(0x171)]=''),{'lockData':_0x21624a,'appLock':_0x523f5b};}export async function readSqlLockFile(_0xe3bd2d){const _0x405750=a145_0x4e04;try{const _0x32fbbe=await readFile(_0xe3bd2d,_0x405750(0x182));return JSON['parse'](_0x32fbbe);}catch(_0x2f8ca9){if(_0x2f8ca9[_0x405750(0x175)]===_0x405750(0x178))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x2f8ca9));}}export async function writeSqlLockFile(_0x4a24aa,_0x155dc6){const _0x31c924=a145_0x4e04;await mkdir(dirname(_0x4a24aa),{'recursive':!![]}),await writeFile(_0x4a24aa,JSON['stringify'](_0x155dc6,null,0x2),_0x31c924(0x182));}
1
+ function a152_0x202b(){const _0x1bf550=['sqls','apps','ENOENT','20QWuTdl','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','parse','utf8','lastSync','\x22.\x20','52SXKsed','12838869gYCXVh','775732qMbRCg','\x22\x20vs\x20lock\x20\x22','1097158gDTUeX','code','3998060srPDdB','47622kjFGxl','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','2743936ZxaEUM','sqlRoot','134763VyNZkn','385mstFKH'];a152_0x202b=function(){return _0x1bf550;};return a152_0x202b();}(function(_0x363a83,_0x2951fa){const _0x4f78da=a152_0x3fe1,_0x49b780=_0x363a83();while(!![]){try{const _0x441e18=-parseInt(_0x4f78da(0x1da))/0x1+-parseInt(_0x4f78da(0x1dc))/0x2+parseInt(_0x4f78da(0x1e3))/0x3*(parseInt(_0x4f78da(0x1d8))/0x4)+-parseInt(_0x4f78da(0x1de))/0x5+-parseInt(_0x4f78da(0x1df))/0x6*(parseInt(_0x4f78da(0x1e4))/0x7)+-parseInt(_0x4f78da(0x1e1))/0x8+parseInt(_0x4f78da(0x1d9))/0x9*(parseInt(_0x4f78da(0x1d2))/0xa);if(_0x441e18===_0x2951fa)break;else _0x49b780['push'](_0x49b780['shift']());}catch(_0x387dc3){_0x49b780['push'](_0x49b780['shift']());}}}(a152_0x202b,0x82465));import{mkdir,readFile,writeFile}from'node:fs/promises';function a152_0x3fe1(_0x386efd,_0x6b3c90){_0x386efd=_0x386efd-0x1d2;const _0x202bee=a152_0x202b();let _0x3fe1cf=_0x202bee[_0x386efd];return _0x3fe1cf;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x18160a,_0x5b9b1c,_0x109d15,_0x4a4ccf){const _0x5f31ed=a152_0x3fe1,_0x2d2415=_0x18160a??createEmptySqlLock();let _0x467fae=_0x2d2415[_0x5f31ed(0x1e6)][_0x5b9b1c];if(!_0x467fae)return _0x467fae={'sqlRoot':_0x109d15,'lastSync':'','sqls':{}},_0x2d2415[_0x5f31ed(0x1e6)][_0x5b9b1c]=_0x467fae,{'lockData':_0x2d2415,'appLock':_0x467fae};if(!_0x467fae[_0x5f31ed(0x1e2)])_0x467fae[_0x5f31ed(0x1e2)]=_0x109d15;else{if(_0x467fae[_0x5f31ed(0x1e2)]!==_0x109d15)throw new Error(_0x4a4ccf+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x109d15+_0x5f31ed(0x1db)+_0x467fae[_0x5f31ed(0x1e2)]+_0x5f31ed(0x1d7)+_0x5f31ed(0x1e0));}return!_0x467fae[_0x5f31ed(0x1e5)]&&(_0x467fae[_0x5f31ed(0x1e5)]={}),!_0x467fae['lastSync']&&(_0x467fae[_0x5f31ed(0x1d6)]=''),{'lockData':_0x2d2415,'appLock':_0x467fae};}export async function readSqlLockFile(_0x588890){const _0x14e451=a152_0x3fe1;try{const _0x3ee745=await readFile(_0x588890,_0x14e451(0x1d5));return JSON[_0x14e451(0x1d4)](_0x3ee745);}catch(_0x3ea7cc){if(_0x3ea7cc[_0x14e451(0x1dd)]===_0x14e451(0x1e7))return null;throw new Error(_0x14e451(0x1d3)+String(_0x3ea7cc));}}export async function writeSqlLockFile(_0x1e96d9,_0x1775b8){const _0x41a4fe=a152_0x3fe1;await mkdir(dirname(_0x1e96d9),{'recursive':!![]}),await writeFile(_0x1e96d9,JSON['stringify'](_0x1775b8,null,0x2),_0x41a4fe(0x1d5));}
@@ -1 +1 @@
1
- (function(_0x4d76ca,_0xfcece8){const _0x2fcc38=a147_0x59ad,_0xfa8295=_0x4d76ca();while(!![]){try{const _0x47c27b=-parseInt(_0x2fcc38(0x79))/0x1*(-parseInt(_0x2fcc38(0x89))/0x2)+-parseInt(_0x2fcc38(0x82))/0x3+parseInt(_0x2fcc38(0x7a))/0x4*(parseInt(_0x2fcc38(0x86))/0x5)+parseInt(_0x2fcc38(0x7d))/0x6*(parseInt(_0x2fcc38(0x85))/0x7)+-parseInt(_0x2fcc38(0x87))/0x8+parseInt(_0x2fcc38(0x81))/0x9*(parseInt(_0x2fcc38(0x7c))/0xa)+-parseInt(_0x2fcc38(0x83))/0xb;if(_0x47c27b===_0xfcece8)break;else _0xfa8295['push'](_0xfa8295['shift']());}catch(_0x3c1a82){_0xfa8295['push'](_0xfa8295['shift']());}}}(a147_0x39d5,0x788ed));export function detectSqlMode(_0x356308){const _0x2efd9e=a147_0x59ad,_0x515ccf=_0x356308[_0x2efd9e(0x7b)]();if(/^<(select|insert|update|delete)\b/i[_0x2efd9e(0x84)](_0x515ccf))return _0x2efd9e(0x78);return'sql';}function a147_0x39d5(){const _0x5ccb15=['.xml','replace','mybatisXml','4TyilcT','8hAOVDe','trimStart','871480krbgYn','108282FCFXoy','unknown-db','.sql','trim','45TnFOfD','58452LBvuQO','9497829OKZhza','test','7bNJRRj','1701605YuqzpH','5252040vuIzjz','unknown-sql','449402uQJjng'];a147_0x39d5=function(){return _0x5ccb15;};return a147_0x39d5();}export function getSqlFileExtension(_0x48ca86){const _0x276f0c=a147_0x59ad;return _0x48ca86===_0x276f0c(0x78)?_0x276f0c(0x8a):_0x276f0c(0x7f);}export function buildDefaultSqlFileName(_0x2953d1,_0x49e24c){return''+_0x2953d1+getSqlFileExtension(_0x49e24c);}function a147_0x59ad(_0x7d2fa6,_0x4b066c){_0x7d2fa6=_0x7d2fa6-0x78;const _0x39d54f=a147_0x39d5();let _0x59ad5c=_0x39d54f[_0x7d2fa6];return _0x59ad5c;}export function sanitizeSqlPathSegment(_0x36ece4,_0x591f26){const _0x1b753a=a147_0x59ad,_0x4175e2=String(_0x36ece4??'')[_0x1b753a(0x80)](),_0x45c3a7=_0x4175e2[_0x1b753a(0x8b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1b753a(0x8b)](/\s+/g,'-')[_0x1b753a(0x8b)](/-+/g,'-')['replace'](/^\.+/,'')[_0x1b753a(0x8b)](/\.+$/,'')[_0x1b753a(0x8b)](/^-+/,'')[_0x1b753a(0x8b)](/-+$/,'');return _0x45c3a7||_0x591f26;}export function buildDbDirectoryName(_0x3493bd,_0x702515){const _0x3b1c2d=a147_0x59ad;return sanitizeSqlPathSegment(_0x3493bd,_0x702515!=null?'db-'+_0x702515:_0x3b1c2d(0x7e));}export function buildSqlRelativePath(_0x74063,_0x421fd2,_0x5842f7,_0x50b9eb,_0x4b5ec5){const _0x3686f9=a147_0x59ad,_0x588b5e=buildDbDirectoryName(_0x5842f7,_0x4b5ec5),_0x442923=sanitizeSqlPathSegment(_0x74063,_0x3686f9(0x88)),_0x244577=sanitizeSqlPathSegment(_0x421fd2,_0x442923);return _0x588b5e+'/'+_0x442923+'_'+_0x244577+getSqlFileExtension(_0x50b9eb);}
1
+ (function(_0x2fa76b,_0x46d037){const _0x51ba3b=a154_0x228f,_0x24569f=_0x2fa76b();while(!![]){try{const _0x2295e7=parseInt(_0x51ba3b(0x1ef))/0x1*(parseInt(_0x51ba3b(0x1ed))/0x2)+parseInt(_0x51ba3b(0x1ee))/0x3*(parseInt(_0x51ba3b(0x1f2))/0x4)+parseInt(_0x51ba3b(0x1f4))/0x5+parseInt(_0x51ba3b(0x1f1))/0x6+parseInt(_0x51ba3b(0x1f6))/0x7+-parseInt(_0x51ba3b(0x1f3))/0x8*(-parseInt(_0x51ba3b(0x1f8))/0x9)+-parseInt(_0x51ba3b(0x1f7))/0xa;if(_0x2295e7===_0x46d037)break;else _0x24569f['push'](_0x24569f['shift']());}catch(_0x4c894e){_0x24569f['push'](_0x24569f['shift']());}}}(a154_0x4dbc,0x8d537));export function detectSqlMode(_0x3980c9){const _0x40f1d9=a154_0x228f,_0x13266e=_0x3980c9['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x40f1d9(0x1f5)](_0x13266e))return _0x40f1d9(0x1f9);return _0x40f1d9(0x1ea);}export function getSqlFileExtension(_0x1af356){const _0x29143e=a154_0x228f;return _0x1af356===_0x29143e(0x1f9)?_0x29143e(0x1eb):_0x29143e(0x1fa);}export function buildDefaultSqlFileName(_0x24fa8d,_0x40f5c0){return''+_0x24fa8d+getSqlFileExtension(_0x40f5c0);}export function sanitizeSqlPathSegment(_0x41cab3,_0x545a15){const _0x365be2=a154_0x228f,_0x392972=String(_0x41cab3??'')['trim'](),_0x2e5bd6=_0x392972['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x365be2(0x1ec)](/\s+/g,'-')[_0x365be2(0x1ec)](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')[_0x365be2(0x1ec)](/-+$/,'');return _0x2e5bd6||_0x545a15;}export function buildDbDirectoryName(_0xe972c1,_0x39c23f){const _0x5ad290=a154_0x228f;return sanitizeSqlPathSegment(_0xe972c1,_0x39c23f!=null?_0x5ad290(0x1fb)+_0x39c23f:'unknown-db');}function a154_0x228f(_0x823ba4,_0x48b5b6){_0x823ba4=_0x823ba4-0x1ea;const _0x4dbc94=a154_0x4dbc();let _0x228f65=_0x4dbc94[_0x823ba4];return _0x228f65;}function a154_0x4dbc(){const _0x5edb2d=['273924rmASCA','13612wJMRpR','2385440wGvvXx','616265cYqWnx','test','6086255jDZhdL','16682390gPyUdO','27izZhmr','mybatisXml','.sql','db-','sql','.xml','replace','1034tUxzLP','45hYyUkj','509ggoKPm','unknown-sql'];a154_0x4dbc=function(){return _0x5edb2d;};return a154_0x4dbc();}export function buildSqlRelativePath(_0x4dcbc6,_0x18a964,_0x159902,_0x221781,_0x50ffe2){const _0xf2752a=a154_0x228f,_0x496ea2=buildDbDirectoryName(_0x159902,_0x50ffe2),_0x2ce673=sanitizeSqlPathSegment(_0x4dcbc6,_0xf2752a(0x1f0)),_0x2e06bb=sanitizeSqlPathSegment(_0x18a964,_0x2ce673);return _0x496ea2+'/'+_0x2ce673+'_'+_0x2e06bb+getSqlFileExtension(_0x221781);}
@@ -1 +1 @@
1
- (function(_0x4a2da5,_0x186f66){const _0x5d3245=a148_0x3a4a,_0x960cc5=_0x4a2da5();while(!![]){try{const _0x1c4854=-parseInt(_0x5d3245(0x206))/0x1+parseInt(_0x5d3245(0x207))/0x2*(-parseInt(_0x5d3245(0x1f8))/0x3)+parseInt(_0x5d3245(0x213))/0x4*(parseInt(_0x5d3245(0x204))/0x5)+-parseInt(_0x5d3245(0x205))/0x6+parseInt(_0x5d3245(0x20b))/0x7+parseInt(_0x5d3245(0x201))/0x8+-parseInt(_0x5d3245(0x1f1))/0x9*(-parseInt(_0x5d3245(0x1f2))/0xa);if(_0x1c4854===_0x186f66)break;else _0x960cc5['push'](_0x960cc5['shift']());}catch(_0x3726a9){_0x960cc5['push'](_0x960cc5['shift']());}}}(a148_0x4841,0x8decc));function a148_0x3a4a(_0x26cfae,_0x3f4e64){_0x26cfae=_0x26cfae-0x1f1;const _0x4841ba=a148_0x4841();let _0x3a4aa6=_0x4841ba[_0x26cfae];return _0x3a4aa6;}function a148_0x4841(){const _0x262436=['974660GVDRpt','1126tbXfPa','length','INSERT','UPDATE','3038749BUbqMk','add','match','UNKNOWN','SELECT','matchAll','toUpperCase','WITH','4mTbFng','reason','trim','SQL\x20content\x20is\x20empty','DDL','18kEqeaC','10939750cEiFmF','\x20with\x20parameters:\x20','includes','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','replace','6081FaUMOS','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','from','isDangerous','type','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','join','test','push','174904JrOxJG','startsWith','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','1014735GUFtcZ','898092agtVAe'];a148_0x4841=function(){return _0x262436;};return a148_0x4841();}export function detectSqlType(_0x5d1655){const _0x57855a=a148_0x3a4a;if(!_0x5d1655?.[_0x57855a(0x215)]())return{'type':_0x57855a(0x20e),'isSelectOnly':![],'isDangerous':![],'reason':_0x57855a(0x216)};const _0x87e90a=_0x5d1655[_0x57855a(0x1f7)](/#\{[^}]*\}/g,'?')[_0x57855a(0x1f7)](/\$\{[^}]*\}/g,'?')[_0x57855a(0x1f7)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x57855a(0x215)](),_0x6dfb2a=_0x87e90a['split']('\x0a');let _0x452bca='';for(const _0xb3fac3 of _0x6dfb2a){const _0x3925e7=_0xb3fac3[_0x57855a(0x215)]();if(!_0x3925e7||_0x3925e7[_0x57855a(0x202)]('--')||_0x3925e7[_0x57855a(0x202)]('/*'))continue;_0x452bca=_0x3925e7;break;}const _0x1b28df=_0x452bca[_0x57855a(0x211)]();if(_0x1b28df[_0x57855a(0x202)](_0x57855a(0x20f))||_0x1b28df[_0x57855a(0x202)](_0x57855a(0x212))){const _0xecc6d7=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x57855a(0x1ff)](_0x87e90a);return{'type':_0x57855a(0x20f),'isSelectOnly':!_0xecc6d7,'isDangerous':_0xecc6d7,'reason':_0xecc6d7?_0x57855a(0x1f5):undefined};}if(_0x1b28df['startsWith'](_0x57855a(0x209)))return{'type':_0x57855a(0x209),'isSelectOnly':![],'isDangerous':![]};if(_0x1b28df[_0x57855a(0x202)](_0x57855a(0x20a)))return{'type':_0x57855a(0x20a),'isSelectOnly':![],'isDangerous':![]};if(_0x1b28df[_0x57855a(0x202)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x57855a(0x203)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x1b28df))return{'type':_0x57855a(0x217),'isSelectOnly':![],'isDangerous':!![],'reason':_0x57855a(0x1f6)};return{'type':_0x57855a(0x20e),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1f3a31){const _0x322555=a148_0x3a4a,_0x21fc21=_0x1f3a31[_0x322555(0x1f7)](/#\{[^}]*\}/g,'?')[_0x322555(0x1f7)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x322555(0x1f7)](/--.*$/gm,'')[_0x322555(0x1f7)](/\/\*[\s\S]*?\*\//g,''),_0x39b2cd=[],_0x4c036a=_0x21fc21[_0x322555(0x20d)](/FROM\s+([^\s,)(]+)/i);if(_0x4c036a?.[0x1])_0x39b2cd[_0x322555(0x200)](_0x4c036a[0x1][_0x322555(0x1f7)](/[`"]/g,''));for(const _0x22e1a3 of _0x21fc21[_0x322555(0x210)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x14a16f=_0x22e1a3[0x1]?.[_0x322555(0x1f7)](/[`"]/g,'');if(_0x14a16f&&!_0x39b2cd[_0x322555(0x1f4)](_0x14a16f))_0x39b2cd[_0x322555(0x200)](_0x14a16f);}const _0x350526=_0x21fc21['match'](/INTO\s+([^\s(]+)/i);if(_0x350526?.[0x1]){const _0x10b19b=_0x350526[0x1][_0x322555(0x1f7)](/[`"]/g,'');if(!_0x39b2cd[_0x322555(0x1f4)](_0x10b19b))_0x39b2cd[_0x322555(0x200)](_0x10b19b);}const _0x250bc4=_0x21fc21[_0x322555(0x20d)](/UPDATE\s+([^\s,)(]+)/i);if(_0x250bc4?.[0x1]){const _0x2825bc=_0x250bc4[0x1][_0x322555(0x1f7)](/[`"]/g,'');if(!_0x39b2cd['includes'](_0x2825bc))_0x39b2cd[_0x322555(0x200)](_0x2825bc);}return _0x39b2cd;}function extractParameters(_0x404e5a){const _0x299621=a148_0x3a4a,_0x15efb7=new Set();for(const _0x15840a of _0x404e5a[_0x299621(0x210)](/#\{(\w+)\}/g))if(_0x15840a[0x1])_0x15efb7[_0x299621(0x20c)](_0x15840a[0x1]);for(const _0x21a690 of _0x404e5a['matchAll'](/\$\{(\w+)\}/g))if(_0x21a690[0x1])_0x15efb7[_0x299621(0x20c)](_0x21a690[0x1]);return Array[_0x299621(0x1fa)](_0x15efb7);}export function validateSql(_0x458179){const _0xa1110e=a148_0x3a4a,_0x15bde5=detectSqlType(_0x458179),_0x3a371f=extractTables(_0x458179),_0xb69c76=extractParameters(_0x458179);if(_0x15bde5[_0xa1110e(0x1fb)])return{'valid':![],'sqlType':_0x15bde5,'tables':_0x3a371f,'parameters':_0xb69c76,'message':_0x15bde5[_0xa1110e(0x214)]||_0x15bde5[_0xa1110e(0x1fc)]+_0xa1110e(0x1f9)};if(_0x15bde5[_0xa1110e(0x1fc)]===_0xa1110e(0x20e))return{'valid':![],'sqlType':_0x15bde5,'tables':_0x3a371f,'parameters':_0xb69c76,'message':_0xa1110e(0x1fd)};return{'valid':!![],'sqlType':_0x15bde5,'tables':_0x3a371f,'parameters':_0xb69c76,'message':_0x15bde5[_0xa1110e(0x1fc)]+'\x20query\x20targeting\x20'+(_0x3a371f[_0xa1110e(0x208)]?_0x3a371f['join'](',\x20'):'unknown\x20table(s)')+(_0xb69c76[_0xa1110e(0x208)]?_0xa1110e(0x1f3)+_0xb69c76[_0xa1110e(0x1fe)](',\x20'):'')};}
1
+ (function(_0x4245e3,_0x22e985){const _0xe7b515=a155_0x46b8,_0x5df32d=_0x4245e3();while(!![]){try{const _0x1fe1fc=parseInt(_0xe7b515(0x213))/0x1+-parseInt(_0xe7b515(0x20d))/0x2*(parseInt(_0xe7b515(0x1f8))/0x3)+parseInt(_0xe7b515(0x1fb))/0x4+parseInt(_0xe7b515(0x20e))/0x5+parseInt(_0xe7b515(0x20a))/0x6+-parseInt(_0xe7b515(0x208))/0x7+parseInt(_0xe7b515(0x1ff))/0x8*(-parseInt(_0xe7b515(0x204))/0x9);if(_0x1fe1fc===_0x22e985)break;else _0x5df32d['push'](_0x5df32d['shift']());}catch(_0x7844f6){_0x5df32d['push'](_0x5df32d['shift']());}}}(a155_0x2f14,0x6ab07));export function detectSqlType(_0x4ec691){const _0x252c98=a155_0x46b8;if(!_0x4ec691?.[_0x252c98(0x206)]())return{'type':_0x252c98(0x201),'isSelectOnly':![],'isDangerous':![],'reason':_0x252c98(0x20b)};const _0x20ab4d=_0x4ec691[_0x252c98(0x1fe)](/#\{[^}]*\}/g,'?')[_0x252c98(0x1fe)](/\$\{[^}]*\}/g,'?')[_0x252c98(0x1fe)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x252c98(0x206)](),_0x91b54f=_0x20ab4d['split']('\x0a');let _0x36d691='';for(const _0x38b650 of _0x91b54f){const _0x33034f=_0x38b650[_0x252c98(0x206)]();if(!_0x33034f||_0x33034f[_0x252c98(0x1f2)]('--')||_0x33034f[_0x252c98(0x1f2)]('/*'))continue;_0x36d691=_0x33034f;break;}const _0x41ebab=_0x36d691['toUpperCase']();if(_0x41ebab[_0x252c98(0x1f2)](_0x252c98(0x214))||_0x41ebab[_0x252c98(0x1f2)](_0x252c98(0x1f4))){const _0x218863=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x20ab4d);return{'type':_0x252c98(0x214),'isSelectOnly':!_0x218863,'isDangerous':_0x218863,'reason':_0x218863?_0x252c98(0x1f1):undefined};}if(_0x41ebab[_0x252c98(0x1f2)](_0x252c98(0x202)))return{'type':_0x252c98(0x202),'isSelectOnly':![],'isDangerous':![]};if(_0x41ebab[_0x252c98(0x1f2)](_0x252c98(0x1f3)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x41ebab[_0x252c98(0x1f2)]('DELETE'))return{'type':_0x252c98(0x1f9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x252c98(0x210)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x252c98(0x205)](_0x41ebab))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x252c98(0x1fd)};return{'type':_0x252c98(0x201),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0xba536e){const _0x53e08d=a155_0x46b8,_0x47b5ed=_0xba536e[_0x53e08d(0x1fe)](/#\{[^}]*\}/g,'?')[_0x53e08d(0x1fe)](/\$\{[^}]*\}/g,'?')[_0x53e08d(0x1fe)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4c42fe=[],_0x3613e3=_0x47b5ed[_0x53e08d(0x1f5)](/FROM\s+([^\s,)(]+)/i);if(_0x3613e3?.[0x1])_0x4c42fe[_0x53e08d(0x209)](_0x3613e3[0x1][_0x53e08d(0x1fe)](/[`"]/g,''));for(const _0x5b8674 of _0x47b5ed[_0x53e08d(0x200)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4ec1cf=_0x5b8674[0x1]?.[_0x53e08d(0x1fe)](/[`"]/g,'');if(_0x4ec1cf&&!_0x4c42fe['includes'](_0x4ec1cf))_0x4c42fe[_0x53e08d(0x209)](_0x4ec1cf);}const _0x59d043=_0x47b5ed['match'](/INTO\s+([^\s(]+)/i);if(_0x59d043?.[0x1]){const _0x26827d=_0x59d043[0x1][_0x53e08d(0x1fe)](/[`"]/g,'');if(!_0x4c42fe['includes'](_0x26827d))_0x4c42fe[_0x53e08d(0x209)](_0x26827d);}const _0x1226cc=_0x47b5ed[_0x53e08d(0x1f5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x1226cc?.[0x1]){const _0x329667=_0x1226cc[0x1]['replace'](/[`"]/g,'');if(!_0x4c42fe[_0x53e08d(0x1f7)](_0x329667))_0x4c42fe['push'](_0x329667);}return _0x4c42fe;}function extractParameters(_0x2d73f6){const _0x24d527=a155_0x46b8,_0x2bf8a1=new Set();for(const _0x3caa02 of _0x2d73f6[_0x24d527(0x200)](/#\{(\w+)\}/g))if(_0x3caa02[0x1])_0x2bf8a1[_0x24d527(0x1f6)](_0x3caa02[0x1]);for(const _0x502688 of _0x2d73f6[_0x24d527(0x200)](/\$\{(\w+)\}/g))if(_0x502688[0x1])_0x2bf8a1[_0x24d527(0x1f6)](_0x502688[0x1]);return Array['from'](_0x2bf8a1);}function a155_0x46b8(_0x56f763,_0x2f74a3){_0x56f763=_0x56f763-0x1f1;const _0x2f14b7=a155_0x2f14();let _0x46b8cb=_0x2f14b7[_0x56f763];return _0x46b8cb;}function a155_0x2f14(){const _0x37f1db=['UPDATE','WITH','match','add','includes','3AWWumO','DELETE','type','130952jRnXvd','\x20query\x20targeting\x20','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','replace','366104KCqSJW','matchAll','UNKNOWN','INSERT','join','117uaGzpr','test','trim','unknown\x20table(s)','2409267pvbxyg','push','4210566bmYUOx','SQL\x20content\x20is\x20empty','reason','379866PMBjYt','495755bVNFTb','\x20with\x20parameters:\x20','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','length','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','732382lkigLu','SELECT','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','startsWith'];a155_0x2f14=function(){return _0x37f1db;};return a155_0x2f14();}export function validateSql(_0x191b7c){const _0x3c82d4=a155_0x46b8,_0x27b6a7=detectSqlType(_0x191b7c),_0x365901=extractTables(_0x191b7c),_0x1c9457=extractParameters(_0x191b7c);if(_0x27b6a7['isDangerous'])return{'valid':![],'sqlType':_0x27b6a7,'tables':_0x365901,'parameters':_0x1c9457,'message':_0x27b6a7[_0x3c82d4(0x20c)]||_0x27b6a7[_0x3c82d4(0x1fa)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x27b6a7['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x27b6a7,'tables':_0x365901,'parameters':_0x1c9457,'message':_0x3c82d4(0x212)};return{'valid':!![],'sqlType':_0x27b6a7,'tables':_0x365901,'parameters':_0x1c9457,'message':_0x27b6a7[_0x3c82d4(0x1fa)]+_0x3c82d4(0x1fc)+(_0x365901[_0x3c82d4(0x211)]?_0x365901[_0x3c82d4(0x203)](',\x20'):_0x3c82d4(0x207))+(_0x1c9457[_0x3c82d4(0x211)]?_0x3c82d4(0x20f)+_0x1c9457[_0x3c82d4(0x203)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a149_0x41070c=a149_0xbf17;function a149_0x1683(){const _0x42b4ba=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20`','\x20auth`\x20to\x20login\x20first.','8LoOKwS','102920NDQUUC','2191350xwRYpX','38777xaWYua','315GNrwSJ','1249336WKqKgW','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1725570yiUAIK','2276879rzTUCO','3toJmGW','Set\x20appcode\x20via\x20`','Tip:\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','767130zlZvpx','70lYapoI'];a149_0x1683=function(){return _0x42b4ba;};return a149_0x1683();}(function(_0x2bc624,_0x13624f){const _0x1b49ba=a149_0xbf17,_0x106059=_0x2bc624();while(!![]){try{const _0x169091=parseInt(_0x1b49ba(0x180))/0x1*(parseInt(_0x1b49ba(0x17d))/0x2)+-parseInt(_0x1b49ba(0x187))/0x3*(-parseInt(_0x1b49ba(0x182))/0x4)+parseInt(_0x1b49ba(0x18b))/0x5+parseInt(_0x1b49ba(0x17f))/0x6+parseInt(_0x1b49ba(0x185))/0x7+parseInt(_0x1b49ba(0x17e))/0x8*(parseInt(_0x1b49ba(0x181))/0x9)+parseInt(_0x1b49ba(0x18c))/0xa*(-parseInt(_0x1b49ba(0x186))/0xb);if(_0x169091===_0x13624f)break;else _0x106059['push'](_0x106059['shift']());}catch(_0xd5571){_0x106059['push'](_0x106059['shift']());}}}(a149_0x1683,0x391e3));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a149_0xbf17(_0xd2786,_0x544f12){_0xd2786=_0xd2786-0x17d;const _0x16839a=a149_0x1683();let _0xbf17b4=_0x16839a[_0xd2786];return _0xbf17b4;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a149_0x41070c(0x18e)+CLI_BIN_NAME+a149_0x41070c(0x18f),'configMissingHint':[a149_0x41070c(0x188)+CLI_BIN_NAME+a149_0x41070c(0x18d),a149_0x41070c(0x189)+CLI_BIN_NAME+a149_0x41070c(0x184)]['join'](a149_0x41070c(0x183)),'notInProjectHint':a149_0x41070c(0x18a)});
1
+ const a156_0x87485f=a156_0x2221;(function(_0x115a0b,_0x2cca40){const _0x14b6ab=a156_0x2221,_0x6fa5aa=_0x115a0b();while(!![]){try{const _0x2b01f7=-parseInt(_0x14b6ab(0x170))/0x1*(-parseInt(_0x14b6ab(0x166))/0x2)+parseInt(_0x14b6ab(0x16c))/0x3*(parseInt(_0x14b6ab(0x174))/0x4)+-parseInt(_0x14b6ab(0x168))/0x5+-parseInt(_0x14b6ab(0x175))/0x6*(-parseInt(_0x14b6ab(0x173))/0x7)+-parseInt(_0x14b6ab(0x16a))/0x8+parseInt(_0x14b6ab(0x167))/0x9+parseInt(_0x14b6ab(0x16f))/0xa;if(_0x2b01f7===_0x2cca40)break;else _0x6fa5aa['push'](_0x6fa5aa['shift']());}catch(_0x1a5959){_0x6fa5aa['push'](_0x6fa5aa['shift']());}}}(a156_0x262f,0x9ffde));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a156_0x2221(_0x1e6797,_0x5d0316){_0x1e6797=_0x1e6797-0x166;const _0x262f3d=a156_0x262f();let _0x222170=_0x262f3d[_0x1e6797];return _0x222170;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a156_0x262f(){const _0x55268b=['Run\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','8627910NgjaVt','10739nGeSqq','Tip:\x20`','Set\x20appcode\x20via\x20`','7DDANQs','15908YtKBUw','2208564VPGRYO','44EelOuS','8809650IvwhJa','5000930BnWyeU','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','9473632gEuHxG','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','297hAcIYB'];a156_0x262f=function(){return _0x55268b;};return a156_0x262f();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x87485f(0x16d)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a156_0x87485f(0x172)+CLI_BIN_NAME+a156_0x87485f(0x16b),a156_0x87485f(0x171)+CLI_BIN_NAME+a156_0x87485f(0x169)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a156_0x87485f(0x16e)});
@@ -1 +1 @@
1
- (function(_0x530c0d,_0x29f401){var _0x3336e0=a150_0x5b98,_0x4c77cc=_0x530c0d();while(!![]){try{var _0x26ea60=parseInt(_0x3336e0(0x16e))/0x1*(-parseInt(_0x3336e0(0x171))/0x2)+-parseInt(_0x3336e0(0x173))/0x3*(-parseInt(_0x3336e0(0x16f))/0x4)+-parseInt(_0x3336e0(0x170))/0x5+-parseInt(_0x3336e0(0x172))/0x6+-parseInt(_0x3336e0(0x176))/0x7*(parseInt(_0x3336e0(0x177))/0x8)+parseInt(_0x3336e0(0x16d))/0x9*(-parseInt(_0x3336e0(0x175))/0xa)+parseInt(_0x3336e0(0x174))/0xb;if(_0x26ea60===_0x29f401)break;else _0x4c77cc['push'](_0x4c77cc['shift']());}catch(_0x2a5bbb){_0x4c77cc['push'](_0x4c77cc['shift']());}}}(a150_0x393f,0x894ad));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a150_0x393f(){var _0x42345f=['14lPZaQO','2183672MezBuJ','37602rlHrZI','2MJzwSY','481532eRrMVx','3016220YmqyUC','15178hhuzkv','3056556tErjBj','6KItTxE','25349731ZOLQFV','740WNBEQo'];a150_0x393f=function(){return _0x42345f;};return a150_0x393f();}import{buildAllFlags as a150_0xdf4950}from'@lovrabet/cli-framework';function a150_0x5b98(_0x35acf4,_0x401d51){_0x35acf4=_0x35acf4-0x16d;var _0x393fc8=a150_0x393f();var _0x5b983e=_0x393fc8[_0x35acf4];return _0x5b983e;}export function buildAllFlags(_0x2ab624){return a150_0xdf4950(_0x2ab624,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x2e9321,_0x556643){var _0x3dc4eb=a157_0x106b,_0x4a61ad=_0x2e9321();while(!![]){try{var _0x2fcc0d=parseInt(_0x3dc4eb(0xe9))/0x1+-parseInt(_0x3dc4eb(0xe7))/0x2+parseInt(_0x3dc4eb(0xe6))/0x3+-parseInt(_0x3dc4eb(0xea))/0x4*(parseInt(_0x3dc4eb(0xec))/0x5)+parseInt(_0x3dc4eb(0xe5))/0x6+-parseInt(_0x3dc4eb(0xeb))/0x7*(parseInt(_0x3dc4eb(0xe4))/0x8)+parseInt(_0x3dc4eb(0xe8))/0x9;if(_0x2fcc0d===_0x556643)break;else _0x4a61ad['push'](_0x4a61ad['shift']());}catch(_0x321e6e){_0x4a61ad['push'](_0x4a61ad['shift']());}}}(a157_0x2fa5,0xa14f7));function a157_0x2fa5(){var _0x309b17=['7jeBSLU','6236935AzctIh','6171064ehqOFc','7387758bqgBhp','341817KrYGsR','1756916XCVzBN','9246924ZjSQRB','1185287iUKQUF','4kUBJot'];a157_0x2fa5=function(){return _0x309b17;};return a157_0x2fa5();}function a157_0x106b(_0x44f82a,_0x3cea9f){_0x44f82a=_0x44f82a-0xe4;var _0x2fa5bb=a157_0x2fa5();var _0x106bfd=_0x2fa5bb[_0x44f82a];return _0x106bfd;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x33535d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x23cf53){return a157_0x33535d(_0x23cf53,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a151_0x384e(){const _0x2c20ab=['1323160dKcEgr','89720UMQsQE','validateFlags','16sbJnkl','512051rqEOxS','7610sTmlXN','4886190oyIZwa','16gavhVI','15818yxsseK','130857lUGUpN','parseFlags','1369487fQKzHH','42EQZmhK'];a151_0x384e=function(){return _0x2c20ab;};return a151_0x384e();}const a151_0x5bd47c=a151_0x3a19;(function(_0x26e15b,_0x4c56e0){const _0x25ecb0=a151_0x3a19,_0x233e65=_0x26e15b();while(!![]){try{const _0x14782c=parseInt(_0x25ecb0(0xec))/0x1+-parseInt(_0x25ecb0(0xef))/0x2*(-parseInt(_0x25ecb0(0xe4))/0x3)+parseInt(_0x25ecb0(0xe8))/0x4+parseInt(_0x25ecb0(0xe9))/0x5*(parseInt(_0x25ecb0(0xe7))/0x6)+parseInt(_0x25ecb0(0xe6))/0x7*(-parseInt(_0x25ecb0(0xeb))/0x8)+parseInt(_0x25ecb0(0xee))/0x9+parseInt(_0x25ecb0(0xed))/0xa*(-parseInt(_0x25ecb0(0xf0))/0xb);if(_0x14782c===_0x4c56e0)break;else _0x233e65['push'](_0x233e65['shift']());}catch(_0x59f599){_0x233e65['push'](_0x233e65['shift']());}}}(a151_0x384e,0x5b7b7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a151_0x5bd47c(0xe5)];function a151_0x3a19(_0x31059d,_0x518360){_0x31059d=_0x31059d-0xe4;const _0x384eaa=a151_0x384e();let _0x3a1907=_0x384eaa[_0x31059d];return _0x3a1907;}export const validateFlags=helpers[a151_0x5bd47c(0xea)];
1
+ const a158_0xdd2a92=a158_0x3e86;(function(_0x5e6c0d,_0xd274f0){const _0x392e00=a158_0x3e86,_0x3942af=_0x5e6c0d();while(!![]){try{const _0x4ff849=-parseInt(_0x392e00(0x187))/0x1*(-parseInt(_0x392e00(0x17c))/0x2)+parseInt(_0x392e00(0x17f))/0x3+parseInt(_0x392e00(0x17e))/0x4+-parseInt(_0x392e00(0x183))/0x5*(-parseInt(_0x392e00(0x180))/0x6)+-parseInt(_0x392e00(0x184))/0x7*(parseInt(_0x392e00(0x182))/0x8)+parseInt(_0x392e00(0x17d))/0x9*(-parseInt(_0x392e00(0x181))/0xa)+parseInt(_0x392e00(0x185))/0xb*(parseInt(_0x392e00(0x188))/0xc);if(_0x4ff849===_0xd274f0)break;else _0x3942af['push'](_0x3942af['shift']());}catch(_0x2c22e1){_0x3942af['push'](_0x3942af['shift']());}}}(a158_0x43ad,0x624b9));function a158_0x43ad(){const _0x12e26f=['694970BuDOmg','1171665fsWOpv','1456020iRBTfT','326628bDFwsD','54zwbsnJ','50bwOHrx','88CemTeV','320805qFSXSK','228011mOuXsz','671rvIJri','validateFlags','1zKfnHB','2760yiSwYn'];a158_0x43ad=function(){return _0x12e26f;};return a158_0x43ad();}import{createFlagHelpers}from'@lovrabet/cli-framework';function a158_0x3e86(_0x3d7b07,_0x3d97b3){_0x3d7b07=_0x3d7b07-0x17c;const _0x43ad0d=a158_0x43ad();let _0x3e86db=_0x43ad0d[_0x3d7b07];return _0x3e86db;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a158_0xdd2a92(0x186)];
@@ -1 +1 @@
1
- const a152_0x470df4=a152_0x1ad7;(function(_0x999257,_0x3739a9){const _0x56fa42=a152_0x1ad7,_0x36aa50=_0x999257();while(!![]){try{const _0x352acf=-parseInt(_0x56fa42(0x1b6))/0x1*(parseInt(_0x56fa42(0x1bd))/0x2)+parseInt(_0x56fa42(0x1c4))/0x3*(-parseInt(_0x56fa42(0x1bb))/0x4)+-parseInt(_0x56fa42(0x1b7))/0x5+parseInt(_0x56fa42(0x1ba))/0x6+parseInt(_0x56fa42(0x1b9))/0x7*(-parseInt(_0x56fa42(0x1be))/0x8)+-parseInt(_0x56fa42(0x1c2))/0x9*(-parseInt(_0x56fa42(0x1b8))/0xa)+parseInt(_0x56fa42(0x1c3))/0xb;if(_0x352acf===_0x3739a9)break;else _0x36aa50['push'](_0x36aa50['shift']());}catch(_0x48568c){_0x36aa50['push'](_0x36aa50['shift']());}}}(a152_0x422d,0xc86f9));function a152_0x422d(){const _0x6fe203=['824316XJoWTR','get','612812aOUDNk','8UWCXCE','\x20[args]\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','3327165CwVmYA','22018524uLNgOi','3DLmMSV','generateServiceHelp','generateCommandHelp','3KgUQfv','3785915YmZMXF','20bRxBdE','7830466bnzimD','6486294BQGvDJ'];a152_0x422d=function(){return _0x6fe203;};return a152_0x422d();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a152_0x1ad7(_0xae492a,_0x42c519){_0xae492a=_0xae492a-0x1b6;const _0x422dfc=a152_0x422d();let _0x1ad7e0=_0x422dfc[_0xae492a];return _0x1ad7e0;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x34f45f=>serviceGroups[a152_0x470df4(0x1bc)](_0x34f45f),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a152_0x470df4(0x1c0)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a152_0x470df4(0x1bf),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x165f73){const _0x306455=a152_0x470df4;return generators[_0x306455(0x1c6)](_0x165f73);}export const generateServiceHelp=generators[a152_0x470df4(0x1c5)];export const generateFullHelp=generators[a152_0x470df4(0x1c1)];
1
+ const a159_0x2323b7=a159_0x5170;(function(_0x4f27de,_0xce533b){const _0x4c7e86=a159_0x5170,_0xaba81a=_0x4f27de();while(!![]){try{const _0x422f5c=parseInt(_0x4c7e86(0x15f))/0x1+parseInt(_0x4c7e86(0x15d))/0x2*(-parseInt(_0x4c7e86(0x159))/0x3)+-parseInt(_0x4c7e86(0x164))/0x4+parseInt(_0x4c7e86(0x166))/0x5+parseInt(_0x4c7e86(0x160))/0x6*(parseInt(_0x4c7e86(0x15a))/0x7)+-parseInt(_0x4c7e86(0x165))/0x8+parseInt(_0x4c7e86(0x15b))/0x9;if(_0x422f5c===_0xce533b)break;else _0xaba81a['push'](_0xaba81a['shift']());}catch(_0x154584){_0xaba81a['push'](_0xaba81a['shift']());}}}(a159_0xd840,0x5dd84));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3fd738=>serviceGroups[a159_0x2323b7(0x158)](_0x3fd738),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x2323b7(0x163)+CLI_BIN_NAME+a159_0x2323b7(0x15c),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});function a159_0x5170(_0x1fa3b3,_0x103c15){_0x1fa3b3=_0x1fa3b3-0x158;const _0xd84020=a159_0xd840();let _0x5170ec=_0xd84020[_0x1fa3b3];return _0x5170ec;}export function generateCommandHelp(_0xffa77a){const _0x330bec=a159_0x2323b7;return generators[_0x330bec(0x161)](_0xffa77a);}export const generateServiceHelp=generators[a159_0x2323b7(0x162)];function a159_0xd840(){const _0x56553f=['generateCommandHelp','generateServiceHelp','Requires\x20appcode\x20(set\x20via\x20`','1451044rAAhZY','839864EzVzvF','355305oFvXQT','get','225vFTGHS','7nZFzvO','1590543WmmFtu','\x20project\x20init`\x20or\x20--appcode).','4638BlrFQb','generateFullHelp','139835iQmnfT','3830604ZJIepB'];a159_0xd840=function(){return _0x56553f;};return a159_0xd840();}export const generateFullHelp=generators[a159_0x2323b7(0x15e)];
@@ -1 +1 @@
1
- (function(_0x193c8d,_0x2048de){var _0x50ec18=a153_0x3439,_0x1cc38a=_0x193c8d();while(!![]){try{var _0x12e57b=parseInt(_0x50ec18(0x172))/0x1*(-parseInt(_0x50ec18(0x175))/0x2)+parseInt(_0x50ec18(0x178))/0x3*(parseInt(_0x50ec18(0x174))/0x4)+parseInt(_0x50ec18(0x173))/0x5+parseInt(_0x50ec18(0x170))/0x6+-parseInt(_0x50ec18(0x171))/0x7+parseInt(_0x50ec18(0x177))/0x8+parseInt(_0x50ec18(0x176))/0x9*(parseInt(_0x50ec18(0x179))/0xa);if(_0x12e57b===_0x2048de)break;else _0x1cc38a['push'](_0x1cc38a['shift']());}catch(_0xc4140c){_0x1cc38a['push'](_0x1cc38a['shift']());}}}(a153_0x4588,0x1d201));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a153_0x3439(_0x2f6c8f,_0x3c5224){_0x2f6c8f=_0x2f6c8f-0x170;var _0x4588b3=a153_0x4588();var _0x343929=_0x4588b3[_0x2f6c8f];return _0x343929;}function a153_0x4588(){var _0x804319=['469060Pixirl','12JKoDec','2948BsfPkw','49581oGABKW','436952emhhIl','18378EQZQvZ','390RZpPqd','788412RHCAep','1229291XPPmnR','148gmlAAk'];a153_0x4588=function(){return _0x804319;};return a153_0x4588();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x1c4892,_0x4cabfb){var _0x27f191=a160_0x5a48,_0x44712e=_0x1c4892();while(!![]){try{var _0x181dca=-parseInt(_0x27f191(0x1a4))/0x1+-parseInt(_0x27f191(0x1a5))/0x2*(parseInt(_0x27f191(0x1a9))/0x3)+parseInt(_0x27f191(0x1a3))/0x4*(-parseInt(_0x27f191(0x1a2))/0x5)+-parseInt(_0x27f191(0x1a8))/0x6*(-parseInt(_0x27f191(0x1a7))/0x7)+-parseInt(_0x27f191(0x1ad))/0x8+parseInt(_0x27f191(0x1ab))/0x9*(-parseInt(_0x27f191(0x1aa))/0xa)+parseInt(_0x27f191(0x1a6))/0xb*(parseInt(_0x27f191(0x1ac))/0xc);if(_0x181dca===_0x4cabfb)break;else _0x44712e['push'](_0x44712e['shift']());}catch(_0x5ea8c9){_0x44712e['push'](_0x44712e['shift']());}}}(a160_0xf77c,0x7e70f));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a160_0x5a48(_0x2c354e,_0x421cf1){_0x2c354e=_0x2c354e-0x1a2;var _0xf77c0e=a160_0xf77c();var _0x5a4866=_0xf77c0e[_0x2c354e];return _0x5a4866;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a160_0xf77c(){var _0x2ba360=['5TEMJRC','364972vFvmEp','534704JuERMG','17450bSEXuI','14619qAbgnP','189FWQRxL','114702ERHlMV','261iTVtoO','10GLuZDA','8574678tarwJk','27996FBuDQj','6088392XYrTuy'];a160_0xf77c=function(){return _0x2ba360;};return a160_0xf77c();}
@@ -1 +1 @@
1
- function a154_0x1308(_0x32aa89,_0x3605f9){_0x32aa89=_0x32aa89-0x169;const _0x2056a2=a154_0x2056();let _0x130891=_0x2056a2[_0x32aa89];return _0x130891;}(function(_0x32ab2a,_0x5dab5c){const _0x376782=a154_0x1308,_0x2060ee=_0x32ab2a();while(!![]){try{const _0x2dc0e8=-parseInt(_0x376782(0x171))/0x1+-parseInt(_0x376782(0x16b))/0x2*(parseInt(_0x376782(0x16c))/0x3)+-parseInt(_0x376782(0x16d))/0x4+-parseInt(_0x376782(0x169))/0x5*(parseInt(_0x376782(0x16f))/0x6)+-parseInt(_0x376782(0x170))/0x7+parseInt(_0x376782(0x16e))/0x8+parseInt(_0x376782(0x16a))/0x9;if(_0x2dc0e8===_0x5dab5c)break;else _0x2060ee['push'](_0x2060ee['shift']());}catch(_0x5ad913){_0x2060ee['push'](_0x2060ee['shift']());}}}(a154_0x2056,0x6f4fd));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a154_0x2056(){const _0x4f1f2a=['6237707MWiXHq','544028dzLZVM','1863905tZxNdv','30059172IXaaiC','277814TDmfxp','6QXbfyo','2166000bfWJEK','928240aILsUd','12GrwdRE'];a154_0x2056=function(){return _0x4f1f2a;};return a154_0x2056();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x56f743,_0x117427){const _0x7a751=a161_0xd640,_0x2846a0=_0x56f743();while(!![]){try{const _0x52a13b=parseInt(_0x7a751(0x177))/0x1+-parseInt(_0x7a751(0x17b))/0x2+-parseInt(_0x7a751(0x178))/0x3+parseInt(_0x7a751(0x179))/0x4+-parseInt(_0x7a751(0x17a))/0x5*(-parseInt(_0x7a751(0x17c))/0x6)+-parseInt(_0x7a751(0x17d))/0x7+parseInt(_0x7a751(0x17e))/0x8;if(_0x52a13b===_0x117427)break;else _0x2846a0['push'](_0x2846a0['shift']());}catch(_0x10b541){_0x2846a0['push'](_0x2846a0['shift']());}}}(a161_0x3851,0x48fbb));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a161_0xd640(_0x37df06,_0x14767d){_0x37df06=_0x37df06-0x177;const _0x38516f=a161_0x3851();let _0xd6406e=_0x38516f[_0x37df06];return _0xd6406e;}function a161_0x3851(){const _0x2f2f37=['6052016vDeQtj','141109JvXkYh','1564500lgzjKS','501304MQakrg','20745YcIHvg','101492VOiNfb','534RdoBZT','3647091HYugfp'];a161_0x3851=function(){return _0x2f2f37;};return a161_0x3851();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0x484bb8,_0x21d9aa){var _0xa92de9=a155_0x5ef7,_0x534390=_0x484bb8();while(!![]){try{var _0x1d8d74=-parseInt(_0xa92de9(0x16d))/0x1+parseInt(_0xa92de9(0x16a))/0x2+parseInt(_0xa92de9(0x167))/0x3*(-parseInt(_0xa92de9(0x165))/0x4)+parseInt(_0xa92de9(0x16c))/0x5+parseInt(_0xa92de9(0x166))/0x6*(-parseInt(_0xa92de9(0x169))/0x7)+-parseInt(_0xa92de9(0x16b))/0x8*(-parseInt(_0xa92de9(0x16e))/0x9)+parseInt(_0xa92de9(0x168))/0xa;if(_0x1d8d74===_0x21d9aa)break;else _0x534390['push'](_0x534390['shift']());}catch(_0x3ae2d2){_0x534390['push'](_0x534390['shift']());}}}(a155_0x5c05,0x7b9b7));function a155_0x5ef7(_0x55c661,_0xc55bfa){_0x55c661=_0x55c661-0x165;var _0x5c05f9=a155_0x5c05();var _0x5ef75c=_0x5c05f9[_0x55c661];return _0x5ef75c;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a155_0x5c05(){var _0x1eeb35=['4940gieIAS','90jEymip','372szCPWy','137934rPSByB','16833bxpdLG','6513210aNYSRh','287YVGvXw','945212jexFBr','595472wSPJYc','536700DhYVrM'];a155_0x5c05=function(){return _0x1eeb35;};return a155_0x5c05();}
1
+ function a162_0x2f98(_0x5beb0a,_0xffcf6b){_0x5beb0a=_0x5beb0a-0x1c0;var _0x43917b=a162_0x4391();var _0x2f98b3=_0x43917b[_0x5beb0a];return _0x2f98b3;}(function(_0x16da82,_0x5d0ecd){var _0x2c41b4=a162_0x2f98,_0x2b4fa1=_0x16da82();while(!![]){try{var _0x251a3b=parseInt(_0x2c41b4(0x1c7))/0x1*(-parseInt(_0x2c41b4(0x1c3))/0x2)+-parseInt(_0x2c41b4(0x1cc))/0x3*(-parseInt(_0x2c41b4(0x1c0))/0x4)+-parseInt(_0x2c41b4(0x1c2))/0x5*(parseInt(_0x2c41b4(0x1c4))/0x6)+parseInt(_0x2c41b4(0x1c1))/0x7*(parseInt(_0x2c41b4(0x1cb))/0x8)+-parseInt(_0x2c41b4(0x1c9))/0x9+-parseInt(_0x2c41b4(0x1c5))/0xa*(-parseInt(_0x2c41b4(0x1c8))/0xb)+-parseInt(_0x2c41b4(0x1c6))/0xc*(-parseInt(_0x2c41b4(0x1ca))/0xd);if(_0x251a3b===_0x5d0ecd)break;else _0x2b4fa1['push'](_0x2b4fa1['shift']());}catch(_0x42f5d7){_0x2b4fa1['push'](_0x2b4fa1['shift']());}}}(a162_0x4391,0xec7df));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a162_0x4391(){var _0x1f8e3f=['252SftxQa','275033SfKwtj','2960837PGGvEV','9376938fJDDxO','883714dNJppA','2731576kTTnAR','267wfgXUm','20396tEfhvy','14uoilFD','10ajifhb','14hPCFaG','1537884FuxGQO','70bpTxyf'];a162_0x4391=function(){return _0x1f8e3f;};return a162_0x4391();}
@@ -1 +1 @@
1
- function a156_0x277c(){const _0x4c2553=['name','validation','9918egwiNh','4231364HlAkkB','.\x20Run\x20`','type','`\x20requires\x20either\x20--code\x20or\x20--alias.','string','4007142QoQWcS','40pxvOun','some','No\x20api.ts\x20found\x20in\x20','14cSuUfN','5Fuluwi','alias','132aSpBVW','Unknown\x20alias\x20\x22','1235bSPpLC','Available\x20aliases:\x20','1313649UJvFmF','\x22.\x20','length','3648524hJxIrC','\x20api\x20pull`\x20first.','323042uKLgHc','code','1swkphG','296dOGkRS'];a156_0x277c=function(){return _0x4c2553;};return a156_0x277c();}(function(_0x3c4080,_0x4ce022){const _0x20154b=a156_0x4283,_0x2a2d26=_0x3c4080();while(!![]){try{const _0x1b9fc4=parseInt(_0x20154b(0x1f3))/0x1*(parseInt(_0x20154b(0x1f1))/0x2)+-parseInt(_0x20154b(0x1ec))/0x3+-parseInt(_0x20154b(0x1f8))/0x4*(-parseInt(_0x20154b(0x1e6))/0x5)+parseInt(_0x20154b(0x1fd))/0x6*(-parseInt(_0x20154b(0x1e5))/0x7)+parseInt(_0x20154b(0x1f4))/0x8*(-parseInt(_0x20154b(0x1f7))/0x9)+parseInt(_0x20154b(0x1fe))/0xa*(parseInt(_0x20154b(0x1ef))/0xb)+-parseInt(_0x20154b(0x1e8))/0xc*(-parseInt(_0x20154b(0x1ea))/0xd);if(_0x1b9fc4===_0x4ce022)break;else _0x2a2d26['push'](_0x2a2d26['shift']());}catch(_0x29e601){_0x2a2d26['push'](_0x2a2d26['shift']());}}}(a156_0x277c,0xb2e64));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a156_0x4283(_0x5111d4,_0x86960d){_0x5111d4=_0x5111d4-0x1e4;const _0x277c63=a156_0x277c();let _0x428308=_0x277c63[_0x5111d4];return _0x428308;}export function resolveAliasToCode(_0x12b6a2,_0x5d4d1a,_0x1f721d,_0x178a42){const _0x6ce01e=a156_0x4283,_0x7a9ccc=_0x12b6a2['flags'][_0x6ce01e(0x1ff)](_0x2fe863=>_0x2fe863[_0x6ce01e(0x1f5)]===_0x6ce01e(0x1f2)&&_0x2fe863[_0x6ce01e(0x1fa)]===_0x6ce01e(0x1fc)),_0x501124=_0x12b6a2['flags'][_0x6ce01e(0x1ff)](_0x3078d0=>_0x3078d0[_0x6ce01e(0x1f5)]===_0x6ce01e(0x1e7)&&_0x3078d0['type']==='string');if(!_0x7a9ccc||!_0x501124)return;const _0x20e63b=_0x5d4d1a[_0x6ce01e(0x1f2)]?String(_0x5d4d1a[_0x6ce01e(0x1f2)]):'',_0x179f6b=_0x5d4d1a[_0x6ce01e(0x1e7)]?String(_0x5d4d1a[_0x6ce01e(0x1e7)]):'';if(!_0x20e63b&&!_0x179f6b)throw CliErrors['validation']('`'+_0x178a42+_0x6ce01e(0x1fb));if(_0x179f6b&&!_0x20e63b){const _0x306435=resolveAlias(_0x1f721d,_0x179f6b);if(!_0x306435){const _0x28cd2e=listAliases(_0x1f721d)['map'](_0x2c59c9=>_0x2c59c9['alias']),_0x27b608=_0x28cd2e[_0x6ce01e(0x1ee)]?_0x6ce01e(0x1eb)+_0x28cd2e['join'](',\x20'):_0x6ce01e(0x1e4)+_0x1f721d+_0x6ce01e(0x1f9)+CLI_BIN_NAME+_0x6ce01e(0x1f0);throw CliErrors[_0x6ce01e(0x1f6)](_0x6ce01e(0x1e9)+_0x179f6b+_0x6ce01e(0x1ed)+_0x27b608);}_0x5d4d1a[_0x6ce01e(0x1f2)]=_0x306435;}}
1
+ function a163_0x577e(){const _0x4ee231=['code','name','validation','1511882xjEvAS','join','some','278490DQuScT','Available\x20aliases:\x20','544HBDJkZ','319JCxKHN','No\x20api.ts\x20found\x20in\x20','57591qFtiab','type','\x22.\x20','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','flags','36029940TPbPEM','172lNmZDD','map','176615qSZpnH','387678IWfkSg','70RDpGLy','13620EAKADO','94WMrOIW','string','alias','.\x20Run\x20`'];a163_0x577e=function(){return _0x4ee231;};return a163_0x577e();}(function(_0x974c52,_0x360b85){const _0x2b0e44=a163_0x156a,_0x2c0738=_0x974c52();while(!![]){try{const _0x284d0c=parseInt(_0x2b0e44(0x164))/0x1+-parseInt(_0x2b0e44(0x15d))/0x2*(parseInt(_0x2b0e44(0x15c))/0x3)+-parseInt(_0x2b0e44(0x157))/0x4*(-parseInt(_0x2b0e44(0x159))/0x5)+-parseInt(_0x2b0e44(0x15a))/0x6*(-parseInt(_0x2b0e44(0x15b))/0x7)+parseInt(_0x2b0e44(0x169))/0x8*(-parseInt(_0x2b0e44(0x16c))/0x9)+parseInt(_0x2b0e44(0x167))/0xa*(parseInt(_0x2b0e44(0x16a))/0xb)+-parseInt(_0x2b0e44(0x156))/0xc;if(_0x284d0c===_0x360b85)break;else _0x2c0738['push'](_0x2c0738['shift']());}catch(_0x22d7c7){_0x2c0738['push'](_0x2c0738['shift']());}}}(a163_0x577e,0xcb7eb));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x156a(_0x331ca1,_0x24d2f3){_0x331ca1=_0x331ca1-0x156;const _0x577e57=a163_0x577e();let _0x156acb=_0x577e57[_0x331ca1];return _0x156acb;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2e9352,_0x4e3dc4,_0x4ba849,_0x479836){const _0x155f93=a163_0x156a,_0x6ebe9b=_0x2e9352[_0x155f93(0x172)]['some'](_0x32c626=>_0x32c626[_0x155f93(0x162)]==='code'&&_0x32c626[_0x155f93(0x16d)]===_0x155f93(0x15e)),_0x108bf2=_0x2e9352[_0x155f93(0x172)][_0x155f93(0x166)](_0xc157e3=>_0xc157e3[_0x155f93(0x162)]===_0x155f93(0x15f)&&_0xc157e3[_0x155f93(0x16d)]===_0x155f93(0x15e));if(!_0x6ebe9b||!_0x108bf2)return;const _0x32eb6d=_0x4e3dc4[_0x155f93(0x161)]?String(_0x4e3dc4[_0x155f93(0x161)]):'',_0x341104=_0x4e3dc4[_0x155f93(0x15f)]?String(_0x4e3dc4[_0x155f93(0x15f)]):'';if(!_0x32eb6d&&!_0x341104)throw CliErrors[_0x155f93(0x163)]('`'+_0x479836+_0x155f93(0x170));if(_0x341104&&!_0x32eb6d){const _0x472502=resolveAlias(_0x4ba849,_0x341104);if(!_0x472502){const _0x52a955=listAliases(_0x4ba849)[_0x155f93(0x158)](_0x229508=>_0x229508[_0x155f93(0x15f)]),_0x4be209=_0x52a955['length']?_0x155f93(0x168)+_0x52a955[_0x155f93(0x165)](',\x20'):_0x155f93(0x16b)+_0x4ba849+_0x155f93(0x160)+CLI_BIN_NAME+_0x155f93(0x16f);throw CliErrors[_0x155f93(0x163)](_0x155f93(0x171)+_0x341104+_0x155f93(0x16e)+_0x4be209);}_0x4e3dc4[_0x155f93(0x161)]=_0x472502;}}
@@ -1 +1 @@
1
- const a157_0x1477a6=a157_0x5a4f;(function(_0x45edf9,_0x15709b){const _0x583560=a157_0x5a4f,_0x46cc84=_0x45edf9();while(!![]){try{const _0x6b62c7=parseInt(_0x583560(0x102))/0x1*(parseInt(_0x583560(0xf4))/0x2)+-parseInt(_0x583560(0x104))/0x3*(-parseInt(_0x583560(0xf3))/0x4)+parseInt(_0x583560(0xf2))/0x5*(parseInt(_0x583560(0xdf))/0x6)+parseInt(_0x583560(0x101))/0x7+parseInt(_0x583560(0xf7))/0x8*(parseInt(_0x583560(0xf1))/0x9)+-parseInt(_0x583560(0xfb))/0xa+-parseInt(_0x583560(0xe7))/0xb;if(_0x6b62c7===_0x15709b)break;else _0x46cc84['push'](_0x46cc84['shift']());}catch(_0x1f104b){_0x46cc84['push'](_0x46cc84['shift']());}}}(a157_0x3ce2,0x72aee));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a157_0x3ce2(){const _0x140fac=['authRequired','1075613qNVhYf','312659Gzvlor','explicitAppName','4803xsoPKU','has','1860FnSGhc','isNonInteractive','defaultPageSize','appCode','riskLevel','selectedAppName','⚠\x20\x20High-risk\x20operation:\x20','service','2608661abeyMa','format','filter','resolveApiDomain','apiDir','cancelled','pageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','High-risk\x20operation\x20`','validation','3655359gkjTcc','1290JynIMi','1668CcJKhm','2IdQXTe','resolveAppCode','requiresAuth','8BoStRp','requiresAppCode','cookie','defaultVerbose','9131730rYWcuJ','../core/api-client.js','appcode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','name'];a157_0x3ce2=function(){return _0x140fac;};return a157_0x3ce2();}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a157_0x5a4f(_0x17d307,_0x3e2e3a){_0x17d307=_0x17d307-0xde;const _0x3ce227=a157_0x3ce2();let _0x5a4f4c=_0x3ce227[_0x17d307];return _0x5a4f4c;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a157_0x4cebaa}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x52b84a,_0x5e63ad,_0x2939bb=[]){const _0x357a1f=a157_0x5a4f;return{'rawFlags':_0x5e63ad,'args':_0x2939bb,'resolveAppCode':()=>_0x52b84a[_0x357a1f(0xe2)]||_0x5e63ad[_0x357a1f(0xfd)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x52b84a[_0x357a1f(0xf9)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a157_0x4cebaa(_0x5e63ad),'defaultFormat':_0x52b84a[_0x357a1f(0xe8)],'defaultPageSize':_0x52b84a[_0x357a1f(0xed)],'defaultVerbose':_0x52b84a['verbose'],'apiDir':_0x52b84a[_0x357a1f(0xeb)],'riskLevel':_0x52b84a[_0x357a1f(0xe3)],'selectedAppName':_0x52b84a[_0x357a1f(0x103)],'mergedCli':{'defaultApp':_0x52b84a['defaultApp'],'currentApp':_0x52b84a['currentApp'],'appCode':_0x52b84a[_0x357a1f(0xe2)],'apps':_0x52b84a['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a157_0x1477a6(0xe9)](_0x427517=>PIPELINE_FLAG_NAMES[a157_0x1477a6(0xde)](_0x427517[a157_0x1477a6(0xff)]))['map'](({name:_0x41db35,type:_0x22c956,description:_0x4dce63})=>({'name':_0x41db35,'type':_0x22c956,'description':_0x4dce63})),'formatOutput':formatOutput,'getCommandLabel'(_0x501e60){const _0x4d0992=a157_0x1477a6;return CLI_BIN_NAME+'\x20'+_0x501e60[_0x4d0992(0xe6)]+'\x20'+_0x501e60['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3966bb){const _0x5e875a=a157_0x1477a6;return CliErrors[_0x5e875a(0xf0)](_0x3966bb);}},async 'prepare'(_0x5e13d9,_0x260519,_0x263d3b,_0x42549e){const _0x2d51eb=a157_0x1477a6,_0x117fa6=_0x260519[_0x2d51eb(0xeb)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5e13d9,_0x263d3b,_0x117fa6,_0x42549e);let _0x18c087='';if(_0x5e13d9[_0x2d51eb(0xf6)]!==![]){_0x18c087=_0x260519['resolveCookie']();if(!_0x18c087)throw CliErrors[_0x2d51eb(0x100)]();const {setActiveCookie:_0x2789b6}=await import('../core/api-client.js');_0x2789b6(_0x18c087);}let _0x3d1ec3='';if(_0x5e13d9[_0x2d51eb(0xf8)]!==![]){_0x3d1ec3=_0x260519[_0x2d51eb(0xf5)]()??'';if(!_0x3d1ec3)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x2d51eb(0xee));}return{'defaults':{'booleans':{'verbose':_0x260519[_0x2d51eb(0xfa)]},'numbers':{'pagesize':_0x260519[_0x2d51eb(0xe1)]}},'extras':{'appCode':_0x3d1ec3,'cookie':_0x18c087,'apiDomain':_0x260519[_0x2d51eb(0xea)](),'apiDir':_0x117fa6,'selectedAppName':_0x260519[_0x2d51eb(0xe4)],'mergedCli':_0x260519['mergedCli']}};},async 'confirmHighRisk'({env:_0x541657,commandLabel:_0x122f97}){const _0x51ae80=a157_0x1477a6;if(_0x541657[_0x51ae80(0xe0)])throw CliErrors[_0x51ae80(0xf0)](_0x51ae80(0xef)+_0x122f97+_0x51ae80(0xfe));await requireConfirmationPrompt({'lines':[_0x51ae80(0xe5)+_0x122f97,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x1b42dd=>CliErrors[_0x51ae80(0xec)](_0x1b42dd)});},async 'finalize'(){const _0x1a908f=a157_0x1477a6,{clearActiveCookie:_0x5e8c7a}=await import(_0x1a908f(0xfc));_0x5e8c7a();}};export async function runCommand(_0x32119f,_0x2c5705){await runCommandWithAdapter(_0x32119f,_0x2c5705,runnerAdapter);}
1
+ function a164_0x94de(){const _0x4e8b5a=['apiDir','map','requiresAppCode','High-risk\x20operation\x20`','appcode','2195598CxUxxS','2453152lBoxGq','verbose','filter','resolveApiDomain','9bEjHnh','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','authRequired','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','mergedCli','\x20\x20\x20Continue?\x20[y/N]\x20','pageSize','format','../core/api-client.js','explicitAppName','7811052EyWulH','⚠\x20\x20High-risk\x20operation:\x20','37695zrjlRA','appCode','validation','currentApp','defaultPageSize','resolveAppCode','configMissing','76MIhpkH','name','apps','riskLevel','1051260WdZLIX','cookie','2215500hcwmcP','2473821xbfoeD','defaultApp','Set\x20appcode\x20via\x20`','selectedAppName','has','isNonInteractive'];a164_0x94de=function(){return _0x4e8b5a;};return a164_0x94de();}const a164_0x15c8f8=a164_0x2843;(function(_0x4d8f71,_0x235de8){const _0x38985d=a164_0x2843,_0x10ea45=_0x4d8f71();while(!![]){try{const _0x559349=-parseInt(_0x38985d(0x175))/0x1+-parseInt(_0x38985d(0x177))/0x2+parseInt(_0x38985d(0x183))/0x3+parseInt(_0x38985d(0x171))/0x4*(parseInt(_0x38985d(0x16a))/0x5)+parseInt(_0x38985d(0x168))/0x6+parseInt(_0x38985d(0x178))/0x7+parseInt(_0x38985d(0x184))/0x8*(parseInt(_0x38985d(0x188))/0x9);if(_0x559349===_0x235de8)break;else _0x10ea45['push'](_0x10ea45['shift']());}catch(_0x5cec81){_0x10ea45['push'](_0x10ea45['shift']());}}}(a164_0x94de,0xa5862));import{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';function a164_0x2843(_0x4c2f1a,_0x15ac24){_0x4c2f1a=_0x4c2f1a-0x164;const _0x94deeb=a164_0x94de();let _0x2843e7=_0x94deeb[_0x4c2f1a];return _0x2843e7;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a164_0x4c5297}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x335296,_0x1fc1a8,_0x39ae6e=[]){const _0x346f3f=a164_0x2843;return{'rawFlags':_0x1fc1a8,'args':_0x39ae6e,'resolveAppCode':()=>_0x335296[_0x346f3f(0x16b)]||_0x1fc1a8[_0x346f3f(0x182)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x335296[_0x346f3f(0x176)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x4c5297(_0x1fc1a8),'defaultFormat':_0x335296[_0x346f3f(0x165)],'defaultPageSize':_0x335296[_0x346f3f(0x164)],'defaultVerbose':_0x335296[_0x346f3f(0x185)],'apiDir':_0x335296['apiDir'],'riskLevel':_0x335296[_0x346f3f(0x174)],'selectedAppName':_0x335296[_0x346f3f(0x167)],'mergedCli':{'defaultApp':_0x335296[_0x346f3f(0x179)],'currentApp':_0x335296[_0x346f3f(0x16d)],'appCode':_0x335296['appCode'],'apps':_0x335296[_0x346f3f(0x173)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x15c8f8(0x186)](_0x4f8565=>PIPELINE_FLAG_NAMES[a164_0x15c8f8(0x17c)](_0x4f8565[a164_0x15c8f8(0x172)]))[a164_0x15c8f8(0x17f)](({name:_0x50f961,type:_0x1f432f,description:_0x405555})=>({'name':_0x50f961,'type':_0x1f432f,'description':_0x405555})),'formatOutput':formatOutput,'getCommandLabel'(_0x1c4c8e){return CLI_BIN_NAME+'\x20'+_0x1c4c8e['service']+'\x20'+_0x1c4c8e['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x51f969){const _0x21fc7b=a164_0x15c8f8;return CliErrors[_0x21fc7b(0x16c)](_0x51f969);}},async 'prepare'(_0x2460ff,_0x51d012,_0x3a40d0,_0x3e926d){const _0x1d5804=a164_0x15c8f8,_0x54dee1=_0x51d012[_0x1d5804(0x17e)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2460ff,_0x3a40d0,_0x54dee1,_0x3e926d);let _0x1aebc7='';if(_0x2460ff['requiresAuth']!==![]){_0x1aebc7=_0x51d012['resolveCookie']();if(!_0x1aebc7)throw CliErrors[_0x1d5804(0x18a)]();const {setActiveCookie:_0x54965f}=await import(_0x1d5804(0x166));_0x54965f(_0x1aebc7);}let _0x231e0c='';if(_0x2460ff[_0x1d5804(0x180)]!==![]){_0x231e0c=_0x51d012[_0x1d5804(0x16f)]()??'';if(!_0x231e0c)throw CliErrors[_0x1d5804(0x170)](_0x1d5804(0x17a)+CLI_BIN_NAME+_0x1d5804(0x18b));}return{'defaults':{'booleans':{'verbose':_0x51d012['defaultVerbose']},'numbers':{'pagesize':_0x51d012[_0x1d5804(0x16e)]}},'extras':{'appCode':_0x231e0c,'cookie':_0x1aebc7,'apiDomain':_0x51d012[_0x1d5804(0x187)](),'apiDir':_0x54dee1,'selectedAppName':_0x51d012[_0x1d5804(0x17b)],'mergedCli':_0x51d012[_0x1d5804(0x18c)]}};},async 'confirmHighRisk'({env:_0x57ed79,commandLabel:_0x14f645}){const _0x3e06ba=a164_0x15c8f8;if(_0x57ed79[_0x3e06ba(0x17d)])throw CliErrors[_0x3e06ba(0x16c)](_0x3e06ba(0x181)+_0x14f645+_0x3e06ba(0x189));await requireConfirmationPrompt({'lines':[_0x3e06ba(0x169)+_0x14f645,_0x3e06ba(0x18d)],'createCancelledError':_0x1efa2a=>CliErrors['cancelled'](_0x1efa2a)});},async 'finalize'(){const _0x364381=a164_0x15c8f8,{clearActiveCookie:_0xa54331}=await import(_0x364381(0x166));_0xa54331();}};export async function runCommand(_0x558151,_0xd411d3){await runCommandWithAdapter(_0x558151,_0xd411d3,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x3329cd,_0x113119){const _0xdfd13=a158_0x26bd,_0x26acd6=_0x3329cd();while(!![]){try{const _0x2c479f=-parseInt(_0xdfd13(0xb3))/0x1*(parseInt(_0xdfd13(0xb5))/0x2)+parseInt(_0xdfd13(0xb0))/0x3+parseInt(_0xdfd13(0xb2))/0x4*(-parseInt(_0xdfd13(0xad))/0x5)+parseInt(_0xdfd13(0xb1))/0x6*(parseInt(_0xdfd13(0xaf))/0x7)+parseInt(_0xdfd13(0xb4))/0x8+parseInt(_0xdfd13(0xae))/0x9+-parseInt(_0xdfd13(0xac))/0xa;if(_0x2c479f===_0x113119)break;else _0x26acd6['push'](_0x26acd6['shift']());}catch(_0x585492){_0x26acd6['push'](_0x26acd6['shift']());}}}(a158_0x3c3d,0x565ad));function a158_0x26bd(_0x2c33b1,_0x4e6acb){_0x2c33b1=_0x2c33b1-0xac;const _0x3c3db6=a158_0x3c3d();let _0x26bd53=_0x3c3db6[_0x2c33b1];return _0x26bd53;}import{buildSchemaPayload as a158_0x3e1d9e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a158_0x3c3d(){const _0x15eca5=['1044405hdWsSk','2304gvCRab','724JVImDh','5SFdTtA','3302512PYBWYr','40858oVjUsO','5231040VxrdWe','14250TqHagX','6141627pHJaEO','938frkViJ'];a158_0x3c3d=function(){return _0x15eca5;};return a158_0x3c3d();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5de5ae,findDefinition:_0xc16ec2}=await import('../commands/registry.js');return a158_0x3e1d9e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5de5ae,'buildAllFlags':buildAllFlags,'findDefinition':_0xc16ec2});}
1
+ (function(_0x11c222,_0x12f4b5){const _0x543010=a165_0x4241,_0x55c5e2=_0x11c222();while(!![]){try{const _0x43b0ff=parseInt(_0x543010(0x71))/0x1*(parseInt(_0x543010(0x72))/0x2)+parseInt(_0x543010(0x75))/0x3+parseInt(_0x543010(0x6f))/0x4*(-parseInt(_0x543010(0x6d))/0x5)+-parseInt(_0x543010(0x74))/0x6+parseInt(_0x543010(0x6e))/0x7+parseInt(_0x543010(0x70))/0x8+-parseInt(_0x543010(0x73))/0x9*(parseInt(_0x543010(0x6c))/0xa);if(_0x43b0ff===_0x12f4b5)break;else _0x55c5e2['push'](_0x55c5e2['shift']());}catch(_0x570aac){_0x55c5e2['push'](_0x55c5e2['shift']());}}}(a165_0x384e,0x57b3f));import{buildSchemaPayload as a165_0x4e9e4e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a165_0x4241(_0x14e8f7,_0x327e7a){_0x14e8f7=_0x14e8f7-0x6c;const _0x384e27=a165_0x384e();let _0x4241f2=_0x384e27[_0x14e8f7];return _0x4241f2;}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:_0x19b5f1,findDefinition:_0x2a1a00}=await import('../commands/registry.js');return a165_0x4e9e4e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x19b5f1,'buildAllFlags':buildAllFlags,'findDefinition':_0x2a1a00});}function a165_0x384e(){const _0x791a26=['1984680TxVVhv','3010782GeoioT','741213EBAJzK','10kzQWDP','25uONyDG','3219797KFeDGM','212468DNgrlR','77720JxAIdu','2iEFTZZ','630376VCJbPN'];a165_0x384e=function(){return _0x791a26;};return a165_0x384e();}
@@ -1 +1 @@
1
- (function(_0x18f1c7,_0x1b7eb4){var _0x34e4f0=a159_0x17d0,_0x3f1700=_0x18f1c7();while(!![]){try{var _0x1b8901=parseInt(_0x34e4f0(0x71))/0x1+-parseInt(_0x34e4f0(0x6d))/0x2*(-parseInt(_0x34e4f0(0x6b))/0x3)+parseInt(_0x34e4f0(0x6c))/0x4*(-parseInt(_0x34e4f0(0x72))/0x5)+-parseInt(_0x34e4f0(0x6a))/0x6*(parseInt(_0x34e4f0(0x70))/0x7)+-parseInt(_0x34e4f0(0x69))/0x8*(parseInt(_0x34e4f0(0x73))/0x9)+parseInt(_0x34e4f0(0x6e))/0xa*(parseInt(_0x34e4f0(0x6f))/0xb)+-parseInt(_0x34e4f0(0x74))/0xc;if(_0x1b8901===_0x1b7eb4)break;else _0x3f1700['push'](_0x3f1700['shift']());}catch(_0x5cbf66){_0x3f1700['push'](_0x3f1700['shift']());}}}(a159_0x31f3,0x6c769));function a159_0x31f3(){var _0xdf56d2=['63cnZwbE','12MUAVvg','6322qTTCnO','200PqYVlu','459349rntAGK','286895uXKmWZ','768162FSDIoe','332895iBIlXE','1494324NOGBiM','4881048fVjoqF','16TzOSTD','42GUrCUe'];a159_0x31f3=function(){return _0xdf56d2;};return a159_0x31f3();}function a159_0x17d0(_0x5a0d8e,_0x296918){_0x5a0d8e=_0x5a0d8e-0x69;var _0x31f3c5=a159_0x31f3();var _0x17d02e=_0x31f3c5[_0x5a0d8e];return _0x17d02e;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x587970,_0x452bf6){var _0x534d0a=a166_0x4989,_0x57edb7=_0x587970();while(!![]){try{var _0x45d01f=-parseInt(_0x534d0a(0x111))/0x1*(parseInt(_0x534d0a(0x115))/0x2)+parseInt(_0x534d0a(0x112))/0x3*(-parseInt(_0x534d0a(0x117))/0x4)+-parseInt(_0x534d0a(0x10d))/0x5*(-parseInt(_0x534d0a(0x10f))/0x6)+parseInt(_0x534d0a(0x114))/0x7+-parseInt(_0x534d0a(0x10e))/0x8*(-parseInt(_0x534d0a(0x116))/0x9)+-parseInt(_0x534d0a(0x10c))/0xa*(-parseInt(_0x534d0a(0x113))/0xb)+parseInt(_0x534d0a(0x110))/0xc;if(_0x45d01f===_0x452bf6)break;else _0x57edb7['push'](_0x57edb7['shift']());}catch(_0x170afa){_0x57edb7['push'](_0x57edb7['shift']());}}}(a166_0x3191,0xa409b));function a166_0x4989(_0x3ad323,_0x2a97c2){_0x3ad323=_0x3ad323-0x10c;var _0x3191c8=a166_0x3191();var _0x49892b=_0x3191c8[_0x3ad323];return _0x49892b;}function a166_0x3191(){var _0x5503d2=['136JaSlUz','4041HucNnZ','388964HPwFyv','8570bzDZDW','1110895NIBOiQ','6376XOYPpd','12ZrWHMX','11621268GddOpV','18979gHrPAp','21UOKOLk','5929WCuVUU','2874095nIlcRK'];a166_0x3191=function(){return _0x5503d2;};return a166_0x3191();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a160_0x5126bc=a160_0x3b05;function a160_0x1944(){const _0x392988=['7721496YFFzQp','4092522BfcNhR','2026-04-21T07:17:22.033Z','2.1.6-beta.0','320820eOnzeo','506ZaruCL','dea46ab','6691264FNcvhX','2203VjLuFJ','18qumRLS','7mCPqIS','1224mGUUkh','2670OAzQhj','v2.1.6-beta.0','1302876fpkHWC','4928AmkjAR'];a160_0x1944=function(){return _0x392988;};return a160_0x1944();}(function(_0x38cc38,_0x26e3d2){const _0x2a2313=a160_0x3b05,_0x32f413=_0x38cc38();while(!![]){try{const _0x2cb8c6=parseInt(_0x2a2313(0x75))/0x1*(-parseInt(_0x2a2313(0x78))/0x2)+-parseInt(_0x2a2313(0x7e))/0x3+-parseInt(_0x2a2313(0x7c))/0x4*(-parseInt(_0x2a2313(0x79))/0x5)+-parseInt(_0x2a2313(0x7d))/0x6+-parseInt(_0x2a2313(0x77))/0x7*(parseInt(_0x2a2313(0x74))/0x8)+parseInt(_0x2a2313(0x76))/0x9*(parseInt(_0x2a2313(0x81))/0xa)+parseInt(_0x2a2313(0x82))/0xb*(parseInt(_0x2a2313(0x7b))/0xc);if(_0x2cb8c6===_0x26e3d2)break;else _0x32f413['push'](_0x32f413['shift']());}catch(_0x4387ec){_0x32f413['push'](_0x32f413['shift']());}}}(a160_0x1944,0xd7024));export const VERSION=a160_0x5126bc(0x80);function a160_0x3b05(_0x135b61,_0x3da400){_0x135b61=_0x135b61-0x73;const _0x194412=a160_0x1944();let _0x3b05b5=_0x194412[_0x135b61];return _0x3b05b5;}export const GIT_TAG=a160_0x5126bc(0x7a);export const GIT_COMMIT=a160_0x5126bc(0x73);export const BUILD_TIME=a160_0x5126bc(0x7f);
1
+ const a167_0x3d2775=a167_0x4e45;(function(_0xe38205,_0x35a5f4){const _0x1dcdbe=a167_0x4e45,_0x3b6f80=_0xe38205();while(!![]){try{const _0x313543=parseInt(_0x1dcdbe(0x182))/0x1+parseInt(_0x1dcdbe(0x17d))/0x2*(-parseInt(_0x1dcdbe(0x186))/0x3)+-parseInt(_0x1dcdbe(0x185))/0x4*(-parseInt(_0x1dcdbe(0x181))/0x5)+-parseInt(_0x1dcdbe(0x17b))/0x6+-parseInt(_0x1dcdbe(0x17a))/0x7*(-parseInt(_0x1dcdbe(0x184))/0x8)+parseInt(_0x1dcdbe(0x17c))/0x9+-parseInt(_0x1dcdbe(0x183))/0xa;if(_0x313543===_0x35a5f4)break;else _0x3b6f80['push'](_0x3b6f80['shift']());}catch(_0x3c9606){_0x3b6f80['push'](_0x3b6f80['shift']());}}}(a167_0x6568,0x2825b));function a167_0x4e45(_0x5babd8,_0x41b3b3){_0x5babd8=_0x5babd8-0x17a;const _0x65683a=a167_0x6568();let _0x4e45d8=_0x65683a[_0x5babd8];return _0x4e45d8;}export const VERSION=a167_0x3d2775(0x17f);export const GIT_TAG='v2.1.7-beta.2';export const GIT_COMMIT=a167_0x3d2775(0x17e);export const BUILD_TIME=a167_0x3d2775(0x180);function a167_0x6568(){const _0x59ed51=['151307Pldkdi','5495130fcUeCZ','200oNFTLy','4jNZshH','140277VHzZvo','47264PIoZnz','66708GRMngr','2583594mteTnl','8cOaTjl','cae313f','2.1.7-beta.2','2026-04-25T06:57:51.216Z','1524685BvCDpO'];a167_0x6568=function(){return _0x59ed51;};return a167_0x6568();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x51d215,_0x1f9126){var _0x14635f=a161_0x25e8,_0x1747bb=_0x51d215();while(!![]){try{var _0x5919b7=parseInt(_0x14635f(0xd2))/0x1+parseInt(_0x14635f(0xdc))/0x2+-parseInt(_0x14635f(0xdb))/0x3*(parseInt(_0x14635f(0xe0))/0x4)+-parseInt(_0x14635f(0xdf))/0x5*(-parseInt(_0x14635f(0xda))/0x6)+-parseInt(_0x14635f(0xd6))/0x7*(parseInt(_0x14635f(0xd7))/0x8)+-parseInt(_0x14635f(0xde))/0x9+parseInt(_0x14635f(0xd5))/0xa*(parseInt(_0x14635f(0xd4))/0xb);if(_0x5919b7===_0x1f9126)break;else _0x1747bb['push'](_0x1747bb['shift']());}catch(_0x2d0575){_0x1747bb['push'](_0x1747bb['shift']());}}}(a161_0x5c74,0x91487));import a161_0x1ba6f2 from'chalk';function a161_0x25e8(_0x37c083,_0x31b8a1){_0x37c083=_0x37c083-0xd2;var _0x5c745d=a161_0x5c74();var _0x25e805=_0x5c745d[_0x37c083];return _0x25e805;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a161_0x5c74(){var _0x2c6b95=['40XrJQsq','59024zTJtYA','32wZjolR','green','log','60oOCWcM','624zkMNOt','1620086msWHYN','\x20--help','6732711XlJpmW','131255kqWMtb','5204plDUzv','\x20\x20Use\x20','15361VsVADl','bold','1538845RpEIIn'];a161_0x5c74=function(){return _0x2c6b95;};return a161_0x5c74();}export function showHelp(){var _0x5b89cd=a161_0x25e8;console[_0x5b89cd(0xd9)](),console[_0x5b89cd(0xd9)](a161_0x1ba6f2[_0x5b89cd(0xd8)][_0x5b89cd(0xd3)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x5b89cd(0xd9)](),console[_0x5b89cd(0xd9)](_0x5b89cd(0xe1)+a161_0x1ba6f2['green']['bold'](CLI_BIN_NAME+_0x5b89cd(0xdd))+'\x20to\x20view\x20available\x20commands.'),console[_0x5b89cd(0xd9)]();}
1
+ function a168_0x5d32(){var _0x14684a=['bold','419719nliXIa','log','green','9bNLlVK','\x20to\x20view\x20available\x20commands.','\x20--help','686424patJWL','1960020EuaPMM','366020LEurjJ','187464HvJROP','868008OcPwZi','2lVlCoA','8KNtXTY','638earkBA','7xGSvXk','2016810qlpudj'];a168_0x5d32=function(){return _0x14684a;};return a168_0x5d32();}(function(_0x1ea4e0,_0x197988){var _0x13bfa3=a168_0x2652,_0x51191f=_0x1ea4e0();while(!![]){try{var _0x3afc6d=parseInt(_0x13bfa3(0x13a))/0x1*(-parseInt(_0x13bfa3(0x134))/0x2)+parseInt(_0x13bfa3(0x12f))/0x3+parseInt(_0x13bfa3(0x135))/0x4*(parseInt(_0x13bfa3(0x131))/0x5)+-parseInt(_0x13bfa3(0x130))/0x6*(parseInt(_0x13bfa3(0x137))/0x7)+-parseInt(_0x13bfa3(0x133))/0x8+parseInt(_0x13bfa3(0x12c))/0x9*(-parseInt(_0x13bfa3(0x138))/0xa)+parseInt(_0x13bfa3(0x136))/0xb*(parseInt(_0x13bfa3(0x132))/0xc);if(_0x3afc6d===_0x197988)break;else _0x51191f['push'](_0x51191f['shift']());}catch(_0x2edf60){_0x51191f['push'](_0x51191f['shift']());}}}(a168_0x5d32,0x36dd1));import a168_0x51597d from'chalk';function a168_0x2652(_0x34c811,_0x27cd9f){_0x34c811=_0x34c811-0x12c;var _0x5d3231=a168_0x5d32();var _0x265204=_0x5d3231[_0x34c811];return _0x265204;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x175ed2=a168_0x2652;console[_0x175ed2(0x13b)](),console[_0x175ed2(0x13b)](a168_0x51597d[_0x175ed2(0x13c)][_0x175ed2(0x139)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x175ed2(0x13b)](),console['log']('\x20\x20Use\x20'+a168_0x51597d[_0x175ed2(0x13c)][_0x175ed2(0x139)](CLI_BIN_NAME+_0x175ed2(0x12e))+_0x175ed2(0x12d)),console[_0x175ed2(0x13b)]();}
@@ -1 +1 @@
1
- (function(_0xaf40eb,_0x149052){const _0x540912=a162_0x2ced,_0xb3736d=_0xaf40eb();while(!![]){try{const _0x2683d6=-parseInt(_0x540912(0x175))/0x1+-parseInt(_0x540912(0x157))/0x2*(-parseInt(_0x540912(0x164))/0x3)+-parseInt(_0x540912(0x15e))/0x4*(parseInt(_0x540912(0x171))/0x5)+parseInt(_0x540912(0x155))/0x6*(parseInt(_0x540912(0x17a))/0x7)+-parseInt(_0x540912(0x173))/0x8*(parseInt(_0x540912(0x167))/0x9)+parseInt(_0x540912(0x15a))/0xa+-parseInt(_0x540912(0x168))/0xb*(-parseInt(_0x540912(0x176))/0xc);if(_0x2683d6===_0x149052)break;else _0xb3736d['push'](_0xb3736d['shift']());}catch(_0x19a8c1){_0xb3736d['push'](_0xb3736d['shift']());}}}(a162_0xcf59,0xec1bd));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(_0x53ffa9){const _0x1cef85=a162_0x2ced,_0x56f23b=[];for(const [_0x362136,_0x209a73]of Object[_0x1cef85(0x16e)](_0x53ffa9)){if(_0x209a73===!![]){const _0x12d225=_0x362136[_0x1cef85(0x166)](/([A-Z])/g,_0x1cef85(0x15c))['toLowerCase']();_0x56f23b[_0x1cef85(0x159)](_0x12d225);}}return _0x56f23b;}export function parseDynamicFlags(){const _0x2054b1=a162_0x2ced,_0x2c73d2=[];for(let _0xfe3ff8=0x3;_0xfe3ff8<process['argv'][_0x2054b1(0x158)];_0xfe3ff8++){const _0x16c910=process[_0x2054b1(0x17b)][_0xfe3ff8];if(_0x16c910&&_0x16c910[_0x2054b1(0x162)]('--')){const _0x169a04=_0x16c910[_0x2054b1(0x178)](0x2);_0x169a04&&!_0x169a04[_0x2054b1(0x15f)]('=')&&_0x2c73d2['push'](_0x169a04);}}return _0x2c73d2;}export function getAllProvidedFlags(_0x1858e8){const _0x39a275=a162_0x2ced,_0x4333dd=camelCaseFlagsToKebab(_0x1858e8),_0xa94eed=parseDynamicFlags(),_0x5f2e94=new Set([..._0x4333dd,..._0xa94eed]);return Array[_0x39a275(0x16a)](_0x5f2e94);}function a162_0x2ced(_0x979754,_0x25d16a){_0x979754=_0x979754-0x155;const _0xcf595c=a162_0xcf59();let _0x2ced00=_0xcf595c[_0x979754];return _0x2ced00;}export function normalizeLegacyBffSaveFlags(_0xa84de2){const _0x42f84d=a162_0x2ced,_0x1912a3=new Set(_0xa84de2);return _0x1912a3[_0x42f84d(0x169)](_0x42f84d(0x163))&&_0x1912a3[_0x42f84d(0x15b)](_0x42f84d(0x16f)),Array[_0x42f84d(0x16a)](_0x1912a3);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5e2e2f,_0x2939f4,_0x4051d0){const _0x2c6c63=a162_0x2ced;logger[_0x2c6c63(0x15d)](process[_0x2c6c63(0x177)]());if(_0x4051d0?.[_0x2c6c63(0x160)]||_0x5e2e2f==='--help'){showHelp();return;}console['error'](_0x2c6c63(0x161)+(_0x5e2e2f||_0x2c6c63(0x156))),console[_0x2c6c63(0x174)](_0x2c6c63(0x16d)),console[_0x2c6c63(0x174)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x2c6c63(0x174)]('\x20\x20'+CLI_BIN_NAME+_0x2c6c63(0x179)),console[_0x2c6c63(0x174)](''),console[_0x2c6c63(0x174)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2c6c63(0x16b)]('skill','不支持的命令:\x20'+_0x5e2e2f),process[_0x2c6c63(0x170)](0x1);}function a162_0xcf59(){const _0x52c680=['enable-bff-save','exit','50vBPUeJ','\x20skill\x20--help\x0a\x20\x20','12392EZFAFq','log','147935uaihiB','1908hWDINB','cwd','slice','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','117173xhYOrJ','argv','426PCGuEF','(empty)','1427852EZEqpq','length','push','1184070wUFhjU','add','-$1','setLogPath','105692SmwdyZ','includes','help','Error:\x20Unsupported\x20command:\x20','startsWith','dangerously-bff-save','3gaeFsy','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','replace','9081kLBYhk','63745jtfMYZ','has','from','error','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x0aAvailable\x20commands:','entries'];a162_0xcf59=function(){return _0x52c680;};return a162_0xcf59();}function showHelp(){const _0x1a1e69=a162_0x2ced;console[_0x1a1e69(0x174)](_0x1a1e69(0x16c)+CLI_BIN_NAME+_0x1a1e69(0x172)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1a1e69(0x165));}
1
+ (function(_0xca8a9,_0x20307c){const _0x1328d1=a169_0x2fa4,_0x17c24a=_0xca8a9();while(!![]){try{const _0x4e2f6a=-parseInt(_0x1328d1(0xd1))/0x1*(parseInt(_0x1328d1(0xe0))/0x2)+-parseInt(_0x1328d1(0xe9))/0x3+parseInt(_0x1328d1(0xe5))/0x4*(-parseInt(_0x1328d1(0xe3))/0x5)+parseInt(_0x1328d1(0xd9))/0x6*(-parseInt(_0x1328d1(0xcd))/0x7)+parseInt(_0x1328d1(0xe2))/0x8+-parseInt(_0x1328d1(0xd5))/0x9*(parseInt(_0x1328d1(0xd4))/0xa)+-parseInt(_0x1328d1(0xeb))/0xb*(-parseInt(_0x1328d1(0xe1))/0xc);if(_0x4e2f6a===_0x20307c)break;else _0x17c24a['push'](_0x17c24a['shift']());}catch(_0x200fac){_0x17c24a['push'](_0x17c24a['shift']());}}}(a169_0x3514,0xa1891));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(_0x2ec108){const _0x4d43d4=a169_0x2fa4,_0x40b5d2=[];for(const [_0x3acd74,_0x1b2e88]of Object[_0x4d43d4(0xe4)](_0x2ec108)){if(_0x1b2e88===!![]){const _0x3ad2e1=_0x3acd74['replace'](/([A-Z])/g,_0x4d43d4(0xce))[_0x4d43d4(0xd8)]();_0x40b5d2[_0x4d43d4(0xe6)](_0x3ad2e1);}}return _0x40b5d2;}export function parseDynamicFlags(){const _0x4d71fb=a169_0x2fa4,_0x1305fe=[];for(let _0x8a6ecf=0x3;_0x8a6ecf<process[_0x4d71fb(0xdd)][_0x4d71fb(0xed)];_0x8a6ecf++){const _0x5e9ed1=process[_0x4d71fb(0xdd)][_0x8a6ecf];if(_0x5e9ed1&&_0x5e9ed1['startsWith']('--')){const _0x3db039=_0x5e9ed1[_0x4d71fb(0xf0)](0x2);_0x3db039&&!_0x3db039[_0x4d71fb(0xec)]('=')&&_0x1305fe[_0x4d71fb(0xe6)](_0x3db039);}}return _0x1305fe;}export function getAllProvidedFlags(_0x45a5ac){const _0x33a07f=a169_0x2fa4,_0x282e9c=camelCaseFlagsToKebab(_0x45a5ac),_0x4f86f6=parseDynamicFlags(),_0x2ac5fe=new Set([..._0x282e9c,..._0x4f86f6]);return Array[_0x33a07f(0xef)](_0x2ac5fe);}export function normalizeLegacyBffSaveFlags(_0x53a007){const _0x407f7e=a169_0x2fa4,_0xeec5=new Set(_0x53a007);return _0xeec5[_0x407f7e(0xcf)](_0x407f7e(0xe7))&&_0xeec5['add'](_0x407f7e(0xda)),Array[_0x407f7e(0xef)](_0xeec5);}function a169_0x3514(){const _0x163aaa=['log','Error:\x20Unsupported\x20command:\x20','argv','\x20skill\x20--help\x0a\x20\x20','cwd','2kchVsk','192mHdHcF','442336TLuyIw','446830oWcwJf','entries','40kEcbxv','push','dangerously-bff-save','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','534927XgoPhX','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','2671152RknOwQ','includes','length','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','from','slice','不支持的命令:\x20','setLogPath','--help','help','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','28147wUDaJW','-$1','has','error','954678jGwmTW','\x0aAvailable\x20commands:','Equivalent\x20command:\x20','140yBIDFM','122634ngeWwF','skill','(empty)','toLowerCase','1584KCIIiF','enable-bff-save'];a169_0x3514=function(){return _0x163aaa;};return a169_0x3514();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x215a9f,_0xa0a874,_0x58529a){const _0x3c9b75=a169_0x2fa4;logger[_0x3c9b75(0xf2)](process[_0x3c9b75(0xdf)]());if(_0x58529a?.[_0x3c9b75(0xcb)]||_0x215a9f===_0x3c9b75(0xf3)){showHelp();return;}console[_0x3c9b75(0xd0)](_0x3c9b75(0xdc)+(_0x215a9f||_0x3c9b75(0xd7))),console[_0x3c9b75(0xdb)](_0x3c9b75(0xd2)),console[_0x3c9b75(0xdb)]('\x20\x20'+CLI_BIN_NAME+_0x3c9b75(0xea)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x3c9b75(0xe8)),console[_0x3c9b75(0xdb)](''),console[_0x3c9b75(0xdb)](_0x3c9b75(0xd3)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3c9b75(0xd0)](_0x3c9b75(0xd6),_0x3c9b75(0xf1)+_0x215a9f),process['exit'](0x1);}function a169_0x2fa4(_0x4f4c27,_0x2cdf32){_0x4f4c27=_0x4f4c27-0xcb;const _0x3514c7=a169_0x3514();let _0x2fa4ce=_0x3514c7[_0x4f4c27];return _0x2fa4ce;}function showHelp(){const _0x1c64fa=a169_0x2fa4;console[_0x1c64fa(0xdb)](_0x1c64fa(0xcc)+CLI_BIN_NAME+_0x1c64fa(0xde)+CLI_BIN_NAME+_0x1c64fa(0xee)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}