@lovrabet/rabetbase-cli 2.1.2-beta.0 → 2.1.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) 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/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/file-utils.js +1 -1
  149. package/lib/utils/guides-cdn.js +1 -1
  150. package/lib/utils/http-client.js +1 -1
  151. package/lib/utils/is-non-interactive.js +1 -1
  152. package/lib/utils/logger.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/rules-cdn.js +1 -1
  155. package/lib/utils/sleep.js +1 -1
  156. package/lib/utils/template-replacer.js +1 -1
  157. package/lib/utils/version.js +1 -1
  158. package/lib/utils/with-active-cookie.js +1 -1
  159. package/lib/utils/write-cli-side-channel.js +1 -1
  160. package/package.json +1 -1
@@ -1 +1 @@
1
- function a114_0x3009(_0x897382,_0x1f3a6c){_0x897382=_0x897382-0xaf;const _0x4b6622=a114_0x4b66();let _0x300996=_0x4b6622[_0x897382];return _0x300996;}const a114_0x419da6=a114_0x3009;(function(_0xa2d5cb,_0x31c410){const _0x47ef6f=a114_0x3009,_0xefdf24=_0xa2d5cb();while(!![]){try{const _0x4f7c74=parseInt(_0x47ef6f(0xb2))/0x1*(parseInt(_0x47ef6f(0xb1))/0x2)+-parseInt(_0x47ef6f(0xb8))/0x3+-parseInt(_0x47ef6f(0xaf))/0x4+-parseInt(_0x47ef6f(0xb6))/0x5+parseInt(_0x47ef6f(0xb7))/0x6+-parseInt(_0x47ef6f(0xbb))/0x7+parseInt(_0x47ef6f(0xb5))/0x8;if(_0x4f7c74===_0x31c410)break;else _0xefdf24['push'](_0xefdf24['shift']());}catch(_0x25451a){_0xefdf24['push'](_0xefdf24['shift']());}}}(a114_0x4b66,0x88479));function a114_0x4b66(){const _0x24e4b8=['1542236skYJqO','.rabetbase','2oJfZgJ','591463TwvQeV','bff','/bff','18135184jnEUOQ','5456810rpkGQW','853416lspgSI','1174302gbbwDt','bff.lock.json','bff-trash','4018287BkqRUO'];a114_0x4b66=function(){return _0x24e4b8;};return a114_0x4b66();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a114_0x419da6(0xb0),LOCK_FILE_NAME=a114_0x419da6(0xb9),TRASH_DIR_NAME=a114_0x419da6(0xba);export function loadBffProjectConfig(_0x367669,_0x463184){const _0x54bc16=a114_0x419da6,_0x93cb20=resolve(_0x463184??findProjectRootDirectory()),_0x12a797=DOT_DIR+_0x54bc16(0xb4),_0xcb4d3b=_0x12a797+'/'+_0x367669;return{'projectRoot':_0x93cb20,'appCode':_0x367669,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x12a797,'scriptsRoot':_0xcb4d3b,'scriptsRootDir':resolve(_0x93cb20,DOT_DIR,_0x54bc16(0xb3),_0x367669),'lockFilePath':resolve(_0x93cb20,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x93cb20,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a114_0x50472d=a114_0x2391;(function(_0xd405aa,_0x5aa18b){const _0x453806=a114_0x2391,_0x7138ad=_0xd405aa();while(!![]){try{const _0x374794=-parseInt(_0x453806(0x7c))/0x1+parseInt(_0x453806(0x7a))/0x2+parseInt(_0x453806(0x85))/0x3+parseInt(_0x453806(0x7d))/0x4+-parseInt(_0x453806(0x80))/0x5*(parseInt(_0x453806(0x7b))/0x6)+-parseInt(_0x453806(0x7f))/0x7*(-parseInt(_0x453806(0x81))/0x8)+-parseInt(_0x453806(0x83))/0x9;if(_0x374794===_0x5aa18b)break;else _0x7138ad['push'](_0x7138ad['shift']());}catch(_0x5a83be){_0x7138ad['push'](_0x7138ad['shift']());}}}(a114_0x4299,0xb5d49));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a114_0x2391(_0x1a3fb2,_0x3d39a3){_0x1a3fb2=_0x1a3fb2-0x7a;const _0x4299c4=a114_0x4299();let _0x2391fa=_0x4299c4[_0x1a3fb2];return _0x2391fa;}const DOT_DIR=a114_0x50472d(0x7e),LOCK_FILE_NAME='bff.lock.json',TRASH_DIR_NAME=a114_0x50472d(0x84);function a114_0x4299(){const _0x19b98d=['2093400HdfeuE','/bff','6847425tmUzVo','bff-trash','300009asoAoM','732206VWjWLw','1590294amBCsX','690145vhFUjv','2745260OFfqOf','.rabetbase','35AZiBJI','5cdRqOA'];a114_0x4299=function(){return _0x19b98d;};return a114_0x4299();}export function loadBffProjectConfig(_0x78185d,_0x4651ba){const _0x58d27d=a114_0x50472d,_0x28e081=resolve(_0x4651ba??findProjectRootDirectory()),_0xfb196f=DOT_DIR+_0x58d27d(0x82),_0xeb1379=_0xfb196f+'/'+_0x78185d;return{'projectRoot':_0x28e081,'appCode':_0x78185d,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0xfb196f,'scriptsRoot':_0xeb1379,'scriptsRootDir':resolve(_0x28e081,DOT_DIR,'bff',_0x78185d),'lockFilePath':resolve(_0x28e081,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x28e081,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- const a115_0x2389d3=a115_0x50c2;(function(_0x5e2aba,_0x230140){const _0x55a0ca=a115_0x50c2,_0x45fadd=_0x5e2aba();while(!![]){try{const _0x88fdd6=parseInt(_0x55a0ca(0x100))/0x1*(parseInt(_0x55a0ca(0x103))/0x2)+parseInt(_0x55a0ca(0x102))/0x3+-parseInt(_0x55a0ca(0xe5))/0x4+parseInt(_0x55a0ca(0xf1))/0x5+parseInt(_0x55a0ca(0xf6))/0x6+parseInt(_0x55a0ca(0xf7))/0x7+-parseInt(_0x55a0ca(0xf8))/0x8*(parseInt(_0x55a0ca(0xeb))/0x9);if(_0x88fdd6===_0x230140)break;else _0x45fadd['push'](_0x45fadd['shift']());}catch(_0x200ef5){_0x45fadd['push'](_0x45fadd['shift']());}}}(a115_0x2124,0x75e40));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a115_0x2389d3(0xfe),a115_0x2389d3(0xfb),'HOOK'];export function normalizeBffType(_0x54c1b8){const _0xa0324=a115_0x2389d3;if(!_0x54c1b8)return undefined;const _0x340b18=_0x54c1b8['trim']()[_0xa0324(0xf3)]();return SUPPORTED_BFF_TYPES['includes'](_0x340b18)?_0x340b18:undefined;}async function scanJsFilesRecursively(_0x723294,_0x2b1869){const _0x520dd9=a115_0x2389d3,_0x155f96=[];try{const _0x3699c1=await readdir(_0x723294,{'withFileTypes':!![]});for(const _0x340c11 of _0x3699c1){const _0x206170=join(_0x723294,_0x340c11['name']);if(_0x340c11[_0x520dd9(0xf9)]())_0x155f96['push'](...await scanJsFilesRecursively(_0x206170,_0x2b1869+'/'+_0x340c11[_0x520dd9(0xf2)]));else _0x340c11[_0x520dd9(0xfc)]()&&_0x340c11[_0x520dd9(0xf2)][_0x520dd9(0xe2)]('.js')&&_0x155f96[_0x520dd9(0x104)]({'lockKey':_0x2b1869+'/'+_0x340c11[_0x520dd9(0xf2)][_0x520dd9(0x105)](/\.js$/,''),'filePath':_0x206170});}}catch(_0x2efd79){if(_0x2efd79[_0x520dd9(0xe8)]!==_0x520dd9(0x101))throw _0x2efd79;}return _0x155f96;}function a115_0x50c2(_0x210416,_0x37240e){_0x210416=_0x210416-0xe0;const _0x2124e0=a115_0x2124();let _0x50c2e0=_0x2124e0[_0x210416];return _0x50c2e0;}async function scanFlatFunctions(_0x2d6a5f,_0x54acfa){const _0x4eb99d=a115_0x2389d3,_0x267157=join(_0x2d6a5f['scriptsRootDir'],_0x54acfa),_0x1611d4=await scanJsFilesRecursively(_0x267157,_0x54acfa);return _0x1611d4[_0x4eb99d(0xe9)](({lockKey:_0x1485b3,filePath:_0x2e88d2})=>({'type':_0x54acfa,'name':_0x1485b3[_0x4eb99d(0xe7)]('/')['at'](-0x1)??'','filePath':_0x2e88d2,'lockKey':_0x1485b3}));}async function scanHookFunctions(_0x2f510a){const _0xb4ba20=a115_0x2389d3,_0x2f3338=join(_0x2f510a[_0xb4ba20(0xf5)],_0xb4ba20(0xe1)),_0x59c284=[];try{const _0x388661=await readdir(_0x2f3338,{'withFileTypes':!![]});for(const _0x57adc1 of _0x388661){if(!_0x57adc1[_0xb4ba20(0xf9)]())continue;const _0x5c5194=_0x57adc1[_0xb4ba20(0xf2)],_0x28cda1=join(_0x2f3338,_0x5c5194),_0x403d2d=await readdir(_0x28cda1,{'withFileTypes':!![]});for(const _0x227d1f of _0x403d2d){if(!_0x227d1f[_0xb4ba20(0xf9)]())continue;const _0x26e420=_0x227d1f['name'],_0x1f2bf9=join(_0x28cda1,_0x26e420),_0x10a0a6=await readdir(_0x1f2bf9,{'withFileTypes':!![]});for(const _0x4042a0 of _0x10a0a6){if(!_0x4042a0[_0xb4ba20(0xf9)]())continue;const _0x2a5437=_0x4042a0[_0xb4ba20(0xf2)],_0x16ae08=join(_0x1f2bf9,_0x2a5437),_0x2ab646=await readdir(_0x16ae08,{'withFileTypes':!![]});for(const _0x52e5a3 of _0x2ab646){if(!_0x52e5a3[_0xb4ba20(0xfc)]()||!_0x52e5a3[_0xb4ba20(0xf2)][_0xb4ba20(0xe2)]('.js'))continue;const _0xbbc5cb=_0x52e5a3[_0xb4ba20(0xf2)][_0xb4ba20(0x105)](/\.js$/,'');_0x59c284[_0xb4ba20(0x104)]({'type':'HOOK','name':_0xbbc5cb,'filePath':join(_0x16ae08,_0x52e5a3[_0xb4ba20(0xf2)]),'lockKey':_0xb4ba20(0xe6)+_0x5c5194+'/'+_0x26e420+'/'+_0x2a5437+'/'+_0xbbc5cb,'alias':_0x5c5194,'operationType':_0x26e420,'functionNode':_0x2a5437});}}}}}catch(_0xf679e0){if(_0xf679e0[_0xb4ba20(0xe8)]!==_0xb4ba20(0x101))throw _0xf679e0;}return _0x59c284;}function a115_0x2124(){const _0x121689=['scriptType','1385592kiqJNU','HOOK/','split','code','map','operationType','11979Vyogrl','beforeScriptId','after','all','set','functionNode','4703320ENUtAx','name','toUpperCase','datasetCode','scriptsRootDir','2595654byzWPP','1411067JHUHIN','11728JaYUHD','isDirectory','before','ENDPOINT','isFile','functionName','COMMON','afterScriptId','34589ZaPnVy','ENOENT','1437903XInqPA','42nucYKh','push','replace','F_OK','HOOK','endsWith','get'];a115_0x2124=function(){return _0x121689;};return a115_0x2124();}export async function scanLocalBffFunctions(_0x3605b,_0x588790){const _0x1966cd=a115_0x2389d3;if(_0x588790===_0x1966cd(0xfe)||_0x588790===_0x1966cd(0xfb))return scanFlatFunctions(_0x3605b,_0x588790);if(_0x588790==='HOOK')return scanHookFunctions(_0x3605b);const [_0xaea028,_0xf453c3,_0x459bbb]=await Promise[_0x1966cd(0xee)]([scanFlatFunctions(_0x3605b,_0x1966cd(0xfe)),scanFlatFunctions(_0x3605b,'ENDPOINT'),scanHookFunctions(_0x3605b)]);return[..._0xaea028,..._0xf453c3,..._0x459bbb];}export function resolveLocalFilePathFromLockKey(_0x597d4c,_0x300b0b){const _0x4a6df6=a115_0x2389d3;return join(_0x597d4c[_0x4a6df6(0xf5)],..._0x300b0b[_0x4a6df6(0xe7)]('/'))+'.js';}export function createHookLocationMap(_0x1e4b2b){const _0x40b36d=a115_0x2389d3,_0x4a1b61=new Map();for(const _0x2c2fbb of _0x1e4b2b){_0x2c2fbb[_0x40b36d(0xec)]&&_0x4a1b61['set'](_0x2c2fbb[_0x40b36d(0xec)],{'datasetCode':_0x2c2fbb[_0x40b36d(0xf4)],'operationType':snakeToCamel(_0x2c2fbb[_0x40b36d(0xea)]),'functionNode':_0x40b36d(0xfa)}),_0x2c2fbb[_0x40b36d(0xff)]&&_0x4a1b61[_0x40b36d(0xef)](_0x2c2fbb[_0x40b36d(0xff)],{'datasetCode':_0x2c2fbb[_0x40b36d(0xf4)],'operationType':snakeToCamel(_0x2c2fbb[_0x40b36d(0xea)]),'functionNode':_0x40b36d(0xed)});}return _0x4a1b61;}export function resolveRemoteScriptTarget(_0x169fe8,_0x5558bc,_0x5c0136,_0x1ac44d,_0x30c28e){const _0x485622=a115_0x2389d3,_0x25a380=normalizeBffType(_0x5558bc[_0x485622(0xe4)]);if(!_0x25a380||!_0x5558bc[_0x485622(0xfd)])return null;if(_0x25a380===_0x485622(0xe1)){const _0x419dd6=(_0x5558bc['id']?_0x5c0136[_0x485622(0xe3)](_0x5558bc['id']):undefined)??findHookLocationByRemoteId(_0x1ac44d,_0x5558bc['id']);if(!_0x419dd6)return null;const _0x2ed44a=_0x419dd6['alias']||_0x30c28e[_0x485622(0xe3)](_0x419dd6[_0x485622(0xf4)]),_0x30c724=_0x2ed44a??_0x419dd6[_0x485622(0xf4)],_0x7c5f7d={..._0x419dd6,'alias':_0x2ed44a},_0xedbd65=_0x485622(0xe6)+_0x30c724+'/'+_0x7c5f7d[_0x485622(0xea)]+'/'+_0x7c5f7d[_0x485622(0xf0)]+'/'+_0x5558bc[_0x485622(0xfd)];return{'lockKey':_0xedbd65,'filePath':resolveLocalFilePathFromLockKey(_0x169fe8,_0xedbd65),'type':_0x485622(0xe1),'hookLocation':_0x7c5f7d};}const _0x2e9844=_0x25a380+'/'+_0x5558bc['functionName'];return{'lockKey':_0x2e9844,'filePath':resolveLocalFilePathFromLockKey(_0x169fe8,_0x2e9844),'type':_0x25a380};}export async function ensureParentDirectory(_0x13f93f){await mkdir(dirname(_0x13f93f),{'recursive':!![]});}export async function fileExists(_0x13d335){const _0x456d42=a115_0x2389d3;try{return await access(_0x13d335,constants[_0x456d42(0xe0)]),!![];}catch{return![];}}export async function directoryExists(_0x54d263){try{const _0x286674=await stat(_0x54d263);return _0x286674['isDirectory']();}catch{return![];}}
1
+ const a115_0x13845a=a115_0x4456;(function(_0x102f4f,_0x388f08){const _0x513c7d=a115_0x4456,_0xfb3454=_0x102f4f();while(!![]){try{const _0x9dbc3b=parseInt(_0x513c7d(0x1ca))/0x1*(parseInt(_0x513c7d(0x1c7))/0x2)+parseInt(_0x513c7d(0x1d5))/0x3+parseInt(_0x513c7d(0x1bc))/0x4*(-parseInt(_0x513c7d(0x1cf))/0x5)+parseInt(_0x513c7d(0x1bf))/0x6+parseInt(_0x513c7d(0x1c8))/0x7*(-parseInt(_0x513c7d(0x1d3))/0x8)+-parseInt(_0x513c7d(0x1d0))/0x9*(-parseInt(_0x513c7d(0x1c5))/0xa)+parseInt(_0x513c7d(0x1c1))/0xb;if(_0x9dbc3b===_0x388f08)break;else _0xfb3454['push'](_0xfb3454['shift']());}catch(_0x4a0fbd){_0xfb3454['push'](_0xfb3454['shift']());}}}(a115_0x1124,0xbf317));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a115_0x13845a(0x1e1),a115_0x13845a(0x1d6),a115_0x13845a(0x1d9)];export function normalizeBffType(_0x367fc4){const _0x24cba7=a115_0x13845a;if(!_0x367fc4)return undefined;const _0x118c10=_0x367fc4['trim']()[_0x24cba7(0x1c4)]();return SUPPORTED_BFF_TYPES[_0x24cba7(0x1de)](_0x118c10)?_0x118c10:undefined;}async function scanJsFilesRecursively(_0x523a95,_0x5b8d6f){const _0x51df9f=a115_0x13845a,_0x570221=[];try{const _0x5b1b6e=await readdir(_0x523a95,{'withFileTypes':!![]});for(const _0x4a378a of _0x5b1b6e){const _0x189b9b=join(_0x523a95,_0x4a378a['name']);if(_0x4a378a[_0x51df9f(0x1c9)]())_0x570221[_0x51df9f(0x1cb)](...await scanJsFilesRecursively(_0x189b9b,_0x5b8d6f+'/'+_0x4a378a[_0x51df9f(0x1d2)]));else _0x4a378a['isFile']()&&_0x4a378a[_0x51df9f(0x1d2)][_0x51df9f(0x1db)](_0x51df9f(0x1c3))&&_0x570221['push']({'lockKey':_0x5b8d6f+'/'+_0x4a378a[_0x51df9f(0x1d2)][_0x51df9f(0x1c2)](/\.js$/,''),'filePath':_0x189b9b});}}catch(_0x2c10a2){if(_0x2c10a2[_0x51df9f(0x1c6)]!==_0x51df9f(0x1ce))throw _0x2c10a2;}return _0x570221;}async function scanFlatFunctions(_0x41d030,_0x43abe6){const _0x268e98=a115_0x13845a,_0x597eb7=join(_0x41d030[_0x268e98(0x1e3)],_0x43abe6),_0x3bd6ed=await scanJsFilesRecursively(_0x597eb7,_0x43abe6);return _0x3bd6ed[_0x268e98(0x1cd)](({lockKey:_0x42d25d,filePath:_0x20995a})=>({'type':_0x43abe6,'name':_0x42d25d[_0x268e98(0x1d1)]('/')['at'](-0x1)??'','filePath':_0x20995a,'lockKey':_0x42d25d}));}async function scanHookFunctions(_0x26e730){const _0x1640bc=a115_0x13845a,_0x48fad9=join(_0x26e730['scriptsRootDir'],_0x1640bc(0x1d9)),_0x19903c=[];try{const _0x46e43f=await readdir(_0x48fad9,{'withFileTypes':!![]});for(const _0x2d3880 of _0x46e43f){if(!_0x2d3880[_0x1640bc(0x1c9)]())continue;const _0x1a2117=_0x2d3880['name'],_0x42b4f6=join(_0x48fad9,_0x1a2117),_0x132a33=await readdir(_0x42b4f6,{'withFileTypes':!![]});for(const _0x3c189a of _0x132a33){if(!_0x3c189a['isDirectory']())continue;const _0x4b642c=_0x3c189a[_0x1640bc(0x1d2)],_0x24c0a1=join(_0x42b4f6,_0x4b642c),_0x6be944=await readdir(_0x24c0a1,{'withFileTypes':!![]});for(const _0x1a216b of _0x6be944){if(!_0x1a216b[_0x1640bc(0x1c9)]())continue;const _0x430ddd=_0x1a216b['name'],_0x5459e6=join(_0x24c0a1,_0x430ddd),_0x3000d1=await readdir(_0x5459e6,{'withFileTypes':!![]});for(const _0x4fc4a8 of _0x3000d1){if(!_0x4fc4a8[_0x1640bc(0x1c0)]()||!_0x4fc4a8['name'][_0x1640bc(0x1db)]('.js'))continue;const _0x5e5219=_0x4fc4a8['name'][_0x1640bc(0x1c2)](/\.js$/,'');_0x19903c[_0x1640bc(0x1cb)]({'type':_0x1640bc(0x1d9),'name':_0x5e5219,'filePath':join(_0x5459e6,_0x4fc4a8[_0x1640bc(0x1d2)]),'lockKey':_0x1640bc(0x1df)+_0x1a2117+'/'+_0x4b642c+'/'+_0x430ddd+'/'+_0x5e5219,'alias':_0x1a2117,'operationType':_0x4b642c,'functionNode':_0x430ddd});}}}}}catch(_0x170c22){if(_0x170c22[_0x1640bc(0x1c6)]!==_0x1640bc(0x1ce))throw _0x170c22;}return _0x19903c;}function a115_0x1124(){const _0x293804=['split','name','2656TZaoDa','beforeScriptId','37950mlTEen','ENDPOINT','F_OK','afterScriptId','HOOK','after','endsWith','set','get','includes','HOOK/','functionName','COMMON','datasetCode','scriptsRootDir','before','15172myAuxl','operationType','functionNode','3227820CwIoqY','isFile','3722466kHXQSO','replace','.js','toUpperCase','4753570LOhqeS','code','1342jVzAEH','18312ksXlQQ','isDirectory','1553SCBYBW','push','scriptType','map','ENOENT','995muIOrT','9HQPriA'];a115_0x1124=function(){return _0x293804;};return a115_0x1124();}export async function scanLocalBffFunctions(_0x351a99,_0x45b811){const _0x53e69e=a115_0x13845a;if(_0x45b811===_0x53e69e(0x1e1)||_0x45b811==='ENDPOINT')return scanFlatFunctions(_0x351a99,_0x45b811);if(_0x45b811===_0x53e69e(0x1d9))return scanHookFunctions(_0x351a99);const [_0x74541a,_0x46371a,_0x2fe692]=await Promise['all']([scanFlatFunctions(_0x351a99,_0x53e69e(0x1e1)),scanFlatFunctions(_0x351a99,'ENDPOINT'),scanHookFunctions(_0x351a99)]);return[..._0x74541a,..._0x46371a,..._0x2fe692];}export function resolveLocalFilePathFromLockKey(_0x19d695,_0x536410){const _0x58232c=a115_0x13845a;return join(_0x19d695[_0x58232c(0x1e3)],..._0x536410['split']('/'))+'.js';}export function createHookLocationMap(_0xe6e4ba){const _0x4922f9=a115_0x13845a,_0x1ee88c=new Map();for(const _0x31aa58 of _0xe6e4ba){_0x31aa58[_0x4922f9(0x1d4)]&&_0x1ee88c['set'](_0x31aa58[_0x4922f9(0x1d4)],{'datasetCode':_0x31aa58[_0x4922f9(0x1e2)],'operationType':snakeToCamel(_0x31aa58[_0x4922f9(0x1bd)]),'functionNode':_0x4922f9(0x1bb)}),_0x31aa58[_0x4922f9(0x1d8)]&&_0x1ee88c[_0x4922f9(0x1dc)](_0x31aa58[_0x4922f9(0x1d8)],{'datasetCode':_0x31aa58[_0x4922f9(0x1e2)],'operationType':snakeToCamel(_0x31aa58[_0x4922f9(0x1bd)]),'functionNode':_0x4922f9(0x1da)});}return _0x1ee88c;}function a115_0x4456(_0x364eee,_0x1d5f54){_0x364eee=_0x364eee-0x1bb;const _0x112405=a115_0x1124();let _0x44568c=_0x112405[_0x364eee];return _0x44568c;}export function resolveRemoteScriptTarget(_0x535b81,_0x1dd4f6,_0x2a2ce7,_0xe152af,_0x1a48b6){const _0x212707=a115_0x13845a,_0x132c4f=normalizeBffType(_0x1dd4f6[_0x212707(0x1cc)]);if(!_0x132c4f||!_0x1dd4f6[_0x212707(0x1e0)])return null;if(_0x132c4f===_0x212707(0x1d9)){const _0x5b030f=(_0x1dd4f6['id']?_0x2a2ce7[_0x212707(0x1dd)](_0x1dd4f6['id']):undefined)??findHookLocationByRemoteId(_0xe152af,_0x1dd4f6['id']);if(!_0x5b030f)return null;const _0x28f150=_0x5b030f['alias']||_0x1a48b6[_0x212707(0x1dd)](_0x5b030f['datasetCode']),_0x26cf1e=_0x28f150??_0x5b030f['datasetCode'],_0x5eb5fa={..._0x5b030f,'alias':_0x28f150},_0x1e5a83='HOOK/'+_0x26cf1e+'/'+_0x5eb5fa[_0x212707(0x1bd)]+'/'+_0x5eb5fa[_0x212707(0x1be)]+'/'+_0x1dd4f6[_0x212707(0x1e0)];return{'lockKey':_0x1e5a83,'filePath':resolveLocalFilePathFromLockKey(_0x535b81,_0x1e5a83),'type':'HOOK','hookLocation':_0x5eb5fa};}const _0x434916=_0x132c4f+'/'+_0x1dd4f6[_0x212707(0x1e0)];return{'lockKey':_0x434916,'filePath':resolveLocalFilePathFromLockKey(_0x535b81,_0x434916),'type':_0x132c4f};}export async function ensureParentDirectory(_0x2a1787){await mkdir(dirname(_0x2a1787),{'recursive':!![]});}export async function fileExists(_0x2a66f9){const _0x460d69=a115_0x13845a;try{return await access(_0x2a66f9,constants[_0x460d69(0x1d7)]),!![];}catch{return![];}}export async function directoryExists(_0x247d86){try{const _0x14857=await stat(_0x247d86);return _0x14857['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xf07025,_0x5b358e){const _0x3294a4=a116_0x479c,_0xab4cc2=_0xf07025();while(!![]){try{const _0x1d9c4f=parseInt(_0x3294a4(0x10f))/0x1+-parseInt(_0x3294a4(0x112))/0x2+-parseInt(_0x3294a4(0x116))/0x3*(-parseInt(_0x3294a4(0x110))/0x4)+-parseInt(_0x3294a4(0x10d))/0x5+-parseInt(_0x3294a4(0x114))/0x6*(parseInt(_0x3294a4(0x113))/0x7)+parseInt(_0x3294a4(0x117))/0x8+-parseInt(_0x3294a4(0x10e))/0x9;if(_0x1d9c4f===_0x5b358e)break;else _0xab4cc2['push'](_0xab4cc2['shift']());}catch(_0x155ed9){_0xab4cc2['push'](_0xab4cc2['shift']());}}}(a116_0x374d,0xba5c3));function a116_0x479c(_0x4a8b84,_0x1b172f){_0x4a8b84=_0x4a8b84-0x10b;const _0x374da0=a116_0x374d();let _0x479ce4=_0x374da0[_0x4a8b84];return _0x479ce4;}import{readFile}from'node:fs/promises';import a116_0x442284 from'node:crypto';export function computeContentHash(_0x292052){const _0x366cfa=a116_0x479c;return a116_0x442284[_0x366cfa(0x111)](_0x366cfa(0x115))[_0x366cfa(0x10b)](_0x292052)[_0x366cfa(0x10c)]('hex');}function a116_0x374d(){const _0xec6895=['683316ZJnpDL','md5','329370JzGVCl','8553208mVfKuo','utf8','update','digest','1649270sBoTJD','13715523ipyAOG','986406CEepkt','32RFZkQW','createHash','177946NlfTkw','14HUPyni'];a116_0x374d=function(){return _0xec6895;};return a116_0x374d();}export async function computeFileHash(_0x4bee0f){const _0x420cfb=a116_0x479c,_0x76bd9d=await readFile(_0x4bee0f,_0x420cfb(0x118));return computeContentHash(_0x76bd9d);}
1
+ (function(_0x4a2c11,_0x5b82a6){const _0x49d697=a116_0x2528,_0x3dd771=_0x4a2c11();while(!![]){try{const _0x5748c5=parseInt(_0x49d697(0xf2))/0x1+-parseInt(_0x49d697(0xea))/0x2+parseInt(_0x49d697(0xee))/0x3+-parseInt(_0x49d697(0xef))/0x4*(-parseInt(_0x49d697(0xe9))/0x5)+-parseInt(_0x49d697(0xf0))/0x6*(parseInt(_0x49d697(0xf1))/0x7)+parseInt(_0x49d697(0xe7))/0x8+-parseInt(_0x49d697(0xe8))/0x9;if(_0x5748c5===_0x5b82a6)break;else _0x3dd771['push'](_0x3dd771['shift']());}catch(_0x50f8a8){_0x3dd771['push'](_0x3dd771['shift']());}}}(a116_0x3081,0xc0a52));import{readFile}from'node:fs/promises';import a116_0xa545a6 from'node:crypto';export function computeContentHash(_0x1e8ba3){const _0x254762=a116_0x2528;return a116_0xa545a6['createHash'](_0x254762(0xe6))[_0x254762(0xeb)](_0x1e8ba3)[_0x254762(0xec)](_0x254762(0xed));}function a116_0x2528(_0x1b76cb,_0x26b4be){_0x1b76cb=_0x1b76cb-0xe6;const _0x308192=a116_0x3081();let _0x252806=_0x308192[_0x1b76cb];return _0x252806;}function a116_0x3081(){const _0x46f21e=['digest','hex','3193665JXplCv','4292724lvpSZz','6RPtUjd','8825306tTMiQq','1014546dkrzBp','md5','2688400RGPRiG','6384573BbcTFu','5EpONWw','1458206ttESav','update'];a116_0x3081=function(){return _0x46f21e;};return a116_0x3081();}export async function computeFileHash(_0x30301d){const _0xa3e9f=await readFile(_0x30301d,'utf8');return computeContentHash(_0xa3e9f);}
@@ -1 +1 @@
1
- (function(_0x128f2e,_0x31fb2b){const _0x54c005=a117_0xdf08,_0x1c990a=_0x128f2e();while(!![]){try{const _0x2fe453=-parseInt(_0x54c005(0x162))/0x1*(-parseInt(_0x54c005(0x14d))/0x2)+-parseInt(_0x54c005(0x14f))/0x3+-parseInt(_0x54c005(0x152))/0x4*(parseInt(_0x54c005(0x159))/0x5)+parseInt(_0x54c005(0x14c))/0x6+parseInt(_0x54c005(0x15e))/0x7*(parseInt(_0x54c005(0x14b))/0x8)+-parseInt(_0x54c005(0x160))/0x9*(parseInt(_0x54c005(0x161))/0xa)+parseInt(_0x54c005(0x155))/0xb;if(_0x2fe453===_0x31fb2b)break;else _0x1c990a['push'](_0x1c990a['shift']());}catch(_0x1c3ea8){_0x1c990a['push'](_0x1c990a['shift']());}}}(a117_0x175f,0x395df));function a117_0xdf08(_0x31a1b4,_0x23c5d1){_0x31a1b4=_0x31a1b4-0x14b;const _0x175f48=a117_0x175f();let _0xdf08cb=_0x175f48[_0x31a1b4];return _0xdf08cb;}function a117_0x175f(){const _0x2830f6=['8KGHrKG','313770FnLJhH','120ubtDYX',':\x20scriptsRoot\x20mismatch\x20—\x20','815586hFpQHF','functions','utf8','597768foisWs','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10082435uoomjc','apps','current\x20\x22','code','15QIPKVR','scriptsRoot','stringify','lastSync','object','1286173AwwYSb','parse','18Aeurfn','1163380QgVaws','587ibGtYH'];a117_0x175f=function(){return _0x2830f6;};return a117_0x175f();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x43cfdc,_0x5a3d45,_0x538b2d,_0x4716c3){const _0x15e4a3=a117_0xdf08,_0x47d20a={'apps':_0x43cfdc[_0x15e4a3(0x156)]&&typeof _0x43cfdc[_0x15e4a3(0x156)]===_0x15e4a3(0x15d)?_0x43cfdc[_0x15e4a3(0x156)]:{}};let _0x58d05b=_0x47d20a['apps'][_0x5a3d45];if(!_0x58d05b)return _0x58d05b={'scriptsRoot':_0x538b2d,'lastSync':'','functions':{}},_0x47d20a[_0x15e4a3(0x156)][_0x5a3d45]=_0x58d05b,{'lockData':_0x47d20a,'appLock':_0x58d05b};if(!_0x58d05b['scriptsRoot'])_0x58d05b[_0x15e4a3(0x15a)]=_0x538b2d;else{if(_0x58d05b[_0x15e4a3(0x15a)]!==_0x538b2d)throw new Error(_0x4716c3+_0x15e4a3(0x14e)+(_0x15e4a3(0x157)+_0x538b2d+'\x22\x20vs\x20lock\x20\x22'+_0x58d05b['scriptsRoot']+'\x22.\x20')+_0x15e4a3(0x154));}return!_0x58d05b[_0x15e4a3(0x150)]&&(_0x58d05b[_0x15e4a3(0x150)]={}),!_0x58d05b['lastSync']&&(_0x58d05b[_0x15e4a3(0x15c)]=''),{'lockData':_0x47d20a,'appLock':_0x58d05b};}export async function readBffLockFile(_0x55678a){const _0x19a4db=a117_0xdf08;try{const _0x55a015=await readFile(_0x55678a,_0x19a4db(0x151)),_0x9b8a8f=JSON[_0x19a4db(0x15f)](_0x55a015);return{'apps':_0x9b8a8f[_0x19a4db(0x156)]&&typeof _0x9b8a8f[_0x19a4db(0x156)]==='object'?_0x9b8a8f[_0x19a4db(0x156)]:{}};}catch(_0x3770fc){if(_0x3770fc[_0x19a4db(0x158)]==='ENOENT')return null;throw new Error(_0x19a4db(0x153)+String(_0x3770fc));}}export async function writeBffLockFile(_0x4c2ced,_0x394e60){const _0x282a67=a117_0xdf08;await mkdir(dirname(_0x4c2ced),{'recursive':!![]}),await writeFile(_0x4c2ced,JSON[_0x282a67(0x15b)](_0x394e60,null,0x2),_0x282a67(0x151));}
1
+ (function(_0x1f97c3,_0x753208){const _0x14b19d=a117_0x2efb,_0x4649c6=_0x1f97c3();while(!![]){try{const _0x3c9514=-parseInt(_0x14b19d(0x84))/0x1*(parseInt(_0x14b19d(0x8e))/0x2)+-parseInt(_0x14b19d(0x81))/0x3*(parseInt(_0x14b19d(0x7f))/0x4)+-parseInt(_0x14b19d(0x80))/0x5*(-parseInt(_0x14b19d(0x8a))/0x6)+parseInt(_0x14b19d(0x86))/0x7+-parseInt(_0x14b19d(0x82))/0x8*(parseInt(_0x14b19d(0x78))/0x9)+-parseInt(_0x14b19d(0x83))/0xa+parseInt(_0x14b19d(0x7c))/0xb*(parseInt(_0x14b19d(0x7a))/0xc);if(_0x3c9514===_0x753208)break;else _0x4649c6['push'](_0x4649c6['shift']());}catch(_0x12dc99){_0x4649c6['push'](_0x4649c6['shift']());}}}(a117_0x1cab,0xc99be));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a117_0x2efb(_0x45aa9b,_0x50eb8){_0x45aa9b=_0x45aa9b-0x76;const _0x1cab5a=a117_0x1cab();let _0x2efb6c=_0x1cab5a[_0x45aa9b];return _0x2efb6c;}function a117_0x1cab(){const _0x1fbed2=['\x22.\x20','scriptsRoot','48kLKtZT','lastSync',':\x20scriptsRoot\x20mismatch\x20—\x20','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','10URCnGd','code','parse','ENOENT','204480sGBIRF','utf8','125616VxNbmt','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','1298fHndbR','\x22\x20vs\x20lock\x20\x22','object','24DNaaFK','349155SjZbNy','43107IPkaoo','16rrBiGO','1203060JRyqQU','242855jcfwRP','functions','3487071mREetD','apps'];a117_0x1cab=function(){return _0x1fbed2;};return a117_0x1cab();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0xca77e1,_0x39a379,_0x375092,_0x3b11c2){const _0x503efb=a117_0x2efb,_0x11f818={'apps':_0xca77e1['apps']&&typeof _0xca77e1['apps']===_0x503efb(0x7e)?_0xca77e1[_0x503efb(0x87)]:{}};let _0x2e643a=_0x11f818[_0x503efb(0x87)][_0x39a379];if(!_0x2e643a)return _0x2e643a={'scriptsRoot':_0x375092,'lastSync':'','functions':{}},_0x11f818[_0x503efb(0x87)][_0x39a379]=_0x2e643a,{'lockData':_0x11f818,'appLock':_0x2e643a};if(!_0x2e643a['scriptsRoot'])_0x2e643a[_0x503efb(0x89)]=_0x375092;else{if(_0x2e643a['scriptsRoot']!==_0x375092)throw new Error(_0x3b11c2+_0x503efb(0x8c)+('current\x20\x22'+_0x375092+_0x503efb(0x7d)+_0x2e643a['scriptsRoot']+_0x503efb(0x88))+_0x503efb(0x7b));}return!_0x2e643a[_0x503efb(0x85)]&&(_0x2e643a[_0x503efb(0x85)]={}),!_0x2e643a[_0x503efb(0x8b)]&&(_0x2e643a[_0x503efb(0x8b)]=''),{'lockData':_0x11f818,'appLock':_0x2e643a};}export async function readBffLockFile(_0x5ef846){const _0x2803bb=a117_0x2efb;try{const _0x10563f=await readFile(_0x5ef846,'utf8'),_0x1024ef=JSON[_0x2803bb(0x76)](_0x10563f);return{'apps':_0x1024ef[_0x2803bb(0x87)]&&typeof _0x1024ef[_0x2803bb(0x87)]===_0x2803bb(0x7e)?_0x1024ef[_0x2803bb(0x87)]:{}};}catch(_0x45cf71){if(_0x45cf71[_0x2803bb(0x8f)]===_0x2803bb(0x77))return null;throw new Error(_0x2803bb(0x8d)+String(_0x45cf71));}}export async function writeBffLockFile(_0x35cadd,_0x2163c0){const _0x146a1d=a117_0x2efb;await mkdir(dirname(_0x35cadd),{'recursive':!![]}),await writeFile(_0x35cadd,JSON['stringify'](_0x2163c0,null,0x2),_0x146a1d(0x79));}
@@ -1 +1 @@
1
- (function(_0x3fb7b3,_0x580a72){const _0x2c53cc=a119_0x2b17,_0x528bc3=_0x3fb7b3();while(!![]){try{const _0xc093e=-parseInt(_0x2c53cc(0xdd))/0x1*(parseInt(_0x2c53cc(0xd7))/0x2)+-parseInt(_0x2c53cc(0xdf))/0x3+parseInt(_0x2c53cc(0xe4))/0x4+-parseInt(_0x2c53cc(0xe7))/0x5+parseInt(_0x2c53cc(0xe2))/0x6*(-parseInt(_0x2c53cc(0xe0))/0x7)+parseInt(_0x2c53cc(0xe3))/0x8*(parseInt(_0x2c53cc(0xe6))/0x9)+parseInt(_0x2c53cc(0xd3))/0xa;if(_0xc093e===_0x580a72)break;else _0x528bc3['push'](_0x528bc3['shift']());}catch(_0x479ff0){_0x528bc3['push'](_0x528bc3['shift']());}}}(a119_0x27ae,0x8d2af));export function snakeToCamel(_0x4ce7b0){const _0x4c1438=a119_0x2b17;return _0x4ce7b0[_0x4c1438(0xde)]()[_0x4c1438(0xd5)](/_([a-z])/g,(_0x9538a9,_0x5a42fe)=>_0x5a42fe[_0x4c1438(0xd4)]());}function a119_0x2b17(_0x3a9de9,_0x3f7009){_0x3a9de9=_0x3a9de9-0xd2;const _0x27ae8c=a119_0x27ae();let _0x2b1751=_0x27ae8c[_0x3a9de9];return _0x2b1751;}export function findHookLocationByRemoteId(_0x5affac,_0x492708){const _0x27ba64=a119_0x2b17;if(!_0x492708)return undefined;for(const _0x4ea534 of Object['values'](_0x5affac)){if(_0x4ea534[_0x27ba64(0xd9)]===_0x492708&&_0x4ea534[_0x27ba64(0xe1)]&&_0x4ea534['operationType']&&_0x4ea534[_0x27ba64(0xda)])return{'datasetCode':_0x4ea534[_0x27ba64(0xe1)],'operationType':_0x4ea534[_0x27ba64(0xd6)],'functionNode':_0x4ea534[_0x27ba64(0xda)]};}return undefined;}function a119_0x27ae(){const _0x219418=['operationType','6mxMMEM','match','remoteId','functionNode','trim','before','327983EGUqqN','toLowerCase','591471GOfhfI','797083YwJZnt','datasetCode','6ZQZLSh','5963464CTrdoP','3146780FwcbIE','test','9zVjvsB','2293885JeJWZH','after','7998470BmsHLe','toUpperCase','replace'];a119_0x27ae=function(){return _0x219418;};return a119_0x27ae();}export function extractScriptDescription(_0xda9769){const _0x17cadc=a119_0x2b17,_0x6bcf1e=_0xda9769[_0x17cadc(0xd8)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x6bcf1e?.[0x1]?.[_0x17cadc(0xdb)]()||undefined;}export function isValidBffFunctionName(_0x24fb9d){const _0xe749fa=a119_0x2b17;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe749fa(0xe5)](_0x24fb9d);}export function normalizeHookFunctionNode(_0x4d42ce){const _0x412f00=a119_0x2b17;if(!_0x4d42ce)return undefined;const _0x5baa6d=_0x4d42ce['trim']()[_0x412f00(0xde)]();if(_0x5baa6d===_0x412f00(0xdc)||_0x5baa6d===_0x412f00(0xd2))return _0x5baa6d;return undefined;}
1
+ (function(_0x1a29ef,_0xcd0c52){const _0x1d8e8a=a119_0x251d,_0x532526=_0x1a29ef();while(!![]){try{const _0x1b6c6b=-parseInt(_0x1d8e8a(0x11b))/0x1+parseInt(_0x1d8e8a(0x126))/0x2+parseInt(_0x1d8e8a(0x114))/0x3*(-parseInt(_0x1d8e8a(0x112))/0x4)+parseInt(_0x1d8e8a(0x121))/0x5+parseInt(_0x1d8e8a(0x125))/0x6*(parseInt(_0x1d8e8a(0x11d))/0x7)+parseInt(_0x1d8e8a(0x119))/0x8+parseInt(_0x1d8e8a(0x117))/0x9*(-parseInt(_0x1d8e8a(0x123))/0xa);if(_0x1b6c6b===_0xcd0c52)break;else _0x532526['push'](_0x532526['shift']());}catch(_0x217e3e){_0x532526['push'](_0x532526['shift']());}}}(a119_0x4f8e,0xb5c70));export function snakeToCamel(_0x453e32){const _0x25a643=a119_0x251d;return _0x453e32[_0x25a643(0x120)]()[_0x25a643(0x11a)](/_([a-z])/g,(_0x5f3c1e,_0x25129b)=>_0x25129b[_0x25a643(0x113)]());}export function findHookLocationByRemoteId(_0x520f26,_0x3c6810){const _0x512956=a119_0x251d;if(!_0x3c6810)return undefined;for(const _0x2d2733 of Object['values'](_0x520f26)){if(_0x2d2733[_0x512956(0x115)]===_0x3c6810&&_0x2d2733[_0x512956(0x116)]&&_0x2d2733[_0x512956(0x118)]&&_0x2d2733[_0x512956(0x122)])return{'datasetCode':_0x2d2733[_0x512956(0x116)],'operationType':_0x2d2733[_0x512956(0x118)],'functionNode':_0x2d2733[_0x512956(0x122)]};}return undefined;}export function extractScriptDescription(_0x242396){const _0x429d16=a119_0x251d,_0x4ebd3d=_0x242396[_0x429d16(0x124)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x4ebd3d?.[0x1]?.['trim']()||undefined;}function a119_0x251d(_0x674e13,_0x415066){_0x674e13=_0x674e13-0x112;const _0x4f8ed7=a119_0x4f8e();let _0x251d6f=_0x4f8ed7[_0x674e13];return _0x251d6f;}function a119_0x4f8e(){const _0x150214=['234ZZqUIM','operationType','8111072mnmkxT','replace','1070481UXjeHf','before','10146017IWUsAP','after','test','toLowerCase','3003990xQPmFb','functionNode','573530uixrhq','match','6Cloijb','2773174XmIKxD','352148VwTxkk','toUpperCase','39NILZNX','remoteId','datasetCode'];a119_0x4f8e=function(){return _0x150214;};return a119_0x4f8e();}export function isValidBffFunctionName(_0x5bb3b9){const _0x34940c=a119_0x251d;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x34940c(0x11f)](_0x5bb3b9);}export function normalizeHookFunctionNode(_0x4372be){const _0x1bf4e7=a119_0x251d;if(!_0x4372be)return undefined;const _0x2dd885=_0x4372be['trim']()['toLowerCase']();if(_0x2dd885===_0x1bf4e7(0x11c)||_0x2dd885===_0x1bf4e7(0x11e))return _0x2dd885;return undefined;}
@@ -1 +1 @@
1
- (function(_0x176699,_0x4a0dda){const _0x48b513=a120_0x1287,_0x3cf82d=_0x176699();while(!![]){try{const _0x119ecd=-parseInt(_0x48b513(0x128))/0x1+parseInt(_0x48b513(0x13a))/0x2*(parseInt(_0x48b513(0x122))/0x3)+parseInt(_0x48b513(0x12e))/0x4+parseInt(_0x48b513(0x126))/0x5*(-parseInt(_0x48b513(0x127))/0x6)+parseInt(_0x48b513(0x11f))/0x7*(parseInt(_0x48b513(0x130))/0x8)+-parseInt(_0x48b513(0x138))/0x9+parseInt(_0x48b513(0x129))/0xa;if(_0x119ecd===_0x4a0dda)break;else _0x3cf82d['push'](_0x3cf82d['shift']());}catch(_0x4a316b){_0x3cf82d['push'](_0x3cf82d['shift']());}}}(a120_0x4870,0x67a25));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x28928c){const _0x1b1b1c=a120_0x1287;if(cache['has'](_0x28928c))return cache[_0x1b1b1c(0x123)](_0x28928c);const _0x27019e=await listDatasets(_0x28928c),_0x3bcdc8=new Map();for(const _0x27cd83 of _0x27019e){const _0x1dce42=_0x27cd83[_0x1b1b1c(0x134)];_0x1dce42?.[_0x1b1b1c(0x131)]!=null&&_0x3bcdc8[_0x1b1b1c(0x137)](_0x1dce42['dbId'],_0x1dce42[_0x1b1b1c(0x12b)]??_0x1b1b1c(0x132)+_0x1dce42[_0x1b1b1c(0x131)]);}const _0x129e4c=[..._0x3bcdc8['entries']()][_0x1b1b1c(0x121)](([_0x14d05d,_0xef47fc])=>({'dbId':_0x14d05d,'dbName':_0xef47fc}));return cache[_0x1b1b1c(0x137)](_0x28928c,_0x129e4c),_0x129e4c;}function a120_0x1287(_0x1d344b,_0x34abe2){_0x1d344b=_0x1d344b-0x11f;const _0x4870f7=a120_0x4870();let _0x128732=_0x4870f7[_0x1d344b];return _0x128732;}export async function resolveDb(_0x50a756,_0x1c135a){const _0x373f54=a120_0x1287,_0x5644e1=await listDatabases(_0x50a756);if(_0x5644e1['length']===0x0)return{'resolved':[],'error':_0x373f54(0x12a)};if(!_0x1c135a)return{'resolved':_0x5644e1};const _0x47ba08=Number(_0x1c135a);if(!Number['isNaN'](_0x47ba08)){const _0x5266f7=_0x5644e1[_0x373f54(0x124)](_0x4ca652=>_0x4ca652[_0x373f54(0x131)]===_0x47ba08);if(_0x5266f7)return{'resolved':[_0x5266f7]};}const _0x417011=_0x1c135a[_0x373f54(0x13b)](),_0x353108=_0x5644e1[_0x373f54(0x135)](_0x19805e=>_0x19805e[_0x373f54(0x12b)]['toLowerCase']()[_0x373f54(0x125)](_0x417011));if(_0x353108[_0x373f54(0x120)]>0x0)return{'resolved':_0x353108};const _0xdd5f35=_0x5644e1[_0x373f54(0x121)](_0xcba23f=>_0xcba23f[_0x373f54(0x12b)]+'\x20('+_0xcba23f[_0x373f54(0x131)]+')')[_0x373f54(0x136)](',\x20');return{'resolved':[],'error':_0x373f54(0x12d)+_0x1c135a+_0x373f54(0x12c)+_0xdd5f35};}export async function resolveOneDb(_0x206ae5,_0x493880){const _0x26673a=a120_0x1287,{resolved:_0x3fad03,error:_0xa9fde2}=await resolveDb(_0x206ae5,_0x493880);if(_0xa9fde2)return{'db':null,'error':_0xa9fde2};if(_0x3fad03[_0x26673a(0x120)]===0x1)return{'db':_0x3fad03[0x0]};if(!_0x493880){const _0x5bf966=_0x3fad03[_0x26673a(0x121)](_0x5022f6=>_0x5022f6['dbName']+'\x20('+_0x5022f6[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':_0x26673a(0x139)+_0x5bf966};}const _0x182301=_0x3fad03[_0x26673a(0x121)](_0x1be764=>_0x1be764['dbName']+'\x20('+_0x1be764[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':'\x22'+_0x493880+_0x26673a(0x133)+_0x182301+_0x26673a(0x12f)};}export async function getDbName(_0x1929f4,_0x158572){const _0x5b4348=a120_0x1287,_0x363073=await listDatabases(_0x1929f4);return _0x363073['find'](_0x1d7577=>_0x1d7577[_0x5b4348(0x131)]===_0x158572)?.[_0x5b4348(0x12b)];}function a120_0x4870(){const _0x166784=['6GmWYAJ','755230pfzDdC','3223720AcYLEu','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbName','\x22.\x20Available:\x20','No\x20database\x20matching\x20\x22','2422468iBYAkd','.\x20Be\x20more\x20specific.','8arQcDo','dbId','db-','\x22\x20matches\x20multiple\x20databases:\x20','dbtableConfig','filter','join','set','6320718RpkCnl','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','945388FXQErF','toLowerCase','5309437HAxmQa','length','map','3aQyKkv','get','find','includes','1385785ihvUfh'];a120_0x4870=function(){return _0x166784;};return a120_0x4870();}
1
+ function a120_0x1bc8(_0x2db305,_0x1c94d4){_0x2db305=_0x2db305-0x1c5;const _0x2ed063=a120_0x2ed0();let _0x1bc892=_0x2ed063[_0x2db305];return _0x1bc892;}(function(_0x3b369a,_0x408996){const _0x47abce=a120_0x1bc8,_0x236bb4=_0x3b369a();while(!![]){try{const _0x1c74e1=parseInt(_0x47abce(0x1d0))/0x1*(parseInt(_0x47abce(0x1da))/0x2)+parseInt(_0x47abce(0x1d4))/0x3*(parseInt(_0x47abce(0x1d1))/0x4)+-parseInt(_0x47abce(0x1ce))/0x5*(parseInt(_0x47abce(0x1e1))/0x6)+-parseInt(_0x47abce(0x1dd))/0x7+parseInt(_0x47abce(0x1e0))/0x8*(parseInt(_0x47abce(0x1d8))/0x9)+parseInt(_0x47abce(0x1d5))/0xa*(parseInt(_0x47abce(0x1dc))/0xb)+-parseInt(_0x47abce(0x1cd))/0xc;if(_0x1c74e1===_0x408996)break;else _0x236bb4['push'](_0x236bb4['shift']());}catch(_0x5e67a3){_0x236bb4['push'](_0x236bb4['shift']());}}}(a120_0x2ed0,0x30ab4));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x53b99c){const _0x163bc3=a120_0x1bc8;if(cache[_0x163bc3(0x1d2)](_0x53b99c))return cache[_0x163bc3(0x1cb)](_0x53b99c);const _0x42f292=await listDatasets(_0x53b99c),_0x1048b1=new Map();for(const _0x333b17 of _0x42f292){const _0x14c65c=_0x333b17[_0x163bc3(0x1c7)];_0x14c65c?.[_0x163bc3(0x1c8)]!=null&&_0x1048b1[_0x163bc3(0x1d3)](_0x14c65c[_0x163bc3(0x1c8)],_0x14c65c[_0x163bc3(0x1c9)]??'db-'+_0x14c65c[_0x163bc3(0x1c8)]);}const _0x3013d9=[..._0x1048b1[_0x163bc3(0x1d6)]()][_0x163bc3(0x1de)](([_0x4275cd,_0x2f2676])=>({'dbId':_0x4275cd,'dbName':_0x2f2676}));return cache[_0x163bc3(0x1d3)](_0x53b99c,_0x3013d9),_0x3013d9;}export async function resolveDb(_0x169131,_0x29c5dc){const _0x36faf9=a120_0x1bc8,_0x46ae8d=await listDatabases(_0x169131);if(_0x46ae8d[_0x36faf9(0x1d9)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x29c5dc)return{'resolved':_0x46ae8d};const _0x436c58=Number(_0x29c5dc);if(!Number[_0x36faf9(0x1d7)](_0x436c58)){const _0x5e98b8=_0x46ae8d[_0x36faf9(0x1c5)](_0x5e8fad=>_0x5e8fad[_0x36faf9(0x1c8)]===_0x436c58);if(_0x5e98b8)return{'resolved':[_0x5e98b8]};}const _0xed8a3e=_0x29c5dc[_0x36faf9(0x1cf)](),_0x4a0c0e=_0x46ae8d['filter'](_0x5741bc=>_0x5741bc[_0x36faf9(0x1c9)][_0x36faf9(0x1cf)]()['includes'](_0xed8a3e));if(_0x4a0c0e[_0x36faf9(0x1d9)]>0x0)return{'resolved':_0x4a0c0e};const _0x46b67b=_0x46ae8d['map'](_0x52e75e=>_0x52e75e['dbName']+'\x20('+_0x52e75e[_0x36faf9(0x1c8)]+')')['join'](',\x20');return{'resolved':[],'error':_0x36faf9(0x1ca)+_0x29c5dc+_0x36faf9(0x1db)+_0x46b67b};}export async function resolveOneDb(_0x59bc30,_0x239da7){const _0x58cda7=a120_0x1bc8,{resolved:_0x22d28a,error:_0x786c03}=await resolveDb(_0x59bc30,_0x239da7);if(_0x786c03)return{'db':null,'error':_0x786c03};if(_0x22d28a[_0x58cda7(0x1d9)]===0x1)return{'db':_0x22d28a[0x0]};if(!_0x239da7){const _0x4ce97e=_0x22d28a[_0x58cda7(0x1de)](_0xf17fa5=>_0xf17fa5[_0x58cda7(0x1c9)]+'\x20('+_0xf17fa5[_0x58cda7(0x1c8)]+')')[_0x58cda7(0x1c6)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x4ce97e};}const _0x57b2d2=_0x22d28a[_0x58cda7(0x1de)](_0x41ff2e=>_0x41ff2e[_0x58cda7(0x1c9)]+'\x20('+_0x41ff2e['dbId']+')')[_0x58cda7(0x1c6)](',\x20');return{'db':null,'error':'\x22'+_0x239da7+_0x58cda7(0x1cc)+_0x57b2d2+_0x58cda7(0x1df)};}function a120_0x2ed0(){const _0x46a70=['336864QFiXAU','5ymlxpF','toLowerCase','1513IcnlXH','60SSESbD','has','set','74106JHmctQ','60MSRVKD','entries','isNaN','680301EqYVDd','length','30vKYGEJ','\x22.\x20Available:\x20','253066WmObaI','1740550etkrmc','map','.\x20Be\x20more\x20specific.','24MGYXXz','1691748XBpVhG','find','join','dbtableConfig','dbId','dbName','No\x20database\x20matching\x20\x22','get','\x22\x20matches\x20multiple\x20databases:\x20'];a120_0x2ed0=function(){return _0x46a70;};return a120_0x2ed0();}export async function getDbName(_0x418516,_0x112ca1){const _0x3867d6=a120_0x1bc8,_0x1ff037=await listDatabases(_0x418516);return _0x1ff037[_0x3867d6(0x1c5)](_0x3defb5=>_0x3defb5['dbId']===_0x112ca1)?.['dbName'];}
@@ -1 +1 @@
1
- function a121_0x2d21(_0x2b03b7,_0x215c86){_0x2b03b7=_0x2b03b7-0xc4;const _0x49109b=a121_0x4910();let _0x2d2151=_0x49109b[_0x2b03b7];return _0x2d2151;}function a121_0x4910(){const _0x47c609=['toUpperCase','add','\x20query\x20targeting\x20','3264GuNHLR','type','8071mKsxZQ','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','24zFjdYu','5307809MQHimS','unknown\x20table(s)','DELETE','2875371uFprSO','UPDATE','UNKNOWN','from','test','10HNuIqL','SQL\x20content\x20is\x20empty','4404RUdXlD','\x20with\x20parameters:\x20','9604107SuCTRf','length','trim','reason','DDL','4kjNtGx','replace','push','matchAll','INSERT','4YOcyhC','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','11815xQuIsZ','isDangerous','1661kGsOlt','598385NykjTn','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a121_0x4910=function(){return _0x47c609;};return a121_0x4910();}(function(_0x39a815,_0x22540d){const _0x524e77=a121_0x2d21,_0x536093=_0x39a815();while(!![]){try{const _0x253430=parseInt(_0x524e77(0xe4))/0x1*(parseInt(_0x524e77(0xde))/0x2)+parseInt(_0x524e77(0xcb))/0x3*(-parseInt(_0x524e77(0xd9))/0x4)+-parseInt(_0x524e77(0xe1))/0x5*(-parseInt(_0x524e77(0xe9))/0x6)+-parseInt(_0x524e77(0xc4))/0x7*(parseInt(_0x524e77(0xc7))/0x8)+parseInt(_0x524e77(0xd4))/0x9*(-parseInt(_0x524e77(0xd0))/0xa)+parseInt(_0x524e77(0xe3))/0xb*(-parseInt(_0x524e77(0xd2))/0xc)+parseInt(_0x524e77(0xc8))/0xd;if(_0x253430===_0x22540d)break;else _0x536093['push'](_0x536093['shift']());}catch(_0x59b260){_0x536093['push'](_0x536093['shift']());}}}(a121_0x4910,0xc4cbf));export function detectSqlType(_0x46f1cd){const _0x96005e=a121_0x2d21;if(!_0x46f1cd?.[_0x96005e(0xd6)]())return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![],'reason':_0x96005e(0xd1)};const _0x36e6f5=_0x46f1cd['replace'](/#\{[^}]*\}/g,'?')[_0x96005e(0xda)](/\$\{[^}]*\}/g,'?')[_0x96005e(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x96005e(0xda)](/\/\*[\s\S]*?\*\//g,'')[_0x96005e(0xd6)](),_0x38dfc4=_0x36e6f5['split']('\x0a');let _0x28735b='';for(const _0x140b51 of _0x38dfc4){const _0x53361e=_0x140b51['trim']();if(!_0x53361e||_0x53361e[_0x96005e(0xc6)]('--')||_0x53361e[_0x96005e(0xc6)]('/*'))continue;_0x28735b=_0x53361e;break;}const _0x47985f=_0x28735b[_0x96005e(0xe6)]();if(_0x47985f[_0x96005e(0xc6)]('SELECT')||_0x47985f[_0x96005e(0xc6)]('WITH')){const _0x4134ef=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x96005e(0xcf)](_0x36e6f5);return{'type':'SELECT','isSelectOnly':!_0x4134ef,'isDangerous':_0x4134ef,'reason':_0x4134ef?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x47985f[_0x96005e(0xc6)](_0x96005e(0xdd)))return{'type':_0x96005e(0xdd),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('UPDATE'))return{'type':_0x96005e(0xcc),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('DELETE'))return{'type':_0x96005e(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xe5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x96005e(0xcf)](_0x47985f))return{'type':_0x96005e(0xd8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xc5)};return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x16ec05){const _0x3a8edb=a121_0x2d21,_0x3d1530=_0x16ec05[_0x3a8edb(0xda)](/#\{[^}]*\}/g,'?')[_0x3a8edb(0xda)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3a8edb(0xda)](/--.*$/gm,'')[_0x3a8edb(0xda)](/\/\*[\s\S]*?\*\//g,''),_0x35bc09=[],_0x1ee3cc=_0x3d1530['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1ee3cc?.[0x1])_0x35bc09[_0x3a8edb(0xdb)](_0x1ee3cc[0x1][_0x3a8edb(0xda)](/[`"]/g,''));for(const _0x2ba407 of _0x3d1530['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x22b93a=_0x2ba407[0x1]?.['replace'](/[`"]/g,'');if(_0x22b93a&&!_0x35bc09['includes'](_0x22b93a))_0x35bc09[_0x3a8edb(0xdb)](_0x22b93a);}const _0x1253d8=_0x3d1530['match'](/INTO\s+([^\s(]+)/i);if(_0x1253d8?.[0x1]){const _0x576194=_0x1253d8[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09[_0x3a8edb(0xdf)](_0x576194))_0x35bc09[_0x3a8edb(0xdb)](_0x576194);}const _0x4136c9=_0x3d1530['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4136c9?.[0x1]){const _0x17fb16=_0x4136c9[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09['includes'](_0x17fb16))_0x35bc09[_0x3a8edb(0xdb)](_0x17fb16);}return _0x35bc09;}function extractParameters(_0x3d5584){const _0x57d68=a121_0x2d21,_0x251704=new Set();for(const _0x5a1974 of _0x3d5584[_0x57d68(0xdc)](/#\{(\w+)\}/g))if(_0x5a1974[0x1])_0x251704[_0x57d68(0xe7)](_0x5a1974[0x1]);for(const _0x54ccc4 of _0x3d5584[_0x57d68(0xdc)](/\$\{(\w+)\}/g))if(_0x54ccc4[0x1])_0x251704[_0x57d68(0xe7)](_0x54ccc4[0x1]);return Array[_0x57d68(0xce)](_0x251704);}export function validateSql(_0x819d69){const _0x13bd28=a121_0x2d21,_0x4fdee8=detectSqlType(_0x819d69),_0x7697a4=extractTables(_0x819d69),_0x276f9b=extractParameters(_0x819d69);if(_0x4fdee8[_0x13bd28(0xe2)])return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xd7)]||_0x4fdee8['type']+_0x13bd28(0xe0)};if(_0x4fdee8[_0x13bd28(0xea)]===_0x13bd28(0xcd))return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xea)]+_0x13bd28(0xe8)+(_0x7697a4['length']?_0x7697a4['join'](',\x20'):_0x13bd28(0xc9))+(_0x276f9b[_0x13bd28(0xd5)]?_0x13bd28(0xd3)+_0x276f9b['join'](',\x20'):'')};}
1
+ (function(_0x2429cf,_0x1a1c0d){const _0x2b3282=a121_0x3aa1,_0x292d28=_0x2429cf();while(!![]){try{const _0x36c182=-parseInt(_0x2b3282(0x16e))/0x1+-parseInt(_0x2b3282(0x15a))/0x2+parseInt(_0x2b3282(0x15c))/0x3*(parseInt(_0x2b3282(0x178))/0x4)+parseInt(_0x2b3282(0x179))/0x5*(parseInt(_0x2b3282(0x160))/0x6)+parseInt(_0x2b3282(0x17a))/0x7*(parseInt(_0x2b3282(0x168))/0x8)+-parseInt(_0x2b3282(0x157))/0x9*(parseInt(_0x2b3282(0x172))/0xa)+parseInt(_0x2b3282(0x167))/0xb*(parseInt(_0x2b3282(0x169))/0xc);if(_0x36c182===_0x1a1c0d)break;else _0x292d28['push'](_0x292d28['shift']());}catch(_0x1f1e88){_0x292d28['push'](_0x292d28['shift']());}}}(a121_0x3b16,0x7a2be));function a121_0x3b16(){const _0x24bbb1=['1947165UkaOvZ','119EEPECo','match','type','2169jsowTh','DELETE','replace','69482oUEKkK','test','30Bnyqwp','split','push','WITH','6sdrKik','matchAll','SELECT','length','UPDATE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','\x20query\x20targeting\x20','22hzwCBI','91352tZTtqn','1625124WRkRRA','includes','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','add','649871xRcWDk','startsWith','unknown\x20table(s)','join','25540pMdJjH','reason','trim','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','INSERT','DDL','378452ccYDIr'];a121_0x3b16=function(){return _0x24bbb1;};return a121_0x3b16();}export function detectSqlType(_0x12b8bc){const _0x520268=a121_0x3aa1;if(!_0x12b8bc?.[_0x520268(0x174)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x2e3f6a=_0x12b8bc[_0x520268(0x159)](/#\{[^}]*\}/g,'?')[_0x520268(0x159)](/\$\{[^}]*\}/g,'?')[_0x520268(0x159)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x520268(0x159)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x5ba8f7=_0x2e3f6a[_0x520268(0x15d)]('\x0a');let _0x11f862='';for(const _0x4b0835 of _0x5ba8f7){const _0x55d388=_0x4b0835[_0x520268(0x174)]();if(!_0x55d388||_0x55d388[_0x520268(0x16f)]('--')||_0x55d388[_0x520268(0x16f)]('/*'))continue;_0x11f862=_0x55d388;break;}const _0x4f7167=_0x11f862['toUpperCase']();if(_0x4f7167[_0x520268(0x16f)](_0x520268(0x162))||_0x4f7167[_0x520268(0x16f)](_0x520268(0x15f))){const _0x7a89e1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x520268(0x15b)](_0x2e3f6a);return{'type':_0x520268(0x162),'isSelectOnly':!_0x7a89e1,'isDangerous':_0x7a89e1,'reason':_0x7a89e1?_0x520268(0x16c):undefined};}if(_0x4f7167[_0x520268(0x16f)](_0x520268(0x176)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x4f7167[_0x520268(0x16f)]('UPDATE'))return{'type':_0x520268(0x164),'isSelectOnly':![],'isDangerous':![]};if(_0x4f7167['startsWith'](_0x520268(0x158)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x520268(0x15b)](_0x4f7167))return{'type':_0x520268(0x177),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x520268(0x16b),'isSelectOnly':![],'isDangerous':![]};}function a121_0x3aa1(_0x1f11a8,_0x7882a4){_0x1f11a8=_0x1f11a8-0x156;const _0x3b1679=a121_0x3b16();let _0x3aa1b1=_0x3b1679[_0x1f11a8];return _0x3aa1b1;}function extractTables(_0x4a81b2){const _0x1250b6=a121_0x3aa1,_0xde4fd=_0x4a81b2[_0x1250b6(0x159)](/#\{[^}]*\}/g,'?')[_0x1250b6(0x159)](/\$\{[^}]*\}/g,'?')[_0x1250b6(0x159)](/'[^']*'/g,'\x27\x27')[_0x1250b6(0x159)](/--.*$/gm,'')[_0x1250b6(0x159)](/\/\*[\s\S]*?\*\//g,''),_0xf1f7d1=[],_0x1b24aa=_0xde4fd['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1b24aa?.[0x1])_0xf1f7d1[_0x1250b6(0x15e)](_0x1b24aa[0x1][_0x1250b6(0x159)](/[`"]/g,''));for(const _0x5c1c85 of _0xde4fd[_0x1250b6(0x161)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x197ae5=_0x5c1c85[0x1]?.[_0x1250b6(0x159)](/[`"]/g,'');if(_0x197ae5&&!_0xf1f7d1[_0x1250b6(0x16a)](_0x197ae5))_0xf1f7d1[_0x1250b6(0x15e)](_0x197ae5);}const _0x557e37=_0xde4fd['match'](/INTO\s+([^\s(]+)/i);if(_0x557e37?.[0x1]){const _0x2dedb0=_0x557e37[0x1][_0x1250b6(0x159)](/[`"]/g,'');if(!_0xf1f7d1[_0x1250b6(0x16a)](_0x2dedb0))_0xf1f7d1[_0x1250b6(0x15e)](_0x2dedb0);}const _0x5bc1a8=_0xde4fd[_0x1250b6(0x17b)](/UPDATE\s+([^\s,)(]+)/i);if(_0x5bc1a8?.[0x1]){const _0x10ace4=_0x5bc1a8[0x1][_0x1250b6(0x159)](/[`"]/g,'');if(!_0xf1f7d1['includes'](_0x10ace4))_0xf1f7d1[_0x1250b6(0x15e)](_0x10ace4);}return _0xf1f7d1;}function extractParameters(_0x1f818b){const _0xbd75ab=a121_0x3aa1,_0x41d1d0=new Set();for(const _0x50d6aa of _0x1f818b[_0xbd75ab(0x161)](/#\{(\w+)\}/g))if(_0x50d6aa[0x1])_0x41d1d0['add'](_0x50d6aa[0x1]);for(const _0x56c8fb of _0x1f818b[_0xbd75ab(0x161)](/\$\{(\w+)\}/g))if(_0x56c8fb[0x1])_0x41d1d0[_0xbd75ab(0x16d)](_0x56c8fb[0x1]);return Array['from'](_0x41d1d0);}export function validateSql(_0x381830){const _0x45f0e1=a121_0x3aa1,_0x4730ed=detectSqlType(_0x381830),_0xce87f9=extractTables(_0x381830),_0x5bdcda=extractParameters(_0x381830);if(_0x4730ed['isDangerous'])return{'valid':![],'sqlType':_0x4730ed,'tables':_0xce87f9,'parameters':_0x5bdcda,'message':_0x4730ed[_0x45f0e1(0x173)]||_0x4730ed[_0x45f0e1(0x156)]+_0x45f0e1(0x175)};if(_0x4730ed['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x4730ed,'tables':_0xce87f9,'parameters':_0x5bdcda,'message':_0x45f0e1(0x165)};return{'valid':!![],'sqlType':_0x4730ed,'tables':_0xce87f9,'parameters':_0x5bdcda,'message':_0x4730ed[_0x45f0e1(0x156)]+_0x45f0e1(0x166)+(_0xce87f9[_0x45f0e1(0x163)]?_0xce87f9['join'](',\x20'):_0x45f0e1(0x170))+(_0x5bdcda[_0x45f0e1(0x163)]?'\x20with\x20parameters:\x20'+_0x5bdcda[_0x45f0e1(0x171)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a122_0x49ffbb=a122_0x27d0;(function(_0x16cc73,_0x153d4c){const _0x27d33f=a122_0x27d0,_0x183759=_0x16cc73();while(!![]){try{const _0x5426d6=parseInt(_0x27d33f(0x116))/0x1*(parseInt(_0x27d33f(0x111))/0x2)+parseInt(_0x27d33f(0x10e))/0x3*(-parseInt(_0x27d33f(0x118))/0x4)+-parseInt(_0x27d33f(0x109))/0x5*(-parseInt(_0x27d33f(0x110))/0x6)+-parseInt(_0x27d33f(0x108))/0x7*(parseInt(_0x27d33f(0x119))/0x8)+parseInt(_0x27d33f(0x11a))/0x9+parseInt(_0x27d33f(0x10d))/0xa*(-parseInt(_0x27d33f(0x10b))/0xb)+-parseInt(_0x27d33f(0x117))/0xc*(parseInt(_0x27d33f(0x114))/0xd);if(_0x5426d6===_0x153d4c)break;else _0x183759['push'](_0x183759['shift']());}catch(_0x8e9b4c){_0x183759['push'](_0x183759['shift']());}}}(a122_0x2b88,0xb8e6b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a122_0x2b88(){const _0x1e283b=['2640065qaLOof','join','22yekPRH','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2061820yGwhxQ','32244KFHznU','\x0a\x20\x20\x20\x20\x20\x20\x20','12WwQaAj','5440pkVnLQ','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','13aSUjnj','\x20auth`\x20to\x20login\x20first.','293AVaxrk','16417428Zxrqnc','92MTBGCG','56yQfLSA','9919719YfbnpG','170135MtTdma'];a122_0x2b88=function(){return _0x1e283b;};return a122_0x2b88();}export{CliError};function a122_0x27d0(_0x533c1b,_0x2bca6a){_0x533c1b=_0x533c1b-0x108;const _0x2b884f=a122_0x2b88();let _0x27d029=_0x2b884f[_0x533c1b];return _0x27d029;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x115),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x112),'Tip:\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x10c)][a122_0x49ffbb(0x10a)](a122_0x49ffbb(0x10f)),'notInProjectHint':a122_0x49ffbb(0x113)});
1
+ function a122_0x48c4(_0xdc062,_0x130f0c){_0xdc062=_0xdc062-0x90;const _0x2bd513=a122_0x2bd5();let _0x48c4e4=_0x2bd513[_0xdc062];return _0x48c4e4;}const a122_0x497f07=a122_0x48c4;(function(_0x68b2eb,_0x346222){const _0x488c55=a122_0x48c4,_0x1e227c=_0x68b2eb();while(!![]){try{const _0x232d7f=-parseInt(_0x488c55(0x95))/0x1+parseInt(_0x488c55(0x90))/0x2+-parseInt(_0x488c55(0x98))/0x3*(parseInt(_0x488c55(0x94))/0x4)+-parseInt(_0x488c55(0x9d))/0x5+-parseInt(_0x488c55(0x9e))/0x6*(-parseInt(_0x488c55(0x92))/0x7)+parseInt(_0x488c55(0x91))/0x8+-parseInt(_0x488c55(0x9b))/0x9;if(_0x232d7f===_0x346222)break;else _0x1e227c['push'](_0x1e227c['shift']());}catch(_0x4b924f){_0x1e227c['push'](_0x1e227c['shift']());}}}(a122_0x2bd5,0x39542));function a122_0x2bd5(){const _0x526c55=['18qdLsyA','835226IrQBRH','1640760raFvas','856429eNMSOk','Tip:\x20`','32392oKviPk','42152hSlXkZ','Set\x20appcode\x20via\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','69DzUqaW','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1642689BYBiXW','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1720020liMxia'];a122_0x2bd5=function(){return _0x526c55;};return a122_0x2bd5();}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+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a122_0x497f07(0x96)+CLI_BIN_NAME+a122_0x497f07(0x9a),a122_0x497f07(0x93)+CLI_BIN_NAME+a122_0x497f07(0x9c)]['join'](a122_0x497f07(0x99)),'notInProjectHint':a122_0x497f07(0x97)});
@@ -1 +1 @@
1
- (function(_0x308054,_0x4100c5){var _0x410fd6=a123_0x43db,_0x2d80dd=_0x308054();while(!![]){try{var _0x846c14=-parseInt(_0x410fd6(0x13c))/0x1*(-parseInt(_0x410fd6(0x13a))/0x2)+-parseInt(_0x410fd6(0x139))/0x3+-parseInt(_0x410fd6(0x13f))/0x4*(parseInt(_0x410fd6(0x13b))/0x5)+parseInt(_0x410fd6(0x138))/0x6*(parseInt(_0x410fd6(0x141))/0x7)+parseInt(_0x410fd6(0x136))/0x8*(parseInt(_0x410fd6(0x13d))/0x9)+parseInt(_0x410fd6(0x135))/0xa*(parseInt(_0x410fd6(0x140))/0xb)+-parseInt(_0x410fd6(0x13e))/0xc*(parseInt(_0x410fd6(0x137))/0xd);if(_0x846c14===_0x4100c5)break;else _0x2d80dd['push'](_0x2d80dd['shift']());}catch(_0x5f1ec4){_0x2d80dd['push'](_0x2d80dd['shift']());}}}(a123_0x43c7,0xa4365));function a123_0x43db(_0x327f59,_0x1066d9){_0x327f59=_0x327f59-0x135;var _0x43c76e=a123_0x43c7();var _0x43db95=_0x43c76e[_0x327f59];return _0x43db95;}function a123_0x43c7(){var _0xbd0571=['65244NrPXiZ','4EDrfYO','4653QSIecW','7slfHMJ','22170eCPnMn','8LSkLKr','6305WhLFhy','7657278qqAebu','235623ixzwiu','62994ZowQMf','1628645FVdkiP','29RwOQHp','5277699BcuXhn'];a123_0x43c7=function(){return _0xbd0571;};return a123_0x43c7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a123_0x2b2058}from'@lovrabet/cli-framework';export function buildAllFlags(_0x53a5d3){return a123_0x2b2058(_0x53a5d3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a123_0x5287(_0x294265,_0x280d6d){_0x294265=_0x294265-0x105;var _0x4513d7=a123_0x4513();var _0x528706=_0x4513d7[_0x294265];return _0x528706;}(function(_0x4cec5c,_0x33d2e6){var _0x4df988=a123_0x5287,_0x5712b6=_0x4cec5c();while(!![]){try{var _0x10b8bd=-parseInt(_0x4df988(0x109))/0x1*(parseInt(_0x4df988(0x106))/0x2)+parseInt(_0x4df988(0x10c))/0x3+-parseInt(_0x4df988(0x10e))/0x4*(-parseInt(_0x4df988(0x107))/0x5)+-parseInt(_0x4df988(0x10d))/0x6+-parseInt(_0x4df988(0x10b))/0x7+-parseInt(_0x4df988(0x10a))/0x8+parseInt(_0x4df988(0x108))/0x9*(parseInt(_0x4df988(0x105))/0xa);if(_0x10b8bd===_0x33d2e6)break;else _0x5712b6['push'](_0x5712b6['shift']());}catch(_0x540671){_0x5712b6['push'](_0x5712b6['shift']());}}}(a123_0x4513,0x1ba56));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a123_0x4513(){var _0x26d7c6=['411484FSCHzN','3765iIZVHI','18126sraZKy','1iyLKKp','63848fpehqX','1227170sELwLP','674865UfdVpB','919530SzAcFD','308EefEXK','1850xFWkPN'];a123_0x4513=function(){return _0x26d7c6;};return a123_0x4513();}import{buildAllFlags as a123_0x5c98d2}from'@lovrabet/cli-framework';export function buildAllFlags(_0x12eace){return a123_0x5c98d2(_0x12eace,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a124_0x36ce33=a124_0x1c83;function a124_0x1c83(_0x39042f,_0x24499a){_0x39042f=_0x39042f-0x146;const _0x55ea75=a124_0x55ea();let _0x1c830d=_0x55ea75[_0x39042f];return _0x1c830d;}function a124_0x55ea(){const _0x112763=['3928281CgCyOZ','5214232GnDFPn','2361724Tyexaz','1878708zpaitU','427KpVumG','2681586jioWgx','70XeZXLA','1969595MOQXWQ','1erZyym','validateFlags','123594VecnkJ'];a124_0x55ea=function(){return _0x112763;};return a124_0x55ea();}(function(_0x433d8d,_0x4319db){const _0x555459=a124_0x1c83,_0x1b3109=_0x433d8d();while(!![]){try{const _0x1f0ca4=-parseInt(_0x555459(0x14d))/0x1*(parseInt(_0x555459(0x147))/0x2)+parseInt(_0x555459(0x150))/0x3+-parseInt(_0x555459(0x148))/0x4+-parseInt(_0x555459(0x14c))/0x5+parseInt(_0x555459(0x14f))/0x6*(-parseInt(_0x555459(0x149))/0x7)+parseInt(_0x555459(0x146))/0x8+parseInt(_0x555459(0x14a))/0x9*(parseInt(_0x555459(0x14b))/0xa);if(_0x1f0ca4===_0x4319db)break;else _0x1b3109['push'](_0x1b3109['shift']());}catch(_0x13e9cc){_0x1b3109['push'](_0x1b3109['shift']());}}}(a124_0x55ea,0xb619f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a124_0x36ce33(0x14e)];
1
+ const a124_0x24a041=a124_0x37bc;(function(_0x40ddb5,_0x8e8f75){const _0x66a0ba=a124_0x37bc,_0x25d93c=_0x40ddb5();while(!![]){try{const _0x25df95=parseInt(_0x66a0ba(0x95))/0x1*(parseInt(_0x66a0ba(0x9d))/0x2)+-parseInt(_0x66a0ba(0x99))/0x3*(-parseInt(_0x66a0ba(0x9f))/0x4)+-parseInt(_0x66a0ba(0x9e))/0x5*(parseInt(_0x66a0ba(0x96))/0x6)+parseInt(_0x66a0ba(0x9c))/0x7+-parseInt(_0x66a0ba(0x98))/0x8+parseInt(_0x66a0ba(0x9a))/0x9+-parseInt(_0x66a0ba(0x97))/0xa;if(_0x25df95===_0x8e8f75)break;else _0x25d93c['push'](_0x25d93c['shift']());}catch(_0x41efd7){_0x25d93c['push'](_0x25d93c['shift']());}}}(a124_0x3b6a,0x4111c));function a124_0x37bc(_0x156fb2,_0x13d18a){_0x156fb2=_0x156fb2-0x95;const _0x3b6a0e=a124_0x3b6a();let _0x37bc9e=_0x3b6a0e[_0x156fb2];return _0x37bc9e;}import{createFlagHelpers}from'@lovrabet/cli-framework';function a124_0x3b6a(){const _0xe70e60=['19540BFxlQr','1225335nPtwho','28peisog','parseFlags','31peDVvx','12mNnrnl','1824250iMVIJy','129240EEoUhc','84291FPyqko','915903OjNFsM','validateFlags','2477454ehocuQ'];a124_0x3b6a=function(){return _0xe70e60;};return a124_0x3b6a();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a124_0x24a041(0xa0)];export const validateFlags=helpers[a124_0x24a041(0x9b)];
@@ -1 +1 @@
1
- const a125_0x49bbbd=a125_0x84f5;(function(_0x19c22a,_0x363a64){const _0x66f2d1=a125_0x84f5,_0x1bea04=_0x19c22a();while(!![]){try{const _0xc207f5=parseInt(_0x66f2d1(0xd9))/0x1*(-parseInt(_0x66f2d1(0xd7))/0x2)+-parseInt(_0x66f2d1(0xdf))/0x3*(parseInt(_0x66f2d1(0xd6))/0x4)+parseInt(_0x66f2d1(0xd5))/0x5*(parseInt(_0x66f2d1(0xe2))/0x6)+parseInt(_0x66f2d1(0xe3))/0x7+parseInt(_0x66f2d1(0xd8))/0x8+parseInt(_0x66f2d1(0xda))/0x9+-parseInt(_0x66f2d1(0xd4))/0xa;if(_0xc207f5===_0x363a64)break;else _0x1bea04['push'](_0x1bea04['shift']());}catch(_0x5cc795){_0x1bea04['push'](_0x1bea04['shift']());}}}(a125_0x2313,0xef452));function a125_0x2313(){const _0x31c0fa=['27484velmYN','4uAPjXV','5172920WfueIl','419577KDnnQk','13699017tijiMY','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','get','generateFullHelp','822rpAiwq','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','5630064EhgHkM','8669759XXilFu','6437510YdIuqf','5oBUBhT'];a125_0x2313=function(){return _0x31c0fa;};return a125_0x2313();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x84f5(_0x6fa9da,_0x1b8ffa){_0x6fa9da=_0x6fa9da-0xd4;const _0x2313fc=a125_0x2313();let _0x84f58a=_0x2313fc[_0x6fa9da];return _0x84f58a;}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':_0x3d93f4=>serviceGroups[a125_0x49bbbd(0xdd)](_0x3d93f4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a125_0x49bbbd(0xe1)+CLI_BIN_NAME+a125_0x49bbbd(0xdb),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x31279a){const _0x1841b9=a125_0x49bbbd;return generators[_0x1841b9(0xe0)](_0x31279a);}export const generateServiceHelp=generators[a125_0x49bbbd(0xdc)];export const generateFullHelp=generators[a125_0x49bbbd(0xde)];
1
+ function a125_0x5d4a(){const _0x511edd=['1059432ipwVBm','generateServiceHelp','1895934bHyZJO','119WhNgMS','generateCommandHelp','5466xNrdWX','generateFullHelp','1dWsFbu','5530nvKnfa','393056CmZJUL','22082159fFDJlV','6985vKihpA','23490wHBHlD','\x20project\x20init`\x20or\x20--appcode).','4669744XhthBu'];a125_0x5d4a=function(){return _0x511edd;};return a125_0x5d4a();}const a125_0xa41b40=a125_0x4606;(function(_0x3b8597,_0x7e170f){const _0x154478=a125_0x4606,_0x597083=_0x3b8597();while(!![]){try{const _0x5a18f5=parseInt(_0x154478(0x10f))/0x1*(parseInt(_0x154478(0x10a))/0x2)+-parseInt(_0x154478(0x108))/0x3+parseInt(_0x154478(0x107))/0x4+parseInt(_0x154478(0x104))/0x5*(-parseInt(_0x154478(0x10d))/0x6)+-parseInt(_0x154478(0x10b))/0x7*(-parseInt(_0x154478(0x111))/0x8)+parseInt(_0x154478(0x105))/0x9*(parseInt(_0x154478(0x110))/0xa)+-parseInt(_0x154478(0x112))/0xb;if(_0x5a18f5===_0x7e170f)break;else _0x597083['push'](_0x597083['shift']());}catch(_0x4c37c7){_0x597083['push'](_0x597083['shift']());}}}(a125_0x5d4a,0xb9b79));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x4606(_0x3e0117,_0x508249){_0x3e0117=_0x3e0117-0x104;const _0x5d4a96=a125_0x5d4a();let _0x460638=_0x5d4a96[_0x3e0117];return _0x460638;}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':_0x112381=>serviceGroups['get'](_0x112381),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a125_0xa41b40(0x106),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x386fa0){const _0x9631df=a125_0xa41b40;return generators[_0x9631df(0x10c)](_0x386fa0);}export const generateServiceHelp=generators[a125_0xa41b40(0x109)];export const generateFullHelp=generators[a125_0xa41b40(0x10e)];
@@ -1 +1 @@
1
- function a126_0xe9b5(){var _0x29bbc3=['8348584dmYGdy','7RSydwi','6091785ndqbwF','4132695DrQGas','6614310tGKYmk','243026vJVQoM','4563307eHADSU','4739740gYHvFo'];a126_0xe9b5=function(){return _0x29bbc3;};return a126_0xe9b5();}(function(_0x7bb4a5,_0x4a2946){var _0x32bcd4=a126_0x3f08,_0x37c309=_0x7bb4a5();while(!![]){try{var _0x5813b3=parseInt(_0x32bcd4(0x1a1))/0x1*(parseInt(_0x32bcd4(0x19d))/0x2)+parseInt(_0x32bcd4(0x19b))/0x3+parseInt(_0x32bcd4(0x19f))/0x4+-parseInt(_0x32bcd4(0x19a))/0x5+-parseInt(_0x32bcd4(0x19c))/0x6+parseInt(_0x32bcd4(0x19e))/0x7+-parseInt(_0x32bcd4(0x1a0))/0x8;if(_0x5813b3===_0x4a2946)break;else _0x37c309['push'](_0x37c309['shift']());}catch(_0x563b80){_0x37c309['push'](_0x37c309['shift']());}}}(a126_0xe9b5,0xab105));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a126_0x3f08(_0x766c7a,_0x4a62d7){_0x766c7a=_0x766c7a-0x19a;var _0xe9b520=a126_0xe9b5();var _0x3f08e2=_0xe9b520[_0x766c7a];return _0x3f08e2;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x3111dd,_0x1f3f76){var _0x1c4fd2=a126_0x6be9,_0x5074fd=_0x3111dd();while(!![]){try{var _0x378164=parseInt(_0x1c4fd2(0x1bb))/0x1*(parseInt(_0x1c4fd2(0x1b8))/0x2)+-parseInt(_0x1c4fd2(0x1bf))/0x3+-parseInt(_0x1c4fd2(0x1b9))/0x4*(parseInt(_0x1c4fd2(0x1c0))/0x5)+-parseInt(_0x1c4fd2(0x1bc))/0x6*(-parseInt(_0x1c4fd2(0x1b7))/0x7)+-parseInt(_0x1c4fd2(0x1bd))/0x8+parseInt(_0x1c4fd2(0x1be))/0x9*(parseInt(_0x1c4fd2(0x1b6))/0xa)+parseInt(_0x1c4fd2(0x1ba))/0xb;if(_0x378164===_0x1f3f76)break;else _0x5074fd['push'](_0x5074fd['shift']());}catch(_0x5e9715){_0x5074fd['push'](_0x5074fd['shift']());}}}(a126_0x452e,0x1bbe3));export{runCommand}from'../framework/runner.js';function a126_0x6be9(_0x565d70,_0x1b4073){_0x565d70=_0x565d70-0x1b6;var _0x452e75=a126_0x452e();var _0x6be961=_0x452e75[_0x565d70];return _0x6be961;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a126_0x452e(){var _0x30f49b=['227170ZKxBpn','1504idOmXO','1869472yJxrsy','1PhehqV','150znxIDE','1684512gwiTJi','876159XKGlTZ','308889ivjRSO','505JfXmYP','10UAXNIX','23590yZKKzP'];a126_0x452e=function(){return _0x30f49b;};return a126_0x452e();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a127_0x20a1(){var _0x521312=['77HSqRQL','18xHsIfa','1199592EhneeM','1156670Xysywt','97273OkbaPt','8UpTjPh','1471134nKDsFw','259936rXREed','704235cklasF','1902252DQoMMk','2MwyHrn'];a127_0x20a1=function(){return _0x521312;};return a127_0x20a1();}function a127_0x353f(_0x442726,_0x1ebefe){_0x442726=_0x442726-0x10e;var _0x20a161=a127_0x20a1();var _0x353f46=_0x20a161[_0x442726];return _0x353f46;}(function(_0x320035,_0x23510a){var _0x1d09ee=a127_0x353f,_0x3c066a=_0x320035();while(!![]){try{var _0x5d0cde=-parseInt(_0x1d09ee(0x110))/0x1+-parseInt(_0x1d09ee(0x116))/0x2*(parseInt(_0x1d09ee(0x112))/0x3)+-parseInt(_0x1d09ee(0x111))/0x4*(-parseInt(_0x1d09ee(0x114))/0x5)+-parseInt(_0x1d09ee(0x10e))/0x6+parseInt(_0x1d09ee(0x117))/0x7*(parseInt(_0x1d09ee(0x113))/0x8)+parseInt(_0x1d09ee(0x118))/0x9*(parseInt(_0x1d09ee(0x10f))/0xa)+parseInt(_0x1d09ee(0x115))/0xb;if(_0x5d0cde===_0x23510a)break;else _0x3c066a['push'](_0x3c066a['shift']());}catch(_0x5850bf){_0x3c066a['push'](_0x3c066a['shift']());}}}(a127_0x20a1,0x3e72d));export{formatOutput}from'@lovrabet/cli-framework';
1
+ (function(_0x4ddb1a,_0x44b198){var _0x2014a8=a127_0x1877,_0x463b4c=_0x4ddb1a();while(!![]){try{var _0x4c9df6=-parseInt(_0x2014a8(0x135))/0x1+parseInt(_0x2014a8(0x137))/0x2*(-parseInt(_0x2014a8(0x131))/0x3)+-parseInt(_0x2014a8(0x132))/0x4+-parseInt(_0x2014a8(0x130))/0x5*(parseInt(_0x2014a8(0x12e))/0x6)+-parseInt(_0x2014a8(0x133))/0x7*(-parseInt(_0x2014a8(0x136))/0x8)+-parseInt(_0x2014a8(0x12f))/0x9+-parseInt(_0x2014a8(0x138))/0xa*(-parseInt(_0x2014a8(0x134))/0xb);if(_0x4c9df6===_0x44b198)break;else _0x463b4c['push'](_0x463b4c['shift']());}catch(_0x2c37a9){_0x463b4c['push'](_0x463b4c['shift']());}}}(a127_0x49ae,0xe5e32));function a127_0x1877(_0x49d993,_0x3d43c1){_0x49d993=_0x49d993-0x12e;var _0x49ae91=a127_0x49ae();var _0x1877ae=_0x49ae91[_0x49d993];return _0x1877ae;}function a127_0x49ae(){var _0x1d8bb5=['34120kxbPPC','4370811kmJTSD','2349508sCZXDT','10969NXoWqX','11fMQMdv','1512319FFeKxZ','6224tDNGQD','2iJjqsP','53180730sfrsxK','624tCSWbf','11963268NMCFTy'];a127_0x49ae=function(){return _0x1d8bb5;};return a127_0x49ae();}export{formatOutput}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x3cf123,_0x24a91f){var _0x133d3b=a128_0x54c8,_0x3daf69=_0x3cf123();while(!![]){try{var _0x4dd094=-parseInt(_0x133d3b(0x15f))/0x1*(parseInt(_0x133d3b(0x158))/0x2)+parseInt(_0x133d3b(0x15d))/0x3*(parseInt(_0x133d3b(0x15c))/0x4)+-parseInt(_0x133d3b(0x159))/0x5+parseInt(_0x133d3b(0x15e))/0x6+-parseInt(_0x133d3b(0x15b))/0x7+parseInt(_0x133d3b(0x15a))/0x8+parseInt(_0x133d3b(0x160))/0x9;if(_0x4dd094===_0x24a91f)break;else _0x3daf69['push'](_0x3daf69['shift']());}catch(_0x1148b4){_0x3daf69['push'](_0x3daf69['shift']());}}}(a128_0x3865,0x89185));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x54c8(_0x5dc415,_0x94da22){_0x5dc415=_0x5dc415-0x158;var _0x3865e3=a128_0x3865();var _0x54c882=_0x3865e3[_0x5dc415];return _0x54c882;}function a128_0x3865(){var _0x3f61d9=['4qJLVVJ','3233664wucZUy','3076506uLMaSn','910703ekMQpB','7676127JWrWKz','2eBtNrt','5237875kquNGB','7278152GLMusf','5834444OZdetX'];a128_0x3865=function(){return _0x3f61d9;};return a128_0x3865();}
1
+ function a128_0x4789(_0x4ed0b6,_0x3986c1){_0x4ed0b6=_0x4ed0b6-0x133;var _0x2f0f12=a128_0x2f0f();var _0x478993=_0x2f0f12[_0x4ed0b6];return _0x478993;}(function(_0x3fbe94,_0x11915b){var _0xe3f91d=a128_0x4789,_0x165433=_0x3fbe94();while(!![]){try{var _0x27e9c7=-parseInt(_0xe3f91d(0x136))/0x1*(parseInt(_0xe3f91d(0x13c))/0x2)+-parseInt(_0xe3f91d(0x134))/0x3+parseInt(_0xe3f91d(0x133))/0x4*(parseInt(_0xe3f91d(0x13b))/0x5)+-parseInt(_0xe3f91d(0x137))/0x6+parseInt(_0xe3f91d(0x135))/0x7*(parseInt(_0xe3f91d(0x139))/0x8)+parseInt(_0xe3f91d(0x13a))/0x9+-parseInt(_0xe3f91d(0x138))/0xa;if(_0x27e9c7===_0x11915b)break;else _0x165433['push'](_0x165433['shift']());}catch(_0x11497d){_0x165433['push'](_0x165433['shift']());}}}(a128_0x2f0f,0x9906a));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x2f0f(){var _0x487384=['565302svFLlk','306530bLIkqa','72ycdQok','370188EBgmZh','15GUgdPe','38rMOVFx','813496YcRTsv','1784484QVQoUV','769412vbNVCB','15474wqaGrG'];a128_0x2f0f=function(){return _0x487384;};return a128_0x2f0f();}
@@ -1 +1 @@
1
- (function(_0x23eefa,_0x580368){const _0x17b4e6=a129_0x328b,_0x59fdef=_0x23eefa();while(!![]){try{const _0x289f57=parseInt(_0x17b4e6(0x1ee))/0x1+parseInt(_0x17b4e6(0x1dc))/0x2+-parseInt(_0x17b4e6(0x1e9))/0x3+parseInt(_0x17b4e6(0x1e3))/0x4+parseInt(_0x17b4e6(0x1f1))/0x5*(-parseInt(_0x17b4e6(0x1e2))/0x6)+-parseInt(_0x17b4e6(0x1db))/0x7+-parseInt(_0x17b4e6(0x1eb))/0x8*(parseInt(_0x17b4e6(0x1f0))/0x9);if(_0x289f57===_0x580368)break;else _0x59fdef['push'](_0x59fdef['shift']());}catch(_0x50218c){_0x59fdef['push'](_0x59fdef['shift']());}}}(a129_0x31b3,0xd3b01));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x328b(_0x627225,_0x13c596){_0x627225=_0x627225-0x1d9;const _0x31b3f3=a129_0x31b3();let _0x328bf1=_0x31b3f3[_0x627225];return _0x328bf1;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x31b3(){const _0x1e17fc=['alias','3515049PeTzVt','`\x20requires\x20either\x20--code\x20or\x20--alias.','8HnqbzG','code','Unknown\x20alias\x20\x22','1521081NauLHE','validation','10078587ajyEBg','3059960wWktLZ','type','name','1582679mEFdNz','1695778mgDBzy','\x20api\x20pull`\x20first.','some','flags','.\x20Run\x20`','Available\x20aliases:\x20','6TZiMbm','6510872WAxCUZ','No\x20api.ts\x20found\x20in\x20','length','string','join'];a129_0x31b3=function(){return _0x1e17fc;};return a129_0x31b3();}export function resolveAliasToCode(_0x13d9ad,_0x13d6d3,_0xf7176f,_0x1f30fb){const _0x28d9cb=a129_0x328b,_0x4a16fc=_0x13d9ad[_0x28d9cb(0x1df)][_0x28d9cb(0x1de)](_0x45e481=>_0x45e481[_0x28d9cb(0x1da)]===_0x28d9cb(0x1ec)&&_0x45e481[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6)),_0x1b9d8b=_0x13d9ad[_0x28d9cb(0x1df)]['some'](_0x438e43=>_0x438e43[_0x28d9cb(0x1da)]===_0x28d9cb(0x1e8)&&_0x438e43[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6));if(!_0x4a16fc||!_0x1b9d8b)return;const _0x487709=_0x13d6d3[_0x28d9cb(0x1ec)]?String(_0x13d6d3[_0x28d9cb(0x1ec)]):'',_0x4592cd=_0x13d6d3[_0x28d9cb(0x1e8)]?String(_0x13d6d3[_0x28d9cb(0x1e8)]):'';if(!_0x487709&&!_0x4592cd)throw CliErrors[_0x28d9cb(0x1ef)]('`'+_0x1f30fb+_0x28d9cb(0x1ea));if(_0x4592cd&&!_0x487709){const _0x48dab7=resolveAlias(_0xf7176f,_0x4592cd);if(!_0x48dab7){const _0x3bb44b=listAliases(_0xf7176f)['map'](_0x14df32=>_0x14df32[_0x28d9cb(0x1e8)]),_0x52b4e5=_0x3bb44b[_0x28d9cb(0x1e5)]?_0x28d9cb(0x1e1)+_0x3bb44b[_0x28d9cb(0x1e7)](',\x20'):_0x28d9cb(0x1e4)+_0xf7176f+_0x28d9cb(0x1e0)+CLI_BIN_NAME+_0x28d9cb(0x1dd);throw CliErrors['validation'](_0x28d9cb(0x1ed)+_0x4592cd+'\x22.\x20'+_0x52b4e5);}_0x13d6d3[_0x28d9cb(0x1ec)]=_0x48dab7;}}
1
+ (function(_0x3567f4,_0x8ab52d){const _0x1da1b6=a129_0x1a22,_0x1a01b2=_0x3567f4();while(!![]){try{const _0x2407d0=-parseInt(_0x1da1b6(0x1d9))/0x1*(-parseInt(_0x1da1b6(0x1da))/0x2)+-parseInt(_0x1da1b6(0x1d7))/0x3+-parseInt(_0x1da1b6(0x1dd))/0x4*(-parseInt(_0x1da1b6(0x1c9))/0x5)+-parseInt(_0x1da1b6(0x1d4))/0x6*(-parseInt(_0x1da1b6(0x1c6))/0x7)+parseInt(_0x1da1b6(0x1d6))/0x8+-parseInt(_0x1da1b6(0x1cd))/0x9*(-parseInt(_0x1da1b6(0x1cc))/0xa)+-parseInt(_0x1da1b6(0x1de))/0xb;if(_0x2407d0===_0x8ab52d)break;else _0x1a01b2['push'](_0x1a01b2['shift']());}catch(_0x32fc05){_0x1a01b2['push'](_0x1a01b2['shift']());}}}(a129_0x44e8,0x28094));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x1a22(_0x3347d6,_0x5aa065){_0x3347d6=_0x3347d6-0x1c4;const _0x44e8fa=a129_0x44e8();let _0x1a221e=_0x44e8fa[_0x3347d6];return _0x1a221e;}function a129_0x44e8(){const _0x31e47d=['2ePqLhs','\x20api\x20pull`\x20first.','code','1098092fQmJzP','8242179LAEHjG','alias','name','1801156XYHxuH','type','validation','5joMgur','length','`\x20requires\x20either\x20--code\x20or\x20--alias.','66350BcrlOL','342IQjJeQ','Available\x20aliases:\x20','\x22.\x20','some','map','Unknown\x20alias\x20\x22','string','6EUSgRA','flags','697888rEVUjU','298971CGgqCv','.\x20Run\x20`','141737qVpjTk'];a129_0x44e8=function(){return _0x31e47d;};return a129_0x44e8();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x48644f,_0x165597,_0x50d960,_0x22ff2d){const _0x1e90f3=a129_0x1a22,_0x48858d=_0x48644f[_0x1e90f3(0x1d5)][_0x1e90f3(0x1d0)](_0x3fcd89=>_0x3fcd89[_0x1e90f3(0x1c5)]===_0x1e90f3(0x1dc)&&_0x3fcd89[_0x1e90f3(0x1c7)]===_0x1e90f3(0x1d3)),_0x4ee25f=_0x48644f[_0x1e90f3(0x1d5)][_0x1e90f3(0x1d0)](_0x31983b=>_0x31983b[_0x1e90f3(0x1c5)]===_0x1e90f3(0x1c4)&&_0x31983b[_0x1e90f3(0x1c7)]===_0x1e90f3(0x1d3));if(!_0x48858d||!_0x4ee25f)return;const _0x4940c9=_0x165597[_0x1e90f3(0x1dc)]?String(_0x165597[_0x1e90f3(0x1dc)]):'',_0x1f543b=_0x165597[_0x1e90f3(0x1c4)]?String(_0x165597['alias']):'';if(!_0x4940c9&&!_0x1f543b)throw CliErrors[_0x1e90f3(0x1c8)]('`'+_0x22ff2d+_0x1e90f3(0x1cb));if(_0x1f543b&&!_0x4940c9){const _0x3c665d=resolveAlias(_0x50d960,_0x1f543b);if(!_0x3c665d){const _0x3814cd=listAliases(_0x50d960)[_0x1e90f3(0x1d1)](_0x3275f1=>_0x3275f1['alias']),_0x3683f7=_0x3814cd[_0x1e90f3(0x1ca)]?_0x1e90f3(0x1ce)+_0x3814cd['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x50d960+_0x1e90f3(0x1d8)+CLI_BIN_NAME+_0x1e90f3(0x1db);throw CliErrors[_0x1e90f3(0x1c8)](_0x1e90f3(0x1d2)+_0x1f543b+_0x1e90f3(0x1cf)+_0x3683f7);}_0x165597[_0x1e90f3(0x1dc)]=_0x3c665d;}}
@@ -1 +1 @@
1
- const a130_0x2d4874=a130_0x3fe6;function a130_0x4c14(){const _0x31440f=['⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','mergedCli','2365990kLsPkD','defaultVerbose','1385brwVSG','cookie','2284tIzAyl','service','resolveCookie','has','435536xyAIzZ','181704jsiKkP','riskLevel','\x20\x20\x20Continue?\x20[y/N]\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultApp','710457yGjShk','filter','currentApp','../core/api-client.js','3781392QqCREF','validation','requiresAuth','63yCdoiJ','apps','authRequired','resolveApiDomain','appCode','explicitAppName','command','apiDir','format','High-risk\x20operation\x20`','170VoIjef','cancelled','60804gbSbFH','configMissing','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a130_0x4c14=function(){return _0x31440f;};return a130_0x4c14();}(function(_0xec5ddf,_0x129a9c){const _0x274644=a130_0x3fe6,_0x95d2d3=_0xec5ddf();while(!![]){try{const _0xc5607c=-parseInt(_0x274644(0x1ef))/0x1+parseInt(_0x274644(0x1e0))/0x2+-parseInt(_0x274644(0x1e9))/0x3+parseInt(_0x274644(0x1e4))/0x4*(parseInt(_0x274644(0x1e2))/0x5)+parseInt(_0x274644(0x1ca))/0x6+parseInt(_0x274644(0x1cd))/0x7*(-parseInt(_0x274644(0x1e8))/0x8)+-parseInt(_0x274644(0x1d9))/0x9*(parseInt(_0x274644(0x1d7))/0xa);if(_0xc5607c===_0x129a9c)break;else _0x95d2d3['push'](_0x95d2d3['shift']());}catch(_0x3039a6){_0x95d2d3['push'](_0x95d2d3['shift']());}}}(a130_0x4c14,0x91653));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 a130_0x3fe6(_0xf3a298,_0x3dd219){_0xf3a298=_0xf3a298-0x1c8;const _0x4c145d=a130_0x4c14();let _0x3fe6f3=_0x4c145d[_0xf3a298];return _0x3fe6f3;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0x227ec9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2cf2d6,_0x351aa0,_0x49efaf=[]){const _0x2065c8=a130_0x3fe6;return{'rawFlags':_0x351aa0,'args':_0x49efaf,'resolveAppCode':()=>_0x2cf2d6[_0x2065c8(0x1d1)]||_0x351aa0['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2cf2d6[_0x2065c8(0x1e3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x227ec9(_0x351aa0),'defaultFormat':_0x2cf2d6[_0x2065c8(0x1d5)],'defaultPageSize':_0x2cf2d6['pageSize'],'defaultVerbose':_0x2cf2d6[_0x2065c8(0x1ed)],'apiDir':_0x2cf2d6[_0x2065c8(0x1d4)],'riskLevel':_0x2cf2d6[_0x2065c8(0x1ea)],'selectedAppName':_0x2cf2d6[_0x2065c8(0x1d2)],'mergedCli':{'defaultApp':_0x2cf2d6[_0x2065c8(0x1ee)],'currentApp':_0x2cf2d6[_0x2065c8(0x1c8)],'appCode':_0x2cf2d6['appCode'],'apps':_0x2cf2d6[_0x2065c8(0x1ce)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2d4874(0x1f0)](_0x45f925=>PIPELINE_FLAG_NAMES[a130_0x2d4874(0x1e7)](_0x45f925['name']))['map'](({name:_0x1e2c9b,type:_0x1ea840,description:_0x26050c})=>({'name':_0x1e2c9b,'type':_0x1ea840,'description':_0x26050c})),'formatOutput':formatOutput,'getCommandLabel'(_0x76b2ed){const _0x1593bc=a130_0x2d4874;return CLI_BIN_NAME+'\x20'+_0x76b2ed[_0x1593bc(0x1e5)]+'\x20'+_0x76b2ed[_0x1593bc(0x1d3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e5cb4){const _0x364870=a130_0x2d4874;return CliErrors[_0x364870(0x1cb)](_0x3e5cb4);}},async 'prepare'(_0x573e0f,_0x35798c,_0x212295,_0x3da7ab){const _0x5b091a=a130_0x2d4874,_0xec8e11=_0x35798c[_0x5b091a(0x1d4)]||DEFAULT_API_DIR;resolveAliasToCode(_0x573e0f,_0x212295,_0xec8e11,_0x3da7ab);let _0xae8e21='';if(_0x573e0f[_0x5b091a(0x1cc)]!==![]){_0xae8e21=_0x35798c[_0x5b091a(0x1e6)]();if(!_0xae8e21)throw CliErrors[_0x5b091a(0x1cf)]();const {setActiveCookie:_0x2c8d79}=await import('../core/api-client.js');_0x2c8d79(_0xae8e21);}let _0x17207f='';if(_0x573e0f['requiresAppCode']!==![]){_0x17207f=_0x35798c['resolveAppCode']()??'';if(!_0x17207f)throw CliErrors[_0x5b091a(0x1da)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x5b091a(0x1dc));}return{'defaults':{'booleans':{'verbose':_0x35798c[_0x5b091a(0x1e1)]},'numbers':{'pagesize':_0x35798c[_0x5b091a(0x1db)]}},'extras':{'appCode':_0x17207f,'cookie':_0xae8e21,'apiDomain':_0x35798c[_0x5b091a(0x1d0)](),'apiDir':_0xec8e11,'selectedAppName':_0x35798c[_0x5b091a(0x1de)],'mergedCli':_0x35798c[_0x5b091a(0x1df)]}};},async 'confirmHighRisk'({env:_0x3295a1,commandLabel:_0x56520c}){const _0x1fe506=a130_0x2d4874;if(_0x3295a1['isNonInteractive'])throw CliErrors[_0x1fe506(0x1cb)](_0x1fe506(0x1d6)+_0x56520c+_0x1fe506(0x1ec));await requireConfirmationPrompt({'lines':[_0x1fe506(0x1dd)+_0x56520c,_0x1fe506(0x1eb)],'createCancelledError':_0x49fc25=>CliErrors[_0x1fe506(0x1d8)](_0x49fc25)});},async 'finalize'(){const _0xf8d378=a130_0x2d4874,{clearActiveCookie:_0x178602}=await import(_0xf8d378(0x1c9));_0x178602();}};export async function runCommand(_0x39d979,_0x316421){await runCommandWithAdapter(_0x39d979,_0x316421,runnerAdapter);}
1
+ const a130_0x4e77ba=a130_0x1d81;(function(_0x5feef4,_0x338d71){const _0x4dc2e4=a130_0x1d81,_0x516493=_0x5feef4();while(!![]){try{const _0x2ea8ed=parseInt(_0x4dc2e4(0xa4))/0x1+-parseInt(_0x4dc2e4(0xab))/0x2*(-parseInt(_0x4dc2e4(0xb5))/0x3)+-parseInt(_0x4dc2e4(0xc0))/0x4+-parseInt(_0x4dc2e4(0xae))/0x5*(-parseInt(_0x4dc2e4(0xac))/0x6)+-parseInt(_0x4dc2e4(0x9f))/0x7+-parseInt(_0x4dc2e4(0xaf))/0x8+parseInt(_0x4dc2e4(0xb8))/0x9;if(_0x2ea8ed===_0x338d71)break;else _0x516493['push'](_0x516493['shift']());}catch(_0x4e1b43){_0x516493['push'](_0x516493['shift']());}}}(a130_0x3197,0xb6ac0));function a130_0x3197(){const _0x518911=['requiresAuth','3503703LFEPkL','filter','⚠\x20\x20High-risk\x20operation:\x20','appCode','configMissing','660937jXoSFS','validation','apiDir','command','cookie','mergedCli','has','46qcTrXT','1350534IGoPPp','../core/api-client.js','5QCIdEM','7536456DRqzNH','explicitAppName','isNonInteractive','authRequired','map','requiresAppCode','140619gtwqGy','name','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','9754659zlfXOF','pageSize','resolveApiDomain','resolveCookie','defaultVerbose','apps','appcode','Set\x20appcode\x20via\x20`','3428584BisMHs','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultPageSize','cancelled'];a130_0x3197=function(){return _0x518911;};return a130_0x3197();}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 a130_0x462a8b}from'../utils/is-non-interactive.js';function a130_0x1d81(_0x3e6019,_0x5195ba){_0x3e6019=_0x3e6019-0x9d;const _0x319796=a130_0x3197();let _0x1d812d=_0x319796[_0x3e6019];return _0x1d812d;}import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0xacb5d2,_0x9d8335,_0x3cd360=[]){const _0x496caa=a130_0x1d81;return{'rawFlags':_0x9d8335,'args':_0x3cd360,'resolveAppCode':()=>_0xacb5d2['appCode']||_0x9d8335[_0x496caa(0xbe)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0xacb5d2[_0x496caa(0xa8)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x462a8b(_0x9d8335),'defaultFormat':_0xacb5d2['format'],'defaultPageSize':_0xacb5d2[_0x496caa(0xb9)],'defaultVerbose':_0xacb5d2[_0x496caa(0xc2)],'apiDir':_0xacb5d2['apiDir'],'riskLevel':_0xacb5d2['riskLevel'],'selectedAppName':_0xacb5d2[_0x496caa(0xb0)],'mergedCli':{'defaultApp':_0xacb5d2['defaultApp'],'currentApp':_0xacb5d2['currentApp'],'appCode':_0xacb5d2[_0x496caa(0xa2)],'apps':_0xacb5d2[_0x496caa(0xbd)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x4e77ba(0xa0)](_0x3e0239=>PIPELINE_FLAG_NAMES[a130_0x4e77ba(0xaa)](_0x3e0239[a130_0x4e77ba(0xb6)]))[a130_0x4e77ba(0xb3)](({name:_0x33141e,type:_0x16ca35,description:_0x5aede7})=>({'name':_0x33141e,'type':_0x16ca35,'description':_0x5aede7})),'formatOutput':formatOutput,'getCommandLabel'(_0x3f7f10){const _0x27e199=a130_0x4e77ba;return CLI_BIN_NAME+'\x20'+_0x3f7f10['service']+'\x20'+_0x3f7f10[_0x27e199(0xa7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2b5665){return CliErrors['validation'](_0x2b5665);}},async 'prepare'(_0x56a2f8,_0x26cd18,_0x3e6b96,_0x33411d){const _0x39f3dc=a130_0x4e77ba,_0x5bb992=_0x26cd18[_0x39f3dc(0xa6)]||DEFAULT_API_DIR;resolveAliasToCode(_0x56a2f8,_0x3e6b96,_0x5bb992,_0x33411d);let _0x27786b='';if(_0x56a2f8[_0x39f3dc(0x9e)]!==![]){_0x27786b=_0x26cd18[_0x39f3dc(0xbb)]();if(!_0x27786b)throw CliErrors[_0x39f3dc(0xb2)]();const {setActiveCookie:_0x29a3c8}=await import(_0x39f3dc(0xad));_0x29a3c8(_0x27786b);}let _0x57c529='';if(_0x56a2f8[_0x39f3dc(0xb4)]!==![]){_0x57c529=_0x26cd18['resolveAppCode']()??'';if(!_0x57c529)throw CliErrors[_0x39f3dc(0xa3)](_0x39f3dc(0xbf)+CLI_BIN_NAME+_0x39f3dc(0xb7));}return{'defaults':{'booleans':{'verbose':_0x26cd18[_0x39f3dc(0xbc)]},'numbers':{'pagesize':_0x26cd18[_0x39f3dc(0xc3)]}},'extras':{'appCode':_0x57c529,'cookie':_0x27786b,'apiDomain':_0x26cd18[_0x39f3dc(0xba)](),'apiDir':_0x5bb992,'selectedAppName':_0x26cd18['selectedAppName'],'mergedCli':_0x26cd18[_0x39f3dc(0xa9)]}};},async 'confirmHighRisk'({env:_0x5f0941,commandLabel:_0x5b760f}){const _0x498447=a130_0x4e77ba;if(_0x5f0941[_0x498447(0xb1)])throw CliErrors[_0x498447(0xa5)]('High-risk\x20operation\x20`'+_0x5b760f+_0x498447(0xc1));await requireConfirmationPrompt({'lines':[_0x498447(0xa1)+_0x5b760f,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x637de=>CliErrors[_0x498447(0x9d)](_0x637de)});},async 'finalize'(){const {clearActiveCookie:_0x212a72}=await import('../core/api-client.js');_0x212a72();}};export async function runCommand(_0x5d6c15,_0x1df279){await runCommandWithAdapter(_0x5d6c15,_0x1df279,runnerAdapter);}
@@ -1 +1 @@
1
- function a131_0x30c7(_0x367a05,_0x312bbd){_0x367a05=_0x367a05-0x1d4;const _0x5766fb=a131_0x5766();let _0x30c7d1=_0x5766fb[_0x367a05];return _0x30c7d1;}(function(_0x50b279,_0x31688b){const _0x2e4de1=a131_0x30c7,_0xa42750=_0x50b279();while(!![]){try{const _0x589b94=-parseInt(_0x2e4de1(0x1d7))/0x1+-parseInt(_0x2e4de1(0x1d4))/0x2+parseInt(_0x2e4de1(0x1dd))/0x3*(parseInt(_0x2e4de1(0x1da))/0x4)+parseInt(_0x2e4de1(0x1de))/0x5+parseInt(_0x2e4de1(0x1d8))/0x6*(-parseInt(_0x2e4de1(0x1d5))/0x7)+-parseInt(_0x2e4de1(0x1db))/0x8+parseInt(_0x2e4de1(0x1d6))/0x9*(parseInt(_0x2e4de1(0x1d9))/0xa);if(_0x589b94===_0x31688b)break;else _0xa42750['push'](_0xa42750['shift']());}catch(_0x4e3dad){_0xa42750['push'](_0xa42750['shift']());}}}(a131_0x5766,0xdebf4));function a131_0x5766(){const _0x2863f0=['5842071DHcNlL','827823jWTAgr','4463016VMQbZn','60SLlYqK','4ygQmmb','12253632FwpInl','../commands/registry.js','4655505OEsICU','1288870ekGsYj','1889504bolEKH','14UnSRwA'];a131_0x5766=function(){return _0x2863f0;};return a131_0x5766();}import{buildSchemaPayload as a131_0x4070cc}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 _0x1c5d1a=a131_0x30c7,{serviceRegistry:_0x358557,findDefinition:_0x3fa5ac}=await import(_0x1c5d1a(0x1dc));return a131_0x4070cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x358557,'buildAllFlags':buildAllFlags,'findDefinition':_0x3fa5ac});}
1
+ (function(_0x29c521,_0x3187db){const _0x2b5e60=a131_0x29ee,_0x13656b=_0x29c521();while(!![]){try{const _0xa2b8c9=parseInt(_0x2b5e60(0x87))/0x1+-parseInt(_0x2b5e60(0x82))/0x2*(-parseInt(_0x2b5e60(0x89))/0x3)+parseInt(_0x2b5e60(0x8a))/0x4+-parseInt(_0x2b5e60(0x83))/0x5+parseInt(_0x2b5e60(0x81))/0x6*(parseInt(_0x2b5e60(0x86))/0x7)+parseInt(_0x2b5e60(0x80))/0x8*(-parseInt(_0x2b5e60(0x84))/0x9)+-parseInt(_0x2b5e60(0x88))/0xa*(parseInt(_0x2b5e60(0x85))/0xb);if(_0xa2b8c9===_0x3187db)break;else _0x13656b['push'](_0x13656b['shift']());}catch(_0x22e876){_0x13656b['push'](_0x13656b['shift']());}}}(a131_0x5993,0xf3a8e));import{buildSchemaPayload as a131_0xd6c662}from'@lovrabet/cli-framework';function a131_0x5993(){const _0x184ccf=['3080644IbdMty','1599331EwofvA','44130GtWKmi','681avikHR','4733216cytpNh','../commands/registry.js','8kfauSV','6MkwYHw','8306gMDpKp','2868315ckEuEM','10396143nYTRKk','3586YoMAJv'];a131_0x5993=function(){return _0x184ccf;};return a131_0x5993();}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';function a131_0x29ee(_0x79c8f4,_0x4346bc){_0x79c8f4=_0x79c8f4-0x7f;const _0x5993f2=a131_0x5993();let _0x29ee9d=_0x5993f2[_0x79c8f4];return _0x29ee9d;}export async function buildSchemaPayload(){const _0x1124b7=a131_0x29ee,{serviceRegistry:_0x58b606,findDefinition:_0x5b6f5a}=await import(_0x1124b7(0x7f));return a131_0xd6c662({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x58b606,'buildAllFlags':buildAllFlags,'findDefinition':_0x5b6f5a});}
@@ -1 +1 @@
1
- function a132_0x3a91(_0x3fb1f2,_0xccace6){_0x3fb1f2=_0x3fb1f2-0x199;var _0x2b71ed=a132_0x2b71();var _0x3a911f=_0x2b71ed[_0x3fb1f2];return _0x3a911f;}function a132_0x2b71(){var _0x2ed14d=['600yIlTft','2249192krFXfH','1670106rXZeUp','1224720XgehGL','4825070jQeEmp','5283360lyJqoq','21osSBUQ','370871rNjzSU','146988rZwwLs','2aHOmGX'];a132_0x2b71=function(){return _0x2ed14d;};return a132_0x2b71();}(function(_0x3c4f08,_0x10f680){var _0x4c2705=a132_0x3a91,_0x56b09a=_0x3c4f08();while(!![]){try{var _0x1681c=-parseInt(_0x4c2705(0x199))/0x1+parseInt(_0x4c2705(0x19b))/0x2*(parseInt(_0x4c2705(0x19f))/0x3)+parseInt(_0x4c2705(0x19d))/0x4+parseInt(_0x4c2705(0x1a0))/0x5+-parseInt(_0x4c2705(0x19e))/0x6*(-parseInt(_0x4c2705(0x1a2))/0x7)+-parseInt(_0x4c2705(0x1a1))/0x8+-parseInt(_0x4c2705(0x19a))/0x9*(parseInt(_0x4c2705(0x19c))/0xa);if(_0x1681c===_0x10f680)break;else _0x56b09a['push'](_0x56b09a['shift']());}catch(_0x23b0a1){_0x56b09a['push'](_0x56b09a['shift']());}}}(a132_0x2b71,0xb9662));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a132_0x1f61(_0x18c9fa,_0x2b1948){_0x18c9fa=_0x18c9fa-0xb6;var _0x1ac129=a132_0x1ac1();var _0x1f6132=_0x1ac129[_0x18c9fa];return _0x1f6132;}(function(_0xb9e32f,_0x323f62){var _0x6e3070=a132_0x1f61,_0x4e18ed=_0xb9e32f();while(!![]){try{var _0x898dbb=-parseInt(_0x6e3070(0xbe))/0x1+parseInt(_0x6e3070(0xbf))/0x2*(parseInt(_0x6e3070(0xb9))/0x3)+-parseInt(_0x6e3070(0xbb))/0x4*(parseInt(_0x6e3070(0xbc))/0x5)+-parseInt(_0x6e3070(0xb6))/0x6+-parseInt(_0x6e3070(0xbd))/0x7*(parseInt(_0x6e3070(0xb7))/0x8)+-parseInt(_0x6e3070(0xb8))/0x9*(parseInt(_0x6e3070(0xc0))/0xa)+parseInt(_0x6e3070(0xba))/0xb;if(_0x898dbb===_0x323f62)break;else _0x4e18ed['push'](_0x4e18ed['shift']());}catch(_0x5277af){_0x4e18ed['push'](_0x4e18ed['shift']());}}}(a132_0x1ac1,0x99975));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a132_0x1ac1(){var _0xfb0aa=['33366971BDlnVC','2331860ewEqWp','10JshRJX','5327gHxCEy','271761EdueQW','1182yvHzqM','10JBdJfH','1494858ebeOir','8944zshCZR','7171686JspnFz','4722prSxBa'];a132_0x1ac1=function(){return _0xfb0aa;};return a132_0x1ac1();}
@@ -1 +1 @@
1
- function a133_0x2527(){const _0x32ce81=['2rpISQn','1225917HIyBFo','2189712HlqxFl','2026-04-12T04:52:50.547Z','10HQibtL','10105839LOpAkD','5pKofCd','b8a2383','2.1.2-beta.0','v2.1.2-beta.0','4001977RueTEm','1878484gWIVSe','978433LUqPKh','10245088GbHZjU'];a133_0x2527=function(){return _0x32ce81;};return a133_0x2527();}const a133_0x1d875c=a133_0x36eb;(function(_0x42c204,_0x73de41){const _0x51b00d=a133_0x36eb,_0x33b0c0=_0x42c204();while(!![]){try{const _0x5cd7e1=-parseInt(_0x51b00d(0x9f))/0x1*(-parseInt(_0x51b00d(0xa1))/0x2)+parseInt(_0x51b00d(0xa2))/0x3+parseInt(_0x51b00d(0x9e))/0x4+-parseInt(_0x51b00d(0x99))/0x5*(parseInt(_0x51b00d(0xa3))/0x6)+-parseInt(_0x51b00d(0x9d))/0x7+-parseInt(_0x51b00d(0xa0))/0x8+-parseInt(_0x51b00d(0x98))/0x9*(-parseInt(_0x51b00d(0xa5))/0xa);if(_0x5cd7e1===_0x73de41)break;else _0x33b0c0['push'](_0x33b0c0['shift']());}catch(_0x4a5b28){_0x33b0c0['push'](_0x33b0c0['shift']());}}}(a133_0x2527,0xba199));export const VERSION=a133_0x1d875c(0x9b);export const GIT_TAG=a133_0x1d875c(0x9c);export const GIT_COMMIT=a133_0x1d875c(0x9a);function a133_0x36eb(_0xddcd01,_0x2075ed){_0xddcd01=_0xddcd01-0x98;const _0x252742=a133_0x2527();let _0x36eb9b=_0x252742[_0xddcd01];return _0x36eb9b;}export const BUILD_TIME=a133_0x1d875c(0xa4);
1
+ const a133_0x1d4e20=a133_0xff91;(function(_0x5bcb18,_0x1e9bef){const _0x109339=a133_0xff91,_0x4f7fd0=_0x5bcb18();while(!![]){try{const _0x4409fb=parseInt(_0x109339(0xf2))/0x1*(-parseInt(_0x109339(0xf7))/0x2)+-parseInt(_0x109339(0xf0))/0x3+parseInt(_0x109339(0xf9))/0x4+-parseInt(_0x109339(0xef))/0x5*(-parseInt(_0x109339(0xf6))/0x6)+parseInt(_0x109339(0xed))/0x7*(-parseInt(_0x109339(0xee))/0x8)+-parseInt(_0x109339(0xf1))/0x9+parseInt(_0x109339(0xf4))/0xa;if(_0x4409fb===_0x1e9bef)break;else _0x4f7fd0['push'](_0x4f7fd0['shift']());}catch(_0xfad7c5){_0x4f7fd0['push'](_0x4f7fd0['shift']());}}}(a133_0xfdbb,0xc855f));function a133_0xff91(_0x2fd62b,_0x46811c){_0x2fd62b=_0x2fd62b-0xec;const _0xfdbbb2=a133_0xfdbb();let _0xff913d=_0xfdbbb2[_0x2fd62b];return _0xff913d;}function a133_0xfdbb(){const _0x2a8ad8=['14606NatnVn','2026-04-12T11:09:19.712Z','5850440dINcGm','2.1.2-beta.1','3217067fmnarf','16tBcSCg','4535ysGGbo','2110851hcSjku','4077261EDhbXb','59mTHARG','v2.1.2-beta.1','6991550gOfNzl','1e3c6f5','7710MaVDru'];a133_0xfdbb=function(){return _0x2a8ad8;};return a133_0xfdbb();}export const VERSION=a133_0x1d4e20(0xec);export const GIT_TAG=a133_0x1d4e20(0xf3);export const GIT_COMMIT=a133_0x1d4e20(0xf5);export const BUILD_TIME=a133_0x1d4e20(0xf8);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x170d9e,_0x3b829c){var _0x50ad3e=a134_0x350c,_0x2b5ace=_0x170d9e();while(!![]){try{var _0x47dbcd=parseInt(_0x50ad3e(0x1bc))/0x1*(-parseInt(_0x50ad3e(0x1c0))/0x2)+parseInt(_0x50ad3e(0x1c8))/0x3*(parseInt(_0x50ad3e(0x1bd))/0x4)+parseInt(_0x50ad3e(0x1c4))/0x5*(-parseInt(_0x50ad3e(0x1c5))/0x6)+-parseInt(_0x50ad3e(0x1c2))/0x7*(-parseInt(_0x50ad3e(0x1bf))/0x8)+-parseInt(_0x50ad3e(0x1c6))/0x9+parseInt(_0x50ad3e(0x1c9))/0xa+parseInt(_0x50ad3e(0x1c7))/0xb;if(_0x47dbcd===_0x3b829c)break;else _0x2b5ace['push'](_0x2b5ace['shift']());}catch(_0x53ac65){_0x2b5ace['push'](_0x2b5ace['shift']());}}}(a134_0x26d9,0x4039a));function a134_0x350c(_0x19220f,_0x5ffdb8){_0x19220f=_0x19220f-0x1bb;var _0x26d91f=a134_0x26d9();var _0x350cf1=_0x26d91f[_0x19220f];return _0x350cf1;}function a134_0x26d9(){var _0x280d36=['1qJpsHi','1056252zJeIcp','\x20\x20Use\x20','96ShFqwE','955146zBsuXP','bold','42224YBxgFT','\x20to\x20view\x20available\x20commands.','10xrlfhe','529368LdgApT','3104847CAilbT','7595676wajLIo','3FrWyFw','2351150tldvAl','log'];a134_0x26d9=function(){return _0x280d36;};return a134_0x26d9();}import a134_0x1ed3e7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb4f531=a134_0x350c;console[_0xb4f531(0x1bb)](),console[_0xb4f531(0x1bb)](a134_0x1ed3e7['green'][_0xb4f531(0x1c1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xb4f531(0x1bb)](),console['log'](_0xb4f531(0x1be)+a134_0x1ed3e7['green'][_0xb4f531(0x1c1)](CLI_BIN_NAME+'\x20--help')+_0xb4f531(0x1c3)),console['log']();}
1
+ (function(_0x2e51b3,_0xfabc03){var _0x25f82d=a134_0x2b6a,_0x470a09=_0x2e51b3();while(!![]){try{var _0x39408f=-parseInt(_0x25f82d(0x13f))/0x1+parseInt(_0x25f82d(0x145))/0x2+parseInt(_0x25f82d(0x13c))/0x3*(-parseInt(_0x25f82d(0x146))/0x4)+-parseInt(_0x25f82d(0x138))/0x5+parseInt(_0x25f82d(0x140))/0x6*(-parseInt(_0x25f82d(0x139))/0x7)+-parseInt(_0x25f82d(0x13b))/0x8*(parseInt(_0x25f82d(0x141))/0x9)+parseInt(_0x25f82d(0x144))/0xa*(parseInt(_0x25f82d(0x13a))/0xb);if(_0x39408f===_0xfabc03)break;else _0x470a09['push'](_0x470a09['shift']());}catch(_0x4350f4){_0x470a09['push'](_0x470a09['shift']());}}}(a134_0xad95,0xe0f94));import a134_0x74e8b8 from'chalk';function a134_0x2b6a(_0x3c7f40,_0x3553dd){_0x3c7f40=_0x3c7f40-0x138;var _0xad9515=a134_0xad95();var _0x2b6a87=_0xad9515[_0x3c7f40];return _0x2b6a87;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a134_0xad95(){var _0x58bd9=['366105RkxIpL','green','\x20--help','1751110NHmKIb','6yNoGWl','17631TezJPR','log','bold','33159010hBXKfW','2683724UbmQph','4omoNHS','\x20to\x20view\x20available\x20commands.','7051930jibkgf','1674463JOfebX','11MVzkjv','872XrSCSF'];a134_0xad95=function(){return _0x58bd9;};return a134_0xad95();}export function showHelp(){var _0x299f6c=a134_0x2b6a;console[_0x299f6c(0x142)](),console['log'](a134_0x74e8b8[_0x299f6c(0x13d)][_0x299f6c(0x143)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x299f6c(0x142)](),console[_0x299f6c(0x142)]('\x20\x20Use\x20'+a134_0x74e8b8[_0x299f6c(0x13d)][_0x299f6c(0x143)](CLI_BIN_NAME+_0x299f6c(0x13e))+_0x299f6c(0x147)),console[_0x299f6c(0x142)]();}
@@ -1 +1 @@
1
- (function(_0x5b0a6b,_0x9fe8cf){const _0x1eaad1=a135_0x414d,_0x436b73=_0x5b0a6b();while(!![]){try{const _0x526e82=parseInt(_0x1eaad1(0xea))/0x1+parseInt(_0x1eaad1(0xde))/0x2*(-parseInt(_0x1eaad1(0xd7))/0x3)+-parseInt(_0x1eaad1(0xe6))/0x4*(-parseInt(_0x1eaad1(0xd5))/0x5)+-parseInt(_0x1eaad1(0xe7))/0x6+-parseInt(_0x1eaad1(0xcf))/0x7*(-parseInt(_0x1eaad1(0xdd))/0x8)+parseInt(_0x1eaad1(0xca))/0x9+-parseInt(_0x1eaad1(0xe9))/0xa;if(_0x526e82===_0x9fe8cf)break;else _0x436b73['push'](_0x436b73['shift']());}catch(_0x1cc670){_0x436b73['push'](_0x436b73['shift']());}}}(a135_0x4c41,0xb2ab1));import{logger}from'../utils/logger.js';function a135_0x4c41(){const _0x385099=['\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','7555797hTOKDw','Error:\x20Unsupported\x20command:\x20','dangerously-bff-save','不支持的命令:\x20','log','7KyLTiE','skill','\x0aAvailable\x20commands:','from','help','-$1','2292340lSCcjJ','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','225FrLcUG','argv','enable-bff-save','length','push','startsWith','6658712xkaOXh','4578hGLpBn','error','entries','setLogPath','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','has','slice','exit','12oQhnQf','1636968FZqloO','toLowerCase','28121070WSOcwH','941159LHsDgg','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20--help\x0a\x20\x20','includes','Equivalent\x20command:\x20','--help'];a135_0x4c41=function(){return _0x385099;};return a135_0x4c41();}import{CLI_BIN_NAME}from'../constant/cli.js';function a135_0x414d(_0x4cea3f,_0x2d9523){_0x4cea3f=_0x4cea3f-0xc7;const _0x4c4163=a135_0x4c41();let _0x414d44=_0x4c4163[_0x4cea3f];return _0x414d44;}export function camelCaseFlagsToKebab(_0x239667){const _0xe52d21=a135_0x414d,_0x3ca11f=[];for(const [_0xf64e2c,_0x5db73b]of Object[_0xe52d21(0xe0)](_0x239667)){if(_0x5db73b===!![]){const _0x42fb53=_0xf64e2c['replace'](/([A-Z])/g,_0xe52d21(0xd4))[_0xe52d21(0xe8)]();_0x3ca11f[_0xe52d21(0xdb)](_0x42fb53);}}return _0x3ca11f;}export function parseDynamicFlags(){const _0x5f2229=a135_0x414d,_0x3aea96=[];for(let _0x44310f=0x3;_0x44310f<process[_0x5f2229(0xd8)][_0x5f2229(0xda)];_0x44310f++){const _0x5c0e3d=process['argv'][_0x44310f];if(_0x5c0e3d&&_0x5c0e3d[_0x5f2229(0xdc)]('--')){const _0x277dd0=_0x5c0e3d[_0x5f2229(0xe4)](0x2);_0x277dd0&&!_0x277dd0[_0x5f2229(0xed)]('=')&&_0x3aea96[_0x5f2229(0xdb)](_0x277dd0);}}return _0x3aea96;}export function getAllProvidedFlags(_0x266139){const _0x1a5732=camelCaseFlagsToKebab(_0x266139),_0x44d469=parseDynamicFlags(),_0x54d5fa=new Set([..._0x1a5732,..._0x44d469]);return Array['from'](_0x54d5fa);}export function normalizeLegacyBffSaveFlags(_0x17206b){const _0x32b837=a135_0x414d,_0x3d26b1=new Set(_0x17206b);return _0x3d26b1[_0x32b837(0xe3)](_0x32b837(0xcc))&&_0x3d26b1['add'](_0x32b837(0xd9)),Array[_0x32b837(0xd2)](_0x3d26b1);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x1c9f86,_0x28fde4,_0x8b61bb){const _0x573b27=a135_0x414d;logger[_0x573b27(0xe1)](process['cwd']());if(_0x8b61bb?.[_0x573b27(0xd3)]||_0x1c9f86===_0x573b27(0xc8)){showHelp();return;}console[_0x573b27(0xdf)](_0x573b27(0xcb)+(_0x1c9f86||'(empty)')),console[_0x573b27(0xce)](_0x573b27(0xd1)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xeb)),console[_0x573b27(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xd6)),console[_0x573b27(0xce)](''),console[_0x573b27(0xce)](_0x573b27(0xc7)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x573b27(0xdf)](_0x573b27(0xd0),_0x573b27(0xcd)+_0x1c9f86),process[_0x573b27(0xe5)](0x1);}function showHelp(){const _0x4a0460=a135_0x414d;console[_0x4a0460(0xce)](_0x4a0460(0xe2)+CLI_BIN_NAME+_0x4a0460(0xec)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4a0460(0xc9));}
1
+ (function(_0x52c256,_0x3cc303){const _0x9dc724=a135_0x1c43,_0x1a6f7c=_0x52c256();while(!![]){try{const _0x3202be=parseInt(_0x9dc724(0x140))/0x1*(parseInt(_0x9dc724(0x146))/0x2)+-parseInt(_0x9dc724(0x138))/0x3*(parseInt(_0x9dc724(0x130))/0x4)+parseInt(_0x9dc724(0x143))/0x5+-parseInt(_0x9dc724(0x14d))/0x6+parseInt(_0x9dc724(0x152))/0x7+parseInt(_0x9dc724(0x136))/0x8*(-parseInt(_0x9dc724(0x14c))/0x9)+parseInt(_0x9dc724(0x137))/0xa;if(_0x3202be===_0x3cc303)break;else _0x1a6f7c['push'](_0x1a6f7c['shift']());}catch(_0x5cc0b8){_0x1a6f7c['push'](_0x1a6f7c['shift']());}}}(a135_0x553f,0x7db9b));import{logger}from'../utils/logger.js';function a135_0x1c43(_0x1b49af,_0x1d00aa){_0x1b49af=_0x1b49af-0x12e;const _0x553f32=a135_0x553f();let _0x1c4353=_0x553f32[_0x1b49af];return _0x1c4353;}import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x347c99){const _0x21a22f=a135_0x1c43,_0x2da1e3=[];for(const [_0x3dc57a,_0xf59bb3]of Object[_0x21a22f(0x13f)](_0x347c99)){if(_0xf59bb3===!![]){const _0x5d3386=_0x3dc57a[_0x21a22f(0x13a)](/([A-Z])/g,'-$1')[_0x21a22f(0x144)]();_0x2da1e3[_0x21a22f(0x14e)](_0x5d3386);}}return _0x2da1e3;}export function parseDynamicFlags(){const _0x69661d=a135_0x1c43,_0x828935=[];for(let _0xc8b3f2=0x3;_0xc8b3f2<process[_0x69661d(0x149)][_0x69661d(0x148)];_0xc8b3f2++){const _0x42987c=process[_0x69661d(0x149)][_0xc8b3f2];if(_0x42987c&&_0x42987c[_0x69661d(0x145)]('--')){const _0x3e8ca4=_0x42987c[_0x69661d(0x12f)](0x2);_0x3e8ca4&&!_0x3e8ca4['includes']('=')&&_0x828935['push'](_0x3e8ca4);}}return _0x828935;}export function getAllProvidedFlags(_0x3da787){const _0x5b84ec=a135_0x1c43,_0x4caa05=camelCaseFlagsToKebab(_0x3da787),_0x30ef51=parseDynamicFlags(),_0x148f46=new Set([..._0x4caa05,..._0x30ef51]);return Array[_0x5b84ec(0x135)](_0x148f46);}export function normalizeLegacyBffSaveFlags(_0x10ed70){const _0x13d346=a135_0x1c43,_0x2d8851=new Set(_0x10ed70);return _0x2d8851['has'](_0x13d346(0x141))&&_0x2d8851[_0x13d346(0x142)](_0x13d346(0x151)),Array[_0x13d346(0x135)](_0x2d8851);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';function a135_0x553f(){const _0x2776d3=['45939rrZJMS','dangerously-bff-save','add','1010005WOTSwv','toLowerCase','startsWith','2mOJcoN','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','length','argv','Equivalent\x20command:\x20','\x20skill\x20--help\x0a\x20\x20','234nJjVNR','3893604ZHLFse','push','setLogPath','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','enable-bff-save','7198793Nruxhd','--help','slice','532172GIGzRF','log','不支持的命令:\x20','\x0aAvailable\x20commands:','exit','from','303528IkOzuL','16722900iKIsNx','18CiLjeN','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','replace','skill','error','help','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','entries'];a135_0x553f=function(){return _0x2776d3;};return a135_0x553f();}export async function skillsCommand(_0x1478e6,_0x536136,_0x5f381d){const _0x8dd481=a135_0x1c43;logger[_0x8dd481(0x14f)](process['cwd']());if(_0x5f381d?.[_0x8dd481(0x13d)]||_0x1478e6===_0x8dd481(0x12e)){showHelp();return;}console[_0x8dd481(0x13c)]('Error:\x20Unsupported\x20command:\x20'+(_0x1478e6||'(empty)')),console[_0x8dd481(0x131)](_0x8dd481(0x133)),console[_0x8dd481(0x131)]('\x20\x20'+CLI_BIN_NAME+_0x8dd481(0x147)),console[_0x8dd481(0x131)]('\x20\x20'+CLI_BIN_NAME+_0x8dd481(0x150)),console[_0x8dd481(0x131)](''),console[_0x8dd481(0x131)](_0x8dd481(0x14a)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x8dd481(0x13b),_0x8dd481(0x132)+_0x1478e6),process[_0x8dd481(0x134)](0x1);}function showHelp(){const _0x25e230=a135_0x1c43;console[_0x25e230(0x131)](_0x25e230(0x13e)+CLI_BIN_NAME+_0x25e230(0x14b)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x25e230(0x139));}
@@ -1 +1 @@
1
- const a136_0x4a9f4a=a136_0x193c;(function(_0x2a76c0,_0x1d1616){const _0x29e87b=a136_0x193c,_0x2a6118=_0x2a76c0();while(!![]){try{const _0xcede2e=-parseInt(_0x29e87b(0x7a))/0x1*(parseInt(_0x29e87b(0x84))/0x2)+parseInt(_0x29e87b(0x79))/0x3+-parseInt(_0x29e87b(0x8b))/0x4*(-parseInt(_0x29e87b(0x78))/0x5)+parseInt(_0x29e87b(0x8a))/0x6+parseInt(_0x29e87b(0x86))/0x7+parseInt(_0x29e87b(0x7d))/0x8+-parseInt(_0x29e87b(0x81))/0x9;if(_0xcede2e===_0x1d1616)break;else _0x2a6118['push'](_0x2a6118['shift']());}catch(_0x57d350){_0x2a6118['push'](_0x2a6118['shift']());}}}(a136_0xfa29,0x5701b));function a136_0xfa29(){const _0x3d9d80=['yes','1903872xwLEWb','1489652SzdejB','log','exit\x20','stderr','--skill','lovrabet/lovrabet-skill','pipe','inherit','5YVbSjI','1681356eKCRyT','224947hUxQFx','unknown','status','1420440svLNQl','stdio','join','npx','13895046zMLFwn','trim','Lovrabet','2BpOAwF','skills','4882416MRlzXn','toString','stdout'];a136_0xfa29=function(){return _0x3d9d80;};return a136_0xfa29();}function a136_0x193c(_0x4a55ad,_0x5ef56e){_0x4a55ad=_0x4a55ad-0x71;const _0xfa29a2=a136_0xfa29();let _0x193ced=_0xfa29a2[_0x4a55ad];return _0x193ced;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x4a9f4a(0x85);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a136_0x4a9f4a(0x74);export const RABETBASE_SKILL_SOURCE=a136_0x4a9f4a(0x75);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x4a9f4a(0x83);export function buildNpxSkillsAddArgv(_0x114141=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x114141];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x4a9f4a(0x80),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x50e30c,_0x5e84e2){const _0x3204b2=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5340b7=_0x5e84e2?.['stdio']??_0x3204b2(0x77),_0x165919=resolveNpmBin(_0x3204b2(0x80)),_0x10cfdb=buildNpxSkillsAddArgv(_0x5e84e2?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x1197d4=[_0x165919,..._0x10cfdb]['join']('\x20');console['log']('*\x20'+_0x1197d4);const _0x1e574d=spawnSync(_0x165919,_0x10cfdb,{'cwd':_0x50e30c,'stdio':_0x5340b7,'env':process.env,'shell':![]}),_0x88eb48=_0x1e574d[_0x3204b2(0x7c)];if(_0x88eb48===0x0)return{'ok':!![],'status':0x0};let _0x3dbe32=_0x3204b2(0x72)+(_0x88eb48??'unknown');if(_0x5340b7==='pipe'){const _0x10175d=_0x1e574d['stderr']?_0x1e574d['stderr'][_0x3204b2(0x87)]()['trim']():'',_0x49ceb6=_0x1e574d['stdout']?_0x1e574d[_0x3204b2(0x88)][_0x3204b2(0x87)]()[_0x3204b2(0x82)]():'';if(_0x10175d)_0x3dbe32=_0x10175d;else{if(_0x49ceb6)_0x3dbe32=_0x49ceb6;}}return{'ok':![],'status':_0x88eb48??null,'error':_0x3dbe32};}export function runNpxSkillsRemove(_0x375639,_0x12041d){const _0x21d822=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20de70=_0x12041d?.[_0x21d822(0x7e)]??'inherit',_0x3ffe61=resolveNpmBin(_0x21d822(0x80)),_0x13a2d3=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x12041d?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x12041d?.[_0x21d822(0x89)]?['-y']:[]],_0x4dc43b=[_0x3ffe61,..._0x13a2d3][_0x21d822(0x7f)]('\x20');console[_0x21d822(0x71)]('*\x20'+_0x4dc43b);const _0x53310a=spawnSync(_0x3ffe61,_0x13a2d3,{'cwd':_0x375639,'stdio':_0x20de70,'env':process.env,'shell':![]}),_0x825d2b=_0x53310a[_0x21d822(0x7c)];if(_0x825d2b===0x0)return{'ok':!![],'status':0x0};let _0x275bfc=_0x21d822(0x72)+(_0x825d2b??_0x21d822(0x7b));if(_0x20de70==='pipe'){const _0x562876=_0x53310a[_0x21d822(0x73)]?_0x53310a[_0x21d822(0x73)]['toString']()[_0x21d822(0x82)]():'',_0xb48189=_0x53310a[_0x21d822(0x88)]?_0x53310a[_0x21d822(0x88)]['toString']()[_0x21d822(0x82)]():'';if(_0x562876)_0x275bfc=_0x562876;else{if(_0xb48189)_0x275bfc=_0xb48189;}}return{'ok':![],'status':_0x825d2b??null,'error':_0x275bfc};}export function runNpxSkillsAddGlobal(_0x1cfefb,_0x12c5ca,_0x5b9233){const _0x3c462d=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x190a8e=_0x5b9233?.[_0x3c462d(0x7e)]??_0x3c462d(0x77),_0x29fdb8=resolveNpmBin(_0x3c462d(0x80)),_0x248baf=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12c5ca,'--global',..._0x5b9233?.[_0x3c462d(0x89)]?['-y']:[]],_0x87caa=[_0x29fdb8,..._0x248baf][_0x3c462d(0x7f)]('\x20');console[_0x3c462d(0x71)]('*\x20'+_0x87caa);const _0x148c63=spawnSync(_0x29fdb8,_0x248baf,{'cwd':_0x1cfefb,'stdio':_0x190a8e,'env':process.env,'shell':![]}),_0x321db6=_0x148c63[_0x3c462d(0x7c)];if(_0x321db6===0x0)return{'ok':!![],'status':0x0};let _0x59dade=_0x3c462d(0x72)+(_0x321db6??_0x3c462d(0x7b));if(_0x190a8e===_0x3c462d(0x76)){const _0xed981b=_0x148c63['stderr']?_0x148c63[_0x3c462d(0x73)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'',_0x3764c8=_0x148c63['stdout']?_0x148c63[_0x3c462d(0x88)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'';if(_0xed981b)_0x59dade=_0xed981b;else{if(_0x3764c8)_0x59dade=_0x3764c8;}}return{'ok':![],'status':_0x321db6??null,'error':_0x59dade};}
1
+ function a136_0x279b(){const _0x575e79=['--skill','skill','175wYVuZh','exit\x20','trim','55733HPesbP','1692900jJVHQi','skills','remove','4658260fjdaNr','inherit','297itAkKE','lovrabet/lovrabet-skill','toString','--global','Lovrabet','stdout','3675532FqkEay','yes','246912hSLAaf','394254tBtVbR','33PNVCNV','stderr','add','unknown','4QCpVjc','235064AEkHGC','log','stdio','npx','pipe','join','status'];a136_0x279b=function(){return _0x575e79;};return a136_0x279b();}const a136_0x532639=a136_0x2c62;(function(_0x2eb426,_0x3f64c5){const _0xf813b4=a136_0x2c62,_0x40a139=_0x2eb426();while(!![]){try{const _0x5938ca=parseInt(_0xf813b4(0x6d))/0x1*(-parseInt(_0xf813b4(0x81))/0x2)+-parseInt(_0xf813b4(0x7c))/0x3+-parseInt(_0xf813b4(0x79))/0x4+parseInt(_0xf813b4(0x6e))/0x5+-parseInt(_0xf813b4(0x7b))/0x6*(parseInt(_0xf813b4(0x6a))/0x7)+parseInt(_0xf813b4(0x82))/0x8*(parseInt(_0xf813b4(0x73))/0x9)+parseInt(_0xf813b4(0x71))/0xa*(parseInt(_0xf813b4(0x7d))/0xb);if(_0x5938ca===_0x3f64c5)break;else _0x40a139['push'](_0x40a139['shift']());}catch(_0x21dc44){_0x40a139['push'](_0x40a139['shift']());}}}(a136_0x279b,0x7dc3a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a136_0x2c62(_0x57df1d,_0x48069a){_0x57df1d=_0x57df1d-0x68;const _0x279b22=a136_0x279b();let _0x2c62fe=_0x279b22[_0x57df1d];return _0x2c62fe;}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x532639(0x6f);export const NPX_SKILLS_SUBCOMMAND_ADD=a136_0x532639(0x7f);export const NPX_SKILLS_FLAG_SKILL=a136_0x532639(0x68);export const RABETBASE_SKILL_SOURCE=a136_0x532639(0x74);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x532639(0x77);export function buildNpxSkillsAddArgv(_0x22ee52=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x22ee52];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x532639(0x85),...buildNpxSkillsAddArgv()][a136_0x532639(0x87)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4d8b4a,_0x517285){const _0x3f2e1f=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44e0b8=_0x517285?.[_0x3f2e1f(0x84)]??_0x3f2e1f(0x72),_0x572903=resolveNpmBin(_0x3f2e1f(0x85)),_0x264ed0=buildNpxSkillsAddArgv(_0x517285?.[_0x3f2e1f(0x69)]??DEFAULT_RABETBASE_SKILL_NAME),_0xfcf862=[_0x572903,..._0x264ed0][_0x3f2e1f(0x87)]('\x20');console[_0x3f2e1f(0x83)]('*\x20'+_0xfcf862);const _0x1ffae4=spawnSync(_0x572903,_0x264ed0,{'cwd':_0x4d8b4a,'stdio':_0x44e0b8,'env':process.env,'shell':![]}),_0x5e692f=_0x1ffae4[_0x3f2e1f(0x88)];if(_0x5e692f===0x0)return{'ok':!![],'status':0x0};let _0x3fe8e0='exit\x20'+(_0x5e692f??_0x3f2e1f(0x80));if(_0x44e0b8===_0x3f2e1f(0x86)){const _0x244ad9=_0x1ffae4[_0x3f2e1f(0x7e)]?_0x1ffae4[_0x3f2e1f(0x7e)][_0x3f2e1f(0x75)]()[_0x3f2e1f(0x6c)]():'',_0x33a8ab=_0x1ffae4[_0x3f2e1f(0x78)]?_0x1ffae4[_0x3f2e1f(0x78)][_0x3f2e1f(0x75)]()[_0x3f2e1f(0x6c)]():'';if(_0x244ad9)_0x3fe8e0=_0x244ad9;else{if(_0x33a8ab)_0x3fe8e0=_0x33a8ab;}}return{'ok':![],'status':_0x5e692f??null,'error':_0x3fe8e0};}export function runNpxSkillsRemove(_0x54ad32,_0x5a5f92){const _0x2384f1=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35ad70=_0x5a5f92?.[_0x2384f1(0x84)]??_0x2384f1(0x72),_0x5defa2=resolveNpmBin(_0x2384f1(0x85)),_0x16d188=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2384f1(0x70),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x5a5f92?.[_0x2384f1(0x69)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5a5f92?.[_0x2384f1(0x7a)]?['-y']:[]],_0x19742b=[_0x5defa2,..._0x16d188][_0x2384f1(0x87)]('\x20');console[_0x2384f1(0x83)]('*\x20'+_0x19742b);const _0x565ad9=spawnSync(_0x5defa2,_0x16d188,{'cwd':_0x54ad32,'stdio':_0x35ad70,'env':process.env,'shell':![]}),_0xce6564=_0x565ad9['status'];if(_0xce6564===0x0)return{'ok':!![],'status':0x0};let _0xe1a7bf=_0x2384f1(0x6b)+(_0xce6564??_0x2384f1(0x80));if(_0x35ad70==='pipe'){const _0x3f9811=_0x565ad9[_0x2384f1(0x7e)]?_0x565ad9[_0x2384f1(0x7e)][_0x2384f1(0x75)]()[_0x2384f1(0x6c)]():'',_0x867dca=_0x565ad9[_0x2384f1(0x78)]?_0x565ad9[_0x2384f1(0x78)][_0x2384f1(0x75)]()[_0x2384f1(0x6c)]():'';if(_0x3f9811)_0xe1a7bf=_0x3f9811;else{if(_0x867dca)_0xe1a7bf=_0x867dca;}}return{'ok':![],'status':_0xce6564??null,'error':_0xe1a7bf};}export function runNpxSkillsAddGlobal(_0x33e59e,_0x3dadb4,_0x156971){const _0x3e75ce=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4cb0be=_0x156971?.[_0x3e75ce(0x84)]??_0x3e75ce(0x72),_0x25c042=resolveNpmBin(_0x3e75ce(0x85)),_0x43a87d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dadb4,_0x3e75ce(0x76),..._0x156971?.[_0x3e75ce(0x7a)]?['-y']:[]],_0x672da8=[_0x25c042,..._0x43a87d][_0x3e75ce(0x87)]('\x20');console[_0x3e75ce(0x83)]('*\x20'+_0x672da8);const _0x59d786=spawnSync(_0x25c042,_0x43a87d,{'cwd':_0x33e59e,'stdio':_0x4cb0be,'env':process.env,'shell':![]}),_0x3f89a8=_0x59d786[_0x3e75ce(0x88)];if(_0x3f89a8===0x0)return{'ok':!![],'status':0x0};let _0x3061a2=_0x3e75ce(0x6b)+(_0x3f89a8??_0x3e75ce(0x80));if(_0x4cb0be===_0x3e75ce(0x86)){const _0x1d0643=_0x59d786[_0x3e75ce(0x7e)]?_0x59d786['stderr'][_0x3e75ce(0x75)]()[_0x3e75ce(0x6c)]():'',_0x4a3efb=_0x59d786['stdout']?_0x59d786[_0x3e75ce(0x78)]['toString']()['trim']():'';if(_0x1d0643)_0x3061a2=_0x1d0643;else{if(_0x4a3efb)_0x3061a2=_0x4a3efb;}}return{'ok':![],'status':_0x3f89a8??null,'error':_0x3061a2};}
@@ -1 +1 @@
1
- function a137_0x47c3(){const _0x56796c=['rabetbase.command','126279ytcOUs','10381840LQoqxD','error','238677EyPFyK','test','16rpLNAm','service','868875HTQFbY','412218dpmFFT','command','message','durationMs','629745NNlZjF','3550314uDBxWS','[REDACTED]'];a137_0x47c3=function(){return _0x56796c;};return a137_0x47c3();}(function(_0x5985b5,_0x4e3a6d){const _0x56f5f1=a137_0x5e89,_0x26dda2=_0x5985b5();while(!![]){try{const _0x58e2b9=parseInt(_0x56f5f1(0x1a5))/0x1+parseInt(_0x56f5f1(0x1aa))/0x2+-parseInt(_0x56f5f1(0x1a2))/0x3+parseInt(_0x56f5f1(0x1a7))/0x4*(parseInt(_0x56f5f1(0x1ae))/0x5)+parseInt(_0x56f5f1(0x1af))/0x6+parseInt(_0x56f5f1(0x1a9))/0x7+-parseInt(_0x56f5f1(0x1a3))/0x8;if(_0x58e2b9===_0x4e3a6d)break;else _0x26dda2['push'](_0x26dda2['shift']());}catch(_0x4dfd10){_0x26dda2['push'](_0x26dda2['shift']());}}}(a137_0x47c3,0x4f3fb));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a137_0x5e89(_0x4d6afc,_0x597683){_0x4d6afc=_0x4d6afc-0x1a0;const _0x47c3ee=a137_0x47c3();let _0x5e8933=_0x47c3ee[_0x4d6afc];return _0x5e8933;}function isSensitiveKey(_0x63253a){const _0x314e81=a137_0x5e89;return SENSITIVE_PATTERNS['some'](_0x1ffc9d=>_0x1ffc9d[_0x314e81(0x1a6)](_0x63253a));}function sanitizeFlags(_0x58c6ad){const _0xe21202=a137_0x5e89,_0x31eed2={};for(const [_0x88ccd9,_0x136c2c]of Object['entries'](_0x58c6ad)){isSensitiveKey(_0x88ccd9)?_0x31eed2[_0x88ccd9]=_0x136c2c!=null&&_0x136c2c!==''?_0xe21202(0x1a0):_0x136c2c:_0x31eed2[_0x88ccd9]=_0x136c2c;}return _0x31eed2;}export async function reportCommandTrace(_0x3847aa){const _0x337951=a137_0x5e89;try{const _0x2bccdd=sanitizeFlags(_0x3847aa['flags']);await sendCliTraceLog({'spanName':_0x337951(0x1a1),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3847aa[_0x337951(0x1a8)],'command.name':_0x3847aa[_0x337951(0x1ab)],'command.flags':JSON['stringify'](_0x2bccdd),..._0x3847aa['durationMs']!=null?{'command.duration_ms':_0x3847aa[_0x337951(0x1ad)]}:{},..._0x3847aa['error']?{'command.error':_0x3847aa[_0x337951(0x1a4)]instanceof Error?_0x3847aa[_0x337951(0x1a4)][_0x337951(0x1ac)]:String(_0x3847aa[_0x337951(0x1a4)])}:{}}});}catch{}}
1
+ (function(_0x1a97b9,_0x13793f){const _0x20c5be=a137_0x73cd,_0x404138=_0x1a97b9();while(!![]){try{const _0x34c8e1=-parseInt(_0x20c5be(0x12b))/0x1*(parseInt(_0x20c5be(0x11c))/0x2)+-parseInt(_0x20c5be(0x12a))/0x3*(parseInt(_0x20c5be(0x127))/0x4)+-parseInt(_0x20c5be(0x122))/0x5*(parseInt(_0x20c5be(0x120))/0x6)+parseInt(_0x20c5be(0x118))/0x7+parseInt(_0x20c5be(0x126))/0x8*(parseInt(_0x20c5be(0x129))/0x9)+-parseInt(_0x20c5be(0x11a))/0xa*(parseInt(_0x20c5be(0x121))/0xb)+parseInt(_0x20c5be(0x117))/0xc*(parseInt(_0x20c5be(0x119))/0xd);if(_0x34c8e1===_0x13793f)break;else _0x404138['push'](_0x404138['shift']());}catch(_0x1f5deb){_0x404138['push'](_0x404138['shift']());}}}(a137_0x4e9d,0x7e20f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a137_0x4e9d(){const _0x42b469=['170MefquS','[REDACTED]','71224FTOFPa','entries','durationMs','stringify','6mqiZzf','617870XBIfJe','1302485snLXLY','flags','some','error','2688fDKnzL','4MtNFKi','message','11241OJOgFf','2568561bLOlnL','6osTqAT','service','96IuEBbL','7133651tXXlOD','2215057ruQUnu'];a137_0x4e9d=function(){return _0x42b469;};return a137_0x4e9d();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x3b11b2){const _0x4f5cd3=a137_0x73cd;return SENSITIVE_PATTERNS[_0x4f5cd3(0x124)](_0x579ae6=>_0x579ae6['test'](_0x3b11b2));}function sanitizeFlags(_0xd7663b){const _0x4418ab=a137_0x73cd,_0x4185a6={};for(const [_0x55dde5,_0x52c03e]of Object[_0x4418ab(0x11d)](_0xd7663b)){isSensitiveKey(_0x55dde5)?_0x4185a6[_0x55dde5]=_0x52c03e!=null&&_0x52c03e!==''?_0x4418ab(0x11b):_0x52c03e:_0x4185a6[_0x55dde5]=_0x52c03e;}return _0x4185a6;}function a137_0x73cd(_0x39aabe,_0x21a3bc){_0x39aabe=_0x39aabe-0x116;const _0x4e9d61=a137_0x4e9d();let _0x73cddb=_0x4e9d61[_0x39aabe];return _0x73cddb;}export async function reportCommandTrace(_0x4e4f22){const _0xc82e12=a137_0x73cd;try{const _0x5b6a6f=sanitizeFlags(_0x4e4f22[_0xc82e12(0x123)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e4f22[_0xc82e12(0x116)],'command.name':_0x4e4f22['command'],'command.flags':JSON[_0xc82e12(0x11f)](_0x5b6a6f),..._0x4e4f22[_0xc82e12(0x11e)]!=null?{'command.duration_ms':_0x4e4f22[_0xc82e12(0x11e)]}:{},..._0x4e4f22['error']?{'command.error':_0x4e4f22[_0xc82e12(0x125)]instanceof Error?_0x4e4f22[_0xc82e12(0x125)][_0xc82e12(0x128)]:String(_0x4e4f22[_0xc82e12(0x125)])}:{}}});}catch{}}