@lovrabet/rabetbase-cli 2.1.12-beta.2 → 2.1.12-beta.4

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 (200) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -1
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -1
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xf58a8d,_0x5e5b75){const _0x463a12=a147_0x24bd,_0x4ec1c9=_0xf58a8d();while(!![]){try{const _0x1aaee0=parseInt(_0x463a12(0xe0))/0x1+parseInt(_0x463a12(0xe3))/0x2+-parseInt(_0x463a12(0xe6))/0x3*(parseInt(_0x463a12(0xd8))/0x4)+parseInt(_0x463a12(0xe7))/0x5*(parseInt(_0x463a12(0xe9))/0x6)+parseInt(_0x463a12(0xe4))/0x7*(parseInt(_0x463a12(0xe1))/0x8)+-parseInt(_0x463a12(0xdf))/0x9+parseInt(_0x463a12(0xe8))/0xa;if(_0x1aaee0===_0x5e5b75)break;else _0x4ec1c9['push'](_0x4ec1c9['shift']());}catch(_0x2cd2af){_0x4ec1c9['push'](_0x4ec1c9['shift']());}}}(a147_0x495f,0x3ad12));function a147_0x24bd(_0x329ab0,_0x69a1aa){_0x329ab0=_0x329ab0-0xd8;const _0x495fb6=a147_0x495f();let _0x24bd54=_0x495fb6[_0x329ab0];return _0x24bd54;}export function snakeToCamel(_0x14cd7f){const _0x47ad4e=a147_0x24bd;return _0x14cd7f[_0x47ad4e(0xe5)]()[_0x47ad4e(0xeb)](/_([a-z])/g,(_0x21263a,_0x373a2f)=>_0x373a2f[_0x47ad4e(0xdd)]());}export function findHookLocationByRemoteId(_0x307248,_0x22426c){const _0x103d72=a147_0x24bd;if(!_0x22426c)return undefined;for(const _0x312e03 of Object[_0x103d72(0xde)](_0x307248)){if(_0x312e03['remoteId']===_0x22426c&&_0x312e03['datasetCode']&&_0x312e03[_0x103d72(0xdc)]&&_0x312e03[_0x103d72(0xd9)])return{'datasetCode':_0x312e03[_0x103d72(0xda)],'operationType':_0x312e03['operationType'],'functionNode':_0x312e03[_0x103d72(0xd9)]};}return undefined;}export function extractScriptDescription(_0x14db5e){const _0x35cae1=a147_0x24bd,_0x35e355=_0x14db5e[_0x35cae1(0xe2)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x35e355?.[0x1]?.[_0x35cae1(0xec)]()||undefined;}export function isValidBffFunctionName(_0x4bf96f){const _0x5a7408=a147_0x24bd;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x5a7408(0xea)](_0x4bf96f);}function a147_0x495f(){const _0xddcc01=['test','replace','trim','564196gNbrcA','functionNode','datasetCode','before','operationType','toUpperCase','values','3392433QDhBpC','194690BItfxr','134944qRMaKK','match','533174owenUW','147akNgyP','toLowerCase','9ovmnbX','234385vYIJIi','1786160OafOBj','6VvyujI'];a147_0x495f=function(){return _0xddcc01;};return a147_0x495f();}export function normalizeHookFunctionNode(_0x2ddcd3){const _0x4397e0=a147_0x24bd;if(!_0x2ddcd3)return undefined;const _0x39e47b=_0x2ddcd3[_0x4397e0(0xec)]()[_0x4397e0(0xe5)]();if(_0x39e47b===_0x4397e0(0xdb)||_0x39e47b==='after')return _0x39e47b;return undefined;}
1
+ (function(_0x174fde,_0x213e92){const _0x23b4bd=a147_0x5b35,_0x1cd009=_0x174fde();while(!![]){try{const _0x48eba0=parseInt(_0x23b4bd(0x1a5))/0x1+-parseInt(_0x23b4bd(0x19e))/0x2*(parseInt(_0x23b4bd(0x1a2))/0x3)+-parseInt(_0x23b4bd(0x1a4))/0x4+parseInt(_0x23b4bd(0x19f))/0x5*(-parseInt(_0x23b4bd(0x196))/0x6)+parseInt(_0x23b4bd(0x1aa))/0x7+-parseInt(_0x23b4bd(0x1a3))/0x8+parseInt(_0x23b4bd(0x1a8))/0x9*(parseInt(_0x23b4bd(0x19b))/0xa);if(_0x48eba0===_0x213e92)break;else _0x1cd009['push'](_0x1cd009['shift']());}catch(_0x1fbd97){_0x1cd009['push'](_0x1cd009['shift']());}}}(a147_0x2487,0x84f9d));export function snakeToCamel(_0x2c2aa3){const _0x47dc04=a147_0x5b35;return _0x2c2aa3[_0x47dc04(0x1a1)]()[_0x47dc04(0x1a7)](/_([a-z])/g,(_0x5ae98a,_0x572e2e)=>_0x572e2e[_0x47dc04(0x194)]());}function a147_0x5b35(_0x5c2b7e,_0x4a2eac){_0x5c2b7e=_0x5c2b7e-0x194;const _0x248705=a147_0x2487();let _0x5b355e=_0x248705[_0x5c2b7e];return _0x5b355e;}export function findHookLocationByRemoteId(_0x5b2933,_0x52e272){const _0x536f7f=a147_0x5b35;if(!_0x52e272)return undefined;for(const _0x5b26b5 of Object[_0x536f7f(0x197)](_0x5b2933)){if(_0x5b26b5[_0x536f7f(0x198)]===_0x52e272&&_0x5b26b5[_0x536f7f(0x1a9)]&&_0x5b26b5['operationType']&&_0x5b26b5[_0x536f7f(0x195)])return{'datasetCode':_0x5b26b5[_0x536f7f(0x1a9)],'operationType':_0x5b26b5[_0x536f7f(0x1a6)],'functionNode':_0x5b26b5['functionNode']};}return undefined;}function a147_0x2487(){const _0x27ce40=['replace','236241ZjHEPF','datasetCode','4863033Zpxzhj','toUpperCase','functionNode','216uclhMv','values','remoteId','test','after','510irYqRj','trim','match','286TAlqJD','97630DexxhE','before','toLowerCase','16122pDtrPw','4830168WzvqMM','706940RntAzh','763175WQBZcn','operationType'];a147_0x2487=function(){return _0x27ce40;};return a147_0x2487();}export function extractScriptDescription(_0x410305){const _0x317636=a147_0x5b35,_0x167656=_0x410305[_0x317636(0x19d)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x167656?.[0x1]?.[_0x317636(0x19c)]()||undefined;}export function isValidBffFunctionName(_0x6f4d63){const _0x1c8699=a147_0x5b35;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x1c8699(0x199)](_0x6f4d63);}export function normalizeHookFunctionNode(_0x2e0c9b){const _0x322e27=a147_0x5b35;if(!_0x2e0c9b)return undefined;const _0x1ceeb3=_0x2e0c9b[_0x322e27(0x19c)]()[_0x322e27(0x1a1)]();if(_0x1ceeb3===_0x322e27(0x1a0)||_0x1ceeb3===_0x322e27(0x19a))return _0x1ceeb3;return undefined;}
@@ -1 +1 @@
1
- function a148_0x1f93(){const _0x2bf2ad=['453933MYEILa','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','.\x20Be\x20more\x20specific.','6350519hXjGve','\x22\x20matches\x20multiple\x20databases:\x20','2371704axOfut','9237648kwkGlM','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','dbName','find','No\x20database\x20matching\x20\x22','11446zemozo','dbId','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','5zAGkov','get','176vlUBzY','map','entries','set','dbtableConfig','toLowerCase','10cwZzDv','length','300641zpQqeK','filter','7259658YBIgHq','join','8Wyyckg','13rZyJYe'];a148_0x1f93=function(){return _0x2bf2ad;};return a148_0x1f93();}function a148_0x3e2a(_0x2c6204,_0x23677b){_0x2c6204=_0x2c6204-0x1e0;const _0x1f93d9=a148_0x1f93();let _0x3e2a8b=_0x1f93d9[_0x2c6204];return _0x3e2a8b;}(function(_0x42a911,_0x4a139c){const _0x33f1db=a148_0x3e2a,_0x30e90a=_0x42a911();while(!![]){try{const _0x49acf2=parseInt(_0x33f1db(0x1e5))/0x1*(-parseInt(_0x33f1db(0x1f1))/0x2)+-parseInt(_0x33f1db(0x1eb))/0x3*(-parseInt(_0x33f1db(0x1e4))/0x4)+parseInt(_0x33f1db(0x1f4))/0x5*(-parseInt(_0x33f1db(0x1e2))/0x6)+parseInt(_0x33f1db(0x1e9))/0x7+-parseInt(_0x33f1db(0x1f6))/0x8*(parseInt(_0x33f1db(0x1e6))/0x9)+parseInt(_0x33f1db(0x1fc))/0xa*(parseInt(_0x33f1db(0x1e0))/0xb)+parseInt(_0x33f1db(0x1ec))/0xc;if(_0x49acf2===_0x4a139c)break;else _0x30e90a['push'](_0x30e90a['shift']());}catch(_0x5f6db2){_0x30e90a['push'](_0x30e90a['shift']());}}}(a148_0x1f93,0xd9a8c));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x280948){const _0x5a0959=a148_0x3e2a;if(cache['has'](_0x280948))return cache[_0x5a0959(0x1f5)](_0x280948);const _0x597f0c=await listDatasets(_0x280948),_0xb0029b=new Map();for(const _0x13663f of _0x597f0c){const _0x203b9c=_0x13663f[_0x5a0959(0x1fa)];_0x203b9c?.[_0x5a0959(0x1f2)]!=null&&_0xb0029b[_0x5a0959(0x1f9)](_0x203b9c[_0x5a0959(0x1f2)],_0x203b9c[_0x5a0959(0x1ee)]??'db-'+_0x203b9c[_0x5a0959(0x1f2)]);}const _0x194354=[..._0xb0029b[_0x5a0959(0x1f8)]()][_0x5a0959(0x1f7)](([_0x12b288,_0x131ac5])=>({'dbId':_0x12b288,'dbName':_0x131ac5}));return cache[_0x5a0959(0x1f9)](_0x280948,_0x194354),_0x194354;}export async function resolveDb(_0x4150cc,_0x220796){const _0x4816ea=a148_0x3e2a,_0x20b9a1=await listDatabases(_0x4150cc);if(_0x20b9a1[_0x4816ea(0x1fd)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x4150cc+_0x4816ea(0x1e7)};if(!_0x220796)return{'resolved':_0x20b9a1};const _0x46bbaa=Number(_0x220796);if(!Number['isNaN'](_0x46bbaa)){const _0x561f45=_0x20b9a1[_0x4816ea(0x1ef)](_0x196155=>_0x196155[_0x4816ea(0x1f2)]===_0x46bbaa);if(_0x561f45)return{'resolved':[_0x561f45]};}const _0xd424ec=_0x220796[_0x4816ea(0x1fb)](),_0x49e265=_0x20b9a1[_0x4816ea(0x1e1)](_0x2f3046=>_0x2f3046[_0x4816ea(0x1ee)][_0x4816ea(0x1fb)]()['includes'](_0xd424ec));if(_0x49e265[_0x4816ea(0x1fd)]>0x0)return{'resolved':_0x49e265};const _0x1146aa=_0x20b9a1[_0x4816ea(0x1f7)](_0x4d35e8=>_0x4d35e8['dbName']+'\x20('+_0x4d35e8[_0x4816ea(0x1f2)]+')')['join'](',\x20');return{'resolved':[],'error':_0x4816ea(0x1f0)+_0x220796+'\x22\x20under\x20app\x20\x22'+_0x4150cc+'\x22.\x20Available:\x20'+_0x1146aa+_0x4816ea(0x1f3)};}export async function resolveOneDb(_0x3f7ae9,_0x15a2a5){const _0x31fd3d=a148_0x3e2a,{resolved:_0x230285,error:_0x546bd0}=await resolveDb(_0x3f7ae9,_0x15a2a5);if(_0x546bd0)return{'db':null,'error':_0x546bd0};if(_0x230285[_0x31fd3d(0x1fd)]===0x1)return{'db':_0x230285[0x0]};if(!_0x15a2a5){const _0x15c833=_0x230285['map'](_0x4cf30b=>_0x4cf30b[_0x31fd3d(0x1ee)]+'\x20('+_0x4cf30b[_0x31fd3d(0x1f2)]+')')[_0x31fd3d(0x1e3)](',\x20');return{'db':null,'error':_0x31fd3d(0x1ed)+_0x15c833};}const _0x33821f=_0x230285[_0x31fd3d(0x1f7)](_0xb0d922=>_0xb0d922[_0x31fd3d(0x1ee)]+'\x20('+_0xb0d922['dbId']+')')[_0x31fd3d(0x1e3)](',\x20');return{'db':null,'error':'\x22'+_0x15a2a5+_0x31fd3d(0x1ea)+_0x33821f+_0x31fd3d(0x1e8)};}export async function getDbName(_0x40f64e,_0x3adbdd){const _0x445fc8=a148_0x3e2a,_0x440f54=await listDatabases(_0x40f64e);return _0x440f54[_0x445fc8(0x1ef)](_0x541c44=>_0x541c44['dbId']===_0x3adbdd)?.[_0x445fc8(0x1ee)];}
1
+ (function(_0x200c3c,_0x5dd1fe){const _0x24bdba=a148_0x4188,_0x5492fc=_0x200c3c();while(!![]){try{const _0xb50d5d=parseInt(_0x24bdba(0xeb))/0x1+-parseInt(_0x24bdba(0xe3))/0x2+parseInt(_0x24bdba(0xdc))/0x3*(parseInt(_0x24bdba(0xe8))/0x4)+parseInt(_0x24bdba(0xe4))/0x5*(-parseInt(_0x24bdba(0xf3))/0x6)+-parseInt(_0x24bdba(0xee))/0x7+parseInt(_0x24bdba(0xed))/0x8+parseInt(_0x24bdba(0xd9))/0x9;if(_0xb50d5d===_0x5dd1fe)break;else _0x5492fc['push'](_0x5492fc['shift']());}catch(_0x52989b){_0x5492fc['push'](_0x5492fc['shift']());}}}(a148_0x1568,0xa5ead));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a148_0x1568(){const _0x155d05=['map','1470804ywbnqL','toLowerCase','isNaN','10443195pVfRVp','includes','length','42SMBejy','set','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','has','entries','dbName','join','2698068zAbeqr','15cJqgxB','find','filter','dbId','226144dziBeB','\x22.\x20Available:\x20','\x22\x20matches\x20multiple\x20databases:\x20','735727oVIaNU','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','3142616yhlFlD','2214660PlZeZN','db-','dbtableConfig','get'];a148_0x1568=function(){return _0x155d05;};return a148_0x1568();}export async function listDatabases(_0x1fe6cb){const _0x3d8bef=a148_0x4188;if(cache[_0x3d8bef(0xdf)](_0x1fe6cb))return cache[_0x3d8bef(0xf1)](_0x1fe6cb);const _0x11cee9=await listDatasets(_0x1fe6cb),_0x258fb9=new Map();for(const _0x3e3e7d of _0x11cee9){const _0x355269=_0x3e3e7d[_0x3d8bef(0xf0)];_0x355269?.[_0x3d8bef(0xe7)]!=null&&_0x258fb9['set'](_0x355269[_0x3d8bef(0xe7)],_0x355269['dbName']??_0x3d8bef(0xef)+_0x355269[_0x3d8bef(0xe7)]);}const _0x31860b=[..._0x258fb9[_0x3d8bef(0xe0)]()][_0x3d8bef(0xf2)](([_0x5a279c,_0x5d051e])=>({'dbId':_0x5a279c,'dbName':_0x5d051e}));return cache[_0x3d8bef(0xdd)](_0x1fe6cb,_0x31860b),_0x31860b;}export async function resolveDb(_0x180440,_0x4c3329){const _0x2edd91=a148_0x4188,_0x1c7a7f=await listDatabases(_0x180440);if(_0x1c7a7f[_0x2edd91(0xdb)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x180440+_0x2edd91(0xec)};if(!_0x4c3329)return{'resolved':_0x1c7a7f};const _0x252b9c=Number(_0x4c3329);if(!Number[_0x2edd91(0xd8)](_0x252b9c)){const _0x42e86f=_0x1c7a7f[_0x2edd91(0xe5)](_0x378cde=>_0x378cde[_0x2edd91(0xe7)]===_0x252b9c);if(_0x42e86f)return{'resolved':[_0x42e86f]};}const _0x19efb9=_0x4c3329[_0x2edd91(0xd7)](),_0x3462a3=_0x1c7a7f[_0x2edd91(0xe6)](_0x54aca0=>_0x54aca0[_0x2edd91(0xe1)][_0x2edd91(0xd7)]()[_0x2edd91(0xda)](_0x19efb9));if(_0x3462a3['length']>0x0)return{'resolved':_0x3462a3};const _0x2ce1bb=_0x1c7a7f['map'](_0x3835b5=>_0x3835b5['dbName']+'\x20('+_0x3835b5[_0x2edd91(0xe7)]+')')[_0x2edd91(0xe2)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x4c3329+'\x22\x20under\x20app\x20\x22'+_0x180440+_0x2edd91(0xe9)+_0x2ce1bb+_0x2edd91(0xde)};}export async function resolveOneDb(_0x308e73,_0x28ac8b){const _0x5df98f=a148_0x4188,{resolved:_0x5444f8,error:_0x13d55d}=await resolveDb(_0x308e73,_0x28ac8b);if(_0x13d55d)return{'db':null,'error':_0x13d55d};if(_0x5444f8[_0x5df98f(0xdb)]===0x1)return{'db':_0x5444f8[0x0]};if(!_0x28ac8b){const _0x4c8d8d=_0x5444f8[_0x5df98f(0xf2)](_0x13d226=>_0x13d226[_0x5df98f(0xe1)]+'\x20('+_0x13d226[_0x5df98f(0xe7)]+')')[_0x5df98f(0xe2)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x4c8d8d};}const _0x53a1c7=_0x5444f8[_0x5df98f(0xf2)](_0x139453=>_0x139453[_0x5df98f(0xe1)]+'\x20('+_0x139453[_0x5df98f(0xe7)]+')')[_0x5df98f(0xe2)](',\x20');return{'db':null,'error':'\x22'+_0x28ac8b+_0x5df98f(0xea)+_0x53a1c7+'.\x20Be\x20more\x20specific.'};}function a148_0x4188(_0x3ab225,_0x32682a){_0x3ab225=_0x3ab225-0xd7;const _0x156836=a148_0x1568();let _0x41880f=_0x156836[_0x3ab225];return _0x41880f;}export async function getDbName(_0x7b1a3e,_0x1377c6){const _0x578c55=a148_0x4188,_0x40c0fd=await listDatabases(_0x7b1a3e);return _0x40c0fd['find'](_0x1eace5=>_0x1eace5[_0x578c55(0xe7)]===_0x1377c6)?.['dbName'];}
@@ -1 +1 @@
1
- function a149_0x16b0(){const _0x56fb3d=['21855OfMDPi','1685560euEMrs','367320RCPENv','.rabetbase','6534qiZcoc','445400aUnluq','313391yAiUUt','.json','116YvkgAv','page','655212MUQZzD','36szpLXt','F_OK','cwd','appPagesDir','1379bJvhQl','page.lock.json','toUpperCase'];a149_0x16b0=function(){return _0x56fb3d;};return a149_0x16b0();}const a149_0x46d778=a149_0x12bf;(function(_0x1db32d,_0x4f8458){const _0x390b61=a149_0x12bf,_0x570597=_0x1db32d();while(!![]){try{const _0x323ffa=parseInt(_0x390b61(0xd0))/0x1+-parseInt(_0x390b61(0xd4))/0x2+-parseInt(_0x390b61(0xdc))/0x3*(parseInt(_0x390b61(0xd2))/0x4)+parseInt(_0x390b61(0xdd))/0x5+-parseInt(_0x390b61(0xce))/0x6*(-parseInt(_0x390b61(0xd9))/0x7)+parseInt(_0x390b61(0xcf))/0x8+parseInt(_0x390b61(0xd5))/0x9*(-parseInt(_0x390b61(0xde))/0xa);if(_0x323ffa===_0x4f8458)break;else _0x570597['push'](_0x570597['shift']());}catch(_0x1e1aa5){_0x570597['push'](_0x570597['shift']());}}}(a149_0x16b0,0x395a0));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a149_0x12bf(_0x2cf4d8,_0x5ec1ff){_0x2cf4d8=_0x2cf4d8-0xcd;const _0x16b0d2=a149_0x16b0();let _0x12bf54=_0x16b0d2[_0x2cf4d8];return _0x12bf54;}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x3662ac,_0x263610=process[a149_0x46d778(0xd7)]()){const _0x27ca92=a149_0x46d778,_0x20c6ed=resolve(_0x263610),_0x5e5eab=join(_0x20c6ed,_0x27ca92(0xcd),_0x27ca92(0xd3));return{'projectRoot':_0x20c6ed,'pagesBaseDir':_0x5e5eab,'appPagesDir':join(_0x5e5eab,_0x3662ac),'lockFilePath':join(_0x20c6ed,_0x27ca92(0xcd),_0x27ca92(0xda))};}export function buildPageFileName(_0x4258b2,_0x303c7e){const _0x1af550=a149_0x46d778;return _0x4258b2+'-'+String(_0x303c7e)[_0x1af550(0xdb)]()+_0x1af550(0xd1);}export function resolvePageFilePath(_0x4c504c,_0x40f253,_0x208037){const _0x274e42=a149_0x46d778;return join(_0x4c504c[_0x274e42(0xd8)],buildPageFileName(_0x40f253,_0x208037));}export async function ensureParentDirectory(_0x46779e){await mkdir(dirname(_0x46779e),{'recursive':!![]});}export async function fileExists(_0x51001d){const _0x57c1d5=a149_0x46d778;try{return await access(_0x51001d,constants[_0x57c1d5(0xd6)]),!![];}catch{return![];}}
1
+ const a149_0x4a534c=a149_0x12f0;(function(_0x56cb02,_0x31bed2){const _0x4dcf42=a149_0x12f0,_0x454ddd=_0x56cb02();while(!![]){try{const _0x11eade=parseInt(_0x4dcf42(0x10a))/0x1*(parseInt(_0x4dcf42(0x10b))/0x2)+-parseInt(_0x4dcf42(0x107))/0x3+parseInt(_0x4dcf42(0xfd))/0x4*(parseInt(_0x4dcf42(0x105))/0x5)+parseInt(_0x4dcf42(0xff))/0x6+parseInt(_0x4dcf42(0xfb))/0x7*(parseInt(_0x4dcf42(0x100))/0x8)+-parseInt(_0x4dcf42(0x106))/0x9*(-parseInt(_0x4dcf42(0x108))/0xa)+-parseInt(_0x4dcf42(0xfc))/0xb;if(_0x11eade===_0x31bed2)break;else _0x454ddd['push'](_0x454ddd['shift']());}catch(_0x386007){_0x454ddd['push'](_0x454ddd['shift']());}}}(a149_0x1c3b,0xd1753));import{constants}from'node:fs';function a149_0x12f0(_0xddd15a,_0xa3a7a7){_0xddd15a=_0xddd15a-0xf9;const _0x1c3b7c=a149_0x1c3b();let _0x12f059=_0x1c3b7c[_0xddd15a];return _0x12f059;}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x4962be,_0x3b9291=process[a149_0x4a534c(0xf9)]()){const _0x1762d0=a149_0x4a534c,_0xcc879f=resolve(_0x3b9291),_0x4cb417=join(_0xcc879f,_0x1762d0(0xfa),_0x1762d0(0x109));return{'projectRoot':_0xcc879f,'pagesBaseDir':_0x4cb417,'appPagesDir':join(_0x4cb417,_0x4962be),'lockFilePath':join(_0xcc879f,_0x1762d0(0xfa),_0x1762d0(0x102))};}export function buildPageFileName(_0x2e9960,_0x23f41d){const _0x43d2a3=a149_0x4a534c;return _0x2e9960+'-'+String(_0x23f41d)[_0x43d2a3(0xfe)]()+_0x43d2a3(0x104);}export function resolvePageFilePath(_0x94f7b0,_0x37b748,_0x140b19){const _0x351af0=a149_0x4a534c;return join(_0x94f7b0[_0x351af0(0x103)],buildPageFileName(_0x37b748,_0x140b19));}function a149_0x1c3b(){const _0x4d2ac0=['110AWYmYX','144FMRINZ','2769873SZKhuR','306580hGJJDv','page','850055EIPSOF','4CkowuD','cwd','.rabetbase','140SbfPgP','19434371uKRWNi','31152bsfSgW','toUpperCase','237462dzuPat','458576AVxwQb','F_OK','page.lock.json','appPagesDir','.json'];a149_0x1c3b=function(){return _0x4d2ac0;};return a149_0x1c3b();}export async function ensureParentDirectory(_0x14ca9f){await mkdir(dirname(_0x14ca9f),{'recursive':!![]});}export async function fileExists(_0x14458b){const _0x2080c3=a149_0x4a534c;try{return await access(_0x14458b,constants[_0x2080c3(0x101)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xe7d2e9,_0x59ee49){const _0x2cf602=a150_0x11a2,_0x2fa3df=_0xe7d2e9();while(!![]){try{const _0x21b26d=parseInt(_0x2cf602(0x18c))/0x1+parseInt(_0x2cf602(0x185))/0x2+parseInt(_0x2cf602(0x187))/0x3*(-parseInt(_0x2cf602(0x190))/0x4)+parseInt(_0x2cf602(0x18e))/0x5+-parseInt(_0x2cf602(0x18f))/0x6+-parseInt(_0x2cf602(0x186))/0x7*(parseInt(_0x2cf602(0x18a))/0x8)+parseInt(_0x2cf602(0x188))/0x9;if(_0x21b26d===_0x59ee49)break;else _0x2fa3df['push'](_0x2fa3df['shift']());}catch(_0xd64029){_0x2fa3df['push'](_0x2fa3df['shift']());}}}(a150_0x4c77,0x79c7c));import a150_0x845696 from'node:crypto';function a150_0x11a2(_0x27cbc4,_0x524f9d){_0x27cbc4=_0x27cbc4-0x184;const _0x4c773e=a150_0x4c77();let _0x11a2c3=_0x4c773e[_0x27cbc4];return _0x11a2c3;}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x1099d8){const _0x30d051=a150_0x11a2;return JSON['stringify'](JSON[_0x30d051(0x18d)](_0x1099d8),null,0x2)+'\x0a';}export function computePageContentHash(_0x1ae7b5){const _0x5c7fb8=a150_0x11a2;return a150_0x845696[_0x5c7fb8(0x18b)](_0x5c7fb8(0x184))['update'](_0x1ae7b5)[_0x5c7fb8(0x189)]('hex');}function a150_0x4c77(){const _0x1be0ce=['createHash','603413qMrIUo','parse','4859930MXaevf','5451732ziYRhB','1678972brrMIO','md5','861314VFCYsB','4442921HmvJwI','6RjceTJ','7880103rvTtnV','digest','8oPlcAN'];a150_0x4c77=function(){return _0x1be0ce;};return a150_0x4c77();}export function computeSerializedSchemaHash(_0x1b3006){return computePageContentHash(serializePageSchemaForFile(_0x1b3006));}export async function computePageFileHash(_0xeab733){const _0x18455c=await readFile(_0xeab733,'utf8');return computePageContentHash(_0x18455c);}
1
+ function a150_0x38da(_0x3b7595,_0xd67db4){_0x3b7595=_0x3b7595-0x195;const _0x173fea=a150_0x173f();let _0x38dade=_0x173fea[_0x3b7595];return _0x38dade;}(function(_0x1afbf3,_0x198562){const _0x273729=a150_0x38da,_0x4355b2=_0x1afbf3();while(!![]){try{const _0x4bda4f=parseInt(_0x273729(0x19a))/0x1+parseInt(_0x273729(0x198))/0x2*(parseInt(_0x273729(0x1a5))/0x3)+-parseInt(_0x273729(0x1a4))/0x4+parseInt(_0x273729(0x197))/0x5+-parseInt(_0x273729(0x199))/0x6*(-parseInt(_0x273729(0x1a1))/0x7)+parseInt(_0x273729(0x19c))/0x8+parseInt(_0x273729(0x1a2))/0x9*(-parseInt(_0x273729(0x195))/0xa);if(_0x4bda4f===_0x198562)break;else _0x4355b2['push'](_0x4355b2['shift']());}catch(_0xcb76ba){_0x4355b2['push'](_0x4355b2['shift']());}}}(a150_0x173f,0xe82e8));import a150_0x515689 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x1813a8){const _0x416ae5=a150_0x38da;return JSON[_0x416ae5(0x19f)](JSON[_0x416ae5(0x1a3)](_0x1813a8),null,0x2)+'\x0a';}export function computePageContentHash(_0x150c7a){const _0x16f2e8=a150_0x38da;return a150_0x515689[_0x16f2e8(0x1a0)]('md5')[_0x16f2e8(0x196)](_0x150c7a)[_0x16f2e8(0x19d)](_0x16f2e8(0x19e));}export function computeSerializedSchemaHash(_0x5c0408){return computePageContentHash(serializePageSchemaForFile(_0x5c0408));}export async function computePageFileHash(_0xf16748){const _0x5d4791=a150_0x38da,_0xd7b9fa=await readFile(_0xf16748,_0x5d4791(0x19b));return computePageContentHash(_0xd7b9fa);}function a150_0x173f(){const _0x30ce40=['7149380jfjxZd','update','7348055WvoNET','11924byFaNP','6KiaAzb','695659xJJqUN','utf8','6015640OpRDcy','digest','hex','stringify','createHash','9268728VncYKA','27CPGurL','parse','5750548UAVjJD','147CzolqE'];a150_0x173f=function(){return _0x30ce40;};return a150_0x173f();}
@@ -1 +1 @@
1
- function a151_0x1a10(_0x4e3eb7,_0x135d9a){_0x4e3eb7=_0x4e3eb7-0x16b;const _0x1ceece=a151_0x1cee();let _0x1a1003=_0x1ceece[_0x4e3eb7];return _0x1a1003;}(function(_0x28e436,_0x1e8d9f){const _0x42e89a=a151_0x1a10,_0x3e2e9d=_0x28e436();while(!![]){try{const _0x4ca541=parseInt(_0x42e89a(0x171))/0x1+-parseInt(_0x42e89a(0x178))/0x2*(-parseInt(_0x42e89a(0x170))/0x3)+-parseInt(_0x42e89a(0x174))/0x4*(-parseInt(_0x42e89a(0x17a))/0x5)+parseInt(_0x42e89a(0x177))/0x6*(parseInt(_0x42e89a(0x17b))/0x7)+-parseInt(_0x42e89a(0x172))/0x8*(-parseInt(_0x42e89a(0x173))/0x9)+-parseInt(_0x42e89a(0x16c))/0xa*(parseInt(_0x42e89a(0x17d))/0xb)+parseInt(_0x42e89a(0x16d))/0xc*(-parseInt(_0x42e89a(0x17c))/0xd);if(_0x4ca541===_0x1e8d9f)break;else _0x3e2e9d['push'](_0x3e2e9d['shift']());}catch(_0x5911fb){_0x3e2e9d['push'](_0x3e2e9d['shift']());}}}(a151_0x1cee,0x6c812));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x128839,_0x3e673f){const _0x58dcf2=a151_0x1a10,_0x448a1e={'apps':_0x128839[_0x58dcf2(0x16b)]&&typeof _0x128839['apps']===_0x58dcf2(0x16f)?_0x128839[_0x58dcf2(0x16b)]:{}};let _0xd4bce0=_0x448a1e[_0x58dcf2(0x16b)][_0x3e673f];if(!_0xd4bce0)return _0xd4bce0={'lastSync':'','pages':{}},_0x448a1e[_0x58dcf2(0x16b)][_0x3e673f]=_0xd4bce0,{'lockData':_0x448a1e,'appLock':_0xd4bce0};return!_0xd4bce0[_0x58dcf2(0x180)]&&(_0xd4bce0[_0x58dcf2(0x180)]=''),(!_0xd4bce0['pages']||typeof _0xd4bce0['pages']!=='object')&&(_0xd4bce0[_0x58dcf2(0x175)]={}),{'lockData':_0x448a1e,'appLock':_0xd4bce0};}export async function readPageLockFile(_0x416ab4){const _0x3a4624=a151_0x1a10;try{const _0x119639=await readFile(_0x416ab4,_0x3a4624(0x179)),_0x52507=JSON['parse'](_0x119639);return{'apps':_0x52507['apps']&&typeof _0x52507[_0x3a4624(0x16b)]==='object'?_0x52507['apps']:{}};}catch(_0x3de732){if(_0x3de732[_0x3a4624(0x17e)]===_0x3a4624(0x17f))return null;throw new Error(_0x3a4624(0x16e)+String(_0x3de732));}}export async function writePageLockFile(_0x4bf9f1,_0x4df609){const _0x51acb2=a151_0x1a10;await mkdir(dirname(_0x4bf9f1),{'recursive':!![]}),await writeFile(_0x4bf9f1,JSON[_0x51acb2(0x176)](_0x4df609,null,0x2),_0x51acb2(0x179));}function a151_0x1cee(){const _0xfbeffe=['pages','stringify','17478nrqzzx','44MXwHZQ','utf8','133975qyWXrE','518fehwbO','2856451yFlxey','1485QStjMH','code','ENOENT','lastSync','apps','49010TOLNGy','24Ntzyge','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','object','204JODGhL','375366QvUqqt','8DBUMfh','1584396pyITci','116FmvKPe'];a151_0x1cee=function(){return _0xfbeffe;};return a151_0x1cee();}
1
+ function a151_0x38f9(_0x1325d2,_0x416c85){_0x1325d2=_0x1325d2-0x110;const _0x405656=a151_0x4056();let _0x38f9a5=_0x405656[_0x1325d2];return _0x38f9a5;}(function(_0x20f6b8,_0x734f3b){const _0x547847=a151_0x38f9,_0xd4f53c=_0x20f6b8();while(!![]){try{const _0x4945dd=parseInt(_0x547847(0x11f))/0x1*(-parseInt(_0x547847(0x123))/0x2)+parseInt(_0x547847(0x11b))/0x3*(parseInt(_0x547847(0x11c))/0x4)+-parseInt(_0x547847(0x119))/0x5+parseInt(_0x547847(0x111))/0x6+-parseInt(_0x547847(0x115))/0x7*(-parseInt(_0x547847(0x120))/0x8)+-parseInt(_0x547847(0x122))/0x9*(parseInt(_0x547847(0x112))/0xa)+-parseInt(_0x547847(0x124))/0xb*(-parseInt(_0x547847(0x11e))/0xc);if(_0x4945dd===_0x734f3b)break;else _0xd4f53c['push'](_0xd4f53c['shift']());}catch(_0x375b04){_0xd4f53c['push'](_0xd4f53c['shift']());}}}(a151_0x4056,0x8ff74));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x47229b,_0xf75e68){const _0x54ec85=a151_0x38f9,_0x20567a={'apps':_0x47229b[_0x54ec85(0x121)]&&typeof _0x47229b[_0x54ec85(0x121)]===_0x54ec85(0x11a)?_0x47229b[_0x54ec85(0x121)]:{}};let _0xc1f123=_0x20567a[_0x54ec85(0x121)][_0xf75e68];if(!_0xc1f123)return _0xc1f123={'lastSync':'','pages':{}},_0x20567a['apps'][_0xf75e68]=_0xc1f123,{'lockData':_0x20567a,'appLock':_0xc1f123};return!_0xc1f123[_0x54ec85(0x113)]&&(_0xc1f123[_0x54ec85(0x113)]=''),(!_0xc1f123[_0x54ec85(0x118)]||typeof _0xc1f123[_0x54ec85(0x118)]!==_0x54ec85(0x11a))&&(_0xc1f123[_0x54ec85(0x118)]={}),{'lockData':_0x20567a,'appLock':_0xc1f123};}export async function readPageLockFile(_0x3b2e63){const _0x183b45=a151_0x38f9;try{const _0x45de87=await readFile(_0x3b2e63,_0x183b45(0x114)),_0x59a002=JSON['parse'](_0x45de87);return{'apps':_0x59a002[_0x183b45(0x121)]&&typeof _0x59a002['apps']===_0x183b45(0x11a)?_0x59a002[_0x183b45(0x121)]:{}};}catch(_0x1d52e1){if(_0x1d52e1[_0x183b45(0x116)]===_0x183b45(0x110))return null;throw new Error(_0x183b45(0x117)+String(_0x1d52e1));}}function a151_0x4056(){const _0x28a3e5=['213310pJeKRN','944284FQNNZn','ENOENT','6975180dcWIKX','110kBvHoW','lastSync','utf8','4137aApdhT','code','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','pages','5266095NHXnLz','object','2559IQWzFU','1164LsUjWB','stringify','108ReNMAg','5yddxkY','14224VYBNld','apps','865611PrJELH'];a151_0x4056=function(){return _0x28a3e5;};return a151_0x4056();}export async function writePageLockFile(_0x346088,_0x12e309){const _0x458a7e=a151_0x38f9;await mkdir(dirname(_0x346088),{'recursive':!![]}),await writeFile(_0x346088,JSON[_0x458a7e(0x11d)](_0x12e309,null,0x2),_0x458a7e(0x114));}
@@ -1 +1 @@
1
- function a153_0x3074(_0xb4fbed,_0x5e3b51){_0xb4fbed=_0xb4fbed-0x138;const _0x42df9e=a153_0x42df();let _0x307461=_0x42df9e[_0xb4fbed];return _0x307461;}const a153_0x41c798=a153_0x3074;(function(_0x259fa4,_0x1e1cd4){const _0x412983=a153_0x3074,_0x542075=_0x259fa4();while(!![]){try{const _0x311a82=parseInt(_0x412983(0x139))/0x1+parseInt(_0x412983(0x141))/0x2+-parseInt(_0x412983(0x145))/0x3*(-parseInt(_0x412983(0x13d))/0x4)+parseInt(_0x412983(0x13f))/0x5*(parseInt(_0x412983(0x140))/0x6)+parseInt(_0x412983(0x13b))/0x7*(parseInt(_0x412983(0x147))/0x8)+parseInt(_0x412983(0x142))/0x9*(-parseInt(_0x412983(0x138))/0xa)+-parseInt(_0x412983(0x144))/0xb*(-parseInt(_0x412983(0x13c))/0xc);if(_0x311a82===_0x1e1cd4)break;else _0x542075['push'](_0x542075['shift']());}catch(_0x24ae3d){_0x542075['push'](_0x542075['shift']());}}}(a153_0x42df,0x192e7));function a153_0x42df(){const _0x128b09=['120GJAIqE','33260XIqcry','sql-trash','13995JTRglH','144hYgXmK','134178HPGIqI','1660977aqBpmG','sql','132836LViUzy','9zhondz','sql.lock.json','336srITte','10kfRWdw','2140amjgTV','.rabetbase','931uqWyWx'];a153_0x42df=function(){return _0x128b09;};return a153_0x42df();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a153_0x41c798(0x13a),LOCK_FILE_NAME=a153_0x41c798(0x146),TRASH_DIR_NAME=a153_0x41c798(0x13e);export function loadSqlProjectConfig(_0x47eb6d,_0x488aec){const _0x1a914b=a153_0x41c798,_0x45112a=resolve(_0x488aec??findProjectRootDirectory()),_0x2cfc5a=DOT_DIR+'/sql',_0x3b7959=_0x2cfc5a+'/'+_0x47eb6d;return{'projectRoot':_0x45112a,'appCode':_0x47eb6d,'sqlWorkspaceRoot':_0x2cfc5a,'sqlRoot':_0x3b7959,'sqlRootDir':resolve(_0x45112a,DOT_DIR,_0x1a914b(0x143),_0x47eb6d),'lockFilePath':resolve(_0x45112a,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x45112a,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a153_0x536359=a153_0x1911;(function(_0xd5eefc,_0x37f039){const _0x5eab36=a153_0x1911,_0x15230e=_0xd5eefc();while(!![]){try{const _0x3df5ed=parseInt(_0x5eab36(0xdf))/0x1+parseInt(_0x5eab36(0xe5))/0x2*(-parseInt(_0x5eab36(0xe3))/0x3)+parseInt(_0x5eab36(0xe0))/0x4+parseInt(_0x5eab36(0xde))/0x5+-parseInt(_0x5eab36(0xdc))/0x6*(-parseInt(_0x5eab36(0xe2))/0x7)+parseInt(_0x5eab36(0xdd))/0x8+-parseInt(_0x5eab36(0xe4))/0x9*(parseInt(_0x5eab36(0xda))/0xa);if(_0x3df5ed===_0x37f039)break;else _0x15230e['push'](_0x15230e['shift']());}catch(_0x15523f){_0x15230e['push'](_0x15230e['shift']());}}}(a153_0x2b06,0x67b53));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a153_0x2b06(){const _0x425010=['59486zWlKqy','sql-trash','/sql','463020jdJYao','sql.lock.json','828756vrPYcD','3737456TeBypj','3906260ScKjdO','144340fouhEk','155112zrEtmh','sql','42qVQuwL','3kddHGy','351ukfDBP'];a153_0x2b06=function(){return _0x425010;};return a153_0x2b06();}const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a153_0x536359(0xdb),TRASH_DIR_NAME=a153_0x536359(0xe6);function a153_0x1911(_0x256e93,_0x215d0a){_0x256e93=_0x256e93-0xd9;const _0x2b0671=a153_0x2b06();let _0x19112d=_0x2b0671[_0x256e93];return _0x19112d;}export function loadSqlProjectConfig(_0x59188f,_0x596b45){const _0x62a1e4=a153_0x536359,_0x2f9dc6=resolve(_0x596b45??findProjectRootDirectory()),_0x1994e4=DOT_DIR+_0x62a1e4(0xd9),_0x4cf1c9=_0x1994e4+'/'+_0x59188f;return{'projectRoot':_0x2f9dc6,'appCode':_0x59188f,'sqlWorkspaceRoot':_0x1994e4,'sqlRoot':_0x4cf1c9,'sqlRootDir':resolve(_0x2f9dc6,DOT_DIR,_0x62a1e4(0xe1),_0x59188f),'lockFilePath':resolve(_0x2f9dc6,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x2f9dc6,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x15d4e7,_0x582183){const _0x5572cc=a154_0x222b,_0x147c30=_0x15d4e7();while(!![]){try{const _0x27d2f8=parseInt(_0x5572cc(0x15b))/0x1+parseInt(_0x5572cc(0x162))/0x2+-parseInt(_0x5572cc(0x14d))/0x3*(parseInt(_0x5572cc(0x167))/0x4)+-parseInt(_0x5572cc(0x14b))/0x5*(-parseInt(_0x5572cc(0x165))/0x6)+parseInt(_0x5572cc(0x157))/0x7+-parseInt(_0x5572cc(0x169))/0x8*(-parseInt(_0x5572cc(0x153))/0x9)+-parseInt(_0x5572cc(0x163))/0xa*(parseInt(_0x5572cc(0x155))/0xb);if(_0x27d2f8===_0x582183)break;else _0x147c30['push'](_0x147c30['shift']());}catch(_0x1f3334){_0x147c30['push'](_0x147c30['shift']());}}}(a154_0x2f38,0xf2e90));function a154_0x222b(_0x338e0b,_0x23f927){_0x338e0b=_0x338e0b-0x14b;const _0x2f38f3=a154_0x2f38();let _0x222bc0=_0x2f38f3[_0x338e0b];return _0x222bc0;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4058c2){const _0x2fc56a=a154_0x222b;if(_0x4058c2===_0x2fc56a(0x168))return _0x2fc56a(0x15e);if(_0x4058c2==='.xml')return _0x2fc56a(0x14c);return undefined;}async function scanSqlFilesRecursively(_0x2663f6,_0x1a7188){const _0x5b3066=a154_0x222b,_0x223be6=[];try{const _0xe6525a=await readdir(_0x2663f6,{'withFileTypes':!![]});for(const _0x506027 of _0xe6525a){const _0xe38aa6=join(_0x2663f6,_0x506027['name']);if(_0x506027['isDirectory']()){_0x223be6['push'](...await scanSqlFilesRecursively(_0xe38aa6,_0x1a7188));continue;}if(!_0x506027[_0x5b3066(0x16a)]())continue;const _0x54c8cd=extname(_0x506027['name'])['toLowerCase'](),_0x2b761a=extensionToMode(_0x54c8cd);if(!_0x2b761a)continue;const _0x49a5f3=relative(_0x1a7188,_0xe38aa6)[_0x5b3066(0x15a)](/\\/g,'/'),_0x45787e=_0x49a5f3[_0x5b3066(0x14f)]('/')[_0x5b3066(0x166)](Boolean),_0x1cb512=parseSqlPath(_0x45787e,_0x506027[_0x5b3066(0x154)],_0x54c8cd);if(!_0x1cb512)continue;_0x223be6[_0x5b3066(0x15d)]({'sqlCode':_0x1cb512[_0x5b3066(0x160)],'sqlName':_0x1cb512[_0x5b3066(0x156)],'dbDirectory':_0x45787e[0x0],'filePath':_0xe38aa6,'relativePath':_0x49a5f3,'lockKey':_0x1cb512['sqlCode'],'mode':_0x2b761a});}}catch(_0x38b684){if(_0x38b684[_0x5b3066(0x151)]!==_0x5b3066(0x164))throw _0x38b684;}return _0x223be6;}export async function scanLocalSqlQueries(_0x565725){const _0x30573a=a154_0x222b;return scanSqlFilesRecursively(_0x565725[_0x30573a(0x15f)],_0x565725[_0x30573a(0x15f)]);}function a154_0x2f38(){const _0x45ddde=['30041693ggkkjD','sqlName','8382486zBcoTj','dbName','dbId','replace','1945912oKvqMz','path','push','sql','sqlRootDir','sqlCode','test','3260184dUZPEY','10dRMtGB','ENOENT','6ZBxAsM','filter','616oBrFYC','.sql','8DgTOar','isFile','808975VqWlKp','mybatisXml','28230UmcrHk','mode','split','slice','code','length','2158794BevxRm','name'];a154_0x2f38=function(){return _0x45ddde;};return a154_0x2f38();}export function resolveLocalSqlFilePath(_0x5a6d41,_0x4a6666,_0x2a5426){const _0x2107c8=a154_0x222b,_0x4e8a3d=_0x2a5426?.[_0x2107c8(0x15c)]||(_0x2a5426?.[_0x2107c8(0x156)]||_0x2a5426?.[_0x2107c8(0x158)]?buildSqlRelativePath(_0x4a6666,_0x2a5426?.[_0x2107c8(0x156)],_0x2a5426?.[_0x2107c8(0x158)],_0x2a5426?.[_0x2107c8(0x14e)]||_0x2107c8(0x15e),_0x2a5426?.[_0x2107c8(0x159)]):buildDefaultSqlFileName(_0x4a6666,_0x2a5426?.['mode']||_0x2107c8(0x15e)));return join(_0x5a6d41['sqlRootDir'],_0x4e8a3d);}export async function directoryExists(_0x35e6d5){try{const _0x5bdeda=await stat(_0x35e6d5);return _0x5bdeda['isDirectory']();}catch{return![];}}function parseSqlPath(_0xeedbcd,_0x4243e8,_0x2b9e8a){const _0x23e9c7=a154_0x222b,_0x57fa40=_0x4243e8['slice'](0x0,-_0x2b9e8a[_0x23e9c7(0x152)]);if(_0xeedbcd[_0x23e9c7(0x152)]<0x2)return null;const _0x3b30f2=_0x57fa40['indexOf']('_');if(_0x3b30f2<=0x0||_0x3b30f2>=_0x57fa40[_0x23e9c7(0x152)]-0x1)return null;const _0x593413=_0x57fa40[_0x23e9c7(0x150)](0x0,_0x3b30f2);if(!isLikelySqlCode(_0x593413))return null;return{'sqlCode':_0x593413,'sqlName':_0x57fa40[_0x23e9c7(0x150)](_0x3b30f2+0x1)};}function isLikelySqlCode(_0x4d97d1){const _0x1b4091=a154_0x222b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1b4091(0x161)](_0x4d97d1);}
1
+ (function(_0x29b16d,_0x28555c){const _0x57c516=a154_0x1ef5,_0x3da99e=_0x29b16d();while(!![]){try{const _0x37eca9=-parseInt(_0x57c516(0xb7))/0x1*(-parseInt(_0x57c516(0xb1))/0x2)+-parseInt(_0x57c516(0xb6))/0x3*(parseInt(_0x57c516(0xc7))/0x4)+-parseInt(_0x57c516(0xcd))/0x5+-parseInt(_0x57c516(0xb9))/0x6*(parseInt(_0x57c516(0xb3))/0x7)+parseInt(_0x57c516(0xcc))/0x8+-parseInt(_0x57c516(0xb8))/0x9+-parseInt(_0x57c516(0xca))/0xa*(-parseInt(_0x57c516(0xc4))/0xb);if(_0x37eca9===_0x28555c)break;else _0x3da99e['push'](_0x3da99e['shift']());}catch(_0x17856b){_0x3da99e['push'](_0x3da99e['shift']());}}}(a154_0x4415,0xba9f6));function a154_0x1ef5(_0x247a7d,_0x4c6217){_0x247a7d=_0x247a7d-0xb0;const _0x441575=a154_0x4415();let _0x1ef521=_0x441575[_0x247a7d];return _0x1ef521;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x552dbb){const _0x188831=a154_0x1ef5;if(_0x552dbb===_0x188831(0xc5))return _0x188831(0xb2);if(_0x552dbb==='.xml')return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x6b587c,_0x4ad9fe){const _0x35c8a0=a154_0x1ef5,_0x31db8d=[];try{const _0x5d23b8=await readdir(_0x6b587c,{'withFileTypes':!![]});for(const _0x1401f6 of _0x5d23b8){const _0x1818b8=join(_0x6b587c,_0x1401f6[_0x35c8a0(0xba)]);if(_0x1401f6[_0x35c8a0(0xb5)]()){_0x31db8d[_0x35c8a0(0xc8)](...await scanSqlFilesRecursively(_0x1818b8,_0x4ad9fe));continue;}if(!_0x1401f6[_0x35c8a0(0xc3)]())continue;const _0x312ffc=extname(_0x1401f6[_0x35c8a0(0xba)])[_0x35c8a0(0xcf)](),_0x58425e=extensionToMode(_0x312ffc);if(!_0x58425e)continue;const _0x5e6b86=relative(_0x4ad9fe,_0x1818b8)[_0x35c8a0(0xbf)](/\\/g,'/'),_0x4b47ee=_0x5e6b86[_0x35c8a0(0xbc)]('/')[_0x35c8a0(0xbb)](Boolean),_0x42d8f7=parseSqlPath(_0x4b47ee,_0x1401f6['name'],_0x312ffc);if(!_0x42d8f7)continue;_0x31db8d[_0x35c8a0(0xc8)]({'sqlCode':_0x42d8f7[_0x35c8a0(0xc0)],'sqlName':_0x42d8f7['sqlName'],'dbDirectory':_0x4b47ee[0x0],'filePath':_0x1818b8,'relativePath':_0x5e6b86,'lockKey':_0x42d8f7[_0x35c8a0(0xc0)],'mode':_0x58425e});}}catch(_0x320f2d){if(_0x320f2d[_0x35c8a0(0xb0)]!=='ENOENT')throw _0x320f2d;}return _0x31db8d;}export async function scanLocalSqlQueries(_0x119ae6){const _0x114cc4=a154_0x1ef5;return scanSqlFilesRecursively(_0x119ae6[_0x114cc4(0xc9)],_0x119ae6[_0x114cc4(0xc9)]);}function a154_0x4415(){const _0x33edf0=['isDirectory','3grHTCU','60iRlrpk','3317274gzdFWw','19380umnwZq','name','filter','split','dbName','test','replace','sqlCode','length','sqlName','isFile','58927JMlAYy','.sql','mode','946072aRpIwD','push','sqlRootDir','3980kyUdqd','indexOf','2595032Rtvkmo','3854025MbMcQy','slice','toLowerCase','dbId','code','24238eeDdOK','sql','2261kVuSsx','path'];a154_0x4415=function(){return _0x33edf0;};return a154_0x4415();}export function resolveLocalSqlFilePath(_0x1cfa56,_0x74db9d,_0x1799f6){const _0x530b08=a154_0x1ef5,_0x2bc228=_0x1799f6?.[_0x530b08(0xb4)]||(_0x1799f6?.[_0x530b08(0xc2)]||_0x1799f6?.['dbName']?buildSqlRelativePath(_0x74db9d,_0x1799f6?.['sqlName'],_0x1799f6?.[_0x530b08(0xbd)],_0x1799f6?.[_0x530b08(0xc6)]||_0x530b08(0xb2),_0x1799f6?.[_0x530b08(0xd0)]):buildDefaultSqlFileName(_0x74db9d,_0x1799f6?.[_0x530b08(0xc6)]||'sql'));return join(_0x1cfa56['sqlRootDir'],_0x2bc228);}export async function directoryExists(_0x239285){const _0x40a423=a154_0x1ef5;try{const _0x46b560=await stat(_0x239285);return _0x46b560[_0x40a423(0xb5)]();}catch{return![];}}function parseSqlPath(_0x86d7b3,_0x42d428,_0x1fcde1){const _0x420f03=a154_0x1ef5,_0x31976c=_0x42d428[_0x420f03(0xce)](0x0,-_0x1fcde1[_0x420f03(0xc1)]);if(_0x86d7b3[_0x420f03(0xc1)]<0x2)return null;const _0x44cd83=_0x31976c[_0x420f03(0xcb)]('_');if(_0x44cd83<=0x0||_0x44cd83>=_0x31976c[_0x420f03(0xc1)]-0x1)return null;const _0x2454ed=_0x31976c[_0x420f03(0xce)](0x0,_0x44cd83);if(!isLikelySqlCode(_0x2454ed))return null;return{'sqlCode':_0x2454ed,'sqlName':_0x31976c['slice'](_0x44cd83+0x1)};}function isLikelySqlCode(_0x760a38){const _0x380129=a154_0x1ef5;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x380129(0xbe)](_0x760a38);}
@@ -1 +1 @@
1
- function a155_0x49b6(){const _0x5a0baa=['9187304HZMBEb','2270218PKOPRq','1xzoZmH','utf8','5615erAtgv','hex','createHash','6GFajeX','13340144RkBwtV','2636SqbfZG','md5','278146fRTocg','3604365jHAlaO','12894417MtKhKT','430CGIBiS','update'];a155_0x49b6=function(){return _0x5a0baa;};return a155_0x49b6();}function a155_0x5d0d(_0x1b1c3d,_0x1e5e93){_0x1b1c3d=_0x1b1c3d-0x126;const _0x49b6cd=a155_0x49b6();let _0x5d0d66=_0x49b6cd[_0x1b1c3d];return _0x5d0d66;}(function(_0xb8d12f,_0x6851d0){const _0x594977=a155_0x5d0d,_0x168cc1=_0xb8d12f();while(!![]){try{const _0x4cf069=parseInt(_0x594977(0x133))/0x1*(parseInt(_0x594977(0x132))/0x2)+parseInt(_0x594977(0x12d))/0x3+-parseInt(_0x594977(0x12a))/0x4*(-parseInt(_0x594977(0x135))/0x5)+-parseInt(_0x594977(0x128))/0x6*(parseInt(_0x594977(0x131))/0x7)+parseInt(_0x594977(0x129))/0x8+-parseInt(_0x594977(0x12e))/0x9+parseInt(_0x594977(0x12f))/0xa*(-parseInt(_0x594977(0x12c))/0xb);if(_0x4cf069===_0x6851d0)break;else _0x168cc1['push'](_0x168cc1['shift']());}catch(_0x19d75d){_0x168cc1['push'](_0x168cc1['shift']());}}}(a155_0x49b6,0xde928));import{readFile}from'node:fs/promises';import a155_0x55e5cc from'node:crypto';export function computeSqlContentHash(_0x2d5295){const _0x3f2416=a155_0x5d0d;return a155_0x55e5cc[_0x3f2416(0x127)](_0x3f2416(0x12b))[_0x3f2416(0x130)](_0x2d5295)['digest'](_0x3f2416(0x126));}export async function computeSqlFileHash(_0x1a6585){const _0x30c723=a155_0x5d0d,_0x269508=await readFile(_0x1a6585,_0x30c723(0x134));return computeSqlContentHash(_0x269508);}
1
+ (function(_0x3943e2,_0x2f1fc3){const _0x443a69=a155_0x3ecf,_0xf9bed9=_0x3943e2();while(!![]){try{const _0x359e40=-parseInt(_0x443a69(0xff))/0x1+parseInt(_0x443a69(0xf1))/0x2+-parseInt(_0x443a69(0xf9))/0x3+-parseInt(_0x443a69(0xf6))/0x4*(parseInt(_0x443a69(0xf3))/0x5)+parseInt(_0x443a69(0xfc))/0x6+-parseInt(_0x443a69(0xfe))/0x7*(parseInt(_0x443a69(0xf8))/0x8)+parseInt(_0x443a69(0xf5))/0x9;if(_0x359e40===_0x2f1fc3)break;else _0xf9bed9['push'](_0xf9bed9['shift']());}catch(_0x56a892){_0xf9bed9['push'](_0xf9bed9['shift']());}}}(a155_0x1b2a,0xd0e9c));import{readFile}from'node:fs/promises';function a155_0x1b2a(){const _0x2c58e7=['update','1919874GKSKqs','md5','22785HptLKm','941573eYEUQI','535156kXOVlg','createHash','110835PxLVPA','utf8','26833977EBradc','28WpEDXD','digest','1904vAxrtE','2525910HmPvxl','hex'];a155_0x1b2a=function(){return _0x2c58e7;};return a155_0x1b2a();}function a155_0x3ecf(_0x48b5de,_0x448d6c){_0x48b5de=_0x48b5de-0xf1;const _0x1b2a5e=a155_0x1b2a();let _0x3ecf00=_0x1b2a5e[_0x48b5de];return _0x3ecf00;}import a155_0x5c94a5 from'node:crypto';export function computeSqlContentHash(_0x1926b7){const _0x593cb5=a155_0x3ecf;return a155_0x5c94a5[_0x593cb5(0xf2)](_0x593cb5(0xfd))[_0x593cb5(0xfb)](_0x1926b7)[_0x593cb5(0xf7)](_0x593cb5(0xfa));}export async function computeSqlFileHash(_0x528cb6){const _0x4ca7e3=a155_0x3ecf,_0x2c286e=await readFile(_0x528cb6,_0x4ca7e3(0xf4));return computeSqlContentHash(_0x2c286e);}
@@ -1 +1 @@
1
- (function(_0x284a18,_0x24b432){const _0x2f7706=a156_0x36c8,_0x4c83dd=_0x284a18();while(!![]){try{const _0x59de8e=parseInt(_0x2f7706(0xa4))/0x1*(-parseInt(_0x2f7706(0xa3))/0x2)+parseInt(_0x2f7706(0x90))/0x3*(parseInt(_0x2f7706(0xa0))/0x4)+-parseInt(_0x2f7706(0x9c))/0x5*(parseInt(_0x2f7706(0x8e))/0x6)+parseInt(_0x2f7706(0x8d))/0x7+-parseInt(_0x2f7706(0x92))/0x8*(-parseInt(_0x2f7706(0x8f))/0x9)+parseInt(_0x2f7706(0x99))/0xa+-parseInt(_0x2f7706(0xa1))/0xb;if(_0x59de8e===_0x24b432)break;else _0x4c83dd['push'](_0x4c83dd['shift']());}catch(_0x301099){_0x4c83dd['push'](_0x4c83dd['shift']());}}}(a156_0x17e4,0x277f0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a156_0x36c8(_0x3800df,_0x5beca1){_0x3800df=_0x3800df-0x8d;const _0x17e48e=a156_0x17e4();let _0x36c830=_0x17e48e[_0x3800df];return _0x36c830;}function a156_0x17e4(){const _0x1f866a=['apps','sqls','5OgwvKJ','\x22\x20vs\x20lock\x20\x22','parse','sqlRoot','1316bwDuwe','3782680swfzbS','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','242906dksNcd','1xuiYNJ','lastSync','1871520UyZslz','377466McSWRG','45mhfduE','2229dHoubq','stringify','264720vBATjT','utf8','ENOENT','code','\x22.\x20','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','127630shNUmq'];a156_0x17e4=function(){return _0x1f866a;};return a156_0x17e4();}export function ensureSqlLockScope(_0x3e5320,_0x4dc146,_0x2fe9fc,_0x25c61d){const _0x2cb53c=a156_0x36c8,_0x1ae983=_0x3e5320??createEmptySqlLock();let _0x168d83=_0x1ae983[_0x2cb53c(0x9a)][_0x4dc146];if(!_0x168d83)return _0x168d83={'sqlRoot':_0x2fe9fc,'lastSync':'','sqls':{}},_0x1ae983[_0x2cb53c(0x9a)][_0x4dc146]=_0x168d83,{'lockData':_0x1ae983,'appLock':_0x168d83};if(!_0x168d83[_0x2cb53c(0x9f)])_0x168d83[_0x2cb53c(0x9f)]=_0x2fe9fc;else{if(_0x168d83['sqlRoot']!==_0x2fe9fc)throw new Error(_0x25c61d+_0x2cb53c(0x98)+_0x2fe9fc+_0x2cb53c(0x9d)+_0x168d83[_0x2cb53c(0x9f)]+_0x2cb53c(0x96)+_0x2cb53c(0xa2));}return!_0x168d83[_0x2cb53c(0x9b)]&&(_0x168d83['sqls']={}),!_0x168d83[_0x2cb53c(0xa5)]&&(_0x168d83[_0x2cb53c(0xa5)]=''),{'lockData':_0x1ae983,'appLock':_0x168d83};}export async function readSqlLockFile(_0x35e525){const _0x4876db=a156_0x36c8;try{const _0x40f0cf=await readFile(_0x35e525,_0x4876db(0x93));return JSON[_0x4876db(0x9e)](_0x40f0cf);}catch(_0x5cc5a8){if(_0x5cc5a8[_0x4876db(0x95)]===_0x4876db(0x94))return null;throw new Error(_0x4876db(0x97)+String(_0x5cc5a8));}}export async function writeSqlLockFile(_0x3af18d,_0x2cf1a7){const _0x38324a=a156_0x36c8;await mkdir(dirname(_0x3af18d),{'recursive':!![]}),await writeFile(_0x3af18d,JSON[_0x38324a(0x91)](_0x2cf1a7,null,0x2),'utf8');}
1
+ function a156_0x381c(){const _0x30a53a=[':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','code','6039728CiuOCl','193674Meibwg','3356820usmicC','parse','10229748ZytKRG','114822UvaGPI','1527498XRJCrF','stringify','260ipbxCY','utf8','sqlRoot','sqls','lastSync','\x22\x20vs\x20lock\x20\x22','1ZTQSyz','apps','24xcbsTl','2456780PPVPay','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','ENOENT','22bmGUDG','235ktwWJv'];a156_0x381c=function(){return _0x30a53a;};return a156_0x381c();}(function(_0x245adc,_0x2fb705){const _0x451ffd=a156_0x2190,_0x522a3e=_0x245adc();while(!![]){try{const _0xff21f6=parseInt(_0x451ffd(0x155))/0x1*(parseInt(_0x451ffd(0x158))/0x2)+-parseInt(_0x451ffd(0x149))/0x3+-parseInt(_0x451ffd(0x147))/0x4+parseInt(_0x451ffd(0x144))/0x5*(parseInt(_0x451ffd(0x148))/0x6)+parseInt(_0x451ffd(0x14d))/0x7*(-parseInt(_0x451ffd(0x157))/0x8)+parseInt(_0x451ffd(0x14c))/0x9*(-parseInt(_0x451ffd(0x14f))/0xa)+-parseInt(_0x451ffd(0x143))/0xb*(-parseInt(_0x451ffd(0x14b))/0xc);if(_0xff21f6===_0x2fb705)break;else _0x522a3e['push'](_0x522a3e['shift']());}catch(_0x49aea6){_0x522a3e['push'](_0x522a3e['shift']());}}}(a156_0x381c,0xcbea7));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x8a1407,_0x2a2ab1,_0x1efa4c,_0x2838b6){const _0x5043aa=a156_0x2190,_0xf1b2ca=_0x8a1407??createEmptySqlLock();let _0x694bd6=_0xf1b2ca[_0x5043aa(0x156)][_0x2a2ab1];if(!_0x694bd6)return _0x694bd6={'sqlRoot':_0x1efa4c,'lastSync':'','sqls':{}},_0xf1b2ca[_0x5043aa(0x156)][_0x2a2ab1]=_0x694bd6,{'lockData':_0xf1b2ca,'appLock':_0x694bd6};if(!_0x694bd6['sqlRoot'])_0x694bd6[_0x5043aa(0x151)]=_0x1efa4c;else{if(_0x694bd6[_0x5043aa(0x151)]!==_0x1efa4c)throw new Error(_0x2838b6+_0x5043aa(0x145)+_0x1efa4c+_0x5043aa(0x154)+_0x694bd6[_0x5043aa(0x151)]+'\x22.\x20'+_0x5043aa(0x141));}return!_0x694bd6[_0x5043aa(0x152)]&&(_0x694bd6[_0x5043aa(0x152)]={}),!_0x694bd6['lastSync']&&(_0x694bd6[_0x5043aa(0x153)]=''),{'lockData':_0xf1b2ca,'appLock':_0x694bd6};}function a156_0x2190(_0x1e5cdd,_0x467fd8){_0x1e5cdd=_0x1e5cdd-0x141;const _0x381c92=a156_0x381c();let _0x2190ff=_0x381c92[_0x1e5cdd];return _0x2190ff;}export async function readSqlLockFile(_0x2ac222){const _0x1fb7cf=a156_0x2190;try{const _0x20b1a0=await readFile(_0x2ac222,'utf8');return JSON[_0x1fb7cf(0x14a)](_0x20b1a0);}catch(_0x3416df){if(_0x3416df[_0x1fb7cf(0x146)]===_0x1fb7cf(0x142))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x3416df));}}export async function writeSqlLockFile(_0x46d03a,_0x14460e){const _0x20c3a4=a156_0x2190;await mkdir(dirname(_0x46d03a),{'recursive':!![]}),await writeFile(_0x46d03a,JSON[_0x20c3a4(0x14e)](_0x14460e,null,0x2),_0x20c3a4(0x150));}
@@ -1 +1 @@
1
- (function(_0x548598,_0x11af10){const _0x5f3cd5=a158_0x5d13,_0x3d321e=_0x548598();while(!![]){try{const _0x475867=parseInt(_0x5f3cd5(0xf3))/0x1+-parseInt(_0x5f3cd5(0xef))/0x2*(-parseInt(_0x5f3cd5(0xfa))/0x3)+-parseInt(_0x5f3cd5(0xf7))/0x4*(-parseInt(_0x5f3cd5(0xe9))/0x5)+parseInt(_0x5f3cd5(0xee))/0x6*(parseInt(_0x5f3cd5(0xfb))/0x7)+parseInt(_0x5f3cd5(0xea))/0x8*(parseInt(_0x5f3cd5(0xf9))/0x9)+parseInt(_0x5f3cd5(0xf6))/0xa*(parseInt(_0x5f3cd5(0xf5))/0xb)+-parseInt(_0x5f3cd5(0xf4))/0xc;if(_0x475867===_0x11af10)break;else _0x3d321e['push'](_0x3d321e['shift']());}catch(_0x5b40c5){_0x3d321e['push'](_0x3d321e['shift']());}}}(a158_0xa7cf,0x777e7));export function detectSqlMode(_0x42b009){const _0x3c6546=a158_0x5d13,_0x52e633=_0x42b009[_0x3c6546(0xed)]();if(/^<(select|insert|update|delete)\b/i[_0x3c6546(0xeb)](_0x52e633))return'mybatisXml';return _0x3c6546(0xf0);}export function getSqlFileExtension(_0x1de64f){const _0x3f5cd7=a158_0x5d13;return _0x1de64f===_0x3f5cd7(0xf8)?'.xml':_0x3f5cd7(0xf2);}export function buildDefaultSqlFileName(_0x4b31b6,_0x11f2d6){return''+_0x4b31b6+getSqlFileExtension(_0x11f2d6);}export function sanitizeSqlPathSegment(_0x38ad09,_0x539e18){const _0x23f245=a158_0x5d13,_0x1a2dea=String(_0x38ad09??'')['trim'](),_0x87b31b=_0x1a2dea[_0x23f245(0xe8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x23f245(0xe8)](/-+/g,'-')[_0x23f245(0xe8)](/^\.+/,'')[_0x23f245(0xe8)](/\.+$/,'')[_0x23f245(0xe8)](/^-+/,'')['replace'](/-+$/,'');return _0x87b31b||_0x539e18;}export function buildDbDirectoryName(_0x36f430,_0x1d4318){const _0x5cb2c6=a158_0x5d13;return sanitizeSqlPathSegment(_0x36f430,_0x1d4318!=null?_0x5cb2c6(0xf1)+_0x1d4318:'unknown-db');}function a158_0x5d13(_0x5d68cf,_0x49f35f){_0x5d68cf=_0x5d68cf-0xe8;const _0xa7cf0d=a158_0xa7cf();let _0x5d1370=_0xa7cf0d[_0x5d68cf];return _0x5d1370;}export function buildSqlRelativePath(_0x10de7b,_0xb28ab5,_0x4d755d,_0x1f5270,_0x52adba){const _0x3308ff=a158_0x5d13,_0x56e6e4=buildDbDirectoryName(_0x4d755d,_0x52adba),_0x4fd77e=sanitizeSqlPathSegment(_0x10de7b,_0x3308ff(0xec)),_0x2f9208=sanitizeSqlPathSegment(_0xb28ab5,_0x4fd77e);return _0x56e6e4+'/'+_0x4fd77e+'_'+_0x2f9208+getSqlFileExtension(_0x1f5270);}function a158_0xa7cf(){const _0x4f65a5=['13644tmlqwa','mybatisXml','36RRfJWz','183rFcUam','15323mZFmGA','replace','815JLnIWy','1069936xApEfx','test','unknown-sql','trimStart','582UlpPMA','29098sizssK','sql','db-','.sql','418376QWxIXR','27350184zCOZzV','110KROyOZ','159470MHwcWy'];a158_0xa7cf=function(){return _0x4f65a5;};return a158_0xa7cf();}
1
+ (function(_0x1ad288,_0x37b215){const _0x43e64f=a158_0x1301,_0x507d9c=_0x1ad288();while(!![]){try{const _0x5d791d=-parseInt(_0x43e64f(0x74))/0x1+-parseInt(_0x43e64f(0x73))/0x2*(parseInt(_0x43e64f(0x70))/0x3)+-parseInt(_0x43e64f(0x6d))/0x4+-parseInt(_0x43e64f(0x67))/0x5+parseInt(_0x43e64f(0x64))/0x6*(-parseInt(_0x43e64f(0x6c))/0x7)+-parseInt(_0x43e64f(0x66))/0x8+parseInt(_0x43e64f(0x6f))/0x9*(parseInt(_0x43e64f(0x68))/0xa);if(_0x5d791d===_0x37b215)break;else _0x507d9c['push'](_0x507d9c['shift']());}catch(_0x467a63){_0x507d9c['push'](_0x507d9c['shift']());}}}(a158_0x2278,0x613ac));function a158_0x1301(_0x1cb7f6,_0x4233d9){_0x1cb7f6=_0x1cb7f6-0x64;const _0x227814=a158_0x2278();let _0x13011d=_0x227814[_0x1cb7f6];return _0x13011d;}export function detectSqlMode(_0x3946b9){const _0x54941a=a158_0x1301,_0x4c40ff=_0x3946b9[_0x54941a(0x6a)]();if(/^<(select|insert|update|delete)\b/i[_0x54941a(0x6e)](_0x4c40ff))return _0x54941a(0x75);return _0x54941a(0x69);}function a158_0x2278(){const _0x3892ed=['1559730ogSAdh','28125610nlIczb','sql','trimStart','db-','84TgtqWR','1356748jtidOv','test','9TumElT','840507TrYBUD','unknown-db','replace','4QceUyV','318219rrkftj','mybatisXml','96168ZAQbtq','trim','5538264XywyEf'];a158_0x2278=function(){return _0x3892ed;};return a158_0x2278();}export function getSqlFileExtension(_0x436bf6){const _0x523567=a158_0x1301;return _0x436bf6===_0x523567(0x75)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x1ac966,_0x367832){return''+_0x1ac966+getSqlFileExtension(_0x367832);}export function sanitizeSqlPathSegment(_0x482d01,_0x48b40e){const _0x5174f8=a158_0x1301,_0x54b194=String(_0x482d01??'')[_0x5174f8(0x65)](),_0x15e1ad=_0x54b194[_0x5174f8(0x72)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5174f8(0x72)](/\s+/g,'-')[_0x5174f8(0x72)](/-+/g,'-')[_0x5174f8(0x72)](/^\.+/,'')[_0x5174f8(0x72)](/\.+$/,'')[_0x5174f8(0x72)](/^-+/,'')[_0x5174f8(0x72)](/-+$/,'');return _0x15e1ad||_0x48b40e;}export function buildDbDirectoryName(_0x4b6f73,_0x58bb59){const _0x433b8b=a158_0x1301;return sanitizeSqlPathSegment(_0x4b6f73,_0x58bb59!=null?_0x433b8b(0x6b)+_0x58bb59:_0x433b8b(0x71));}export function buildSqlRelativePath(_0x187c9d,_0x2ce2ec,_0x4195bc,_0x481658,_0x4e01f8){const _0x1b1134=buildDbDirectoryName(_0x4195bc,_0x4e01f8),_0x24bb15=sanitizeSqlPathSegment(_0x187c9d,'unknown-sql'),_0x3c2c0f=sanitizeSqlPathSegment(_0x2ce2ec,_0x24bb15);return _0x1b1134+'/'+_0x24bb15+'_'+_0x3c2c0f+getSqlFileExtension(_0x481658);}
@@ -1 +1 @@
1
- (function(_0xd34cd6,_0x327e85){const _0x27114b=a159_0x2020,_0x416b08=_0xd34cd6();while(!![]){try{const _0x4ba197=-parseInt(_0x27114b(0x7f))/0x1*(-parseInt(_0x27114b(0x90))/0x2)+parseInt(_0x27114b(0x8d))/0x3*(-parseInt(_0x27114b(0x73))/0x4)+parseInt(_0x27114b(0x85))/0x5*(parseInt(_0x27114b(0x80))/0x6)+-parseInt(_0x27114b(0x79))/0x7*(-parseInt(_0x27114b(0x86))/0x8)+-parseInt(_0x27114b(0x6e))/0x9+-parseInt(_0x27114b(0x8b))/0xa+-parseInt(_0x27114b(0x8f))/0xb*(-parseInt(_0x27114b(0x78))/0xc);if(_0x4ba197===_0x327e85)break;else _0x416b08['push'](_0x416b08['shift']());}catch(_0x19c5cf){_0x416b08['push'](_0x416b08['shift']());}}}(a159_0x277c,0x4305c));export function detectSqlType(_0x418722){const _0x353ae5=a159_0x2020;if(!_0x418722?.[_0x353ae5(0x93)]())return{'type':_0x353ae5(0x84),'isSelectOnly':![],'isDangerous':![],'reason':_0x353ae5(0x7c)};const _0x41d07e=_0x418722[_0x353ae5(0x8a)](/#\{[^}]*\}/g,'?')[_0x353ae5(0x8a)](/\$\{[^}]*\}/g,'?')[_0x353ae5(0x8a)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x353ae5(0x8a)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x667af6=_0x41d07e[_0x353ae5(0x81)]('\x0a');let _0x3136f1='';for(const _0x41d2d0 of _0x667af6){const _0x5458f6=_0x41d2d0['trim']();if(!_0x5458f6||_0x5458f6[_0x353ae5(0x8e)]('--')||_0x5458f6['startsWith']('/*'))continue;_0x3136f1=_0x5458f6;break;}const _0x2dccc5=_0x3136f1['toUpperCase']();if(_0x2dccc5[_0x353ae5(0x8e)]('SELECT')||_0x2dccc5[_0x353ae5(0x8e)]('WITH')){const _0x4e160e=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x41d07e);return{'type':_0x353ae5(0x91),'isSelectOnly':!_0x4e160e,'isDangerous':_0x4e160e,'reason':_0x4e160e?_0x353ae5(0x74):undefined};}if(_0x2dccc5[_0x353ae5(0x8e)](_0x353ae5(0x76)))return{'type':_0x353ae5(0x76),'isSelectOnly':![],'isDangerous':![]};if(_0x2dccc5[_0x353ae5(0x8e)]('UPDATE'))return{'type':_0x353ae5(0x88),'isSelectOnly':![],'isDangerous':![]};if(_0x2dccc5['startsWith']('DELETE'))return{'type':_0x353ae5(0x71),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x353ae5(0x75)](_0x2dccc5))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x353ae5(0x6f)};return{'type':_0x353ae5(0x84),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42d8dc){const _0xe5fe27=a159_0x2020,_0xbdee89=_0x42d8dc['replace'](/#\{[^}]*\}/g,'?')[_0xe5fe27(0x8a)](/\$\{[^}]*\}/g,'?')[_0xe5fe27(0x8a)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x533ca9=[],_0x50f64d=_0xbdee89[_0xe5fe27(0x83)](/FROM\s+([^\s,)(]+)/i);if(_0x50f64d?.[0x1])_0x533ca9[_0xe5fe27(0x8c)](_0x50f64d[0x1][_0xe5fe27(0x8a)](/[`"]/g,''));for(const _0x56f34e of _0xbdee89['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2c522b=_0x56f34e[0x1]?.[_0xe5fe27(0x8a)](/[`"]/g,'');if(_0x2c522b&&!_0x533ca9[_0xe5fe27(0x7e)](_0x2c522b))_0x533ca9[_0xe5fe27(0x8c)](_0x2c522b);}const _0x3913ee=_0xbdee89[_0xe5fe27(0x83)](/INTO\s+([^\s(]+)/i);if(_0x3913ee?.[0x1]){const _0x577810=_0x3913ee[0x1]['replace'](/[`"]/g,'');if(!_0x533ca9[_0xe5fe27(0x7e)](_0x577810))_0x533ca9[_0xe5fe27(0x8c)](_0x577810);}const _0x1725bc=_0xbdee89[_0xe5fe27(0x83)](/UPDATE\s+([^\s,)(]+)/i);if(_0x1725bc?.[0x1]){const _0x3dd94a=_0x1725bc[0x1]['replace'](/[`"]/g,'');if(!_0x533ca9[_0xe5fe27(0x7e)](_0x3dd94a))_0x533ca9[_0xe5fe27(0x8c)](_0x3dd94a);}return _0x533ca9;}function a159_0x2020(_0x4b02e3,_0x429d11){_0x4b02e3=_0x4b02e3-0x6e;const _0x277c77=a159_0x277c();let _0x2020f5=_0x277c77[_0x4b02e3];return _0x2020f5;}function extractParameters(_0x51671f){const _0x4fac71=a159_0x2020,_0x37b7d4=new Set();for(const _0x53baab of _0x51671f[_0x4fac71(0x77)](/#\{(\w+)\}/g))if(_0x53baab[0x1])_0x37b7d4[_0x4fac71(0x7a)](_0x53baab[0x1]);for(const _0x3f1b42 of _0x51671f[_0x4fac71(0x77)](/\$\{(\w+)\}/g))if(_0x3f1b42[0x1])_0x37b7d4[_0x4fac71(0x7a)](_0x3f1b42[0x1]);return Array[_0x4fac71(0x89)](_0x37b7d4);}export function validateSql(_0x5cb4f5){const _0x473313=a159_0x2020,_0x80688=detectSqlType(_0x5cb4f5),_0x9b6c04=extractTables(_0x5cb4f5),_0x234c1a=extractParameters(_0x5cb4f5);if(_0x80688[_0x473313(0x7b)])return{'valid':![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x80688['reason']||_0x80688[_0x473313(0x7d)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x80688[_0x473313(0x7d)]==='UNKNOWN')return{'valid':![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x473313(0x72)};return{'valid':!![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x80688[_0x473313(0x7d)]+_0x473313(0x82)+(_0x9b6c04[_0x473313(0x70)]?_0x9b6c04[_0x473313(0x92)](',\x20'):'unknown\x20table(s)')+(_0x234c1a[_0x473313(0x70)]?_0x473313(0x87)+_0x234c1a[_0x473313(0x92)](',\x20'):'')};}function a159_0x277c(){const _0x23be94=['8KDQdxs','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','test','INSERT','matchAll','235044DmsFuP','707oteyAN','add','isDangerous','SQL\x20content\x20is\x20empty','type','includes','43SriENd','336yWyFNA','split','\x20query\x20targeting\x20','match','UNKNOWN','34160MHUaMH','34328JjszGl','\x20with\x20parameters:\x20','UPDATE','from','replace','3819520ILWeuT','push','346110rnybSr','startsWith','88jMDJsq','1408qYAfyH','SELECT','join','trim','1041615KolAlq','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','length','DELETE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'];a159_0x277c=function(){return _0x23be94;};return a159_0x277c();}
1
+ (function(_0x3096a5,_0x36f9d0){const _0x25e164=a159_0x2e32,_0x507443=_0x3096a5();while(!![]){try{const _0xabfd8=-parseInt(_0x25e164(0x189))/0x1+-parseInt(_0x25e164(0x19b))/0x2*(-parseInt(_0x25e164(0x190))/0x3)+-parseInt(_0x25e164(0x1ae))/0x4*(-parseInt(_0x25e164(0x18b))/0x5)+-parseInt(_0x25e164(0x1a6))/0x6*(parseInt(_0x25e164(0x1a3))/0x7)+parseInt(_0x25e164(0x19c))/0x8+parseInt(_0x25e164(0x1ab))/0x9*(parseInt(_0x25e164(0x1a0))/0xa)+parseInt(_0x25e164(0x1ac))/0xb*(-parseInt(_0x25e164(0x18d))/0xc);if(_0xabfd8===_0x36f9d0)break;else _0x507443['push'](_0x507443['shift']());}catch(_0x4f3c3c){_0x507443['push'](_0x507443['shift']());}}}(a159_0x23df,0x9b15c));export function detectSqlType(_0x101f83){const _0x2d856f=a159_0x2e32;if(!_0x101f83?.[_0x2d856f(0x18f)]())return{'type':_0x2d856f(0x19d),'isSelectOnly':![],'isDangerous':![],'reason':_0x2d856f(0x196)};const _0x2478c2=_0x101f83[_0x2d856f(0x1ad)](/#\{[^}]*\}/g,'?')[_0x2d856f(0x1ad)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2d856f(0x1ad)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x528723=_0x2478c2[_0x2d856f(0x193)]('\x0a');let _0x371a76='';for(const _0x17a0e8 of _0x528723){const _0x5315c8=_0x17a0e8[_0x2d856f(0x18f)]();if(!_0x5315c8||_0x5315c8[_0x2d856f(0x1a5)]('--')||_0x5315c8['startsWith']('/*'))continue;_0x371a76=_0x5315c8;break;}const _0x561667=_0x371a76[_0x2d856f(0x1b0)]();if(_0x561667[_0x2d856f(0x1a5)](_0x2d856f(0x1b4))||_0x561667[_0x2d856f(0x1a5)](_0x2d856f(0x1a7))){const _0x56dc85=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2d856f(0x197)](_0x2478c2);return{'type':'SELECT','isSelectOnly':!_0x56dc85,'isDangerous':_0x56dc85,'reason':_0x56dc85?_0x2d856f(0x1b2):undefined};}if(_0x561667[_0x2d856f(0x1a5)](_0x2d856f(0x195)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x561667[_0x2d856f(0x1a5)](_0x2d856f(0x19a)))return{'type':_0x2d856f(0x19a),'isSelectOnly':![],'isDangerous':![]};if(_0x561667[_0x2d856f(0x1a5)]('DELETE'))return{'type':_0x2d856f(0x1aa),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2d856f(0x1a8)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2d856f(0x197)](_0x561667))return{'type':_0x2d856f(0x19f),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2d856f(0x1b3)};return{'type':_0x2d856f(0x19d),'isSelectOnly':![],'isDangerous':![]};}function a159_0x23df(){const _0x45069b=['join','DELETE','134928DWwcCB','374QkdYQd','replace','38940rOBPYD','match','toUpperCase','matchAll','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SELECT','725483suvKcP','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','295LxhIYR','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','686676pxamxb','add','trim','3011034BzaghI','isDangerous','reason','split','includes','INSERT','SQL\x20content\x20is\x20empty','test','length','from','UPDATE','2RxLyMo','8561248xmxEyh','UNKNOWN','\x20with\x20parameters:\x20','DDL','740WOdwCd','unknown\x20table(s)','push','42qPdVJI','type','startsWith','451314tCAHeX','WITH','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a159_0x23df=function(){return _0x45069b;};return a159_0x23df();}function a159_0x2e32(_0x13efe1,_0x5be17e){_0x13efe1=_0x13efe1-0x189;const _0x23dfe5=a159_0x23df();let _0x2e32c6=_0x23dfe5[_0x13efe1];return _0x2e32c6;}function extractTables(_0x217123){const _0x13e80b=a159_0x2e32,_0x51dd03=_0x217123['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x13e80b(0x1ad)](/\/\*[\s\S]*?\*\//g,''),_0x26dabd=[],_0x20513e=_0x51dd03[_0x13e80b(0x1af)](/FROM\s+([^\s,)(]+)/i);if(_0x20513e?.[0x1])_0x26dabd[_0x13e80b(0x1a2)](_0x20513e[0x1][_0x13e80b(0x1ad)](/[`"]/g,''));for(const _0x287e8b of _0x51dd03[_0x13e80b(0x1b1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x3ebfa1=_0x287e8b[0x1]?.[_0x13e80b(0x1ad)](/[`"]/g,'');if(_0x3ebfa1&&!_0x26dabd[_0x13e80b(0x194)](_0x3ebfa1))_0x26dabd[_0x13e80b(0x1a2)](_0x3ebfa1);}const _0x52a511=_0x51dd03[_0x13e80b(0x1af)](/INTO\s+([^\s(]+)/i);if(_0x52a511?.[0x1]){const _0x998f94=_0x52a511[0x1][_0x13e80b(0x1ad)](/[`"]/g,'');if(!_0x26dabd[_0x13e80b(0x194)](_0x998f94))_0x26dabd[_0x13e80b(0x1a2)](_0x998f94);}const _0x5b3eba=_0x51dd03['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x5b3eba?.[0x1]){const _0x33c0fd=_0x5b3eba[0x1]['replace'](/[`"]/g,'');if(!_0x26dabd['includes'](_0x33c0fd))_0x26dabd['push'](_0x33c0fd);}return _0x26dabd;}function extractParameters(_0x3bdd3d){const _0x677cc0=a159_0x2e32,_0x50bb36=new Set();for(const _0x2cfc5f of _0x3bdd3d['matchAll'](/#\{(\w+)\}/g))if(_0x2cfc5f[0x1])_0x50bb36[_0x677cc0(0x18e)](_0x2cfc5f[0x1]);for(const _0x8c19c6 of _0x3bdd3d[_0x677cc0(0x1b1)](/\$\{(\w+)\}/g))if(_0x8c19c6[0x1])_0x50bb36[_0x677cc0(0x18e)](_0x8c19c6[0x1]);return Array[_0x677cc0(0x199)](_0x50bb36);}export function validateSql(_0x397f7f){const _0x34088b=a159_0x2e32,_0x3b061f=detectSqlType(_0x397f7f),_0x356ba9=extractTables(_0x397f7f),_0x4befbd=extractParameters(_0x397f7f);if(_0x3b061f[_0x34088b(0x191)])return{'valid':![],'sqlType':_0x3b061f,'tables':_0x356ba9,'parameters':_0x4befbd,'message':_0x3b061f[_0x34088b(0x192)]||_0x3b061f[_0x34088b(0x1a4)]+_0x34088b(0x18a)};if(_0x3b061f[_0x34088b(0x1a4)]===_0x34088b(0x19d))return{'valid':![],'sqlType':_0x3b061f,'tables':_0x356ba9,'parameters':_0x4befbd,'message':_0x34088b(0x18c)};return{'valid':!![],'sqlType':_0x3b061f,'tables':_0x356ba9,'parameters':_0x4befbd,'message':_0x3b061f['type']+'\x20query\x20targeting\x20'+(_0x356ba9[_0x34088b(0x198)]?_0x356ba9[_0x34088b(0x1a9)](',\x20'):_0x34088b(0x1a1))+(_0x4befbd[_0x34088b(0x198)]?_0x34088b(0x19e)+_0x4befbd[_0x34088b(0x1a9)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a160_0x5baa85=a160_0x34ec;function a160_0x34ec(_0x3ba42d,_0x56208e){_0x3ba42d=_0x3ba42d-0x1e4;const _0x590b42=a160_0x590b();let _0x34ec95=_0x590b42[_0x3ba42d];return _0x34ec95;}(function(_0x5c822a,_0x9f1d6e){const _0x4463e2=a160_0x34ec,_0x131ec8=_0x5c822a();while(!![]){try{const _0x22f3e7=-parseInt(_0x4463e2(0x1e9))/0x1*(-parseInt(_0x4463e2(0x1e4))/0x2)+parseInt(_0x4463e2(0x1ee))/0x3*(-parseInt(_0x4463e2(0x1e6))/0x4)+-parseInt(_0x4463e2(0x1ef))/0x5+parseInt(_0x4463e2(0x1e5))/0x6+parseInt(_0x4463e2(0x1f0))/0x7+parseInt(_0x4463e2(0x1f1))/0x8+-parseInt(_0x4463e2(0x1eb))/0x9;if(_0x22f3e7===_0x9f1d6e)break;else _0x131ec8['push'](_0x131ec8['shift']());}catch(_0x5dfd46){_0x131ec8['push'](_0x131ec8['shift']());}}}(a160_0x590b,0xd050f));function a160_0x590b(){const _0x4a5594=['16RyezSL','4807398EWjbhs','1400248iyrgxS','join','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','102139aiSnJh','Set\x20appcode\x20via\x20`','946008MfyYab','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','9dmRYEs','6376800clkfWJ','5666227ZZmpfN','6848920zYsDAt','Tip:\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20'];a160_0x590b=function(){return _0x4a5594;};return a160_0x590b();}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':'Run\x20`'+CLI_BIN_NAME+a160_0x5baa85(0x1ec),'configMissingHint':[a160_0x5baa85(0x1ea)+CLI_BIN_NAME+a160_0x5baa85(0x1ed),a160_0x5baa85(0x1f2)+CLI_BIN_NAME+a160_0x5baa85(0x1e8)][a160_0x5baa85(0x1e7)](a160_0x5baa85(0x1f3)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a160_0x34b441=a160_0x1e7c;(function(_0x2c25c0,_0x520943){const _0x342bd0=a160_0x1e7c,_0x56e582=_0x2c25c0();while(!![]){try{const _0x3ca131=parseInt(_0x342bd0(0x195))/0x1+-parseInt(_0x342bd0(0x194))/0x2*(-parseInt(_0x342bd0(0x19a))/0x3)+parseInt(_0x342bd0(0x192))/0x4*(parseInt(_0x342bd0(0x18f))/0x5)+parseInt(_0x342bd0(0x196))/0x6+parseInt(_0x342bd0(0x191))/0x7*(-parseInt(_0x342bd0(0x18e))/0x8)+parseInt(_0x342bd0(0x19e))/0x9*(-parseInt(_0x342bd0(0x18d))/0xa)+-parseInt(_0x342bd0(0x19c))/0xb;if(_0x3ca131===_0x520943)break;else _0x56e582['push'](_0x56e582['shift']());}catch(_0x13c25b){_0x56e582['push'](_0x56e582['shift']());}}}(a160_0x8123,0x46eaf));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a160_0x8123(){const _0xe01ce9=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1842EdLThW','236138XIkrfx','744840vZinXH','Set\x20appcode\x20via\x20`','Run\x20`','Tip:\x20`','1086nEfjJb','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1881022kCcZUk','join','45tHABlW','416450MwTbIz','928vaLmrt','230ZXQttI','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','17122cRFDQX','22588AYWQjO'];a160_0x8123=function(){return _0xe01ce9;};return a160_0x8123();}function a160_0x1e7c(_0xea7382,_0x4c9fee){_0xea7382=_0xea7382-0x18d;const _0x8123ad=a160_0x8123();let _0x1e7ce6=_0x8123ad[_0xea7382];return _0x1e7ce6;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a160_0x34b441(0x198)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a160_0x34b441(0x197)+CLI_BIN_NAME+a160_0x34b441(0x193),a160_0x34b441(0x199)+CLI_BIN_NAME+a160_0x34b441(0x19b)][a160_0x34b441(0x19d)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a160_0x34b441(0x190)});
@@ -1 +1 @@
1
- (function(_0x939189,_0x2da54a){var _0x4b1acb=a161_0x11ca,_0x5e5947=_0x939189();while(!![]){try{var _0x459799=parseInt(_0x4b1acb(0x1a8))/0x1+parseInt(_0x4b1acb(0x1a9))/0x2+-parseInt(_0x4b1acb(0x1ab))/0x3*(-parseInt(_0x4b1acb(0x1af))/0x4)+-parseInt(_0x4b1acb(0x1a7))/0x5*(-parseInt(_0x4b1acb(0x1aa))/0x6)+parseInt(_0x4b1acb(0x1ae))/0x7+parseInt(_0x4b1acb(0x1ac))/0x8*(parseInt(_0x4b1acb(0x1b0))/0x9)+-parseInt(_0x4b1acb(0x1ad))/0xa;if(_0x459799===_0x2da54a)break;else _0x5e5947['push'](_0x5e5947['shift']());}catch(_0x448e13){_0x5e5947['push'](_0x5e5947['shift']());}}}(a161_0x4af1,0x5cb8a));function a161_0x4af1(){var _0x2d0f7c=['365zVbjfE','137429ALxVgo','1016314TNJZNS','59454dVVaAn','77829pFAbpK','1801904RAqAqK','20103570cOzeSu','4663729pmIgLD','20YjVhDT','9VhQRym'];a161_0x4af1=function(){return _0x2d0f7c;};return a161_0x4af1();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a161_0x11ca(_0x2ede95,_0x3fb262){_0x2ede95=_0x2ede95-0x1a7;var _0x4af130=a161_0x4af1();var _0x11caa2=_0x4af130[_0x2ede95];return _0x11caa2;}import{buildAllFlags as a161_0x5e963}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3a02ca){return a161_0x5e963(_0x3a02ca,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x278d80,_0xe4412f){var _0x4ef137=a161_0x1af3,_0x19392c=_0x278d80();while(!![]){try{var _0x57200e=parseInt(_0x4ef137(0x6e))/0x1*(parseInt(_0x4ef137(0x66))/0x2)+-parseInt(_0x4ef137(0x6f))/0x3*(parseInt(_0x4ef137(0x70))/0x4)+parseInt(_0x4ef137(0x6b))/0x5+parseInt(_0x4ef137(0x69))/0x6*(-parseInt(_0x4ef137(0x67))/0x7)+-parseInt(_0x4ef137(0x6a))/0x8*(-parseInt(_0x4ef137(0x6d))/0x9)+parseInt(_0x4ef137(0x68))/0xa+-parseInt(_0x4ef137(0x6c))/0xb;if(_0x57200e===_0xe4412f)break;else _0x19392c['push'](_0x19392c['shift']());}catch(_0x476a8d){_0x19392c['push'](_0x19392c['shift']());}}}(a161_0x28ee,0x757ee));function a161_0x1af3(_0x5a8a5d,_0x11ba68){_0x5a8a5d=_0x5a8a5d-0x66;var _0x28ee0c=a161_0x28ee();var _0x1af326=_0x28ee0c[_0x5a8a5d];return _0x1af326;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a161_0x4f32af}from'@lovrabet/cli-framework';function a161_0x28ee(){var _0x3b205c=['1589588CEHXlE','99ZaamNl','6TtpWnL','3VbLodN','2292544ddGorz','12406KrPvmT','21xfpzsg','5440610vRAdgU','813060XGJELb','257200PZHdxS','3352535iezZhw'];a161_0x28ee=function(){return _0x3b205c;};return a161_0x28ee();}export function buildAllFlags(_0x494361){return a161_0x4f32af(_0x494361,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a162_0x5be055=a162_0x5403;(function(_0x533737,_0x16498f){const _0xcc0fca=a162_0x5403,_0x1d22fd=_0x533737();while(!![]){try{const _0x14c55a=parseInt(_0xcc0fca(0x196))/0x1*(-parseInt(_0xcc0fca(0x19d))/0x2)+-parseInt(_0xcc0fca(0x19f))/0x3*(-parseInt(_0xcc0fca(0x19e))/0x4)+-parseInt(_0xcc0fca(0x199))/0x5+-parseInt(_0xcc0fca(0x1a0))/0x6*(-parseInt(_0xcc0fca(0x198))/0x7)+-parseInt(_0xcc0fca(0x1a2))/0x8*(parseInt(_0xcc0fca(0x1a1))/0x9)+parseInt(_0xcc0fca(0x19a))/0xa+-parseInt(_0xcc0fca(0x197))/0xb*(parseInt(_0xcc0fca(0x19b))/0xc);if(_0x14c55a===_0x16498f)break;else _0x1d22fd['push'](_0x1d22fd['shift']());}catch(_0x93b9e1){_0x1d22fd['push'](_0x1d22fd['shift']());}}}(a162_0x507c,0x9b90a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a162_0x5403(_0xbcd885,_0x15fa90){_0xbcd885=_0xbcd885-0x196;const _0x507cf3=a162_0x507c();let _0x5403df=_0x507cf3[_0xbcd885];return _0x5403df;}function a162_0x507c(){const _0x231641=['3492295URwUvO','9299290kYjLRt','12ATzXUI','validateFlags','50deyVoR','88XQbTBu','160764GKHhAi','66anjZWU','909jSlqGv','54176WCkuES','19867KWRkQh','496397LvHheF','287994ewmMSL'];a162_0x507c=function(){return _0x231641;};return a162_0x507c();}export const validateFlags=helpers[a162_0x5be055(0x19c)];
1
+ const a162_0x4116b8=a162_0xde4f;function a162_0xde4f(_0xbc462f,_0x40b8c8){_0xbc462f=_0xbc462f-0x187;const _0x15f71c=a162_0x15f7();let _0xde4f71=_0x15f71c[_0xbc462f];return _0xde4f71;}function a162_0x15f7(){const _0x68df81=['393PDJhAp','472QFnFlT','9498gEGRyf','2370TPsuoB','parseFlags','2116jpHIyy','1797117pmFvbC','420IQIlxp','2188650yOaOnv','129767vRayzf','100323YeUriD','4737424SSgDdL'];a162_0x15f7=function(){return _0x68df81;};return a162_0x15f7();}(function(_0x25a64a,_0x2cde9e){const _0x48baf0=a162_0xde4f,_0x413a7e=_0x25a64a();while(!![]){try{const _0xb65f5b=-parseInt(_0x48baf0(0x18b))/0x1*(parseInt(_0x48baf0(0x190))/0x2)+parseInt(_0x48baf0(0x187))/0x3+-parseInt(_0x48baf0(0x18a))/0x4+parseInt(_0x48baf0(0x192))/0x5*(-parseInt(_0x48baf0(0x18d))/0x6)+-parseInt(_0x48baf0(0x191))/0x7+-parseInt(_0x48baf0(0x18c))/0x8*(parseInt(_0x48baf0(0x189))/0x9)+parseInt(_0x48baf0(0x18e))/0xa*(parseInt(_0x48baf0(0x188))/0xb);if(_0xb65f5b===_0x2cde9e)break;else _0x413a7e['push'](_0x413a7e['shift']());}catch(_0x484cdc){_0x413a7e['push'](_0x413a7e['shift']());}}}(a162_0x15f7,0xd6559));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a162_0x4116b8(0x18f)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a163_0x4e9548=a163_0xc3e6;(function(_0x35dda0,_0x378bd2){const _0x239191=a163_0xc3e6,_0x1729ab=_0x35dda0();while(!![]){try{const _0xdf0df6=-parseInt(_0x239191(0x1a8))/0x1+parseInt(_0x239191(0x1b0))/0x2*(-parseInt(_0x239191(0x1b5))/0x3)+parseInt(_0x239191(0x1ac))/0x4+-parseInt(_0x239191(0x1b2))/0x5*(parseInt(_0x239191(0x1b3))/0x6)+-parseInt(_0x239191(0x1b4))/0x7+-parseInt(_0x239191(0x1af))/0x8+parseInt(_0x239191(0x1b1))/0x9;if(_0xdf0df6===_0x378bd2)break;else _0x1729ab['push'](_0x1729ab['shift']());}catch(_0x3b739d){_0x1729ab['push'](_0x1729ab['shift']());}}}(a163_0x2b52,0x77e5d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a163_0x2b52(){const _0x44d428=['54548arEQER','generateFullHelp','generateCommandHelp','\x20[args]\x20[flags]','625696YTlxGP','get','Requires\x20appcode\x20(set\x20via\x20`','6287216oWCdXD','13646sjIAZT','19703574iQPtmH','1684745zwbLjT','6MmnRAw','3833011raSydj','57HmeTaT'];a163_0x2b52=function(){return _0x44d428;};return a163_0x2b52();}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':_0x5f1ed7=>serviceGroups[a163_0x4e9548(0x1ad)](_0x5f1ed7),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a163_0x4e9548(0x1ae)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a163_0x4e9548(0x1ab),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x4f6e51){const _0x59fec3=a163_0x4e9548;return generators[_0x59fec3(0x1aa)](_0x4f6e51);}export const generateServiceHelp=generators['generateServiceHelp'];function a163_0xc3e6(_0x5d9c1f,_0x555840){_0x5d9c1f=_0x5d9c1f-0x1a8;const _0x2b52cb=a163_0x2b52();let _0xc3e65c=_0x2b52cb[_0x5d9c1f];return _0xc3e65c;}export const generateFullHelp=generators[a163_0x4e9548(0x1a9)];
1
+ const a163_0x30938f=a163_0x337b;(function(_0x38178f,_0x23519e){const _0x25b901=a163_0x337b,_0x3bb79f=_0x38178f();while(!![]){try{const _0x4a766f=-parseInt(_0x25b901(0xe8))/0x1+-parseInt(_0x25b901(0xf0))/0x2*(parseInt(_0x25b901(0xed))/0x3)+-parseInt(_0x25b901(0xf1))/0x4+parseInt(_0x25b901(0xf2))/0x5+-parseInt(_0x25b901(0xe6))/0x6*(parseInt(_0x25b901(0xec))/0x7)+parseInt(_0x25b901(0xee))/0x8+parseInt(_0x25b901(0xef))/0x9;if(_0x4a766f===_0x23519e)break;else _0x3bb79f['push'](_0x3bb79f['shift']());}catch(_0x11991c){_0x3bb79f['push'](_0x3bb79f['shift']());}}}(a163_0x54a3,0x563d3));import{createHelpGenerators}from'@lovrabet/cli-framework';function a163_0x337b(_0xa41b36,_0x3f9337){_0xa41b36=_0xa41b36-0xe6;const _0x54a3bb=a163_0x54a3();let _0x337b69=_0x54a3bb[_0xa41b36];return _0x337b69;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a163_0x54a3(){const _0x263071=['\x20[args]\x20[flags]','122673HzkpeW','Requires\x20appcode\x20(set\x20via\x20`','\x20project\x20init`\x20or\x20--appcode).','generateCommandHelp','7oNOpvJ','749247iUuCXi','5399592DWIpeU','1260396HPXfLV','2zvbWCX','1856396UkewYg','3050755pKPFeu','1412328bFICfe'];a163_0x54a3=function(){return _0x263071;};return a163_0x54a3();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x14d5bf=>serviceGroups['get'](_0x14d5bf),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a163_0x30938f(0xe9)+CLI_BIN_NAME+a163_0x30938f(0xea),'serviceUsageSuffix':a163_0x30938f(0xe7),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x506cf8){const _0x1b8512=a163_0x30938f;return generators[_0x1b8512(0xeb)](_0x506cf8);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x5a3b04,_0x476927){var _0x5326cd=a164_0x3fc7,_0x51868d=_0x5a3b04();while(!![]){try{var _0x1663cf=parseInt(_0x5326cd(0x113))/0x1+-parseInt(_0x5326cd(0x112))/0x2*(parseInt(_0x5326cd(0x116))/0x3)+parseInt(_0x5326cd(0x110))/0x4+-parseInt(_0x5326cd(0x115))/0x5*(parseInt(_0x5326cd(0x114))/0x6)+-parseInt(_0x5326cd(0x10f))/0x7+parseInt(_0x5326cd(0x111))/0x8*(-parseInt(_0x5326cd(0x117))/0x9)+parseInt(_0x5326cd(0x118))/0xa;if(_0x1663cf===_0x476927)break;else _0x51868d['push'](_0x51868d['shift']());}catch(_0x44abc9){_0x51868d['push'](_0x51868d['shift']());}}}(a164_0x59a5,0x9d11b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a164_0x3fc7(_0x5c1fa8,_0x20c10c){_0x5c1fa8=_0x5c1fa8-0x10f;var _0x59a5ee=a164_0x59a5();var _0x3fc7ff=_0x59a5ee[_0x5c1fa8];return _0x3fc7ff;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a164_0x59a5(){var _0x4c43e1=['18FuPYlS','19415680FqYcAu','6147344gIYWQn','2395296pTTwzM','512744DZJzVT','18feQAgW','1150538cZDaKk','5472GLEcKs','5035uqtpSo','374271iHEjhC'];a164_0x59a5=function(){return _0x4c43e1;};return a164_0x59a5();}
1
+ (function(_0x185006,_0x5de7ac){var _0x1999a3=a164_0x104b,_0x4839fa=_0x185006();while(!![]){try{var _0x1b4347=-parseInt(_0x1999a3(0xab))/0x1+-parseInt(_0x1999a3(0xa8))/0x2+-parseInt(_0x1999a3(0xaa))/0x3+-parseInt(_0x1999a3(0xad))/0x4+parseInt(_0x1999a3(0xb0))/0x5+-parseInt(_0x1999a3(0xaf))/0x6*(-parseInt(_0x1999a3(0xac))/0x7)+-parseInt(_0x1999a3(0xa9))/0x8*(-parseInt(_0x1999a3(0xae))/0x9);if(_0x1b4347===_0x5de7ac)break;else _0x4839fa['push'](_0x4839fa['shift']());}catch(_0x57f45e){_0x4839fa['push'](_0x4839fa['shift']());}}}(a164_0x32d0,0x547c7));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a164_0x32d0(){var _0x31c2f2=['343710BIoSqH','228990qLWrLo','7kKUhpO','2663536uDQsJq','162990wibMFH','1867494whJCuC','3187980ihasdl','345732gmwVaF','256Gjcjde'];a164_0x32d0=function(){return _0x31c2f2;};return a164_0x32d0();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a164_0x104b(_0x1b03a2,_0x4d9956){_0x1b03a2=_0x1b03a2-0xa8;var _0x32d0f5=a164_0x32d0();var _0x104bff=_0x32d0f5[_0x1b03a2];return _0x104bff;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x52878c,_0x484785){const _0xaaa456=a165_0x4eb7,_0x39335b=_0x52878c();while(!![]){try{const _0x1e41b1=-parseInt(_0xaaa456(0xb7))/0x1+parseInt(_0xaaa456(0xb4))/0x2*(parseInt(_0xaaa456(0xaf))/0x3)+-parseInt(_0xaaa456(0xb5))/0x4+-parseInt(_0xaaa456(0xb2))/0x5*(-parseInt(_0xaaa456(0xae))/0x6)+-parseInt(_0xaaa456(0xad))/0x7+parseInt(_0xaaa456(0xb1))/0x8*(-parseInt(_0xaaa456(0xb3))/0x9)+parseInt(_0xaaa456(0xb6))/0xa*(parseInt(_0xaaa456(0xb0))/0xb);if(_0x1e41b1===_0x484785)break;else _0x39335b['push'](_0x39335b['shift']());}catch(_0x554610){_0x39335b['push'](_0x39335b['shift']());}}}(a165_0x4191,0x4397d));function a165_0x4eb7(_0x43340a,_0x1083b5){_0x43340a=_0x43340a-0xad;const _0x41915a=a165_0x4191();let _0x4eb706=_0x41915a[_0x43340a];return _0x4eb706;}function a165_0x4191(){const _0x351e9a=['39060xaLrIh','332202ZciprJ','2140222uoAUHR','38154LiUdwi','408htwenk','2761nXNNnn','400rqUzmp','415WFlrgO','76851uKQRXr','2566lRqKAt','1363728jraNHI'];a165_0x4191=function(){return _0x351e9a;};return a165_0x4191();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ function a165_0x313c(_0x4ea58b,_0x18bed5){_0x4ea58b=_0x4ea58b-0xf2;const _0x5aa1e0=a165_0x5aa1();let _0x313ce2=_0x5aa1e0[_0x4ea58b];return _0x313ce2;}(function(_0x40d1ee,_0x4b86c9){const _0x1b7628=a165_0x313c,_0x5513d7=_0x40d1ee();while(!![]){try{const _0x2b7acd=-parseInt(_0x1b7628(0xf4))/0x1+-parseInt(_0x1b7628(0xf6))/0x2*(parseInt(_0x1b7628(0xfa))/0x3)+parseInt(_0x1b7628(0xfb))/0x4*(-parseInt(_0x1b7628(0xf7))/0x5)+parseInt(_0x1b7628(0xf9))/0x6*(parseInt(_0x1b7628(0xf3))/0x7)+parseInt(_0x1b7628(0xf8))/0x8*(parseInt(_0x1b7628(0xf2))/0x9)+parseInt(_0x1b7628(0xf5))/0xa*(parseInt(_0x1b7628(0xfe))/0xb)+parseInt(_0x1b7628(0xfd))/0xc*(parseInt(_0x1b7628(0xfc))/0xd);if(_0x2b7acd===_0x4b86c9)break;else _0x5513d7['push'](_0x5513d7['shift']());}catch(_0x2ebe28){_0x5513d7['push'](_0x5513d7['shift']());}}}(a165_0x5aa1,0x843a1));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a165_0x5aa1(){const _0x2b756d=['8IWPInD','3471786Hadcvy','561906EeoAaj','483124lzgdyd','65XohhqF','1953780wMioUP','649OieJds','3136167PZjjvf','7KSyNsk','114194NjIEOH','22830StQtwn','4DPhGvr','35NvbaLu'];a165_0x5aa1=function(){return _0x2b756d;};return a165_0x5aa1();}import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- function a166_0x2045(_0x6c5ede,_0xdaabdf){_0x6c5ede=_0x6c5ede-0x1ba;var _0x2fef88=a166_0x2fef();var _0x2045c8=_0x2fef88[_0x6c5ede];return _0x2045c8;}function a166_0x2fef(){var _0x23e7f6=['986824WVGCxc','2510wgHxHY','25460QKKLiU','12111HMGCxa','9bXqaUD','2320227yWhyWC','300typcXB','987464xMlQGL','14HSTYhR','134312CtBFNP','1561206gaVZwN'];a166_0x2fef=function(){return _0x23e7f6;};return a166_0x2fef();}(function(_0x291a37,_0x1caad9){var _0x495b60=a166_0x2045,_0x2b8ff6=_0x291a37();while(!![]){try{var _0x4cf6e9=parseInt(_0x495b60(0x1c4))/0x1+parseInt(_0x495b60(0x1bb))/0x2*(parseInt(_0x495b60(0x1bf))/0x3)+parseInt(_0x495b60(0x1c1))/0x4*(-parseInt(_0x495b60(0x1bd))/0x5)+parseInt(_0x495b60(0x1ba))/0x6*(-parseInt(_0x495b60(0x1c3))/0x7)+parseInt(_0x495b60(0x1c2))/0x8+parseInt(_0x495b60(0x1c0))/0x9+parseInt(_0x495b60(0x1bc))/0xa*(-parseInt(_0x495b60(0x1be))/0xb);if(_0x4cf6e9===_0x1caad9)break;else _0x2b8ff6['push'](_0x2b8ff6['shift']());}catch(_0x480d4f){_0x2b8ff6['push'](_0x2b8ff6['shift']());}}}(a166_0x2fef,0xc77eb));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a166_0x271f(){var _0x14c812=['15841sQCzqH','11081508XCwejQ','13000iuTxdz','3156260yCdFgS','7243245lHIMPT','3660168vYsfaS','976655vcIJrf','955461mNIkIg'];a166_0x271f=function(){return _0x14c812;};return a166_0x271f();}function a166_0x399f(_0x1f64f6,_0x16fdb0){_0x1f64f6=_0x1f64f6-0x1a5;var _0x271f71=a166_0x271f();var _0x399f98=_0x271f71[_0x1f64f6];return _0x399f98;}(function(_0x309dbc,_0x55c7d8){var _0x166402=a166_0x399f,_0x2e5c9a=_0x309dbc();while(!![]){try{var _0x2b984f=parseInt(_0x166402(0x1a7))/0x1+parseInt(_0x166402(0x1ac))/0x2+-parseInt(_0x166402(0x1a8))/0x3+-parseInt(_0x166402(0x1a6))/0x4+parseInt(_0x166402(0x1a5))/0x5+parseInt(_0x166402(0x1aa))/0x6+-parseInt(_0x166402(0x1a9))/0x7*(parseInt(_0x166402(0x1ab))/0x8);if(_0x2b984f===_0x55c7d8)break;else _0x2e5c9a['push'](_0x2e5c9a['shift']());}catch(_0x3e050b){_0x2e5c9a['push'](_0x2e5c9a['shift']());}}}(a166_0x271f,0xe55b8));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x79f31f,_0x1bea1e){const _0x4dc095=a167_0x481f,_0xad238c=_0x79f31f();while(!![]){try{const _0x2ba198=parseInt(_0x4dc095(0x9a))/0x1*(-parseInt(_0x4dc095(0xa5))/0x2)+-parseInt(_0x4dc095(0xa4))/0x3+parseInt(_0x4dc095(0xa9))/0x4+parseInt(_0x4dc095(0xa6))/0x5+parseInt(_0x4dc095(0x98))/0x6+parseInt(_0x4dc095(0xab))/0x7*(-parseInt(_0x4dc095(0xa1))/0x8)+parseInt(_0x4dc095(0xa2))/0x9;if(_0x2ba198===_0x1bea1e)break;else _0xad238c['push'](_0xad238c['shift']());}catch(_0x40a5a8){_0xad238c['push'](_0xad238c['shift']());}}}(a167_0x392d,0xb2f41));import{CliErrors}from'../errors.js';function a167_0x481f(_0x55ef05,_0x50481d){_0x55ef05=_0x55ef05-0x95;const _0x392d1c=a167_0x392d();let _0x481f16=_0x392d1c[_0x55ef05];return _0x481f16;}function a167_0x392d(){const _0x165374=['type','map','5368578LCsHkM','Unknown\x20alias\x20\x22','10BEPBru','some','name','validation','Available\x20aliases:\x20','No\x20api.ts\x20found\x20in\x20','string','8PUnlOi','4974777BxoyMn','\x20api\x20pull`\x20first.','900378WyynXi','74506Krnyyu','2007575TEtIrY','.\x20Run\x20`','alias','1990164wKRwbu','code','6586461AQeDQI','flags','join','length'];a167_0x392d=function(){return _0x165374;};return a167_0x392d();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x549023,_0x5349bf,_0x343896,_0x20b812){const _0x528991=a167_0x481f,_0x4bf515=_0x549023[_0x528991(0xac)]['some'](_0x3e3a0c=>_0x3e3a0c[_0x528991(0x9c)]==='code'&&_0x3e3a0c['type']===_0x528991(0xa0)),_0x517c64=_0x549023[_0x528991(0xac)][_0x528991(0x9b)](_0x1a9c71=>_0x1a9c71['name']===_0x528991(0xa8)&&_0x1a9c71[_0x528991(0x96)]==='string');if(!_0x4bf515||!_0x517c64)return;const _0x7ed6f1=_0x5349bf[_0x528991(0xaa)]?String(_0x5349bf[_0x528991(0xaa)]):'',_0x39caab=_0x5349bf[_0x528991(0xa8)]?String(_0x5349bf[_0x528991(0xa8)]):'';if(!_0x7ed6f1&&!_0x39caab)throw CliErrors[_0x528991(0x9d)]('`'+_0x20b812+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x39caab&&!_0x7ed6f1){const _0xbadbfc=resolveAlias(_0x343896,_0x39caab);if(!_0xbadbfc){const _0x5b8f4f=listAliases(_0x343896)[_0x528991(0x97)](_0xdcf12f=>_0xdcf12f[_0x528991(0xa8)]),_0x4c409e=_0x5b8f4f[_0x528991(0x95)]?_0x528991(0x9e)+_0x5b8f4f[_0x528991(0xad)](',\x20'):_0x528991(0x9f)+_0x343896+_0x528991(0xa7)+CLI_BIN_NAME+_0x528991(0xa3);throw CliErrors['validation'](_0x528991(0x99)+_0x39caab+'\x22.\x20'+_0x4c409e);}_0x5349bf[_0x528991(0xaa)]=_0xbadbfc;}}
1
+ function a167_0x10d8(_0x1b6683,_0x3acb2c){_0x1b6683=_0x1b6683-0xb4;const _0x2cc1cc=a167_0x2cc1();let _0x10d847=_0x2cc1cc[_0x1b6683];return _0x10d847;}(function(_0x46021a,_0x1bc660){const _0x427f28=a167_0x10d8,_0x57bc37=_0x46021a();while(!![]){try{const _0x19333a=parseInt(_0x427f28(0xc7))/0x1+-parseInt(_0x427f28(0xb6))/0x2+-parseInt(_0x427f28(0xc1))/0x3*(parseInt(_0x427f28(0xc5))/0x4)+-parseInt(_0x427f28(0xbb))/0x5+parseInt(_0x427f28(0xca))/0x6*(parseInt(_0x427f28(0xcb))/0x7)+-parseInt(_0x427f28(0xbc))/0x8*(parseInt(_0x427f28(0xc4))/0x9)+-parseInt(_0x427f28(0xc6))/0xa*(-parseInt(_0x427f28(0xc3))/0xb);if(_0x19333a===_0x1bc660)break;else _0x57bc37['push'](_0x57bc37['shift']());}catch(_0x1683ec){_0x57bc37['push'](_0x57bc37['shift']());}}}(a167_0x2cc1,0xb8e00));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a167_0x2cc1(){const _0x4f41d6=['Available\x20aliases:\x20','type','map','4268150WtvZHc','8KXpJTZ','Unknown\x20alias\x20\x22','code','.\x20Run\x20`','validation','31803BghjmW','length','7051ILvHja','11350494HxXDoR','100IOtkJw','26230dWolRw','1369760ivuBai','alias','name','516wLqoQa','25053JDtIdz','flags','string','some','443656kKoyeM','No\x20api.ts\x20found\x20in\x20'];a167_0x2cc1=function(){return _0x4f41d6;};return a167_0x2cc1();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5c7dc3,_0x480ed6,_0x1374f8,_0x369e6c){const _0x50a281=a167_0x10d8,_0x471884=_0x5c7dc3[_0x50a281(0xcc)][_0x50a281(0xb5)](_0x74690c=>_0x74690c[_0x50a281(0xc9)]==='code'&&_0x74690c[_0x50a281(0xb9)]===_0x50a281(0xb4)),_0x2eec1e=_0x5c7dc3[_0x50a281(0xcc)][_0x50a281(0xb5)](_0x3bc059=>_0x3bc059['name']===_0x50a281(0xc8)&&_0x3bc059[_0x50a281(0xb9)]==='string');if(!_0x471884||!_0x2eec1e)return;const _0x34a8e7=_0x480ed6[_0x50a281(0xbe)]?String(_0x480ed6[_0x50a281(0xbe)]):'',_0x1ecd52=_0x480ed6['alias']?String(_0x480ed6[_0x50a281(0xc8)]):'';if(!_0x34a8e7&&!_0x1ecd52)throw CliErrors[_0x50a281(0xc0)]('`'+_0x369e6c+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x1ecd52&&!_0x34a8e7){const _0x41564a=resolveAlias(_0x1374f8,_0x1ecd52);if(!_0x41564a){const _0x33b08e=listAliases(_0x1374f8)[_0x50a281(0xba)](_0x55b38c=>_0x55b38c[_0x50a281(0xc8)]),_0xffdfcd=_0x33b08e[_0x50a281(0xc2)]?_0x50a281(0xb8)+_0x33b08e['join'](',\x20'):_0x50a281(0xb7)+_0x1374f8+_0x50a281(0xbf)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x50a281(0xbd)+_0x1ecd52+'\x22.\x20'+_0xffdfcd);}_0x480ed6[_0x50a281(0xbe)]=_0x41564a;}}
@@ -1 +1 @@
1
- const a168_0x3db8ac=a168_0x46b4;function a168_0x2dd3(){const _0x1fb0db=['resolveAppCode','High-risk\x20operation\x20`','10qqCNrv','requiresAuth','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','configMissing','⚠\x20\x20High-risk\x20operation:\x20','defaultApp','resolveApiDomain','Set\x20appcode\x20via\x20`','cancelled','12123xzLbwz','9PCMSVp','5479929hgscFD','validation','authRequired','apiDir','format','apps','1989316JhdbsS','explicitAppName','appCode','appcode','70adQLne','25204150GTRLOj','../core/api-client.js','562134qkegPt','has','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','service','4935930yZLWQH','cookie','mergedCli','resolveCookie','currentApp','riskLevel','1308776qMRdib','isNonInteractive','requiresAppCode'];a168_0x2dd3=function(){return _0x1fb0db;};return a168_0x2dd3();}(function(_0x7c8759,_0x3750bf){const _0x1ee6ec=a168_0x46b4,_0x1cf824=_0x7c8759();while(!![]){try{const _0x3ecfc6=parseInt(_0x1ee6ec(0x1c9))/0x1*(parseInt(_0x1ee6ec(0x1d5))/0x2)+-parseInt(_0x1ee6ec(0x1dc))/0x3+parseInt(_0x1ee6ec(0x1d1))/0x4+parseInt(_0x1ee6ec(0x1c0))/0x5*(-parseInt(_0x1ee6ec(0x1d8))/0x6)+-parseInt(_0x1ee6ec(0x1cb))/0x7+parseInt(_0x1ee6ec(0x1bb))/0x8*(parseInt(_0x1ee6ec(0x1ca))/0x9)+parseInt(_0x1ee6ec(0x1d6))/0xa;if(_0x3ecfc6===_0x3750bf)break;else _0x1cf824['push'](_0x1cf824['shift']());}catch(_0x532479){_0x1cf824['push'](_0x1cf824['shift']());}}}(a168_0x2dd3,0xf1b9f));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a168_0x143c25}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x5de056,_0x1d7065,_0x34167c=[]){const _0x30fe8b=a168_0x46b4;return{'rawFlags':_0x1d7065,'args':_0x34167c,'resolveAppCode':()=>_0x5de056[_0x30fe8b(0x1d3)]||_0x1d7065[_0x30fe8b(0x1d4)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5de056[_0x30fe8b(0x1dd)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a168_0x143c25(_0x1d7065),'defaultFormat':_0x5de056[_0x30fe8b(0x1cf)],'defaultPageSize':_0x5de056['pageSize'],'defaultVerbose':_0x5de056['verbose'],'apiDir':_0x5de056[_0x30fe8b(0x1ce)],'riskLevel':_0x5de056[_0x30fe8b(0x1ba)],'selectedAppName':_0x5de056[_0x30fe8b(0x1d2)],'mergedCli':{'defaultApp':_0x5de056[_0x30fe8b(0x1c5)],'currentApp':_0x5de056[_0x30fe8b(0x1b9)],'appCode':_0x5de056[_0x30fe8b(0x1d3)],'apps':_0x5de056[_0x30fe8b(0x1d0)]}};}function a168_0x46b4(_0x317dc8,_0x4ba20e){_0x317dc8=_0x317dc8-0x1b9;const _0x2dd375=a168_0x2dd3();let _0x46b45d=_0x2dd375[_0x317dc8];return _0x46b45d;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2e6691=>PIPELINE_FLAG_NAMES[a168_0x3db8ac(0x1d9)](_0x2e6691['name']))['map'](({name:_0x45cd92,type:_0x4feef1,description:_0x3a020f})=>({'name':_0x45cd92,'type':_0x4feef1,'description':_0x3a020f})),'formatOutput':formatOutput,'getCommandLabel'(_0x15caef){const _0x2ade24=a168_0x3db8ac;return CLI_BIN_NAME+'\x20'+_0x15caef[_0x2ade24(0x1db)]+'\x20'+_0x15caef['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x518da9){const _0x2e41c3=a168_0x3db8ac;return CliErrors[_0x2e41c3(0x1cc)](_0x518da9);}},async 'prepare'(_0x2d4ffb,_0x4b5ab7,_0x112523,_0x43abf8){const _0x538f02=a168_0x3db8ac,_0x153a69=_0x4b5ab7[_0x538f02(0x1ce)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2d4ffb,_0x112523,_0x153a69,_0x43abf8);let _0x4f568b='';if(_0x2d4ffb[_0x538f02(0x1c1)]!==![]){_0x4f568b=_0x4b5ab7[_0x538f02(0x1df)]();if(!_0x4f568b)throw CliErrors[_0x538f02(0x1cd)]();const {setActiveCookie:_0x625329}=await import(_0x538f02(0x1d7));_0x625329(_0x4f568b);}const _0x39a64e=_0x4b5ab7[_0x538f02(0x1be)]()??'';if(_0x2d4ffb[_0x538f02(0x1bd)]!==![]){if(!_0x39a64e)throw CliErrors[_0x538f02(0x1c3)](_0x538f02(0x1c7)+CLI_BIN_NAME+_0x538f02(0x1da));}return{'defaults':{'booleans':{'verbose':_0x4b5ab7['defaultVerbose']},'numbers':{'pagesize':_0x4b5ab7['defaultPageSize']}},'extras':{'appCode':_0x39a64e,'cookie':_0x4f568b,'apiDomain':_0x4b5ab7[_0x538f02(0x1c6)](),'apiDir':_0x153a69,'selectedAppName':_0x4b5ab7['selectedAppName'],'mergedCli':_0x4b5ab7[_0x538f02(0x1de)]}};},async 'confirmHighRisk'({env:_0x167ac0,commandLabel:_0x218ec8}){const _0x44cf7d=a168_0x3db8ac;if(_0x167ac0[_0x44cf7d(0x1bc)])throw CliErrors[_0x44cf7d(0x1cc)](_0x44cf7d(0x1bf)+_0x218ec8+_0x44cf7d(0x1c2));await requireConfirmationPrompt({'lines':[_0x44cf7d(0x1c4)+_0x218ec8,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x25bca5=>CliErrors[_0x44cf7d(0x1c8)](_0x25bca5)});},async 'finalize'(){const _0x42820b=a168_0x3db8ac,{clearActiveCookie:_0x165410}=await import(_0x42820b(0x1d7));_0x165410();}};export async function runCommand(_0x3e754f,_0x58a23d){await runCommandWithAdapter(_0x3e754f,_0x58a23d,runnerAdapter);}
1
+ const a168_0x2651b6=a168_0x5706;(function(_0x29f442,_0x24b992){const _0xac0baf=a168_0x5706,_0x5b0c80=_0x29f442();while(!![]){try{const _0xd8c6dd=-parseInt(_0xac0baf(0x1c8))/0x1+-parseInt(_0xac0baf(0x1c2))/0x2*(-parseInt(_0xac0baf(0x1ce))/0x3)+parseInt(_0xac0baf(0x1c0))/0x4*(parseInt(_0xac0baf(0x1c4))/0x5)+parseInt(_0xac0baf(0x1bc))/0x6*(-parseInt(_0xac0baf(0x1d7))/0x7)+parseInt(_0xac0baf(0x1cc))/0x8*(parseInt(_0xac0baf(0x1ca))/0x9)+parseInt(_0xac0baf(0x1b9))/0xa+-parseInt(_0xac0baf(0x1c9))/0xb*(parseInt(_0xac0baf(0x1b0))/0xc);if(_0xd8c6dd===_0x24b992)break;else _0x5b0c80['push'](_0x5b0c80['shift']());}catch(_0x3d1c47){_0x5b0c80['push'](_0x5b0c80['shift']());}}}(a168_0x3a2a,0xd35b8));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a168_0x3a2a(){const _0x59f711=['currentApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','riskLevel','⚠\x20\x20High-risk\x20operation:\x20','defaultVerbose','explicitAppName','configMissing','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','12746580tWrjKE','cookie','apiDir','6KcPvvY','filter','has','resolveApiDomain','276QDKpgq','defaultPageSize','2jILzyx','cancelled','117260VjqGIF','name','../core/api-client.js','pageSize','1558284zRtcmA','11ZDZzNP','3865455SqphNj','requiresAuth','16uwnCbX','isNonInteractive','599949xtWVIp','authRequired','High-risk\x20operation\x20`','verbose','resolveAppCode','command','\x20\x20\x20Continue?\x20[y/N]\x20','apps','format','3830274KPUXkO','appCode','selectedAppName','appcode','map','11767596YtqkoG'];a168_0x3a2a=function(){return _0x59f711;};return a168_0x3a2a();}function a168_0x5706(_0x49060e,_0x2f742e){_0x49060e=_0x49060e-0x1ad;const _0x3a2a32=a168_0x3a2a();let _0x5706c1=_0x3a2a32[_0x49060e];return _0x5706c1;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a168_0x2229b7}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x4488b7,_0x5f3ae2,_0x39fe57=[]){const _0x25817e=a168_0x5706;return{'rawFlags':_0x5f3ae2,'args':_0x39fe57,'resolveAppCode':()=>_0x4488b7[_0x25817e(0x1d8)]||_0x5f3ae2[_0x25817e(0x1ae)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x4488b7[_0x25817e(0x1ba)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a168_0x2229b7(_0x5f3ae2),'defaultFormat':_0x4488b7[_0x25817e(0x1d6)],'defaultPageSize':_0x4488b7[_0x25817e(0x1c7)],'defaultVerbose':_0x4488b7[_0x25817e(0x1d1)],'apiDir':_0x4488b7[_0x25817e(0x1bb)],'riskLevel':_0x4488b7[_0x25817e(0x1b3)],'selectedAppName':_0x4488b7[_0x25817e(0x1b6)],'mergedCli':{'defaultApp':_0x4488b7['defaultApp'],'currentApp':_0x4488b7[_0x25817e(0x1b1)],'appCode':_0x4488b7['appCode'],'apps':_0x4488b7[_0x25817e(0x1d5)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a168_0x2651b6(0x1bd)](_0x5de7a9=>PIPELINE_FLAG_NAMES[a168_0x2651b6(0x1be)](_0x5de7a9[a168_0x2651b6(0x1c5)]))[a168_0x2651b6(0x1af)](({name:_0x2ede9a,type:_0x3ac5c5,description:_0x3f6d10})=>({'name':_0x2ede9a,'type':_0x3ac5c5,'description':_0x3f6d10})),'formatOutput':formatOutput,'getCommandLabel'(_0x28efaa){const _0x56825f=a168_0x2651b6;return CLI_BIN_NAME+'\x20'+_0x28efaa['service']+'\x20'+_0x28efaa[_0x56825f(0x1d3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x50012a){return CliErrors['validation'](_0x50012a);}},async 'prepare'(_0x5af34c,_0x280d2e,_0x35e5aa,_0x255b04){const _0x1df329=a168_0x2651b6,_0x2f4e3d=_0x280d2e[_0x1df329(0x1bb)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5af34c,_0x35e5aa,_0x2f4e3d,_0x255b04);let _0x138357='';if(_0x5af34c[_0x1df329(0x1cb)]!==![]){_0x138357=_0x280d2e['resolveCookie']();if(!_0x138357)throw CliErrors[_0x1df329(0x1cf)]();const {setActiveCookie:_0x49b4f8}=await import(_0x1df329(0x1c6));_0x49b4f8(_0x138357);}const _0x2a6874=_0x280d2e[_0x1df329(0x1d2)]()??'';if(_0x5af34c['requiresAppCode']!==![]){if(!_0x2a6874)throw CliErrors[_0x1df329(0x1b7)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x1df329(0x1b8));}return{'defaults':{'booleans':{'verbose':_0x280d2e[_0x1df329(0x1b5)]},'numbers':{'pagesize':_0x280d2e[_0x1df329(0x1c1)]}},'extras':{'appCode':_0x2a6874,'cookie':_0x138357,'apiDomain':_0x280d2e[_0x1df329(0x1bf)](),'apiDir':_0x2f4e3d,'selectedAppName':_0x280d2e[_0x1df329(0x1ad)],'mergedCli':_0x280d2e['mergedCli']}};},async 'confirmHighRisk'({env:_0x5034d8,commandLabel:_0x5b7f15}){const _0x1ec7eb=a168_0x2651b6;if(_0x5034d8[_0x1ec7eb(0x1cd)])throw CliErrors['validation'](_0x1ec7eb(0x1d0)+_0x5b7f15+_0x1ec7eb(0x1b2));await requireConfirmationPrompt({'lines':[_0x1ec7eb(0x1b4)+_0x5b7f15,_0x1ec7eb(0x1d4)],'createCancelledError':_0xd2745f=>CliErrors[_0x1ec7eb(0x1c3)](_0xd2745f)});},async 'finalize'(){const _0x800374=a168_0x2651b6,{clearActiveCookie:_0x3ae943}=await import(_0x800374(0x1c6));_0x3ae943();}};export async function runCommand(_0x1c5f08,_0x347356){await runCommandWithAdapter(_0x1c5f08,_0x347356,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x4d835f,_0x4509e0){const _0x49d8d2=a169_0x528e,_0x132664=_0x4d835f();while(!![]){try{const _0x1735bd=-parseInt(_0x49d8d2(0x196))/0x1+parseInt(_0x49d8d2(0x19a))/0x2*(parseInt(_0x49d8d2(0x198))/0x3)+-parseInt(_0x49d8d2(0x19d))/0x4*(-parseInt(_0x49d8d2(0x197))/0x5)+-parseInt(_0x49d8d2(0x19f))/0x6+parseInt(_0x49d8d2(0x19c))/0x7+-parseInt(_0x49d8d2(0x19b))/0x8*(-parseInt(_0x49d8d2(0x19e))/0x9)+parseInt(_0x49d8d2(0x1a0))/0xa;if(_0x1735bd===_0x4509e0)break;else _0x132664['push'](_0x132664['shift']());}catch(_0x464353){_0x132664['push'](_0x132664['shift']());}}}(a169_0x4f7a,0x26483));function a169_0x4f7a(){const _0x1064fb=['299121AJTrge','../commands/registry.js','2sCgysS','128YCwNmO','96334XXKNFe','4GsLYgj','170406OwTimX','1820094ClAmrG','904220lskIes','281686EGzzfE','1175015RaQspK'];a169_0x4f7a=function(){return _0x1064fb;};return a169_0x4f7a();}function a169_0x528e(_0x25bbb1,_0xabb3ce){_0x25bbb1=_0x25bbb1-0x196;const _0x4f7aac=a169_0x4f7a();let _0x528e73=_0x4f7aac[_0x25bbb1];return _0x528e73;}import{buildSchemaPayload as a169_0x3821ea}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 _0x28703f=a169_0x528e,{serviceRegistry:_0x169235,findDefinition:_0x51ab19}=await import(_0x28703f(0x199));return a169_0x3821ea({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x169235,'buildAllFlags':buildAllFlags,'findDefinition':_0x51ab19});}
1
+ (function(_0x16b0dc,_0x49b34d){const _0x501adf=a169_0x45b4,_0x42baab=_0x16b0dc();while(!![]){try{const _0x2c3edc=-parseInt(_0x501adf(0x1f0))/0x1+-parseInt(_0x501adf(0x1ea))/0x2*(parseInt(_0x501adf(0x1ed))/0x3)+-parseInt(_0x501adf(0x1f1))/0x4+parseInt(_0x501adf(0x1ec))/0x5+parseInt(_0x501adf(0x1e8))/0x6*(-parseInt(_0x501adf(0x1eb))/0x7)+parseInt(_0x501adf(0x1e9))/0x8+parseInt(_0x501adf(0x1ef))/0x9;if(_0x2c3edc===_0x49b34d)break;else _0x42baab['push'](_0x42baab['shift']());}catch(_0x460062){_0x42baab['push'](_0x42baab['shift']());}}}(a169_0x4839,0x4beaa));import{buildSchemaPayload as a169_0x3a459b}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a169_0x4839(){const _0x51f587=['63766GXrWQK','7OVToFV','194440LHrjeX','3jzHawM','../commands/registry.js','7995762PdKaAP','338914MiSwJW','1792600FFhuIn','2427072gutJxP','4856856lsMfsi'];a169_0x4839=function(){return _0x51f587;};return a169_0x4839();}function a169_0x45b4(_0x31d9a0,_0x3036e3){_0x31d9a0=_0x31d9a0-0x1e8;const _0x483984=a169_0x4839();let _0x45b454=_0x483984[_0x31d9a0];return _0x45b454;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2c04ab=a169_0x45b4,{serviceRegistry:_0xb7503,findDefinition:_0x5bc498}=await import(_0x2c04ab(0x1ee));return a169_0x3a459b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xb7503,'buildAllFlags':buildAllFlags,'findDefinition':_0x5bc498});}
@@ -1 +1 @@
1
- function a170_0x5e40(){var _0x179e9d=['50CZwDiK','33127884MlgrjY','2334568kEYoLY','11AKePTH','661922vDsgjz','16BxrBXA','373254faatSg','15XDupeB','60OkQBAl','83854laVsyG','2073946aijcnJ','215253ejsbqr'];a170_0x5e40=function(){return _0x179e9d;};return a170_0x5e40();}(function(_0x5051c9,_0x64dc48){var _0x3b091f=a170_0x56df,_0x509633=_0x5051c9();while(!![]){try{var _0x44973a=-parseInt(_0x3b091f(0x1db))/0x1+parseInt(_0x3b091f(0x1e0))/0x2*(parseInt(_0x3b091f(0x1de))/0x3)+-parseInt(_0x3b091f(0x1e5))/0x4+-parseInt(_0x3b091f(0x1e3))/0x5*(parseInt(_0x3b091f(0x1dd))/0x6)+-parseInt(_0x3b091f(0x1e1))/0x7*(parseInt(_0x3b091f(0x1dc))/0x8)+-parseInt(_0x3b091f(0x1e2))/0x9*(-parseInt(_0x3b091f(0x1df))/0xa)+parseInt(_0x3b091f(0x1da))/0xb*(parseInt(_0x3b091f(0x1e4))/0xc);if(_0x44973a===_0x64dc48)break;else _0x509633['push'](_0x509633['shift']());}catch(_0x3e5b48){_0x509633['push'](_0x509633['shift']());}}}(a170_0x5e40,0x9f910));function a170_0x56df(_0x36ff88,_0x1cedf8){_0x36ff88=_0x36ff88-0x1da;var _0x5e405f=a170_0x5e40();var _0x56dff6=_0x5e405f[_0x36ff88];return _0x56dff6;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a170_0x58bc(_0xa054d5,_0x6a4d53){_0xa054d5=_0xa054d5-0xa8;var _0x594aa2=a170_0x594a();var _0x58bc3e=_0x594aa2[_0xa054d5];return _0x58bc3e;}(function(_0x46d46c,_0x38bf81){var _0x17fb51=a170_0x58bc,_0x34f531=_0x46d46c();while(!![]){try{var _0x475dcb=-parseInt(_0x17fb51(0xae))/0x1*(parseInt(_0x17fb51(0xb0))/0x2)+parseInt(_0x17fb51(0xaf))/0x3+parseInt(_0x17fb51(0xab))/0x4*(-parseInt(_0x17fb51(0xac))/0x5)+parseInt(_0x17fb51(0xa9))/0x6+-parseInt(_0x17fb51(0xb1))/0x7+parseInt(_0x17fb51(0xad))/0x8+-parseInt(_0x17fb51(0xaa))/0x9*(parseInt(_0x17fb51(0xa8))/0xa);if(_0x475dcb===_0x38bf81)break;else _0x34f531['push'](_0x34f531['shift']());}catch(_0x5a1a04){_0x34f531['push'](_0x34f531['shift']());}}}(a170_0x594a,0x80b05));function a170_0x594a(){var _0xed7b41=['311984vPMVTS','1ZijMSH','2924922BEKpyG','358638wJSGgr','3834838TzOywV','25830aHcVYd','4126206EfxhAN','126RuPTAA','1956cRFIHr','4205CfNdYa'];a170_0x594a=function(){return _0xed7b41;};return a170_0x594a();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a171_0xbd1ef5=a171_0xbb9b;(function(_0x17133d,_0xe6b6ec){const _0x41972c=a171_0xbb9b,_0x5d5600=_0x17133d();while(!![]){try{const _0x37ea9f=-parseInt(_0x41972c(0x1bb))/0x1*(-parseInt(_0x41972c(0x1b8))/0x2)+-parseInt(_0x41972c(0x1b6))/0x3*(parseInt(_0x41972c(0x1b5))/0x4)+parseInt(_0x41972c(0x1bd))/0x5*(-parseInt(_0x41972c(0x1b9))/0x6)+parseInt(_0x41972c(0x1c0))/0x7*(-parseInt(_0x41972c(0x1bc))/0x8)+-parseInt(_0x41972c(0x1b7))/0x9*(parseInt(_0x41972c(0x1bf))/0xa)+parseInt(_0x41972c(0x1b4))/0xb+parseInt(_0x41972c(0x1b3))/0xc;if(_0x37ea9f===_0xe6b6ec)break;else _0x5d5600['push'](_0x5d5600['shift']());}catch(_0x212e65){_0x5d5600['push'](_0x5d5600['shift']());}}}(a171_0x2e23,0x1f7c3));function a171_0x2e23(){const _0x2040a7=['v2.1.12-beta.2','7853532NwyRje','18678yXjtTF','4yZSmRr','428478ZoXpRz','935658ytrBHi','182562hvytKw','516486svcuPv','2026-05-19T11:14:25.615Z','1aqQtvW','50968BTutFo','10eBSOkI','3861060','20bwKVAe','105EuYbGJ'];a171_0x2e23=function(){return _0x2040a7;};return a171_0x2e23();}export const VERSION='2.1.12-beta.2';function a171_0xbb9b(_0x2e1da9,_0x586786){_0x2e1da9=_0x2e1da9-0x1b3;const _0x2e2385=a171_0x2e23();let _0xbb9b00=_0x2e2385[_0x2e1da9];return _0xbb9b00;}export const GIT_TAG=a171_0xbd1ef5(0x1c1);export const GIT_COMMIT=a171_0xbd1ef5(0x1be);export const BUILD_TIME=a171_0xbd1ef5(0x1ba);
1
+ function a171_0x2902(){const _0xcebaa5=['65858KbyEvO','60761LgPOal','12chQKuH','5401xIyslx','1670tcyKjC','136GvUdlN','11529DqWnTg','244202QPhypX','v2.1.12-beta.4','411580DzICbC','5f4d0a8','319180SzQQzi','12iBaLgC','2026-05-20T15:36:12.865Z'];a171_0x2902=function(){return _0xcebaa5;};return a171_0x2902();}const a171_0x50d050=a171_0x1e03;(function(_0x5b33fb,_0x3befaa){const _0x40704b=a171_0x1e03,_0x1b48fd=_0x5b33fb();while(!![]){try{const _0x533e26=parseInt(_0x40704b(0x139))/0x1+parseInt(_0x40704b(0x138))/0x2*(-parseInt(_0x40704b(0x13a))/0x3)+-parseInt(_0x40704b(0x135))/0x4+parseInt(_0x40704b(0x141))/0x5+-parseInt(_0x40704b(0x136))/0x6*(-parseInt(_0x40704b(0x13f))/0x7)+-parseInt(_0x40704b(0x13d))/0x8*(-parseInt(_0x40704b(0x13e))/0x9)+parseInt(_0x40704b(0x13c))/0xa*(parseInt(_0x40704b(0x13b))/0xb);if(_0x533e26===_0x3befaa)break;else _0x1b48fd['push'](_0x1b48fd['shift']());}catch(_0x55981e){_0x1b48fd['push'](_0x1b48fd['shift']());}}}(a171_0x2902,0x19a98));export const VERSION='2.1.12-beta.4';export const GIT_TAG=a171_0x50d050(0x140);function a171_0x1e03(_0x2becbe,_0x448030){_0x2becbe=_0x2becbe-0x135;const _0x2902dc=a171_0x2902();let _0x1e034e=_0x2902dc[_0x2becbe];return _0x1e034e;}export const GIT_COMMIT=a171_0x50d050(0x142);export const BUILD_TIME=a171_0x50d050(0x137);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5a7fdc,_0x9c87d5){var _0x3354c3=a172_0x3b15,_0x245614=_0x5a7fdc();while(!![]){try{var _0xe47e66=-parseInt(_0x3354c3(0x1ab))/0x1*(parseInt(_0x3354c3(0x1a4))/0x2)+parseInt(_0x3354c3(0x1b4))/0x3*(-parseInt(_0x3354c3(0x1b3))/0x4)+parseInt(_0x3354c3(0x1b1))/0x5*(parseInt(_0x3354c3(0x1a9))/0x6)+-parseInt(_0x3354c3(0x1a8))/0x7+parseInt(_0x3354c3(0x1ad))/0x8+-parseInt(_0x3354c3(0x1a5))/0x9*(-parseInt(_0x3354c3(0x1a7))/0xa)+parseInt(_0x3354c3(0x1ae))/0xb*(-parseInt(_0x3354c3(0x1af))/0xc);if(_0xe47e66===_0x9c87d5)break;else _0x245614['push'](_0x245614['shift']());}catch(_0x583f26){_0x245614['push'](_0x245614['shift']());}}}(a172_0x29f0,0x63825));function a172_0x3b15(_0x479e0d,_0x5c84c0){_0x479e0d=_0x479e0d-0x1a4;var _0x29f0f6=a172_0x29f0();var _0x3b15d3=_0x29f0f6[_0x479e0d];return _0x3b15d3;}import a172_0x52aa01 from'chalk';function a172_0x29f0(){var _0x2f807a=['1ntStdc','\x20\x20Use\x20','1914872OmBhUT','5005mzkgvw','1608YFcUMM','\x20--help','5zfRkcu','\x20to\x20view\x20available\x20commands.','8QEoIFj','266331kImQgw','bold','441334LyXPrF','306WUkbto','green','187050dWROaU','4770192ZVjzmV','4037442tIVCip','log'];a172_0x29f0=function(){return _0x2f807a;};return a172_0x29f0();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3e9c6c=a172_0x3b15;console[_0x3e9c6c(0x1aa)](),console[_0x3e9c6c(0x1aa)](a172_0x52aa01[_0x3e9c6c(0x1a6)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x3e9c6c(0x1ac)+a172_0x52aa01[_0x3e9c6c(0x1a6)][_0x3e9c6c(0x1b5)](CLI_BIN_NAME+_0x3e9c6c(0x1b0))+_0x3e9c6c(0x1b2)),console[_0x3e9c6c(0x1aa)]();}
1
+ (function(_0x2d32d4,_0x4b368a){var _0x2c2b84=a172_0x472f,_0x16dc4a=_0x2d32d4();while(!![]){try{var _0x5e95d5=-parseInt(_0x2c2b84(0x1d7))/0x1*(parseInt(_0x2c2b84(0x1cf))/0x2)+-parseInt(_0x2c2b84(0x1d9))/0x3+parseInt(_0x2c2b84(0x1dd))/0x4*(-parseInt(_0x2c2b84(0x1d0))/0x5)+parseInt(_0x2c2b84(0x1d4))/0x6+parseInt(_0x2c2b84(0x1d2))/0x7*(-parseInt(_0x2c2b84(0x1d5))/0x8)+parseInt(_0x2c2b84(0x1d1))/0x9+parseInt(_0x2c2b84(0x1d8))/0xa;if(_0x5e95d5===_0x4b368a)break;else _0x16dc4a['push'](_0x16dc4a['shift']());}catch(_0x59fa82){_0x16dc4a['push'](_0x16dc4a['shift']());}}}(a172_0x5109,0x8b9f7));function a172_0x5109(){var _0x57f6d6=['62697sXzDHB','\x20to\x20view\x20available\x20commands.','log','\x20--help','4CgVoqT','423778mWaOKB','1190695FBdRAa','7666560pjuhOL','315728qSwGjq','bold','477960EQgrKw','16inzSou','green','5LPSrca','10490860uVUCHM'];a172_0x5109=function(){return _0x57f6d6;};return a172_0x5109();}function a172_0x472f(_0x5eb51f,_0x377975){_0x5eb51f=_0x5eb51f-0x1cf;var _0x5109c1=a172_0x5109();var _0x472fd3=_0x5109c1[_0x5eb51f];return _0x472fd3;}import a172_0x4cab91 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1e5417=a172_0x472f;console[_0x1e5417(0x1db)](),console[_0x1e5417(0x1db)](a172_0x4cab91['green'][_0x1e5417(0x1d3)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x1e5417(0x1db)]('\x20\x20Use\x20'+a172_0x4cab91[_0x1e5417(0x1d6)][_0x1e5417(0x1d3)](CLI_BIN_NAME+_0x1e5417(0x1dc))+_0x1e5417(0x1da)),console['log']();}
@@ -1 +1 @@
1
- (function(_0x184244,_0x311754){const _0x4b4159=a173_0x5719,_0x2d444a=_0x184244();while(!![]){try{const _0x5b9bf6=-parseInt(_0x4b4159(0x1f3))/0x1+parseInt(_0x4b4159(0x1e5))/0x2*(parseInt(_0x4b4159(0x1f8))/0x3)+parseInt(_0x4b4159(0x1df))/0x4+parseInt(_0x4b4159(0x1da))/0x5*(parseInt(_0x4b4159(0x1dc))/0x6)+-parseInt(_0x4b4159(0x1eb))/0x7+-parseInt(_0x4b4159(0x1e6))/0x8+parseInt(_0x4b4159(0x1ec))/0x9;if(_0x5b9bf6===_0x311754)break;else _0x2d444a['push'](_0x2d444a['shift']());}catch(_0x4b28db){_0x2d444a['push'](_0x2d444a['shift']());}}}(a173_0xf28b,0xc4c9b));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x578067){const _0x23265a=a173_0x5719,_0x4f87bf=[];for(const [_0xd51172,_0x5f2336]of Object[_0x23265a(0x1ef)](_0x578067)){if(_0x5f2336===!![]){const _0x5e1b79=_0xd51172[_0x23265a(0x1ed)](/([A-Z])/g,_0x23265a(0x1f5))['toLowerCase']();_0x4f87bf[_0x23265a(0x1e9)](_0x5e1b79);}}return _0x4f87bf;}export function parseDynamicFlags(){const _0x2411cf=a173_0x5719,_0x3cca25=[];for(let _0x1f5a53=0x3;_0x1f5a53<process[_0x2411cf(0x1e2)][_0x2411cf(0x1e7)];_0x1f5a53++){const _0xf2043f=process[_0x2411cf(0x1e2)][_0x1f5a53];if(_0xf2043f&&_0xf2043f[_0x2411cf(0x1e1)]('--')){const _0x3c11e4=_0xf2043f[_0x2411cf(0x1f0)](0x2);_0x3c11e4&&!_0x3c11e4['includes']('=')&&_0x3cca25['push'](_0x3c11e4);}}return _0x3cca25;}function a173_0xf28b(){const _0x2e5cd8=['--help','enable-bff-save','17811xDqzGL','\x20skill\x20--help\x0a\x20\x20','error','Error:\x20Unsupported\x20command:\x20','85UQKEwk','cwd','63258fsRTIn','Equivalent\x20command:\x20','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','1076336HxigRl','不支持的命令:\x20','startsWith','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','368EnWDWi','8343552YeqlFp','length','has','push','skill','4330151VtMGeQ','11932371WTsVkk','replace','\x0aAvailable\x20commands:','entries','slice','add','exit','398962jVsiuw','log','-$1'];a173_0xf28b=function(){return _0x2e5cd8;};return a173_0xf28b();}export function getAllProvidedFlags(_0x2e18dc){const _0x38a0d3=camelCaseFlagsToKebab(_0x2e18dc),_0x3a5aba=parseDynamicFlags(),_0x18f0b4=new Set([..._0x38a0d3,..._0x3a5aba]);return Array['from'](_0x18f0b4);}function a173_0x5719(_0x348bd0,_0x4262b1){_0x348bd0=_0x348bd0-0x1d9;const _0xf28b29=a173_0xf28b();let _0x57196b=_0xf28b29[_0x348bd0];return _0x57196b;}export function normalizeLegacyBffSaveFlags(_0x38c9c3){const _0x35cdec=a173_0x5719,_0x1f3e99=new Set(_0x38c9c3);return _0x1f3e99[_0x35cdec(0x1e8)]('dangerously-bff-save')&&_0x1f3e99[_0x35cdec(0x1f1)](_0x35cdec(0x1f7)),Array['from'](_0x1f3e99);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xa5c397,_0x7ab23b,_0x480334){const _0x3fb67b=a173_0x5719;logger['setLogPath'](process[_0x3fb67b(0x1db)]());if(_0x480334?.['help']||_0xa5c397===_0x3fb67b(0x1f6)){showHelp();return;}console[_0x3fb67b(0x1fa)](_0x3fb67b(0x1d9)+(_0xa5c397||_0x3fb67b(0x1e4))),console[_0x3fb67b(0x1f4)](_0x3fb67b(0x1ee)),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x3fb67b(0x1f4)](''),console['log'](_0x3fb67b(0x1dd)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x3fb67b(0x1ea),_0x3fb67b(0x1e0)+_0xa5c397),process[_0x3fb67b(0x1f2)](0x1);}function showHelp(){const _0x32bfc3=a173_0x5719;console[_0x32bfc3(0x1f4)](_0x32bfc3(0x1de)+CLI_BIN_NAME+_0x32bfc3(0x1f9)+CLI_BIN_NAME+_0x32bfc3(0x1e3)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ function a173_0x21b2(_0x287314,_0x2b3bee){_0x287314=_0x287314-0x90;const _0x2346e3=a173_0x2346();let _0x21b2b0=_0x2346e3[_0x287314];return _0x21b2b0;}(function(_0x410774,_0x143291){const _0x4ef5e0=a173_0x21b2,_0x35acb5=_0x410774();while(!![]){try{const _0x14119e=-parseInt(_0x4ef5e0(0xb5))/0x1*(parseInt(_0x4ef5e0(0xa0))/0x2)+-parseInt(_0x4ef5e0(0x93))/0x3+-parseInt(_0x4ef5e0(0xa8))/0x4*(parseInt(_0x4ef5e0(0xa5))/0x5)+-parseInt(_0x4ef5e0(0x92))/0x6+-parseInt(_0x4ef5e0(0xae))/0x7*(-parseInt(_0x4ef5e0(0x9e))/0x8)+parseInt(_0x4ef5e0(0x90))/0x9*(parseInt(_0x4ef5e0(0xb3))/0xa)+parseInt(_0x4ef5e0(0x97))/0xb;if(_0x14119e===_0x143291)break;else _0x35acb5['push'](_0x35acb5['shift']());}catch(_0x16b372){_0x35acb5['push'](_0x35acb5['shift']());}}}(a173_0x2346,0x3bb7b));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x579659){const _0x55e06d=a173_0x21b2,_0x1aedfe=[];for(const [_0x41d13a,_0x116e5d]of Object['entries'](_0x579659)){if(_0x116e5d===!![]){const _0x2e95bb=_0x41d13a['replace'](/([A-Z])/g,'-$1')[_0x55e06d(0xa2)]();_0x1aedfe['push'](_0x2e95bb);}}return _0x1aedfe;}export function parseDynamicFlags(){const _0x506455=a173_0x21b2,_0x38cd2b=[];for(let _0x33d393=0x3;_0x33d393<process[_0x506455(0x99)][_0x506455(0x94)];_0x33d393++){const _0x224cf9=process['argv'][_0x33d393];if(_0x224cf9&&_0x224cf9[_0x506455(0xb1)]('--')){const _0x23c440=_0x224cf9[_0x506455(0xa7)](0x2);_0x23c440&&!_0x23c440[_0x506455(0x9d)]('=')&&_0x38cd2b[_0x506455(0x95)](_0x23c440);}}return _0x38cd2b;}export function getAllProvidedFlags(_0x173937){const _0x50494c=camelCaseFlagsToKebab(_0x173937),_0x2eadda=parseDynamicFlags(),_0x28fc2f=new Set([..._0x50494c,..._0x2eadda]);return Array['from'](_0x28fc2f);}export function normalizeLegacyBffSaveFlags(_0x1dac34){const _0x39902d=a173_0x21b2,_0x3e8337=new Set(_0x1dac34);return _0x3e8337[_0x39902d(0xa3)](_0x39902d(0xb2))&&_0x3e8337[_0x39902d(0xb0)](_0x39902d(0x9f)),Array[_0x39902d(0x98)](_0x3e8337);}function a173_0x2346(){const _0x557983=['4118059gdcYlV','from','argv','cwd','--help','exit','includes','8zBiQcV','enable-bff-save','38EWrmOE','setLogPath','toLowerCase','has','(empty)','20JRZRyY','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','slice','408468YpTmrt','\x0aAvailable\x20commands:','Error:\x20Unsupported\x20command:\x20','log','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','3397534JjAbZz','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','add','startsWith','dangerously-bff-save','12410TApscX','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','5259pgeDMc','3348JYNBUE','Equivalent\x20command:\x20','1678170JWIpnd','866088eNAXyo','length','push','skill'];a173_0x2346=function(){return _0x557983;};return a173_0x2346();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4a1180,_0x58fdc4,_0x374767){const _0x2d91b6=a173_0x21b2;logger[_0x2d91b6(0xa1)](process[_0x2d91b6(0x9a)]());if(_0x374767?.['help']||_0x4a1180===_0x2d91b6(0x9b)){showHelp();return;}console['error'](_0x2d91b6(0xaa)+(_0x4a1180||_0x2d91b6(0xa4))),console[_0x2d91b6(0xab)](_0x2d91b6(0xa9)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x2d91b6(0xa6)),console[_0x2d91b6(0xab)]('\x20\x20'+CLI_BIN_NAME+_0x2d91b6(0xaf)),console['log'](''),console[_0x2d91b6(0xab)](_0x2d91b6(0x91)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2d91b6(0xad)](_0x2d91b6(0x96),'不支持的命令:\x20'+_0x4a1180),process[_0x2d91b6(0x9c)](0x1);}function showHelp(){const _0x10038f=a173_0x21b2;console[_0x10038f(0xab)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x10038f(0xac)+SKILLS_INSTALL_COMMAND_LINE+_0x10038f(0xb4));}