@lovrabet/rabetbase-cli 2.3.4 → 2.3.5-beta.1

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 (239) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x33d80b,_0x26b7cd){const _0x55da52=a186_0x6a29,_0x4937ab=_0x33d80b();while(!![]){try{const _0x383582=-parseInt(_0x55da52(0xcf))/0x1*(-parseInt(_0x55da52(0xc4))/0x2)+-parseInt(_0x55da52(0xc7))/0x3*(parseInt(_0x55da52(0xcc))/0x4)+-parseInt(_0x55da52(0xc1))/0x5+-parseInt(_0x55da52(0xd8))/0x6+-parseInt(_0x55da52(0xb9))/0x7*(-parseInt(_0x55da52(0xd6))/0x8)+parseInt(_0x55da52(0xbc))/0x9*(parseInt(_0x55da52(0xcd))/0xa)+-parseInt(_0x55da52(0xd4))/0xb*(parseInt(_0x55da52(0xce))/0xc);if(_0x383582===_0x26b7cd)break;else _0x4937ab['push'](_0x4937ab['shift']());}catch(_0x3399aa){_0x4937ab['push'](_0x4937ab['shift']());}}}(a186_0x3c78,0xb496f));function a186_0x3c78(){const _0x9d0dfd=['length','2pWiOvO','includes','join','26652MFCXDT','has','\x22\x20under\x20app\x20\x22','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','dbId','236kcxiVQ','10MJMUSg','11362116QDlurI','543775sxBcwR','\x22\x20matches\x20multiple\x20databases:\x20','\x22.\x20Available:\x20','entries','find','11NMhhBJ','set','24tvecFE','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','2013234EzcyiR','dbName','toLowerCase','2719857LSbgUF','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','isNaN','8984457WFYQQj','map','get','No\x20database\x20matching\x20\x22','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','807340GAlxgL','dbtableConfig'];a186_0x3c78=function(){return _0x9d0dfd;};return a186_0x3c78();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x2afe76){const _0x45c27a=a186_0x6a29;if(cache[_0x45c27a(0xc8)](_0x2afe76))return cache[_0x45c27a(0xbe)](_0x2afe76);const _0x3a9506=await listDatasets(_0x2afe76),_0x4acd80=new Map();for(const _0x80fdc3 of _0x3a9506){const _0x1d3057=_0x80fdc3[_0x45c27a(0xc2)];_0x1d3057?.['dbId']!=null&&_0x4acd80[_0x45c27a(0xd5)](_0x1d3057[_0x45c27a(0xcb)],_0x1d3057[_0x45c27a(0xd9)]??'db-'+_0x1d3057['dbId']);}const _0x55ba56=[..._0x4acd80[_0x45c27a(0xd2)]()][_0x45c27a(0xbd)](([_0x5ad83f,_0x1b5b5b])=>({'dbId':_0x5ad83f,'dbName':_0x1b5b5b}));return cache[_0x45c27a(0xd5)](_0x2afe76,_0x55ba56),_0x55ba56;}export async function resolveDb(_0x19adc9,_0x2424ec){const _0x3e89d7=a186_0x6a29,_0x24e618=await listDatabases(_0x19adc9);if(_0x24e618[_0x3e89d7(0xc3)]===0x0)return{'resolved':[],'error':_0x3e89d7(0xca)+_0x19adc9+_0x3e89d7(0xd7)};if(!_0x2424ec)return{'resolved':_0x24e618};const _0x212ff6=Number(_0x2424ec);if(!Number[_0x3e89d7(0xbb)](_0x212ff6)){const _0x503b4=_0x24e618['find'](_0x3ea878=>_0x3ea878[_0x3e89d7(0xcb)]===_0x212ff6);if(_0x503b4)return{'resolved':[_0x503b4]};}const _0x47189c=_0x2424ec[_0x3e89d7(0xda)](),_0x5888fb=_0x24e618['filter'](_0x318edf=>_0x318edf[_0x3e89d7(0xd9)][_0x3e89d7(0xda)]()[_0x3e89d7(0xc5)](_0x47189c));if(_0x5888fb[_0x3e89d7(0xc3)]>0x0)return{'resolved':_0x5888fb};const _0x338467=_0x24e618[_0x3e89d7(0xbd)](_0x2d96b5=>_0x2d96b5[_0x3e89d7(0xd9)]+'\x20('+_0x2d96b5[_0x3e89d7(0xcb)]+')')[_0x3e89d7(0xc6)](',\x20');return{'resolved':[],'error':_0x3e89d7(0xbf)+_0x2424ec+_0x3e89d7(0xc9)+_0x19adc9+_0x3e89d7(0xd1)+_0x338467+_0x3e89d7(0xba)};}export async function resolveOneDb(_0x4fc1d7,_0x32e360){const _0x138068=a186_0x6a29,{resolved:_0x33d61a,error:_0x971784}=await resolveDb(_0x4fc1d7,_0x32e360);if(_0x971784)return{'db':null,'error':_0x971784};if(_0x33d61a[_0x138068(0xc3)]===0x1)return{'db':_0x33d61a[0x0]};if(!_0x32e360){const _0x11f6de=_0x33d61a[_0x138068(0xbd)](_0x2684db=>_0x2684db[_0x138068(0xd9)]+'\x20('+_0x2684db[_0x138068(0xcb)]+')')[_0x138068(0xc6)](',\x20');return{'db':null,'error':_0x138068(0xc0)+_0x11f6de};}const _0x39e11f=_0x33d61a['map'](_0x42ccf9=>_0x42ccf9[_0x138068(0xd9)]+'\x20('+_0x42ccf9['dbId']+')')[_0x138068(0xc6)](',\x20');return{'db':null,'error':'\x22'+_0x32e360+_0x138068(0xd0)+_0x39e11f+'.\x20Be\x20more\x20specific.'};}function a186_0x6a29(_0x5b8c72,_0x1c7fec){_0x5b8c72=_0x5b8c72-0xb9;const _0x3c78c3=a186_0x3c78();let _0x6a29ec=_0x3c78c3[_0x5b8c72];return _0x6a29ec;}export async function getDbName(_0x3f77b9,_0x3c8b22){const _0xb87eb3=a186_0x6a29,_0xdb68a=await listDatabases(_0x3f77b9);return _0xdb68a[_0xb87eb3(0xd3)](_0x2efd51=>_0x2efd51['dbId']===_0x3c8b22)?.[_0xb87eb3(0xd9)];}
1
+ function a186_0x7ffa(){const _0x2badf8=['574768TKJmbT','85tkhyvF','dbName','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','1244796bhtobv','5360qcjGaR','toLowerCase','2286462aSOaCb','294705rELQZp','filter','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','No\x20database\x20matching\x20\x22','get','.\x20Be\x20more\x20specific.','dbId','join','2bqtjJv','set','find','entries','25302DaApod','db-','9tiuLFJ','isNaN','length','\x22.\x20Available:\x20','42977pkcQni','map','1370PCivbG'];a186_0x7ffa=function(){return _0x2badf8;};return a186_0x7ffa();}(function(_0x59996e,_0x392156){const _0xd65d2a=a186_0x241a,_0x3ea454=_0x59996e();while(!![]){try{const _0x5a038f=parseInt(_0xd65d2a(0x1c7))/0x1*(-parseInt(_0xd65d2a(0x1c3))/0x2)+parseInt(_0xd65d2a(0x1bb))/0x3+-parseInt(_0xd65d2a(0x1b8))/0x4*(-parseInt(_0xd65d2a(0x1d1))/0x5)+parseInt(_0xd65d2a(0x1ba))/0x6+parseInt(_0xd65d2a(0x1b7))/0x7+-parseInt(_0xd65d2a(0x1d0))/0x8*(-parseInt(_0xd65d2a(0x1c9))/0x9)+-parseInt(_0xd65d2a(0x1cf))/0xa*(parseInt(_0xd65d2a(0x1cd))/0xb);if(_0x5a038f===_0x392156)break;else _0x3ea454['push'](_0x3ea454['shift']());}catch(_0x2789e5){_0x3ea454['push'](_0x3ea454['shift']());}}}(a186_0x7ffa,0x2eae5));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x20d160){const _0x9fd5fb=a186_0x241a;if(cache['has'](_0x20d160))return cache[_0x9fd5fb(0x1bf)](_0x20d160);const _0x4f2b2f=await listDatasets(_0x20d160),_0x1a4310=new Map();for(const _0x2f5593 of _0x4f2b2f){const _0x5a9d7a=_0x2f5593['dbtableConfig'];_0x5a9d7a?.[_0x9fd5fb(0x1c1)]!=null&&_0x1a4310[_0x9fd5fb(0x1c4)](_0x5a9d7a['dbId'],_0x5a9d7a['dbName']??_0x9fd5fb(0x1c8)+_0x5a9d7a[_0x9fd5fb(0x1c1)]);}const _0x33735b=[..._0x1a4310[_0x9fd5fb(0x1c6)]()][_0x9fd5fb(0x1ce)](([_0x333d3d,_0x15cede])=>({'dbId':_0x333d3d,'dbName':_0x15cede}));return cache[_0x9fd5fb(0x1c4)](_0x20d160,_0x33735b),_0x33735b;}export async function resolveDb(_0x594a89,_0x467625){const _0x2f7604=a186_0x241a,_0x5ef715=await listDatabases(_0x594a89);if(_0x5ef715[_0x2f7604(0x1cb)]===0x0)return{'resolved':[],'error':_0x2f7604(0x1bd)+_0x594a89+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x467625)return{'resolved':_0x5ef715};const _0x453fe1=Number(_0x467625);if(!Number[_0x2f7604(0x1ca)](_0x453fe1)){const _0x5d6fd8=_0x5ef715['find'](_0x497d4d=>_0x497d4d[_0x2f7604(0x1c1)]===_0x453fe1);if(_0x5d6fd8)return{'resolved':[_0x5d6fd8]};}const _0x5bc1ac=_0x467625[_0x2f7604(0x1b9)](),_0x20c629=_0x5ef715[_0x2f7604(0x1bc)](_0x5ec20c=>_0x5ec20c[_0x2f7604(0x1d2)][_0x2f7604(0x1b9)]()['includes'](_0x5bc1ac));if(_0x20c629[_0x2f7604(0x1cb)]>0x0)return{'resolved':_0x20c629};const _0x22d6d8=_0x5ef715[_0x2f7604(0x1ce)](_0x2358e3=>_0x2358e3[_0x2f7604(0x1d2)]+'\x20('+_0x2358e3['dbId']+')')[_0x2f7604(0x1c2)](',\x20');return{'resolved':[],'error':_0x2f7604(0x1be)+_0x467625+'\x22\x20under\x20app\x20\x22'+_0x594a89+_0x2f7604(0x1cc)+_0x22d6d8+_0x2f7604(0x1d3)};}export async function resolveOneDb(_0x3499f6,_0x537cbd){const _0xbbd8f1=a186_0x241a,{resolved:_0x3f0ae7,error:_0x5e95cd}=await resolveDb(_0x3499f6,_0x537cbd);if(_0x5e95cd)return{'db':null,'error':_0x5e95cd};if(_0x3f0ae7[_0xbbd8f1(0x1cb)]===0x1)return{'db':_0x3f0ae7[0x0]};if(!_0x537cbd){const _0x5a3d54=_0x3f0ae7['map'](_0x4913d0=>_0x4913d0[_0xbbd8f1(0x1d2)]+'\x20('+_0x4913d0[_0xbbd8f1(0x1c1)]+')')[_0xbbd8f1(0x1c2)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5a3d54};}const _0x315cd9=_0x3f0ae7[_0xbbd8f1(0x1ce)](_0x4136e5=>_0x4136e5[_0xbbd8f1(0x1d2)]+'\x20('+_0x4136e5[_0xbbd8f1(0x1c1)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x537cbd+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x315cd9+_0xbbd8f1(0x1c0)};}function a186_0x241a(_0x227598,_0x224f04){_0x227598=_0x227598-0x1b7;const _0x7ffa39=a186_0x7ffa();let _0x241ac9=_0x7ffa39[_0x227598];return _0x241ac9;}export async function getDbName(_0x2358ff,_0x4a7afa){const _0x3b55e3=a186_0x241a,_0xefeab1=await listDatabases(_0x2358ff);return _0xefeab1[_0x3b55e3(0x1c5)](_0x1a20bc=>_0x1a20bc['dbId']===_0x4a7afa)?.['dbName'];}
@@ -1 +1 @@
1
- function a187_0x3c99(_0x238edb,_0x1dfc7b){_0x238edb=_0x238edb-0x1e3;const _0x340a29=a187_0x340a();let _0x3c992f=_0x340a29[_0x238edb];return _0x3c992f;}const a187_0x516b05=a187_0x3c99;(function(_0x567f08,_0x4400fa){const _0x41f6ea=a187_0x3c99,_0x1e8da1=_0x567f08();while(!![]){try{const _0x40aabd=-parseInt(_0x41f6ea(0x1e8))/0x1*(parseInt(_0x41f6ea(0x1eb))/0x2)+-parseInt(_0x41f6ea(0x1f0))/0x3*(parseInt(_0x41f6ea(0x1f3))/0x4)+-parseInt(_0x41f6ea(0x1e6))/0x5+-parseInt(_0x41f6ea(0x1e3))/0x6*(-parseInt(_0x41f6ea(0x1f1))/0x7)+-parseInt(_0x41f6ea(0x1ea))/0x8+parseInt(_0x41f6ea(0x1e4))/0x9*(parseInt(_0x41f6ea(0x1ec))/0xa)+-parseInt(_0x41f6ea(0x1e5))/0xb*(-parseInt(_0x41f6ea(0x1e7))/0xc);if(_0x40aabd===_0x4400fa)break;else _0x1e8da1['push'](_0x1e8da1['shift']());}catch(_0x2d1614){_0x1e8da1['push'](_0x1e8da1['shift']());}}}(a187_0x340a,0xeed46));import{constants}from'node:fs';function a187_0x340a(){const _0x137f2d=['page','3632346aPzrkZ','589673TnWcjK','F_OK','4JoQQvq','toUpperCase','cwd','24yXXoOR','98973qZHksy','77dcuiWo','4697830HOMBDa','9275244EQFila','609106WSCYdQ','appPagesDir','12227216MsMbrN','6NaGEoU','670vjVkhX','page.lock.json','.rabetbase'];a187_0x340a=function(){return _0x137f2d;};return a187_0x340a();}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x95742d,_0x5ad4c1=process[a187_0x516b05(0x1f5)]()){const _0x6e3cac=a187_0x516b05,_0x1b3294=resolve(_0x5ad4c1),_0x5c38a3=join(_0x1b3294,_0x6e3cac(0x1ee),_0x6e3cac(0x1ef));return{'projectRoot':_0x1b3294,'pagesBaseDir':_0x5c38a3,'appPagesDir':join(_0x5c38a3,_0x95742d),'lockFilePath':join(_0x1b3294,_0x6e3cac(0x1ee),_0x6e3cac(0x1ed))};}export function buildPageFileName(_0x43ff7a,_0x3d81b2){const _0x1bde7b=a187_0x516b05;return _0x43ff7a+'-'+String(_0x3d81b2)[_0x1bde7b(0x1f4)]()+'.json';}export function resolvePageFilePath(_0x4f8790,_0x405fe5,_0xba9670){const _0x493044=a187_0x516b05;return join(_0x4f8790[_0x493044(0x1e9)],buildPageFileName(_0x405fe5,_0xba9670));}export async function ensureParentDirectory(_0x1a82ca){await mkdir(dirname(_0x1a82ca),{'recursive':!![]});}export async function fileExists(_0x38f955){const _0xbaec30=a187_0x516b05;try{return await access(_0x38f955,constants[_0xbaec30(0x1f2)]),!![];}catch{return![];}}
1
+ const a187_0x16e875=a187_0x1030;(function(_0x114d50,_0x378849){const _0x42bac9=a187_0x1030,_0x2dcb6a=_0x114d50();while(!![]){try{const _0x4138d7=parseInt(_0x42bac9(0xb5))/0x1+-parseInt(_0x42bac9(0xb2))/0x2+-parseInt(_0x42bac9(0xbb))/0x3+-parseInt(_0x42bac9(0xbd))/0x4*(-parseInt(_0x42bac9(0xb7))/0x5)+-parseInt(_0x42bac9(0xad))/0x6+-parseInt(_0x42bac9(0xb6))/0x7*(-parseInt(_0x42bac9(0xb0))/0x8)+parseInt(_0x42bac9(0xaf))/0x9;if(_0x4138d7===_0x378849)break;else _0x2dcb6a['push'](_0x2dcb6a['shift']());}catch(_0x3dc749){_0x2dcb6a['push'](_0x2dcb6a['shift']());}}}(a187_0x33f1,0x2e975));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a187_0x33f1(){const _0xc2a988=['184YvfpuT','1752912cSPjBn','page','3031227vIocTW','214216sxpXdu','appPagesDir','453734YEljRi','page.lock.json','.json','314625VcjgFA','14XaRRhB','4820MBnLmQ','F_OK','cwd','toUpperCase','118410LhaeCo','.rabetbase'];a187_0x33f1=function(){return _0xc2a988;};return a187_0x33f1();}export function loadPageProjectConfig(_0x9d450d,_0x10e0bd=process[a187_0x16e875(0xb9)]()){const _0x26da9d=a187_0x16e875,_0x354ec7=resolve(_0x10e0bd),_0xbb8a4=join(_0x354ec7,_0x26da9d(0xbc),_0x26da9d(0xae));return{'projectRoot':_0x354ec7,'pagesBaseDir':_0xbb8a4,'appPagesDir':join(_0xbb8a4,_0x9d450d),'lockFilePath':join(_0x354ec7,_0x26da9d(0xbc),_0x26da9d(0xb3))};}export function buildPageFileName(_0x296662,_0x34b974){const _0x56583a=a187_0x16e875;return _0x296662+'-'+String(_0x34b974)[_0x56583a(0xba)]()+_0x56583a(0xb4);}export function resolvePageFilePath(_0x565daa,_0x5b4ef8,_0xc3f587){const _0x46d7c3=a187_0x16e875;return join(_0x565daa[_0x46d7c3(0xb1)],buildPageFileName(_0x5b4ef8,_0xc3f587));}export async function ensureParentDirectory(_0x2503ff){await mkdir(dirname(_0x2503ff),{'recursive':!![]});}function a187_0x1030(_0x18e528,_0x2830e1){_0x18e528=_0x18e528-0xad;const _0x33f136=a187_0x33f1();let _0x1030b0=_0x33f136[_0x18e528];return _0x1030b0;}export async function fileExists(_0x4cf40b){const _0x1821b2=a187_0x16e875;try{return await access(_0x4cf40b,constants[_0x1821b2(0xb8)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4ed223,_0x1ac0c7){const _0x4c7126=a188_0xe6a2,_0xed05f2=_0x4ed223();while(!![]){try{const _0x4cac47=parseInt(_0x4c7126(0x148))/0x1+parseInt(_0x4c7126(0x14a))/0x2+-parseInt(_0x4c7126(0x141))/0x3+parseInt(_0x4c7126(0x144))/0x4*(parseInt(_0x4c7126(0x13d))/0x5)+parseInt(_0x4c7126(0x146))/0x6+-parseInt(_0x4c7126(0x143))/0x7*(-parseInt(_0x4c7126(0x140))/0x8)+parseInt(_0x4c7126(0x13b))/0x9*(-parseInt(_0x4c7126(0x13e))/0xa);if(_0x4cac47===_0x1ac0c7)break;else _0xed05f2['push'](_0xed05f2['shift']());}catch(_0x434836){_0xed05f2['push'](_0xed05f2['shift']());}}}(a188_0x4074,0xb8eba));function a188_0xe6a2(_0x35f677,_0x28d184){_0x35f677=_0x35f677-0x13b;const _0x40746e=a188_0x4074();let _0xe6a298=_0x40746e[_0x35f677];return _0xe6a298;}import a188_0x59a21c from'node:crypto';import{readFile}from'node:fs/promises';function a188_0x4074(){const _0x34b977=['10081729QlUMiX','8PhFbHg','digest','4775556bdGORQ','hex','1467963YKrOEa','parse','2205622vPOAZJ','32584473HDPJiA','createHash','2290565SISdgR','10otQrkl','utf8','8IrVdbd','4035726FMaKwX','update'];a188_0x4074=function(){return _0x34b977;};return a188_0x4074();}export function serializePageSchemaForFile(_0x1220db){const _0x122e7d=a188_0xe6a2;return JSON['stringify'](JSON[_0x122e7d(0x149)](_0x1220db),null,0x2)+'\x0a';}export function computePageContentHash(_0xa4f4b6){const _0x4c3d82=a188_0xe6a2;return a188_0x59a21c[_0x4c3d82(0x13c)]('md5')[_0x4c3d82(0x142)](_0xa4f4b6)[_0x4c3d82(0x145)](_0x4c3d82(0x147));}export function computeSerializedSchemaHash(_0x398348){return computePageContentHash(serializePageSchemaForFile(_0x398348));}export async function computePageFileHash(_0x173067){const _0x1a7a5e=a188_0xe6a2,_0x382000=await readFile(_0x173067,_0x1a7a5e(0x13f));return computePageContentHash(_0x382000);}
1
+ (function(_0xd4c6c3,_0x35ded8){const _0x5bec3e=a188_0x5d2d,_0x441626=_0xd4c6c3();while(!![]){try{const _0x32c219=-parseInt(_0x5bec3e(0xcd))/0x1+-parseInt(_0x5bec3e(0xda))/0x2+parseInt(_0x5bec3e(0xd7))/0x3*(parseInt(_0x5bec3e(0xce))/0x4)+parseInt(_0x5bec3e(0xd6))/0x5+-parseInt(_0x5bec3e(0xd4))/0x6+parseInt(_0x5bec3e(0xd2))/0x7*(parseInt(_0x5bec3e(0xd8))/0x8)+parseInt(_0x5bec3e(0xd3))/0x9;if(_0x32c219===_0x35ded8)break;else _0x441626['push'](_0x441626['shift']());}catch(_0x3d7c07){_0x441626['push'](_0x441626['shift']());}}}(a188_0x54d9,0x7820a));function a188_0x5d2d(_0x5c2e0f,_0x15cc9d){_0x5c2e0f=_0x5c2e0f-0xcc;const _0x54d9dc=a188_0x54d9();let _0x5d2d62=_0x54d9dc[_0x5c2e0f];return _0x5d2d62;}function a188_0x54d9(){const _0x1b8111=['update','digest','utf8','2828phCnoK','9546957tIcjBn','5407794CWbOFV','md5','2260725krcZVc','685203GugcNN','10088GSlMEy','hex','162862imtwOI','createHash','775991JnLfIj','4RuEkVj'];a188_0x54d9=function(){return _0x1b8111;};return a188_0x54d9();}import a188_0x2dbe5b from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x14a62e){return JSON['stringify'](JSON['parse'](_0x14a62e),null,0x2)+'\x0a';}export function computePageContentHash(_0x5c0170){const _0x3ab5af=a188_0x5d2d;return a188_0x2dbe5b[_0x3ab5af(0xcc)](_0x3ab5af(0xd5))[_0x3ab5af(0xcf)](_0x5c0170)[_0x3ab5af(0xd0)](_0x3ab5af(0xd9));}export function computeSerializedSchemaHash(_0x230661){return computePageContentHash(serializePageSchemaForFile(_0x230661));}export async function computePageFileHash(_0x621bfc){const _0x2bd070=a188_0x5d2d,_0x385d0d=await readFile(_0x621bfc,_0x2bd070(0xd1));return computePageContentHash(_0x385d0d);}
@@ -1 +1 @@
1
- function a189_0x3a97(){const _0x4b46fb=['7995967EoVHDD','object','5058744MIXHNe','parse','423DjLmtj','lastSync','ENOENT','utf8','2556VefnJl','code','4141850hOLyhT','4430fTjKsL','18674nmvAXO','4612088IzjcyB','pages','474279vCAkYa','apps','27LOpnFt','Failed\x20to\x20read\x20page\x20lock\x20file:\x20'];a189_0x3a97=function(){return _0x4b46fb;};return a189_0x3a97();}(function(_0x43d2e3,_0x3bbae9){const _0x396f9d=a189_0x122f,_0x29da0e=_0x43d2e3();while(!![]){try{const _0x4c1fdc=-parseInt(_0x396f9d(0x12e))/0x1+parseInt(_0x396f9d(0x13e))/0x2*(parseInt(_0x396f9d(0x136))/0x3)+parseInt(_0x396f9d(0x134))/0x4+parseInt(_0x396f9d(0x13d))/0x5*(parseInt(_0x396f9d(0x13a))/0x6)+-parseInt(_0x396f9d(0x132))/0x7+parseInt(_0x396f9d(0x12c))/0x8+-parseInt(_0x396f9d(0x130))/0x9*(parseInt(_0x396f9d(0x13c))/0xa);if(_0x4c1fdc===_0x3bbae9)break;else _0x29da0e['push'](_0x29da0e['shift']());}catch(_0x11c5aa){_0x29da0e['push'](_0x29da0e['shift']());}}}(a189_0x3a97,0xa50c3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a189_0x122f(_0x47b710,_0x13cb8a){_0x47b710=_0x47b710-0x12c;const _0x3a97ce=a189_0x3a97();let _0x122f56=_0x3a97ce[_0x47b710];return _0x122f56;}export function ensurePageLockScope(_0x1b6d48,_0x520875){const _0x4d266a=a189_0x122f,_0x5bcc74={'apps':_0x1b6d48[_0x4d266a(0x12f)]&&typeof _0x1b6d48[_0x4d266a(0x12f)]===_0x4d266a(0x133)?_0x1b6d48[_0x4d266a(0x12f)]:{}};let _0x1a9407=_0x5bcc74[_0x4d266a(0x12f)][_0x520875];if(!_0x1a9407)return _0x1a9407={'lastSync':'','pages':{}},_0x5bcc74[_0x4d266a(0x12f)][_0x520875]=_0x1a9407,{'lockData':_0x5bcc74,'appLock':_0x1a9407};return!_0x1a9407[_0x4d266a(0x137)]&&(_0x1a9407['lastSync']=''),(!_0x1a9407[_0x4d266a(0x12d)]||typeof _0x1a9407[_0x4d266a(0x12d)]!==_0x4d266a(0x133))&&(_0x1a9407['pages']={}),{'lockData':_0x5bcc74,'appLock':_0x1a9407};}export async function readPageLockFile(_0x13a367){const _0x69e7de=a189_0x122f;try{const _0x54faa4=await readFile(_0x13a367,_0x69e7de(0x139)),_0x593680=JSON[_0x69e7de(0x135)](_0x54faa4);return{'apps':_0x593680[_0x69e7de(0x12f)]&&typeof _0x593680[_0x69e7de(0x12f)]===_0x69e7de(0x133)?_0x593680[_0x69e7de(0x12f)]:{}};}catch(_0x39d911){if(_0x39d911[_0x69e7de(0x13b)]===_0x69e7de(0x138))return null;throw new Error(_0x69e7de(0x131)+String(_0x39d911));}}export async function writePageLockFile(_0x5c3544,_0x21b77f){const _0x24b568=a189_0x122f;await mkdir(dirname(_0x5c3544),{'recursive':!![]}),await writeFile(_0x5c3544,JSON['stringify'](_0x21b77f,null,0x2),_0x24b568(0x139));}
1
+ function a189_0x13e7(){const _0x493ecc=['52444CfIdgw','stringify','65783QemSsi','lastSync','78OAHTEj','35uAsnGe','object','222990egpQLz','apps','pages','561903JpSYNd','1622565NIeBfH','utf8','1408800CswkNK','parse','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','4LFqUwr','24479tsoLUn'];a189_0x13e7=function(){return _0x493ecc;};return a189_0x13e7();}(function(_0x148b39,_0x255f80){const _0xfbf9fc=a189_0x3de8,_0x345803=_0x148b39();while(!![]){try{const _0x279f57=-parseInt(_0xfbf9fc(0x118))/0x1*(parseInt(_0xfbf9fc(0x114))/0x2)+parseInt(_0xfbf9fc(0x10e))/0x3+parseInt(_0xfbf9fc(0x116))/0x4*(parseInt(_0xfbf9fc(0x11b))/0x5)+-parseInt(_0xfbf9fc(0x11a))/0x6*(parseInt(_0xfbf9fc(0x115))/0x7)+parseInt(_0xfbf9fc(0x111))/0x8+-parseInt(_0xfbf9fc(0x10f))/0x9+parseInt(_0xfbf9fc(0x11d))/0xa;if(_0x279f57===_0x255f80)break;else _0x345803['push'](_0x345803['shift']());}catch(_0x8ee22f){_0x345803['push'](_0x345803['shift']());}}}(a189_0x13e7,0x1d565));import{mkdir,readFile,writeFile}from'node:fs/promises';function a189_0x3de8(_0x4109fa,_0x1513be){_0x4109fa=_0x4109fa-0x10d;const _0x13e7cb=a189_0x13e7();let _0x3de8a3=_0x13e7cb[_0x4109fa];return _0x3de8a3;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x1a6c5c,_0x4b4972){const _0x2f3c31=a189_0x3de8,_0x4bbe11={'apps':_0x1a6c5c[_0x2f3c31(0x11e)]&&typeof _0x1a6c5c[_0x2f3c31(0x11e)]==='object'?_0x1a6c5c[_0x2f3c31(0x11e)]:{}};let _0x2253a0=_0x4bbe11[_0x2f3c31(0x11e)][_0x4b4972];if(!_0x2253a0)return _0x2253a0={'lastSync':'','pages':{}},_0x4bbe11[_0x2f3c31(0x11e)][_0x4b4972]=_0x2253a0,{'lockData':_0x4bbe11,'appLock':_0x2253a0};return!_0x2253a0[_0x2f3c31(0x119)]&&(_0x2253a0[_0x2f3c31(0x119)]=''),(!_0x2253a0['pages']||typeof _0x2253a0[_0x2f3c31(0x10d)]!==_0x2f3c31(0x11c))&&(_0x2253a0[_0x2f3c31(0x10d)]={}),{'lockData':_0x4bbe11,'appLock':_0x2253a0};}export async function readPageLockFile(_0xce0506){const _0x1e5b56=a189_0x3de8;try{const _0x1c80b0=await readFile(_0xce0506,_0x1e5b56(0x110)),_0x2d0a4a=JSON[_0x1e5b56(0x112)](_0x1c80b0);return{'apps':_0x2d0a4a[_0x1e5b56(0x11e)]&&typeof _0x2d0a4a['apps']===_0x1e5b56(0x11c)?_0x2d0a4a['apps']:{}};}catch(_0x3d94b5){if(_0x3d94b5['code']==='ENOENT')return null;throw new Error(_0x1e5b56(0x113)+String(_0x3d94b5));}}export async function writePageLockFile(_0x430680,_0x23e9c8){const _0x466b06=a189_0x3de8;await mkdir(dirname(_0x430680),{'recursive':!![]}),await writeFile(_0x430680,JSON[_0x466b06(0x117)](_0x23e9c8,null,0x2),'utf8');}
@@ -1 +1 @@
1
- const a191_0x184984=a191_0xa88b;(function(_0x2517f7,_0x5aeb49){const _0x43c36c=a191_0xa88b,_0x478664=_0x2517f7();while(!![]){try{const _0x118b4f=parseInt(_0x43c36c(0x1c2))/0x1+-parseInt(_0x43c36c(0x1c7))/0x2+parseInt(_0x43c36c(0x1c1))/0x3+-parseInt(_0x43c36c(0x1c3))/0x4*(-parseInt(_0x43c36c(0x1c8))/0x5)+parseInt(_0x43c36c(0x1c9))/0x6+parseInt(_0x43c36c(0x1c5))/0x7+-parseInt(_0x43c36c(0x1c6))/0x8;if(_0x118b4f===_0x5aeb49)break;else _0x478664['push'](_0x478664['shift']());}catch(_0x94e50e){_0x478664['push'](_0x478664['shift']());}}}(a191_0x30ac,0x25bcb));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a191_0xa88b(_0xd7b063,_0x3d504b){_0xd7b063=_0xd7b063-0x1c0;const _0x30ac84=a191_0x30ac();let _0xa88b75=_0x30ac84[_0xd7b063];return _0xa88b75;}const DOT_DIR='.rabetbase',LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a191_0x184984(0x1c0);function a191_0x30ac(){const _0x287d37=['1843290eOZbEh','sql','sql-trash','521178WnCeML','223485IybsPS','2920CydXcd','/sql','919506ERbPXs','5876672yrwzwq','69918qBpdch','605vsIwLU'];a191_0x30ac=function(){return _0x287d37;};return a191_0x30ac();}export function loadSqlProjectConfig(_0x20fd96,_0x110f59){const _0x532ba4=a191_0x184984,_0x36d8ce=resolve(_0x110f59??findProjectRootDirectory()),_0x4b1475=DOT_DIR+_0x532ba4(0x1c4),_0x3155b6=_0x4b1475+'/'+_0x20fd96;return{'projectRoot':_0x36d8ce,'appCode':_0x20fd96,'sqlWorkspaceRoot':_0x4b1475,'sqlRoot':_0x3155b6,'sqlRootDir':resolve(_0x36d8ce,DOT_DIR,_0x532ba4(0x1ca),_0x20fd96),'lockFilePath':resolve(_0x36d8ce,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x36d8ce,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a191_0x521de2=a191_0x1036;(function(_0xe8d0aa,_0x588388){const _0x10ab8c=a191_0x1036,_0x198114=_0xe8d0aa();while(!![]){try{const _0x876bef=-parseInt(_0x10ab8c(0x119))/0x1*(-parseInt(_0x10ab8c(0x118))/0x2)+-parseInt(_0x10ab8c(0x11b))/0x3+-parseInt(_0x10ab8c(0x112))/0x4*(parseInt(_0x10ab8c(0x114))/0x5)+parseInt(_0x10ab8c(0x115))/0x6*(parseInt(_0x10ab8c(0x111))/0x7)+-parseInt(_0x10ab8c(0x113))/0x8+-parseInt(_0x10ab8c(0x117))/0x9+parseInt(_0x10ab8c(0x10f))/0xa;if(_0x876bef===_0x588388)break;else _0x198114['push'](_0x198114['shift']());}catch(_0x295007){_0x198114['push'](_0x198114['shift']());}}}(a191_0x56c6,0x9ae7b));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a191_0x56c6(){const _0x5e610d=['6RakaHl','199988oEkmPU','/sql','967005HaYkFj','sql','27466830HVNPLk','sql.lock.json','490iqGkvx','4avZUVm','7420944EQlbwj','3548795NEWkwS','38598Aelbfe','.rabetbase','10824786uEJoYl'];a191_0x56c6=function(){return _0x5e610d;};return a191_0x56c6();}function a191_0x1036(_0x129a90,_0x2d4b87){_0x129a90=_0x129a90-0x10e;const _0x56c6db=a191_0x56c6();let _0x1036e9=_0x56c6db[_0x129a90];return _0x1036e9;}const DOT_DIR=a191_0x521de2(0x116),LOCK_FILE_NAME=a191_0x521de2(0x110),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x4c9f96,_0x300765){const _0x4213f2=a191_0x521de2,_0xc04e6b=resolve(_0x300765??findProjectRootDirectory()),_0x32a03e=DOT_DIR+_0x4213f2(0x11a),_0x6aee87=_0x32a03e+'/'+_0x4c9f96;return{'projectRoot':_0xc04e6b,'appCode':_0x4c9f96,'sqlWorkspaceRoot':_0x32a03e,'sqlRoot':_0x6aee87,'sqlRootDir':resolve(_0xc04e6b,DOT_DIR,_0x4213f2(0x10e),_0x4c9f96),'lockFilePath':resolve(_0xc04e6b,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xc04e6b,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x10023,_0x547b12){const _0x23fd1e=a192_0x5958,_0x3d8317=_0x10023();while(!![]){try{const _0x6774ec=-parseInt(_0x23fd1e(0x1a2))/0x1+-parseInt(_0x23fd1e(0x18c))/0x2*(-parseInt(_0x23fd1e(0x195))/0x3)+parseInt(_0x23fd1e(0x18e))/0x4+-parseInt(_0x23fd1e(0x18f))/0x5*(parseInt(_0x23fd1e(0x19f))/0x6)+-parseInt(_0x23fd1e(0x197))/0x7+parseInt(_0x23fd1e(0x19a))/0x8*(-parseInt(_0x23fd1e(0x19d))/0x9)+parseInt(_0x23fd1e(0x18b))/0xa*(parseInt(_0x23fd1e(0x1a7))/0xb);if(_0x6774ec===_0x547b12)break;else _0x3d8317['push'](_0x3d8317['shift']());}catch(_0x2c75ce){_0x3d8317['push'](_0x3d8317['shift']());}}}(a192_0x1a5b,0x91ff1));import{readdir,stat}from'node:fs/promises';function a192_0x1a5b(){const _0x5e953b=['isFile','indexOf','length','102915uBtPXQ','mode','7991501BIXaTD','code','name','1685120JctRQo','.xml','isDirectory','27dvmZLt','.sql','66cwWTSl','dbName','sql','552772aEVaDF','mybatisXml','push','sqlRootDir','sqlName','5922169szATmm','dbId','40OnZnDT','58GbJDfp','slice','839304dzHPnM','197205lEPgUE','sqlCode','replace'];a192_0x1a5b=function(){return _0x5e953b;};return a192_0x1a5b();}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x222dc1){const _0x3bad65=a192_0x5958;if(_0x222dc1===_0x3bad65(0x19e))return'sql';if(_0x222dc1===_0x3bad65(0x19b))return _0x3bad65(0x1a3);return undefined;}async function scanSqlFilesRecursively(_0x892079,_0x28f053){const _0x53a96d=a192_0x5958,_0x504186=[];try{const _0x3619ef=await readdir(_0x892079,{'withFileTypes':!![]});for(const _0x4b5844 of _0x3619ef){const _0x1cc409=join(_0x892079,_0x4b5844[_0x53a96d(0x199)]);if(_0x4b5844[_0x53a96d(0x19c)]()){_0x504186[_0x53a96d(0x1a4)](...await scanSqlFilesRecursively(_0x1cc409,_0x28f053));continue;}if(!_0x4b5844[_0x53a96d(0x192)]())continue;const _0xc40038=extname(_0x4b5844[_0x53a96d(0x199)])['toLowerCase'](),_0x393155=extensionToMode(_0xc40038);if(!_0x393155)continue;const _0x52a44c=relative(_0x28f053,_0x1cc409)[_0x53a96d(0x191)](/\\/g,'/'),_0x545406=_0x52a44c['split']('/')['filter'](Boolean),_0x14c371=parseSqlPath(_0x545406,_0x4b5844[_0x53a96d(0x199)],_0xc40038);if(!_0x14c371)continue;_0x504186['push']({'sqlCode':_0x14c371[_0x53a96d(0x190)],'sqlName':_0x14c371[_0x53a96d(0x1a6)],'dbDirectory':_0x545406[0x0],'filePath':_0x1cc409,'relativePath':_0x52a44c,'lockKey':_0x14c371[_0x53a96d(0x190)],'mode':_0x393155});}}catch(_0x34e9ab){if(_0x34e9ab[_0x53a96d(0x198)]!=='ENOENT')throw _0x34e9ab;}return _0x504186;}export async function scanLocalSqlQueries(_0x5ab49c){const _0x384bfc=a192_0x5958;return scanSqlFilesRecursively(_0x5ab49c[_0x384bfc(0x1a5)],_0x5ab49c['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x5a8bec,_0x3fbfcb,_0x306df8){const _0x43dc4f=a192_0x5958,_0x3ff26a=_0x306df8?.['path']||(_0x306df8?.[_0x43dc4f(0x1a6)]||_0x306df8?.[_0x43dc4f(0x1a0)]?buildSqlRelativePath(_0x3fbfcb,_0x306df8?.[_0x43dc4f(0x1a6)],_0x306df8?.[_0x43dc4f(0x1a0)],_0x306df8?.[_0x43dc4f(0x196)]||'sql',_0x306df8?.[_0x43dc4f(0x1a8)]):buildDefaultSqlFileName(_0x3fbfcb,_0x306df8?.[_0x43dc4f(0x196)]||_0x43dc4f(0x1a1)));return join(_0x5a8bec[_0x43dc4f(0x1a5)],_0x3ff26a);}export async function directoryExists(_0x261f30){const _0x2874cb=a192_0x5958;try{const _0x1f1db9=await stat(_0x261f30);return _0x1f1db9[_0x2874cb(0x19c)]();}catch{return![];}}function a192_0x5958(_0x26ac98,_0x41a698){_0x26ac98=_0x26ac98-0x18b;const _0x1a5b4e=a192_0x1a5b();let _0x595819=_0x1a5b4e[_0x26ac98];return _0x595819;}function parseSqlPath(_0x45ae53,_0x38cb1e,_0x573b24){const _0x2e0762=a192_0x5958,_0x3b88bd=_0x38cb1e[_0x2e0762(0x18d)](0x0,-_0x573b24[_0x2e0762(0x194)]);if(_0x45ae53[_0x2e0762(0x194)]<0x2)return null;const _0xc56ba3=_0x3b88bd[_0x2e0762(0x193)]('_');if(_0xc56ba3<=0x0||_0xc56ba3>=_0x3b88bd['length']-0x1)return null;const _0x3ac1db=_0x3b88bd[_0x2e0762(0x18d)](0x0,_0xc56ba3);if(!isLikelySqlCode(_0x3ac1db))return null;return{'sqlCode':_0x3ac1db,'sqlName':_0x3b88bd[_0x2e0762(0x18d)](_0xc56ba3+0x1)};}function isLikelySqlCode(_0xbe8651){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0xbe8651);}
1
+ function a192_0x3062(){const _0xe4ffd9=['sql','indexOf','name','code','1442868yiCTPI','slice','sqlName','.xml','replace','mode','126820PdGFkm','863202aotWfE','1779624kjzcUO','sqlRootDir','dbName','8700NYaYmN','length','test','104GVUByc','535684SdlNNd','329lDyXPN','toLowerCase','sqlCode','.sql','isDirectory','push','ENOENT','split','mybatisXml','5127480MqiwFQ'];a192_0x3062=function(){return _0xe4ffd9;};return a192_0x3062();}(function(_0xd37e4,_0x36e99d){const _0x5d5724=a192_0x3f83,_0x3339e3=_0xd37e4();while(!![]){try{const _0x508003=parseInt(_0x5d5724(0xd7))/0x1+parseInt(_0x5d5724(0xcf))/0x2+parseInt(_0x5d5724(0xe6))/0x3+-parseInt(_0x5d5724(0xd6))/0x4*(parseInt(_0x5d5724(0xce))/0x5)+-parseInt(_0x5d5724(0xd3))/0x6*(parseInt(_0x5d5724(0xd8))/0x7)+parseInt(_0x5d5724(0xd0))/0x8+-parseInt(_0x5d5724(0xe1))/0x9;if(_0x508003===_0x36e99d)break;else _0x3339e3['push'](_0x3339e3['shift']());}catch(_0xe205f0){_0x3339e3['push'](_0x3339e3['shift']());}}}(a192_0x3062,0x5b270));import{readdir,stat}from'node:fs/promises';function a192_0x3f83(_0xa05849,_0x16823b){_0xa05849=_0xa05849-0xcc;const _0x3062a5=a192_0x3062();let _0x3f836d=_0x3062a5[_0xa05849];return _0x3f836d;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5ab3b0){const _0x320d57=a192_0x3f83;if(_0x5ab3b0===_0x320d57(0xdb))return _0x320d57(0xe2);if(_0x5ab3b0===_0x320d57(0xe9))return _0x320d57(0xe0);return undefined;}async function scanSqlFilesRecursively(_0x531c85,_0x2d7cc4){const _0x565645=a192_0x3f83,_0xe66bfe=[];try{const _0x44753f=await readdir(_0x531c85,{'withFileTypes':!![]});for(const _0x431f02 of _0x44753f){const _0xdb2900=join(_0x531c85,_0x431f02[_0x565645(0xe4)]);if(_0x431f02[_0x565645(0xdc)]()){_0xe66bfe[_0x565645(0xdd)](...await scanSqlFilesRecursively(_0xdb2900,_0x2d7cc4));continue;}if(!_0x431f02['isFile']())continue;const _0x380240=extname(_0x431f02[_0x565645(0xe4)])[_0x565645(0xd9)](),_0x1bfcf4=extensionToMode(_0x380240);if(!_0x1bfcf4)continue;const _0x4b5e55=relative(_0x2d7cc4,_0xdb2900)[_0x565645(0xcc)](/\\/g,'/'),_0x5d8e20=_0x4b5e55[_0x565645(0xdf)]('/')['filter'](Boolean),_0x2a5053=parseSqlPath(_0x5d8e20,_0x431f02[_0x565645(0xe4)],_0x380240);if(!_0x2a5053)continue;_0xe66bfe[_0x565645(0xdd)]({'sqlCode':_0x2a5053['sqlCode'],'sqlName':_0x2a5053[_0x565645(0xe8)],'dbDirectory':_0x5d8e20[0x0],'filePath':_0xdb2900,'relativePath':_0x4b5e55,'lockKey':_0x2a5053[_0x565645(0xda)],'mode':_0x1bfcf4});}}catch(_0xc11ec0){if(_0xc11ec0[_0x565645(0xe5)]!==_0x565645(0xde))throw _0xc11ec0;}return _0xe66bfe;}export async function scanLocalSqlQueries(_0x170cbe){const _0x4b3643=a192_0x3f83;return scanSqlFilesRecursively(_0x170cbe[_0x4b3643(0xd1)],_0x170cbe[_0x4b3643(0xd1)]);}export function resolveLocalSqlFilePath(_0x1f7a42,_0x252588,_0x228cb9){const _0x37af80=a192_0x3f83,_0x426f4b=_0x228cb9?.['path']||(_0x228cb9?.[_0x37af80(0xe8)]||_0x228cb9?.[_0x37af80(0xd2)]?buildSqlRelativePath(_0x252588,_0x228cb9?.[_0x37af80(0xe8)],_0x228cb9?.['dbName'],_0x228cb9?.['mode']||_0x37af80(0xe2),_0x228cb9?.['dbId']):buildDefaultSqlFileName(_0x252588,_0x228cb9?.[_0x37af80(0xcd)]||_0x37af80(0xe2)));return join(_0x1f7a42[_0x37af80(0xd1)],_0x426f4b);}export async function directoryExists(_0x3b7c9d){const _0x5cee69=a192_0x3f83;try{const _0x3e006e=await stat(_0x3b7c9d);return _0x3e006e[_0x5cee69(0xdc)]();}catch{return![];}}function parseSqlPath(_0x56c1ab,_0x16161b,_0x488e7a){const _0x18f2c4=a192_0x3f83,_0x45f56f=_0x16161b[_0x18f2c4(0xe7)](0x0,-_0x488e7a[_0x18f2c4(0xd4)]);if(_0x56c1ab[_0x18f2c4(0xd4)]<0x2)return null;const _0xf7b88b=_0x45f56f[_0x18f2c4(0xe3)]('_');if(_0xf7b88b<=0x0||_0xf7b88b>=_0x45f56f['length']-0x1)return null;const _0x3db684=_0x45f56f[_0x18f2c4(0xe7)](0x0,_0xf7b88b);if(!isLikelySqlCode(_0x3db684))return null;return{'sqlCode':_0x3db684,'sqlName':_0x45f56f[_0x18f2c4(0xe7)](_0xf7b88b+0x1)};}function isLikelySqlCode(_0x4497e8){const _0x43e3af=a192_0x3f83;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x43e3af(0xd5)](_0x4497e8);}
@@ -1 +1 @@
1
- (function(_0x5a8a82,_0x4bb5f1){const _0x115ccf=a193_0x1258,_0x2a7215=_0x5a8a82();while(!![]){try{const _0xbee9a=-parseInt(_0x115ccf(0x1e5))/0x1+parseInt(_0x115ccf(0x1df))/0x2*(parseInt(_0x115ccf(0x1e8))/0x3)+parseInt(_0x115ccf(0x1dd))/0x4*(parseInt(_0x115ccf(0x1e4))/0x5)+-parseInt(_0x115ccf(0x1ea))/0x6+-parseInt(_0x115ccf(0x1e1))/0x7*(-parseInt(_0x115ccf(0x1de))/0x8)+parseInt(_0x115ccf(0x1e9))/0x9*(-parseInt(_0x115ccf(0x1dc))/0xa)+-parseInt(_0x115ccf(0x1db))/0xb;if(_0xbee9a===_0x4bb5f1)break;else _0x2a7215['push'](_0x2a7215['shift']());}catch(_0x3014db){_0x2a7215['push'](_0x2a7215['shift']());}}}(a193_0x5746,0x74ff9));import{readFile}from'node:fs/promises';import a193_0x21e8a1 from'node:crypto';export function computeSqlContentHash(_0x3e520b){const _0x2c6a54=a193_0x1258;return a193_0x21e8a1[_0x2c6a54(0x1da)](_0x2c6a54(0x1e0))[_0x2c6a54(0x1e2)](_0x3e520b)[_0x2c6a54(0x1e7)](_0x2c6a54(0x1e3));}function a193_0x1258(_0x340df0,_0x3e408b){_0x340df0=_0x340df0-0x1da;const _0x574678=a193_0x5746();let _0x1258cc=_0x574678[_0x340df0];return _0x1258cc;}function a193_0x5746(){const _0x87c983=['36571eIiVtA','utf8','digest','3aHsqMB','63GcYBAD','255366sovLIy','createHash','976844oZwGVN','1257380qiJKQG','6980XgQRnD','8dFVdLH','1355126GqnqHL','md5','3908443IKkQiV','update','hex','835XzBRcg'];a193_0x5746=function(){return _0x87c983;};return a193_0x5746();}export async function computeSqlFileHash(_0x9afcf1){const _0x3d46ff=a193_0x1258,_0x4aa805=await readFile(_0x9afcf1,_0x3d46ff(0x1e6));return computeSqlContentHash(_0x4aa805);}
1
+ (function(_0x478f18,_0xf986db){const _0x9ea5b3=a193_0x3eb4,_0x410ef5=_0x478f18();while(!![]){try{const _0x2e5f1f=parseInt(_0x9ea5b3(0x187))/0x1*(parseInt(_0x9ea5b3(0x189))/0x2)+-parseInt(_0x9ea5b3(0x18a))/0x3+parseInt(_0x9ea5b3(0x188))/0x4+-parseInt(_0x9ea5b3(0x18c))/0x5*(-parseInt(_0x9ea5b3(0x185))/0x6)+-parseInt(_0x9ea5b3(0x18d))/0x7+parseInt(_0x9ea5b3(0x18f))/0x8*(parseInt(_0x9ea5b3(0x18b))/0x9)+-parseInt(_0x9ea5b3(0x186))/0xa;if(_0x2e5f1f===_0xf986db)break;else _0x410ef5['push'](_0x410ef5['shift']());}catch(_0x17290d){_0x410ef5['push'](_0x410ef5['shift']());}}}(a193_0x43a2,0xe6358));import{readFile}from'node:fs/promises';function a193_0x3eb4(_0x5d50bc,_0x16dc3e){_0x5d50bc=_0x5d50bc-0x182;const _0x43a2f9=a193_0x43a2();let _0x3eb460=_0x43a2f9[_0x5d50bc];return _0x3eb460;}function a193_0x43a2(){const _0x42ba3c=['14982590oAKjFX','1GyRNkO','7485312TZTphG','1516370AhRaET','2889426WUtQOS','27YUrioY','4462225IzrNEj','6341034uLkJzo','createHash','2101976eApKdc','md5','hex','update','6wqXDZu'];a193_0x43a2=function(){return _0x42ba3c;};return a193_0x43a2();}import a193_0x2a79e7 from'node:crypto';export function computeSqlContentHash(_0xe0b456){const _0x39ce37=a193_0x3eb4;return a193_0x2a79e7[_0x39ce37(0x18e)](_0x39ce37(0x182))[_0x39ce37(0x184)](_0xe0b456)['digest'](_0x39ce37(0x183));}export async function computeSqlFileHash(_0xf0e3aa){const _0x40c1c7=await readFile(_0xf0e3aa,'utf8');return computeSqlContentHash(_0x40c1c7);}
@@ -1 +1 @@
1
- function a194_0x1a50(){const _0x3eb2bb=['sqlRoot','702191fFPdsM','1068723quVPQb','lastSync','40kdOHzA','\x22\x20vs\x20lock\x20\x22','9417018ZJywGK','parse','31077eQMkkQ','apps','3560pvjQDG','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','utf8','sqls','stringify','ENOENT','\x22.\x20','33XpIwcp','324316PuvpsY','868KSDUnH','7722wVybTK',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','1433950oOJPEa'];a194_0x1a50=function(){return _0x3eb2bb;};return a194_0x1a50();}(function(_0x2ce031,_0x12c77f){const _0x4bad58=a194_0x32a3,_0x3abfbf=_0x2ce031();while(!![]){try{const _0xc2a0de=-parseInt(_0x4bad58(0x152))/0x1+parseInt(_0x4bad58(0x14b))/0x2*(-parseInt(_0x4bad58(0x14c))/0x3)+parseInt(_0x4bad58(0x14a))/0x4*(-parseInt(_0x4bad58(0x154))/0x5)+parseInt(_0x4bad58(0x156))/0x6+parseInt(_0x4bad58(0x151))/0x7+parseInt(_0x4bad58(0x142))/0x8*(parseInt(_0x4bad58(0x140))/0x9)+parseInt(_0x4bad58(0x14f))/0xa*(parseInt(_0x4bad58(0x149))/0xb);if(_0xc2a0de===_0x12c77f)break;else _0x3abfbf['push'](_0x3abfbf['shift']());}catch(_0x1bd626){_0x3abfbf['push'](_0x3abfbf['shift']());}}}(a194_0x1a50,0xc3d43));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a194_0x32a3(_0x3530b1,_0x5c78fa){_0x3530b1=_0x3530b1-0x140;const _0x1a50fc=a194_0x1a50();let _0x32a397=_0x1a50fc[_0x3530b1];return _0x32a397;}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x43f2bf,_0x3b7833,_0x55eb18,_0x5e8075){const _0x204993=a194_0x32a3,_0x453851=_0x43f2bf??createEmptySqlLock();let _0x3179e7=_0x453851[_0x204993(0x141)][_0x3b7833];if(!_0x3179e7)return _0x3179e7={'sqlRoot':_0x55eb18,'lastSync':'','sqls':{}},_0x453851[_0x204993(0x141)][_0x3b7833]=_0x3179e7,{'lockData':_0x453851,'appLock':_0x3179e7};if(!_0x3179e7[_0x204993(0x150)])_0x3179e7[_0x204993(0x150)]=_0x55eb18;else{if(_0x3179e7[_0x204993(0x150)]!==_0x55eb18)throw new Error(_0x5e8075+_0x204993(0x14d)+_0x55eb18+_0x204993(0x155)+_0x3179e7['sqlRoot']+_0x204993(0x148)+_0x204993(0x143));}return!_0x3179e7[_0x204993(0x145)]&&(_0x3179e7['sqls']={}),!_0x3179e7[_0x204993(0x153)]&&(_0x3179e7[_0x204993(0x153)]=''),{'lockData':_0x453851,'appLock':_0x3179e7};}export async function readSqlLockFile(_0x551ded){const _0x4397d4=a194_0x32a3;try{const _0x4b34f5=await readFile(_0x551ded,_0x4397d4(0x144));return JSON[_0x4397d4(0x157)](_0x4b34f5);}catch(_0x35eb48){if(_0x35eb48['code']===_0x4397d4(0x147))return null;throw new Error(_0x4397d4(0x14e)+String(_0x35eb48));}}export async function writeSqlLockFile(_0x587c78,_0x58e1da){const _0x9ed58d=a194_0x32a3;await mkdir(dirname(_0x587c78),{'recursive':!![]}),await writeFile(_0x587c78,JSON[_0x9ed58d(0x146)](_0x58e1da,null,0x2),_0x9ed58d(0x144));}
1
+ (function(_0x33ab6b,_0x176caf){const _0x2250b9=a194_0x1ff3,_0x4f4d97=_0x33ab6b();while(!![]){try{const _0x397fdd=-parseInt(_0x2250b9(0x1c7))/0x1+parseInt(_0x2250b9(0x1ca))/0x2*(parseInt(_0x2250b9(0x1c9))/0x3)+-parseInt(_0x2250b9(0x1be))/0x4+parseInt(_0x2250b9(0x1c2))/0x5+parseInt(_0x2250b9(0x1c1))/0x6+-parseInt(_0x2250b9(0x1bc))/0x7+parseInt(_0x2250b9(0x1cb))/0x8;if(_0x397fdd===_0x176caf)break;else _0x4f4d97['push'](_0x4f4d97['shift']());}catch(_0x361f96){_0x4f4d97['push'](_0x4f4d97['shift']());}}}(a194_0x116a,0x2a85e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a194_0x116a(){const _0xc28587=['1920990txKYAY','724885rWeRYK','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','apps','\x22\x20vs\x20lock\x20\x22','167440XOreLo','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','357rDvlbY','772cfkvfW','59912IjIEjz',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','utf8','lastSync','874034TiNKPS','stringify','208356hFNXmc','sqlRoot','sqls'];a194_0x116a=function(){return _0xc28587;};return a194_0x116a();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x56c37a,_0x559c06,_0x2342a6,_0x140ee3){const _0x161a9c=a194_0x1ff3,_0x140d5b=_0x56c37a??createEmptySqlLock();let _0x5e0ed8=_0x140d5b['apps'][_0x559c06];if(!_0x5e0ed8)return _0x5e0ed8={'sqlRoot':_0x2342a6,'lastSync':'','sqls':{}},_0x140d5b[_0x161a9c(0x1c5)][_0x559c06]=_0x5e0ed8,{'lockData':_0x140d5b,'appLock':_0x5e0ed8};if(!_0x5e0ed8[_0x161a9c(0x1bf)])_0x5e0ed8[_0x161a9c(0x1bf)]=_0x2342a6;else{if(_0x5e0ed8[_0x161a9c(0x1bf)]!==_0x2342a6)throw new Error(_0x140ee3+_0x161a9c(0x1cc)+_0x2342a6+_0x161a9c(0x1c6)+_0x5e0ed8[_0x161a9c(0x1bf)]+'\x22.\x20'+_0x161a9c(0x1c8));}return!_0x5e0ed8[_0x161a9c(0x1c0)]&&(_0x5e0ed8['sqls']={}),!_0x5e0ed8[_0x161a9c(0x1bb)]&&(_0x5e0ed8[_0x161a9c(0x1bb)]=''),{'lockData':_0x140d5b,'appLock':_0x5e0ed8};}export async function readSqlLockFile(_0x4bf11a){const _0x2bf758=a194_0x1ff3;try{const _0xcf1ac7=await readFile(_0x4bf11a,_0x2bf758(0x1cd));return JSON['parse'](_0xcf1ac7);}catch(_0x372075){if(_0x372075['code']===_0x2bf758(0x1c3))return null;throw new Error(_0x2bf758(0x1c4)+String(_0x372075));}}function a194_0x1ff3(_0x518448,_0x4e5d7d){_0x518448=_0x518448-0x1bb;const _0x116a7d=a194_0x116a();let _0x1ff3fa=_0x116a7d[_0x518448];return _0x1ff3fa;}export async function writeSqlLockFile(_0x11c17d,_0xb332e6){const _0x50d641=a194_0x1ff3;await mkdir(dirname(_0x11c17d),{'recursive':!![]}),await writeFile(_0x11c17d,JSON[_0x50d641(0x1bd)](_0xb332e6,null,0x2),_0x50d641(0x1cd));}
@@ -1 +1 @@
1
- (function(_0x583bb1,_0x24afdb){const _0x4fc79f=a196_0x5f5b,_0x21a5f0=_0x583bb1();while(!![]){try{const _0x3f0197=-parseInt(_0x4fc79f(0x193))/0x1+-parseInt(_0x4fc79f(0x19d))/0x2*(-parseInt(_0x4fc79f(0x18e))/0x3)+parseInt(_0x4fc79f(0x19a))/0x4+parseInt(_0x4fc79f(0x199))/0x5+parseInt(_0x4fc79f(0x19c))/0x6+parseInt(_0x4fc79f(0x195))/0x7*(-parseInt(_0x4fc79f(0x191))/0x8)+-parseInt(_0x4fc79f(0x18f))/0x9*(parseInt(_0x4fc79f(0x18c))/0xa);if(_0x3f0197===_0x24afdb)break;else _0x21a5f0['push'](_0x21a5f0['shift']());}catch(_0x272ac3){_0x21a5f0['push'](_0x21a5f0['shift']());}}}(a196_0x3cb3,0x571a2));export function detectSqlMode(_0xfaee4f){const _0x1e2f8b=a196_0x5f5b,_0x2ae7c9=_0xfaee4f[_0x1e2f8b(0x198)]();if(/^<(select|insert|update|delete)\b/i[_0x1e2f8b(0x190)](_0x2ae7c9))return _0x1e2f8b(0x197);return _0x1e2f8b(0x196);}export function getSqlFileExtension(_0x1fe498){const _0x5d1d3a=a196_0x5f5b;return _0x1fe498===_0x5d1d3a(0x197)?_0x5d1d3a(0x19e):_0x5d1d3a(0x194);}export function buildDefaultSqlFileName(_0x142bbd,_0x18bc9c){return''+_0x142bbd+getSqlFileExtension(_0x18bc9c);}export function sanitizeSqlPathSegment(_0xc4b334,_0x47a7dc){const _0x41c770=a196_0x5f5b,_0x5b1f8f=String(_0xc4b334??'')[_0x41c770(0x18d)](),_0x6ccc2e=_0x5b1f8f[_0x41c770(0x19b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x41c770(0x19b)](/\s+/g,'-')[_0x41c770(0x19b)](/-+/g,'-')[_0x41c770(0x19b)](/^\.+/,'')[_0x41c770(0x19b)](/\.+$/,'')[_0x41c770(0x19b)](/^-+/,'')[_0x41c770(0x19b)](/-+$/,'');return _0x6ccc2e||_0x47a7dc;}function a196_0x5f5b(_0x5a08b9,_0x2810b8){_0x5a08b9=_0x5a08b9-0x18c;const _0x3cb33e=a196_0x3cb3();let _0x5f5bc3=_0x3cb33e[_0x5a08b9];return _0x5f5bc3;}export function buildDbDirectoryName(_0x27ffd0,_0x248567){const _0x5693c3=a196_0x5f5b;return sanitizeSqlPathSegment(_0x27ffd0,_0x248567!=null?_0x5693c3(0x192)+_0x248567:'unknown-db');}export function buildSqlRelativePath(_0x5002ba,_0x26d89f,_0x4ba1d0,_0x14bf55,_0x58ef9b){const _0x561d09=buildDbDirectoryName(_0x4ba1d0,_0x58ef9b),_0x2c25c1=sanitizeSqlPathSegment(_0x5002ba,'unknown-sql'),_0x158349=sanitizeSqlPathSegment(_0x26d89f,_0x2c25c1);return _0x561d09+'/'+_0x2c25c1+'_'+_0x158349+getSqlFileExtension(_0x14bf55);}function a196_0x3cb3(){const _0x5b0738=['1829468mvMLYs','replace','735576XbJgLg','3758bWUamy','.xml','1160WbsiPo','trim','843jJbEeP','74565ISyFUi','test','678872SzeGIB','db-','164106RHlbce','.sql','7nEcSir','sql','mybatisXml','trimStart','2294165xXpFXs'];a196_0x3cb3=function(){return _0x5b0738;};return a196_0x3cb3();}
1
+ (function(_0x594ce1,_0x3bf5cb){const _0x4edfe0=a196_0x5d54,_0x253c77=_0x594ce1();while(!![]){try{const _0x3d68a3=-parseInt(_0x4edfe0(0x6e))/0x1*(-parseInt(_0x4edfe0(0x78))/0x2)+parseInt(_0x4edfe0(0x72))/0x3*(-parseInt(_0x4edfe0(0x7e))/0x4)+-parseInt(_0x4edfe0(0x70))/0x5*(-parseInt(_0x4edfe0(0x73))/0x6)+parseInt(_0x4edfe0(0x6f))/0x7*(parseInt(_0x4edfe0(0x6d))/0x8)+parseInt(_0x4edfe0(0x77))/0x9+-parseInt(_0x4edfe0(0x7a))/0xa+-parseInt(_0x4edfe0(0x7f))/0xb*(-parseInt(_0x4edfe0(0x75))/0xc);if(_0x3d68a3===_0x3bf5cb)break;else _0x253c77['push'](_0x253c77['shift']());}catch(_0x1f5fa4){_0x253c77['push'](_0x253c77['shift']());}}}(a196_0xe8e3,0xdb52c));function a196_0xe8e3(){const _0xdcf88a=['sql','.sql','417528gBTAhs','46618FmJKqH','7lcGFcK','7485990ACCFIx','trimStart','148398KARTDM','6vpLZkK','replace','10843068VvWoMI','trim','3928509EBYObU','2uCRevA','unknown-db','6032350xqYyPY','unknown-sql','.xml','db-','116daulEW','11xrCjkT','mybatisXml'];a196_0xe8e3=function(){return _0xdcf88a;};return a196_0xe8e3();}export function detectSqlMode(_0x4cc331){const _0x1c472b=a196_0x5d54,_0x25aad2=_0x4cc331[_0x1c472b(0x71)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x25aad2))return'mybatisXml';return _0x1c472b(0x6b);}export function getSqlFileExtension(_0x178833){const _0x26e579=a196_0x5d54;return _0x178833===_0x26e579(0x6a)?_0x26e579(0x7c):_0x26e579(0x6c);}export function buildDefaultSqlFileName(_0x5052cb,_0xa70d2d){return''+_0x5052cb+getSqlFileExtension(_0xa70d2d);}export function sanitizeSqlPathSegment(_0x2577f8,_0x5071d6){const _0x3b9eb6=a196_0x5d54,_0x2f003f=String(_0x2577f8??'')[_0x3b9eb6(0x76)](),_0x10923a=_0x2f003f['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3b9eb6(0x74)](/\s+/g,'-')[_0x3b9eb6(0x74)](/-+/g,'-')[_0x3b9eb6(0x74)](/^\.+/,'')['replace'](/\.+$/,'')[_0x3b9eb6(0x74)](/^-+/,'')['replace'](/-+$/,'');return _0x10923a||_0x5071d6;}function a196_0x5d54(_0x3539b4,_0x42604b){_0x3539b4=_0x3539b4-0x6a;const _0xe8e3c2=a196_0xe8e3();let _0x5d547d=_0xe8e3c2[_0x3539b4];return _0x5d547d;}export function buildDbDirectoryName(_0x5b44db,_0x42351e){const _0x1502bd=a196_0x5d54;return sanitizeSqlPathSegment(_0x5b44db,_0x42351e!=null?_0x1502bd(0x7d)+_0x42351e:_0x1502bd(0x79));}export function buildSqlRelativePath(_0x4df73e,_0x42cdf3,_0x288672,_0x5dc608,_0x40dcaf){const _0x5189cf=a196_0x5d54,_0x1eea3d=buildDbDirectoryName(_0x288672,_0x40dcaf),_0x2ba31e=sanitizeSqlPathSegment(_0x4df73e,_0x5189cf(0x7b)),_0x2e4033=sanitizeSqlPathSegment(_0x42cdf3,_0x2ba31e);return _0x1eea3d+'/'+_0x2ba31e+'_'+_0x2e4033+getSqlFileExtension(_0x5dc608);}
@@ -1 +1 @@
1
- (function(_0x219fcc,_0x15575d){const _0x201fce=a197_0x3028,_0x45e0e3=_0x219fcc();while(!![]){try{const _0x2d3aa0=parseInt(_0x201fce(0xfe))/0x1+parseInt(_0x201fce(0x10c))/0x2*(parseInt(_0x201fce(0xfa))/0x3)+-parseInt(_0x201fce(0xf0))/0x4+-parseInt(_0x201fce(0x108))/0x5*(parseInt(_0x201fce(0xf7))/0x6)+-parseInt(_0x201fce(0xf8))/0x7+parseInt(_0x201fce(0xf5))/0x8+parseInt(_0x201fce(0x107))/0x9*(parseInt(_0x201fce(0x101))/0xa);if(_0x2d3aa0===_0x15575d)break;else _0x45e0e3['push'](_0x45e0e3['shift']());}catch(_0x51018d){_0x45e0e3['push'](_0x45e0e3['shift']());}}}(a197_0xb861,0x4bd0d));export function detectSqlType(_0x44a23c){const _0x2b3a01=a197_0x3028;if(!_0x44a23c?.[_0x2b3a01(0xea)]())return{'type':_0x2b3a01(0x109),'isSelectOnly':![],'isDangerous':![],'reason':_0x2b3a01(0xf3)};const _0x714db=_0x44a23c['replace'](/#\{[^}]*\}/g,'?')[_0x2b3a01(0x10e)](/\$\{[^}]*\}/g,'?')[_0x2b3a01(0x10e)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2b3a01(0x10e)](/\/\*[\s\S]*?\*\//g,'')[_0x2b3a01(0xea)](),_0x146ae3=_0x714db[_0x2b3a01(0x105)]('\x0a');let _0x2b2a59='';for(const _0x12e657 of _0x146ae3){const _0x522bf2=_0x12e657['trim']();if(!_0x522bf2||_0x522bf2[_0x2b3a01(0xf4)]('--')||_0x522bf2[_0x2b3a01(0xf4)]('/*'))continue;_0x2b2a59=_0x522bf2;break;}const _0x1fda6c=_0x2b2a59[_0x2b3a01(0x102)]();if(_0x1fda6c[_0x2b3a01(0xf4)](_0x2b3a01(0xe9))||_0x1fda6c['startsWith'](_0x2b3a01(0x100))){const _0x190891=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2b3a01(0x10b)](_0x714db);return{'type':_0x2b3a01(0xe9),'isSelectOnly':!_0x190891,'isDangerous':_0x190891,'reason':_0x190891?_0x2b3a01(0xef):undefined};}if(_0x1fda6c[_0x2b3a01(0xf4)]('INSERT'))return{'type':_0x2b3a01(0xfc),'isSelectOnly':![],'isDangerous':![]};if(_0x1fda6c[_0x2b3a01(0xf4)](_0x2b3a01(0xf9)))return{'type':_0x2b3a01(0xf9),'isSelectOnly':![],'isDangerous':![]};if(_0x1fda6c['startsWith'](_0x2b3a01(0x10a)))return{'type':_0x2b3a01(0x10a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2b3a01(0xec)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2b3a01(0x10b)](_0x1fda6c))return{'type':_0x2b3a01(0x103),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2b3a01(0xf2)};return{'type':_0x2b3a01(0x109),'isSelectOnly':![],'isDangerous':![]};}function a197_0x3028(_0x1dafce,_0x16439f){_0x1dafce=_0x1dafce-0xe7;const _0xb861db=a197_0xb861();let _0x302803=_0xb861db[_0x1dafce];return _0x302803;}function extractTables(_0x3bf20a){const _0x23228f=a197_0x3028,_0x1b86bb=_0x3bf20a['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x23228f(0x10e)](/'[^']*'/g,'\x27\x27')[_0x23228f(0x10e)](/--.*$/gm,'')[_0x23228f(0x10e)](/\/\*[\s\S]*?\*\//g,''),_0x3213f3=[],_0x119655=_0x1b86bb[_0x23228f(0xf1)](/FROM\s+([^\s,)(]+)/i);if(_0x119655?.[0x1])_0x3213f3[_0x23228f(0xf6)](_0x119655[0x1][_0x23228f(0x10e)](/[`"]/g,''));for(const _0x255a25 of _0x1b86bb[_0x23228f(0x104)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x59e604=_0x255a25[0x1]?.[_0x23228f(0x10e)](/[`"]/g,'');if(_0x59e604&&!_0x3213f3[_0x23228f(0xee)](_0x59e604))_0x3213f3['push'](_0x59e604);}const _0x2c2688=_0x1b86bb['match'](/INTO\s+([^\s(]+)/i);if(_0x2c2688?.[0x1]){const _0x39e19b=_0x2c2688[0x1]['replace'](/[`"]/g,'');if(!_0x3213f3[_0x23228f(0xee)](_0x39e19b))_0x3213f3['push'](_0x39e19b);}const _0x2566d8=_0x1b86bb['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2566d8?.[0x1]){const _0x1f89c1=_0x2566d8[0x1][_0x23228f(0x10e)](/[`"]/g,'');if(!_0x3213f3[_0x23228f(0xee)](_0x1f89c1))_0x3213f3['push'](_0x1f89c1);}return _0x3213f3;}function extractParameters(_0x3c0aea){const _0x456da4=a197_0x3028,_0x5a44ce=new Set();for(const _0x3b12b5 of _0x3c0aea[_0x456da4(0x104)](/#\{(\w+)\}/g))if(_0x3b12b5[0x1])_0x5a44ce[_0x456da4(0xeb)](_0x3b12b5[0x1]);for(const _0x355978 of _0x3c0aea['matchAll'](/\$\{(\w+)\}/g))if(_0x355978[0x1])_0x5a44ce[_0x456da4(0xeb)](_0x355978[0x1]);return Array[_0x456da4(0xfb)](_0x5a44ce);}export function validateSql(_0x5633d6){const _0x2070b4=a197_0x3028,_0x4bf4af=detectSqlType(_0x5633d6),_0x10becc=extractTables(_0x5633d6),_0x3401b5=extractParameters(_0x5633d6);if(_0x4bf4af[_0x2070b4(0x106)])return{'valid':![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x4bf4af[_0x2070b4(0xe7)]||_0x4bf4af[_0x2070b4(0xed)]+_0x2070b4(0xff)};if(_0x4bf4af[_0x2070b4(0xed)]===_0x2070b4(0x109))return{'valid':![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x2070b4(0x10d)};return{'valid':!![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x4bf4af[_0x2070b4(0xed)]+'\x20query\x20targeting\x20'+(_0x10becc['length']?_0x10becc[_0x2070b4(0xe8)](',\x20'):_0x2070b4(0x10f))+(_0x3401b5[_0x2070b4(0xfd)]?'\x20with\x20parameters:\x20'+_0x3401b5['join'](',\x20'):'')};}function a197_0xb861(){const _0x11620c=['type','includes','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','1123220urHVJv','match','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20content\x20is\x20empty','startsWith','1464232sRAkha','push','721398XjCOxC','2252544iZztbb','UPDATE','698862nIdtUe','from','INSERT','length','77258EPoHyM','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','WITH','2738210VqWGQe','toUpperCase','DDL','matchAll','split','isDangerous','18KdsbWx','15RJjEkA','UNKNOWN','DELETE','test','4ACXAnS','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replace','unknown\x20table(s)','reason','join','SELECT','trim','add','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a197_0xb861=function(){return _0x11620c;};return a197_0xb861();}
1
+ (function(_0x45f51a,_0x49cde2){const _0x1be93c=a197_0x4ddf,_0x8e7d4=_0x45f51a();while(!![]){try{const _0x36cb29=parseInt(_0x1be93c(0xc1))/0x1+-parseInt(_0x1be93c(0xdd))/0x2*(-parseInt(_0x1be93c(0xcd))/0x3)+parseInt(_0x1be93c(0xc2))/0x4+-parseInt(_0x1be93c(0xc0))/0x5+-parseInt(_0x1be93c(0xd2))/0x6*(parseInt(_0x1be93c(0xce))/0x7)+parseInt(_0x1be93c(0xdf))/0x8*(-parseInt(_0x1be93c(0xe0))/0x9)+-parseInt(_0x1be93c(0xca))/0xa;if(_0x36cb29===_0x49cde2)break;else _0x8e7d4['push'](_0x8e7d4['shift']());}catch(_0x18d26b){_0x8e7d4['push'](_0x8e7d4['shift']());}}}(a197_0x23fb,0xead34));function a197_0x23fb(){const _0x2a6a2e=['test','SELECT','push','add','1648522IQBfiw','match','280hrIVyZ','1089cxXXlf','5496855VrRLGh','722673hIOyPG','46612kGYoNf','\x20query\x20targeting\x20','length','from','replace','trim','UNKNOWN','SQL\x20content\x20is\x20empty','1006450HZdAql','DDL','unknown\x20table(s)','6TUMZRl','7Taileg','DELETE','UPDATE','type','1300518VRsypb','split','reason','join','startsWith','matchAll','includes'];a197_0x23fb=function(){return _0x2a6a2e;};return a197_0x23fb();}export function detectSqlType(_0xbe14ac){const _0x42180d=a197_0x4ddf;if(!_0xbe14ac?.[_0x42180d(0xc7)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x42180d(0xc9)};const _0x4600e5=_0xbe14ac[_0x42180d(0xc6)](/#\{[^}]*\}/g,'?')[_0x42180d(0xc6)](/\$\{[^}]*\}/g,'?')[_0x42180d(0xc6)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x42180d(0xc6)](/\/\*[\s\S]*?\*\//g,'')[_0x42180d(0xc7)](),_0x58da2e=_0x4600e5[_0x42180d(0xd3)]('\x0a');let _0x46ec87='';for(const _0x4a3c91 of _0x58da2e){const _0x45d843=_0x4a3c91[_0x42180d(0xc7)]();if(!_0x45d843||_0x45d843['startsWith']('--')||_0x45d843['startsWith']('/*'))continue;_0x46ec87=_0x45d843;break;}const _0x2a9e09=_0x46ec87['toUpperCase']();if(_0x2a9e09[_0x42180d(0xd6)](_0x42180d(0xda))||_0x2a9e09[_0x42180d(0xd6)]('WITH')){const _0x31add0=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4600e5);return{'type':_0x42180d(0xda),'isSelectOnly':!_0x31add0,'isDangerous':_0x31add0,'reason':_0x31add0?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x2a9e09['startsWith']('INSERT'))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x2a9e09['startsWith'](_0x42180d(0xd0)))return{'type':_0x42180d(0xd0),'isSelectOnly':![],'isDangerous':![]};if(_0x2a9e09[_0x42180d(0xd6)](_0x42180d(0xcf)))return{'type':_0x42180d(0xcf),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x42180d(0xd9)](_0x2a9e09))return{'type':_0x42180d(0xcb),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x42180d(0xc8),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x53e615){const _0x5ae5c9=a197_0x4ddf,_0x2a4878=_0x53e615['replace'](/#\{[^}]*\}/g,'?')[_0x5ae5c9(0xc6)](/\$\{[^}]*\}/g,'?')[_0x5ae5c9(0xc6)](/'[^']*'/g,'\x27\x27')[_0x5ae5c9(0xc6)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4136b1=[],_0xeb9c34=_0x2a4878['match'](/FROM\s+([^\s,)(]+)/i);if(_0xeb9c34?.[0x1])_0x4136b1[_0x5ae5c9(0xdb)](_0xeb9c34[0x1][_0x5ae5c9(0xc6)](/[`"]/g,''));for(const _0x4c2e50 of _0x2a4878['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x6a748d=_0x4c2e50[0x1]?.[_0x5ae5c9(0xc6)](/[`"]/g,'');if(_0x6a748d&&!_0x4136b1[_0x5ae5c9(0xd8)](_0x6a748d))_0x4136b1[_0x5ae5c9(0xdb)](_0x6a748d);}const _0x26a638=_0x2a4878[_0x5ae5c9(0xde)](/INTO\s+([^\s(]+)/i);if(_0x26a638?.[0x1]){const _0x3dcd9c=_0x26a638[0x1][_0x5ae5c9(0xc6)](/[`"]/g,'');if(!_0x4136b1['includes'](_0x3dcd9c))_0x4136b1[_0x5ae5c9(0xdb)](_0x3dcd9c);}const _0x49d708=_0x2a4878[_0x5ae5c9(0xde)](/UPDATE\s+([^\s,)(]+)/i);if(_0x49d708?.[0x1]){const _0xd88e9e=_0x49d708[0x1][_0x5ae5c9(0xc6)](/[`"]/g,'');if(!_0x4136b1['includes'](_0xd88e9e))_0x4136b1[_0x5ae5c9(0xdb)](_0xd88e9e);}return _0x4136b1;}function extractParameters(_0x43f9f3){const _0x37c621=a197_0x4ddf,_0x105d32=new Set();for(const _0x5aa453 of _0x43f9f3['matchAll'](/#\{(\w+)\}/g))if(_0x5aa453[0x1])_0x105d32[_0x37c621(0xdc)](_0x5aa453[0x1]);for(const _0x2be6b0 of _0x43f9f3[_0x37c621(0xd7)](/\$\{(\w+)\}/g))if(_0x2be6b0[0x1])_0x105d32['add'](_0x2be6b0[0x1]);return Array[_0x37c621(0xc5)](_0x105d32);}function a197_0x4ddf(_0x3d2538,_0x19c74e){_0x3d2538=_0x3d2538-0xc0;const _0x23fb1e=a197_0x23fb();let _0x4ddf5d=_0x23fb1e[_0x3d2538];return _0x4ddf5d;}export function validateSql(_0x636fce){const _0x45dbba=a197_0x4ddf,_0x3d0ca0=detectSqlType(_0x636fce),_0x525732=extractTables(_0x636fce),_0x287a4a=extractParameters(_0x636fce);if(_0x3d0ca0['isDangerous'])return{'valid':![],'sqlType':_0x3d0ca0,'tables':_0x525732,'parameters':_0x287a4a,'message':_0x3d0ca0[_0x45dbba(0xd4)]||_0x3d0ca0[_0x45dbba(0xd1)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x3d0ca0[_0x45dbba(0xd1)]===_0x45dbba(0xc8))return{'valid':![],'sqlType':_0x3d0ca0,'tables':_0x525732,'parameters':_0x287a4a,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x3d0ca0,'tables':_0x525732,'parameters':_0x287a4a,'message':_0x3d0ca0[_0x45dbba(0xd1)]+_0x45dbba(0xc3)+(_0x525732[_0x45dbba(0xc4)]?_0x525732['join'](',\x20'):_0x45dbba(0xcc))+(_0x287a4a[_0x45dbba(0xc4)]?'\x20with\x20parameters:\x20'+_0x287a4a[_0x45dbba(0xd5)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a198_0x137c6a=a198_0x5d97;(function(_0x30fc01,_0x30cfa2){const _0x25213c=a198_0x5d97,_0xa7fe05=_0x30fc01();while(!![]){try{const _0x5d7ecc=-parseInt(_0x25213c(0xf2))/0x1*(-parseInt(_0x25213c(0xf8))/0x2)+parseInt(_0x25213c(0x102))/0x3*(-parseInt(_0x25213c(0xfa))/0x4)+parseInt(_0x25213c(0xfb))/0x5*(parseInt(_0x25213c(0xf7))/0x6)+-parseInt(_0x25213c(0x100))/0x7+-parseInt(_0x25213c(0x101))/0x8*(parseInt(_0x25213c(0xf5))/0x9)+parseInt(_0x25213c(0xfd))/0xa+-parseInt(_0x25213c(0xf1))/0xb*(-parseInt(_0x25213c(0xf4))/0xc);if(_0x5d7ecc===_0x30cfa2)break;else _0xa7fe05['push'](_0xa7fe05['shift']());}catch(_0x4eb309){_0xa7fe05['push'](_0xa7fe05['shift']());}}}(a198_0x404a,0x943c7));function a198_0x5d97(_0x1e0420,_0x1f186d){_0x1e0420=_0x1e0420-0xf1;const _0x404a5c=a198_0x404a();let _0x5d971f=_0x404a5c[_0x1e0420];return _0x5d971f;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a198_0x404a(){const _0x4f65df=['478874GHXLRP','Set\x20appcode\x20via\x20`','96efVUyl','4245PJbklg','\x0a\x20\x20\x20\x20\x20\x20\x20','751820mTeXls','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4102609CzNnQZ','59984xkAOQw','29853dlYszu','682wEChsu','2CAiLfm','Run\x20`','190824WnSHPN','423QUhrEt','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1728YYlbSn'];a198_0x404a=function(){return _0x4f65df;};return a198_0x404a();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x137c6a(0xf3)+CLI_BIN_NAME+a198_0x137c6a(0xfe),'configMissingHint':[a198_0x137c6a(0xf9)+CLI_BIN_NAME+a198_0x137c6a(0xff),'Tip:\x20`'+CLI_BIN_NAME+a198_0x137c6a(0xf6)]['join'](a198_0x137c6a(0xfc)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a198_0x2d1fbe=a198_0x394f;(function(_0x204578,_0x83708b){const _0x4db742=a198_0x394f,_0x52150f=_0x204578();while(!![]){try{const _0x18777a=parseInt(_0x4db742(0x73))/0x1+parseInt(_0x4db742(0x6a))/0x2+parseInt(_0x4db742(0x65))/0x3*(-parseInt(_0x4db742(0x64))/0x4)+parseInt(_0x4db742(0x72))/0x5+-parseInt(_0x4db742(0x74))/0x6*(-parseInt(_0x4db742(0x6d))/0x7)+parseInt(_0x4db742(0x6e))/0x8*(parseInt(_0x4db742(0x6f))/0x9)+-parseInt(_0x4db742(0x68))/0xa*(parseInt(_0x4db742(0x66))/0xb);if(_0x18777a===_0x83708b)break;else _0x52150f['push'](_0x52150f['shift']());}catch(_0x19bafa){_0x52150f['push'](_0x52150f['shift']());}}}(a198_0x3991,0xded58));function a198_0x394f(_0x30038c,_0x5cb319){_0x30038c=_0x30038c-0x64;const _0x399148=a198_0x3991();let _0x394f58=_0x399148[_0x30038c];return _0x394f58;}function a198_0x3991(){const _0x726ccf=['1399413PHqnyb','2426586xGmxlR','1772XPAeaX','3513vPDfQY','3554386wkskWG','\x20auth`\x20to\x20login\x20first.','130fbxKRn','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2237796SGqLuC','Tip:\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','7RrYPWw','11756072qXdvDm','9cXkmVP','Run\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','6199340ueHdms'];a198_0x3991=function(){return _0x726ccf;};return a198_0x3991();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x2d1fbe(0x70)+CLI_BIN_NAME+a198_0x2d1fbe(0x67),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a198_0x2d1fbe(0x6b)+CLI_BIN_NAME+a198_0x2d1fbe(0x69)]['join'](a198_0x2d1fbe(0x71)),'notInProjectHint':a198_0x2d1fbe(0x6c)});
@@ -1 +1 @@
1
- (function(_0x6810db,_0x3009f4){var _0x9a9109=a199_0x4f36,_0x3bf7f4=_0x6810db();while(!![]){try{var _0x177373=parseInt(_0x9a9109(0x181))/0x1+parseInt(_0x9a9109(0x180))/0x2*(parseInt(_0x9a9109(0x188))/0x3)+-parseInt(_0x9a9109(0x17f))/0x4+-parseInt(_0x9a9109(0x187))/0x5+parseInt(_0x9a9109(0x185))/0x6*(parseInt(_0x9a9109(0x186))/0x7)+-parseInt(_0x9a9109(0x183))/0x8*(parseInt(_0x9a9109(0x184))/0x9)+-parseInt(_0x9a9109(0x182))/0xa;if(_0x177373===_0x3009f4)break;else _0x3bf7f4['push'](_0x3bf7f4['shift']());}catch(_0x570075){_0x3bf7f4['push'](_0x3bf7f4['shift']());}}}(a199_0x569a,0xa23c3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x4dea75}from'@lovrabet/cli-framework';function a199_0x569a(){var _0x95032b=['900676zZQekW','2qZHWmT','1307270zoeYPY','3182880vQjHBG','8RHxjhu','4756086JBlVeq','2028mRtRma','12817irRbBB','2540885UFuemK','955365mtbLEA'];a199_0x569a=function(){return _0x95032b;};return a199_0x569a();}function a199_0x4f36(_0x435929,_0x5cfb92){_0x435929=_0x435929-0x17f;var _0x569ae1=a199_0x569a();var _0x4f36f6=_0x569ae1[_0x435929];return _0x4f36f6;}export function buildAllFlags(_0x195de9){return a199_0x4dea75(_0x195de9,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a199_0x4bef(){var _0x35d929=['28mvaRaj','3763690TRofhv','350pTEuMs','106rTeyoL','4037013MkLBlz','94878CIWXUx','68367nHznDi','6973626HjDFAr','1100232EuLLDn','14UBUKiU','12095NOpIYZ'];a199_0x4bef=function(){return _0x35d929;};return a199_0x4bef();}function a199_0x31a2(_0x24f08f,_0x41e2dd){_0x24f08f=_0x24f08f-0x116;var _0x4befb9=a199_0x4bef();var _0x31a2ee=_0x4befb9[_0x24f08f];return _0x31a2ee;}(function(_0x50095f,_0x44a3f4){var _0x24f47d=a199_0x31a2,_0x574027=_0x50095f();while(!![]){try{var _0x14bc1c=-parseInt(_0x24f47d(0x118))/0x1*(-parseInt(_0x24f47d(0x11c))/0x2)+-parseInt(_0x24f47d(0x11f))/0x3*(-parseInt(_0x24f47d(0x119))/0x4)+-parseInt(_0x24f47d(0x11b))/0x5*(parseInt(_0x24f47d(0x11e))/0x6)+-parseInt(_0x24f47d(0x117))/0x7*(-parseInt(_0x24f47d(0x116))/0x8)+parseInt(_0x24f47d(0x11d))/0x9+-parseInt(_0x24f47d(0x11a))/0xa+parseInt(_0x24f47d(0x120))/0xb;if(_0x14bc1c===_0x44a3f4)break;else _0x574027['push'](_0x574027['shift']());}catch(_0x53ef1a){_0x574027['push'](_0x574027['shift']());}}}(a199_0x4bef,0xa4c2c));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0xd5a877}from'@lovrabet/cli-framework';export function buildAllFlags(_0x49b6e4){return a199_0xd5a877(_0x49b6e4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a200_0xfef1ef=a200_0x2c15;(function(_0x45161c,_0x3361c4){const _0x45d4cd=a200_0x2c15,_0x12079b=_0x45161c();while(!![]){try{const _0x1a2c38=parseInt(_0x45d4cd(0x107))/0x1*(-parseInt(_0x45d4cd(0x103))/0x2)+parseInt(_0x45d4cd(0x10b))/0x3+-parseInt(_0x45d4cd(0x108))/0x4+parseInt(_0x45d4cd(0x105))/0x5+parseInt(_0x45d4cd(0x104))/0x6*(-parseInt(_0x45d4cd(0x106))/0x7)+-parseInt(_0x45d4cd(0x109))/0x8*(-parseInt(_0x45d4cd(0x10a))/0x9)+parseInt(_0x45d4cd(0x10c))/0xa;if(_0x1a2c38===_0x3361c4)break;else _0x12079b['push'](_0x12079b['shift']());}catch(_0x4d657e){_0x12079b['push'](_0x12079b['shift']());}}}(a200_0x55bf,0xc38b0));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a200_0x2c15(_0x5d23c9,_0x4ad6e1){_0x5d23c9=_0x5d23c9-0x103;const _0x55bfdd=a200_0x55bf();let _0x2c1574=_0x55bfdd[_0x5d23c9];return _0x2c1574;}function a200_0x55bf(){const _0x2ae07e=['7437330SiSYoC','parseFlags','2EojWtm','42WyZEnv','5779885JpAIAr','351946IjyHLr','920827bRaaen','1592728xGngMA','120tuVYJh','329877YsnluI','67182maPwFp'];a200_0x55bf=function(){return _0x2ae07e;};return a200_0x55bf();}export const parseFlags=helpers[a200_0xfef1ef(0x10d)];export const validateFlags=helpers['validateFlags'];
1
+ function a200_0x49cb(_0x106be3,_0x8b30d5){_0x106be3=_0x106be3-0x86;const _0xa67eed=a200_0xa67e();let _0x49cb1f=_0xa67eed[_0x106be3];return _0x49cb1f;}const a200_0x271dd4=a200_0x49cb;(function(_0x486dcb,_0x5db320){const _0x38f20c=a200_0x49cb,_0x56b08a=_0x486dcb();while(!![]){try{const _0x30d531=-parseInt(_0x38f20c(0x87))/0x1+-parseInt(_0x38f20c(0x8f))/0x2+parseInt(_0x38f20c(0x88))/0x3+parseInt(_0x38f20c(0x86))/0x4*(parseInt(_0x38f20c(0x8b))/0x5)+parseInt(_0x38f20c(0x91))/0x6*(-parseInt(_0x38f20c(0x90))/0x7)+-parseInt(_0x38f20c(0x89))/0x8*(-parseInt(_0x38f20c(0x8e))/0x9)+parseInt(_0x38f20c(0x8d))/0xa;if(_0x30d531===_0x5db320)break;else _0x56b08a['push'](_0x56b08a['shift']());}catch(_0x28d760){_0x56b08a['push'](_0x56b08a['shift']());}}}(a200_0xa67e,0x5ed70));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a200_0xa67e(){const _0x26b22e=['123245oDVBgf','validateFlags','13566560tIlYlC','27dFnjoi','686156BawJEP','462sEqpLO','65334zbdmFh','4KtlrzS','207576cWrktD','59880XxwSXs','684072YzqqTS','parseFlags'];a200_0xa67e=function(){return _0x26b22e;};return a200_0xa67e();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x271dd4(0x8a)];export const validateFlags=helpers[a200_0x271dd4(0x8c)];
@@ -1 +1 @@
1
- const a201_0x5c115f=a201_0x5707;(function(_0x5217e2,_0x1f62a5){const _0x7e68f5=a201_0x5707,_0x54ee7b=_0x5217e2();while(!![]){try{const _0x5a43e5=-parseInt(_0x7e68f5(0x15f))/0x1+parseInt(_0x7e68f5(0x164))/0x2+parseInt(_0x7e68f5(0x167))/0x3*(-parseInt(_0x7e68f5(0x163))/0x4)+-parseInt(_0x7e68f5(0x160))/0x5+parseInt(_0x7e68f5(0x15d))/0x6+-parseInt(_0x7e68f5(0x169))/0x7+parseInt(_0x7e68f5(0x166))/0x8;if(_0x5a43e5===_0x1f62a5)break;else _0x54ee7b['push'](_0x54ee7b['shift']());}catch(_0x3212e5){_0x54ee7b['push'](_0x54ee7b['shift']());}}}(a201_0x5384,0xac2a1));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';function a201_0x5707(_0x3c9e4f,_0x20f26c){_0x3c9e4f=_0x3c9e4f-0x15d;const _0x538460=a201_0x5384();let _0x570794=_0x538460[_0x3c9e4f];return _0x570794;}function a201_0x5384(){const _0x15d1f0=['3757292zojJck','2692674CDriUn','\x20[args]\x20[flags]','690337AxGWUi','4415455MkrrWT','generateServiceHelp','generateCommandHelp','4BFjUsZ','442796ZUnGni','Requires\x20appcode\x20(set\x20via\x20`','24736024ZRNmKI','2840433UOrNTk','\x20workspace\x20init`\x20or\x20--appcode).'];a201_0x5384=function(){return _0x15d1f0;};return a201_0x5384();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2f6b9f=>serviceGroups['get'](_0x2f6b9f),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x5c115f(0x165)+CLI_BIN_NAME+a201_0x5c115f(0x168),'serviceUsageSuffix':a201_0x5c115f(0x15e)});export function generateCommandHelp(_0x39cf2f){const _0x5c22ae=a201_0x5c115f;return generators[_0x5c22ae(0x162)](_0x39cf2f);}export const generateServiceHelp=generators[a201_0x5c115f(0x161)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a201_0xab648b=a201_0x4e07;(function(_0x5f14ec,_0x5ec012){const _0x400353=a201_0x4e07,_0x491fa4=_0x5f14ec();while(!![]){try{const _0x4bdee1=parseInt(_0x400353(0x180))/0x1+parseInt(_0x400353(0x189))/0x2+-parseInt(_0x400353(0x181))/0x3*(parseInt(_0x400353(0x183))/0x4)+-parseInt(_0x400353(0x188))/0x5*(-parseInt(_0x400353(0x185))/0x6)+parseInt(_0x400353(0x186))/0x7+parseInt(_0x400353(0x17d))/0x8+-parseInt(_0x400353(0x187))/0x9;if(_0x4bdee1===_0x5ec012)break;else _0x491fa4['push'](_0x491fa4['shift']());}catch(_0x3355a6){_0x491fa4['push'](_0x491fa4['shift']());}}}(a201_0x157e,0xe8a6d));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':_0x488346=>serviceGroups[a201_0xab648b(0x182)](_0x488346),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0xab648b(0x18a)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x435d37){const _0x355b7d=a201_0xab648b;return generators[_0x355b7d(0x184)](_0x435d37);}function a201_0x4e07(_0x49e2f9,_0x1f0c47){_0x49e2f9=_0x49e2f9-0x17d;const _0x157efc=a201_0x157e();let _0x4e0703=_0x157efc[_0x49e2f9];return _0x4e0703;}function a201_0x157e(){const _0x50c417=['generateCommandHelp','6306EXdQKc','1820756ZQbAKf','13728942kFMsCR','7265KGCsWt','1439990lMykKl','Requires\x20appcode\x20(set\x20via\x20`','3610784mMOneT','generateServiceHelp','generateFullHelp','380670ifvvGA','3qxnkQO','get','3443380WovPhm'];a201_0x157e=function(){return _0x50c417;};return a201_0x157e();}export const generateServiceHelp=generators[a201_0xab648b(0x17e)];export const generateFullHelp=generators[a201_0xab648b(0x17f)];
@@ -1 +1 @@
1
- (function(_0x226806,_0x2c2485){var _0x13bd89=a202_0x4995,_0x62f254=_0x226806();while(!![]){try{var _0x19de4e=-parseInt(_0x13bd89(0x19a))/0x1*(parseInt(_0x13bd89(0x19b))/0x2)+parseInt(_0x13bd89(0x196))/0x3*(parseInt(_0x13bd89(0x19e))/0x4)+parseInt(_0x13bd89(0x19f))/0x5+-parseInt(_0x13bd89(0x199))/0x6*(parseInt(_0x13bd89(0x197))/0x7)+parseInt(_0x13bd89(0x198))/0x8*(-parseInt(_0x13bd89(0x195))/0x9)+-parseInt(_0x13bd89(0x19d))/0xa+parseInt(_0x13bd89(0x19c))/0xb;if(_0x19de4e===_0x2c2485)break;else _0x62f254['push'](_0x62f254['shift']());}catch(_0x6f4121){_0x62f254['push'](_0x62f254['shift']());}}}(a202_0x15d5,0x75cf3));function a202_0x4995(_0x370439,_0x1c52cf){_0x370439=_0x370439-0x195;var _0x15d55e=a202_0x15d5();var _0x499501=_0x15d55e[_0x370439];return _0x499501;}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';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a202_0x15d5(){var _0x5ab2c9=['44716IFSZNz','16TUzrEI','366kDrupW','169527vpYANe','4CEINUJ','10937993Mecqzs','5848050PnTyoI','419996ylkHPK','495020CxqEbQ','145287HZAFgL','21iKLpFI'];a202_0x15d5=function(){return _0x5ab2c9;};return a202_0x15d5();}
1
+ (function(_0x3d6525,_0xc5e5c0){var _0xccfae=a202_0x4793,_0x4a54cf=_0x3d6525();while(!![]){try{var _0x84abcd=-parseInt(_0xccfae(0x72))/0x1+-parseInt(_0xccfae(0x71))/0x2+-parseInt(_0xccfae(0x6e))/0x3*(-parseInt(_0xccfae(0x6d))/0x4)+-parseInt(_0xccfae(0x6c))/0x5+parseInt(_0xccfae(0x70))/0x6*(-parseInt(_0xccfae(0x6f))/0x7)+-parseInt(_0xccfae(0x6b))/0x8+parseInt(_0xccfae(0x6a))/0x9;if(_0x84abcd===_0xc5e5c0)break;else _0x4a54cf['push'](_0x4a54cf['shift']());}catch(_0x5e22dd){_0x4a54cf['push'](_0x4a54cf['shift']());}}}(a202_0x570c,0xd151c));function a202_0x4793(_0x147a7f,_0x5e8ac9){_0x147a7f=_0x147a7f-0x6a;var _0x570c5e=a202_0x570c();var _0x4793c3=_0x570c5e[_0x147a7f];return _0x4793c3;}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';export{extractList,extractPaging}from'../framework/response.js';function a202_0x570c(){var _0x44008e=['10497361cpJuBN','6puqJQh','1698868msmQyT','756192eHtwcg','28897263DlRlEr','3323648YOmnjg','746505PFaPGw','4292DUMLvF','3681VKowHC'];a202_0x570c=function(){return _0x44008e;};return a202_0x570c();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x50a13e,_0x172091){const _0x1aa803=a203_0x559e,_0x55fee9=_0x50a13e();while(!![]){try{const _0x6942c4=parseInt(_0x1aa803(0xff))/0x1+parseInt(_0x1aa803(0x101))/0x2+parseInt(_0x1aa803(0xfb))/0x3*(parseInt(_0x1aa803(0x109))/0x4)+-parseInt(_0x1aa803(0xfe))/0x5*(-parseInt(_0x1aa803(0x108))/0x6)+parseInt(_0x1aa803(0x105))/0x7+-parseInt(_0x1aa803(0x104))/0x8*(-parseInt(_0x1aa803(0x103))/0x9)+-parseInt(_0x1aa803(0x102))/0xa;if(_0x6942c4===_0x172091)break;else _0x55fee9['push'](_0x55fee9['shift']());}catch(_0x3a8163){_0x55fee9['push'](_0x55fee9['shift']());}}}(a203_0x4b9d,0x8fc20));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x467baf,_0x942f11){const _0x5cf46a=a203_0x559e,_0x1e1d4b=_0x467baf[_0x5cf46a(0xfd)],{_notice:_0x58cf0a,..._0x3179e8}=_0x467baf;void _0x58cf0a,baseFormatOutput(_0x3179e8,_0x942f11),_0x942f11[_0x5cf46a(0xfa)]===_0x5cf46a(0x100)&&printPrettyNotice(_0x1e1d4b);}function a203_0x559e(_0x46c143,_0x1381c1){_0x46c143=_0x46c143-0xfa;const _0x4b9d94=a203_0x4b9d();let _0x559eb2=_0x4b9d94[_0x46c143];return _0x559eb2;}function a203_0x4b9d(){const _0x1e0b70=['url','message','36870cWDyuE','158068wKjmPE','format','9FbeZRb','update','_notice','865ehfGmH','403317ZHjHzZ','pretty','774976yMRHvB','20096270iMDfmz','1529514UoQnLM','8WggWBU','3192504rmKsPH'];a203_0x4b9d=function(){return _0x1e0b70;};return a203_0x4b9d();}function printPrettyNotice(_0x3fde9b){const _0x5b8d1a=a203_0x559e;if(!_0x3fde9b?.[_0x5b8d1a(0xfc)])return;console['error'](_0x3fde9b[_0x5b8d1a(0xfc)][_0x5b8d1a(0x107)]+'\x20('+_0x3fde9b[_0x5b8d1a(0xfc)][_0x5b8d1a(0x106)]+')');}
1
+ (function(_0x238142,_0x290077){const _0xa2953=a203_0x1b10,_0x56fa63=_0x238142();while(!![]){try{const _0x217234=parseInt(_0xa2953(0x113))/0x1+parseInt(_0xa2953(0x114))/0x2+parseInt(_0xa2953(0x118))/0x3*(parseInt(_0xa2953(0x10e))/0x4)+parseInt(_0xa2953(0x10f))/0x5+-parseInt(_0xa2953(0x11a))/0x6*(parseInt(_0xa2953(0x119))/0x7)+parseInt(_0xa2953(0x117))/0x8+-parseInt(_0xa2953(0x10d))/0x9;if(_0x217234===_0x290077)break;else _0x56fa63['push'](_0x56fa63['shift']());}catch(_0x2a007a){_0x56fa63['push'](_0x56fa63['shift']());}}}(a203_0x1821,0xaa105));function a203_0x1b10(_0x7c7d27,_0x30b4bd){_0x7c7d27=_0x7c7d27-0x10d;const _0x1821e8=a203_0x1821();let _0x1b1091=_0x1821e8[_0x7c7d27];return _0x1b1091;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a203_0x1821(){const _0xb194a9=['161uwWEkV','93306QhANPZ','36085275VfvZfI','128wZiDAE','747945xhLVcq','update','_notice','error','1015153pVBgid','2521880yTMlKo','format','message','11002616HyGrgp','118380adGiSv'];a203_0x1821=function(){return _0xb194a9;};return a203_0x1821();}export function formatOutput(_0x568d5f,_0x3d554f){const _0x336c05=a203_0x1b10,_0xaea187=_0x568d5f[_0x336c05(0x111)],{_notice:_0x4024bd,..._0x1a6ef4}=_0x568d5f;void _0x4024bd,baseFormatOutput(_0x1a6ef4,_0x3d554f),_0x3d554f[_0x336c05(0x115)]==='pretty'&&printPrettyNotice(_0xaea187);}function printPrettyNotice(_0x4dc61b){const _0x401867=a203_0x1b10;if(!_0x4dc61b?.[_0x401867(0x110)])return;console[_0x401867(0x112)](_0x4dc61b['update'][_0x401867(0x116)]+'\x20('+_0x4dc61b[_0x401867(0x110)]['url']+')');}
@@ -1 +1 @@
1
- function a204_0x314e(_0x4febea,_0x377113){_0x4febea=_0x4febea-0x9c;var _0x297002=a204_0x2970();var _0x314e0c=_0x297002[_0x4febea];return _0x314e0c;}(function(_0x2ec4d8,_0x509889){var _0x24991a=a204_0x314e,_0x102881=_0x2ec4d8();while(!![]){try{var _0x2edce1=parseInt(_0x24991a(0xa0))/0x1+parseInt(_0x24991a(0x9d))/0x2+-parseInt(_0x24991a(0xa2))/0x3+parseInt(_0x24991a(0x9e))/0x4+-parseInt(_0x24991a(0xa1))/0x5+-parseInt(_0x24991a(0x9c))/0x6+parseInt(_0x24991a(0x9f))/0x7;if(_0x2edce1===_0x509889)break;else _0x102881['push'](_0x102881['shift']());}catch(_0x476872){_0x102881['push'](_0x102881['shift']());}}}(a204_0x2970,0x1d094));function a204_0x2970(){var _0x24a1ff=['140208eUbrHg','900774TAGWOo','188929wrRLfO','375090xlshxM','470847gQLDvN','1337100FUGDhq','442172eomIoY'];a204_0x2970=function(){return _0x24a1ff;};return a204_0x2970();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a204_0x5457(_0x4cf0ed,_0x34dfaa){_0x4cf0ed=_0x4cf0ed-0x1a9;var _0x9183bc=a204_0x9183();var _0x545737=_0x9183bc[_0x4cf0ed];return _0x545737;}function a204_0x9183(){var _0x124476=['1238796qDerFf','24TCBjDv','1461754ydIauj','4052784GqGOlo','212616PdGwfY','3669730bYbPCS','8692UQHzog','1667250ZhDJQY','4tTgWsP','1167rAWlcv','308IYiZgc','9cmTqAS'];a204_0x9183=function(){return _0x124476;};return a204_0x9183();}(function(_0x562b8e,_0x29c6a0){var _0x2fa98b=a204_0x5457,_0x7e2d29=_0x562b8e();while(!![]){try{var _0x28002d=-parseInt(_0x2fa98b(0x1ad))/0x1+-parseInt(_0x2fa98b(0x1b3))/0x2*(-parseInt(_0x2fa98b(0x1aa))/0x3)+-parseInt(_0x2fa98b(0x1a9))/0x4*(parseInt(_0x2fa98b(0x1b4))/0x5)+-parseInt(_0x2fa98b(0x1b0))/0x6+-parseInt(_0x2fa98b(0x1af))/0x7*(-parseInt(_0x2fa98b(0x1ae))/0x8)+-parseInt(_0x2fa98b(0x1ac))/0x9*(-parseInt(_0x2fa98b(0x1b2))/0xa)+-parseInt(_0x2fa98b(0x1ab))/0xb*(-parseInt(_0x2fa98b(0x1b1))/0xc);if(_0x28002d===_0x29c6a0)break;else _0x7e2d29['push'](_0x7e2d29['shift']());}catch(_0x54c5e6){_0x7e2d29['push'](_0x7e2d29['shift']());}}}(a204_0x9183,0xe3a4b));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a205_0x5da6(_0x31787e,_0x37af34){_0x31787e=_0x31787e-0x6a;const _0x55f83d=a205_0x55f8();let _0x5da6a9=_0x55f83d[_0x31787e];return _0x5da6a9;}(function(_0x3a21c2,_0x4ecce8){const _0x474a93=a205_0x5da6,_0x1f17c2=_0x3a21c2();while(!![]){try{const _0x372328=parseInt(_0x474a93(0x7a))/0x1*(-parseInt(_0x474a93(0x75))/0x2)+parseInt(_0x474a93(0x7f))/0x3+parseInt(_0x474a93(0x79))/0x4+parseInt(_0x474a93(0x80))/0x5+-parseInt(_0x474a93(0x74))/0x6*(parseInt(_0x474a93(0x71))/0x7)+-parseInt(_0x474a93(0x70))/0x8+-parseInt(_0x474a93(0x7b))/0x9*(parseInt(_0x474a93(0x76))/0xa);if(_0x372328===_0x4ecce8)break;else _0x1f17c2['push'](_0x1f17c2['shift']());}catch(_0x35d3d1){_0x1f17c2['push'](_0x1f17c2['shift']());}}}(a205_0x55f8,0xc8a17));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a205_0x55f8(){const _0x9ed5c3=['4435630bMQIlP','`\x20requires\x20either\x20--code\x20or\x20--alias.','No\x20api.ts\x20found\x20in\x20','332068qUOljy','2hbEGmZ','9aXPqTr','flags','code','type','4446834OPjAvp','7016235lxNthh','Unknown\x20alias\x20\x22','join','\x22.\x20','some','string','\x20api\x20pull`\x20first.','alias','1167320AenqeK','182665SjdbcM','length','validation','6vsDDgt','1531186iigVxM'];a205_0x55f8=function(){return _0x9ed5c3;};return a205_0x55f8();}export function resolveAliasToCode(_0x368878,_0x5b8ed7,_0x366286,_0x367178){const _0x1f0c02=a205_0x5da6,_0x490bd6=_0x368878['flags']['some'](_0x38771a=>_0x38771a['name']==='code'&&_0x38771a[_0x1f0c02(0x7e)]===_0x1f0c02(0x6d)),_0x1c1723=_0x368878[_0x1f0c02(0x7c)][_0x1f0c02(0x6c)](_0x45de5c=>_0x45de5c['name']===_0x1f0c02(0x6f)&&_0x45de5c['type']===_0x1f0c02(0x6d));if(!_0x490bd6||!_0x1c1723)return;const _0x53e22f=_0x5b8ed7[_0x1f0c02(0x7d)]?String(_0x5b8ed7[_0x1f0c02(0x7d)]):'',_0x2dad5f=_0x5b8ed7['alias']?String(_0x5b8ed7[_0x1f0c02(0x6f)]):'';if(!_0x53e22f&&!_0x2dad5f)throw CliErrors[_0x1f0c02(0x73)]('`'+_0x367178+_0x1f0c02(0x77));if(_0x2dad5f&&!_0x53e22f){const _0x161576=resolveAlias(_0x366286,_0x2dad5f);if(!_0x161576){const _0x1dd4b6=listAliases(_0x366286)['map'](_0x4e51b2=>_0x4e51b2[_0x1f0c02(0x6f)]),_0x3ef95d=_0x1dd4b6[_0x1f0c02(0x72)]?'Available\x20aliases:\x20'+_0x1dd4b6[_0x1f0c02(0x6a)](',\x20'):_0x1f0c02(0x78)+_0x366286+'.\x20Run\x20`'+CLI_BIN_NAME+_0x1f0c02(0x6e);throw CliErrors[_0x1f0c02(0x73)](_0x1f0c02(0x81)+_0x2dad5f+_0x1f0c02(0x6b)+_0x3ef95d);}_0x5b8ed7[_0x1f0c02(0x7d)]=_0x161576;}}
1
+ function a205_0x5699(_0x183140,_0x50e064){_0x183140=_0x183140-0x159;const _0x2a5b11=a205_0x2a5b();let _0x569994=_0x2a5b11[_0x183140];return _0x569994;}function a205_0x2a5b(){const _0x55d655=['flags','1152446uDxdum','.\x20Run\x20`','14539374dJLtpQ','validation','join','code','map','15cejZuk','428684oEIzlH','string','alias','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','3645448exuxDG','2410302dXLThL','No\x20api.ts\x20found\x20in\x20','name','\x20api\x20pull`\x20first.','94964JrMGiW','7EBvllu','2151400sMsvAC','Available\x20aliases:\x20','Unknown\x20alias\x20\x22'];a205_0x2a5b=function(){return _0x55d655;};return a205_0x2a5b();}(function(_0x58eb2c,_0x78d943){const _0x328ec1=a205_0x5699,_0x314120=_0x58eb2c();while(!![]){try{const _0x45b9b3=-parseInt(_0x328ec1(0x15b))/0x1+parseInt(_0x328ec1(0x16b))/0x2+parseInt(_0x328ec1(0x15a))/0x3*(-parseInt(_0x328ec1(0x165))/0x4)+-parseInt(_0x328ec1(0x167))/0x5+-parseInt(_0x328ec1(0x161))/0x6+parseInt(_0x328ec1(0x166))/0x7*(-parseInt(_0x328ec1(0x160))/0x8)+parseInt(_0x328ec1(0x16d))/0x9;if(_0x45b9b3===_0x78d943)break;else _0x314120['push'](_0x314120['shift']());}catch(_0x3333a2){_0x314120['push'](_0x314120['shift']());}}}(a205_0x2a5b,0x57122));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x27836b,_0x543937,_0x28dcbb,_0x78e404){const _0x55aac9=a205_0x5699,_0x4c154c=_0x27836b[_0x55aac9(0x16a)][_0x55aac9(0x15e)](_0x4d029a=>_0x4d029a['name']==='code'&&_0x4d029a['type']===_0x55aac9(0x15c)),_0x5e251c=_0x27836b[_0x55aac9(0x16a)][_0x55aac9(0x15e)](_0x1a800e=>_0x1a800e[_0x55aac9(0x163)]==='alias'&&_0x1a800e['type']===_0x55aac9(0x15c));if(!_0x4c154c||!_0x5e251c)return;const _0x365df2=_0x543937[_0x55aac9(0x170)]?String(_0x543937['code']):'',_0x4858e8=_0x543937[_0x55aac9(0x15d)]?String(_0x543937['alias']):'';if(!_0x365df2&&!_0x4858e8)throw CliErrors['validation']('`'+_0x78e404+_0x55aac9(0x15f));if(_0x4858e8&&!_0x365df2){const _0x538e67=resolveAlias(_0x28dcbb,_0x4858e8);if(!_0x538e67){const _0x509b9a=listAliases(_0x28dcbb)[_0x55aac9(0x159)](_0x40a1de=>_0x40a1de[_0x55aac9(0x15d)]),_0x2406a9=_0x509b9a['length']?_0x55aac9(0x168)+_0x509b9a[_0x55aac9(0x16f)](',\x20'):_0x55aac9(0x162)+_0x28dcbb+_0x55aac9(0x16c)+CLI_BIN_NAME+_0x55aac9(0x164);throw CliErrors[_0x55aac9(0x16e)](_0x55aac9(0x169)+_0x4858e8+'\x22.\x20'+_0x2406a9);}_0x543937[_0x55aac9(0x170)]=_0x538e67;}}
@@ -1 +1 @@
1
- const a206_0x4409b2=a206_0x51c0;(function(_0x2eca0b,_0x5df69e){const _0x406d68=a206_0x51c0,_0x19dcf7=_0x2eca0b();while(!![]){try{const _0x176c3d=parseInt(_0x406d68(0xba))/0x1+parseInt(_0x406d68(0xb8))/0x2+-parseInt(_0x406d68(0x9e))/0x3*(parseInt(_0x406d68(0xc2))/0x4)+-parseInt(_0x406d68(0xb6))/0x5+parseInt(_0x406d68(0xcb))/0x6*(parseInt(_0x406d68(0xa2))/0x7)+-parseInt(_0x406d68(0xb5))/0x8+parseInt(_0x406d68(0xc1))/0x9;if(_0x176c3d===_0x5df69e)break;else _0x19dcf7['push'](_0x19dcf7['shift']());}catch(_0x31c983){_0x19dcf7['push'](_0x19dcf7['shift']());}}}(a206_0x5b2c,0xd614a));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a206_0x202371}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3cbcae){const _0x44d685=a206_0x51c0;return typeof _0x3cbcae===_0x44d685(0xca)&&_0x3cbcae[_0x44d685(0xbd)]()?_0x3cbcae[_0x44d685(0xbd)]():undefined;}function resolveEnvAppCode(){const _0x429fa0=a206_0x51c0,_0x4f2307=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4f2307)return{'name':_0x429fa0(0xb9),'value':_0x4f2307};const _0x56297b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x56297b)return{'name':'LOVRABET_APPCODE','value':_0x56297b};return undefined;}function hasExplicitAppCode(_0x2dedf5,_0x391d84){const _0x5c2799=a206_0x51c0;return!!(stringFlag(_0x2dedf5[_0x5c2799(0xa6)])||stringFlag(_0x391d84[_0x5c2799(0xa6)]));}function a206_0x51c0(_0x25ff7c,_0x5301dd){_0x25ff7c=_0x25ff7c-0x9b;const _0x5b2cb4=a206_0x5b2c();let _0x51c057=_0x5b2cb4[_0x25ff7c];return _0x51c057;}function a206_0x5b2c(){const _0x271570=['No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','rawFlags','defaultPageSize','catch','resolveApiDomain','string','6iAPCZK','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','execute','doctor','name','service','authRequired','apiDir','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','hasFormat','selectedAppName','nonInteractive','1378611wuWbKL','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','Set\x20appcode\x20via\x20`','resolveAppCode','2939587ItJCrp','pageSize','requiresAppCode','value','appcode','update','defaultVerbose','includes','⚠\x20\x20High-risk\x20operation:\x20','pretty','\x20\x20\x20Continue?\x20[y/N]\x20','configMissing','filter','cookie','map','object','command','appCode','validation','13572752ksrZzS','874195ONFcPJ','none','878616cnKuWu','RABETBASE_APPCODE','303273uShguW','_notice','apps','trim','../core/api-client.js','cancelled','riskLevel','26679564NJbLwQ','12DmliOi','isNonInteractive','required'];a206_0x5b2c=function(){return _0x271570;};return a206_0x5b2c();}function assertEnvAppCodeNotIgnored(_0x173fe3,_0x2221ac,_0x4fe3cc){const _0xb48b7f=a206_0x51c0;if(!_0x2221ac||_0x4fe3cc||_0x173fe3===_0x2221ac[_0xb48b7f(0xa5)])return;const _0xe5ee74=_0x173fe3?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x173fe3+'\x22.':_0xb48b7f(0xc5);throw CliErrors[_0xb48b7f(0xb4)](_0x2221ac[_0xb48b7f(0xcf)]+'='+_0x2221ac['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0xe5ee74+'\x20'+(_0xb48b7f(0xcc)+_0x2221ac[_0xb48b7f(0xcf)]+'\x22.'));}export function createPipelineEnv(_0x252c91,_0x258e96,_0x2f2d1c=[]){const _0x3d9a9a=a206_0x51c0;return{'rawFlags':_0x258e96,'args':_0x2f2d1c,'resolveAppCode':()=>_0x252c91['appCode'],'resolveCookie':()=>_0x252c91[_0x3d9a9a(0xaf)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x202371(_0x258e96),'defaultFormat':_0x252c91['format'],'defaultPageSize':_0x252c91[_0x3d9a9a(0xa3)],'defaultVerbose':_0x252c91['verbose'],'apiDir':_0x252c91[_0x3d9a9a(0xd2)],'riskLevel':_0x252c91[_0x3d9a9a(0xc0)],'selectedAppName':_0x252c91['explicitAppName'],'mergedCli':{'defaultApp':_0x252c91['defaultApp'],'currentApp':_0x252c91['currentApp'],'appCode':_0x252c91[_0x3d9a9a(0xb3)],'apps':_0x252c91[_0x3d9a9a(0xbc)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a206_0x4409b2(0xae)](_0xe82a9c=>PIPELINE_FLAG_NAMES['has'](_0xe82a9c[a206_0x4409b2(0xcf)]))[a206_0x4409b2(0xb0)](({name:_0x8fadb2,type:_0x564620,description:_0x2aab34})=>({'name':_0x8fadb2,'type':_0x564620,'description':_0x2aab34})),'formatOutput':formatOutput,'getCommandLabel'(_0x4ee974){const _0x7019a4=a206_0x4409b2;return CLI_BIN_NAME+'\x20'+_0x4ee974[_0x7019a4(0xd0)]+'\x20'+_0x4ee974[_0x7019a4(0xb2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x253a0d){const _0x2ad1e3=a206_0x4409b2;return CliErrors[_0x2ad1e3(0xb4)](_0x253a0d);}},async 'prepare'(_0x232a18,_0x2ca8e8,_0x6d5bb3,_0x2459e3){const _0x5473b4=a206_0x4409b2,_0x470aef=_0x2ca8e8[_0x5473b4(0xd2)]||DEFAULT_API_DIR;resolveAliasToCode(_0x232a18,_0x6d5bb3,_0x470aef,_0x2459e3);const _0x56e49e=resolveCommandAuthMode(_0x232a18);let _0x2e0490='';if(_0x56e49e!==_0x5473b4(0xb7)){_0x2e0490=_0x2ca8e8['resolveCookie']()||'';if(!_0x2e0490){if(_0x56e49e===_0x5473b4(0xc4))throw CliErrors[_0x5473b4(0xd1)]();}else{const {setActiveCookie:_0x3c140d}=await import('../core/api-client.js');_0x3c140d(_0x2e0490);}}const _0x1a285d=_0x2ca8e8[_0x5473b4(0xa1)]()??'';if(_0x232a18[_0x5473b4(0xa4)]!==![]){assertEnvAppCodeNotIgnored(_0x1a285d,resolveEnvAppCode(),hasExplicitAppCode(_0x6d5bb3,_0x2ca8e8[_0x5473b4(0xc6)]));if(!_0x1a285d)throw CliErrors[_0x5473b4(0xad)](_0x5473b4(0xa0)+CLI_BIN_NAME+_0x5473b4(0xd3));}return{'defaults':{'booleans':{'verbose':_0x2ca8e8[_0x5473b4(0xa8)]},'numbers':{'pagesize':_0x2ca8e8[_0x5473b4(0xc7)]}},'extras':{'appCode':_0x1a285d,'cookie':_0x2e0490,'apiDomain':_0x2ca8e8[_0x5473b4(0xc9)](),'apiDir':_0x470aef,'selectedAppName':_0x2ca8e8[_0x5473b4(0x9c)],'mergedCli':_0x2ca8e8['mergedCli']}};},async 'confirmHighRisk'({env:_0x33c15b,commandLabel:_0x5acf47}){const _0x3db935=a206_0x4409b2;if(_0x33c15b[_0x3db935(0xc3)])throw CliErrors[_0x3db935(0xb4)]('High-risk\x20operation\x20`'+_0x5acf47+_0x3db935(0x9f));await requireConfirmationPrompt({'lines':[_0x3db935(0xaa)+_0x5acf47,_0x3db935(0xac)],'createCancelledError':_0x1956c5=>CliErrors[_0x3db935(0xbf)](_0x1956c5)});},async 'finalize'(){const _0x4cadd7=a206_0x4409b2,{clearActiveCookie:_0x5cee94}=await import(_0x4cadd7(0xbe));_0x5cee94();}};export async function runCommand(_0x414633,_0x13bcf2){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x414633)?withUpdateNotice(_0x414633):_0x414633,_0x13bcf2,runnerAdapter);}function shouldAttachUpdateNotice(_0x194264){const _0x3e058d=a206_0x4409b2;if(_0x194264[_0x3e058d(0x9b)]===![])return![];return![_0x3e058d(0xa7),'schema',_0x3e058d(0xce)][_0x3e058d(0xa9)](_0x194264['service']);}function withUpdateNotice(_0xb37bdd){return{..._0xb37bdd,async 'execute'(_0xbfbd31){const _0x52daaf=a206_0x51c0,_0x8d5c80=shouldResolveUpdateNotice(_0xbfbd31)?resolveLatestUpdateNotice()[_0x52daaf(0xc8)](()=>null):Promise['resolve'](null),_0x108d47=await _0xb37bdd[_0x52daaf(0xcd)](_0xbfbd31);return attachUpdateNotice(_0x108d47,await _0x8d5c80);}};}function shouldResolveUpdateNotice(_0x26fca2){const _0x19db16=a206_0x4409b2;return _0x26fca2['format']===_0x19db16(0xab)&&!_0x26fca2[_0x19db16(0x9d)];}function attachUpdateNotice(_0x56b90e,_0x324069){const _0x41fb77=a206_0x4409b2;if(!_0x324069||!_0x56b90e||typeof _0x56b90e!==_0x41fb77(0xb1))return _0x56b90e;const _0x2f56d3=_0x56b90e,_0x27d142=typeof _0x2f56d3[_0x41fb77(0xbb)]===_0x41fb77(0xb1)&&_0x2f56d3[_0x41fb77(0xbb)]!==null?_0x2f56d3['_notice']:{};return{..._0x2f56d3,'_notice':{..._0x27d142,'update':_0x324069}};}
1
+ const a206_0x2da0ed=a206_0x47a9;(function(_0x50513b,_0x5697ae){const _0x353456=a206_0x47a9,_0x50b148=_0x50513b();while(!![]){try{const _0xd4f265=-parseInt(_0x353456(0x135))/0x1*(parseInt(_0x353456(0x14f))/0x2)+-parseInt(_0x353456(0x153))/0x3+-parseInt(_0x353456(0x15d))/0x4*(-parseInt(_0x353456(0x14b))/0x5)+-parseInt(_0x353456(0x146))/0x6*(parseInt(_0x353456(0x147))/0x7)+-parseInt(_0x353456(0x142))/0x8+parseInt(_0x353456(0x12a))/0x9+parseInt(_0x353456(0x132))/0xa*(parseInt(_0x353456(0x138))/0xb);if(_0xd4f265===_0x5697ae)break;else _0x50b148['push'](_0x50b148['shift']());}catch(_0x2ca1c4){_0x50b148['push'](_0x50b148['shift']());}}}(a206_0x303e,0x68115));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a206_0x47a9(_0x6181b5,_0xb5972){_0x6181b5=_0x6181b5-0x12a;const _0x303e06=a206_0x303e();let _0x47a9b0=_0x303e06[_0x6181b5];return _0x47a9b0;}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a206_0x340855}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5b1c5d){const _0x34ad34=a206_0x47a9;return typeof _0x5b1c5d===_0x34ad34(0x156)&&_0x5b1c5d[_0x34ad34(0x13a)]()?_0x5b1c5d[_0x34ad34(0x13a)]():undefined;}function resolveEnvAppCode(){const _0x3cc25f=a206_0x47a9,_0x145b90=stringFlag(process.env.RABETBASE_APPCODE);if(_0x145b90)return{'name':_0x3cc25f(0x159),'value':_0x145b90};const _0xed9994=stringFlag(process.env.LOVRABET_APPCODE);if(_0xed9994)return{'name':'LOVRABET_APPCODE','value':_0xed9994};return undefined;}function hasExplicitAppCode(_0x3ebeff,_0x181fb7){const _0x596abf=a206_0x47a9;return!!(stringFlag(_0x3ebeff[_0x596abf(0x154)])||stringFlag(_0x181fb7['appcode']));}function assertEnvAppCodeNotIgnored(_0x8117b3,_0xf83582,_0x58750b){const _0x242843=a206_0x47a9;if(!_0xf83582||_0x58750b||_0x8117b3===_0xf83582[_0x242843(0x166)])return;const _0x351fb2=_0x8117b3?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x8117b3+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x242843(0x15b)](_0xf83582[_0x242843(0x13d)]+'='+_0xf83582[_0x242843(0x166)]+_0x242843(0x131)+_0x351fb2+'\x20'+(_0x242843(0x155)+_0xf83582[_0x242843(0x13d)]+'\x22.'));}export function createPipelineEnv(_0xe7a1b5,_0x374816,_0x47b118=[]){const _0x5ac74e=a206_0x47a9;return{'rawFlags':_0x374816,'args':_0x47b118,'resolveAppCode':()=>_0xe7a1b5[_0x5ac74e(0x15c)],'resolveCookie':()=>_0xe7a1b5[_0x5ac74e(0x157)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x340855(_0x374816),'defaultFormat':_0xe7a1b5[_0x5ac74e(0x163)],'defaultPageSize':_0xe7a1b5[_0x5ac74e(0x144)],'defaultVerbose':_0xe7a1b5[_0x5ac74e(0x12e)],'apiDir':_0xe7a1b5[_0x5ac74e(0x148)],'riskLevel':_0xe7a1b5[_0x5ac74e(0x139)],'selectedAppName':_0xe7a1b5[_0x5ac74e(0x164)],'mergedCli':{'defaultApp':_0xe7a1b5[_0x5ac74e(0x152)],'currentApp':_0xe7a1b5[_0x5ac74e(0x133)],'appCode':_0xe7a1b5[_0x5ac74e(0x15c)],'apps':_0xe7a1b5[_0x5ac74e(0x165)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x59c519=>PIPELINE_FLAG_NAMES[a206_0x2da0ed(0x13f)](_0x59c519[a206_0x2da0ed(0x13d)]))[a206_0x2da0ed(0x13c)](({name:_0x3b7f51,type:_0x15d8f5,description:_0x38ed6e})=>({'name':_0x3b7f51,'type':_0x15d8f5,'description':_0x38ed6e})),'formatOutput':formatOutput,'getCommandLabel'(_0x69ebae){const _0x4ee39c=a206_0x2da0ed;return CLI_BIN_NAME+'\x20'+_0x69ebae[_0x4ee39c(0x162)]+'\x20'+_0x69ebae[_0x4ee39c(0x15e)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x26f49a){return CliErrors['validation'](_0x26f49a);}},async 'prepare'(_0x2d32b8,_0x51904b,_0x430568,_0x5bfef7){const _0x112f5b=a206_0x2da0ed,_0x68ac37=_0x51904b[_0x112f5b(0x148)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2d32b8,_0x430568,_0x68ac37,_0x5bfef7);const _0x4a6738=resolveCommandAuthMode(_0x2d32b8);let _0x227629='';if(_0x4a6738!==_0x112f5b(0x161)){_0x227629=_0x51904b[_0x112f5b(0x160)]()||'';if(!_0x227629){if(_0x4a6738===_0x112f5b(0x141))throw CliErrors[_0x112f5b(0x136)]();}else{const {setActiveCookie:_0x510b5c}=await import('../core/api-client.js');_0x510b5c(_0x227629);}}const _0x4ae20a=_0x51904b['resolveAppCode']()??'';if(_0x2d32b8[_0x112f5b(0x14c)]!==![]){assertEnvAppCodeNotIgnored(_0x4ae20a,resolveEnvAppCode(),hasExplicitAppCode(_0x430568,_0x51904b[_0x112f5b(0x151)]));if(!_0x4ae20a)throw CliErrors[_0x112f5b(0x14e)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x112f5b(0x13b));}return{'defaults':{'booleans':{'verbose':_0x51904b[_0x112f5b(0x168)]},'numbers':{'pagesize':_0x51904b[_0x112f5b(0x15a)]}},'extras':{'appCode':_0x4ae20a,'cookie':_0x227629,'apiDomain':_0x51904b[_0x112f5b(0x134)](),'apiDir':_0x68ac37,'selectedAppName':_0x51904b[_0x112f5b(0x12b)],'mergedCli':_0x51904b[_0x112f5b(0x167)]}};},async 'confirmHighRisk'({env:_0x529449,commandLabel:_0x36ffe6}){const _0x1f3156=a206_0x2da0ed;if(_0x529449[_0x1f3156(0x130)])throw CliErrors[_0x1f3156(0x15b)]('High-risk\x20operation\x20`'+_0x36ffe6+_0x1f3156(0x14d));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x36ffe6,_0x1f3156(0x143)],'createCancelledError':_0x9fc78d=>CliErrors[_0x1f3156(0x149)](_0x9fc78d)});},async 'finalize'(){const _0x4acfe3=a206_0x2da0ed,{clearActiveCookie:_0x588597}=await import(_0x4acfe3(0x158));_0x588597();}};export async function runCommand(_0x7c9716,_0x48a6d1){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x7c9716)?withUpdateNotice(_0x7c9716):_0x7c9716,_0x48a6d1,runnerAdapter);}function shouldAttachUpdateNotice(_0x155a36){const _0x5495a6=a206_0x2da0ed;if(_0x155a36[_0x5495a6(0x14a)]===![])return![];return![_0x5495a6(0x12f),_0x5495a6(0x140),_0x5495a6(0x12c)][_0x5495a6(0x12d)](_0x155a36[_0x5495a6(0x162)]);}function withUpdateNotice(_0x499954){return{..._0x499954,async 'execute'(_0x131ba6){const _0x566b47=a206_0x47a9,_0x16ad45=shouldResolveUpdateNotice(_0x131ba6)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x566b47(0x150)](null),_0x45d024=await _0x499954[_0x566b47(0x15f)](_0x131ba6);return attachUpdateNotice(_0x45d024,await _0x16ad45);}};}function shouldResolveUpdateNotice(_0x24a3fa){const _0x6d20af=a206_0x2da0ed;return _0x24a3fa['format']===_0x6d20af(0x137)&&!_0x24a3fa[_0x6d20af(0x13e)];}function attachUpdateNotice(_0xd14820,_0x1621c4){const _0x2e831f=a206_0x2da0ed;if(!_0x1621c4||!_0xd14820||typeof _0xd14820!==_0x2e831f(0x145))return _0xd14820;const _0x4caeb3=_0xd14820,_0x32bb2b=typeof _0x4caeb3[_0x2e831f(0x169)]===_0x2e831f(0x145)&&_0x4caeb3[_0x2e831f(0x169)]!==null?_0x4caeb3[_0x2e831f(0x169)]:{};return{..._0x4caeb3,'_notice':{..._0x32bb2b,'update':_0x1621c4}};}function a206_0x303e(){const _0x5eb6c4=['cookie','../core/api-client.js','RABETBASE_APPCODE','defaultPageSize','validation','appCode','355236pnfuaU','command','execute','resolveCookie','none','service','format','explicitAppName','apps','value','mergedCli','defaultVerbose','_notice','5947767bnJaoO','selectedAppName','doctor','includes','verbose','update','isNonInteractive','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','7148530dGjobH','currentApp','resolveApiDomain','17xogwMo','authRequired','pretty','22MjggYR','riskLevel','trim','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','map','name','nonInteractive','has','schema','required','4023560GYkFTx','\x20\x20\x20Continue?\x20[y/N]\x20','pageSize','object','6nOwMle','1670354tHRKTE','apiDir','cancelled','hasFormat','25ItHVJv','requiresAppCode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','configMissing','81248bonJnk','resolve','rawFlags','defaultApp','2028534whyGwY','appcode','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','string'];a206_0x303e=function(){return _0x5eb6c4;};return a206_0x303e();}
@@ -1 +1 @@
1
- function a207_0xa06b(_0x2b2826,_0x184137){_0x2b2826=_0x2b2826-0x1e2;const _0x1072c1=a207_0x1072();let _0xa06bf3=_0x1072c1[_0x2b2826];return _0xa06bf3;}(function(_0x298978,_0xeb4e65){const _0x1cf01e=a207_0xa06b,_0x5d28ce=_0x298978();while(!![]){try{const _0x5c6469=-parseInt(_0x1cf01e(0x1ea))/0x1+parseInt(_0x1cf01e(0x1ec))/0x2*(parseInt(_0x1cf01e(0x1e6))/0x3)+-parseInt(_0x1cf01e(0x1ed))/0x4+-parseInt(_0x1cf01e(0x1e9))/0x5*(-parseInt(_0x1cf01e(0x1e3))/0x6)+parseInt(_0x1cf01e(0x1e5))/0x7*(-parseInt(_0x1cf01e(0x1eb))/0x8)+-parseInt(_0x1cf01e(0x1e7))/0x9*(parseInt(_0x1cf01e(0x1e2))/0xa)+parseInt(_0x1cf01e(0x1e4))/0xb;if(_0x5c6469===_0xeb4e65)break;else _0x5d28ce['push'](_0x5d28ce['shift']());}catch(_0x3e5e3e){_0x5d28ce['push'](_0x5d28ce['shift']());}}}(a207_0x1072,0xc817f));function a207_0x1072(){const _0x52146b=['354022XljXGy','509992CSEWPx','805846nYkOza','1268064alRDSj','395990xYnwqj','6MCQIRi','18118100bVfDNC','49aFTcvg','3bmXMku','369gwbePI','../commands/registry.js','7552000UuxkGK'];a207_0x1072=function(){return _0x52146b;};return a207_0x1072();}import{buildSchemaPayload as a207_0x3cc6bd}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';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2f1b52=a207_0xa06b,{serviceRegistry:_0x48035a,findDefinition:_0x5a4a25}=await import(_0x2f1b52(0x1e8));return a207_0x3cc6bd({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x48035a,'buildAllFlags':buildAllFlags,'findDefinition':_0x5a4a25});}
1
+ (function(_0x3454a8,_0x47dea9){const _0x18c73b=a207_0x59c7,_0x59e1ca=_0x3454a8();while(!![]){try{const _0x13dd6a=parseInt(_0x18c73b(0xd1))/0x1+parseInt(_0x18c73b(0xd8))/0x2*(-parseInt(_0x18c73b(0xd9))/0x3)+parseInt(_0x18c73b(0xd7))/0x4+-parseInt(_0x18c73b(0xdd))/0x5*(-parseInt(_0x18c73b(0xd3))/0x6)+-parseInt(_0x18c73b(0xd4))/0x7*(parseInt(_0x18c73b(0xdc))/0x8)+parseInt(_0x18c73b(0xd2))/0x9*(parseInt(_0x18c73b(0xda))/0xa)+parseInt(_0x18c73b(0xdb))/0xb*(-parseInt(_0x18c73b(0xd5))/0xc);if(_0x13dd6a===_0x47dea9)break;else _0x59e1ca['push'](_0x59e1ca['shift']());}catch(_0x4d25f2){_0x59e1ca['push'](_0x59e1ca['shift']());}}}(a207_0x488c,0x2fafc));import{buildSchemaPayload as a207_0x1ab4fe}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 a207_0x488c(){const _0x26196a=['6QZxzhB','3440gWjSKk','11CNglwq','64DjnjFq','5BDdsrX','196575mqxbqN','2880aroWtC','637812JQQacS','40642pjESkf','1531080ILxNvm','../commands/registry.js','1136508FCzWUT','327722CmgqIJ'];a207_0x488c=function(){return _0x26196a;};return a207_0x488c();}import{getCliVersion}from'../utils/version.js';function a207_0x59c7(_0x59172d,_0x48004a){_0x59172d=_0x59172d-0xd1;const _0x488cc2=a207_0x488c();let _0x59c7c2=_0x488cc2[_0x59172d];return _0x59c7c2;}export async function buildSchemaPayload(){const _0x1a47d4=a207_0x59c7,{serviceRegistry:_0x3b8d35,findDefinition:_0x484b7a}=await import(_0x1a47d4(0xd6));return a207_0x1ab4fe({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3b8d35,'buildAllFlags':buildAllFlags,'findDefinition':_0x484b7a});}
@@ -1 +1 @@
1
- function a208_0x28ae(){var _0x581589=['44mKdDeg','120XQlDEv','2608404gDCgkH','11685500luTMbt','2FCGLCs','289090iiZwGN','5565483IIAcPu','578582hYghxI','447435fiRSxo','992835xOoCQN'];a208_0x28ae=function(){return _0x581589;};return a208_0x28ae();}(function(_0x4768a0,_0x35cac7){var _0x2393a1=a208_0x5716,_0x58a1bc=_0x4768a0();while(!![]){try{var _0x3973fe=parseInt(_0x2393a1(0x178))/0x1+-parseInt(_0x2393a1(0x17f))/0x2*(parseInt(_0x2393a1(0x17a))/0x3)+parseInt(_0x2393a1(0x17b))/0x4*(-parseInt(_0x2393a1(0x180))/0x5)+parseInt(_0x2393a1(0x17d))/0x6+parseInt(_0x2393a1(0x177))/0x7+-parseInt(_0x2393a1(0x17c))/0x8*(-parseInt(_0x2393a1(0x179))/0x9)+-parseInt(_0x2393a1(0x17e))/0xa;if(_0x3973fe===_0x35cac7)break;else _0x58a1bc['push'](_0x58a1bc['shift']());}catch(_0x2673b4){_0x58a1bc['push'](_0x58a1bc['shift']());}}}(a208_0x28ae,0x66339));function a208_0x5716(_0x2168e9,_0x34a836){_0x2168e9=_0x2168e9-0x177;var _0x28ae51=a208_0x28ae();var _0x57164d=_0x28ae51[_0x2168e9];return _0x57164d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0x2f9f90,_0x298c0d){var _0x544f1c=a208_0x1ef2,_0x52470b=_0x2f9f90();while(!![]){try{var _0x1d778a=parseInt(_0x544f1c(0x15a))/0x1+parseInt(_0x544f1c(0x15f))/0x2+-parseInt(_0x544f1c(0x160))/0x3*(-parseInt(_0x544f1c(0x161))/0x4)+parseInt(_0x544f1c(0x15e))/0x5+parseInt(_0x544f1c(0x158))/0x6*(parseInt(_0x544f1c(0x15c))/0x7)+parseInt(_0x544f1c(0x159))/0x8+-parseInt(_0x544f1c(0x15d))/0x9*(parseInt(_0x544f1c(0x15b))/0xa);if(_0x1d778a===_0x298c0d)break;else _0x52470b['push'](_0x52470b['shift']());}catch(_0x40e678){_0x52470b['push'](_0x52470b['shift']());}}}(a208_0x53bb,0xcb597));function a208_0x1ef2(_0x3dcd1a,_0x44d876){_0x3dcd1a=_0x3dcd1a-0x158;var _0x53bb9d=a208_0x53bb();var _0x1ef24a=_0x53bb9d[_0x3dcd1a];return _0x1ef24a;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a208_0x53bb(){var _0x4898c4=['7MgtAks','9thFNmO','6289480nEtruP','2018550EAJymq','75LoathS','236444IJjKFm','7732740EZmkBZ','12873000MKgNWj','1656915VvpkTN','74668570evnQZr'];a208_0x53bb=function(){return _0x4898c4;};return a208_0x53bb();}
@@ -1 +1 @@
1
- const a209_0x14fd64=a209_0x1fc7;(function(_0x1b628e,_0x445453){const _0x4f38a0=a209_0x1fc7,_0xb3f3ef=_0x1b628e();while(!![]){try{const _0x45c5aa=parseInt(_0x4f38a0(0x13e))/0x1+-parseInt(_0x4f38a0(0x13c))/0x2+-parseInt(_0x4f38a0(0x13d))/0x3*(-parseInt(_0x4f38a0(0x142))/0x4)+-parseInt(_0x4f38a0(0x145))/0x5*(parseInt(_0x4f38a0(0x143))/0x6)+parseInt(_0x4f38a0(0x141))/0x7+-parseInt(_0x4f38a0(0x144))/0x8*(-parseInt(_0x4f38a0(0x140))/0x9)+parseInt(_0x4f38a0(0x13f))/0xa;if(_0x45c5aa===_0x445453)break;else _0xb3f3ef['push'](_0xb3f3ef['shift']());}catch(_0x107c5e){_0xb3f3ef['push'](_0xb3f3ef['shift']());}}}(a209_0x3939,0x7e9cb));function a209_0x1fc7(_0x10b738,_0x1d1318){_0x10b738=_0x10b738-0x13c;const _0x393928=a209_0x3939();let _0x1fc73d=_0x393928[_0x10b738];return _0x1fc73d;}export const VERSION='2.3.4';export const GIT_TAG='v2.3.4-beta.4';export const GIT_COMMIT='f488f03';export const BUILD_TIME=a209_0x14fd64(0x146);function a209_0x3939(){const _0x5ea167=['295246iHocNy','4828wTItxM','1862658gZqFzv','152LEUZrB','15bshfpC','2026-07-14T03:18:42.654Z','679164KwbNfU','2019tHZOqM','245806gVhGdR','3838510ZFcCwc','144648IFZaCR'];a209_0x3939=function(){return _0x5ea167;};return a209_0x3939();}
1
+ function a209_0x4aec(){const _0x3eec14=['1797yUYmwH','10tnbUAZ','68230lqjEkw','1000ztzXCT','102jxqnhb','3308968QRrNYv','3528636QpshBP','11ReqqVv','2018yZdYBZ','2834721imTvLL','2759904YqfPWD','2026-07-14T15:24:06.734Z','2.3.5-beta.1','301AOSMPm'];a209_0x4aec=function(){return _0x3eec14;};return a209_0x4aec();}const a209_0x2db6da=a209_0x117a;function a209_0x117a(_0x286126,_0x6abde2){_0x286126=_0x286126-0x185;const _0x4aecc2=a209_0x4aec();let _0x117a45=_0x4aecc2[_0x286126];return _0x117a45;}(function(_0x42bc77,_0x3f09ac){const _0x34493d=a209_0x117a,_0x57b8fe=_0x42bc77();while(!![]){try{const _0x20ec0b=-parseInt(_0x34493d(0x191))/0x1*(-parseInt(_0x34493d(0x18c))/0x2)+-parseInt(_0x34493d(0x192))/0x3*(-parseInt(_0x34493d(0x187))/0x4)+parseInt(_0x34493d(0x186))/0x5*(-parseInt(_0x34493d(0x188))/0x6)+-parseInt(_0x34493d(0x18e))/0x7+parseInt(_0x34493d(0x189))/0x8+-parseInt(_0x34493d(0x18d))/0x9*(parseInt(_0x34493d(0x185))/0xa)+-parseInt(_0x34493d(0x18b))/0xb*(-parseInt(_0x34493d(0x18a))/0xc);if(_0x20ec0b===_0x3f09ac)break;else _0x57b8fe['push'](_0x57b8fe['shift']());}catch(_0x3640f6){_0x57b8fe['push'](_0x57b8fe['shift']());}}}(a209_0x4aec,0x35b06));export const VERSION=a209_0x2db6da(0x190);export const GIT_TAG='v2.3.5-beta.1';export const GIT_COMMIT='a39e59e';export const BUILD_TIME=a209_0x2db6da(0x18f);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a210_0x33b4(_0x5bdc17,_0x5a0921){_0x5bdc17=_0x5bdc17-0x13f;var _0x594e38=a210_0x594e();var _0x33b486=_0x594e38[_0x5bdc17];return _0x33b486;}(function(_0x18690a,_0x4d37c8){var _0x461364=a210_0x33b4,_0x5e31e7=_0x18690a();while(!![]){try{var _0x26a6f1=parseInt(_0x461364(0x141))/0x1+-parseInt(_0x461364(0x13f))/0x2*(-parseInt(_0x461364(0x143))/0x3)+-parseInt(_0x461364(0x140))/0x4*(-parseInt(_0x461364(0x144))/0x5)+parseInt(_0x461364(0x14e))/0x6+parseInt(_0x461364(0x149))/0x7*(parseInt(_0x461364(0x14a))/0x8)+-parseInt(_0x461364(0x14d))/0x9*(-parseInt(_0x461364(0x14b))/0xa)+parseInt(_0x461364(0x142))/0xb*(-parseInt(_0x461364(0x148))/0xc);if(_0x26a6f1===_0x4d37c8)break;else _0x5e31e7['push'](_0x5e31e7['shift']());}catch(_0x35a18e){_0x5e31e7['push'](_0x5e31e7['shift']());}}}(a210_0x594e,0x250fd));import a210_0x4f0837 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1e99de=a210_0x33b4;console[_0x1e99de(0x147)](),console[_0x1e99de(0x147)](a210_0x4f0837[_0x1e99de(0x145)][_0x1e99de(0x146)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1e99de(0x147)](),console[_0x1e99de(0x147)]('\x20\x20Use\x20'+a210_0x4f0837[_0x1e99de(0x145)]['bold'](CLI_BIN_NAME+_0x1e99de(0x14c))+'\x20to\x20view\x20available\x20commands.'),console[_0x1e99de(0x147)]();}function a210_0x594e(){var _0x344bc4=['bold','log','36cXThRO','495579pwjitu','24AZtzWM','717320KhmNSX','\x20--help','27wlGIaa','903402FnTJQF','250768ArTqbj','1444CjpusJ','39299tDCucj','2911018QAYasl','3nMFbmf','2810GmYFqw','green'];a210_0x594e=function(){return _0x344bc4;};return a210_0x594e();}
1
+ function a210_0x35bb(_0x4c4d86,_0x56ed4f){_0x4c4d86=_0x4c4d86-0xb3;var _0x33229d=a210_0x3322();var _0x35bbcf=_0x33229d[_0x4c4d86];return _0x35bbcf;}(function(_0x17823e,_0x5a21a9){var _0x5a614d=a210_0x35bb,_0x163958=_0x17823e();while(!![]){try{var _0x25e5a5=parseInt(_0x5a614d(0xb9))/0x1*(parseInt(_0x5a614d(0xb5))/0x2)+parseInt(_0x5a614d(0xb8))/0x3*(-parseInt(_0x5a614d(0xbe))/0x4)+parseInt(_0x5a614d(0xc0))/0x5+-parseInt(_0x5a614d(0xbd))/0x6+-parseInt(_0x5a614d(0xb7))/0x7*(parseInt(_0x5a614d(0xba))/0x8)+-parseInt(_0x5a614d(0xbf))/0x9+parseInt(_0x5a614d(0xbb))/0xa;if(_0x25e5a5===_0x5a21a9)break;else _0x163958['push'](_0x163958['shift']());}catch(_0x3c54e6){_0x163958['push'](_0x163958['shift']());}}}(a210_0x3322,0x3ef3f));import a210_0x5b907d from'chalk';function a210_0x3322(){var _0x45d818=['green','log','27966LhXPoK','\x20to\x20view\x20available\x20commands.','98vTRANS','141DCaQip','15ecwpIg','25304sTXCdc','10040660pQNwkq','\x20\x20Use\x20','1952202GvcmGo','39956UNqJoT','1234179pDlims','101535UPSvuE'];a210_0x3322=function(){return _0x45d818;};return a210_0x3322();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x17e7fb=a210_0x35bb;console['log'](),console['log'](a210_0x5b907d[_0x17e7fb(0xb3)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x17e7fb(0xb4)](),console['log'](_0x17e7fb(0xbc)+a210_0x5b907d[_0x17e7fb(0xb3)]['bold'](CLI_BIN_NAME+'\x20--help')+_0x17e7fb(0xb6)),console[_0x17e7fb(0xb4)]();}
@@ -1 +1 @@
1
- (function(_0x57a1c1,_0x5014e0){const _0x4ba40a=a211_0x4565,_0x46f471=_0x57a1c1();while(!![]){try{const _0x79277e=parseInt(_0x4ba40a(0x1bc))/0x1*(parseInt(_0x4ba40a(0x1b1))/0x2)+-parseInt(_0x4ba40a(0x1a4))/0x3*(parseInt(_0x4ba40a(0x1ac))/0x4)+-parseInt(_0x4ba40a(0x19e))/0x5+parseInt(_0x4ba40a(0x1b3))/0x6*(-parseInt(_0x4ba40a(0x1a0))/0x7)+-parseInt(_0x4ba40a(0x1b8))/0x8+parseInt(_0x4ba40a(0x1a3))/0x9+parseInt(_0x4ba40a(0x1ba))/0xa*(parseInt(_0x4ba40a(0x19f))/0xb);if(_0x79277e===_0x5014e0)break;else _0x46f471['push'](_0x46f471['shift']());}catch(_0x5f2653){_0x46f471['push'](_0x46f471['shift']());}}}(a211_0x7a10,0x244d9));function a211_0x7a10(){const _0x124125=['Equivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','push','has','(empty)','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','16zleEeO','enable-bff-save','cwd','entries','toLowerCase','1448ZQVOca','skill','6juJNxF','不支持的命令:\x20','log','dangerously-bff-save','includes','2353672nnFTkw','slice','1462660eeZKfQ','from','202bDqudW','error','help','add','replace','-$1','1021565AiwMAk','55IZTvvC','844977jTFopb','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','424692TuADEI','117627gsrVnt'];a211_0x7a10=function(){return _0x124125;};return a211_0x7a10();}function a211_0x4565(_0x18159f,_0x715bc9){_0x18159f=_0x18159f-0x19a;const _0x7a1006=a211_0x7a10();let _0x45654a=_0x7a1006[_0x18159f];return _0x45654a;}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(_0x239bdb){const _0x249a73=a211_0x4565,_0x2a1bf8=[];for(const [_0x5cdf18,_0x2b218f]of Object[_0x249a73(0x1af)](_0x239bdb)){if(_0x2b218f===!![]){const _0x38fdd6=_0x5cdf18[_0x249a73(0x19c)](/([A-Z])/g,_0x249a73(0x19d))[_0x249a73(0x1b0)]();_0x2a1bf8['push'](_0x38fdd6);}}return _0x2a1bf8;}export function parseDynamicFlags(){const _0x5eab88=a211_0x4565,_0x2a3a8d=[];for(let _0x20e5ca=0x3;_0x20e5ca<process[_0x5eab88(0x1a1)][_0x5eab88(0x1ab)];_0x20e5ca++){const _0x50a0a5=process[_0x5eab88(0x1a1)][_0x20e5ca];if(_0x50a0a5&&_0x50a0a5['startsWith']('--')){const _0x25bbe0=_0x50a0a5[_0x5eab88(0x1b9)](0x2);_0x25bbe0&&!_0x25bbe0[_0x5eab88(0x1b7)]('=')&&_0x2a3a8d[_0x5eab88(0x1a7)](_0x25bbe0);}}return _0x2a3a8d;}export function getAllProvidedFlags(_0x5bf433){const _0x5cb76c=a211_0x4565,_0x2635a6=camelCaseFlagsToKebab(_0x5bf433),_0x2be717=parseDynamicFlags(),_0x417c03=new Set([..._0x2635a6,..._0x2be717]);return Array[_0x5cb76c(0x1bb)](_0x417c03);}export function normalizeLegacyBffSaveFlags(_0x4ed56c){const _0x5443ad=a211_0x4565,_0x111f6c=new Set(_0x4ed56c);return _0x111f6c[_0x5443ad(0x1a8)](_0x5443ad(0x1b6))&&_0x111f6c[_0x5443ad(0x19b)](_0x5443ad(0x1ad)),Array[_0x5443ad(0x1bb)](_0x111f6c);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x578b98,_0x1bb863,_0x429c91){const _0x3d1b7b=a211_0x4565;logger['setLogPath'](process[_0x3d1b7b(0x1ae)]());if(_0x429c91?.[_0x3d1b7b(0x19a)]||_0x578b98==='--help'){showHelp();return;}console['error'](_0x3d1b7b(0x1a6)+(_0x578b98||_0x3d1b7b(0x1a9))),console['log']('\x0aAvailable\x20commands:'),console[_0x3d1b7b(0x1b5)]('\x20\x20'+CLI_BIN_NAME+_0x3d1b7b(0x1aa)),console[_0x3d1b7b(0x1b5)](''),console['log'](_0x3d1b7b(0x1a5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3d1b7b(0x1bd)](_0x3d1b7b(0x1b2),_0x3d1b7b(0x1b4)+_0x578b98),process['exit'](0x1);}function showHelp(){const _0x480a22=a211_0x4565;console['log'](_0x480a22(0x1a2)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x15a48a,_0x59fa4f){const _0x5c45c0=a211_0x2489,_0x2a8db4=_0x15a48a();while(!![]){try{const _0x3c62a0=parseInt(_0x5c45c0(0xa8))/0x1*(parseInt(_0x5c45c0(0xa2))/0x2)+parseInt(_0x5c45c0(0xa4))/0x3*(-parseInt(_0x5c45c0(0x96))/0x4)+-parseInt(_0x5c45c0(0x9a))/0x5*(parseInt(_0x5c45c0(0x98))/0x6)+parseInt(_0x5c45c0(0xa0))/0x7+parseInt(_0x5c45c0(0xb7))/0x8+parseInt(_0x5c45c0(0xac))/0x9+parseInt(_0x5c45c0(0xb5))/0xa*(-parseInt(_0x5c45c0(0xa5))/0xb);if(_0x3c62a0===_0x59fa4f)break;else _0x2a8db4['push'](_0x2a8db4['shift']());}catch(_0x44dfce){_0x2a8db4['push'](_0x2a8db4['shift']());}}}(a211_0x2b15,0x24c83));import{logger}from'../utils/logger.js';function a211_0x2489(_0x4c221b,_0x2adf27){_0x4c221b=_0x4c221b-0x96;const _0x2b15aa=a211_0x2b15();let _0x248942=_0x2b15aa[_0x4c221b];return _0x248942;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x1bebb4){const _0x6af363=a211_0x2489,_0xaf4381=[];for(const [_0x4e4522,_0x29d3e2]of Object['entries'](_0x1bebb4)){if(_0x29d3e2===!![]){const _0x1b33b8=_0x4e4522[_0x6af363(0x9d)](/([A-Z])/g,'-$1')[_0x6af363(0xa9)]();_0xaf4381[_0x6af363(0xb0)](_0x1b33b8);}}return _0xaf4381;}export function parseDynamicFlags(){const _0x21565b=a211_0x2489,_0xef34a1=[];for(let _0x258ca4=0x3;_0x258ca4<process[_0x21565b(0xae)][_0x21565b(0xb1)];_0x258ca4++){const _0x53b4f6=process['argv'][_0x258ca4];if(_0x53b4f6&&_0x53b4f6[_0x21565b(0xb8)]('--')){const _0x17676e=_0x53b4f6[_0x21565b(0xb9)](0x2);_0x17676e&&!_0x17676e[_0x21565b(0xa6)]('=')&&_0xef34a1[_0x21565b(0xb0)](_0x17676e);}}return _0xef34a1;}function a211_0x2b15(){const _0x4eb2e1=['3852CvskHY','3707VyQwxI','includes','--help','2SbwIKC','toLowerCase','skill','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','1795995nrmYtA','dangerously-bff-save','argv','log','push','length','error','(empty)','from','8070mESeES','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','304808tbHIwG','startsWith','slice','help','300YalnBR','has','6YSGqUR','enable-bff-save','775015fPAyfw','setLogPath','exit','replace','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','2103073bjVOGg','Equivalent\x20command:\x20','135826VMfKGG','cwd'];a211_0x2b15=function(){return _0x4eb2e1;};return a211_0x2b15();}export function getAllProvidedFlags(_0xc64a47){const _0x3d96b3=camelCaseFlagsToKebab(_0xc64a47),_0x548c98=parseDynamicFlags(),_0x481c2d=new Set([..._0x3d96b3,..._0x548c98]);return Array['from'](_0x481c2d);}export function normalizeLegacyBffSaveFlags(_0xe2b6c0){const _0x4d72f1=a211_0x2489,_0x158d6a=new Set(_0xe2b6c0);return _0x158d6a[_0x4d72f1(0x97)](_0x4d72f1(0xad))&&_0x158d6a['add'](_0x4d72f1(0x99)),Array[_0x4d72f1(0xb4)](_0x158d6a);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1f4e69,_0x2ca929,_0x5e1ae1){const _0x74744b=a211_0x2489;logger[_0x74744b(0x9b)](process[_0x74744b(0xa3)]());if(_0x5e1ae1?.[_0x74744b(0xba)]||_0x1f4e69===_0x74744b(0xa7)){showHelp();return;}console[_0x74744b(0xb2)](_0x74744b(0x9f)+(_0x1f4e69||_0x74744b(0xb3))),console['log']('\x0aAvailable\x20commands:'),console[_0x74744b(0xaf)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x74744b(0xaf)](''),console[_0x74744b(0xaf)](_0x74744b(0xa1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x74744b(0xb2)](_0x74744b(0xaa),'不支持的命令:\x20'+_0x1f4e69),process[_0x74744b(0x9c)](0x1);}function showHelp(){const _0x43a61f=a211_0x2489;console[_0x43a61f(0xaf)](_0x43a61f(0xb6)+CLI_BIN_NAME+_0x43a61f(0x9e)+SKILLS_INSTALL_COMMAND_LINE+_0x43a61f(0xab));}