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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) 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/entity-with-id.js +1 -0
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- function a113_0x305f(){const _0x153178=['/smartapi/dblink/getTableDiffV2ByPage','body','4061075poriBo','//\x20','pageSize','operations','set','4785944kAfWCA','scriptName','import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;','map','join','remove','name','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','6234276OjOHuj','string','sqlName','Operation\x20\x22','object','/api/node-toolbox/sql/save','/smartapi/dblink/delete','/smartapi/dataset/get-dataset-list','displayName','currentPage','&type=','dataset_','Warning:\x20showing\x20first\x20','.remove(id);','sqlCode','requestFields','modelId','functionName','/smartapi/question/er-config','toLowerCase','const\x20result\x20=\x20await\x20client.models.','success','\x20\x20return\x20rows;','label','errorCode','find','cli:rabetbase','type','length','AbortError','4pNsYzj','create','validation','.filter({','});','POST','code','SQL\x20query\x20not\x20found:\x20','const\x20client\x20=\x20new\x20LovrabetClient({\x20appCode:\x20\x27<YOUR_APP_CODE>\x27\x20});','delete','\x20apps.\x20','.update(id,\x20{\x20/*\x20fields\x20*/\x20});','planId','includeImports','path','\x20\x20sqlCode:\x20\x27','Use\x20the\x20platform\x20console\x20to\x20see\x20all.','application/json','test','const\x20data\x20=\x20await\x20client.sql.execute({','192486JjPfLd','BFF\x20script\x20not\x20found:\x20id=','(/*\x20params\x20*/);','Dataset\x20not\x20found:\x20','json','apiError','/smartapi/dblink/update','/api/management/library/scripts/save','error','/smartapi/app/getList','operationName','add','sdk','//\x20BFF\x20context:\x20context.client.sql.execute\x20returns\x20rows\x20directly','45RqeHoQ','export\x20default\x20async\x20function\x20handler(params,\x20context)\x20{','isArray','\x20failed,\x20HTTP\x20','method','modelCode','2975917QTShbE','/smartapi/dblink/getList','errorMsg','abort','tableName','status','\x20\x20where:\x20{},','/api/management/library/scripts/info?id=','401','UNAUTHORIZED','//\x20SQL:\x20','Check\x20your\x20auth\x20cookie\x20and\x20try\x20again.','/smartapi/custom/queryUserCustomSqlList','push','message','description','tableList','errorMessage','const\x20results\x20=\x20data.execResult\x20||\x20[];','API\x20error\x20code:\x20','3523782GCpcAr','includes','update','filter','/smartapi/dataset/get-dataset-operation','data','/smartapi/db-analysis/status/','totalCount','Request\x20timeout:\x20','/smartapi/dataset/get-driven-data?','519226sNVquy','tableData','\x20\x20currentPage:\x201,','enabled','table','authRequired','target','\x20\x20\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},','Unauthorized','getOne','/smartapi/dblink/getOne','cookie','API\x20error:\x20','GET','dbtableConfig','stringify','entries'];a113_0x305f=function(){return _0x153178;};return a113_0x305f();}(function(_0x5b576e,_0x12e0ef){const _0xeeb14f=a113_0x5352,_0x2b0202=_0x5b576e();while(!![]){try{const _0x16bd6b=-parseInt(_0xeeb14f(0x17d))/0x1+-parseInt(_0xeeb14f(0x12b))/0x2+parseInt(_0xeeb14f(0x121))/0x3*(-parseInt(_0xeeb14f(0x169))/0x4)+parseInt(_0xeeb14f(0x13e))/0x5+-parseInt(_0xeeb14f(0x14b))/0x6+-parseInt(_0xeeb14f(0x10d))/0x7+-parseInt(_0xeeb14f(0x143))/0x8*(-parseInt(_0xeeb14f(0x107))/0x9);if(_0x16bd6b===_0x12e0ef)break;else _0x2b0202['push'](_0x2b0202['shift']());}catch(_0x1cac8a){_0x2b0202['push'](_0x2b0202['shift']());}}}(a113_0x305f,0xadf70));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList,extractPaging}from'../framework/response.js';let _activeCookie;export function setActiveCookie(_0x47f4e8){_activeCookie=_0x47f4e8||undefined;}export function clearActiveCookie(){_activeCookie=undefined;}async function apiRequest(_0x758f3e,_0x35cbcf={}){const _0x3d452a=a113_0x5352,{method:method=_0x3d452a(0x138),body:_0x11519e,headers:headers={},timeout:timeout=0x7530,useRuntime:useRuntime=![]}=_0x35cbcf,_0x1b9614=useRuntime?getRuntimeDomain():getApiDomain(),_0x3be657=_activeCookie||getCookie(),_0x127807=''+_0x1b9614+_0x758f3e,_0xc42b4d=new AbortController(),_0x12cfad=setTimeout(()=>_0xc42b4d[_0x3d452a(0x110)](),timeout);try{const _0x35f7cb=await fetch(_0x127807,{'method':method,'headers':{'Content-Type':_0x3d452a(0x17a),'Cookie':_0x3be657,'X-Invoke-Source':_0x3d452a(0x165),...headers},'body':_0x11519e?JSON[_0x3d452a(0x13a)](_0x11519e):undefined,'signal':_0xc42b4d['signal']});let _0x1be41f;try{_0x1be41f=await _0x35f7cb[_0x3d452a(0x181)]();}catch{throw CliErrors[_0x3d452a(0x182)](_0x3d452a(0x14a)+_0x35f7cb[_0x3d452a(0x112)]+')',_0x35f7cb[_0x3d452a(0x112)]>=0x190?_0x3d452a(0x118):undefined);}if(!_0x35f7cb['ok']||_0x1be41f[_0x3d452a(0x160)]===![])throw CliErrors['apiError'](_0x1be41f[_0x3d452a(0x10f)]||_0x1be41f[_0x3d452a(0x11b)]||_0x3d452a(0x137)+_0x35f7cb['status'],_0x1be41f[_0x3d452a(0x163)]?_0x3d452a(0x120)+_0x1be41f[_0x3d452a(0x163)]:undefined);return _0x1be41f;}catch(_0x242dcc){if(_0x242dcc instanceof Error&&_0x242dcc['name']===_0x3d452a(0x168))throw CliErrors[_0x3d452a(0x182)](_0x3d452a(0x129)+_0x127807);throw _0x242dcc;}finally{clearTimeout(_0x12cfad);}}function isAuthFailure(_0x4e08e6){const _0x55689c=a113_0x5352,_0x2484da=_0x4e08e6[_0x55689c(0x10f)]||_0x4e08e6[_0x55689c(0x11b)]||_0x4e08e6['data']?.['message']||_0x4e08e6[_0x55689c(0x11e)]||_0x4e08e6[_0x55689c(0x185)]||'';return _0x4e08e6[_0x55689c(0x163)]===_0x55689c(0x116)||_0x4e08e6[_0x55689c(0x16f)]===0x191||_0x4e08e6[_0x55689c(0x16f)]===_0x55689c(0x115)||_0x2484da[_0x55689c(0x122)]('401')||_0x2484da[_0x55689c(0x122)](_0x55689c(0x133))||_0x2484da[_0x55689c(0x122)]('登录')||_0x2484da[_0x55689c(0x122)]('认证');}export async function platformFetch(_0x44baa2,_0xe3b662){const _0x2dd785=a113_0x5352,_0x5a33f8=await fetch(_0x44baa2,{'method':_0xe3b662[_0x2dd785(0x10b)]??'GET','headers':{'Content-Type':_0x2dd785(0x17a),'Cookie':_0xe3b662[_0x2dd785(0x136)]},..._0xe3b662[_0x2dd785(0x13d)]&&{'body':JSON[_0x2dd785(0x13a)](_0xe3b662[_0x2dd785(0x13d)])}});if(!_0x5a33f8['ok']){if(_0x5a33f8['status']===0x191)throw CliErrors[_0x2dd785(0x130)]();throw CliErrors[_0x2dd785(0x182)](_0xe3b662[_0x2dd785(0x162)]+_0x2dd785(0x10a)+_0x5a33f8[_0x2dd785(0x112)]);}const _0x128963=await _0x5a33f8[_0x2dd785(0x181)]();if(_0x128963[_0x2dd785(0x160)]===![]){if(isAuthFailure(_0x128963))throw CliErrors[_0x2dd785(0x130)]();throw CliErrors['apiError'](_0x128963[_0x2dd785(0x10f)]||_0x128963[_0x2dd785(0x11b)]||_0xe3b662[_0x2dd785(0x162)]+'\x20failed');}return _0x128963[_0x2dd785(0x126)];}export async function listBffScripts(_0x22ceaf,_0x43259f,_0x2a764c){const _0x227f01=a113_0x5352;let _0x49c28='/api/management/library/scripts/list?appCode='+_0x22ceaf;if(_0x43259f)_0x49c28+=_0x227f01(0x155)+_0x43259f;const _0x171eb6=await apiRequest(_0x49c28);let _0x294011=extractList(_0x171eb6['data']);if(_0x2a764c?.[_0x227f01(0x144)]){const _0x1bdb28=_0x2a764c[_0x227f01(0x144)][_0x227f01(0x15e)]();_0x294011=_0x294011[_0x227f01(0x124)](_0x2e5c1e=>_0x2e5c1e[_0x227f01(0x15c)]?.[_0x227f01(0x15e)]()[_0x227f01(0x122)](_0x1bdb28)||_0x2e5c1e[_0x227f01(0x11c)]?.[_0x227f01(0x15e)]()[_0x227f01(0x122)](_0x1bdb28));}return _0x294011;}export async function getBffScriptInfo(_0x3424db){const _0x43b0af=a113_0x5352,_0x595f7f=await apiRequest(_0x43b0af(0x114)+_0x3424db);if(!_0x595f7f[_0x43b0af(0x126)])throw CliErrors[_0x43b0af(0x16b)](_0x43b0af(0x17e)+_0x3424db);return _0x595f7f[_0x43b0af(0x126)];}export async function saveBffScript(_0xebc112){const _0x52ae96=a113_0x5352,_0x43af5c=await apiRequest(_0x52ae96(0x184),{'method':'POST','body':_0xebc112});return _0x43af5c[_0x52ae96(0x126)];}export async function deleteBffScript(_0xee5199){const _0x26bbe1=a113_0x5352;await apiRequest('/api/management/library/scripts/delete',{'method':_0x26bbe1(0x16e),'body':{'id':_0xee5199}});}export async function getBffScriptStatistics(_0x2136a3){const _0x164c0f=a113_0x5352,_0x55a131=await apiRequest('/api/management/library/scripts/statistics?appCode='+_0x2136a3);return extractList(_0x55a131[_0x164c0f(0x126)]);}export async function listBffDatasetOperations(_0xcff263,_0xea7889){const _0x563422=a113_0x5352,_0x4fa711=await apiRequest(_0x563422(0x125),{'method':_0x563422(0x16e),'body':{'appCode':_0xcff263,'datasetId':_0xea7889}});return _0x4fa711['data'];}export async function listSqlQueries(_0x28dd69,_0x5b20e4){const _0x486429=a113_0x5352,_0x482328=await apiRequest(_0x486429(0x119),{'method':_0x486429(0x16e),'body':{'appCode':_0x28dd69,'currentPage':_0x5b20e4?.[_0x486429(0x154)]??0x1,'pageSize':_0x5b20e4?.[_0x486429(0x140)]??0x32,'sqlCode':_0x5b20e4?.[_0x486429(0x159)],'sqlName':_0x5b20e4?.[_0x486429(0x14d)]}});return _0x482328['data'];}export async function getSqlQueryInfo(_0x13d661,_0x52bcf4){const _0x4b9eec=a113_0x5352,_0x286535=await listSqlQueries(_0x13d661,{'sqlCode':_0x52bcf4}),_0x5c825=_0x286535[_0x4b9eec(0x12c)]?.[0x0];if(!_0x5c825)throw CliErrors['validation'](_0x4b9eec(0x170)+_0x52bcf4);return _0x5c825;}export async function saveSqlQuery(_0x4063ac){const _0x2037db=a113_0x5352,_0x5aeecf=await apiRequest(_0x2037db(0x150),{'method':_0x2037db(0x16e),'body':_0x4063ac});return _0x5aeecf[_0x2037db(0x126)];}export async function executeSql(_0x20a92b,_0x287c02,_0x3c874d){const _0x254abc=a113_0x5352,_0x52566a=await apiRequest('/api/custom/executeSql',{'method':_0x254abc(0x16e),'body':{'appCode':_0x20a92b,'sqlCode':_0x287c02,..._0x3c874d&&{'params':_0x3c874d}},'useRuntime':!![]});return _0x52566a['data'];}export async function listDatasets(_0x58c0b8,_0xdeb2d5){const _0x5ef26b=a113_0x5352,_0x2f3f81={'appCode':_0x58c0b8,'deleted':![]};if(_0xdeb2d5?.['code'])_0x2f3f81[_0x5ef26b(0x16f)]=_0xdeb2d5[_0x5ef26b(0x16f)];if(_0xdeb2d5?.['name'])_0x2f3f81[_0x5ef26b(0x149)]=_0xdeb2d5[_0x5ef26b(0x149)];const _0x1692e5=await apiRequest(_0x5ef26b(0x152),{'method':_0x5ef26b(0x16e),'body':_0x2f3f81});return extractList(_0x1692e5[_0x5ef26b(0x126)]);}export async function searchDatasets(_0x2af31b,_0x2a1754){const _0x3cd2e3=a113_0x5352,_0x16a629=await listDatasets(_0x2af31b,{'name':_0x2a1754}),_0x257392=_0x2a1754[_0x3cd2e3(0x15e)](),_0x194b08=new Set(_0x16a629[_0x3cd2e3(0x146)](_0x39699a=>_0x39699a['id'])),_0x3b6037=_0x16a629[_0x3cd2e3(0x124)](_0xc607a8=>_0xc607a8['dbtableConfig']?.[_0x3cd2e3(0x111)]?.['toLowerCase']()['includes'](_0x257392)||_0xc607a8[_0x3cd2e3(0x11c)]?.[_0x3cd2e3(0x15e)]()[_0x3cd2e3(0x122)](_0x257392)),_0x107b96=await listDatasets(_0x2af31b,{'code':_0x2a1754});for(const _0x2fdb42 of _0x107b96){!_0x194b08['has'](_0x2fdb42['id'])&&(_0x16a629['push'](_0x2fdb42),_0x194b08[_0x3cd2e3(0x188)](_0x2fdb42['id']));}return _0x16a629;}export function normalizeDatasetOperations(_0x48a814){const _0x2c33b8=a113_0x5352;if(Array[_0x2c33b8(0x109)](_0x48a814))return _0x48a814[_0x2c33b8(0x124)](_0x221ab3=>_0x221ab3!=null&&typeof _0x221ab3===_0x2c33b8(0x14f));if(_0x48a814&&typeof _0x48a814===_0x2c33b8(0x14f))return Object[_0x2c33b8(0x13b)](_0x48a814)[_0x2c33b8(0x124)](([,_0x442c12])=>_0x442c12!=null&&typeof _0x442c12===_0x2c33b8(0x14f))['map'](([_0x55c958,_0x345d90])=>({..._0x345d90,'name':_0x345d90[_0x2c33b8(0x149)]??_0x345d90[_0x2c33b8(0x187)]??_0x55c958}));return[];}export async function getDatasetDetail(_0x2edf4c){const _0x2da92b=a113_0x5352,_0x2b6dcb=/^\d+$/[_0x2da92b(0x17b)](_0x2edf4c)?'id':_0x2da92b(0x16f),_0x262789=await apiRequest(_0x2da92b(0x12a)+_0x2b6dcb+'='+_0x2edf4c);return _0x262789[_0x2da92b(0x126)];}export async function getDatasetOperations(_0x36cf8f){const _0x23ba37=a113_0x5352,_0x2b266f=await getDatasetDetail(_0x36cf8f),_0x30a4fe=normalizeDatasetOperations(_0x2b266f['operations'])[_0x23ba37(0x146)](_0x45959c=>({'name':_0x45959c[_0x23ba37(0x149)]||_0x45959c[_0x23ba37(0x187)],'displayName':_0x45959c[_0x23ba37(0x153)]||_0x45959c[_0x23ba37(0x149)],'type':_0x45959c[_0x23ba37(0x166)],'method':_0x45959c[_0x23ba37(0x10b)],'path':_0x45959c[_0x23ba37(0x177)],'enabled':_0x45959c[_0x23ba37(0x12e)]??!![],'requestFields':_0x45959c[_0x23ba37(0x15a)],'responseFields':_0x45959c['responseFields']}));return{'dataset':{'id':_0x2b266f['id']??_0x2b266f[_0x23ba37(0x15b)],'name':_0x2b266f[_0x23ba37(0x149)],'code':_0x2b266f[_0x23ba37(0x16f)]||_0x2b266f[_0x23ba37(0x10c)],'tableName':_0x2b266f[_0x23ba37(0x111)]||_0x2b266f[_0x23ba37(0x139)]?.[_0x23ba37(0x111)]},'operations':_0x30a4fe};}export async function getOperationDetail(_0x30f7a4,_0x46d6ac,_0x1dc1fe){const _0x2a6e29=a113_0x5352;let _0x5a8271=_0x46d6ac;if(!/^\d+$/[_0x2a6e29(0x17b)](_0x46d6ac)){const _0x3b1416=await listDatasets(_0x30f7a4,{'code':_0x46d6ac}),_0x4a0ca2=_0x3b1416[_0x2a6e29(0x164)](_0x2c2925=>_0x2c2925['code']===_0x46d6ac||String(_0x2c2925['id'])===_0x46d6ac);if(!_0x4a0ca2)throw CliErrors['validation'](_0x2a6e29(0x180)+_0x46d6ac);_0x5a8271=String(_0x4a0ca2['id']);}const _0x475416=await getDatasetDetail(_0x5a8271),_0x1d19af=normalizeDatasetOperations(_0x475416[_0x2a6e29(0x141)])[_0x2a6e29(0x164)](_0x21e060=>(_0x21e060[_0x2a6e29(0x149)]||_0x21e060[_0x2a6e29(0x187)])===_0x1dc1fe);if(!_0x1d19af)throw CliErrors[_0x2a6e29(0x16b)](_0x2a6e29(0x14e)+_0x1dc1fe+'\x22\x20not\x20found\x20in\x20dataset\x20'+_0x46d6ac);return{'dataset':{'id':_0x475416['id']??_0x475416[_0x2a6e29(0x15b)],'name':_0x475416[_0x2a6e29(0x149)],'code':_0x475416[_0x2a6e29(0x16f)]||_0x475416[_0x2a6e29(0x10c)],'tableName':_0x475416['tableName']||_0x475416[_0x2a6e29(0x139)]?.['tableName']},'operation':_0x1d19af};}export function generateSdkCode(_0x773dbd,_0x567c69,_0x307f89){const _0x47c19e=a113_0x5352,_0x15d4fd=_0x307f89?.[_0x47c19e(0x176)]??!![],_0x47ac76=_0x47c19e(0x156)+_0x773dbd[_0x47c19e(0x16f)]?.['replace'](/-/g,'_'),_0x1c0f4e=_0x567c69[_0x47c19e(0x149)]||_0x567c69[_0x47c19e(0x187)]||_0x47c19e(0x124),_0x1ff9cb=[];_0x15d4fd&&_0x1ff9cb[_0x47c19e(0x11a)](_0x47c19e(0x145),'',_0x47c19e(0x171),'');_0x1ff9cb[_0x47c19e(0x11a)](_0x47c19e(0x13f)+_0x773dbd[_0x47c19e(0x149)]+'\x20('+(_0x773dbd[_0x47c19e(0x111)]||_0x47c19e(0x12f))+')');if(_0x1c0f4e===_0x47c19e(0x124))_0x1ff9cb['push'](_0x47c19e(0x15f)+_0x47ac76+_0x47c19e(0x16c),_0x47c19e(0x113),'\x20\x20pageSize:\x2020,',_0x47c19e(0x12d),_0x47c19e(0x16d));else{if(_0x1c0f4e===_0x47c19e(0x134))_0x1ff9cb[_0x47c19e(0x11a)]('const\x20result\x20=\x20await\x20client.models.'+_0x47ac76+'.getOne(id);');else{if(_0x1c0f4e===_0x47c19e(0x16a))_0x1ff9cb[_0x47c19e(0x11a)](_0x47c19e(0x15f)+_0x47ac76+'.create({\x20/*\x20fields\x20*/\x20});');else{if(_0x1c0f4e===_0x47c19e(0x123))_0x1ff9cb[_0x47c19e(0x11a)](_0x47c19e(0x15f)+_0x47ac76+_0x47c19e(0x174));else _0x1c0f4e===_0x47c19e(0x172)||_0x1c0f4e===_0x47c19e(0x148)?_0x1ff9cb[_0x47c19e(0x11a)](_0x47c19e(0x15f)+_0x47ac76+_0x47c19e(0x158)):_0x1ff9cb[_0x47c19e(0x11a)](_0x47c19e(0x15f)+_0x47ac76+'.'+_0x1c0f4e+_0x47c19e(0x17f));}}}return _0x1ff9cb[_0x47c19e(0x147)]('\x0a');}export function generateSqlCodeTemplate(_0x5edb31,_0x2373ad){const _0x1435da=a113_0x5352,_0x2f51da=_0x2373ad?.[_0x1435da(0x131)]??'sdk',_0x2ed002=_0x2373ad?.[_0x1435da(0x176)]??!![],_0x7119ea=[];return _0x7119ea[_0x1435da(0x11a)](_0x1435da(0x117)+_0x5edb31[_0x1435da(0x14d)]+'\x20('+_0x5edb31['sqlCode']+')'),_0x2f51da===_0x1435da(0x105)?(_0x2ed002&&_0x7119ea['push'](_0x1435da(0x145),'',_0x1435da(0x171),''),_0x7119ea[_0x1435da(0x11a)](_0x1435da(0x17c),_0x1435da(0x178)+_0x5edb31[_0x1435da(0x159)]+'\x27,','\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},','});','if\x20(!data.execSuccess)\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);',_0x1435da(0x11f))):_0x7119ea['push'](_0x1435da(0x106),_0x1435da(0x108),'\x20\x20const\x20rows\x20=\x20await\x20context.client.sql.execute({','\x20\x20\x20\x20sqlCode:\x20\x27'+_0x5edb31[_0x1435da(0x159)]+'\x27,',_0x1435da(0x132),'\x20\x20});',_0x1435da(0x161),'}'),_0x7119ea[_0x1435da(0x147)]('\x0a');}export async function getErConfig(_0x5caffc,_0x58e82e){const _0x247d58=a113_0x5352,_0x381730=await apiRequest(_0x247d58(0x15d),{'method':'POST','body':{'appCode':_0x5caffc,'dblinkId':_0x58e82e}});return _0x381730[_0x247d58(0x126)];}function buildQuery(_0x4bb5b1){const _0x8d6ec=a113_0x5352,_0xaccf7d=new URLSearchParams();for(const [_0x10eb9c,_0x1b3daa]of Object[_0x8d6ec(0x13b)](_0x4bb5b1)){if(_0x1b3daa===undefined||_0x1b3daa==='')continue;_0xaccf7d[_0x8d6ec(0x142)](_0x10eb9c,String(_0x1b3daa));}const _0x490d5d=_0xaccf7d['toString']();return _0x490d5d?'?'+_0x490d5d:'';}export async function listDbLinks(_0x5e8926,_0x2d12c4){const _0x43273b=a113_0x5352,_0x308c33=await apiRequest(_0x43273b(0x10e),{'method':_0x43273b(0x16e),'body':{'appCode':_0x5e8926,'currentPage':_0x2d12c4?.[_0x43273b(0x154)]??0x1,'pageSize':_0x2d12c4?.[_0x43273b(0x140)]??0x64}});return{'items':extractList(_0x308c33[_0x43273b(0x126)]),'paging':extractPaging(_0x308c33['data'])};}export async function getDbLinkInfo(_0x30d743){const _0x532c51=a113_0x5352,_0x46c5cf=await apiRequest(_0x532c51(0x135)+buildQuery({'id':_0x30d743}));return _0x46c5cf['data'];}function a113_0x5352(_0x16c16f,_0xab1462){_0x16c16f=_0x16c16f-0x105;const _0x305fbc=a113_0x305f();let _0x535233=_0x305fbc[_0x16c16f];return _0x535233;}export async function createDbLink(_0x4824ba){const _0x262cce=a113_0x5352,_0x3c50f9=await apiRequest('/smartapi/dblink/create',{'method':_0x262cce(0x16e),'body':_0x4824ba});return _0x3c50f9[_0x262cce(0x126)];}export async function updateDbLink(_0xb6982b){const _0x23b6ed=a113_0x5352,_0x3b1728=await apiRequest(_0x23b6ed(0x183),{'method':'POST','body':_0xb6982b});return _0x3b1728['data'];}export async function deleteDbLink(_0x42597a){const _0x2a0301=a113_0x5352;await apiRequest(_0x2a0301(0x151),{'method':'POST','body':{'id':_0x42597a}});}export async function testDbLinkConnect(_0xab7bb1){const _0x2b8803=a113_0x5352,_0x428964=await apiRequest('/smartapi/dblink/testConnect'+buildQuery({'id':_0xab7bb1}));return _0x428964[_0x2b8803(0x126)];}export async function startDbAnalysis(_0x5b07d1,_0x2d16c8){const _0x4e9856=a113_0x5352,_0x560dd4=await apiRequest('/smartapi/db-analysis/start',{'method':_0x4e9856(0x16e),'body':{'dbLinkId':_0x5b07d1,..._0x2d16c8&&_0x2d16c8[_0x4e9856(0x167)]>0x0?{'tableNames':_0x2d16c8}:{}}}),_0x5ad9f0=_0x560dd4[_0x4e9856(0x126)];if(typeof _0x5ad9f0===_0x4e9856(0x14c))return _0x5ad9f0;if(_0x5ad9f0&&typeof _0x5ad9f0==='object'&&typeof _0x5ad9f0['planId']===_0x4e9856(0x14c))return _0x5ad9f0[_0x4e9856(0x175)];return _0x5ad9f0!=null?String(_0x5ad9f0):'';}export async function cancelDbAnalysis(_0x2f00f6){await apiRequest('/smartapi/db-analysis/jobs/cancel'+buildQuery({'planId':_0x2f00f6}),{'method':'POST'});}export async function getDbAnalysisStatus(_0x57a3cb){const _0x23d448=a113_0x5352,_0x3fc65f=await apiRequest(_0x23d448(0x127)+encodeURIComponent(_0x57a3cb));return _0x3fc65f[_0x23d448(0x126)];}export async function getDbAllTableList(_0x25a916,_0x23bf72){const _0x42a34b=a113_0x5352,_0x5b8531=await apiRequest('/smartapi/dblink/getAllTableList'+buildQuery({'appCode':_0x25a916,'dbLinkId':_0x23bf72})),_0x5ea5d2=_0x5b8531[_0x42a34b(0x126)];if(Array['isArray'](_0x5ea5d2))return _0x5ea5d2;return extractList(_0x5ea5d2);}export async function getDbTableDiff(_0x17ea22,_0xd49e18,_0x3c692b){const _0x182fe3=a113_0x5352,_0x44b6b6=await apiRequest(_0x182fe3(0x13c)+buildQuery({'appCode':_0x17ea22,'dbLinkId':_0xd49e18,'pageIndex':_0x3c692b?.['pageIndex']??0x1,'pageSize':_0x3c692b?.['pageSize']??0x14,'tableName':_0x3c692b?.[_0x182fe3(0x111)]})),_0x12c323=_0x44b6b6[_0x182fe3(0x126)];return{'totalCount':_0x12c323?.[_0x182fe3(0x128)]??0x0,'tableList':Array[_0x182fe3(0x109)](_0x12c323?.[_0x182fe3(0x11d)])?_0x12c323['tableList']:[]};}const REMOTE_APP_PAGE_SIZE=0xc8;export async function listRemoteApps(){const _0xc54bd8=a113_0x5352,_0x526655=await apiRequest(_0xc54bd8(0x186),{'method':'POST','body':{'currentPage':0x1,'pageSize':REMOTE_APP_PAGE_SIZE}}),_0x14cbfb=extractList(_0x526655['data']),_0x14d98f=extractPaging(_0x526655['data']);return _0x14d98f&&_0x14d98f[_0xc54bd8(0x128)]>REMOTE_APP_PAGE_SIZE&&console['warn'](_0xc54bd8(0x157)+REMOTE_APP_PAGE_SIZE+'\x20of\x20'+_0x14d98f[_0xc54bd8(0x128)]+_0xc54bd8(0x173)+_0xc54bd8(0x179)),_0x14cbfb;}
1
+ (function(_0x888d99,_0x2a418c){const _0x2b147a=a113_0x2f6f,_0x299e5c=_0x888d99();while(!![]){try{const _0x46d7e8=parseInt(_0x2b147a(0x209))/0x1*(-parseInt(_0x2b147a(0x1e8))/0x2)+-parseInt(_0x2b147a(0x207))/0x3*(parseInt(_0x2b147a(0x1da))/0x4)+-parseInt(_0x2b147a(0x245))/0x5*(parseInt(_0x2b147a(0x250))/0x6)+-parseInt(_0x2b147a(0x1f2))/0x7*(parseInt(_0x2b147a(0x238))/0x8)+parseInt(_0x2b147a(0x240))/0x9+parseInt(_0x2b147a(0x1f4))/0xa*(-parseInt(_0x2b147a(0x1f7))/0xb)+parseInt(_0x2b147a(0x241))/0xc;if(_0x46d7e8===_0x2a418c)break;else _0x299e5c['push'](_0x299e5c['shift']());}catch(_0x202974){_0x299e5c['push'](_0x299e5c['shift']());}}}(a113_0x47c3,0x49f4c));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList,extractPaging}from'../framework/response.js';function a113_0x2f6f(_0xa3791b,_0x5070cb){_0xa3791b=_0xa3791b-0x1cf;const _0x47c39d=a113_0x47c3();let _0x2f6fc6=_0x47c39d[_0xa3791b];return _0x2f6fc6;}let _activeCookie;export function setActiveCookie(_0x5606f9){_activeCookie=_0x5606f9||undefined;}export function clearActiveCookie(){_activeCookie=undefined;}async function apiRequest(_0x4d00f5,_0x25e042={}){const _0x2d56f6=a113_0x2f6f,{method:method=_0x2d56f6(0x1d8),body:_0x2a7a49,headers:headers={},timeout:timeout=0x7530,useRuntime:useRuntime=![]}=_0x25e042,_0x41a65c=useRuntime?getRuntimeDomain():getApiDomain(),_0x4eb842=_activeCookie||getCookie(),_0x4c2cbb=''+_0x41a65c+_0x4d00f5,_0x2f9c73=new AbortController(),_0x5eb677=setTimeout(()=>_0x2f9c73[_0x2d56f6(0x23b)](),timeout);try{const _0x2bb5f0=await fetch(_0x4c2cbb,{'method':method,'headers':{'Content-Type':_0x2d56f6(0x1f3),'Cookie':_0x4eb842,'X-Invoke-Source':_0x2d56f6(0x20f),...headers},'body':_0x2a7a49?JSON[_0x2d56f6(0x20b)](_0x2a7a49):undefined,'signal':_0x2f9c73[_0x2d56f6(0x21b)]});let _0x2bf729;try{_0x2bf729=await _0x2bb5f0['json']();}catch{throw CliErrors[_0x2d56f6(0x1ec)](_0x2d56f6(0x20c)+_0x2bb5f0[_0x2d56f6(0x211)]+')',_0x2bb5f0['status']>=0x190?'Check\x20your\x20auth\x20cookie\x20and\x20try\x20again.':undefined);}if(!_0x2bb5f0['ok']||_0x2bf729[_0x2d56f6(0x208)]===![])throw CliErrors[_0x2d56f6(0x1ec)](_0x2bf729[_0x2d56f6(0x220)]||_0x2bf729[_0x2d56f6(0x1f9)]||_0x2d56f6(0x224)+_0x2bb5f0['status'],_0x2bf729[_0x2d56f6(0x210)]?_0x2d56f6(0x242)+_0x2bf729[_0x2d56f6(0x210)]:undefined);return _0x2bf729;}catch(_0x433303){if(_0x433303 instanceof Error&&_0x433303[_0x2d56f6(0x1e4)]===_0x2d56f6(0x1e3))throw CliErrors[_0x2d56f6(0x1ec)](_0x2d56f6(0x24b)+_0x4c2cbb);throw _0x433303;}finally{clearTimeout(_0x5eb677);}}function isAuthFailure(_0x5c7ace){const _0x3d7067=a113_0x2f6f,_0x1d0de2=_0x5c7ace[_0x3d7067(0x220)]||_0x5c7ace[_0x3d7067(0x1f9)]||_0x5c7ace[_0x3d7067(0x24c)]?.['message']||_0x5c7ace[_0x3d7067(0x236)]||_0x5c7ace[_0x3d7067(0x1cf)]||'';return _0x5c7ace['errorCode']==='UNAUTHORIZED'||_0x5c7ace[_0x3d7067(0x1e6)]===0x191||_0x5c7ace[_0x3d7067(0x1e6)]==='401'||_0x1d0de2[_0x3d7067(0x24f)]('401')||_0x1d0de2[_0x3d7067(0x24f)](_0x3d7067(0x226))||_0x1d0de2[_0x3d7067(0x24f)]('登录')||_0x1d0de2[_0x3d7067(0x24f)]('认证');}export async function platformFetch(_0x2759c0,_0x14a3ff){const _0x422034=a113_0x2f6f,_0x33d469=await fetch(_0x2759c0,{'method':_0x14a3ff[_0x422034(0x230)]??_0x422034(0x1d8),'headers':{'Content-Type':_0x422034(0x1f3),'Cookie':_0x14a3ff['cookie']},..._0x14a3ff[_0x422034(0x1dd)]&&{'body':JSON[_0x422034(0x20b)](_0x14a3ff['body'])}});if(!_0x33d469['ok']){if(_0x33d469[_0x422034(0x211)]===0x191)throw CliErrors[_0x422034(0x234)]();throw CliErrors[_0x422034(0x1ec)](_0x14a3ff['label']+_0x422034(0x1e2)+_0x33d469[_0x422034(0x211)]);}const _0x15ec2f=await _0x33d469[_0x422034(0x206)]();if(_0x15ec2f['success']===![]){if(isAuthFailure(_0x15ec2f))throw CliErrors[_0x422034(0x234)]();throw CliErrors['apiError'](_0x15ec2f['errorMsg']||_0x15ec2f['message']||_0x14a3ff[_0x422034(0x216)]+_0x422034(0x254));}return _0x15ec2f['data'];}export async function listBffScripts(_0x3bb69f,_0x12c5f0,_0x1f8edb){const _0x53de52=a113_0x2f6f;let _0x47b8e4='/api/management/library/scripts/list?appCode='+_0x3bb69f;if(_0x12c5f0)_0x47b8e4+='&type='+_0x12c5f0;const _0xc8822=await apiRequest(_0x47b8e4);let _0x5262f2=extractList(_0xc8822[_0x53de52(0x24c)]);if(_0x1f8edb?.[_0x53de52(0x1d6)]){const _0x649ad9=_0x1f8edb[_0x53de52(0x1d6)][_0x53de52(0x1d9)]();_0x5262f2=_0x5262f2[_0x53de52(0x204)](_0x217ca7=>_0x217ca7[_0x53de52(0x1f8)]?.['toLowerCase']()[_0x53de52(0x24f)](_0x649ad9)||_0x217ca7[_0x53de52(0x225)]?.[_0x53de52(0x1d9)]()['includes'](_0x649ad9));}return _0x5262f2;}export async function getBffScriptInfo(_0x13019c){const _0x4de286=a113_0x2f6f,_0x219a83=await apiRequest(_0x4de286(0x219)+_0x13019c);if(!_0x219a83[_0x4de286(0x24c)])throw CliErrors[_0x4de286(0x256)](_0x4de286(0x1e5)+_0x13019c);return _0x219a83[_0x4de286(0x24c)];}export async function saveBffScript(_0xc1f61b){const _0x46ef84=a113_0x2f6f,_0x574340=await apiRequest('/api/management/library/scripts/save',{'method':_0x46ef84(0x227),'body':_0xc1f61b});return _0x574340[_0x46ef84(0x24c)];}export async function deleteBffScript(_0x4d44a3){const _0x1eada9=a113_0x2f6f;await apiRequest(_0x1eada9(0x201),{'method':_0x1eada9(0x227),'body':{'id':_0x4d44a3}});}export async function getBffScriptStatistics(_0x550583){const _0x40aaa0=a113_0x2f6f,_0x209d62=await apiRequest(_0x40aaa0(0x228)+_0x550583);return extractList(_0x209d62[_0x40aaa0(0x24c)]);}export async function listBffDatasetOperations(_0x4e52a0,_0x5daa7f){const _0x464996=a113_0x2f6f,_0x427481=await apiRequest(_0x464996(0x1d3),{'method':_0x464996(0x227),'body':{'appCode':_0x4e52a0,'datasetId':_0x5daa7f}});return _0x427481[_0x464996(0x24c)];}export async function listSqlQueries(_0x4e7bbd,_0x4c5b78){const _0x13b417=a113_0x2f6f,_0x310cc7=await apiRequest(_0x13b417(0x243),{'method':_0x13b417(0x227),'body':{'appCode':_0x4e7bbd,'currentPage':_0x4c5b78?.[_0x13b417(0x231)]??0x1,'pageSize':_0x4c5b78?.[_0x13b417(0x223)]??0x32,'sqlCode':_0x4c5b78?.[_0x13b417(0x23d)],'sqlName':_0x4c5b78?.[_0x13b417(0x1de)]}});return _0x310cc7[_0x13b417(0x24c)];}export async function getSqlQueryInfo(_0x3b9ac4,_0x50dbb9){const _0x2ad0e9=a113_0x2f6f,_0x8d937c=await listSqlQueries(_0x3b9ac4,{'sqlCode':_0x50dbb9}),_0x165fbf=_0x8d937c['tableData']?.[0x0];if(!_0x165fbf)throw CliErrors[_0x2ad0e9(0x256)](_0x2ad0e9(0x1ee)+_0x50dbb9);return _0x165fbf;}export async function saveSqlQuery(_0x5722b5){const _0x4941d9=a113_0x2f6f,_0x5b2d1d=await apiRequest('/api/node-toolbox/sql/save',{'method':_0x4941d9(0x227),'body':_0x5722b5});return _0x5b2d1d[_0x4941d9(0x24c)];}export async function executeSql(_0x17fe05,_0x5033a8,_0x57df89){const _0x32bee4=a113_0x2f6f,_0x54e736=await apiRequest(_0x32bee4(0x1f0),{'method':_0x32bee4(0x227),'body':{'appCode':_0x17fe05,'sqlCode':_0x5033a8,..._0x57df89&&{'params':_0x57df89}},'useRuntime':!![]});return _0x54e736[_0x32bee4(0x24c)];}export async function listDatasets(_0x41529a,_0x138b3b){const _0x51b2c1=a113_0x2f6f,_0x3bb0aa={'appCode':_0x41529a,'deleted':![]};if(_0x138b3b?.[_0x51b2c1(0x1e6)])_0x3bb0aa[_0x51b2c1(0x1e6)]=_0x138b3b['code'];if(_0x138b3b?.[_0x51b2c1(0x1e4)])_0x3bb0aa[_0x51b2c1(0x1e4)]=_0x138b3b[_0x51b2c1(0x1e4)];const _0x2f75c7=await apiRequest(_0x51b2c1(0x252),{'method':'POST','body':_0x3bb0aa});return extractList(_0x2f75c7[_0x51b2c1(0x24c)]);}export async function searchDatasets(_0x40577a,_0x185045){const _0xfe339e=a113_0x2f6f,_0x2f758c=await listDatasets(_0x40577a,{'name':_0x185045}),_0x18508c=_0x185045[_0xfe339e(0x1d9)](),_0x5cd059=new Set(_0x2f758c['map'](_0x5bb437=>_0x5bb437['id'])),_0x4d8673=_0x2f758c[_0xfe339e(0x204)](_0x7ce268=>_0x7ce268[_0xfe339e(0x1d5)]?.[_0xfe339e(0x24e)]?.[_0xfe339e(0x1d9)]()[_0xfe339e(0x24f)](_0x18508c)||_0x7ce268[_0xfe339e(0x225)]?.[_0xfe339e(0x1d9)]()[_0xfe339e(0x24f)](_0x18508c)),_0x7ea583=await listDatasets(_0x40577a,{'code':_0x185045});for(const _0x4549bf of _0x7ea583){!_0x5cd059[_0xfe339e(0x248)](_0x4549bf['id'])&&(_0x2f758c[_0xfe339e(0x214)](_0x4549bf),_0x5cd059[_0xfe339e(0x20d)](_0x4549bf['id']));}return _0x2f758c;}export function normalizeDatasetOperations(_0x1b0404){const _0x2cc5d3=a113_0x2f6f;if(Array[_0x2cc5d3(0x202)](_0x1b0404))return _0x1b0404['filter'](_0x378762=>_0x378762!=null&&typeof _0x378762===_0x2cc5d3(0x1f1));if(_0x1b0404&&typeof _0x1b0404===_0x2cc5d3(0x1f1))return Object[_0x2cc5d3(0x229)](_0x1b0404)[_0x2cc5d3(0x204)](([,_0x228d3b])=>_0x228d3b!=null&&typeof _0x228d3b===_0x2cc5d3(0x1f1))[_0x2cc5d3(0x218)](([_0x299f3c,_0x1d933e])=>({..._0x1d933e,'name':_0x1d933e['name']??_0x1d933e[_0x2cc5d3(0x1fb)]??_0x299f3c}));return[];}export async function getDatasetDetail(_0x347a9c){const _0x3946c9=a113_0x2f6f,_0x334193=/^\d+$/[_0x3946c9(0x1d1)](_0x347a9c)?'id':'code',_0x1c7862=await apiRequest('/smartapi/dataset/get-driven-data?'+_0x334193+'='+_0x347a9c);return _0x1c7862[_0x3946c9(0x24c)];}export async function getDatasetOperations(_0xabb289){const _0x1b6607=a113_0x2f6f,_0x42be90=await getDatasetDetail(_0xabb289),_0x154bde=normalizeDatasetOperations(_0x42be90[_0x1b6607(0x21e)])['map'](_0xcdd8e0=>({'name':_0xcdd8e0[_0x1b6607(0x1e4)]||_0xcdd8e0[_0x1b6607(0x1fb)],'displayName':_0xcdd8e0[_0x1b6607(0x1dc)]||_0xcdd8e0[_0x1b6607(0x1e4)],'type':_0xcdd8e0[_0x1b6607(0x1e7)],'method':_0xcdd8e0[_0x1b6607(0x230)],'path':_0xcdd8e0['path'],'enabled':_0xcdd8e0[_0x1b6607(0x1f6)]??!![],'requestFields':_0xcdd8e0[_0x1b6607(0x20a)],'responseFields':_0xcdd8e0[_0x1b6607(0x232)]}));return{'dataset':{'id':_0x42be90['id']??_0x42be90[_0x1b6607(0x22e)],'name':_0x42be90[_0x1b6607(0x1e4)],'code':_0x42be90[_0x1b6607(0x1e6)]||_0x42be90[_0x1b6607(0x1db)],'tableName':_0x42be90[_0x1b6607(0x24e)]||_0x42be90[_0x1b6607(0x1d5)]?.[_0x1b6607(0x24e)]},'operations':_0x154bde};}export async function getOperationDetail(_0x3ccdf2,_0x34b2fa,_0x3f3c9a){const _0x2d3c91=a113_0x2f6f;let _0x3a4ed1=_0x34b2fa;if(!/^\d+$/[_0x2d3c91(0x1d1)](_0x34b2fa)){const _0x248e49=await listDatasets(_0x3ccdf2,{'code':_0x34b2fa}),_0x5352a2=_0x248e49['find'](_0xb8d761=>_0xb8d761[_0x2d3c91(0x1e6)]===_0x34b2fa||String(_0xb8d761['id'])===_0x34b2fa);if(!_0x5352a2)throw CliErrors[_0x2d3c91(0x256)](_0x2d3c91(0x23a)+_0x34b2fa);_0x3a4ed1=String(_0x5352a2['id']);}const _0x5b6646=await getDatasetDetail(_0x3a4ed1),_0x34d615=normalizeDatasetOperations(_0x5b6646['operations'])['find'](_0x2b44fd=>(_0x2b44fd['name']||_0x2b44fd[_0x2d3c91(0x1fb)])===_0x3f3c9a);if(!_0x34d615)throw CliErrors[_0x2d3c91(0x256)](_0x2d3c91(0x22a)+_0x3f3c9a+_0x2d3c91(0x249)+_0x34b2fa);return{'dataset':{'id':_0x5b6646['id']??_0x5b6646[_0x2d3c91(0x22e)],'name':_0x5b6646['name'],'code':_0x5b6646[_0x2d3c91(0x1e6)]||_0x5b6646[_0x2d3c91(0x1db)],'tableName':_0x5b6646['tableName']||_0x5b6646['dbtableConfig']?.[_0x2d3c91(0x24e)]},'operation':_0x34d615};}export function generateSdkCode(_0x5879e9,_0x5ab019,_0x39c0e7){const _0x442c22=a113_0x2f6f,_0x3262fa=_0x39c0e7?.[_0x442c22(0x21d)]??!![],_0x17f2ba=_0x442c22(0x253)+_0x5879e9[_0x442c22(0x1e6)]?.[_0x442c22(0x1d0)](/-/g,'_'),_0x35c78a=_0x5ab019[_0x442c22(0x1e4)]||_0x5ab019[_0x442c22(0x1fb)]||'filter',_0x103c1e=[];_0x3262fa&&_0x103c1e[_0x442c22(0x214)]('import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;','','const\x20client\x20=\x20new\x20LovrabetClient({\x20appCode:\x20\x27<YOUR_APP_CODE>\x27\x20});','');_0x103c1e[_0x442c22(0x214)](_0x442c22(0x1ff)+_0x5879e9['name']+'\x20('+(_0x5879e9[_0x442c22(0x24e)]||'table')+')');if(_0x35c78a==='filter')_0x103c1e[_0x442c22(0x214)]('const\x20result\x20=\x20await\x20client.models.'+_0x17f2ba+_0x442c22(0x1ef),_0x442c22(0x203),_0x442c22(0x235),_0x442c22(0x1f5),_0x442c22(0x21f));else{if(_0x35c78a==='getOne')_0x103c1e[_0x442c22(0x214)](_0x442c22(0x200)+_0x17f2ba+_0x442c22(0x244));else{if(_0x35c78a===_0x442c22(0x237))_0x103c1e[_0x442c22(0x214)](_0x442c22(0x200)+_0x17f2ba+_0x442c22(0x1df));else{if(_0x35c78a===_0x442c22(0x1e0))_0x103c1e['push'](_0x442c22(0x200)+_0x17f2ba+_0x442c22(0x222));else _0x35c78a===_0x442c22(0x21c)||_0x35c78a==='remove'?_0x103c1e[_0x442c22(0x214)](_0x442c22(0x200)+_0x17f2ba+'.remove(id);'):_0x103c1e['push'](_0x442c22(0x200)+_0x17f2ba+'.'+_0x35c78a+_0x442c22(0x205));}}}return _0x103c1e[_0x442c22(0x1ea)]('\x0a');}export function generateSqlCodeTemplate(_0x2a962b,_0x371435){const _0x1e4b5b=a113_0x2f6f,_0x12d090=_0x371435?.['target']??_0x1e4b5b(0x22f),_0x56fba2=_0x371435?.[_0x1e4b5b(0x21d)]??!![],_0x30f97e=[];return _0x30f97e['push']('//\x20SQL:\x20'+_0x2a962b[_0x1e4b5b(0x1de)]+'\x20('+_0x2a962b[_0x1e4b5b(0x23d)]+')'),_0x12d090===_0x1e4b5b(0x22f)?(_0x56fba2&&_0x30f97e[_0x1e4b5b(0x214)](_0x1e4b5b(0x21a),'',_0x1e4b5b(0x24a),''),_0x30f97e['push'](_0x1e4b5b(0x1d7),_0x1e4b5b(0x212)+_0x2a962b[_0x1e4b5b(0x23d)]+'\x27,',_0x1e4b5b(0x246),'});',_0x1e4b5b(0x239),'const\x20results\x20=\x20data.execResult\x20||\x20[];')):_0x30f97e[_0x1e4b5b(0x214)](_0x1e4b5b(0x233),_0x1e4b5b(0x255),_0x1e4b5b(0x1d4),'\x20\x20\x20\x20sqlCode:\x20\x27'+_0x2a962b[_0x1e4b5b(0x23d)]+'\x27,',_0x1e4b5b(0x251),_0x1e4b5b(0x221),'\x20\x20return\x20rows;','}'),_0x30f97e[_0x1e4b5b(0x1ea)]('\x0a');}export async function getErConfig(_0x5efcf1,_0x598c98){const _0x5d0b90=a113_0x2f6f,_0x52c5c5=await apiRequest(_0x5d0b90(0x1fa),{'method':'POST','body':{'appCode':_0x5efcf1,'dblinkId':_0x598c98}});return _0x52c5c5[_0x5d0b90(0x24c)];}function buildQuery(_0x26d627){const _0x18bdd4=a113_0x2f6f,_0x1b8acd=new URLSearchParams();for(const [_0x398f29,_0x90bbfd]of Object[_0x18bdd4(0x229)](_0x26d627)){if(_0x90bbfd===undefined||_0x90bbfd==='')continue;_0x1b8acd[_0x18bdd4(0x20e)](_0x398f29,String(_0x90bbfd));}const _0x3111df=_0x1b8acd[_0x18bdd4(0x1fe)]();return _0x3111df?'?'+_0x3111df:'';}export async function listDbLinks(_0x3f878c,_0x5e5faa){const _0x46827e=a113_0x2f6f,_0x22635b=await apiRequest('/smartapi/dblink/getList',{'method':_0x46827e(0x227),'body':{'appCode':_0x3f878c,'currentPage':_0x5e5faa?.[_0x46827e(0x231)]??0x1,'pageSize':_0x5e5faa?.[_0x46827e(0x223)]??0x64}});return{'items':extractList(_0x22635b['data']),'paging':extractPaging(_0x22635b[_0x46827e(0x24c)])};}export async function getDbLinkInfo(_0x524650){const _0x41c4de=a113_0x2f6f,_0x4c5ef6=await apiRequest(_0x41c4de(0x1eb)+buildQuery({'id':_0x524650}));return _0x4c5ef6[_0x41c4de(0x24c)];}export async function createDbLink(_0x1b2a05){const _0x30d8a3=a113_0x2f6f,_0x4f40ba=await apiRequest(_0x30d8a3(0x213),{'method':_0x30d8a3(0x227),'body':_0x1b2a05});return _0x4f40ba[_0x30d8a3(0x24c)];}export async function updateDbLink(_0x53a40e){const _0x1280a0=a113_0x2f6f,_0x5bbf14=await apiRequest(_0x1280a0(0x24d),{'method':'POST','body':_0x53a40e});return _0x5bbf14['data'];}export async function deleteDbLink(_0x5294bb){const _0x472e23=a113_0x2f6f;await apiRequest(_0x472e23(0x217),{'method':_0x472e23(0x227),'body':{'id':_0x5294bb}});}export async function testDbLinkConnect(_0x30da5b){const _0x19a553=a113_0x2f6f,_0xa4e235=await apiRequest(_0x19a553(0x22c)+buildQuery({'id':_0x30da5b}));return _0xa4e235[_0x19a553(0x24c)];}export async function startDbAnalysis(_0x58dc5c,_0x348e7e){const _0xf5ca3f=a113_0x2f6f,_0x55c2e8=await apiRequest(_0xf5ca3f(0x22b),{'method':'POST','body':{'dbLinkId':_0x58dc5c,..._0x348e7e&&_0x348e7e[_0xf5ca3f(0x247)]>0x0?{'tableNames':_0x348e7e}:{}}}),_0x3e7990=_0x55c2e8[_0xf5ca3f(0x24c)];if(typeof _0x3e7990==='string')return _0x3e7990;if(_0x3e7990&&typeof _0x3e7990===_0xf5ca3f(0x1f1)&&typeof _0x3e7990[_0xf5ca3f(0x23f)]==='string')return _0x3e7990[_0xf5ca3f(0x23f)];return _0x3e7990!=null?String(_0x3e7990):'';}export async function cancelDbAnalysis(_0x4f2b3e){const _0x1b6901=a113_0x2f6f;await apiRequest(_0x1b6901(0x23c)+buildQuery({'planId':_0x4f2b3e}),{'method':_0x1b6901(0x227)});}export async function getDbAnalysisStatus(_0xa8bc51){const _0x5d9dab=a113_0x2f6f,_0x5c1a8c=await apiRequest('/smartapi/db-analysis/status/'+encodeURIComponent(_0xa8bc51));return _0x5c1a8c[_0x5d9dab(0x24c)];}export async function getDbAllTableList(_0x1012f9,_0x380be3){const _0x70c0b2=a113_0x2f6f,_0x1586b6=await apiRequest(_0x70c0b2(0x1fc)+buildQuery({'appCode':_0x1012f9,'dbLinkId':_0x380be3})),_0x43f454=_0x1586b6['data'];if(Array[_0x70c0b2(0x202)](_0x43f454))return _0x43f454;return extractList(_0x43f454);}function a113_0x47c3(){const _0x4d5f74=['//\x20BFF\x20context:\x20context.client.sql.execute\x20returns\x20rows\x20directly','authRequired','\x20\x20pageSize:\x2020,','errorMessage','create','16mMHxzy','if\x20(!data.execSuccess)\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);','Dataset\x20not\x20found:\x20','abort','/smartapi/db-analysis/jobs/cancel','sqlCode','/smartapi/dblink/getTableDiffV2ByPage','planId','4168584DHwpQz','13102092tJUaqJ','API\x20error\x20code:\x20','/smartapi/custom/queryUserCustomSqlList','.getOne(id);','5oYUods','\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},','length','has','\x22\x20not\x20found\x20in\x20dataset\x20','const\x20client\x20=\x20new\x20LovrabetClient({\x20appCode:\x20\x27<YOUR_APP_CODE>\x27\x20});','Request\x20timeout:\x20','data','/smartapi/dblink/update','tableName','includes','3183324oAVrNJ','\x20\x20\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},','/smartapi/dataset/get-dataset-list','dataset_','\x20failed','export\x20default\x20async\x20function\x20handler(params,\x20context)\x20{','validation','error','replace','test','Use\x20the\x20platform\x20console\x20to\x20see\x20all.','/smartapi/dataset/get-dataset-operation','\x20\x20const\x20rows\x20=\x20await\x20context.client.sql.execute({','dbtableConfig','scriptName','const\x20data\x20=\x20await\x20client.sql.execute({','GET','toLowerCase','307388IhKlbo','modelCode','displayName','body','sqlName','.create({\x20/*\x20fields\x20*/\x20});','update','totalCount','\x20failed,\x20HTTP\x20','AbortError','name','BFF\x20script\x20not\x20found:\x20id=','code','type','2qyeVDT','\x20apps.\x20','join','/smartapi/dblink/getOne','apiError','warn','SQL\x20query\x20not\x20found:\x20','.filter({','/api/custom/executeSql','object','915999VvrgSN','application/json','40BEJozg','\x20\x20currentPage:\x201,','enabled','89518DFvmIM','functionName','message','/smartapi/question/er-config','operationName','/smartapi/dblink/getAllTableList','tableList','toString','//\x20','const\x20result\x20=\x20await\x20client.models.','/api/management/library/scripts/delete','isArray','\x20\x20where:\x20{},','filter','(/*\x20params\x20*/);','json','6Mjfliu','success','273579yoMJOH','requestFields','stringify','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','add','set','cli:rabetbase','errorCode','status','\x20\x20sqlCode:\x20\x27','/smartapi/dblink/create','push','/smartapi/app/getList','label','/smartapi/dblink/delete','map','/api/management/library/scripts/info?id=','import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;','signal','delete','includeImports','operations','});','errorMsg','\x20\x20});','.update(id,\x20{\x20/*\x20fields\x20*/\x20});','pageSize','API\x20error:\x20','description','Unauthorized','POST','/api/management/library/scripts/statistics?appCode=','entries','Operation\x20\x22','/smartapi/db-analysis/start','/smartapi/dblink/testConnect','pageIndex','modelId','sdk','method','currentPage','responseFields'];a113_0x47c3=function(){return _0x4d5f74;};return a113_0x47c3();}export async function getDbTableDiff(_0x3dde01,_0x266c1c,_0x2f7523){const _0xfaa514=a113_0x2f6f,_0x3057e3=await apiRequest(_0xfaa514(0x23e)+buildQuery({'appCode':_0x3dde01,'dbLinkId':_0x266c1c,'pageIndex':_0x2f7523?.[_0xfaa514(0x22d)]??0x1,'pageSize':_0x2f7523?.[_0xfaa514(0x223)]??0x14,'tableName':_0x2f7523?.['tableName']})),_0x17dfc6=_0x3057e3['data'];return{'totalCount':_0x17dfc6?.[_0xfaa514(0x1e1)]??0x0,'tableList':Array[_0xfaa514(0x202)](_0x17dfc6?.[_0xfaa514(0x1fd)])?_0x17dfc6[_0xfaa514(0x1fd)]:[]};}const REMOTE_APP_PAGE_SIZE=0xc8;export async function listRemoteApps(){const _0x1c2ba5=a113_0x2f6f,_0x2c152f=await apiRequest(_0x1c2ba5(0x215),{'method':'POST','body':{'currentPage':0x1,'pageSize':REMOTE_APP_PAGE_SIZE}}),_0x5b3a6c=extractList(_0x2c152f[_0x1c2ba5(0x24c)]),_0x57c4ce=extractPaging(_0x2c152f[_0x1c2ba5(0x24c)]);return _0x57c4ce&&_0x57c4ce['totalCount']>REMOTE_APP_PAGE_SIZE&&console[_0x1c2ba5(0x1ed)]('Warning:\x20showing\x20first\x20'+REMOTE_APP_PAGE_SIZE+'\x20of\x20'+_0x57c4ce['totalCount']+_0x1c2ba5(0x1e9)+_0x1c2ba5(0x1d2)),_0x5b3a6c;}
@@ -1 +1 @@
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
+ const a114_0x3c064c=a114_0x1fea;function a114_0x80ed(){const _0x2a11c1=['7UveFvr','140250rcQrGl','8ytoPgB','32cJxNuG','390929aNNkRJ','/bff','14052kxeNCr','555219rPmCXi','735400sfwKcv','62709wHytxz','.rabetbase','1178bLOpGm','398oBTFRf'];a114_0x80ed=function(){return _0x2a11c1;};return a114_0x80ed();}(function(_0xb13891,_0xcadc51){const _0x14b68b=a114_0x1fea,_0x18b9b5=_0xb13891();while(!![]){try{const _0x195b9d=-parseInt(_0x14b68b(0xa7))/0x1*(parseInt(_0x14b68b(0xa8))/0x2)+-parseInt(_0x14b68b(0xa5))/0x3*(-parseInt(_0x14b68b(0xab))/0x4)+-parseInt(_0x14b68b(0xaa))/0x5+-parseInt(_0x14b68b(0xaf))/0x6*(-parseInt(_0x14b68b(0xa9))/0x7)+parseInt(_0x14b68b(0xac))/0x8*(parseInt(_0x14b68b(0xb0))/0x9)+parseInt(_0x14b68b(0xb1))/0xa+parseInt(_0x14b68b(0xad))/0xb;if(_0x195b9d===_0xcadc51)break;else _0x18b9b5['push'](_0x18b9b5['shift']());}catch(_0x45b61a){_0x18b9b5['push'](_0x18b9b5['shift']());}}}(a114_0x80ed,0x2192f));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a114_0x1fea(_0x56b31a,_0x57a087){_0x56b31a=_0x56b31a-0xa5;const _0x80ede1=a114_0x80ed();let _0x1fea42=_0x80ede1[_0x56b31a];return _0x1fea42;}const DOT_DIR=a114_0x3c064c(0xa6),LOCK_FILE_NAME='bff.lock.json',TRASH_DIR_NAME='bff-trash';export function loadBffProjectConfig(_0x597648,_0x1d0b90){const _0x26c969=a114_0x3c064c,_0x4e1711=resolve(_0x1d0b90??findProjectRootDirectory()),_0x26c7ab=DOT_DIR+_0x26c969(0xae),_0x17003d=_0x26c7ab+'/'+_0x597648;return{'projectRoot':_0x4e1711,'appCode':_0x597648,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x26c7ab,'scriptsRoot':_0x17003d,'scriptsRootDir':resolve(_0x4e1711,DOT_DIR,'bff',_0x597648),'lockFilePath':resolve(_0x4e1711,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x4e1711,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
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
+ const a115_0x12ac5a=a115_0x1274;(function(_0x159001,_0x32d667){const _0x35fad1=a115_0x1274,_0x291434=_0x159001();while(!![]){try{const _0x2eec36=-parseInt(_0x35fad1(0x97))/0x1*(-parseInt(_0x35fad1(0xae))/0x2)+parseInt(_0x35fad1(0xa3))/0x3+parseInt(_0x35fad1(0x95))/0x4+-parseInt(_0x35fad1(0xb0))/0x5+-parseInt(_0x35fad1(0xb4))/0x6+parseInt(_0x35fad1(0xa2))/0x7*(-parseInt(_0x35fad1(0xa5))/0x8)+-parseInt(_0x35fad1(0xa9))/0x9*(-parseInt(_0x35fad1(0xa8))/0xa);if(_0x2eec36===_0x32d667)break;else _0x291434['push'](_0x291434['shift']());}catch(_0x33f1c8){_0x291434['push'](_0x291434['shift']());}}}(a115_0x1587,0xa7472));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';function a115_0x1587(){const _0xc721=['.js','64aLTrsg','scriptsRootDir','set','10TfUNSY','5876820DCYKmS','push','toUpperCase','beforeScriptId','functionNode','122IWfasP','functionName','6494420PopFyA','get','replace','afterScriptId','1128258RcGrfm','scriptType','split','name','F_OK','isFile','1239476eVMzfO','COMMON','19402wKNNAn','ENDPOINT','code','HOOK','operationType','datasetCode','trim','isDirectory','endsWith','includes','map','869673OiGXBn','3058914KzRHir'];a115_0x1587=function(){return _0xc721;};return a115_0x1587();}import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';function a115_0x1274(_0x33546c,_0x3898ed){_0x33546c=_0x33546c-0x94;const _0x158706=a115_0x1587();let _0x1274fc=_0x158706[_0x33546c];return _0x1274fc;}export const SUPPORTED_BFF_TYPES=[a115_0x12ac5a(0x96),a115_0x12ac5a(0x98),a115_0x12ac5a(0x9a)];export function normalizeBffType(_0x417e27){const _0x327198=a115_0x12ac5a;if(!_0x417e27)return undefined;const _0x49da94=_0x417e27[_0x327198(0x9d)]()[_0x327198(0xab)]();return SUPPORTED_BFF_TYPES[_0x327198(0xa0)](_0x49da94)?_0x49da94:undefined;}async function scanJsFilesRecursively(_0x2e48d9,_0x460ad0){const _0x1450eb=a115_0x12ac5a,_0x5ca854=[];try{const _0x50e3d3=await readdir(_0x2e48d9,{'withFileTypes':!![]});for(const _0x32b11f of _0x50e3d3){const _0x427185=join(_0x2e48d9,_0x32b11f[_0x1450eb(0xb7)]);if(_0x32b11f[_0x1450eb(0x9e)]())_0x5ca854[_0x1450eb(0xaa)](...await scanJsFilesRecursively(_0x427185,_0x460ad0+'/'+_0x32b11f[_0x1450eb(0xb7)]));else _0x32b11f[_0x1450eb(0x94)]()&&_0x32b11f['name'][_0x1450eb(0x9f)]('.js')&&_0x5ca854['push']({'lockKey':_0x460ad0+'/'+_0x32b11f['name']['replace'](/\.js$/,''),'filePath':_0x427185});}}catch(_0x4af45c){if(_0x4af45c[_0x1450eb(0x99)]!=='ENOENT')throw _0x4af45c;}return _0x5ca854;}async function scanFlatFunctions(_0x49e2d3,_0x1df4be){const _0x579b27=a115_0x12ac5a,_0x235a69=join(_0x49e2d3[_0x579b27(0xa6)],_0x1df4be),_0x1e2f9b=await scanJsFilesRecursively(_0x235a69,_0x1df4be);return _0x1e2f9b[_0x579b27(0xa1)](({lockKey:_0x3c8a8b,filePath:_0xaee0c9})=>({'type':_0x1df4be,'name':_0x3c8a8b[_0x579b27(0xb6)]('/')['at'](-0x1)??'','filePath':_0xaee0c9,'lockKey':_0x3c8a8b}));}async function scanHookFunctions(_0x3f0c7d){const _0x570ce9=a115_0x12ac5a,_0x52d708=join(_0x3f0c7d['scriptsRootDir'],_0x570ce9(0x9a)),_0x3d901a=[];try{const _0xbd096e=await readdir(_0x52d708,{'withFileTypes':!![]});for(const _0x53cb37 of _0xbd096e){if(!_0x53cb37['isDirectory']())continue;const _0x2c438c=_0x53cb37[_0x570ce9(0xb7)],_0x586f32=join(_0x52d708,_0x2c438c),_0x489958=await readdir(_0x586f32,{'withFileTypes':!![]});for(const _0x2be4f1 of _0x489958){if(!_0x2be4f1[_0x570ce9(0x9e)]())continue;const _0x34a223=_0x2be4f1[_0x570ce9(0xb7)],_0x24a968=join(_0x586f32,_0x34a223),_0x314f5b=await readdir(_0x24a968,{'withFileTypes':!![]});for(const _0x4354ca of _0x314f5b){if(!_0x4354ca[_0x570ce9(0x9e)]())continue;const _0x436787=_0x4354ca[_0x570ce9(0xb7)],_0x769690=join(_0x24a968,_0x436787),_0x3d9415=await readdir(_0x769690,{'withFileTypes':!![]});for(const _0x5c49cc of _0x3d9415){if(!_0x5c49cc['isFile']()||!_0x5c49cc[_0x570ce9(0xb7)]['endsWith'](_0x570ce9(0xa4)))continue;const _0x208277=_0x5c49cc[_0x570ce9(0xb7)][_0x570ce9(0xb2)](/\.js$/,'');_0x3d901a['push']({'type':'HOOK','name':_0x208277,'filePath':join(_0x769690,_0x5c49cc[_0x570ce9(0xb7)]),'lockKey':'HOOK/'+_0x2c438c+'/'+_0x34a223+'/'+_0x436787+'/'+_0x208277,'alias':_0x2c438c,'operationType':_0x34a223,'functionNode':_0x436787});}}}}}catch(_0x5eafc4){if(_0x5eafc4['code']!=='ENOENT')throw _0x5eafc4;}return _0x3d901a;}export async function scanLocalBffFunctions(_0x523061,_0x51fa0c){const _0x18ca29=a115_0x12ac5a;if(_0x51fa0c===_0x18ca29(0x96)||_0x51fa0c===_0x18ca29(0x98))return scanFlatFunctions(_0x523061,_0x51fa0c);if(_0x51fa0c==='HOOK')return scanHookFunctions(_0x523061);const [_0x2d4f0a,_0x78f533,_0x22ebe4]=await Promise['all']([scanFlatFunctions(_0x523061,'COMMON'),scanFlatFunctions(_0x523061,_0x18ca29(0x98)),scanHookFunctions(_0x523061)]);return[..._0x2d4f0a,..._0x78f533,..._0x22ebe4];}export function resolveLocalFilePathFromLockKey(_0x56c039,_0x5b77f7){const _0x5d9aad=a115_0x12ac5a;return join(_0x56c039[_0x5d9aad(0xa6)],..._0x5b77f7[_0x5d9aad(0xb6)]('/'))+_0x5d9aad(0xa4);}export function createHookLocationMap(_0x5b2f0a){const _0x5359dc=a115_0x12ac5a,_0x233bfc=new Map();for(const _0x462350 of _0x5b2f0a){_0x462350[_0x5359dc(0xac)]&&_0x233bfc['set'](_0x462350[_0x5359dc(0xac)],{'datasetCode':_0x462350[_0x5359dc(0x9c)],'operationType':snakeToCamel(_0x462350[_0x5359dc(0x9b)]),'functionNode':'before'}),_0x462350[_0x5359dc(0xb3)]&&_0x233bfc[_0x5359dc(0xa7)](_0x462350[_0x5359dc(0xb3)],{'datasetCode':_0x462350[_0x5359dc(0x9c)],'operationType':snakeToCamel(_0x462350['operationType']),'functionNode':'after'});}return _0x233bfc;}export function resolveRemoteScriptTarget(_0x48c249,_0x5eb17b,_0x4f9708,_0x29bfeb,_0x37a70c){const _0x520146=a115_0x12ac5a,_0x51d0e5=normalizeBffType(_0x5eb17b[_0x520146(0xb5)]);if(!_0x51d0e5||!_0x5eb17b[_0x520146(0xaf)])return null;if(_0x51d0e5==='HOOK'){const _0x62910f=(_0x5eb17b['id']?_0x4f9708[_0x520146(0xb1)](_0x5eb17b['id']):undefined)??findHookLocationByRemoteId(_0x29bfeb,_0x5eb17b['id']);if(!_0x62910f)return null;const _0x262022=_0x62910f['alias']||_0x37a70c[_0x520146(0xb1)](_0x62910f[_0x520146(0x9c)]),_0x49c9d1=_0x262022??_0x62910f[_0x520146(0x9c)],_0x1ea95b={..._0x62910f,'alias':_0x262022},_0x3ecd28='HOOK/'+_0x49c9d1+'/'+_0x1ea95b[_0x520146(0x9b)]+'/'+_0x1ea95b[_0x520146(0xad)]+'/'+_0x5eb17b['functionName'];return{'lockKey':_0x3ecd28,'filePath':resolveLocalFilePathFromLockKey(_0x48c249,_0x3ecd28),'type':_0x520146(0x9a),'hookLocation':_0x1ea95b};}const _0x2bc8a6=_0x51d0e5+'/'+_0x5eb17b['functionName'];return{'lockKey':_0x2bc8a6,'filePath':resolveLocalFilePathFromLockKey(_0x48c249,_0x2bc8a6),'type':_0x51d0e5};}export async function ensureParentDirectory(_0x11dc2f){await mkdir(dirname(_0x11dc2f),{'recursive':!![]});}export async function fileExists(_0x58d4a4){const _0x4dc1f6=a115_0x12ac5a;try{return await access(_0x58d4a4,constants[_0x4dc1f6(0xb8)]),!![];}catch{return![];}}export async function directoryExists(_0x20eb10){const _0x28a8ec=a115_0x12ac5a;try{const _0x5ae4d2=await stat(_0x20eb10);return _0x5ae4d2[_0x28a8ec(0x9e)]();}catch{return![];}}
@@ -1 +1 @@
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
+ (function(_0xa996df,_0x393181){const _0x5720ea=a116_0x1bb2,_0x423162=_0xa996df();while(!![]){try{const _0x111c21=-parseInt(_0x5720ea(0x1b3))/0x1+-parseInt(_0x5720ea(0x1be))/0x2+parseInt(_0x5720ea(0x1ba))/0x3*(-parseInt(_0x5720ea(0x1b9))/0x4)+-parseInt(_0x5720ea(0x1bc))/0x5*(-parseInt(_0x5720ea(0x1b8))/0x6)+-parseInt(_0x5720ea(0x1b5))/0x7*(-parseInt(_0x5720ea(0x1b7))/0x8)+parseInt(_0x5720ea(0x1b1))/0x9*(parseInt(_0x5720ea(0x1bd))/0xa)+-parseInt(_0x5720ea(0x1bb))/0xb*(-parseInt(_0x5720ea(0x1c0))/0xc);if(_0x111c21===_0x393181)break;else _0x423162['push'](_0x423162['shift']());}catch(_0x438141){_0x423162['push'](_0x423162['shift']());}}}(a116_0xed33,0x4e76c));function a116_0x1bb2(_0x3e4c25,_0x5513a5){_0x3e4c25=_0x3e4c25-0x1b1;const _0xed3331=a116_0xed33();let _0x1bb216=_0xed3331[_0x3e4c25];return _0x1bb216;}import{readFile}from'node:fs/promises';import a116_0x5e358f from'node:crypto';export function computeContentHash(_0x45e917){const _0x326eca=a116_0x1bb2;return a116_0x5e358f['createHash'](_0x326eca(0x1bf))[_0x326eca(0x1b2)](_0x45e917)[_0x326eca(0x1b6)]('hex');}export async function computeFileHash(_0x245868){const _0x458d64=a116_0x1bb2,_0x320928=await readFile(_0x245868,_0x458d64(0x1b4));return computeContentHash(_0x320928);}function a116_0xed33(){const _0x367837=['15630VifjXs','235350EjaxAP','md5','144TlXCnY','387NPdDoU','update','105530dWvhZj','utf8','227206wrtldT','digest','16YsPtKX','30AdDqKz','4IqrphA','1275579KAtYSx','347303eToJBQ','458785NZKfeE'];a116_0xed33=function(){return _0x367837;};return a116_0xed33();}
@@ -1 +1 @@
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
+ (function(_0x4c9661,_0x237bbe){const _0xa7163d=a117_0x4039,_0x26bb8b=_0x4c9661();while(!![]){try{const _0x33b1bf=-parseInt(_0xa7163d(0xaf))/0x1+parseInt(_0xa7163d(0xb3))/0x2+parseInt(_0xa7163d(0xbe))/0x3*(parseInt(_0xa7163d(0xae))/0x4)+-parseInt(_0xa7163d(0xbf))/0x5+-parseInt(_0xa7163d(0xb9))/0x6*(parseInt(_0xa7163d(0xc1))/0x7)+parseInt(_0xa7163d(0xbb))/0x8+parseInt(_0xa7163d(0xb6))/0x9*(-parseInt(_0xa7163d(0xbd))/0xa);if(_0x33b1bf===_0x237bbe)break;else _0x26bb8b['push'](_0x26bb8b['shift']());}catch(_0x21c0b7){_0x26bb8b['push'](_0x26bb8b['shift']());}}}(a117_0x4c73,0x3818a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x24cc7a,_0x4387a4,_0xe75e49,_0x21ed66){const _0x33c928=a117_0x4039,_0x527629={'apps':_0x24cc7a['apps']&&typeof _0x24cc7a[_0x33c928(0xb2)]===_0x33c928(0xbc)?_0x24cc7a[_0x33c928(0xb2)]:{}};let _0x271279=_0x527629[_0x33c928(0xb2)][_0x4387a4];if(!_0x271279)return _0x271279={'scriptsRoot':_0xe75e49,'lastSync':'','functions':{}},_0x527629['apps'][_0x4387a4]=_0x271279,{'lockData':_0x527629,'appLock':_0x271279};if(!_0x271279[_0x33c928(0xc3)])_0x271279[_0x33c928(0xc3)]=_0xe75e49;else{if(_0x271279[_0x33c928(0xc3)]!==_0xe75e49)throw new Error(_0x21ed66+_0x33c928(0xb8)+(_0x33c928(0xba)+_0xe75e49+_0x33c928(0xb1)+_0x271279['scriptsRoot']+_0x33c928(0xb4))+_0x33c928(0xad));}return!_0x271279[_0x33c928(0xc0)]&&(_0x271279['functions']={}),!_0x271279[_0x33c928(0xc2)]&&(_0x271279['lastSync']=''),{'lockData':_0x527629,'appLock':_0x271279};}export async function readBffLockFile(_0x351b69){const _0x46c752=a117_0x4039;try{const _0x43a105=await readFile(_0x351b69,'utf8'),_0x545369=JSON['parse'](_0x43a105);return{'apps':_0x545369[_0x46c752(0xb2)]&&typeof _0x545369[_0x46c752(0xb2)]===_0x46c752(0xbc)?_0x545369[_0x46c752(0xb2)]:{}};}catch(_0x251dfd){if(_0x251dfd['code']===_0x46c752(0xb5))return null;throw new Error(_0x46c752(0xb0)+String(_0x251dfd));}}function a117_0x4039(_0xfbb1aa,_0x59ab20){_0xfbb1aa=_0xfbb1aa-0xad;const _0x4c73ec=a117_0x4c73();let _0x403923=_0x4c73ec[_0xfbb1aa];return _0x403923;}export async function writeBffLockFile(_0x2cdc89,_0x5ee061){const _0x51ac55=a117_0x4039;await mkdir(dirname(_0x2cdc89),{'recursive':!![]}),await writeFile(_0x2cdc89,JSON['stringify'](_0x5ee061,null,0x2),_0x51ac55(0xb7));}function a117_0x4c73(){const _0x46d685=['utf8',':\x20scriptsRoot\x20mismatch\x20—\x20','551724FgwfJt','current\x20\x22','995144FofouI','object','4280XYVHsr','42uspeaH','1903320ifHdGx','functions','7qUnOyU','lastSync','scriptsRoot','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','120344spwEoS','152648nGrTLv','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','\x22\x20vs\x20lock\x20\x22','apps','728446mIONOy','\x22.\x20','ENOENT','1152HLQtlW'];a117_0x4c73=function(){return _0x46d685;};return a117_0x4c73();}
@@ -1 +1 @@
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
+ function a119_0x3dd3(){const _0xae961e=['test','578764rFBZjY','961908gvZRMi','toUpperCase','trim','1856475SNCbMD','10038goFiHy','5lAJmul','functionNode','5088296uWpXyz','match','2779580seZIox','98138hOhxDI','toLowerCase','values','3514AcTKjH'];a119_0x3dd3=function(){return _0xae961e;};return a119_0x3dd3();}function a119_0x13b7(_0x1ae4e5,_0x1bd920){_0x1ae4e5=_0x1ae4e5-0x17e;const _0x3dd3f7=a119_0x3dd3();let _0x13b783=_0x3dd3f7[_0x1ae4e5];return _0x13b783;}(function(_0x17233d,_0x187797){const _0x24612b=a119_0x13b7,_0x5dee37=_0x17233d();while(!![]){try{const _0x23ca3c=parseInt(_0x24612b(0x18a))/0x1+parseInt(_0x24612b(0x17f))/0x2+parseInt(_0x24612b(0x180))/0x3+-parseInt(_0x24612b(0x189))/0x4*(parseInt(_0x24612b(0x185))/0x5)+-parseInt(_0x24612b(0x184))/0x6*(-parseInt(_0x24612b(0x18d))/0x7)+-parseInt(_0x24612b(0x187))/0x8+parseInt(_0x24612b(0x183))/0x9;if(_0x23ca3c===_0x187797)break;else _0x5dee37['push'](_0x5dee37['shift']());}catch(_0x32042c){_0x5dee37['push'](_0x5dee37['shift']());}}}(a119_0x3dd3,0x675b1));export function snakeToCamel(_0x1b0ec0){const _0x182bbd=a119_0x13b7;return _0x1b0ec0[_0x182bbd(0x18b)]()['replace'](/_([a-z])/g,(_0x2f3bc0,_0x3946e7)=>_0x3946e7[_0x182bbd(0x181)]());}export function findHookLocationByRemoteId(_0x342517,_0xf323e9){const _0x292224=a119_0x13b7;if(!_0xf323e9)return undefined;for(const _0x42fd01 of Object[_0x292224(0x18c)](_0x342517)){if(_0x42fd01['remoteId']===_0xf323e9&&_0x42fd01['datasetCode']&&_0x42fd01['operationType']&&_0x42fd01['functionNode'])return{'datasetCode':_0x42fd01['datasetCode'],'operationType':_0x42fd01['operationType'],'functionNode':_0x42fd01[_0x292224(0x186)]};}return undefined;}export function extractScriptDescription(_0x492e4a){const _0x1c2fe2=a119_0x13b7,_0x59c9f2=_0x492e4a[_0x1c2fe2(0x188)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x59c9f2?.[0x1]?.[_0x1c2fe2(0x182)]()||undefined;}export function isValidBffFunctionName(_0x551b0a){const _0x16b6c3=a119_0x13b7;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x16b6c3(0x17e)](_0x551b0a);}export function normalizeHookFunctionNode(_0x313cc4){const _0x44792a=a119_0x13b7;if(!_0x313cc4)return undefined;const _0x66cbb5=_0x313cc4[_0x44792a(0x182)]()[_0x44792a(0x18b)]();if(_0x66cbb5==='before'||_0x66cbb5==='after')return _0x66cbb5;return undefined;}
@@ -1 +1 @@
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
+ (function(_0x1ad34b,_0x375b57){const _0x368629=a120_0x9239,_0x152be3=_0x1ad34b();while(!![]){try{const _0x4a7446=-parseInt(_0x368629(0x1d9))/0x1+parseInt(_0x368629(0x1dc))/0x2*(parseInt(_0x368629(0x1c0))/0x3)+parseInt(_0x368629(0x1d4))/0x4+parseInt(_0x368629(0x1be))/0x5*(parseInt(_0x368629(0x1d8))/0x6)+-parseInt(_0x368629(0x1d1))/0x7+parseInt(_0x368629(0x1ce))/0x8*(-parseInt(_0x368629(0x1cf))/0x9)+-parseInt(_0x368629(0x1c2))/0xa*(-parseInt(_0x368629(0x1ca))/0xb);if(_0x4a7446===_0x375b57)break;else _0x152be3['push'](_0x152be3['shift']());}catch(_0x31b6d7){_0x152be3['push'](_0x152be3['shift']());}}}(a120_0x3e14,0xf1b5b));import{listDatasets}from'../core/api-client.js';function a120_0x3e14(){const _0x5ad8d2=['8OkLXDn','15402483ellzme','get','2654365QCbMdk','toLowerCase','No\x20database\x20matching\x20\x22','1601348MSXLuV','join','\x22.\x20Available:\x20','\x22\x20matches\x20multiple\x20databases:\x20','198VjHOho','1344604uIwYhr','find','filter','68548qvRzvh','116330bNgdUa','entries','147mXUadA','isNaN','93910oMJMra','map','.\x20Be\x20more\x20specific.','includes','dbtableConfig','dbId','has','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','1848pZFgSS','dbName','length','set'];a120_0x3e14=function(){return _0x5ad8d2;};return a120_0x3e14();}const cache=new Map();function a120_0x9239(_0x247e0e,_0x448da5){_0x247e0e=_0x247e0e-0x1be;const _0x3e1412=a120_0x3e14();let _0x9239a7=_0x3e1412[_0x247e0e];return _0x9239a7;}export async function listDatabases(_0x414fa3){const _0x4b354a=a120_0x9239;if(cache[_0x4b354a(0x1c8)](_0x414fa3))return cache[_0x4b354a(0x1d0)](_0x414fa3);const _0x491038=await listDatasets(_0x414fa3),_0x699cfc=new Map();for(const _0x53a07d of _0x491038){const _0x57489e=_0x53a07d[_0x4b354a(0x1c6)];_0x57489e?.[_0x4b354a(0x1c7)]!=null&&_0x699cfc[_0x4b354a(0x1cd)](_0x57489e[_0x4b354a(0x1c7)],_0x57489e['dbName']??'db-'+_0x57489e[_0x4b354a(0x1c7)]);}const _0x4ba7df=[..._0x699cfc[_0x4b354a(0x1bf)]()][_0x4b354a(0x1c3)](([_0x302700,_0x8897fa])=>({'dbId':_0x302700,'dbName':_0x8897fa}));return cache[_0x4b354a(0x1cd)](_0x414fa3,_0x4ba7df),_0x4ba7df;}export async function resolveDb(_0x56594c,_0x121936){const _0x128cde=a120_0x9239,_0x57655a=await listDatabases(_0x56594c);if(_0x57655a['length']===0x0)return{'resolved':[],'error':_0x128cde(0x1c9)};if(!_0x121936)return{'resolved':_0x57655a};const _0x1f46cd=Number(_0x121936);if(!Number[_0x128cde(0x1c1)](_0x1f46cd)){const _0x1d35eb=_0x57655a[_0x128cde(0x1da)](_0x1391cf=>_0x1391cf[_0x128cde(0x1c7)]===_0x1f46cd);if(_0x1d35eb)return{'resolved':[_0x1d35eb]};}const _0x1cb705=_0x121936['toLowerCase'](),_0x2ba013=_0x57655a[_0x128cde(0x1db)](_0x2d548c=>_0x2d548c['dbName'][_0x128cde(0x1d2)]()[_0x128cde(0x1c5)](_0x1cb705));if(_0x2ba013[_0x128cde(0x1cc)]>0x0)return{'resolved':_0x2ba013};const _0x3fe07e=_0x57655a[_0x128cde(0x1c3)](_0x2a738b=>_0x2a738b['dbName']+'\x20('+_0x2a738b[_0x128cde(0x1c7)]+')')[_0x128cde(0x1d5)](',\x20');return{'resolved':[],'error':_0x128cde(0x1d3)+_0x121936+_0x128cde(0x1d6)+_0x3fe07e};}export async function resolveOneDb(_0x6ac06e,_0x18183c){const _0x2c6818=a120_0x9239,{resolved:_0xea5d41,error:_0xd48204}=await resolveDb(_0x6ac06e,_0x18183c);if(_0xd48204)return{'db':null,'error':_0xd48204};if(_0xea5d41['length']===0x1)return{'db':_0xea5d41[0x0]};if(!_0x18183c){const _0xf70b1f=_0xea5d41['map'](_0x16cdbe=>_0x16cdbe['dbName']+'\x20('+_0x16cdbe['dbId']+')')[_0x2c6818(0x1d5)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0xf70b1f};}const _0xd0756=_0xea5d41[_0x2c6818(0x1c3)](_0x1df999=>_0x1df999[_0x2c6818(0x1cb)]+'\x20('+_0x1df999['dbId']+')')[_0x2c6818(0x1d5)](',\x20');return{'db':null,'error':'\x22'+_0x18183c+_0x2c6818(0x1d7)+_0xd0756+_0x2c6818(0x1c4)};}export async function getDbName(_0x2dbe60,_0x1d348c){const _0x3106b0=a120_0x9239,_0x533bd0=await listDatabases(_0x2dbe60);return _0x533bd0[_0x3106b0(0x1da)](_0x18a96c=>_0x18a96c[_0x3106b0(0x1c7)]===_0x1d348c)?.[_0x3106b0(0x1cb)];}
@@ -1 +1 @@
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'):'')};}
1
+ function a121_0x13e4(_0x43059d,_0x87d0b0){_0x43059d=_0x43059d-0x79;const _0x306e08=a121_0x306e();let _0x13e42f=_0x306e08[_0x43059d];return _0x13e42f;}function a121_0x306e(){const _0x244a53=['884821hXmxKU','18fkMfQa','1996iRzIJx','length','trim','1975086ZkvPGu','78513bJVSTX','push','toUpperCase','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4741tdgCHU','\x20query\x20targeting\x20','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE','matchAll','startsWith','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','INSERT','50XzOlYv','UNKNOWN','309yIByXZ','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','includes','UPDATE','SELECT','replace','reason','2220vpVcLC','20Uizijq','isDangerous','DDL','join','match','from','add','unknown\x20table(s)','split','test','WITH','type','131872nHlrOj','3315112TKxPIN','\x20with\x20parameters:\x20'];a121_0x306e=function(){return _0x244a53;};return a121_0x306e();}(function(_0x46cb9d,_0x29e54f){const _0x372dfa=a121_0x13e4,_0x55a9e9=_0x46cb9d();while(!![]){try{const _0x4d4cc4=parseInt(_0x372dfa(0x7f))/0x1+-parseInt(_0x372dfa(0x7b))/0x2*(-parseInt(_0x372dfa(0x8d))/0x3)+-parseInt(_0x372dfa(0xa1))/0x4*(-parseInt(_0x372dfa(0x8b))/0x5)+parseInt(_0x372dfa(0x7a))/0x6*(-parseInt(_0x372dfa(0x79))/0x7)+-parseInt(_0x372dfa(0xa2))/0x8+parseInt(_0x372dfa(0x7e))/0x9*(parseInt(_0x372dfa(0x95))/0xa)+parseInt(_0x372dfa(0x83))/0xb*(parseInt(_0x372dfa(0x94))/0xc);if(_0x4d4cc4===_0x29e54f)break;else _0x55a9e9['push'](_0x55a9e9['shift']());}catch(_0xa5140){_0x55a9e9['push'](_0x55a9e9['shift']());}}}(a121_0x306e,0x39a00));export function detectSqlType(_0x342fa){const _0x2a8346=a121_0x13e4;if(!_0x342fa?.[_0x2a8346(0x7d)]())return{'type':_0x2a8346(0x8c),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x47e48e=_0x342fa[_0x2a8346(0x92)](/#\{[^}]*\}/g,'?')[_0x2a8346(0x92)](/\$\{[^}]*\}/g,'?')[_0x2a8346(0x92)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2a8346(0x92)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x3bd461=_0x47e48e[_0x2a8346(0x9d)]('\x0a');let _0x56f5f4='';for(const _0x553d6f of _0x3bd461){const _0x3f1b7c=_0x553d6f['trim']();if(!_0x3f1b7c||_0x3f1b7c['startsWith']('--')||_0x3f1b7c[_0x2a8346(0x88)]('/*'))continue;_0x56f5f4=_0x3f1b7c;break;}const _0x3ca741=_0x56f5f4[_0x2a8346(0x81)]();if(_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x91))||_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x9f))){const _0x5ebb4b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x47e48e);return{'type':_0x2a8346(0x91),'isSelectOnly':!_0x5ebb4b,'isDangerous':_0x5ebb4b,'reason':_0x5ebb4b?_0x2a8346(0x85):undefined};}if(_0x3ca741['startsWith'](_0x2a8346(0x8a)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x90)))return{'type':_0x2a8346(0x90),'isSelectOnly':![],'isDangerous':![]};if(_0x3ca741['startsWith'](_0x2a8346(0x86)))return{'type':_0x2a8346(0x86),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2a8346(0x89)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2a8346(0x9e)](_0x3ca741))return{'type':_0x2a8346(0x97),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2a8346(0x8c),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x287034){const _0x240287=a121_0x13e4,_0x1a8c3a=_0x287034[_0x240287(0x92)](/#\{[^}]*\}/g,'?')[_0x240287(0x92)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x240287(0x92)](/--.*$/gm,'')[_0x240287(0x92)](/\/\*[\s\S]*?\*\//g,''),_0x3f9791=[],_0x78c1a5=_0x1a8c3a[_0x240287(0x99)](/FROM\s+([^\s,)(]+)/i);if(_0x78c1a5?.[0x1])_0x3f9791[_0x240287(0x80)](_0x78c1a5[0x1][_0x240287(0x92)](/[`"]/g,''));for(const _0x4fb251 of _0x1a8c3a[_0x240287(0x87)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x532bd0=_0x4fb251[0x1]?.['replace'](/[`"]/g,'');if(_0x532bd0&&!_0x3f9791[_0x240287(0x8f)](_0x532bd0))_0x3f9791[_0x240287(0x80)](_0x532bd0);}const _0x4d8bef=_0x1a8c3a[_0x240287(0x99)](/INTO\s+([^\s(]+)/i);if(_0x4d8bef?.[0x1]){const _0x17020a=_0x4d8bef[0x1]['replace'](/[`"]/g,'');if(!_0x3f9791[_0x240287(0x8f)](_0x17020a))_0x3f9791[_0x240287(0x80)](_0x17020a);}const _0x544653=_0x1a8c3a[_0x240287(0x99)](/UPDATE\s+([^\s,)(]+)/i);if(_0x544653?.[0x1]){const _0x1d75ca=_0x544653[0x1]['replace'](/[`"]/g,'');if(!_0x3f9791['includes'](_0x1d75ca))_0x3f9791[_0x240287(0x80)](_0x1d75ca);}return _0x3f9791;}function extractParameters(_0x2dc3fd){const _0x1d4f22=a121_0x13e4,_0x4ab819=new Set();for(const _0x53a1be of _0x2dc3fd['matchAll'](/#\{(\w+)\}/g))if(_0x53a1be[0x1])_0x4ab819[_0x1d4f22(0x9b)](_0x53a1be[0x1]);for(const _0x223ae4 of _0x2dc3fd[_0x1d4f22(0x87)](/\$\{(\w+)\}/g))if(_0x223ae4[0x1])_0x4ab819[_0x1d4f22(0x9b)](_0x223ae4[0x1]);return Array[_0x1d4f22(0x9a)](_0x4ab819);}export function validateSql(_0x365275){const _0x2eebfa=a121_0x13e4,_0x243e80=detectSqlType(_0x365275),_0xb7c15c=extractTables(_0x365275),_0x2507e8=extractParameters(_0x365275);if(_0x243e80[_0x2eebfa(0x96)])return{'valid':![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x243e80[_0x2eebfa(0x93)]||_0x243e80['type']+_0x2eebfa(0x8e)};if(_0x243e80[_0x2eebfa(0xa0)]===_0x2eebfa(0x8c))return{'valid':![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x2eebfa(0x82)};return{'valid':!![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x243e80[_0x2eebfa(0xa0)]+_0x2eebfa(0x84)+(_0xb7c15c[_0x2eebfa(0x7c)]?_0xb7c15c[_0x2eebfa(0x98)](',\x20'):_0x2eebfa(0x9c))+(_0x2507e8[_0x2eebfa(0x7c)]?_0x2eebfa(0xa3)+_0x2507e8[_0x2eebfa(0x98)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
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
+ const a122_0x2b9ca9=a122_0x3b38;(function(_0x12808b,_0x122dd9){const _0x42b99c=a122_0x3b38,_0xff58e2=_0x12808b();while(!![]){try{const _0x5ee8c2=-parseInt(_0x42b99c(0x167))/0x1+parseInt(_0x42b99c(0x170))/0x2+-parseInt(_0x42b99c(0x16f))/0x3+parseInt(_0x42b99c(0x16a))/0x4*(-parseInt(_0x42b99c(0x169))/0x5)+-parseInt(_0x42b99c(0x163))/0x6+parseInt(_0x42b99c(0x164))/0x7+parseInt(_0x42b99c(0x168))/0x8;if(_0x5ee8c2===_0x122dd9)break;else _0xff58e2['push'](_0xff58e2['shift']());}catch(_0x10e419){_0xff58e2['push'](_0xff58e2['shift']());}}}(a122_0x4688,0xe07e4));function a122_0x3b38(_0x4c5bc1,_0x53cc27){_0x4c5bc1=_0x4c5bc1-0x162;const _0x468891=a122_0x4688();let _0x3b3875=_0x468891[_0x4c5bc1];return _0x3b3875;}function a122_0x4688(){const _0x4d7892=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','257976OkumKg','108311jmNqvP','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','join','1553812imyxfQ','23272912oNBAFc','5JlmnOg','620848VIlBDg','Set\x20appcode\x20via\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20auth`\x20to\x20login\x20first.','Tip:\x20`','2074314irvEJs','876790fyXGzD','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`'];a122_0x4688=function(){return _0x4d7892;};return a122_0x4688();}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':a122_0x2b9ca9(0x172)+CLI_BIN_NAME+a122_0x2b9ca9(0x16d),'configMissingHint':[a122_0x2b9ca9(0x16b)+CLI_BIN_NAME+a122_0x2b9ca9(0x162),a122_0x2b9ca9(0x16e)+CLI_BIN_NAME+a122_0x2b9ca9(0x165)][a122_0x2b9ca9(0x166)](a122_0x2b9ca9(0x16c)),'notInProjectHint':a122_0x2b9ca9(0x171)});
@@ -1 +1 @@
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
+ function a123_0x1e39(){var _0x54d8b9=['589925djPqaN','1760864aoGccD','12842982GoXnzA','940146ggIsZO','7vYwzev','397199dKGsOR','1761704eudZAM','338NmdpZQ','2532swANPW'];a123_0x1e39=function(){return _0x54d8b9;};return a123_0x1e39();}(function(_0x2dbe91,_0x30277c){var _0x26feb2=a123_0x58d5,_0x3d2598=_0x2dbe91();while(!![]){try{var _0x235c39=-parseInt(_0x26feb2(0x160))/0x1+parseInt(_0x26feb2(0x162))/0x2*(-parseInt(_0x26feb2(0x15a))/0x3)+-parseInt(_0x26feb2(0x15c))/0x4+-parseInt(_0x26feb2(0x15b))/0x5+-parseInt(_0x26feb2(0x15e))/0x6*(-parseInt(_0x26feb2(0x15f))/0x7)+-parseInt(_0x26feb2(0x161))/0x8+parseInt(_0x26feb2(0x15d))/0x9;if(_0x235c39===_0x30277c)break;else _0x3d2598['push'](_0x3d2598['shift']());}catch(_0x378ea3){_0x3d2598['push'](_0x3d2598['shift']());}}}(a123_0x1e39,0x40ce0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a123_0x58d5(_0xe83926,_0x41bf49){_0xe83926=_0xe83926-0x15a;var _0x1e390c=a123_0x1e39();var _0x58d5e3=_0x1e390c[_0xe83926];return _0x58d5e3;}import{buildAllFlags as a123_0x2a600f}from'@lovrabet/cli-framework';export function buildAllFlags(_0x6622f2){return a123_0x2a600f(_0x6622f2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
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
+ const a124_0x591484=a124_0x3e7b;function a124_0x536c(){const _0x4cd34e=['6erLjHy','1842597hUUFbv','1652206ZQHRXY','8qeQlod','validateFlags','3979055fuarQK','31957431AubrXK','parseFlags','2083907JMbwCe','10AIGmtf','3064329xZafFK','18uryJyI','5145784qYaelY'];a124_0x536c=function(){return _0x4cd34e;};return a124_0x536c();}(function(_0x4ebaf3,_0x49d0a8){const _0x286ac2=a124_0x3e7b,_0x53c68e=_0x4ebaf3();while(!![]){try{const _0x26608a=parseInt(_0x286ac2(0x111))/0x1+parseInt(_0x286ac2(0x10f))/0x2*(-parseInt(_0x286ac2(0x110))/0x3)+-parseInt(_0x286ac2(0x10e))/0x4+parseInt(_0x286ac2(0x114))/0x5+parseInt(_0x286ac2(0x10d))/0x6*(-parseInt(_0x286ac2(0x117))/0x7)+-parseInt(_0x286ac2(0x112))/0x8*(parseInt(_0x286ac2(0x10c))/0x9)+parseInt(_0x286ac2(0x118))/0xa*(parseInt(_0x286ac2(0x115))/0xb);if(_0x26608a===_0x49d0a8)break;else _0x53c68e['push'](_0x53c68e['shift']());}catch(_0x25df46){_0x53c68e['push'](_0x53c68e['shift']());}}}(a124_0x536c,0xf1d93));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a124_0x3e7b(_0x3982ff,_0x37fb2a){_0x3982ff=_0x3982ff-0x10c;const _0x536c2a=a124_0x536c();let _0x3e7b4c=_0x536c2a[_0x3982ff];return _0x3e7b4c;}export const parseFlags=helpers[a124_0x591484(0x116)];export const validateFlags=helpers[a124_0x591484(0x113)];
@@ -1 +1 @@
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
+ const a125_0x59d30b=a125_0x3e31;(function(_0x61583a,_0x1670d8){const _0x21eee8=a125_0x3e31,_0x2ef09b=_0x61583a();while(!![]){try{const _0x49af72=-parseInt(_0x21eee8(0x18d))/0x1*(-parseInt(_0x21eee8(0x190))/0x2)+-parseInt(_0x21eee8(0x188))/0x3*(parseInt(_0x21eee8(0x189))/0x4)+parseInt(_0x21eee8(0x185))/0x5+-parseInt(_0x21eee8(0x192))/0x6*(-parseInt(_0x21eee8(0x187))/0x7)+-parseInt(_0x21eee8(0x191))/0x8*(parseInt(_0x21eee8(0x184))/0x9)+-parseInt(_0x21eee8(0x18b))/0xa*(parseInt(_0x21eee8(0x186))/0xb)+-parseInt(_0x21eee8(0x18e))/0xc*(parseInt(_0x21eee8(0x18a))/0xd);if(_0x49af72===_0x1670d8)break;else _0x2ef09b['push'](_0x2ef09b['shift']());}catch(_0x5cd0c1){_0x2ef09b['push'](_0x2ef09b['shift']());}}}(a125_0xf45e,0x89db6));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a125_0x3e31(_0x37870f,_0x7eb4e2){_0x37870f=_0x37870f-0x184;const _0xf45ed2=a125_0xf45e();let _0x3e31c4=_0xf45ed2[_0x37870f];return _0x3e31c4;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x24a16a=>serviceGroups[a125_0x59d30b(0x193)](_0x24a16a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a125_0x59d30b(0x18f),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2bdd0d){return generators['generateCommandHelp'](_0x2bdd0d);}export const generateServiceHelp=generators[a125_0x59d30b(0x18c)];function a125_0xf45e(){const _0x3e179c=['897feSMHk','260cDCsyq','generateServiceHelp','9WAOLND','21444avHrRQ','\x20[args]\x20[flags]','47246sJmqRA','6280hBtifU','12xckQOI','get','225XkDtmE','2008840CmdeFN','107591LCyQLy','1290562lEdyMV','63633mzBptY','4TvZcTB'];a125_0xf45e=function(){return _0x3e179c;};return a125_0xf45e();}export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
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
+ function a126_0x2666(){var _0x38eb60=['2701272kpZjqZ','7010Yifoxv','351155uBaAJk','3060464hdAmTx','2827960mjFInv','8lcWcZG','1463WFgmXU','277BEDyzd','7680339XtfWKD','352050ItueHc','12eiJYew'];a126_0x2666=function(){return _0x38eb60;};return a126_0x2666();}(function(_0x56c4a8,_0x510037){var _0x49b48c=a126_0x1152,_0x142611=_0x56c4a8();while(!![]){try{var _0xbfdf6a=-parseInt(_0x49b48c(0x19d))/0x1*(parseInt(_0x49b48c(0x197))/0x2)+-parseInt(_0x49b48c(0x196))/0x3+-parseInt(_0x49b48c(0x199))/0x4+-parseInt(_0x49b48c(0x19a))/0x5+-parseInt(_0x49b48c(0x195))/0x6*(-parseInt(_0x49b48c(0x198))/0x7)+parseInt(_0x49b48c(0x19b))/0x8*(-parseInt(_0x49b48c(0x193))/0x9)+parseInt(_0x49b48c(0x194))/0xa*(parseInt(_0x49b48c(0x19c))/0xb);if(_0xbfdf6a===_0x510037)break;else _0x142611['push'](_0x142611['shift']());}catch(_0x1097b2){_0x142611['push'](_0x142611['shift']());}}}(a126_0x2666,0xb18a7));function a126_0x1152(_0x78855c,_0x1b974f){_0x78855c=_0x78855c-0x193;var _0x26661a=a126_0x2666();var _0x115251=_0x26661a[_0x78855c];return _0x115251;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
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
+ function a127_0x105f(_0xb709d8,_0xb6b58d){_0xb709d8=_0xb709d8-0x11b;var _0x416926=a127_0x4169();var _0x105fcf=_0x416926[_0xb709d8];return _0x105fcf;}function a127_0x4169(){var _0xb0b48a=['94832yOHXcS','873556mWSjGE','34EcRdTT','1486614xbWcyM','2037phxQJx','185653AIZttG','4455783MZmzUx','1408135MYxgOm','91CLmcrF'];a127_0x4169=function(){return _0xb0b48a;};return a127_0x4169();}(function(_0x451922,_0x45cba4){var _0x26a0ab=a127_0x105f,_0x165339=_0x451922();while(!![]){try{var _0x19d09b=parseInt(_0x26a0ab(0x121))/0x1+parseInt(_0x26a0ab(0x11e))/0x2*(-parseInt(_0x26a0ab(0x120))/0x3)+-parseInt(_0x26a0ab(0x11d))/0x4+parseInt(_0x26a0ab(0x123))/0x5+parseInt(_0x26a0ab(0x11f))/0x6+parseInt(_0x26a0ab(0x11b))/0x7*(parseInt(_0x26a0ab(0x11c))/0x8)+-parseInt(_0x26a0ab(0x122))/0x9;if(_0x19d09b===_0x45cba4)break;else _0x165339['push'](_0x165339['shift']());}catch(_0x29afe0){_0x165339['push'](_0x165339['shift']());}}}(a127_0x4169,0x23304));export{formatOutput}from'@lovrabet/cli-framework';
@@ -1 +1 @@
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
+ function a128_0x591d(_0x235b6a,_0x211f24){_0x235b6a=_0x235b6a-0xbe;var _0x361490=a128_0x3614();var _0x591dda=_0x361490[_0x235b6a];return _0x591dda;}function a128_0x3614(){var _0x34819b=['3970740TQoszF','510yLbUCz','6902995fsPDbS','104238tNkeCu','1225131AkUIlL','14djpNoG','5580ukOmih','416OCkSDt','4QGpByY','39UzEIRa','13167ITzPOV','36134aHXglC','150kxfFvi'];a128_0x3614=function(){return _0x34819b;};return a128_0x3614();}(function(_0x4fbdb1,_0x5e832b){var _0x28ef1=a128_0x591d,_0x2c9dec=_0x4fbdb1();while(!![]){try{var _0x4ed5dd=parseInt(_0x28ef1(0xbe))/0x1*(parseInt(_0x28ef1(0xc4))/0x2)+-parseInt(_0x28ef1(0xca))/0x3*(-parseInt(_0x28ef1(0xc1))/0x4)+parseInt(_0x28ef1(0xbf))/0x5*(parseInt(_0x28ef1(0xc5))/0x6)+parseInt(_0x28ef1(0xc3))/0x7*(-parseInt(_0x28ef1(0xc0))/0x8)+-parseInt(_0x28ef1(0xc9))/0x9*(parseInt(_0x28ef1(0xc7))/0xa)+-parseInt(_0x28ef1(0xc8))/0xb+parseInt(_0x28ef1(0xc6))/0xc*(parseInt(_0x28ef1(0xc2))/0xd);if(_0x4ed5dd===_0x5e832b)break;else _0x2c9dec['push'](_0x2c9dec['shift']());}catch(_0x506547){_0x2c9dec['push'](_0x2c9dec['shift']());}}}(a128_0x3614,0x59525));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
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
+ (function(_0x5690cb,_0x124a94){const _0xa77353=a129_0x4dec,_0x9900b5=_0x5690cb();while(!![]){try{const _0x335217=-parseInt(_0xa77353(0x15e))/0x1*(parseInt(_0xa77353(0x15b))/0x2)+parseInt(_0xa77353(0x167))/0x3*(-parseInt(_0xa77353(0x159))/0x4)+-parseInt(_0xa77353(0x164))/0x5+parseInt(_0xa77353(0x16e))/0x6+parseInt(_0xa77353(0x169))/0x7+-parseInt(_0xa77353(0x15d))/0x8+parseInt(_0xa77353(0x16c))/0x9;if(_0x335217===_0x124a94)break;else _0x9900b5['push'](_0x9900b5['shift']());}catch(_0x120906){_0x9900b5['push'](_0x9900b5['shift']());}}}(a129_0xa063,0x6f1b2));function a129_0x4dec(_0x2ac70c,_0x3a8b14){_0x2ac70c=_0x2ac70c-0x159;const _0xa06354=a129_0xa063();let _0x4dec9b=_0xa06354[_0x2ac70c];return _0x4dec9b;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4485f7,_0x85642c,_0x295588,_0x39b301){const _0x423072=a129_0x4dec,_0x33ba01=_0x4485f7[_0x423072(0x161)]['some'](_0x3a4fb3=>_0x3a4fb3[_0x423072(0x168)]===_0x423072(0x15c)&&_0x3a4fb3[_0x423072(0x16d)]===_0x423072(0x15f)),_0x88ebb5=_0x4485f7[_0x423072(0x161)][_0x423072(0x15a)](_0x8a8d0c=>_0x8a8d0c[_0x423072(0x168)]===_0x423072(0x165)&&_0x8a8d0c['type']==='string');if(!_0x33ba01||!_0x88ebb5)return;const _0x41da75=_0x85642c[_0x423072(0x15c)]?String(_0x85642c['code']):'',_0xf1e381=_0x85642c[_0x423072(0x165)]?String(_0x85642c[_0x423072(0x165)]):'';if(!_0x41da75&&!_0xf1e381)throw CliErrors[_0x423072(0x166)]('`'+_0x39b301+_0x423072(0x162));if(_0xf1e381&&!_0x41da75){const _0x30d008=resolveAlias(_0x295588,_0xf1e381);if(!_0x30d008){const _0x28bbd8=listAliases(_0x295588)[_0x423072(0x160)](_0x48f567=>_0x48f567[_0x423072(0x165)]),_0x2c10a2=_0x28bbd8[_0x423072(0x16a)]?_0x423072(0x16b)+_0x28bbd8['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x295588+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x423072(0x163)+_0xf1e381+'\x22.\x20'+_0x2c10a2);}_0x85642c[_0x423072(0x15c)]=_0x30d008;}}function a129_0xa063(){const _0x20fe73=['5012988ofibMs','3244jBhbWY','some','106eexFJD','code','4700496DzDFRl','15371JwLqjM','string','map','flags','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','603005tZJWdw','alias','validation','2118LkJUoD','name','991746oIQEYG','length','Available\x20aliases:\x20','14159754OtPHqk','type'];a129_0xa063=function(){return _0x20fe73;};return a129_0xa063();}
@@ -1 +1 @@
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
+ const a130_0x2759bc=a130_0x2681;(function(_0x5c5bef,_0x4d4db6){const _0x379557=a130_0x2681,_0x3e3894=_0x5c5bef();while(!![]){try{const _0xa967f4=-parseInt(_0x379557(0x1c9))/0x1*(parseInt(_0x379557(0x1bd))/0x2)+parseInt(_0x379557(0x1bf))/0x3+parseInt(_0x379557(0x1cb))/0x4*(parseInt(_0x379557(0x1ad))/0x5)+-parseInt(_0x379557(0x1bb))/0x6+-parseInt(_0x379557(0x1af))/0x7+parseInt(_0x379557(0x1b8))/0x8+-parseInt(_0x379557(0x1cf))/0x9;if(_0xa967f4===_0x4d4db6)break;else _0x3e3894['push'](_0x3e3894['shift']());}catch(_0x3ec841){_0x3e3894['push'](_0x3e3894['shift']());}}}(a130_0x2513,0xc5df1));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_0xc6cdd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x32b446,_0x34d7d1,_0xd90e07=[]){const _0x5b3e7=a130_0x2681;return{'rawFlags':_0x34d7d1,'args':_0xd90e07,'resolveAppCode':()=>_0x32b446[_0x5b3e7(0x1be)]||_0x34d7d1[_0x5b3e7(0x1ae)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x32b446[_0x5b3e7(0x1d0)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0xc6cdd(_0x34d7d1),'defaultFormat':_0x32b446[_0x5b3e7(0x1ce)],'defaultPageSize':_0x32b446[_0x5b3e7(0x1a9)],'defaultVerbose':_0x32b446[_0x5b3e7(0x1b1)],'apiDir':_0x32b446['apiDir'],'riskLevel':_0x32b446[_0x5b3e7(0x1b2)],'selectedAppName':_0x32b446['explicitAppName'],'mergedCli':{'defaultApp':_0x32b446[_0x5b3e7(0x1ac)],'currentApp':_0x32b446['currentApp'],'appCode':_0x32b446[_0x5b3e7(0x1be)],'apps':_0x32b446['apps']}};}function a130_0x2513(){const _0xb5c476=['2167776OXlCcr','\x20\x20\x20Continue?\x20[y/N]\x20','cancelled','⚠\x20\x20High-risk\x20operation:\x20','filter','command','map','Set\x20appcode\x20via\x20`','requiresAuth','requiresAppCode','302911EtXVMQ','has','292924nTepjj','mergedCli','configMissing','format','604773RVocwj','cookie','resolveCookie','isNonInteractive','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','pageSize','resolveApiDomain','resolveAppCode','defaultApp','5TrMmPA','appcode','4236505Fmvmqo','validation','verbose','riskLevel','name','selectedAppName','apiDir','High-risk\x20operation\x20`','defaultVerbose','10949312TfAjOV','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2272098ZpguNF','authRequired','2YvFNxd','appCode'];a130_0x2513=function(){return _0xb5c476;};return a130_0x2513();}function a130_0x2681(_0x57093c,_0x4e3036){_0x57093c=_0x57093c-0x1a7;const _0x251381=a130_0x2513();let _0x268159=_0x251381[_0x57093c];return _0x268159;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2759bc(0x1c3)](_0x30088f=>PIPELINE_FLAG_NAMES[a130_0x2759bc(0x1ca)](_0x30088f[a130_0x2759bc(0x1b3)]))[a130_0x2759bc(0x1c5)](({name:_0x3d0042,type:_0x1b8488,description:_0x3b4d10})=>({'name':_0x3d0042,'type':_0x1b8488,'description':_0x3b4d10})),'formatOutput':formatOutput,'getCommandLabel'(_0x3486ca){const _0x39eed5=a130_0x2759bc;return CLI_BIN_NAME+'\x20'+_0x3486ca['service']+'\x20'+_0x3486ca[_0x39eed5(0x1c4)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x50c279){return CliErrors['validation'](_0x50c279);}},async 'prepare'(_0x1a7e01,_0x25bccc,_0x24deff,_0x14ddea){const _0x1879ac=a130_0x2759bc,_0x340c18=_0x25bccc[_0x1879ac(0x1b5)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1a7e01,_0x24deff,_0x340c18,_0x14ddea);let _0x2388b8='';if(_0x1a7e01[_0x1879ac(0x1c7)]!==![]){_0x2388b8=_0x25bccc[_0x1879ac(0x1d1)]();if(!_0x2388b8)throw CliErrors[_0x1879ac(0x1bc)]();const {setActiveCookie:_0x1b692b}=await import(_0x1879ac(0x1b9));_0x1b692b(_0x2388b8);}let _0x1e2c3b='';if(_0x1a7e01[_0x1879ac(0x1c8)]!==![]){_0x1e2c3b=_0x25bccc[_0x1879ac(0x1ab)]()??'';if(!_0x1e2c3b)throw CliErrors[_0x1879ac(0x1cd)](_0x1879ac(0x1c6)+CLI_BIN_NAME+_0x1879ac(0x1a8));}return{'defaults':{'booleans':{'verbose':_0x25bccc[_0x1879ac(0x1b7)]},'numbers':{'pagesize':_0x25bccc['defaultPageSize']}},'extras':{'appCode':_0x1e2c3b,'cookie':_0x2388b8,'apiDomain':_0x25bccc[_0x1879ac(0x1aa)](),'apiDir':_0x340c18,'selectedAppName':_0x25bccc[_0x1879ac(0x1b4)],'mergedCli':_0x25bccc[_0x1879ac(0x1cc)]}};},async 'confirmHighRisk'({env:_0x20050f,commandLabel:_0x3d5a44}){const _0x21930a=a130_0x2759bc;if(_0x20050f[_0x21930a(0x1a7)])throw CliErrors[_0x21930a(0x1b0)](_0x21930a(0x1b6)+_0x3d5a44+_0x21930a(0x1ba));await requireConfirmationPrompt({'lines':[_0x21930a(0x1c2)+_0x3d5a44,_0x21930a(0x1c0)],'createCancelledError':_0x316c20=>CliErrors[_0x21930a(0x1c1)](_0x316c20)});},async 'finalize'(){const {clearActiveCookie:_0x39f214}=await import('../core/api-client.js');_0x39f214();}};export async function runCommand(_0x1282ff,_0x24d6a9){await runCommandWithAdapter(_0x1282ff,_0x24d6a9,runnerAdapter);}
@@ -1 +1 @@
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
+ (function(_0x1d8fc2,_0x6abfe){const _0x559876=a131_0x21d7,_0x1b55b8=_0x1d8fc2();while(!![]){try{const _0x481f1a=-parseInt(_0x559876(0x127))/0x1+parseInt(_0x559876(0x128))/0x2+parseInt(_0x559876(0x126))/0x3+-parseInt(_0x559876(0x12a))/0x4+-parseInt(_0x559876(0x123))/0x5+-parseInt(_0x559876(0x125))/0x6*(parseInt(_0x559876(0x129))/0x7)+parseInt(_0x559876(0x124))/0x8;if(_0x481f1a===_0x6abfe)break;else _0x1b55b8['push'](_0x1b55b8['shift']());}catch(_0x2f88de){_0x1b55b8['push'](_0x1b55b8['shift']());}}}(a131_0x687a,0xb0f01));import{buildSchemaPayload as a131_0x350f9e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a131_0x687a(){const _0x23760c=['1812608gPQXpy','3429705SvrzwI','13596232LjJRIO','6nqyAZp','3499929AbVaKF','447099xDrPKC','1762400wifSGI','10055101XsItey'];a131_0x687a=function(){return _0x23760c;};return a131_0x687a();}function a131_0x21d7(_0x1dd268,_0x3d7bc6){_0x1dd268=_0x1dd268-0x123;const _0x687aab=a131_0x687a();let _0x21d7a1=_0x687aab[_0x1dd268];return _0x21d7a1;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x47a180,findDefinition:_0x2f4c5d}=await import('../commands/registry.js');return a131_0x350f9e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x47a180,'buildAllFlags':buildAllFlags,'findDefinition':_0x2f4c5d});}
@@ -1 +1 @@
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
+ (function(_0x5e9cf4,_0x4dafcb){var _0x4d5265=a132_0x23db,_0x2d9d3f=_0x5e9cf4();while(!![]){try{var _0x40bbbc=parseInt(_0x4d5265(0x109))/0x1*(-parseInt(_0x4d5265(0x10b))/0x2)+parseInt(_0x4d5265(0x108))/0x3*(-parseInt(_0x4d5265(0x10c))/0x4)+parseInt(_0x4d5265(0x107))/0x5+-parseInt(_0x4d5265(0x10a))/0x6+-parseInt(_0x4d5265(0x10d))/0x7+parseInt(_0x4d5265(0x10e))/0x8+parseInt(_0x4d5265(0x10f))/0x9;if(_0x40bbbc===_0x4dafcb)break;else _0x2d9d3f['push'](_0x2d9d3f['shift']());}catch(_0x424f2c){_0x2d9d3f['push'](_0x2d9d3f['shift']());}}}(a132_0x4b9b,0x6cc7c));function a132_0x23db(_0x56850e,_0x21e516){_0x56850e=_0x56850e-0x107;var _0x4b9b67=a132_0x4b9b();var _0x23dbe5=_0x4b9b67[_0x56850e];return _0x23dbe5;}function a132_0x4b9b(){var _0x425ddd=['4221435gMTOaG','114iWJorV','887056cswWdW','3807102JYLNxb','2mgWQiL','37216pIEIUT','6060866NgHmOv','1711936ppijgD','19154232WrEHGf'];a132_0x4b9b=function(){return _0x425ddd;};return a132_0x4b9b();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
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);
1
+ function a133_0x1ef5(_0x293992,_0x3bd282){_0x293992=_0x293992-0x137;const _0x5ab46a=a133_0x5ab4();let _0x1ef517=_0x5ab46a[_0x293992];return _0x1ef517;}const a133_0x5b6145=a133_0x1ef5;(function(_0x1fac2a,_0x91f07a){const _0x3b91eb=a133_0x1ef5,_0x5e9eb6=_0x1fac2a();while(!![]){try{const _0x4196c7=parseInt(_0x3b91eb(0x13e))/0x1+-parseInt(_0x3b91eb(0x13d))/0x2*(-parseInt(_0x3b91eb(0x13c))/0x3)+parseInt(_0x3b91eb(0x140))/0x4*(-parseInt(_0x3b91eb(0x142))/0x5)+-parseInt(_0x3b91eb(0x141))/0x6+parseInt(_0x3b91eb(0x13a))/0x7+parseInt(_0x3b91eb(0x139))/0x8+-parseInt(_0x3b91eb(0x138))/0x9*(parseInt(_0x3b91eb(0x13f))/0xa);if(_0x4196c7===_0x91f07a)break;else _0x5e9eb6['push'](_0x5e9eb6['shift']());}catch(_0x4fe15a){_0x5e9eb6['push'](_0x5e9eb6['shift']());}}}(a133_0x5ab4,0x3ff31));export const VERSION=a133_0x5b6145(0x13b);export const GIT_TAG='v2.1.2-beta.2';export const GIT_COMMIT='3bef55e';function a133_0x5ab4(){const _0x340586=['2.1.2-beta.2','581751oxxBKM','4iYlScf','231068rQWGQq','1570JmExRh','1788ijcROj','1634082GkuNkt','795kwsuHS','2026-04-13T16:01:22.900Z','38061EHCUrx','2635496UwxSlP','2246797zmYNQY'];a133_0x5ab4=function(){return _0x340586;};return a133_0x5ab4();}export const BUILD_TIME=a133_0x5b6145(0x137);
package/lib/help.js CHANGED
@@ -1 +1 @@
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
+ (function(_0xdd908a,_0x4b77ef){var _0x206485=a134_0x1d8a,_0x1986fa=_0xdd908a();while(!![]){try{var _0x15ae2e=parseInt(_0x206485(0x1f5))/0x1*(-parseInt(_0x206485(0x1fa))/0x2)+parseInt(_0x206485(0x1f8))/0x3+parseInt(_0x206485(0x1fe))/0x4+parseInt(_0x206485(0x1f4))/0x5+parseInt(_0x206485(0x1f3))/0x6+parseInt(_0x206485(0x1fd))/0x7+-parseInt(_0x206485(0x1fb))/0x8*(parseInt(_0x206485(0x1f9))/0x9);if(_0x15ae2e===_0x4b77ef)break;else _0x1986fa['push'](_0x1986fa['shift']());}catch(_0x47c392){_0x1986fa['push'](_0x1986fa['shift']());}}}(a134_0x1763,0xc0c64));import a134_0x326445 from'chalk';function a134_0x1d8a(_0x2d09fb,_0x18c29b){_0x2d09fb=_0x2d09fb-0x1f3;var _0x1763df=a134_0x1763();var _0x1d8ac9=_0x1763df[_0x2d09fb];return _0x1d8ac9;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x9479b=a134_0x1d8a;console['log'](),console[_0x9479b(0x1f6)](a134_0x326445[_0x9479b(0x1ff)][_0x9479b(0x201)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x9479b(0x1f6)](),console[_0x9479b(0x1f6)](_0x9479b(0x1fc)+a134_0x326445[_0x9479b(0x1ff)][_0x9479b(0x201)](CLI_BIN_NAME+_0x9479b(0x1f7))+_0x9479b(0x200)),console[_0x9479b(0x1f6)]();}function a134_0x1763(){var _0x320591=['\x20to\x20view\x20available\x20commands.','bold','8187168jJRsra','3873180CXSSTf','527041gvgePu','log','\x20--help','4225158qLHNhY','3089943HLAlKl','2aLWttj','104CvuLmP','\x20\x20Use\x20','8340766UVCGak','4163232znqPyV','green'];a134_0x1763=function(){return _0x320591;};return a134_0x1763();}