@lovrabet/rabetbase-cli 2.3.4-beta.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(_0x3226c8,_0x41c394){const _0xf0d7d8=a185_0x569c,_0xae3b53=_0x3226c8();while(!![]){try{const _0x439a5e=-parseInt(_0xf0d7d8(0x10d))/0x1*(parseInt(_0xf0d7d8(0x113))/0x2)+-parseInt(_0xf0d7d8(0x114))/0x3+-parseInt(_0xf0d7d8(0x112))/0x4*(-parseInt(_0xf0d7d8(0x118))/0x5)+parseInt(_0xf0d7d8(0x106))/0x6*(-parseInt(_0xf0d7d8(0x111))/0x7)+parseInt(_0xf0d7d8(0x10b))/0x8+-parseInt(_0xf0d7d8(0x110))/0x9*(-parseInt(_0xf0d7d8(0x107))/0xa)+-parseInt(_0xf0d7d8(0x10c))/0xb;if(_0x439a5e===_0x41c394)break;else _0xae3b53['push'](_0xae3b53['shift']());}catch(_0x593d0f){_0xae3b53['push'](_0xae3b53['shift']());}}}(a185_0x2867,0x47885));export function snakeToCamel(_0x3dcfe5){const _0x3a420f=a185_0x569c;return _0x3dcfe5[_0x3a420f(0x119)]()['replace'](/_([a-z])/g,(_0x68790a,_0xd4ca60)=>_0xd4ca60[_0x3a420f(0x11b)]());}export function findHookLocationByRemoteId(_0x5dd851,_0x5df43b){const _0x25371f=a185_0x569c;if(!_0x5df43b)return undefined;for(const _0x5037e7 of Object[_0x25371f(0x115)](_0x5dd851)){if(_0x5037e7[_0x25371f(0x116)]===_0x5df43b&&_0x5037e7[_0x25371f(0x117)]&&_0x5037e7[_0x25371f(0x10a)]&&_0x5037e7[_0x25371f(0x10e)])return{'datasetCode':_0x5037e7[_0x25371f(0x117)],'operationType':_0x5037e7[_0x25371f(0x10a)],'functionNode':_0x5037e7['functionNode']};}return undefined;}export function extractScriptDescription(_0x58f666){const _0x22adae=a185_0x569c,_0x18c3aa=_0x58f666[_0x22adae(0x109)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x18c3aa?.[0x1]?.[_0x22adae(0x105)]()||undefined;}function a185_0x569c(_0x2ff025,_0x1cb19f){_0x2ff025=_0x2ff025-0x105;const _0x28672c=a185_0x2867();let _0x569cef=_0x28672c[_0x2ff025];return _0x569cef;}export function isValidBffFunctionName(_0x3a0693){const _0x225228=a185_0x569c;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x225228(0x10f)](_0x3a0693);}function a185_0x2867(){const _0x4e1364=['3124496cyozym','3114331HkqiNH','29REmHXi','functionNode','test','153ByZQNE','7zvJKDk','167036CrFrTT','33404PFigPq','262623CbfZJR','values','remoteId','datasetCode','50mzmteJ','toLowerCase','after','toUpperCase','trim','1324260sGiSAP','329750AZcyNc','before','match','operationType'];a185_0x2867=function(){return _0x4e1364;};return a185_0x2867();}export function normalizeHookFunctionNode(_0x1b1373){const _0x3ceaa3=a185_0x569c;if(!_0x1b1373)return undefined;const _0x4fcbc3=_0x1b1373['trim']()[_0x3ceaa3(0x119)]();if(_0x4fcbc3===_0x3ceaa3(0x108)||_0x4fcbc3===_0x3ceaa3(0x11a))return _0x4fcbc3;return undefined;}
1
+ (function(_0x62ea1f,_0x325254){const _0x4daef6=a185_0x2773,_0x46b2e1=_0x62ea1f();while(!![]){try{const _0x14a9fa=parseInt(_0x4daef6(0x11d))/0x1+-parseInt(_0x4daef6(0x119))/0x2+-parseInt(_0x4daef6(0x11e))/0x3+parseInt(_0x4daef6(0x11b))/0x4+parseInt(_0x4daef6(0x11a))/0x5+parseInt(_0x4daef6(0x11f))/0x6+-parseInt(_0x4daef6(0x125))/0x7*(parseInt(_0x4daef6(0x123))/0x8);if(_0x14a9fa===_0x325254)break;else _0x46b2e1['push'](_0x46b2e1['shift']());}catch(_0x1768c5){_0x46b2e1['push'](_0x46b2e1['shift']());}}}(a185_0x5789,0x864a8));export function snakeToCamel(_0x481ae){const _0x3c1022=a185_0x2773;return _0x481ae['toLowerCase']()['replace'](/_([a-z])/g,(_0x4abf1d,_0x12b7de)=>_0x12b7de[_0x3c1022(0x124)]());}export function findHookLocationByRemoteId(_0x24e098,_0x2bd8b6){const _0x5ae8e3=a185_0x2773;if(!_0x2bd8b6)return undefined;for(const _0x3b75d8 of Object['values'](_0x24e098)){if(_0x3b75d8[_0x5ae8e3(0x126)]===_0x2bd8b6&&_0x3b75d8['datasetCode']&&_0x3b75d8[_0x5ae8e3(0x118)]&&_0x3b75d8['functionNode'])return{'datasetCode':_0x3b75d8['datasetCode'],'operationType':_0x3b75d8[_0x5ae8e3(0x118)],'functionNode':_0x3b75d8[_0x5ae8e3(0x121)]};}return undefined;}function a185_0x5789(){const _0x52fc6a=['1482750yvdSPv','4567560udlNEz','1578336KkPAqq','test','424256dgZHLh','172128YhvRVx','2149698jqKVkC','trim','functionNode','toLowerCase','494552eRgmJn','toUpperCase','84kKKSer','remoteId','operationType'];a185_0x5789=function(){return _0x52fc6a;};return a185_0x5789();}export function extractScriptDescription(_0x34624b){const _0x503638=a185_0x2773,_0x22792c=_0x34624b['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x22792c?.[0x1]?.[_0x503638(0x120)]()||undefined;}function a185_0x2773(_0x3b405e,_0x2c31ee){_0x3b405e=_0x3b405e-0x118;const _0x5789f8=a185_0x5789();let _0x2773dc=_0x5789f8[_0x3b405e];return _0x2773dc;}export function isValidBffFunctionName(_0x200398){const _0xe28dd4=a185_0x2773;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe28dd4(0x11c)](_0x200398);}export function normalizeHookFunctionNode(_0x56d7aa){const _0x114e84=a185_0x2773;if(!_0x56d7aa)return undefined;const _0x347e08=_0x56d7aa[_0x114e84(0x120)]()[_0x114e84(0x122)]();if(_0x347e08==='before'||_0x347e08==='after')return _0x347e08;return undefined;}
@@ -1 +1 @@
1
- (function(_0x23b37e,_0x2ffd60){const _0x3739a0=a186_0x3a7e,_0x553740=_0x23b37e();while(!![]){try{const _0x3b94f4=-parseInt(_0x3739a0(0xf1))/0x1*(parseInt(_0x3739a0(0xf3))/0x2)+-parseInt(_0x3739a0(0xe9))/0x3*(parseInt(_0x3739a0(0xf9))/0x4)+-parseInt(_0x3739a0(0xee))/0x5+parseInt(_0x3739a0(0xfe))/0x6+parseInt(_0x3739a0(0xe8))/0x7*(parseInt(_0x3739a0(0xf7))/0x8)+parseInt(_0x3739a0(0xe7))/0x9+-parseInt(_0x3739a0(0xfc))/0xa*(-parseInt(_0x3739a0(0x100))/0xb);if(_0x3b94f4===_0x2ffd60)break;else _0x553740['push'](_0x553740['shift']());}catch(_0x144ee5){_0x553740['push'](_0x553740['shift']());}}}(a186_0x4ed4,0x2a36e));import{listDatasets}from'../core/api-client.js';function a186_0x3a7e(_0x247f1b,_0x52dd0c){_0x247f1b=_0x247f1b-0xe7;const _0x4ed45d=a186_0x4ed4();let _0x3a7e1c=_0x4ed45d[_0x247f1b];return _0x3a7e1c;}const cache=new Map();export async function listDatabases(_0x92fe31){const _0xe9a78f=a186_0x3a7e;if(cache[_0xe9a78f(0xef)](_0x92fe31))return cache[_0xe9a78f(0xeb)](_0x92fe31);const _0x58464e=await listDatasets(_0x92fe31),_0x5cbbb7=new Map();for(const _0x176ca0 of _0x58464e){const _0x2f9048=_0x176ca0[_0xe9a78f(0x103)];_0x2f9048?.[_0xe9a78f(0xfb)]!=null&&_0x5cbbb7[_0xe9a78f(0xfa)](_0x2f9048[_0xe9a78f(0xfb)],_0x2f9048[_0xe9a78f(0x106)]??_0xe9a78f(0xfd)+_0x2f9048[_0xe9a78f(0xfb)]);}const _0x6e829=[..._0x5cbbb7['entries']()][_0xe9a78f(0xff)](([_0x299d4b,_0x34723a])=>({'dbId':_0x299d4b,'dbName':_0x34723a}));return cache[_0xe9a78f(0xfa)](_0x92fe31,_0x6e829),_0x6e829;}export async function resolveDb(_0x236e83,_0x543917){const _0x5ac7e7=a186_0x3a7e,_0x38e504=await listDatabases(_0x236e83);if(_0x38e504['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x236e83+_0x5ac7e7(0xf8)};if(!_0x543917)return{'resolved':_0x38e504};const _0x3a49b8=Number(_0x543917);if(!Number[_0x5ac7e7(0xf5)](_0x3a49b8)){const _0x5e8c2e=_0x38e504[_0x5ac7e7(0xed)](_0x507339=>_0x507339[_0x5ac7e7(0xfb)]===_0x3a49b8);if(_0x5e8c2e)return{'resolved':[_0x5e8c2e]};}const _0xee9067=_0x543917['toLowerCase'](),_0x3e3929=_0x38e504[_0x5ac7e7(0xf4)](_0x1cec48=>_0x1cec48[_0x5ac7e7(0x106)][_0x5ac7e7(0xf6)]()[_0x5ac7e7(0xf0)](_0xee9067));if(_0x3e3929['length']>0x0)return{'resolved':_0x3e3929};const _0x23df24=_0x38e504['map'](_0x114375=>_0x114375['dbName']+'\x20('+_0x114375[_0x5ac7e7(0xfb)]+')')[_0x5ac7e7(0x105)](',\x20');return{'resolved':[],'error':_0x5ac7e7(0x101)+_0x543917+'\x22\x20under\x20app\x20\x22'+_0x236e83+_0x5ac7e7(0xec)+_0x23df24+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0xc1b434,_0x116187){const _0x1a82a4=a186_0x3a7e,{resolved:_0x10a65f,error:_0x49075e}=await resolveDb(_0xc1b434,_0x116187);if(_0x49075e)return{'db':null,'error':_0x49075e};if(_0x10a65f[_0x1a82a4(0xf2)]===0x1)return{'db':_0x10a65f[0x0]};if(!_0x116187){const _0x2d3d9a=_0x10a65f[_0x1a82a4(0xff)](_0x2a4164=>_0x2a4164['dbName']+'\x20('+_0x2a4164[_0x1a82a4(0xfb)]+')')['join'](',\x20');return{'db':null,'error':_0x1a82a4(0x104)+_0x2d3d9a};}const _0x594f7a=_0x10a65f['map'](_0x25fd96=>_0x25fd96[_0x1a82a4(0x106)]+'\x20('+_0x25fd96[_0x1a82a4(0xfb)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x116187+_0x1a82a4(0xea)+_0x594f7a+_0x1a82a4(0x102)};}function a186_0x4ed4(){const _0x49a9f3=['Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','join','dbName','1809405ZqCXXS','1974gulNds','281328JnMlbQ','\x22\x20matches\x20multiple\x20databases:\x20','get','\x22.\x20Available:\x20','find','1544270kYbrKk','has','includes','41hTJAvk','length','4794oFTpWb','filter','isNaN','toLowerCase','3832QHsJyt','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','4PrApCg','set','dbId','15090LNkTUH','db-','224418YPTbNX','map','2189KZLqJP','No\x20database\x20matching\x20\x22','.\x20Be\x20more\x20specific.','dbtableConfig'];a186_0x4ed4=function(){return _0x49a9f3;};return a186_0x4ed4();}export async function getDbName(_0x37412c,_0x20fbea){const _0x3c37ee=a186_0x3a7e,_0x83d598=await listDatabases(_0x37412c);return _0x83d598['find'](_0x5b09cc=>_0x5b09cc[_0x3c37ee(0xfb)]===_0x20fbea)?.[_0x3c37ee(0x106)];}
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_0x1db4(_0xaae2fa,_0x8c66b2){_0xaae2fa=_0xaae2fa-0x1d4;const _0x53f6b0=a187_0x53f6();let _0x1db494=_0x53f6b0[_0xaae2fa];return _0x1db494;}(function(_0x4e1a4f,_0x240e73){const _0x31489f=a187_0x1db4,_0x5559fa=_0x4e1a4f();while(!![]){try{const _0x2ef045=parseInt(_0x31489f(0x1d9))/0x1*(-parseInt(_0x31489f(0x1e0))/0x2)+parseInt(_0x31489f(0x1dc))/0x3*(-parseInt(_0x31489f(0x1e3))/0x4)+parseInt(_0x31489f(0x1dd))/0x5+parseInt(_0x31489f(0x1e4))/0x6*(-parseInt(_0x31489f(0x1d8))/0x7)+parseInt(_0x31489f(0x1d6))/0x8*(-parseInt(_0x31489f(0x1da))/0x9)+-parseInt(_0x31489f(0x1e1))/0xa+parseInt(_0x31489f(0x1db))/0xb;if(_0x2ef045===_0x240e73)break;else _0x5559fa['push'](_0x5559fa['shift']());}catch(_0x2f6c93){_0x5559fa['push'](_0x5559fa['shift']());}}}(a187_0x53f6,0x532c4));import{constants}from'node:fs';function a187_0x53f6(){const _0x12b7e4=['.json','3168EhLMJD','.rabetbase','286097gAQPRi','289075LVaLCP','360WaluWI','10889626xtMcJS','10383XMCYRg','1667715cCMcWu','page','toUpperCase','2JmzirL','694430BoJjQX','F_OK','656zYQRtk','6ZCsnoQ','appPagesDir'];a187_0x53f6=function(){return _0x12b7e4;};return a187_0x53f6();}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x4c4918,_0x5aba4d=process['cwd']()){const _0x8ed769=a187_0x1db4,_0x3755bd=resolve(_0x5aba4d),_0x117cb6=join(_0x3755bd,_0x8ed769(0x1d7),_0x8ed769(0x1de));return{'projectRoot':_0x3755bd,'pagesBaseDir':_0x117cb6,'appPagesDir':join(_0x117cb6,_0x4c4918),'lockFilePath':join(_0x3755bd,_0x8ed769(0x1d7),'page.lock.json')};}export function buildPageFileName(_0x4b2e28,_0x23a31f){const _0x2aea63=a187_0x1db4;return _0x4b2e28+'-'+String(_0x23a31f)[_0x2aea63(0x1df)]()+_0x2aea63(0x1d5);}export function resolvePageFilePath(_0x4451bf,_0x31327d,_0x435661){const _0x303cbf=a187_0x1db4;return join(_0x4451bf[_0x303cbf(0x1d4)],buildPageFileName(_0x31327d,_0x435661));}export async function ensureParentDirectory(_0x1f4ce3){await mkdir(dirname(_0x1f4ce3),{'recursive':!![]});}export async function fileExists(_0x59e8e9){const _0x16cbe6=a187_0x1db4;try{return await access(_0x59e8e9,constants[_0x16cbe6(0x1e2)]),!![];}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 a188_0x1a95(_0x58aceb,_0x561f49){_0x58aceb=_0x58aceb-0xac;const _0x3d57b3=a188_0x3d57();let _0x1a95f6=_0x3d57b3[_0x58aceb];return _0x1a95f6;}(function(_0x5b25e8,_0x3b8639){const _0x4068a4=a188_0x1a95,_0x4ad5ba=_0x5b25e8();while(!![]){try{const _0x3dacf9=-parseInt(_0x4068a4(0xb2))/0x1*(parseInt(_0x4068a4(0xaf))/0x2)+parseInt(_0x4068a4(0xb0))/0x3*(parseInt(_0x4068a4(0xb3))/0x4)+parseInt(_0x4068a4(0xb6))/0x5*(parseInt(_0x4068a4(0xbc))/0x6)+-parseInt(_0x4068a4(0xad))/0x7+parseInt(_0x4068a4(0xb4))/0x8*(parseInt(_0x4068a4(0xae))/0x9)+parseInt(_0x4068a4(0xbf))/0xa*(-parseInt(_0x4068a4(0xba))/0xb)+parseInt(_0x4068a4(0xbd))/0xc;if(_0x3dacf9===_0x3b8639)break;else _0x4ad5ba['push'](_0x4ad5ba['shift']());}catch(_0x15a68a){_0x4ad5ba['push'](_0x4ad5ba['shift']());}}}(a188_0x3d57,0x5b118));import a188_0x32e77e from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x1f952b){const _0x48a024=a188_0x1a95;return JSON[_0x48a024(0xbb)](JSON[_0x48a024(0xb9)](_0x1f952b),null,0x2)+'\x0a';}export function computePageContentHash(_0x34e57e){const _0x27832d=a188_0x1a95;return a188_0x32e77e[_0x27832d(0xb7)](_0x27832d(0xb1))[_0x27832d(0xb5)](_0x34e57e)[_0x27832d(0xac)](_0x27832d(0xb8));}function a188_0x3d57(){const _0x1a6e28=['3908DWmlBB','8XnzTJX','update','6660MuUVbe','createHash','hex','parse','22mjUcAS','stringify','2274MkpDuH','12214704ezdyHP','utf8','1844470PmkkLV','digest','5134010KlWXRD','3666249AxXBof','960286fIwUPx','78HUdieE','md5','1QNEIyQ'];a188_0x3d57=function(){return _0x1a6e28;};return a188_0x3d57();}export function computeSerializedSchemaHash(_0xaee12d){return computePageContentHash(serializePageSchemaForFile(_0xaee12d));}export async function computePageFileHash(_0x351d01){const _0x19e9f9=a188_0x1a95,_0x3e6199=await readFile(_0x351d01,_0x19e9f9(0xbe));return computePageContentHash(_0x3e6199);}
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(_0x1b2ccd,_0x1e124d){const _0x521043=a189_0x4f3b,_0xcff472=_0x1b2ccd();while(!![]){try{const _0x1985df=parseInt(_0x521043(0xd8))/0x1*(-parseInt(_0x521043(0xdd))/0x2)+-parseInt(_0x521043(0xe0))/0x3*(-parseInt(_0x521043(0xd2))/0x4)+parseInt(_0x521043(0xce))/0x5*(parseInt(_0x521043(0xcd))/0x6)+-parseInt(_0x521043(0xd5))/0x7*(-parseInt(_0x521043(0xd1))/0x8)+-parseInt(_0x521043(0xd0))/0x9+-parseInt(_0x521043(0xdc))/0xa*(parseInt(_0x521043(0xdb))/0xb)+parseInt(_0x521043(0xd6))/0xc*(parseInt(_0x521043(0xda))/0xd);if(_0x1985df===_0x1e124d)break;else _0xcff472['push'](_0xcff472['shift']());}catch(_0x2e1d1a){_0xcff472['push'](_0xcff472['shift']());}}}(a189_0x4dc4,0x8ae31));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a189_0x4f3b(_0xf03646,_0xc88c2a){_0xf03646=_0xf03646-0xcd;const _0x4dc481=a189_0x4dc4();let _0x4f3baa=_0x4dc481[_0xf03646];return _0x4f3baa;}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x16993d,_0x2ed6b1){const _0x1e4b87=a189_0x4f3b,_0x4afdd4={'apps':_0x16993d[_0x1e4b87(0xd9)]&&typeof _0x16993d[_0x1e4b87(0xd9)]==='object'?_0x16993d[_0x1e4b87(0xd9)]:{}};let _0x2e7669=_0x4afdd4[_0x1e4b87(0xd9)][_0x2ed6b1];if(!_0x2e7669)return _0x2e7669={'lastSync':'','pages':{}},_0x4afdd4['apps'][_0x2ed6b1]=_0x2e7669,{'lockData':_0x4afdd4,'appLock':_0x2e7669};return!_0x2e7669[_0x1e4b87(0xde)]&&(_0x2e7669['lastSync']=''),(!_0x2e7669[_0x1e4b87(0xd3)]||typeof _0x2e7669[_0x1e4b87(0xd3)]!==_0x1e4b87(0xd7))&&(_0x2e7669[_0x1e4b87(0xd3)]={}),{'lockData':_0x4afdd4,'appLock':_0x2e7669};}export async function readPageLockFile(_0xa2725f){const _0x9e8ef8=a189_0x4f3b;try{const _0x3c65d8=await readFile(_0xa2725f,_0x9e8ef8(0xcf)),_0x11ac23=JSON['parse'](_0x3c65d8);return{'apps':_0x11ac23[_0x9e8ef8(0xd9)]&&typeof _0x11ac23['apps']===_0x9e8ef8(0xd7)?_0x11ac23['apps']:{}};}catch(_0xba557){if(_0xba557['code']===_0x9e8ef8(0xd4))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0xba557));}}export async function writePageLockFile(_0x2dd28c,_0x4a5835){const _0x49a250=a189_0x4f3b;await mkdir(dirname(_0x2dd28c),{'recursive':!![]}),await writeFile(_0x2dd28c,JSON[_0x49a250(0xdf)](_0x4a5835,null,0x2),_0x49a250(0xcf));}function a189_0x4dc4(){const _0x370338=['2027WhOfwC','apps','13IaODCA','93929VepfDW','700HYkaWo','766InWavf','lastSync','stringify','439863EeAoEd','68898lKfRjx','235ZcuYfx','utf8','9937512MmUFtw','1336ELRFzH','12PjoSYz','pages','ENOENT','17129RqYYMS','19906884SxIRGW','object'];a189_0x4dc4=function(){return _0x370338;};return a189_0x4dc4();}
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_0x2d67fa=a191_0x578a;(function(_0x14348d,_0x4de3d4){const _0x270def=a191_0x578a,_0x4b0ecc=_0x14348d();while(!![]){try{const _0x21bd23=-parseInt(_0x270def(0xd7))/0x1*(-parseInt(_0x270def(0xd5))/0x2)+parseInt(_0x270def(0xd0))/0x3+-parseInt(_0x270def(0xd4))/0x4+-parseInt(_0x270def(0xd1))/0x5+parseInt(_0x270def(0xd6))/0x6+-parseInt(_0x270def(0xd2))/0x7+parseInt(_0x270def(0xd8))/0x8*(parseInt(_0x270def(0xd3))/0x9);if(_0x21bd23===_0x4de3d4)break;else _0x4b0ecc['push'](_0x4b0ecc['shift']());}catch(_0x5706d6){_0x4b0ecc['push'](_0x4b0ecc['shift']());}}}(a191_0x15ce,0xa2651));function a191_0x578a(_0x30784d,_0x1ac4e9){_0x30784d=_0x30784d-0xd0;const _0x15ce47=a191_0x15ce();let _0x578a51=_0x15ce47[_0x30784d];return _0x578a51;}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a191_0x2d67fa(0xdc),LOCK_FILE_NAME=a191_0x2d67fa(0xda),TRASH_DIR_NAME=a191_0x2d67fa(0xdb);export function loadSqlProjectConfig(_0x503aee,_0x39d1da){const _0x2331b9=a191_0x2d67fa,_0x1d680e=resolve(_0x39d1da??findProjectRootDirectory()),_0x824318=DOT_DIR+_0x2331b9(0xd9),_0x504fe8=_0x824318+'/'+_0x503aee;return{'projectRoot':_0x1d680e,'appCode':_0x503aee,'sqlWorkspaceRoot':_0x824318,'sqlRoot':_0x504fe8,'sqlRootDir':resolve(_0x1d680e,DOT_DIR,'sql',_0x503aee),'lockFilePath':resolve(_0x1d680e,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x1d680e,DOT_DIR,TRASH_DIR_NAME)};}function a191_0x15ce(){const _0x395325=['1325342otclmv','80892EfZQdp','1NTJbSh','16880104DngLNS','/sql','sql.lock.json','sql-trash','.rabetbase','554469QWUgML','2300240plcTky','6977621bcAHBD','9dILtxC','3395876fMklPa'];a191_0x15ce=function(){return _0x395325;};return a191_0x15ce();}
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(_0x3b965e,_0x33572f){const _0x2063b8=a192_0x312c,_0x2b1710=_0x3b965e();while(!![]){try{const _0x1422ce=parseInt(_0x2063b8(0xb0))/0x1+parseInt(_0x2063b8(0xc5))/0x2*(parseInt(_0x2063b8(0xae))/0x3)+parseInt(_0x2063b8(0xb4))/0x4*(-parseInt(_0x2063b8(0xc0))/0x5)+-parseInt(_0x2063b8(0xb1))/0x6*(parseInt(_0x2063b8(0xb5))/0x7)+-parseInt(_0x2063b8(0xbf))/0x8+-parseInt(_0x2063b8(0xbe))/0x9*(-parseInt(_0x2063b8(0xb6))/0xa)+parseInt(_0x2063b8(0xc6))/0xb;if(_0x1422ce===_0x33572f)break;else _0x2b1710['push'](_0x2b1710['shift']());}catch(_0xe19cda){_0x2b1710['push'](_0x2b1710['shift']());}}}(a192_0x3b44,0xc98fa));function a192_0x312c(_0x595679,_0x2f0093){_0x595679=_0x595679-0xad;const _0x3b4452=a192_0x3b44();let _0x312cf0=_0x3b4452[_0x595679];return _0x312cf0;}function a192_0x3b44(){const _0x159848=['5657315DiDVPM','push','toLowerCase','mode','sqlName','10YYYXRR','19830855bPsfIc','indexOf','filter','path','.sql','ENOENT','sql','slice','343074GGLyWX','sqlCode','777092IPoyZz','6OFNEjn','length','code','4OJVePm','6018663NaLIMR','20gTzWSf','sqlRootDir','replace','isDirectory','name','dbName','split','dbId','5443803caJruJ','12356440pbrVjE'];a192_0x3b44=function(){return _0x159848;};return a192_0x3b44();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x227af5){const _0x16b2e4=a192_0x312c;if(_0x227af5===_0x16b2e4(0xca))return _0x16b2e4(0xcc);if(_0x227af5==='.xml')return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x11a31f,_0x3e5c19){const _0x548b13=a192_0x312c,_0x339bb8=[];try{const _0x45394e=await readdir(_0x11a31f,{'withFileTypes':!![]});for(const _0x46abc8 of _0x45394e){const _0x48e78e=join(_0x11a31f,_0x46abc8['name']);if(_0x46abc8[_0x548b13(0xb9)]()){_0x339bb8[_0x548b13(0xc1)](...await scanSqlFilesRecursively(_0x48e78e,_0x3e5c19));continue;}if(!_0x46abc8['isFile']())continue;const _0x128abd=extname(_0x46abc8[_0x548b13(0xba)])[_0x548b13(0xc2)](),_0x5b8554=extensionToMode(_0x128abd);if(!_0x5b8554)continue;const _0x23fa2c=relative(_0x3e5c19,_0x48e78e)[_0x548b13(0xb8)](/\\/g,'/'),_0x2b3fd4=_0x23fa2c[_0x548b13(0xbc)]('/')[_0x548b13(0xc8)](Boolean),_0x25ccd1=parseSqlPath(_0x2b3fd4,_0x46abc8[_0x548b13(0xba)],_0x128abd);if(!_0x25ccd1)continue;_0x339bb8[_0x548b13(0xc1)]({'sqlCode':_0x25ccd1[_0x548b13(0xaf)],'sqlName':_0x25ccd1[_0x548b13(0xc4)],'dbDirectory':_0x2b3fd4[0x0],'filePath':_0x48e78e,'relativePath':_0x23fa2c,'lockKey':_0x25ccd1[_0x548b13(0xaf)],'mode':_0x5b8554});}}catch(_0x1f2bc4){if(_0x1f2bc4[_0x548b13(0xb3)]!==_0x548b13(0xcb))throw _0x1f2bc4;}return _0x339bb8;}export async function scanLocalSqlQueries(_0x5cc063){const _0x24670d=a192_0x312c;return scanSqlFilesRecursively(_0x5cc063[_0x24670d(0xb7)],_0x5cc063[_0x24670d(0xb7)]);}export function resolveLocalSqlFilePath(_0x1ad06b,_0x4b9740,_0x399bd4){const _0x38067d=a192_0x312c,_0x485386=_0x399bd4?.[_0x38067d(0xc9)]||(_0x399bd4?.[_0x38067d(0xc4)]||_0x399bd4?.[_0x38067d(0xbb)]?buildSqlRelativePath(_0x4b9740,_0x399bd4?.[_0x38067d(0xc4)],_0x399bd4?.[_0x38067d(0xbb)],_0x399bd4?.[_0x38067d(0xc3)]||_0x38067d(0xcc),_0x399bd4?.[_0x38067d(0xbd)]):buildDefaultSqlFileName(_0x4b9740,_0x399bd4?.[_0x38067d(0xc3)]||'sql'));return join(_0x1ad06b[_0x38067d(0xb7)],_0x485386);}export async function directoryExists(_0x554d8c){const _0x5a4906=a192_0x312c;try{const _0x1f20db=await stat(_0x554d8c);return _0x1f20db[_0x5a4906(0xb9)]();}catch{return![];}}function parseSqlPath(_0x52140b,_0x120754,_0x1c42b8){const _0x392444=a192_0x312c,_0x5c7c6c=_0x120754[_0x392444(0xad)](0x0,-_0x1c42b8[_0x392444(0xb2)]);if(_0x52140b[_0x392444(0xb2)]<0x2)return null;const _0x11003c=_0x5c7c6c[_0x392444(0xc7)]('_');if(_0x11003c<=0x0||_0x11003c>=_0x5c7c6c['length']-0x1)return null;const _0xcd884d=_0x5c7c6c['slice'](0x0,_0x11003c);if(!isLikelySqlCode(_0xcd884d))return null;return{'sqlCode':_0xcd884d,'sqlName':_0x5c7c6c[_0x392444(0xad)](_0x11003c+0x1)};}function isLikelySqlCode(_0x48c4ce){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x48c4ce);}
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 a193_0x4810(_0x4c9ab6,_0x26f6ca){_0x4c9ab6=_0x4c9ab6-0xe7;const _0x2508d=a193_0x2508();let _0x48109d=_0x2508d[_0x4c9ab6];return _0x48109d;}(function(_0x51da35,_0x2b193a){const _0x40b4b2=a193_0x4810,_0x9ba8b8=_0x51da35();while(!![]){try{const _0x4155cc=-parseInt(_0x40b4b2(0xf1))/0x1+parseInt(_0x40b4b2(0xee))/0x2+-parseInt(_0x40b4b2(0xef))/0x3+parseInt(_0x40b4b2(0xf2))/0x4*(parseInt(_0x40b4b2(0xf4))/0x5)+parseInt(_0x40b4b2(0xed))/0x6*(parseInt(_0x40b4b2(0xe7))/0x7)+parseInt(_0x40b4b2(0xe9))/0x8+-parseInt(_0x40b4b2(0xe8))/0x9;if(_0x4155cc===_0x2b193a)break;else _0x9ba8b8['push'](_0x9ba8b8['shift']());}catch(_0x1fb5cf){_0x9ba8b8['push'](_0x9ba8b8['shift']());}}}(a193_0x2508,0x9bdbc));import{readFile}from'node:fs/promises';import a193_0x32b33a from'node:crypto';export function computeSqlContentHash(_0x167e37){const _0xf74ce=a193_0x4810;return a193_0x32b33a[_0xf74ce(0xf0)](_0xf74ce(0xec))[_0xf74ce(0xf3)](_0x167e37)[_0xf74ce(0xf5)](_0xf74ce(0xea));}export async function computeSqlFileHash(_0x547914){const _0x4654a9=a193_0x4810,_0x3bce80=await readFile(_0x547914,_0x4654a9(0xeb));return computeSqlContentHash(_0x3bce80);}function a193_0x2508(){const _0x35cffc=['md5','1441212PMFvEw','802074ToJUFM','3353544jWEDlp','createHash','1036365SyFNzP','19828bHETNI','update','1285SkcCTr','digest','21TBAqlc','5266908BIYRqq','7857832YFtyum','hex','utf8'];a193_0x2508=function(){return _0x35cffc;};return a193_0x2508();}
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(_0x300b13,_0x2c0d3c){const _0x323dea=a194_0x2d8a,_0xce310d=_0x300b13();while(!![]){try{const _0x1b405b=parseInt(_0x323dea(0xf2))/0x1+-parseInt(_0x323dea(0xe6))/0x2*(parseInt(_0x323dea(0xec))/0x3)+-parseInt(_0x323dea(0xe5))/0x4*(parseInt(_0x323dea(0xeb))/0x5)+-parseInt(_0x323dea(0xed))/0x6*(parseInt(_0x323dea(0xf9))/0x7)+parseInt(_0x323dea(0xef))/0x8+parseInt(_0x323dea(0xf4))/0x9*(-parseInt(_0x323dea(0xf3))/0xa)+-parseInt(_0x323dea(0xf7))/0xb*(-parseInt(_0x323dea(0xf0))/0xc);if(_0x1b405b===_0x2c0d3c)break;else _0xce310d['push'](_0xce310d['shift']());}catch(_0x56aee6){_0xce310d['push'](_0xce310d['shift']());}}}(a194_0x5f07,0x7ec47));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a194_0x2d8a(_0x389be8,_0xc0a905){_0x389be8=_0x389be8-0xe5;const _0x5f0758=a194_0x5f07();let _0x2d8a94=_0x5f0758[_0x389be8];return _0x2d8a94;}function a194_0x5f07(){const _0x249c65=['sqlRoot','4500936IXsxlB','228jwobVM','parse','84484kMGPwr','33450tDlTIV','2475imBFSB','ENOENT','\x22\x20vs\x20lock\x20\x22','1382887adnvWD','stringify','5030165HfiSYL','apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','4HEpGxE','2hXxQJt','\x22.\x20','lastSync','sqls','utf8','2539060etFzdm','1110609ofGIan','6fTwXMf'];a194_0x5f07=function(){return _0x249c65;};return a194_0x5f07();}export function ensureSqlLockScope(_0x46abf8,_0x164e32,_0x382864,_0x4d5a13){const _0x526d7a=a194_0x2d8a,_0x155df3=_0x46abf8??createEmptySqlLock();let _0x3989be=_0x155df3[_0x526d7a(0xfa)][_0x164e32];if(!_0x3989be)return _0x3989be={'sqlRoot':_0x382864,'lastSync':'','sqls':{}},_0x155df3[_0x526d7a(0xfa)][_0x164e32]=_0x3989be,{'lockData':_0x155df3,'appLock':_0x3989be};if(!_0x3989be[_0x526d7a(0xee)])_0x3989be[_0x526d7a(0xee)]=_0x382864;else{if(_0x3989be[_0x526d7a(0xee)]!==_0x382864)throw new Error(_0x4d5a13+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x382864+_0x526d7a(0xf6)+_0x3989be['sqlRoot']+_0x526d7a(0xe7)+_0x526d7a(0xfb));}return!_0x3989be['sqls']&&(_0x3989be[_0x526d7a(0xe9)]={}),!_0x3989be[_0x526d7a(0xe8)]&&(_0x3989be[_0x526d7a(0xe8)]=''),{'lockData':_0x155df3,'appLock':_0x3989be};}export async function readSqlLockFile(_0x4760d7){const _0x257ee8=a194_0x2d8a;try{const _0x158d7e=await readFile(_0x4760d7,'utf8');return JSON[_0x257ee8(0xf1)](_0x158d7e);}catch(_0x14d7a2){if(_0x14d7a2['code']===_0x257ee8(0xf5))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x14d7a2));}}export async function writeSqlLockFile(_0x3d7969,_0x48dee6){const _0x3081f5=a194_0x2d8a;await mkdir(dirname(_0x3d7969),{'recursive':!![]}),await writeFile(_0x3d7969,JSON[_0x3081f5(0xf8)](_0x48dee6,null,0x2),_0x3081f5(0xea));}
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(_0xf486e7,_0x3ee9ff){const _0x202cb2=a196_0x2d4b,_0x3b4d30=_0xf486e7();while(!![]){try{const _0x59e357=-parseInt(_0x202cb2(0x1d9))/0x1+-parseInt(_0x202cb2(0x1d8))/0x2*(parseInt(_0x202cb2(0x1d3))/0x3)+-parseInt(_0x202cb2(0x1cb))/0x4+parseInt(_0x202cb2(0x1dd))/0x5*(-parseInt(_0x202cb2(0x1da))/0x6)+-parseInt(_0x202cb2(0x1cf))/0x7*(parseInt(_0x202cb2(0x1d2))/0x8)+parseInt(_0x202cb2(0x1de))/0x9+parseInt(_0x202cb2(0x1d6))/0xa;if(_0x59e357===_0x3ee9ff)break;else _0x3b4d30['push'](_0x3b4d30['shift']());}catch(_0x33c9cc){_0x3b4d30['push'](_0x3b4d30['shift']());}}}(a196_0x1aa7,0xda850));function a196_0x1aa7(){const _0x4759bd=['trimStart','1585jsigWY','13872564usZAil','4304784LrawNB','unknown-db','replace','trim','5316899CjWzad','sql','unknown-sql','8SfrHyv','12Tgbxje','test','db-','40888100XnfMtD','mybatisXml','365844ibxmPX','1736589PZvwfc','8160IpTMAp','.xml'];a196_0x1aa7=function(){return _0x4759bd;};return a196_0x1aa7();}export function detectSqlMode(_0x21cef4){const _0x85fa7a=a196_0x2d4b,_0x512c41=_0x21cef4[_0x85fa7a(0x1dc)]();if(/^<(select|insert|update|delete)\b/i[_0x85fa7a(0x1d4)](_0x512c41))return _0x85fa7a(0x1d7);return _0x85fa7a(0x1d0);}export function getSqlFileExtension(_0x4c4263){const _0x192c29=a196_0x2d4b;return _0x4c4263===_0x192c29(0x1d7)?_0x192c29(0x1db):'.sql';}export function buildDefaultSqlFileName(_0x47bfea,_0x5956ce){return''+_0x47bfea+getSqlFileExtension(_0x5956ce);}function a196_0x2d4b(_0x17a2c6,_0x3f9c84){_0x17a2c6=_0x17a2c6-0x1cb;const _0x1aa75d=a196_0x1aa7();let _0x2d4b39=_0x1aa75d[_0x17a2c6];return _0x2d4b39;}export function sanitizeSqlPathSegment(_0xa158f4,_0x5f2f98){const _0x277419=a196_0x2d4b,_0x1dd0a7=String(_0xa158f4??'')[_0x277419(0x1ce)](),_0x4ebf92=_0x1dd0a7['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x277419(0x1cd)](/\s+/g,'-')[_0x277419(0x1cd)](/-+/g,'-')[_0x277419(0x1cd)](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')[_0x277419(0x1cd)](/-+$/,'');return _0x4ebf92||_0x5f2f98;}export function buildDbDirectoryName(_0x486a19,_0xd22f2a){const _0x31c445=a196_0x2d4b;return sanitizeSqlPathSegment(_0x486a19,_0xd22f2a!=null?_0x31c445(0x1d5)+_0xd22f2a:_0x31c445(0x1cc));}export function buildSqlRelativePath(_0x3ab539,_0x4f612c,_0x28c262,_0x262c18,_0x523a81){const _0x311bd8=a196_0x2d4b,_0x506c2b=buildDbDirectoryName(_0x28c262,_0x523a81),_0x35ebaf=sanitizeSqlPathSegment(_0x3ab539,_0x311bd8(0x1d1)),_0x4d6c91=sanitizeSqlPathSegment(_0x4f612c,_0x35ebaf);return _0x506c2b+'/'+_0x35ebaf+'_'+_0x4d6c91+getSqlFileExtension(_0x262c18);}
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 a197_0x3e72(){const _0x1234d5=['5915245iQixOq','push','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','startsWith','232DmkOcf','3578895DXMYtn','add','unknown\x20table(s)','from','isDangerous','566082BzqXzu','trim','777628ixxXJw','\x20query\x20targeting\x20','UPDATE','5957736AGLVVy','WITH','DELETE','type','INSERT','includes','934696UVdMvS','SELECT','toUpperCase','6OrLsUB','reason','UNKNOWN','3235qWhXxg','test','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','split','length','matchAll','replace','match','SQL\x20content\x20is\x20empty','join'];a197_0x3e72=function(){return _0x1234d5;};return a197_0x3e72();}function a197_0x2258(_0x58d5b7,_0x11d711){_0x58d5b7=_0x58d5b7-0x1d5;const _0x3e7248=a197_0x3e72();let _0x22586c=_0x3e7248[_0x58d5b7];return _0x22586c;}(function(_0x3e5183,_0x4bd7ed){const _0x2369a1=a197_0x2258,_0x1e5b68=_0x3e5183();while(!![]){try{const _0x368519=-parseInt(_0x2369a1(0x1f6))/0x1+parseInt(_0x2369a1(0x1d9))/0x2*(parseInt(_0x2369a1(0x1dc))/0x3)+parseInt(_0x2369a1(0x1ee))/0x4*(parseInt(_0x2369a1(0x1df))/0x5)+parseInt(_0x2369a1(0x1f4))/0x6+-parseInt(_0x2369a1(0x1e9))/0x7+parseInt(_0x2369a1(0x1f9))/0x8+parseInt(_0x2369a1(0x1ef))/0x9;if(_0x368519===_0x4bd7ed)break;else _0x1e5b68['push'](_0x1e5b68['shift']());}catch(_0x5df409){_0x1e5b68['push'](_0x1e5b68['shift']());}}}(a197_0x3e72,0x8f226));export function detectSqlType(_0x33fd37){const _0xe034f=a197_0x2258;if(!_0x33fd37?.[_0xe034f(0x1f5)]())return{'type':_0xe034f(0x1de),'isSelectOnly':![],'isDangerous':![],'reason':_0xe034f(0x1e7)};const _0x426b30=_0x33fd37['replace'](/#\{[^}]*\}/g,'?')[_0xe034f(0x1e5)](/\$\{[^}]*\}/g,'?')[_0xe034f(0x1e5)](/@[^(\s]+(\([^)]*\))?/g,'')[_0xe034f(0x1e5)](/\/\*[\s\S]*?\*\//g,'')[_0xe034f(0x1f5)](),_0x23e048=_0x426b30[_0xe034f(0x1e2)]('\x0a');let _0x3e28a9='';for(const _0x10d0a6 of _0x23e048){const _0x380d1f=_0x10d0a6['trim']();if(!_0x380d1f||_0x380d1f[_0xe034f(0x1ed)]('--')||_0x380d1f[_0xe034f(0x1ed)]('/*'))continue;_0x3e28a9=_0x380d1f;break;}const _0x372f6a=_0x3e28a9[_0xe034f(0x1db)]();if(_0x372f6a[_0xe034f(0x1ed)](_0xe034f(0x1da))||_0x372f6a[_0xe034f(0x1ed)](_0xe034f(0x1fa))){const _0x1e0a83=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0xe034f(0x1e0)](_0x426b30);return{'type':_0xe034f(0x1da),'isSelectOnly':!_0x1e0a83,'isDangerous':_0x1e0a83,'reason':_0x1e0a83?_0xe034f(0x1e1):undefined};}if(_0x372f6a[_0xe034f(0x1ed)](_0xe034f(0x1d7)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x372f6a['startsWith'](_0xe034f(0x1f8)))return{'type':_0xe034f(0x1f8),'isSelectOnly':![],'isDangerous':![]};if(_0x372f6a['startsWith'](_0xe034f(0x1d5)))return{'type':_0xe034f(0x1d5),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0xe034f(0x1e0)](_0x372f6a))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0xe034f(0x1de),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x24c3fa){const _0x40b5af=a197_0x2258,_0x247e2d=_0x24c3fa[_0x40b5af(0x1e5)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x40b5af(0x1e5)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x40b5af(0x1e5)](/\/\*[\s\S]*?\*\//g,''),_0x1e6c20=[],_0x57d9e7=_0x247e2d[_0x40b5af(0x1e6)](/FROM\s+([^\s,)(]+)/i);if(_0x57d9e7?.[0x1])_0x1e6c20[_0x40b5af(0x1ea)](_0x57d9e7[0x1][_0x40b5af(0x1e5)](/[`"]/g,''));for(const _0x502418 of _0x247e2d[_0x40b5af(0x1e4)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x18605c=_0x502418[0x1]?.['replace'](/[`"]/g,'');if(_0x18605c&&!_0x1e6c20[_0x40b5af(0x1d8)](_0x18605c))_0x1e6c20[_0x40b5af(0x1ea)](_0x18605c);}const _0x4d56e9=_0x247e2d[_0x40b5af(0x1e6)](/INTO\s+([^\s(]+)/i);if(_0x4d56e9?.[0x1]){const _0x3a369c=_0x4d56e9[0x1]['replace'](/[`"]/g,'');if(!_0x1e6c20['includes'](_0x3a369c))_0x1e6c20['push'](_0x3a369c);}const _0x57ec2c=_0x247e2d['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x57ec2c?.[0x1]){const _0x51ad89=_0x57ec2c[0x1][_0x40b5af(0x1e5)](/[`"]/g,'');if(!_0x1e6c20[_0x40b5af(0x1d8)](_0x51ad89))_0x1e6c20['push'](_0x51ad89);}return _0x1e6c20;}function extractParameters(_0x43f8c){const _0x96096a=a197_0x2258,_0x24b0c5=new Set();for(const _0xdce47c of _0x43f8c['matchAll'](/#\{(\w+)\}/g))if(_0xdce47c[0x1])_0x24b0c5[_0x96096a(0x1f0)](_0xdce47c[0x1]);for(const _0x8d5cf7 of _0x43f8c[_0x96096a(0x1e4)](/\$\{(\w+)\}/g))if(_0x8d5cf7[0x1])_0x24b0c5[_0x96096a(0x1f0)](_0x8d5cf7[0x1]);return Array[_0x96096a(0x1f2)](_0x24b0c5);}export function validateSql(_0x57bd68){const _0x3f5438=a197_0x2258,_0x58ec12=detectSqlType(_0x57bd68),_0x1c1e34=extractTables(_0x57bd68),_0x15e717=extractParameters(_0x57bd68);if(_0x58ec12[_0x3f5438(0x1f3)])return{'valid':![],'sqlType':_0x58ec12,'tables':_0x1c1e34,'parameters':_0x15e717,'message':_0x58ec12[_0x3f5438(0x1dd)]||_0x58ec12[_0x3f5438(0x1d6)]+_0x3f5438(0x1ec)};if(_0x58ec12[_0x3f5438(0x1d6)]==='UNKNOWN')return{'valid':![],'sqlType':_0x58ec12,'tables':_0x1c1e34,'parameters':_0x15e717,'message':_0x3f5438(0x1eb)};return{'valid':!![],'sqlType':_0x58ec12,'tables':_0x1c1e34,'parameters':_0x15e717,'message':_0x58ec12[_0x3f5438(0x1d6)]+_0x3f5438(0x1f7)+(_0x1c1e34[_0x3f5438(0x1e3)]?_0x1c1e34[_0x3f5438(0x1e8)](',\x20'):_0x3f5438(0x1f1))+(_0x15e717[_0x3f5438(0x1e3)]?'\x20with\x20parameters:\x20'+_0x15e717[_0x3f5438(0x1e8)](',\x20'):'')};}
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_0x50675e=a198_0x2df5;(function(_0x4d6cd1,_0x1fb209){const _0x5cb864=a198_0x2df5,_0x587d67=_0x4d6cd1();while(!![]){try{const _0x195f52=-parseInt(_0x5cb864(0xbe))/0x1+-parseInt(_0x5cb864(0xca))/0x2+-parseInt(_0x5cb864(0xcc))/0x3*(parseInt(_0x5cb864(0xc0))/0x4)+parseInt(_0x5cb864(0xc5))/0x5*(-parseInt(_0x5cb864(0xc3))/0x6)+parseInt(_0x5cb864(0xc4))/0x7*(-parseInt(_0x5cb864(0xc1))/0x8)+parseInt(_0x5cb864(0xc6))/0x9+-parseInt(_0x5cb864(0xc2))/0xa*(-parseInt(_0x5cb864(0xbd))/0xb);if(_0x195f52===_0x1fb209)break;else _0x587d67['push'](_0x587d67['shift']());}catch(_0x24a850){_0x587d67['push'](_0x587d67['shift']());}}}(a198_0x539f,0xdd5e7));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_0x50675e(0xc9)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a198_0x50675e(0xc7)+CLI_BIN_NAME+a198_0x50675e(0xbf),a198_0x50675e(0xc8)+CLI_BIN_NAME+a198_0x50675e(0xbc)][a198_0x50675e(0xcb)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});function a198_0x2df5(_0x10eecf,_0x234f7d){_0x10eecf=_0x10eecf-0xbc;const _0x539f00=a198_0x539f();let _0x2df525=_0x539f00[_0x10eecf];return _0x2df525;}function a198_0x539f(){const _0x393729=['160XkyOeA','33326770wdsPEi','387360YDIAzv','453334SAFgGz','75EEogUE','15045930BeBtHD','Set\x20appcode\x20via\x20`','Tip:\x20`','Run\x20`','13362vZPgqK','join','2287797JbwIES','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','11jYyZkC','302201HhxfQU','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','8RAfwpu'];a198_0x539f=function(){return _0x393729;};return a198_0x539f();}
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(_0x1e98b3,_0x4b64bd){var _0x2469e6=a199_0x5b97,_0x3d1821=_0x1e98b3();while(!![]){try{var _0x143288=parseInt(_0x2469e6(0x1c3))/0x1*(parseInt(_0x2469e6(0x1c5))/0x2)+parseInt(_0x2469e6(0x1c4))/0x3*(parseInt(_0x2469e6(0x1ca))/0x4)+parseInt(_0x2469e6(0x1c7))/0x5+parseInt(_0x2469e6(0x1c2))/0x6*(-parseInt(_0x2469e6(0x1c0))/0x7)+parseInt(_0x2469e6(0x1c8))/0x8*(parseInt(_0x2469e6(0x1c6))/0x9)+-parseInt(_0x2469e6(0x1c9))/0xa*(parseInt(_0x2469e6(0x1c1))/0xb)+-parseInt(_0x2469e6(0x1bf))/0xc;if(_0x143288===_0x4b64bd)break;else _0x3d1821['push'](_0x3d1821['shift']());}catch(_0x197946){_0x3d1821['push'](_0x3d1821['shift']());}}}(a199_0x22bd,0xe72b3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a199_0x22bd(){var _0x59fe78=['4724144xXALQc','1817860hHviFD','1228YqqwZX','22846848bdBLeM','2055718pcfldc','22qPeHWd','12DQhZSC','2fHqRdY','9318bAdGEk','678966pljYLa','18GGXwtA','4940735fYvotY'];a199_0x22bd=function(){return _0x59fe78;};return a199_0x22bd();}function a199_0x5b97(_0x9b4571,_0x29533c){_0x9b4571=_0x9b4571-0x1bf;var _0x22bda2=a199_0x22bd();var _0x5b97a6=_0x22bda2[_0x9b4571];return _0x5b97a6;}import{buildAllFlags as a199_0x5e6b38}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1b50f0){return a199_0x5e6b38(_0x1b50f0,{'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_0xb0f072=a200_0x4457;(function(_0x522bb8,_0x14d6e7){const _0x1dc5b9=a200_0x4457,_0x1a5a5b=_0x522bb8();while(!![]){try{const _0x1d9168=parseInt(_0x1dc5b9(0x148))/0x1*(-parseInt(_0x1dc5b9(0x149))/0x2)+-parseInt(_0x1dc5b9(0x143))/0x3+-parseInt(_0x1dc5b9(0x144))/0x4*(parseInt(_0x1dc5b9(0x145))/0x5)+parseInt(_0x1dc5b9(0x14e))/0x6*(-parseInt(_0x1dc5b9(0x14b))/0x7)+-parseInt(_0x1dc5b9(0x146))/0x8*(-parseInt(_0x1dc5b9(0x14a))/0x9)+parseInt(_0x1dc5b9(0x147))/0xa+-parseInt(_0x1dc5b9(0x14d))/0xb*(-parseInt(_0x1dc5b9(0x14f))/0xc);if(_0x1d9168===_0x14d6e7)break;else _0x1a5a5b['push'](_0x1a5a5b['shift']());}catch(_0x53d322){_0x1a5a5b['push'](_0x1a5a5b['shift']());}}}(a200_0x852a,0x26170));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a200_0x4457(_0x7dc3e7,_0x2c3097){_0x7dc3e7=_0x7dc3e7-0x142;const _0x852a9d=a200_0x852a();let _0x445799=_0x852a9d[_0x7dc3e7];return _0x445799;}const helpers=createFlagHelpers(CliErrors);function a200_0x852a(){const _0x285fe4=['1987160fUsXgP','16CjGDvG','16286Sdpevo','99TUAINa','342671VSeTQT','validateFlags','4359322bbWXYA','24SLHzRJ','12VUWYcM','parseFlags','149811FlMFiU','205232cXsjhc','15shvHrB','66152LOHlLt'];a200_0x852a=function(){return _0x285fe4;};return a200_0x852a();}export const parseFlags=helpers[a200_0xb0f072(0x142)];export const validateFlags=helpers[a200_0xb0f072(0x14c)];
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_0x4196d9=a201_0x5dbf;(function(_0x59697b,_0x13ffef){const _0x8246a1=a201_0x5dbf,_0x1d7271=_0x59697b();while(!![]){try{const _0x421918=-parseInt(_0x8246a1(0x13b))/0x1*(parseInt(_0x8246a1(0x145))/0x2)+-parseInt(_0x8246a1(0x13d))/0x3+parseInt(_0x8246a1(0x144))/0x4*(parseInt(_0x8246a1(0x140))/0x5)+parseInt(_0x8246a1(0x142))/0x6+-parseInt(_0x8246a1(0x138))/0x7*(parseInt(_0x8246a1(0x143))/0x8)+-parseInt(_0x8246a1(0x139))/0x9+parseInt(_0x8246a1(0x13a))/0xa;if(_0x421918===_0x13ffef)break;else _0x1d7271['push'](_0x1d7271['shift']());}catch(_0x133bdc){_0x1d7271['push'](_0x1d7271['shift']());}}}(a201_0x523c,0xc7e5a));import{createHelpGenerators}from'@lovrabet/cli-framework';function a201_0x5dbf(_0xcb3e1,_0x4b0fa8){_0xcb3e1=_0xcb3e1-0x138;const _0x523cfb=a201_0x523c();let _0x5dbfbd=_0x523cfb[_0xcb3e1];return _0x5dbfbd;}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':_0x65a9f6=>serviceGroups['get'](_0x65a9f6),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x4196d9(0x141)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x3df817){const _0x5f46a3=a201_0x4196d9;return generators[_0x5f46a3(0x13e)](_0x3df817);}export const generateServiceHelp=generators[a201_0x4196d9(0x13c)];export const generateFullHelp=generators[a201_0x4196d9(0x13f)];function a201_0x523c(){const _0xce0f6e=['generateFullHelp','112940MinfHi','Requires\x20appcode\x20(set\x20via\x20`','9117498RQgFKZ','88POuDIj','172ZUSMcU','6dbGMbT','888944DMpacS','9116343zksTQg','27802760fwMwza','406201zfMLmu','generateServiceHelp','2471769AMybvA','generateCommandHelp'];a201_0x523c=function(){return _0xce0f6e;};return a201_0x523c();}
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(_0x91a9a2,_0x475d99){var _0x3218bf=a202_0x513c,_0xa61ccb=_0x91a9a2();while(!![]){try{var _0xfda188=-parseInt(_0x3218bf(0x139))/0x1+-parseInt(_0x3218bf(0x141))/0x2+parseInt(_0x3218bf(0x13a))/0x3+parseInt(_0x3218bf(0x140))/0x4+parseInt(_0x3218bf(0x13e))/0x5+parseInt(_0x3218bf(0x13b))/0x6*(parseInt(_0x3218bf(0x13f))/0x7)+-parseInt(_0x3218bf(0x13c))/0x8*(parseInt(_0x3218bf(0x13d))/0x9);if(_0xfda188===_0x475d99)break;else _0xa61ccb['push'](_0xa61ccb['shift']());}catch(_0x276c31){_0xa61ccb['push'](_0xa61ccb['shift']());}}}(a202_0x5959,0x84fa1));function a202_0x5959(){var _0x2eb8a9=['2761100Pkvnac','4334729DXUAqf','2274248TMiYoL','1102086XtgLtI','319365pjhlkN','796719ypudCn','6XjwxpU','26392QvjbDZ','1611Nxzgrt'];a202_0x5959=function(){return _0x2eb8a9;};return a202_0x5959();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a202_0x513c(_0x313925,_0x27a447){_0x313925=_0x313925-0x139;var _0x59593c=a202_0x5959();var _0x513c3b=_0x59593c[_0x313925];return _0x513c3b;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
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(_0x50e2b4,_0x103461){const _0xe4073a=a203_0x27d7,_0x495250=_0x50e2b4();while(!![]){try{const _0x186c97=parseInt(_0xe4073a(0xff))/0x1+-parseInt(_0xe4073a(0x105))/0x2*(parseInt(_0xe4073a(0x100))/0x3)+parseInt(_0xe4073a(0xf8))/0x4+-parseInt(_0xe4073a(0xf9))/0x5*(parseInt(_0xe4073a(0x101))/0x6)+parseInt(_0xe4073a(0x104))/0x7+parseInt(_0xe4073a(0xfc))/0x8*(parseInt(_0xe4073a(0x103))/0x9)+-parseInt(_0xe4073a(0xfb))/0xa;if(_0x186c97===_0x103461)break;else _0x495250['push'](_0x495250['shift']());}catch(_0x40ad40){_0x495250['push'](_0x495250['shift']());}}}(a203_0xb9ab,0xd3cbf));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a203_0x27d7(_0x22e17d,_0x5ad9d9){_0x22e17d=_0x22e17d-0xf7;const _0xb9abdc=a203_0xb9ab();let _0x27d7b0=_0xb9abdc[_0x22e17d];return _0x27d7b0;}function a203_0xb9ab(){const _0x15e5c8=['format','pretty','904681pezaQQ','597BMaBhx','6LjvWBV','_notice','73323fLpTdt','9950808wzXKrJ','11348QotxDF','update','2255000NjvHHN','1476785DcVtae','message','13230560mfTNZQ','712SiSqNi'];a203_0xb9ab=function(){return _0x15e5c8;};return a203_0xb9ab();}export function formatOutput(_0x26dc52,_0x58710a){const _0x3c62ad=a203_0x27d7,_0x253972=_0x26dc52[_0x3c62ad(0x102)],{_notice:_0x2b9735,..._0xc4974e}=_0x26dc52;void _0x2b9735,baseFormatOutput(_0xc4974e,_0x58710a),_0x58710a[_0x3c62ad(0xfd)]===_0x3c62ad(0xfe)&&printPrettyNotice(_0x253972);}function printPrettyNotice(_0x30bc58){const _0x112d55=a203_0x27d7;if(!_0x30bc58?.[_0x112d55(0xf7)])return;console['error'](_0x30bc58[_0x112d55(0xf7)][_0x112d55(0xfa)]+'\x20('+_0x30bc58['update']['url']+')');}
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_0x4c46(_0x458cbb,_0x2e4ebd){_0x458cbb=_0x458cbb-0x1c6;var _0x16ec6b=a204_0x16ec();var _0x4c469b=_0x16ec6b[_0x458cbb];return _0x4c469b;}(function(_0x28c04c,_0x5b3ef1){var _0x7b0cf6=a204_0x4c46,_0x5abfbf=_0x28c04c();while(!![]){try{var _0x5419c6=parseInt(_0x7b0cf6(0x1ca))/0x1*(parseInt(_0x7b0cf6(0x1cd))/0x2)+-parseInt(_0x7b0cf6(0x1c8))/0x3*(-parseInt(_0x7b0cf6(0x1c6))/0x4)+-parseInt(_0x7b0cf6(0x1c7))/0x5+-parseInt(_0x7b0cf6(0x1c9))/0x6+parseInt(_0x7b0cf6(0x1cb))/0x7*(parseInt(_0x7b0cf6(0x1cc))/0x8)+parseInt(_0x7b0cf6(0x1ce))/0x9+-parseInt(_0x7b0cf6(0x1cf))/0xa;if(_0x5419c6===_0x5b3ef1)break;else _0x5abfbf['push'](_0x5abfbf['shift']());}catch(_0x41d8ba){_0x5abfbf['push'](_0x5abfbf['shift']());}}}(a204_0x16ec,0x5b1ce));function a204_0x16ec(){var _0x1756bb=['676069BTqRtm','3731350AyOMmb','8iopYKp','2BZTsjr','4817808RMwBbg','410710nVXXxc','4MxEfnT','3388140mwxsKx','33942OnXEfe','3983088ZkwEmh'];a204_0x16ec=function(){return _0x1756bb;};return a204_0x16ec();}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(_0x1fc069,_0x29c1b9){const _0x287da1=a205_0x358f,_0x1a46e9=_0x1fc069();while(!![]){try{const _0x53d532=-parseInt(_0x287da1(0x1fb))/0x1*(-parseInt(_0x287da1(0x1f6))/0x2)+-parseInt(_0x287da1(0x1f7))/0x3+-parseInt(_0x287da1(0x1f1))/0x4+-parseInt(_0x287da1(0x1ff))/0x5+parseInt(_0x287da1(0x1eb))/0x6+parseInt(_0x287da1(0x1fa))/0x7*(-parseInt(_0x287da1(0x1ee))/0x8)+parseInt(_0x287da1(0x1ea))/0x9*(parseInt(_0x287da1(0x1f8))/0xa);if(_0x53d532===_0x29c1b9)break;else _0x1a46e9['push'](_0x1a46e9['shift']());}catch(_0x5d399b){_0x1a46e9['push'](_0x1a46e9['shift']());}}}(a205_0x32ac,0x20a4b));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a205_0x358f(_0x190c62,_0x3469f8){_0x190c62=_0x190c62-0x1ea;const _0x32ac4f=a205_0x32ac();let _0x358f75=_0x32ac4f[_0x190c62];return _0x358f75;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x28233b,_0x3f6e27,_0x134f09,_0x79b739){const _0x4da1dd=a205_0x358f,_0x15ce11=_0x28233b[_0x4da1dd(0x1f4)]['some'](_0x56e799=>_0x56e799['name']===_0x4da1dd(0x1fe)&&_0x56e799['type']==='string'),_0xb8bbe0=_0x28233b[_0x4da1dd(0x1f4)]['some'](_0x16b035=>_0x16b035[_0x4da1dd(0x1fd)]===_0x4da1dd(0x1ec)&&_0x16b035[_0x4da1dd(0x1fc)]==='string');if(!_0x15ce11||!_0xb8bbe0)return;const _0x31f8c5=_0x3f6e27['code']?String(_0x3f6e27[_0x4da1dd(0x1fe)]):'',_0x10bc1b=_0x3f6e27['alias']?String(_0x3f6e27[_0x4da1dd(0x1ec)]):'';if(!_0x31f8c5&&!_0x10bc1b)throw CliErrors['validation']('`'+_0x79b739+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x10bc1b&&!_0x31f8c5){const _0x3fbc0e=resolveAlias(_0x134f09,_0x10bc1b);if(!_0x3fbc0e){const _0x53a16f=listAliases(_0x134f09)[_0x4da1dd(0x1f9)](_0x564758=>_0x564758[_0x4da1dd(0x1ec)]),_0x18b7d0=_0x53a16f[_0x4da1dd(0x1f5)]?'Available\x20aliases:\x20'+_0x53a16f[_0x4da1dd(0x1ef)](',\x20'):_0x4da1dd(0x1ed)+_0x134f09+'.\x20Run\x20`'+CLI_BIN_NAME+_0x4da1dd(0x1f0);throw CliErrors[_0x4da1dd(0x1f3)](_0x4da1dd(0x1f2)+_0x10bc1b+'\x22.\x20'+_0x18b7d0);}_0x3f6e27[_0x4da1dd(0x1fe)]=_0x3fbc0e;}}function a205_0x32ac(){const _0x5f0bef=['validation','flags','length','429162DxPWSx','295881NEFSer','10JXOCjj','map','225127wqcdPs','1PDKXKj','type','name','code','164115GuSgDD','741492CGkkSD','490080BmcPBV','alias','No\x20api.ts\x20found\x20in\x20','24aZUnbr','join','\x20api\x20pull`\x20first.','68036QAmzIH','Unknown\x20alias\x20\x22'];a205_0x32ac=function(){return _0x5f0bef;};return a205_0x32ac();}
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_0x9475bf=a206_0xdf3a;function a206_0xdf3a(_0x2293b0,_0x17c02b){_0x2293b0=_0x2293b0-0x18d;const _0x42c661=a206_0x42c6();let _0xdf3add=_0x42c661[_0x2293b0];return _0xdf3add;}function a206_0x42c6(){const _0x10afe0=['explicitAppName','resolve','pretty','../core/api-client.js','_notice','1666012DWykfH','value','string','format','1076rkiIxA','configMissing','4845650EdlWLj','5Bsrska','Current\x20resolved\x20appcode\x20is\x20\x22','map','required','schema','36gjBflL','catch','validation','mergedCli','command','doctor','resolveApiDomain','name','has','pageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','defaultPageSize','LOVRABET_APPCODE','5235111AUuyid','requiresAppCode','nonInteractive','currentApp','verbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','381623zSjCHJ','cookie','appCode','rawFlags','1gOAhtr','none','defaultApp','1018840CvsmxH','service','selectedAppName','5148516YDSZsB','High-risk\x20operation\x20`','object','\x20\x20\x20Continue?\x20[y/N]\x20','appcode','resolveAppCode','update','9zVsBma','filter','riskLevel','6471VchgGE','execute','RABETBASE_APPCODE','hasFormat'];a206_0x42c6=function(){return _0x10afe0;};return a206_0x42c6();}(function(_0x26a9ac,_0xac722c){const _0x1e52c1=a206_0xdf3a,_0x36d16f=_0x26a9ac();while(!![]){try{const _0x40e380=-parseInt(_0x1e52c1(0x198))/0x1*(-parseInt(_0x1e52c1(0x1b1))/0x2)+parseInt(_0x1e52c1(0x1a8))/0x3*(-parseInt(_0x1e52c1(0x1b5))/0x4)+parseInt(_0x1e52c1(0x1b8))/0x5*(-parseInt(_0x1e52c1(0x19e))/0x6)+parseInt(_0x1e52c1(0x18e))/0x7+parseInt(_0x1e52c1(0x19b))/0x8*(-parseInt(_0x1e52c1(0x1a5))/0x9)+parseInt(_0x1e52c1(0x1b7))/0xa+-parseInt(_0x1e52c1(0x194))/0xb*(-parseInt(_0x1e52c1(0x1bd))/0xc);if(_0x40e380===_0xac722c)break;else _0x36d16f['push'](_0x36d16f['shift']());}catch(_0x2608e5){_0x36d16f['push'](_0x36d16f['shift']());}}}(a206_0x42c6,0x936c9));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_0x33699e}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1156a1){const _0x3183cd=a206_0xdf3a;return typeof _0x1156a1===_0x3183cd(0x1b3)&&_0x1156a1['trim']()?_0x1156a1['trim']():undefined;}function resolveEnvAppCode(){const _0x5cc1b0=a206_0xdf3a,_0x2a5f53=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2a5f53)return{'name':_0x5cc1b0(0x1aa),'value':_0x2a5f53};const _0x577c9a=stringFlag(process.env.LOVRABET_APPCODE);if(_0x577c9a)return{'name':_0x5cc1b0(0x18d),'value':_0x577c9a};return undefined;}function hasExplicitAppCode(_0x13b843,_0x4c9791){const _0x58a3f7=a206_0xdf3a;return!!(stringFlag(_0x13b843[_0x58a3f7(0x1a2)])||stringFlag(_0x4c9791[_0x58a3f7(0x1a2)]));}function assertEnvAppCodeNotIgnored(_0x135775,_0x171382,_0x3b193e){const _0x5dcf86=a206_0xdf3a;if(!_0x171382||_0x3b193e||_0x135775===_0x171382[_0x5dcf86(0x1b2)])return;const _0xd65bfa=_0x135775?_0x5dcf86(0x1b9)+_0x135775+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x5dcf86(0x1bf)](_0x171382[_0x5dcf86(0x1c4)]+'='+_0x171382[_0x5dcf86(0x1b2)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0xd65bfa+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x171382[_0x5dcf86(0x1c4)]+'\x22.'));}export function createPipelineEnv(_0xe8c7a3,_0x3ae895,_0x265a50=[]){const _0x25376f=a206_0xdf3a;return{'rawFlags':_0x3ae895,'args':_0x265a50,'resolveAppCode':()=>_0xe8c7a3[_0x25376f(0x196)],'resolveCookie':()=>_0xe8c7a3[_0x25376f(0x195)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x33699e(_0x3ae895),'defaultFormat':_0xe8c7a3['format'],'defaultPageSize':_0xe8c7a3[_0x25376f(0x1c6)],'defaultVerbose':_0xe8c7a3[_0x25376f(0x192)],'apiDir':_0xe8c7a3['apiDir'],'riskLevel':_0xe8c7a3[_0x25376f(0x1a7)],'selectedAppName':_0xe8c7a3[_0x25376f(0x1ac)],'mergedCli':{'defaultApp':_0xe8c7a3[_0x25376f(0x19a)],'currentApp':_0xe8c7a3[_0x25376f(0x191)],'appCode':_0xe8c7a3['appCode'],'apps':_0xe8c7a3['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a206_0x9475bf(0x1a6)](_0xa8a224=>PIPELINE_FLAG_NAMES[a206_0x9475bf(0x1c5)](_0xa8a224[a206_0x9475bf(0x1c4)]))[a206_0x9475bf(0x1ba)](({name:_0x235f6c,type:_0x18bfb5,description:_0x5de592})=>({'name':_0x235f6c,'type':_0x18bfb5,'description':_0x5de592})),'formatOutput':formatOutput,'getCommandLabel'(_0x53e56a){const _0x1864e9=a206_0x9475bf;return CLI_BIN_NAME+'\x20'+_0x53e56a[_0x1864e9(0x19c)]+'\x20'+_0x53e56a[_0x1864e9(0x1c1)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2d1002){const _0xd1eddf=a206_0x9475bf;return CliErrors[_0xd1eddf(0x1bf)](_0x2d1002);}},async 'prepare'(_0x1059ed,_0x10290e,_0x205832,_0x498b1e){const _0x93e938=a206_0x9475bf,_0x59fbf3=_0x10290e['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1059ed,_0x205832,_0x59fbf3,_0x498b1e);const _0x3f995a=resolveCommandAuthMode(_0x1059ed);let _0x1ed69='';if(_0x3f995a!==_0x93e938(0x199)){_0x1ed69=_0x10290e['resolveCookie']()||'';if(!_0x1ed69){if(_0x3f995a===_0x93e938(0x1bb))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x42d9ce}=await import(_0x93e938(0x1af));_0x42d9ce(_0x1ed69);}}const _0x27a69b=_0x10290e[_0x93e938(0x1a3)]()??'';if(_0x1059ed[_0x93e938(0x18f)]!==![]){assertEnvAppCodeNotIgnored(_0x27a69b,resolveEnvAppCode(),hasExplicitAppCode(_0x205832,_0x10290e[_0x93e938(0x197)]));if(!_0x27a69b)throw CliErrors[_0x93e938(0x1b6)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x93e938(0x1c7));}return{'defaults':{'booleans':{'verbose':_0x10290e['defaultVerbose']},'numbers':{'pagesize':_0x10290e[_0x93e938(0x1c8)]}},'extras':{'appCode':_0x27a69b,'cookie':_0x1ed69,'apiDomain':_0x10290e[_0x93e938(0x1c3)](),'apiDir':_0x59fbf3,'selectedAppName':_0x10290e[_0x93e938(0x19d)],'mergedCli':_0x10290e[_0x93e938(0x1c0)]}};},async 'confirmHighRisk'({env:_0xefd70c,commandLabel:_0x4be3fb}){const _0x433313=a206_0x9475bf;if(_0xefd70c['isNonInteractive'])throw CliErrors[_0x433313(0x1bf)](_0x433313(0x19f)+_0x4be3fb+_0x433313(0x193));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x4be3fb,_0x433313(0x1a1)],'createCancelledError':_0x354888=>CliErrors['cancelled'](_0x354888)});},async 'finalize'(){const {clearActiveCookie:_0x19b0d5}=await import('../core/api-client.js');_0x19b0d5();}};export async function runCommand(_0x191a5c,_0x404918){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x191a5c)?withUpdateNotice(_0x191a5c):_0x191a5c,_0x404918,runnerAdapter);}function shouldAttachUpdateNotice(_0x4a00aa){const _0x724840=a206_0x9475bf;if(_0x4a00aa[_0x724840(0x1ab)]===![])return![];return![_0x724840(0x1a4),_0x724840(0x1bc),_0x724840(0x1c2)]['includes'](_0x4a00aa[_0x724840(0x19c)]);}function withUpdateNotice(_0x4dbe5f){return{..._0x4dbe5f,async 'execute'(_0x138d7a){const _0x530897=a206_0xdf3a,_0x412238=shouldResolveUpdateNotice(_0x138d7a)?resolveLatestUpdateNotice()[_0x530897(0x1be)](()=>null):Promise[_0x530897(0x1ad)](null),_0xd47e8a=await _0x4dbe5f[_0x530897(0x1a9)](_0x138d7a);return attachUpdateNotice(_0xd47e8a,await _0x412238);}};}function shouldResolveUpdateNotice(_0x5f061a){const _0x207c95=a206_0x9475bf;return _0x5f061a[_0x207c95(0x1b4)]===_0x207c95(0x1ae)&&!_0x5f061a[_0x207c95(0x190)];}function attachUpdateNotice(_0x230af2,_0x4b6eff){const _0x19fc05=a206_0x9475bf;if(!_0x4b6eff||!_0x230af2||typeof _0x230af2!==_0x19fc05(0x1a0))return _0x230af2;const _0x47bc1b=_0x230af2,_0x2b9cad=typeof _0x47bc1b[_0x19fc05(0x1b0)]==='object'&&_0x47bc1b[_0x19fc05(0x1b0)]!==null?_0x47bc1b[_0x19fc05(0x1b0)]:{};return{..._0x47bc1b,'_notice':{..._0x2b9cad,'update':_0x4b6eff}};}
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_0x48b9(_0x500493,_0x4cf869){_0x500493=_0x500493-0xbf;const _0xf67216=a207_0xf672();let _0x48b94c=_0xf67216[_0x500493];return _0x48b94c;}(function(_0x33fcd7,_0x1560ca){const _0x586e48=a207_0x48b9,_0x120fe3=_0x33fcd7();while(!![]){try{const _0x50e7e0=-parseInt(_0x586e48(0xc4))/0x1+-parseInt(_0x586e48(0xc8))/0x2*(-parseInt(_0x586e48(0xc5))/0x3)+parseInt(_0x586e48(0xbf))/0x4*(-parseInt(_0x586e48(0xc1))/0x5)+parseInt(_0x586e48(0xc2))/0x6+-parseInt(_0x586e48(0xc0))/0x7*(parseInt(_0x586e48(0xc6))/0x8)+parseInt(_0x586e48(0xc9))/0x9*(parseInt(_0x586e48(0xc3))/0xa)+parseInt(_0x586e48(0xc7))/0xb;if(_0x50e7e0===_0x1560ca)break;else _0x120fe3['push'](_0x120fe3['shift']());}catch(_0x55b5ed){_0x120fe3['push'](_0x120fe3['shift']());}}}(a207_0xf672,0x854b4));function a207_0xf672(){const _0x12989d=['3141551ljvfbO','5SwJWtL','1116018LvxcLH','12130xtJxcI','77457NbKgDz','244077QnSXXE','16SpHDpq','10812120qaKzxU','4kFleuR','5112OrXgiq','1998440ZEZuMm'];a207_0xf672=function(){return _0x12989d;};return a207_0xf672();}import{buildSchemaPayload as a207_0x1ce34c}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 {serviceRegistry:_0x5659f7,findDefinition:_0x58febe}=await import('../commands/registry.js');return a207_0x1ce34c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5659f7,'buildAllFlags':buildAllFlags,'findDefinition':_0x58febe});}
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(_0x4fd185,_0x3883f3){var _0x118ea7=a208_0xc755,_0x2ef9f2=_0x4fd185();while(!![]){try{var _0x4320c9=-parseInt(_0x118ea7(0x153))/0x1*(-parseInt(_0x118ea7(0x155))/0x2)+-parseInt(_0x118ea7(0x157))/0x3+-parseInt(_0x118ea7(0x14f))/0x4*(-parseInt(_0x118ea7(0x154))/0x5)+parseInt(_0x118ea7(0x156))/0x6*(parseInt(_0x118ea7(0x14e))/0x7)+-parseInt(_0x118ea7(0x152))/0x8*(parseInt(_0x118ea7(0x14d))/0x9)+-parseInt(_0x118ea7(0x151))/0xa+-parseInt(_0x118ea7(0x150))/0xb;if(_0x4320c9===_0x3883f3)break;else _0x2ef9f2['push'](_0x2ef9f2['shift']());}catch(_0xd23251){_0x2ef9f2['push'](_0x2ef9f2['shift']());}}}(a208_0x57f4,0x78c15));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a208_0xc755(_0x4243f8,_0x4d7b8d){_0x4243f8=_0x4243f8-0x14d;var _0x57f465=a208_0x57f4();var _0xc755c4=_0x57f465[_0x4243f8];return _0xc755c4;}function a208_0x57f4(){var _0x430f4e=['15639OtLniY','2954565nTqcfQ','161763vQgLUA','63292bNCWvo','1356553iLhAQk','3300350ILzOZm','8fLBhCQ','206165wIuFWP','55SURhkM','2eXCLiB','234lzEOGN'];a208_0x57f4=function(){return _0x430f4e;};return a208_0x57f4();}
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_0x53bb60=a209_0x4741;function a209_0x4741(_0x26fa37,_0x1c749f){_0x26fa37=_0x26fa37-0x107;const _0x27af7d=a209_0x27af();let _0x4741e1=_0x27af7d[_0x26fa37];return _0x4741e1;}function a209_0x27af(){const _0x3d8575=['2026-07-14T03:06:26.197Z','2303500HmzsYd','4032000zYTKkO','675478YGjmND','5437550kfOxco','v2.3.4-beta.4','2.3.4-beta.4','4224064kRsQfu','1658469GnxJQN','1388352bWDdzP'];a209_0x27af=function(){return _0x3d8575;};return a209_0x27af();}(function(_0x34c83f,_0xd43ad6){const _0x54fd78=a209_0x4741,_0x4f4982=_0x34c83f();while(!![]){try{const _0x45d064=parseInt(_0x54fd78(0x10b))/0x1+parseInt(_0x54fd78(0x109))/0x2+parseInt(_0x54fd78(0x110))/0x3+-parseInt(_0x54fd78(0x10f))/0x4+-parseInt(_0x54fd78(0x10c))/0x5+parseInt(_0x54fd78(0x10a))/0x6+-parseInt(_0x54fd78(0x107))/0x7;if(_0x45d064===_0xd43ad6)break;else _0x4f4982['push'](_0x4f4982['shift']());}catch(_0x7e08c9){_0x4f4982['push'](_0x4f4982['shift']());}}}(a209_0x27af,0xad62d));export const VERSION=a209_0x53bb60(0x10e);export const GIT_TAG=a209_0x53bb60(0x10d);export const GIT_COMMIT='f488f03';export const BUILD_TIME=a209_0x53bb60(0x108);
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_0x29e8(_0x4ba448,_0x3c3818){_0x4ba448=_0x4ba448-0xa4;var _0x15d4cf=a210_0x15d4();var _0x29e864=_0x15d4cf[_0x4ba448];return _0x29e864;}(function(_0x172138,_0x2da531){var _0x5bbd19=a210_0x29e8,_0x3fdd6f=_0x172138();while(!![]){try{var _0x55755d=-parseInt(_0x5bbd19(0xa7))/0x1*(-parseInt(_0x5bbd19(0xb0))/0x2)+parseInt(_0x5bbd19(0xb3))/0x3+-parseInt(_0x5bbd19(0xa9))/0x4+parseInt(_0x5bbd19(0xa4))/0x5*(-parseInt(_0x5bbd19(0xaf))/0x6)+parseInt(_0x5bbd19(0xb2))/0x7*(-parseInt(_0x5bbd19(0xa8))/0x8)+-parseInt(_0x5bbd19(0xae))/0x9*(-parseInt(_0x5bbd19(0xad))/0xa)+parseInt(_0x5bbd19(0xac))/0xb;if(_0x55755d===_0x2da531)break;else _0x3fdd6f['push'](_0x3fdd6f['shift']());}catch(_0xb9cd5c){_0x3fdd6f['push'](_0x3fdd6f['shift']());}}}(a210_0x15d4,0x88643));import a210_0x28d36b from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2c0be4=a210_0x29e8;console[_0x2c0be4(0xa5)](),console[_0x2c0be4(0xa5)](a210_0x28d36b['green'][_0x2c0be4(0xb1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2c0be4(0xa5)](),console[_0x2c0be4(0xa5)]('\x20\x20Use\x20'+a210_0x28d36b[_0x2c0be4(0xa6)][_0x2c0be4(0xb1)](CLI_BIN_NAME+_0x2c0be4(0xab))+_0x2c0be4(0xaa)),console[_0x2c0be4(0xa5)]();}function a210_0x15d4(){var _0x364259=['3763364ExazQZ','\x20to\x20view\x20available\x20commands.','\x20--help','7370121lLOEpU','1590dPpCih','38997fsdOqe','1482gBwAji','54RNozxt','bold','7KpwWfG','2236854WYRThd','19645rQunQS','log','green','17467SDyXtX','849776LIQmLL'];a210_0x15d4=function(){return _0x364259;};return a210_0x15d4();}
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(_0x4283e5,_0x12cc27){const _0x59262b=a211_0x3cf2,_0x5dcad9=_0x4283e5();while(!![]){try{const _0x211770=-parseInt(_0x59262b(0x181))/0x1*(-parseInt(_0x59262b(0x17c))/0x2)+-parseInt(_0x59262b(0x17b))/0x3*(parseInt(_0x59262b(0x177))/0x4)+parseInt(_0x59262b(0x170))/0x5*(parseInt(_0x59262b(0x167))/0x6)+parseInt(_0x59262b(0x182))/0x7+-parseInt(_0x59262b(0x16a))/0x8+parseInt(_0x59262b(0x172))/0x9*(-parseInt(_0x59262b(0x183))/0xa)+-parseInt(_0x59262b(0x178))/0xb*(-parseInt(_0x59262b(0x16e))/0xc);if(_0x211770===_0x12cc27)break;else _0x5dcad9['push'](_0x5dcad9['shift']());}catch(_0x1107d9){_0x5dcad9['push'](_0x5dcad9['shift']());}}}(a211_0x341e,0xa0182));import{logger}from'../utils/logger.js';function a211_0x341e(){const _0x24cd94=['slice','add','206884YpBgfL','4386690eIzkoc','30NIgzxo','不支持的命令:\x20','dangerously-bff-save','replace','length','push','startsWith','108nrptOt','--help','skill','442984jmVClh','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','setLogPath','toLowerCase','1862916EFIaTJ','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','8910HAkiZk','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','1094391CZnPWw','argv','Equivalent\x20command:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','exit','2470280XCCkOM','44RsDdFS','\x0aAvailable\x20commands:','error','3wOzGIe','4bvlIup','log','has'];a211_0x341e=function(){return _0x24cd94;};return a211_0x341e();}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x4e3282){const _0x9758e1=a211_0x3cf2,_0x110940=[];for(const [_0x5eae48,_0x45fe1c]of Object['entries'](_0x4e3282)){if(_0x45fe1c===!![]){const _0x144fac=_0x5eae48[_0x9758e1(0x163)](/([A-Z])/g,'-$1')[_0x9758e1(0x16d)]();_0x110940[_0x9758e1(0x165)](_0x144fac);}}return _0x110940;}function a211_0x3cf2(_0x11a7f7,_0x774d0f){_0x11a7f7=_0x11a7f7-0x162;const _0x341e17=a211_0x341e();let _0x3cf21c=_0x341e17[_0x11a7f7];return _0x3cf21c;}export function parseDynamicFlags(){const _0x1afb34=a211_0x3cf2,_0x2b6bab=[];for(let _0xff7e1a=0x3;_0xff7e1a<process['argv'][_0x1afb34(0x164)];_0xff7e1a++){const _0x5ada9b=process[_0x1afb34(0x173)][_0xff7e1a];if(_0x5ada9b&&_0x5ada9b[_0x1afb34(0x166)]('--')){const _0x432124=_0x5ada9b[_0x1afb34(0x17f)](0x2);_0x432124&&!_0x432124['includes']('=')&&_0x2b6bab[_0x1afb34(0x165)](_0x432124);}}return _0x2b6bab;}export function getAllProvidedFlags(_0x5f4eed){const _0x3fbc7f=camelCaseFlagsToKebab(_0x5f4eed),_0x1d6644=parseDynamicFlags(),_0x5adfec=new Set([..._0x3fbc7f,..._0x1d6644]);return Array['from'](_0x5adfec);}export function normalizeLegacyBffSaveFlags(_0x1dae07){const _0x186de4=a211_0x3cf2,_0x58d96e=new Set(_0x1dae07);return _0x58d96e[_0x186de4(0x17e)](_0x186de4(0x162))&&_0x58d96e[_0x186de4(0x180)]('enable-bff-save'),Array['from'](_0x58d96e);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x213164,_0x58c43a,_0x108847){const _0x23ed31=a211_0x3cf2;logger[_0x23ed31(0x16c)](process['cwd']());if(_0x108847?.['help']||_0x213164===_0x23ed31(0x168)){showHelp();return;}console[_0x23ed31(0x17a)]('Error:\x20Unsupported\x20command:\x20'+(_0x213164||'(empty)')),console[_0x23ed31(0x17d)](_0x23ed31(0x179)),console[_0x23ed31(0x17d)]('\x20\x20'+CLI_BIN_NAME+_0x23ed31(0x171)),console[_0x23ed31(0x17d)](''),console[_0x23ed31(0x17d)](_0x23ed31(0x174)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x23ed31(0x17a)](_0x23ed31(0x169),_0x23ed31(0x184)+_0x213164),process[_0x23ed31(0x176)](0x1);}function showHelp(){const _0x331ea8=a211_0x3cf2;console[_0x331ea8(0x17d)](_0x331ea8(0x175)+CLI_BIN_NAME+_0x331ea8(0x16f)+SKILLS_INSTALL_COMMAND_LINE+_0x331ea8(0x16b));}
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));}