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

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 (162) 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 -0
  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 -0
  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 -0
  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 -0
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -0
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -0
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -0
  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 -0
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/file-utils.js +1 -1
  149. package/lib/utils/guides-cdn.js +1 -1
  150. package/lib/utils/http-client.js +1 -1
  151. package/lib/utils/is-non-interactive.js +1 -1
  152. package/lib/utils/logger.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/rules-cdn.js +1 -1
  155. package/lib/utils/sleep.js +1 -1
  156. package/lib/utils/template-replacer.js +1 -1
  157. package/lib/utils/version.js +1 -1
  158. package/lib/utils/with-active-cookie.js +1 -1
  159. package/lib/utils/write-cli-side-channel.js +1 -1
  160. package/package.json +3 -2
  161. package/lib/commands/api/doc.js +0 -1
  162. package/lib/commands/app/remote.js +0 -1
@@ -1 +1 @@
1
- const a110_0x5c819a=a110_0xe269;(function(_0x2706dc,_0x4f166a){const _0x55fb54=a110_0xe269,_0x5cd03e=_0x2706dc();while(!![]){try{const _0x41f742=-parseInt(_0x55fb54(0x11a))/0x1*(parseInt(_0x55fb54(0x130))/0x2)+-parseInt(_0x55fb54(0x132))/0x3*(-parseInt(_0x55fb54(0x13e))/0x4)+parseInt(_0x55fb54(0x13f))/0x5*(parseInt(_0x55fb54(0x13a))/0x6)+parseInt(_0x55fb54(0x140))/0x7+parseInt(_0x55fb54(0x12d))/0x8+-parseInt(_0x55fb54(0x121))/0x9+-parseInt(_0x55fb54(0x131))/0xa;if(_0x41f742===_0x4f166a)break;else _0x5cd03e['push'](_0x5cd03e['shift']());}catch(_0x42a2c2){_0x5cd03e['push'](_0x5cd03e['shift']());}}}(a110_0x4377,0x4ee4a));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=[a110_0x5c819a(0x11d),a110_0x5c819a(0x118),a110_0x5c819a(0x12c)];export function normalizeBffType(_0x83fab4){const _0x5ea50c=a110_0x5c819a;if(!_0x83fab4)return undefined;const _0x3de232=_0x83fab4[_0x5ea50c(0x13c)]()[_0x5ea50c(0x129)]();return SUPPORTED_BFF_TYPES[_0x5ea50c(0x138)](_0x3de232)?_0x3de232:undefined;}async function scanJsFilesRecursively(_0x34f9cb,_0x253f1b){const _0x416461=a110_0x5c819a,_0x61b6e1=[];try{const _0x3b1d5f=await readdir(_0x34f9cb,{'withFileTypes':!![]});for(const _0x2968a9 of _0x3b1d5f){const _0x32cb18=join(_0x34f9cb,_0x2968a9['name']);if(_0x2968a9[_0x416461(0x12b)]())_0x61b6e1[_0x416461(0x11f)](...await scanJsFilesRecursively(_0x32cb18,_0x253f1b+'/'+_0x2968a9[_0x416461(0x123)]));else _0x2968a9[_0x416461(0x137)]()&&_0x2968a9['name'][_0x416461(0x12a)]('.js')&&_0x61b6e1[_0x416461(0x11f)]({'lockKey':_0x253f1b+'/'+_0x2968a9[_0x416461(0x123)][_0x416461(0x13d)](/\.js$/,''),'filePath':_0x32cb18});}}catch(_0x40a80e){if(_0x40a80e[_0x416461(0x120)]!=='ENOENT')throw _0x40a80e;}return _0x61b6e1;}async function scanFlatFunctions(_0x468e4b,_0x25ddf0){const _0xc5a399=a110_0x5c819a,_0x1ea465=join(_0x468e4b[_0xc5a399(0x12e)],_0x25ddf0),_0x156257=await scanJsFilesRecursively(_0x1ea465,_0x25ddf0);return _0x156257[_0xc5a399(0x12f)](({lockKey:_0x3828c3,filePath:_0x2e9785})=>({'type':_0x25ddf0,'name':_0x3828c3[_0xc5a399(0x127)]('/')['at'](-0x1)??'','filePath':_0x2e9785,'lockKey':_0x3828c3}));}function a110_0xe269(_0x3f8df0,_0x3100b0){_0x3f8df0=_0x3f8df0-0x118;const _0x437759=a110_0x4377();let _0xe26917=_0x437759[_0x3f8df0];return _0xe26917;}async function scanHookFunctions(_0x1a06f0){const _0x1207ed=a110_0x5c819a,_0x28f3bf=join(_0x1a06f0[_0x1207ed(0x12e)],_0x1207ed(0x12c)),_0x159a45=[];try{const _0x417b30=await readdir(_0x28f3bf,{'withFileTypes':!![]});for(const _0x53ace1 of _0x417b30){if(!_0x53ace1[_0x1207ed(0x12b)]())continue;const _0x2ed1c3=_0x53ace1[_0x1207ed(0x123)],_0x503a74=join(_0x28f3bf,_0x2ed1c3),_0x2540ba=await readdir(_0x503a74,{'withFileTypes':!![]});for(const _0x5cfb9e of _0x2540ba){if(!_0x5cfb9e[_0x1207ed(0x12b)]())continue;const _0x38c609=_0x5cfb9e[_0x1207ed(0x123)],_0x5de8b2=join(_0x503a74,_0x38c609),_0x1e3115=await readdir(_0x5de8b2,{'withFileTypes':!![]});for(const _0x5e6478 of _0x1e3115){if(!_0x5e6478['isDirectory']())continue;const _0x2b5a04=_0x5e6478[_0x1207ed(0x123)],_0x5e5bbc=join(_0x5de8b2,_0x2b5a04),_0x211934=await readdir(_0x5e5bbc,{'withFileTypes':!![]});for(const _0x191ebe of _0x211934){if(!_0x191ebe['isFile']()||!_0x191ebe['name'][_0x1207ed(0x12a)](_0x1207ed(0x124)))continue;const _0x340826=_0x191ebe[_0x1207ed(0x123)][_0x1207ed(0x13d)](/\.js$/,'');_0x159a45[_0x1207ed(0x11f)]({'type':_0x1207ed(0x12c),'name':_0x340826,'filePath':join(_0x5e5bbc,_0x191ebe[_0x1207ed(0x123)]),'lockKey':_0x1207ed(0x135)+_0x2ed1c3+'/'+_0x38c609+'/'+_0x2b5a04+'/'+_0x340826,'alias':_0x2ed1c3,'operationType':_0x38c609,'functionNode':_0x2b5a04});}}}}}catch(_0x513764){if(_0x513764[_0x1207ed(0x120)]!==_0x1207ed(0x128))throw _0x513764;}return _0x159a45;}export async function scanLocalBffFunctions(_0x4f0fda,_0x425c75){const _0x4852c5=a110_0x5c819a;if(_0x425c75===_0x4852c5(0x11d)||_0x425c75===_0x4852c5(0x118))return scanFlatFunctions(_0x4f0fda,_0x425c75);if(_0x425c75===_0x4852c5(0x12c))return scanHookFunctions(_0x4f0fda);const [_0x4c0f14,_0x2fd606,_0xfcfa2c]=await Promise[_0x4852c5(0x13b)]([scanFlatFunctions(_0x4f0fda,'COMMON'),scanFlatFunctions(_0x4f0fda,'ENDPOINT'),scanHookFunctions(_0x4f0fda)]);return[..._0x4c0f14,..._0x2fd606,..._0xfcfa2c];}export function resolveLocalFilePathFromLockKey(_0x285d4e,_0x4e47ca){const _0xbe2a38=a110_0x5c819a;return join(_0x285d4e['scriptsRootDir'],..._0x4e47ca[_0xbe2a38(0x127)]('/'))+'.js';}export function createHookLocationMap(_0x321d16){const _0x44c30f=a110_0x5c819a,_0x219501=new Map();for(const _0x2a8b0b of _0x321d16){_0x2a8b0b[_0x44c30f(0x125)]&&_0x219501[_0x44c30f(0x126)](_0x2a8b0b['beforeScriptId'],{'datasetCode':_0x2a8b0b[_0x44c30f(0x122)],'operationType':snakeToCamel(_0x2a8b0b[_0x44c30f(0x11b)]),'functionNode':'before'}),_0x2a8b0b[_0x44c30f(0x119)]&&_0x219501[_0x44c30f(0x126)](_0x2a8b0b[_0x44c30f(0x119)],{'datasetCode':_0x2a8b0b[_0x44c30f(0x122)],'operationType':snakeToCamel(_0x2a8b0b[_0x44c30f(0x11b)]),'functionNode':_0x44c30f(0x139)});}return _0x219501;}export function resolveRemoteScriptTarget(_0x199664,_0x31d7f8,_0x795e66,_0x2fc0eb,_0x26f140){const _0x30e776=a110_0x5c819a,_0x2ed1df=normalizeBffType(_0x31d7f8[_0x30e776(0x11e)]);if(!_0x2ed1df||!_0x31d7f8['functionName'])return null;if(_0x2ed1df===_0x30e776(0x12c)){const _0x5350d5=(_0x31d7f8['id']?_0x795e66[_0x30e776(0x134)](_0x31d7f8['id']):undefined)??findHookLocationByRemoteId(_0x2fc0eb,_0x31d7f8['id']);if(!_0x5350d5)return null;const _0x264e73=_0x5350d5[_0x30e776(0x133)]||_0x26f140[_0x30e776(0x134)](_0x5350d5[_0x30e776(0x122)]),_0x2543be=_0x264e73??_0x5350d5[_0x30e776(0x122)],_0x45e00a={..._0x5350d5,'alias':_0x264e73},_0x38ba1e=_0x30e776(0x135)+_0x2543be+'/'+_0x45e00a[_0x30e776(0x11b)]+'/'+_0x45e00a['functionNode']+'/'+_0x31d7f8['functionName'];return{'lockKey':_0x38ba1e,'filePath':resolveLocalFilePathFromLockKey(_0x199664,_0x38ba1e),'type':'HOOK','hookLocation':_0x45e00a};}const _0x4466ce=_0x2ed1df+'/'+_0x31d7f8[_0x30e776(0x136)];return{'lockKey':_0x4466ce,'filePath':resolveLocalFilePathFromLockKey(_0x199664,_0x4466ce),'type':_0x2ed1df};}export async function ensureParentDirectory(_0x257108){await mkdir(dirname(_0x257108),{'recursive':!![]});}function a110_0x4377(){const _0x195592=['after','2467050acZtwH','all','trim','replace','128236zSgefo','5enFWEt','4414935dYswVN','ENDPOINT','afterScriptId','1mJDoBr','operationType','F_OK','COMMON','scriptType','push','code','2373642PKBahK','datasetCode','name','.js','beforeScriptId','set','split','ENOENT','toUpperCase','endsWith','isDirectory','HOOK','1523208pSvzXd','scriptsRootDir','map','470138KzRbpM','7629770vMmnaG','33nmfJJt','alias','get','HOOK/','functionName','isFile','includes'];a110_0x4377=function(){return _0x195592;};return a110_0x4377();}export async function fileExists(_0xdc98e3){const _0x759b3d=a110_0x5c819a;try{return await access(_0xdc98e3,constants[_0x759b3d(0x11c)]),!![];}catch{return![];}}export async function directoryExists(_0x2c73d5){const _0x40fe49=a110_0x5c819a;try{const _0x4c1b50=await stat(_0x2c73d5);return _0x4c1b50[_0x40fe49(0x12b)]();}catch{return![];}}
1
+ const a115_0x2389d3=a115_0x50c2;(function(_0x5e2aba,_0x230140){const _0x55a0ca=a115_0x50c2,_0x45fadd=_0x5e2aba();while(!![]){try{const _0x88fdd6=parseInt(_0x55a0ca(0x100))/0x1*(parseInt(_0x55a0ca(0x103))/0x2)+parseInt(_0x55a0ca(0x102))/0x3+-parseInt(_0x55a0ca(0xe5))/0x4+parseInt(_0x55a0ca(0xf1))/0x5+parseInt(_0x55a0ca(0xf6))/0x6+parseInt(_0x55a0ca(0xf7))/0x7+-parseInt(_0x55a0ca(0xf8))/0x8*(parseInt(_0x55a0ca(0xeb))/0x9);if(_0x88fdd6===_0x230140)break;else _0x45fadd['push'](_0x45fadd['shift']());}catch(_0x200ef5){_0x45fadd['push'](_0x45fadd['shift']());}}}(a115_0x2124,0x75e40));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a115_0x2389d3(0xfe),a115_0x2389d3(0xfb),'HOOK'];export function normalizeBffType(_0x54c1b8){const _0xa0324=a115_0x2389d3;if(!_0x54c1b8)return undefined;const _0x340b18=_0x54c1b8['trim']()[_0xa0324(0xf3)]();return SUPPORTED_BFF_TYPES['includes'](_0x340b18)?_0x340b18:undefined;}async function scanJsFilesRecursively(_0x723294,_0x2b1869){const _0x520dd9=a115_0x2389d3,_0x155f96=[];try{const _0x3699c1=await readdir(_0x723294,{'withFileTypes':!![]});for(const _0x340c11 of _0x3699c1){const _0x206170=join(_0x723294,_0x340c11['name']);if(_0x340c11[_0x520dd9(0xf9)]())_0x155f96['push'](...await scanJsFilesRecursively(_0x206170,_0x2b1869+'/'+_0x340c11[_0x520dd9(0xf2)]));else _0x340c11[_0x520dd9(0xfc)]()&&_0x340c11[_0x520dd9(0xf2)][_0x520dd9(0xe2)]('.js')&&_0x155f96[_0x520dd9(0x104)]({'lockKey':_0x2b1869+'/'+_0x340c11[_0x520dd9(0xf2)][_0x520dd9(0x105)](/\.js$/,''),'filePath':_0x206170});}}catch(_0x2efd79){if(_0x2efd79[_0x520dd9(0xe8)]!==_0x520dd9(0x101))throw _0x2efd79;}return _0x155f96;}function a115_0x50c2(_0x210416,_0x37240e){_0x210416=_0x210416-0xe0;const _0x2124e0=a115_0x2124();let _0x50c2e0=_0x2124e0[_0x210416];return _0x50c2e0;}async function scanFlatFunctions(_0x2d6a5f,_0x54acfa){const _0x4eb99d=a115_0x2389d3,_0x267157=join(_0x2d6a5f['scriptsRootDir'],_0x54acfa),_0x1611d4=await scanJsFilesRecursively(_0x267157,_0x54acfa);return _0x1611d4[_0x4eb99d(0xe9)](({lockKey:_0x1485b3,filePath:_0x2e88d2})=>({'type':_0x54acfa,'name':_0x1485b3[_0x4eb99d(0xe7)]('/')['at'](-0x1)??'','filePath':_0x2e88d2,'lockKey':_0x1485b3}));}async function scanHookFunctions(_0x2f510a){const _0xb4ba20=a115_0x2389d3,_0x2f3338=join(_0x2f510a[_0xb4ba20(0xf5)],_0xb4ba20(0xe1)),_0x59c284=[];try{const _0x388661=await readdir(_0x2f3338,{'withFileTypes':!![]});for(const _0x57adc1 of _0x388661){if(!_0x57adc1[_0xb4ba20(0xf9)]())continue;const _0x5c5194=_0x57adc1[_0xb4ba20(0xf2)],_0x28cda1=join(_0x2f3338,_0x5c5194),_0x403d2d=await readdir(_0x28cda1,{'withFileTypes':!![]});for(const _0x227d1f of _0x403d2d){if(!_0x227d1f[_0xb4ba20(0xf9)]())continue;const _0x26e420=_0x227d1f['name'],_0x1f2bf9=join(_0x28cda1,_0x26e420),_0x10a0a6=await readdir(_0x1f2bf9,{'withFileTypes':!![]});for(const _0x4042a0 of _0x10a0a6){if(!_0x4042a0[_0xb4ba20(0xf9)]())continue;const _0x2a5437=_0x4042a0[_0xb4ba20(0xf2)],_0x16ae08=join(_0x1f2bf9,_0x2a5437),_0x2ab646=await readdir(_0x16ae08,{'withFileTypes':!![]});for(const _0x52e5a3 of _0x2ab646){if(!_0x52e5a3[_0xb4ba20(0xfc)]()||!_0x52e5a3[_0xb4ba20(0xf2)][_0xb4ba20(0xe2)]('.js'))continue;const _0xbbc5cb=_0x52e5a3[_0xb4ba20(0xf2)][_0xb4ba20(0x105)](/\.js$/,'');_0x59c284[_0xb4ba20(0x104)]({'type':'HOOK','name':_0xbbc5cb,'filePath':join(_0x16ae08,_0x52e5a3[_0xb4ba20(0xf2)]),'lockKey':_0xb4ba20(0xe6)+_0x5c5194+'/'+_0x26e420+'/'+_0x2a5437+'/'+_0xbbc5cb,'alias':_0x5c5194,'operationType':_0x26e420,'functionNode':_0x2a5437});}}}}}catch(_0xf679e0){if(_0xf679e0[_0xb4ba20(0xe8)]!==_0xb4ba20(0x101))throw _0xf679e0;}return _0x59c284;}function a115_0x2124(){const _0x121689=['scriptType','1385592kiqJNU','HOOK/','split','code','map','operationType','11979Vyogrl','beforeScriptId','after','all','set','functionNode','4703320ENUtAx','name','toUpperCase','datasetCode','scriptsRootDir','2595654byzWPP','1411067JHUHIN','11728JaYUHD','isDirectory','before','ENDPOINT','isFile','functionName','COMMON','afterScriptId','34589ZaPnVy','ENOENT','1437903XInqPA','42nucYKh','push','replace','F_OK','HOOK','endsWith','get'];a115_0x2124=function(){return _0x121689;};return a115_0x2124();}export async function scanLocalBffFunctions(_0x3605b,_0x588790){const _0x1966cd=a115_0x2389d3;if(_0x588790===_0x1966cd(0xfe)||_0x588790===_0x1966cd(0xfb))return scanFlatFunctions(_0x3605b,_0x588790);if(_0x588790==='HOOK')return scanHookFunctions(_0x3605b);const [_0xaea028,_0xf453c3,_0x459bbb]=await Promise[_0x1966cd(0xee)]([scanFlatFunctions(_0x3605b,_0x1966cd(0xfe)),scanFlatFunctions(_0x3605b,'ENDPOINT'),scanHookFunctions(_0x3605b)]);return[..._0xaea028,..._0xf453c3,..._0x459bbb];}export function resolveLocalFilePathFromLockKey(_0x597d4c,_0x300b0b){const _0x4a6df6=a115_0x2389d3;return join(_0x597d4c[_0x4a6df6(0xf5)],..._0x300b0b[_0x4a6df6(0xe7)]('/'))+'.js';}export function createHookLocationMap(_0x1e4b2b){const _0x40b36d=a115_0x2389d3,_0x4a1b61=new Map();for(const _0x2c2fbb of _0x1e4b2b){_0x2c2fbb[_0x40b36d(0xec)]&&_0x4a1b61['set'](_0x2c2fbb[_0x40b36d(0xec)],{'datasetCode':_0x2c2fbb[_0x40b36d(0xf4)],'operationType':snakeToCamel(_0x2c2fbb[_0x40b36d(0xea)]),'functionNode':_0x40b36d(0xfa)}),_0x2c2fbb[_0x40b36d(0xff)]&&_0x4a1b61[_0x40b36d(0xef)](_0x2c2fbb[_0x40b36d(0xff)],{'datasetCode':_0x2c2fbb[_0x40b36d(0xf4)],'operationType':snakeToCamel(_0x2c2fbb[_0x40b36d(0xea)]),'functionNode':_0x40b36d(0xed)});}return _0x4a1b61;}export function resolveRemoteScriptTarget(_0x169fe8,_0x5558bc,_0x5c0136,_0x1ac44d,_0x30c28e){const _0x485622=a115_0x2389d3,_0x25a380=normalizeBffType(_0x5558bc[_0x485622(0xe4)]);if(!_0x25a380||!_0x5558bc[_0x485622(0xfd)])return null;if(_0x25a380===_0x485622(0xe1)){const _0x419dd6=(_0x5558bc['id']?_0x5c0136[_0x485622(0xe3)](_0x5558bc['id']):undefined)??findHookLocationByRemoteId(_0x1ac44d,_0x5558bc['id']);if(!_0x419dd6)return null;const _0x2ed44a=_0x419dd6['alias']||_0x30c28e[_0x485622(0xe3)](_0x419dd6[_0x485622(0xf4)]),_0x30c724=_0x2ed44a??_0x419dd6[_0x485622(0xf4)],_0x7c5f7d={..._0x419dd6,'alias':_0x2ed44a},_0xedbd65=_0x485622(0xe6)+_0x30c724+'/'+_0x7c5f7d[_0x485622(0xea)]+'/'+_0x7c5f7d[_0x485622(0xf0)]+'/'+_0x5558bc[_0x485622(0xfd)];return{'lockKey':_0xedbd65,'filePath':resolveLocalFilePathFromLockKey(_0x169fe8,_0xedbd65),'type':_0x485622(0xe1),'hookLocation':_0x7c5f7d};}const _0x2e9844=_0x25a380+'/'+_0x5558bc['functionName'];return{'lockKey':_0x2e9844,'filePath':resolveLocalFilePathFromLockKey(_0x169fe8,_0x2e9844),'type':_0x25a380};}export async function ensureParentDirectory(_0x13f93f){await mkdir(dirname(_0x13f93f),{'recursive':!![]});}export async function fileExists(_0x13d335){const _0x456d42=a115_0x2389d3;try{return await access(_0x13d335,constants[_0x456d42(0xe0)]),!![];}catch{return![];}}export async function directoryExists(_0x54d263){try{const _0x286674=await stat(_0x54d263);return _0x286674['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2426b6,_0x3c3150){const _0x2b9382=a111_0x43c9,_0x5a5fac=_0x2426b6();while(!![]){try{const _0x274600=-parseInt(_0x2b9382(0xb2))/0x1*(-parseInt(_0x2b9382(0xbc))/0x2)+parseInt(_0x2b9382(0xbf))/0x3*(parseInt(_0x2b9382(0xb8))/0x4)+-parseInt(_0x2b9382(0xb3))/0x5*(-parseInt(_0x2b9382(0xb9))/0x6)+parseInt(_0x2b9382(0xbe))/0x7+-parseInt(_0x2b9382(0xb5))/0x8*(-parseInt(_0x2b9382(0xb6))/0x9)+parseInt(_0x2b9382(0xba))/0xa*(-parseInt(_0x2b9382(0xb7))/0xb)+-parseInt(_0x2b9382(0xbb))/0xc;if(_0x274600===_0x3c3150)break;else _0x5a5fac['push'](_0x5a5fac['shift']());}catch(_0x22fa74){_0x5a5fac['push'](_0x5a5fac['shift']());}}}(a111_0x3a19,0xe3cda));function a111_0x43c9(_0x4c340f,_0x510552){_0x4c340f=_0x4c340f-0xb2;const _0x3a1923=a111_0x3a19();let _0x43c967=_0x3a1923[_0x4c340f];return _0x43c967;}import{readFile}from'node:fs/promises';import a111_0x14c4e1 from'node:crypto';function a111_0x3a19(){const _0x424f36=['41164464yygFfu','746qDLzFK','digest','12101985oicQdB','106611Eoqrwi','2251ksPgBZ','5fQtddg','md5','72pSAAsn','1099341vWLkgk','4663362UxZYvX','88glnodE','7113882nZdrER','30dRmkdJ'];a111_0x3a19=function(){return _0x424f36;};return a111_0x3a19();}export function computeContentHash(_0x47e226){const _0x52644e=a111_0x43c9;return a111_0x14c4e1['createHash'](_0x52644e(0xb4))['update'](_0x47e226)[_0x52644e(0xbd)]('hex');}export async function computeFileHash(_0xca9eb2){const _0x59216e=await readFile(_0xca9eb2,'utf8');return computeContentHash(_0x59216e);}
1
+ (function(_0xf07025,_0x5b358e){const _0x3294a4=a116_0x479c,_0xab4cc2=_0xf07025();while(!![]){try{const _0x1d9c4f=parseInt(_0x3294a4(0x10f))/0x1+-parseInt(_0x3294a4(0x112))/0x2+-parseInt(_0x3294a4(0x116))/0x3*(-parseInt(_0x3294a4(0x110))/0x4)+-parseInt(_0x3294a4(0x10d))/0x5+-parseInt(_0x3294a4(0x114))/0x6*(parseInt(_0x3294a4(0x113))/0x7)+parseInt(_0x3294a4(0x117))/0x8+-parseInt(_0x3294a4(0x10e))/0x9;if(_0x1d9c4f===_0x5b358e)break;else _0xab4cc2['push'](_0xab4cc2['shift']());}catch(_0x155ed9){_0xab4cc2['push'](_0xab4cc2['shift']());}}}(a116_0x374d,0xba5c3));function a116_0x479c(_0x4a8b84,_0x1b172f){_0x4a8b84=_0x4a8b84-0x10b;const _0x374da0=a116_0x374d();let _0x479ce4=_0x374da0[_0x4a8b84];return _0x479ce4;}import{readFile}from'node:fs/promises';import a116_0x442284 from'node:crypto';export function computeContentHash(_0x292052){const _0x366cfa=a116_0x479c;return a116_0x442284[_0x366cfa(0x111)](_0x366cfa(0x115))[_0x366cfa(0x10b)](_0x292052)[_0x366cfa(0x10c)]('hex');}function a116_0x374d(){const _0xec6895=['683316ZJnpDL','md5','329370JzGVCl','8553208mVfKuo','utf8','update','digest','1649270sBoTJD','13715523ipyAOG','986406CEepkt','32RFZkQW','createHash','177946NlfTkw','14HUPyni'];a116_0x374d=function(){return _0xec6895;};return a116_0x374d();}export async function computeFileHash(_0x4bee0f){const _0x420cfb=a116_0x479c,_0x76bd9d=await readFile(_0x4bee0f,_0x420cfb(0x118));return computeContentHash(_0x76bd9d);}
@@ -1 +1 @@
1
- function a112_0x543b(){const _0x4c438d=['\x22\x20vs\x20lock\x20\x22','6519087lhsTXK','12QTVDyP','parse','188896NNhMwi','current\x20\x22','utf8','lastSync','functions','stringify','196EormsK','24VunjFL','object','apps','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','5895ynfODK','ENOENT','28ZpmDhC',':\x20scriptsRoot\x20mismatch\x20—\x20','3326604ksHROs','scriptsRoot','code','88945oyVOGa','5789432QOkHNM','10lPokmi','115634sqaxNV','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a112_0x543b=function(){return _0x4c438d;};return a112_0x543b();}(function(_0x316aa2,_0x26ab48){const _0x49743b=a112_0x13f6,_0x54419b=_0x316aa2();while(!![]){try{const _0x25139a=parseInt(_0x49743b(0x112))/0x1+parseInt(_0x49743b(0x103))/0x2*(-parseInt(_0x49743b(0x108))/0x3)+-parseInt(_0x49743b(0x10c))/0x4+parseInt(_0x49743b(0x10f))/0x5*(parseInt(_0x49743b(0x104))/0x6)+parseInt(_0x49743b(0x10a))/0x7*(parseInt(_0x49743b(0x118))/0x8)+-parseInt(_0x49743b(0x115))/0x9*(-parseInt(_0x49743b(0x111))/0xa)+-parseInt(_0x49743b(0x110))/0xb*(-parseInt(_0x49743b(0x116))/0xc);if(_0x25139a===_0x26ab48)break;else _0x54419b['push'](_0x54419b['shift']());}catch(_0xfd0ae8){_0x54419b['push'](_0x54419b['shift']());}}}(a112_0x543b,0x7bf18));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a112_0x13f6(_0x123b52,_0x5dbd8d){_0x123b52=_0x123b52-0xff;const _0x543ba7=a112_0x543b();let _0x13f6f0=_0x543ba7[_0x123b52];return _0x13f6f0;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x516712,_0x4c5e47,_0x4f1b75,_0xc4a33f){const _0x4224de=a112_0x13f6,_0x385fbd={'apps':_0x516712['apps']&&typeof _0x516712[_0x4224de(0x106)]==='object'?_0x516712[_0x4224de(0x106)]:{}};let _0x3253fe=_0x385fbd[_0x4224de(0x106)][_0x4c5e47];if(!_0x3253fe)return _0x3253fe={'scriptsRoot':_0x4f1b75,'lastSync':'','functions':{}},_0x385fbd[_0x4224de(0x106)][_0x4c5e47]=_0x3253fe,{'lockData':_0x385fbd,'appLock':_0x3253fe};if(!_0x3253fe['scriptsRoot'])_0x3253fe[_0x4224de(0x10d)]=_0x4f1b75;else{if(_0x3253fe['scriptsRoot']!==_0x4f1b75)throw new Error(_0xc4a33f+_0x4224de(0x10b)+(_0x4224de(0x119)+_0x4f1b75+_0x4224de(0x114)+_0x3253fe[_0x4224de(0x10d)]+'\x22.\x20')+_0x4224de(0x113));}return!_0x3253fe[_0x4224de(0x101)]&&(_0x3253fe[_0x4224de(0x101)]={}),!_0x3253fe[_0x4224de(0x100)]&&(_0x3253fe[_0x4224de(0x100)]=''),{'lockData':_0x385fbd,'appLock':_0x3253fe};}export async function readBffLockFile(_0x2bf63e){const _0x1a44f5=a112_0x13f6;try{const _0x3dc9ae=await readFile(_0x2bf63e,_0x1a44f5(0xff)),_0x51e222=JSON[_0x1a44f5(0x117)](_0x3dc9ae);return{'apps':_0x51e222[_0x1a44f5(0x106)]&&typeof _0x51e222[_0x1a44f5(0x106)]===_0x1a44f5(0x105)?_0x51e222[_0x1a44f5(0x106)]:{}};}catch(_0x26c776){if(_0x26c776[_0x1a44f5(0x10e)]===_0x1a44f5(0x109))return null;throw new Error(_0x1a44f5(0x107)+String(_0x26c776));}}export async function writeBffLockFile(_0x245806,_0x5c43c9){const _0x254137=a112_0x13f6;await mkdir(dirname(_0x245806),{'recursive':!![]}),await writeFile(_0x245806,JSON[_0x254137(0x102)](_0x5c43c9,null,0x2),_0x254137(0xff));}
1
+ (function(_0x128f2e,_0x31fb2b){const _0x54c005=a117_0xdf08,_0x1c990a=_0x128f2e();while(!![]){try{const _0x2fe453=-parseInt(_0x54c005(0x162))/0x1*(-parseInt(_0x54c005(0x14d))/0x2)+-parseInt(_0x54c005(0x14f))/0x3+-parseInt(_0x54c005(0x152))/0x4*(parseInt(_0x54c005(0x159))/0x5)+parseInt(_0x54c005(0x14c))/0x6+parseInt(_0x54c005(0x15e))/0x7*(parseInt(_0x54c005(0x14b))/0x8)+-parseInt(_0x54c005(0x160))/0x9*(parseInt(_0x54c005(0x161))/0xa)+parseInt(_0x54c005(0x155))/0xb;if(_0x2fe453===_0x31fb2b)break;else _0x1c990a['push'](_0x1c990a['shift']());}catch(_0x1c3ea8){_0x1c990a['push'](_0x1c990a['shift']());}}}(a117_0x175f,0x395df));function a117_0xdf08(_0x31a1b4,_0x23c5d1){_0x31a1b4=_0x31a1b4-0x14b;const _0x175f48=a117_0x175f();let _0xdf08cb=_0x175f48[_0x31a1b4];return _0xdf08cb;}function a117_0x175f(){const _0x2830f6=['8KGHrKG','313770FnLJhH','120ubtDYX',':\x20scriptsRoot\x20mismatch\x20—\x20','815586hFpQHF','functions','utf8','597768foisWs','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10082435uoomjc','apps','current\x20\x22','code','15QIPKVR','scriptsRoot','stringify','lastSync','object','1286173AwwYSb','parse','18Aeurfn','1163380QgVaws','587ibGtYH'];a117_0x175f=function(){return _0x2830f6;};return a117_0x175f();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x43cfdc,_0x5a3d45,_0x538b2d,_0x4716c3){const _0x15e4a3=a117_0xdf08,_0x47d20a={'apps':_0x43cfdc[_0x15e4a3(0x156)]&&typeof _0x43cfdc[_0x15e4a3(0x156)]===_0x15e4a3(0x15d)?_0x43cfdc[_0x15e4a3(0x156)]:{}};let _0x58d05b=_0x47d20a['apps'][_0x5a3d45];if(!_0x58d05b)return _0x58d05b={'scriptsRoot':_0x538b2d,'lastSync':'','functions':{}},_0x47d20a[_0x15e4a3(0x156)][_0x5a3d45]=_0x58d05b,{'lockData':_0x47d20a,'appLock':_0x58d05b};if(!_0x58d05b['scriptsRoot'])_0x58d05b[_0x15e4a3(0x15a)]=_0x538b2d;else{if(_0x58d05b[_0x15e4a3(0x15a)]!==_0x538b2d)throw new Error(_0x4716c3+_0x15e4a3(0x14e)+(_0x15e4a3(0x157)+_0x538b2d+'\x22\x20vs\x20lock\x20\x22'+_0x58d05b['scriptsRoot']+'\x22.\x20')+_0x15e4a3(0x154));}return!_0x58d05b[_0x15e4a3(0x150)]&&(_0x58d05b[_0x15e4a3(0x150)]={}),!_0x58d05b['lastSync']&&(_0x58d05b[_0x15e4a3(0x15c)]=''),{'lockData':_0x47d20a,'appLock':_0x58d05b};}export async function readBffLockFile(_0x55678a){const _0x19a4db=a117_0xdf08;try{const _0x55a015=await readFile(_0x55678a,_0x19a4db(0x151)),_0x9b8a8f=JSON[_0x19a4db(0x15f)](_0x55a015);return{'apps':_0x9b8a8f[_0x19a4db(0x156)]&&typeof _0x9b8a8f[_0x19a4db(0x156)]==='object'?_0x9b8a8f[_0x19a4db(0x156)]:{}};}catch(_0x3770fc){if(_0x3770fc[_0x19a4db(0x158)]==='ENOENT')return null;throw new Error(_0x19a4db(0x153)+String(_0x3770fc));}}export async function writeBffLockFile(_0x4c2ced,_0x394e60){const _0x282a67=a117_0xdf08;await mkdir(dirname(_0x4c2ced),{'recursive':!![]}),await writeFile(_0x4c2ced,JSON[_0x282a67(0x15b)](_0x394e60,null,0x2),_0x282a67(0x151));}
@@ -1 +1 @@
1
- function a114_0x333a(_0x5e8e5a,_0x1b64b5){_0x5e8e5a=_0x5e8e5a-0x1cd;const _0x404d5c=a114_0x404d();let _0x333adb=_0x404d5c[_0x5e8e5a];return _0x333adb;}(function(_0x583c2e,_0x12c353){const _0x416f8d=a114_0x333a,_0x288240=_0x583c2e();while(!![]){try{const _0x47ce84=-parseInt(_0x416f8d(0x1d8))/0x1+parseInt(_0x416f8d(0x1d2))/0x2*(parseInt(_0x416f8d(0x1dc))/0x3)+-parseInt(_0x416f8d(0x1d9))/0x4*(-parseInt(_0x416f8d(0x1d1))/0x5)+-parseInt(_0x416f8d(0x1d3))/0x6*(-parseInt(_0x416f8d(0x1d0))/0x7)+parseInt(_0x416f8d(0x1e0))/0x8+parseInt(_0x416f8d(0x1cf))/0x9+-parseInt(_0x416f8d(0x1d6))/0xa;if(_0x47ce84===_0x12c353)break;else _0x288240['push'](_0x288240['shift']());}catch(_0xf0efd8){_0x288240['push'](_0x288240['shift']());}}}(a114_0x404d,0x84374));export function snakeToCamel(_0x3cf8f0){const _0xdff581=a114_0x333a;return _0x3cf8f0[_0xdff581(0x1ce)]()['replace'](/_([a-z])/g,(_0x5ea608,_0x2ac5ad)=>_0x2ac5ad['toUpperCase']());}export function findHookLocationByRemoteId(_0x28bac8,_0x4d815f){const _0x58591c=a114_0x333a;if(!_0x4d815f)return undefined;for(const _0x3dbc56 of Object[_0x58591c(0x1d5)](_0x28bac8)){if(_0x3dbc56['remoteId']===_0x4d815f&&_0x3dbc56['datasetCode']&&_0x3dbc56[_0x58591c(0x1de)]&&_0x3dbc56[_0x58591c(0x1d7)])return{'datasetCode':_0x3dbc56[_0x58591c(0x1da)],'operationType':_0x3dbc56['operationType'],'functionNode':_0x3dbc56[_0x58591c(0x1d7)]};}return undefined;}export function extractScriptDescription(_0x25537d){const _0x3456d1=a114_0x333a,_0x5ceac5=_0x25537d[_0x3456d1(0x1cd)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x5ceac5?.[0x1]?.[_0x3456d1(0x1dd)]()||undefined;}export function isValidBffFunctionName(_0x113fba){const _0xb83b96=a114_0x333a;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xb83b96(0x1db)](_0x113fba);}function a114_0x404d(){const _0x2d9f3a=['after','6972408WEEpkI','match','toLowerCase','2376612OYyuAy','7usiPqu','1521785wTapBx','1154182OqpXJU','1067502pWJrnb','before','values','16987090tOIRRw','functionNode','563433bmpGnO','12RdzPcy','datasetCode','test','3XjYwve','trim','operationType'];a114_0x404d=function(){return _0x2d9f3a;};return a114_0x404d();}export function normalizeHookFunctionNode(_0x338865){const _0x398b91=a114_0x333a;if(!_0x338865)return undefined;const _0x369521=_0x338865[_0x398b91(0x1dd)]()[_0x398b91(0x1ce)]();if(_0x369521===_0x398b91(0x1d4)||_0x369521===_0x398b91(0x1df))return _0x369521;return undefined;}
1
+ (function(_0x3fb7b3,_0x580a72){const _0x2c53cc=a119_0x2b17,_0x528bc3=_0x3fb7b3();while(!![]){try{const _0xc093e=-parseInt(_0x2c53cc(0xdd))/0x1*(parseInt(_0x2c53cc(0xd7))/0x2)+-parseInt(_0x2c53cc(0xdf))/0x3+parseInt(_0x2c53cc(0xe4))/0x4+-parseInt(_0x2c53cc(0xe7))/0x5+parseInt(_0x2c53cc(0xe2))/0x6*(-parseInt(_0x2c53cc(0xe0))/0x7)+parseInt(_0x2c53cc(0xe3))/0x8*(parseInt(_0x2c53cc(0xe6))/0x9)+parseInt(_0x2c53cc(0xd3))/0xa;if(_0xc093e===_0x580a72)break;else _0x528bc3['push'](_0x528bc3['shift']());}catch(_0x479ff0){_0x528bc3['push'](_0x528bc3['shift']());}}}(a119_0x27ae,0x8d2af));export function snakeToCamel(_0x4ce7b0){const _0x4c1438=a119_0x2b17;return _0x4ce7b0[_0x4c1438(0xde)]()[_0x4c1438(0xd5)](/_([a-z])/g,(_0x9538a9,_0x5a42fe)=>_0x5a42fe[_0x4c1438(0xd4)]());}function a119_0x2b17(_0x3a9de9,_0x3f7009){_0x3a9de9=_0x3a9de9-0xd2;const _0x27ae8c=a119_0x27ae();let _0x2b1751=_0x27ae8c[_0x3a9de9];return _0x2b1751;}export function findHookLocationByRemoteId(_0x5affac,_0x492708){const _0x27ba64=a119_0x2b17;if(!_0x492708)return undefined;for(const _0x4ea534 of Object['values'](_0x5affac)){if(_0x4ea534[_0x27ba64(0xd9)]===_0x492708&&_0x4ea534[_0x27ba64(0xe1)]&&_0x4ea534['operationType']&&_0x4ea534[_0x27ba64(0xda)])return{'datasetCode':_0x4ea534[_0x27ba64(0xe1)],'operationType':_0x4ea534[_0x27ba64(0xd6)],'functionNode':_0x4ea534[_0x27ba64(0xda)]};}return undefined;}function a119_0x27ae(){const _0x219418=['operationType','6mxMMEM','match','remoteId','functionNode','trim','before','327983EGUqqN','toLowerCase','591471GOfhfI','797083YwJZnt','datasetCode','6ZQZLSh','5963464CTrdoP','3146780FwcbIE','test','9zVjvsB','2293885JeJWZH','after','7998470BmsHLe','toUpperCase','replace'];a119_0x27ae=function(){return _0x219418;};return a119_0x27ae();}export function extractScriptDescription(_0xda9769){const _0x17cadc=a119_0x2b17,_0x6bcf1e=_0xda9769[_0x17cadc(0xd8)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x6bcf1e?.[0x1]?.[_0x17cadc(0xdb)]()||undefined;}export function isValidBffFunctionName(_0x24fb9d){const _0xe749fa=a119_0x2b17;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe749fa(0xe5)](_0x24fb9d);}export function normalizeHookFunctionNode(_0x4d42ce){const _0x412f00=a119_0x2b17;if(!_0x4d42ce)return undefined;const _0x5baa6d=_0x4d42ce['trim']()[_0x412f00(0xde)]();if(_0x5baa6d===_0x412f00(0xdc)||_0x5baa6d===_0x412f00(0xd2))return _0x5baa6d;return undefined;}
@@ -1 +1 @@
1
- (function(_0x533697,_0x244fc3){const _0x1d7a23=a115_0x53de,_0x2b6b51=_0x533697();while(!![]){try{const _0x2ae9e4=parseInt(_0x1d7a23(0x1c5))/0x1+-parseInt(_0x1d7a23(0x1da))/0x2+-parseInt(_0x1d7a23(0x1c6))/0x3*(-parseInt(_0x1d7a23(0x1d1))/0x4)+-parseInt(_0x1d7a23(0x1c4))/0x5+-parseInt(_0x1d7a23(0x1c1))/0x6*(-parseInt(_0x1d7a23(0x1be))/0x7)+parseInt(_0x1d7a23(0x1ca))/0x8+-parseInt(_0x1d7a23(0x1c3))/0x9*(-parseInt(_0x1d7a23(0x1d5))/0xa);if(_0x2ae9e4===_0x244fc3)break;else _0x2b6b51['push'](_0x2b6b51['shift']());}catch(_0x1322a2){_0x2b6b51['push'](_0x2b6b51['shift']());}}}(a115_0x4034,0x1a454));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a115_0x53de(_0x156612,_0x3ae15f){_0x156612=_0x156612-0x1bd;const _0x403420=a115_0x4034();let _0x53de7a=_0x403420[_0x156612];return _0x53de7a;}export async function listDatabases(_0x4e6cd9){const _0x2c5122=a115_0x53de;if(cache[_0x2c5122(0x1d2)](_0x4e6cd9))return cache[_0x2c5122(0x1cd)](_0x4e6cd9);const _0x5ca191=await listDatasets(_0x4e6cd9),_0x5da647=new Map();for(const _0x55b9d1 of _0x5ca191){const _0x3e693d=_0x55b9d1[_0x2c5122(0x1d3)];_0x3e693d?.[_0x2c5122(0x1c2)]!=null&&_0x5da647[_0x2c5122(0x1c9)](_0x3e693d[_0x2c5122(0x1c2)],_0x3e693d[_0x2c5122(0x1bd)]??_0x2c5122(0x1c8)+_0x3e693d[_0x2c5122(0x1c2)]);}const _0x1b37c1=[..._0x5da647[_0x2c5122(0x1c7)]()][_0x2c5122(0x1ce)](([_0x1a8fc0,_0x3b5ed2])=>({'dbId':_0x1a8fc0,'dbName':_0x3b5ed2}));return cache[_0x2c5122(0x1c9)](_0x4e6cd9,_0x1b37c1),_0x1b37c1;}export async function resolveDb(_0x43e1b3,_0x4c5123){const _0x12b5da=a115_0x53de,_0x431413=await listDatabases(_0x43e1b3);if(_0x431413[_0x12b5da(0x1d4)]===0x0)return{'resolved':[],'error':_0x12b5da(0x1cf)};if(!_0x4c5123)return{'resolved':_0x431413};const _0x56a75a=Number(_0x4c5123);if(!Number[_0x12b5da(0x1d7)](_0x56a75a)){const _0xa4965=_0x431413['find'](_0x41a524=>_0x41a524[_0x12b5da(0x1c2)]===_0x56a75a);if(_0xa4965)return{'resolved':[_0xa4965]};}const _0x251b37=_0x4c5123['toLowerCase'](),_0xced4c8=_0x431413[_0x12b5da(0x1bf)](_0x25fe0e=>_0x25fe0e['dbName'][_0x12b5da(0x1d6)]()['includes'](_0x251b37));if(_0xced4c8['length']>0x0)return{'resolved':_0xced4c8};const _0x280dbe=_0x431413[_0x12b5da(0x1ce)](_0x341142=>_0x341142['dbName']+'\x20('+_0x341142[_0x12b5da(0x1c2)]+')')[_0x12b5da(0x1d9)](',\x20');return{'resolved':[],'error':_0x12b5da(0x1cb)+_0x4c5123+_0x12b5da(0x1db)+_0x280dbe};}export async function resolveOneDb(_0x167a28,_0x357a6f){const _0x58eb41=a115_0x53de,{resolved:_0x5746a3,error:_0x50855c}=await resolveDb(_0x167a28,_0x357a6f);if(_0x50855c)return{'db':null,'error':_0x50855c};if(_0x5746a3['length']===0x1)return{'db':_0x5746a3[0x0]};if(!_0x357a6f){const _0xf3bd0c=_0x5746a3[_0x58eb41(0x1ce)](_0x20ee33=>_0x20ee33[_0x58eb41(0x1bd)]+'\x20('+_0x20ee33[_0x58eb41(0x1c2)]+')')[_0x58eb41(0x1d9)](',\x20');return{'db':null,'error':_0x58eb41(0x1cc)+_0xf3bd0c};}const _0x58f3f5=_0x5746a3['map'](_0x2aab09=>_0x2aab09[_0x58eb41(0x1bd)]+'\x20('+_0x2aab09[_0x58eb41(0x1c2)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x357a6f+_0x58eb41(0x1d0)+_0x58f3f5+_0x58eb41(0x1d8)};}export async function getDbName(_0x178da2,_0x279d64){const _0x4f19b3=a115_0x53de,_0x125716=await listDatabases(_0x178da2);return _0x125716[_0x4f19b3(0x1c0)](_0x59c734=>_0x59c734[_0x4f19b3(0x1c2)]===_0x279d64)?.[_0x4f19b3(0x1bd)];}function a115_0x4034(){const _0x41f428=['31389zWFXMV','entries','db-','set','559512czpDIP','No\x20database\x20matching\x20\x22','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','get','map','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','4NoaLmF','has','dbtableConfig','length','10slWkHb','toLowerCase','isNaN','.\x20Be\x20more\x20specific.','join','160904TrHEue','\x22.\x20Available:\x20','dbName','252077fRjKZy','filter','find','6FPaFoX','dbId','467793AZkvpB','891895rbjgGf','198045TSxkEs'];a115_0x4034=function(){return _0x41f428;};return a115_0x4034();}
1
+ (function(_0x176699,_0x4a0dda){const _0x48b513=a120_0x1287,_0x3cf82d=_0x176699();while(!![]){try{const _0x119ecd=-parseInt(_0x48b513(0x128))/0x1+parseInt(_0x48b513(0x13a))/0x2*(parseInt(_0x48b513(0x122))/0x3)+parseInt(_0x48b513(0x12e))/0x4+parseInt(_0x48b513(0x126))/0x5*(-parseInt(_0x48b513(0x127))/0x6)+parseInt(_0x48b513(0x11f))/0x7*(parseInt(_0x48b513(0x130))/0x8)+-parseInt(_0x48b513(0x138))/0x9+parseInt(_0x48b513(0x129))/0xa;if(_0x119ecd===_0x4a0dda)break;else _0x3cf82d['push'](_0x3cf82d['shift']());}catch(_0x4a316b){_0x3cf82d['push'](_0x3cf82d['shift']());}}}(a120_0x4870,0x67a25));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x28928c){const _0x1b1b1c=a120_0x1287;if(cache['has'](_0x28928c))return cache[_0x1b1b1c(0x123)](_0x28928c);const _0x27019e=await listDatasets(_0x28928c),_0x3bcdc8=new Map();for(const _0x27cd83 of _0x27019e){const _0x1dce42=_0x27cd83[_0x1b1b1c(0x134)];_0x1dce42?.[_0x1b1b1c(0x131)]!=null&&_0x3bcdc8[_0x1b1b1c(0x137)](_0x1dce42['dbId'],_0x1dce42[_0x1b1b1c(0x12b)]??_0x1b1b1c(0x132)+_0x1dce42[_0x1b1b1c(0x131)]);}const _0x129e4c=[..._0x3bcdc8['entries']()][_0x1b1b1c(0x121)](([_0x14d05d,_0xef47fc])=>({'dbId':_0x14d05d,'dbName':_0xef47fc}));return cache[_0x1b1b1c(0x137)](_0x28928c,_0x129e4c),_0x129e4c;}function a120_0x1287(_0x1d344b,_0x34abe2){_0x1d344b=_0x1d344b-0x11f;const _0x4870f7=a120_0x4870();let _0x128732=_0x4870f7[_0x1d344b];return _0x128732;}export async function resolveDb(_0x50a756,_0x1c135a){const _0x373f54=a120_0x1287,_0x5644e1=await listDatabases(_0x50a756);if(_0x5644e1['length']===0x0)return{'resolved':[],'error':_0x373f54(0x12a)};if(!_0x1c135a)return{'resolved':_0x5644e1};const _0x47ba08=Number(_0x1c135a);if(!Number['isNaN'](_0x47ba08)){const _0x5266f7=_0x5644e1[_0x373f54(0x124)](_0x4ca652=>_0x4ca652[_0x373f54(0x131)]===_0x47ba08);if(_0x5266f7)return{'resolved':[_0x5266f7]};}const _0x417011=_0x1c135a[_0x373f54(0x13b)](),_0x353108=_0x5644e1[_0x373f54(0x135)](_0x19805e=>_0x19805e[_0x373f54(0x12b)]['toLowerCase']()[_0x373f54(0x125)](_0x417011));if(_0x353108[_0x373f54(0x120)]>0x0)return{'resolved':_0x353108};const _0xdd5f35=_0x5644e1[_0x373f54(0x121)](_0xcba23f=>_0xcba23f[_0x373f54(0x12b)]+'\x20('+_0xcba23f[_0x373f54(0x131)]+')')[_0x373f54(0x136)](',\x20');return{'resolved':[],'error':_0x373f54(0x12d)+_0x1c135a+_0x373f54(0x12c)+_0xdd5f35};}export async function resolveOneDb(_0x206ae5,_0x493880){const _0x26673a=a120_0x1287,{resolved:_0x3fad03,error:_0xa9fde2}=await resolveDb(_0x206ae5,_0x493880);if(_0xa9fde2)return{'db':null,'error':_0xa9fde2};if(_0x3fad03[_0x26673a(0x120)]===0x1)return{'db':_0x3fad03[0x0]};if(!_0x493880){const _0x5bf966=_0x3fad03[_0x26673a(0x121)](_0x5022f6=>_0x5022f6['dbName']+'\x20('+_0x5022f6[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':_0x26673a(0x139)+_0x5bf966};}const _0x182301=_0x3fad03[_0x26673a(0x121)](_0x1be764=>_0x1be764['dbName']+'\x20('+_0x1be764[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':'\x22'+_0x493880+_0x26673a(0x133)+_0x182301+_0x26673a(0x12f)};}export async function getDbName(_0x1929f4,_0x158572){const _0x5b4348=a120_0x1287,_0x363073=await listDatabases(_0x1929f4);return _0x363073['find'](_0x1d7577=>_0x1d7577[_0x5b4348(0x131)]===_0x158572)?.[_0x5b4348(0x12b)];}function a120_0x4870(){const _0x166784=['6GmWYAJ','755230pfzDdC','3223720AcYLEu','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbName','\x22.\x20Available:\x20','No\x20database\x20matching\x20\x22','2422468iBYAkd','.\x20Be\x20more\x20specific.','8arQcDo','dbId','db-','\x22\x20matches\x20multiple\x20databases:\x20','dbtableConfig','filter','join','set','6320718RpkCnl','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','945388FXQErF','toLowerCase','5309437HAxmQa','length','map','3aQyKkv','get','find','includes','1385785ihvUfh'];a120_0x4870=function(){return _0x166784;};return a120_0x4870();}
@@ -1 +1 @@
1
- (function(_0x372456,_0x4d8ed8){const _0xb7e2dc=a116_0x34fa,_0x52574a=_0x372456();while(!![]){try{const _0x327448=-parseInt(_0xb7e2dc(0x1be))/0x1*(-parseInt(_0xb7e2dc(0x1df))/0x2)+parseInt(_0xb7e2dc(0x1e1))/0x3*(parseInt(_0xb7e2dc(0x1c6))/0x4)+-parseInt(_0xb7e2dc(0x1e4))/0x5+-parseInt(_0xb7e2dc(0x1d8))/0x6+-parseInt(_0xb7e2dc(0x1bd))/0x7+parseInt(_0xb7e2dc(0x1d5))/0x8*(parseInt(_0xb7e2dc(0x1de))/0x9)+parseInt(_0xb7e2dc(0x1c8))/0xa;if(_0x327448===_0x4d8ed8)break;else _0x52574a['push'](_0x52574a['shift']());}catch(_0xa8cece){_0x52574a['push'](_0x52574a['shift']());}}}(a116_0x11c3,0x35c37));export function detectSqlType(_0x3e1dd0){const _0x27d6a5=a116_0x34fa;if(!_0x3e1dd0?.[_0x27d6a5(0x1c3)]())return{'type':_0x27d6a5(0x1c9),'isSelectOnly':![],'isDangerous':![],'reason':_0x27d6a5(0x1d7)};const _0x197cd0=_0x3e1dd0[_0x27d6a5(0x1bf)](/#\{[^}]*\}/g,'?')[_0x27d6a5(0x1bf)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x27d6a5(0x1bf)](/\/\*[\s\S]*?\*\//g,'')[_0x27d6a5(0x1c3)](),_0x3fc275=_0x197cd0[_0x27d6a5(0x1d2)]('\x0a');let _0x4c638d='';for(const _0x2a357b of _0x3fc275){const _0x581b2b=_0x2a357b[_0x27d6a5(0x1c3)]();if(!_0x581b2b||_0x581b2b[_0x27d6a5(0x1d9)]('--')||_0x581b2b['startsWith']('/*'))continue;_0x4c638d=_0x581b2b;break;}const _0x40ebc1=_0x4c638d[_0x27d6a5(0x1cd)]();if(_0x40ebc1['startsWith']('SELECT')||_0x40ebc1['startsWith'](_0x27d6a5(0x1cf))){const _0x31841f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x27d6a5(0x1dc)](_0x197cd0);return{'type':_0x27d6a5(0x1d4),'isSelectOnly':!_0x31841f,'isDangerous':_0x31841f,'reason':_0x31841f?_0x27d6a5(0x1e2):undefined};}if(_0x40ebc1['startsWith'](_0x27d6a5(0x1ce)))return{'type':_0x27d6a5(0x1ce),'isSelectOnly':![],'isDangerous':![]};if(_0x40ebc1[_0x27d6a5(0x1d9)](_0x27d6a5(0x1ca)))return{'type':_0x27d6a5(0x1ca),'isSelectOnly':![],'isDangerous':![]};if(_0x40ebc1[_0x27d6a5(0x1d9)](_0x27d6a5(0x1dd)))return{'type':_0x27d6a5(0x1dd),'isSelectOnly':![],'isDangerous':!![],'reason':_0x27d6a5(0x1db)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x27d6a5(0x1dc)](_0x40ebc1))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x27d6a5(0x1c0)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1997f7){const _0xf0fbf0=a116_0x34fa,_0x228c88=_0x1997f7[_0xf0fbf0(0x1bf)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0xf0fbf0(0x1bf)](/--.*$/gm,'')[_0xf0fbf0(0x1bf)](/\/\*[\s\S]*?\*\//g,''),_0xba8768=[],_0x1f5820=_0x228c88[_0xf0fbf0(0x1c4)](/FROM\s+([^\s,)(]+)/i);if(_0x1f5820?.[0x1])_0xba8768[_0xf0fbf0(0x1c7)](_0x1f5820[0x1][_0xf0fbf0(0x1bf)](/[`"]/g,''));for(const _0x35566c of _0x228c88['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4bfc90=_0x35566c[0x1]?.[_0xf0fbf0(0x1bf)](/[`"]/g,'');if(_0x4bfc90&&!_0xba8768[_0xf0fbf0(0x1d3)](_0x4bfc90))_0xba8768[_0xf0fbf0(0x1c7)](_0x4bfc90);}const _0x58676d=_0x228c88['match'](/INTO\s+([^\s(]+)/i);if(_0x58676d?.[0x1]){const _0xfcb967=_0x58676d[0x1][_0xf0fbf0(0x1bf)](/[`"]/g,'');if(!_0xba8768[_0xf0fbf0(0x1d3)](_0xfcb967))_0xba8768['push'](_0xfcb967);}const _0x4dc9fc=_0x228c88['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4dc9fc?.[0x1]){const _0x1a4e93=_0x4dc9fc[0x1][_0xf0fbf0(0x1bf)](/[`"]/g,'');if(!_0xba8768[_0xf0fbf0(0x1d3)](_0x1a4e93))_0xba8768[_0xf0fbf0(0x1c7)](_0x1a4e93);}return _0xba8768;}function extractParameters(_0x5215f1){const _0x4ae050=a116_0x34fa,_0x4309af=new Set();for(const _0x48ffe7 of _0x5215f1[_0x4ae050(0x1c5)](/#\{(\w+)\}/g))if(_0x48ffe7[0x1])_0x4309af[_0x4ae050(0x1bc)](_0x48ffe7[0x1]);for(const _0x1d7420 of _0x5215f1[_0x4ae050(0x1c5)](/\$\{(\w+)\}/g))if(_0x1d7420[0x1])_0x4309af[_0x4ae050(0x1bc)](_0x1d7420[0x1]);return Array[_0x4ae050(0x1c1)](_0x4309af);}export function validateSql(_0x2b612d){const _0x2a4776=a116_0x34fa,_0x17aec6=detectSqlType(_0x2b612d),_0x440c3d=extractTables(_0x2b612d),_0x41be6f=extractParameters(_0x2b612d);if(_0x17aec6[_0x2a4776(0x1e0)])return{'valid':![],'sqlType':_0x17aec6,'tables':_0x440c3d,'parameters':_0x41be6f,'message':_0x17aec6[_0x2a4776(0x1da)]||_0x17aec6[_0x2a4776(0x1e3)]+_0x2a4776(0x1c2)};if(_0x17aec6[_0x2a4776(0x1e3)]==='UNKNOWN')return{'valid':![],'sqlType':_0x17aec6,'tables':_0x440c3d,'parameters':_0x41be6f,'message':_0x2a4776(0x1d6)};return{'valid':!![],'sqlType':_0x17aec6,'tables':_0x440c3d,'parameters':_0x41be6f,'message':_0x17aec6['type']+_0x2a4776(0x1cb)+(_0x440c3d[_0x2a4776(0x1d1)]?_0x440c3d[_0x2a4776(0x1cc)](',\x20'):'unknown\x20table(s)')+(_0x41be6f[_0x2a4776(0x1d1)]?_0x2a4776(0x1d0)+_0x41be6f[_0x2a4776(0x1cc)](',\x20'):'')};}function a116_0x34fa(_0x529495,_0x1be4d3){_0x529495=_0x529495-0x1bc;const _0x11c3f0=a116_0x11c3();let _0x34fa83=_0x11c3f0[_0x529495];return _0x34fa83;}function a116_0x11c3(){const _0x4b52f6=['from','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','trim','match','matchAll','76QVqWhA','push','3685020rzpbCr','UNKNOWN','UPDATE','\x20query\x20targeting\x20','join','toUpperCase','INSERT','WITH','\x20with\x20parameters:\x20','length','split','includes','SELECT','101944juvyon','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20content\x20is\x20empty','374760eUAwiT','startsWith','reason','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','test','DELETE','27kwyrgY','387282jrlUoD','isDangerous','31830GciNZN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','type','2083020DNeGkW','add','718781ydECeK','1GGiFPj','replace','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'];a116_0x11c3=function(){return _0x4b52f6;};return a116_0x11c3();}
1
+ function a121_0x2d21(_0x2b03b7,_0x215c86){_0x2b03b7=_0x2b03b7-0xc4;const _0x49109b=a121_0x4910();let _0x2d2151=_0x49109b[_0x2b03b7];return _0x2d2151;}function a121_0x4910(){const _0x47c609=['toUpperCase','add','\x20query\x20targeting\x20','3264GuNHLR','type','8071mKsxZQ','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','24zFjdYu','5307809MQHimS','unknown\x20table(s)','DELETE','2875371uFprSO','UPDATE','UNKNOWN','from','test','10HNuIqL','SQL\x20content\x20is\x20empty','4404RUdXlD','\x20with\x20parameters:\x20','9604107SuCTRf','length','trim','reason','DDL','4kjNtGx','replace','push','matchAll','INSERT','4YOcyhC','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','11815xQuIsZ','isDangerous','1661kGsOlt','598385NykjTn','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a121_0x4910=function(){return _0x47c609;};return a121_0x4910();}(function(_0x39a815,_0x22540d){const _0x524e77=a121_0x2d21,_0x536093=_0x39a815();while(!![]){try{const _0x253430=parseInt(_0x524e77(0xe4))/0x1*(parseInt(_0x524e77(0xde))/0x2)+parseInt(_0x524e77(0xcb))/0x3*(-parseInt(_0x524e77(0xd9))/0x4)+-parseInt(_0x524e77(0xe1))/0x5*(-parseInt(_0x524e77(0xe9))/0x6)+-parseInt(_0x524e77(0xc4))/0x7*(parseInt(_0x524e77(0xc7))/0x8)+parseInt(_0x524e77(0xd4))/0x9*(-parseInt(_0x524e77(0xd0))/0xa)+parseInt(_0x524e77(0xe3))/0xb*(-parseInt(_0x524e77(0xd2))/0xc)+parseInt(_0x524e77(0xc8))/0xd;if(_0x253430===_0x22540d)break;else _0x536093['push'](_0x536093['shift']());}catch(_0x59b260){_0x536093['push'](_0x536093['shift']());}}}(a121_0x4910,0xc4cbf));export function detectSqlType(_0x46f1cd){const _0x96005e=a121_0x2d21;if(!_0x46f1cd?.[_0x96005e(0xd6)]())return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![],'reason':_0x96005e(0xd1)};const _0x36e6f5=_0x46f1cd['replace'](/#\{[^}]*\}/g,'?')[_0x96005e(0xda)](/\$\{[^}]*\}/g,'?')[_0x96005e(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x96005e(0xda)](/\/\*[\s\S]*?\*\//g,'')[_0x96005e(0xd6)](),_0x38dfc4=_0x36e6f5['split']('\x0a');let _0x28735b='';for(const _0x140b51 of _0x38dfc4){const _0x53361e=_0x140b51['trim']();if(!_0x53361e||_0x53361e[_0x96005e(0xc6)]('--')||_0x53361e[_0x96005e(0xc6)]('/*'))continue;_0x28735b=_0x53361e;break;}const _0x47985f=_0x28735b[_0x96005e(0xe6)]();if(_0x47985f[_0x96005e(0xc6)]('SELECT')||_0x47985f[_0x96005e(0xc6)]('WITH')){const _0x4134ef=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x96005e(0xcf)](_0x36e6f5);return{'type':'SELECT','isSelectOnly':!_0x4134ef,'isDangerous':_0x4134ef,'reason':_0x4134ef?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x47985f[_0x96005e(0xc6)](_0x96005e(0xdd)))return{'type':_0x96005e(0xdd),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('UPDATE'))return{'type':_0x96005e(0xcc),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('DELETE'))return{'type':_0x96005e(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xe5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x96005e(0xcf)](_0x47985f))return{'type':_0x96005e(0xd8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xc5)};return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x16ec05){const _0x3a8edb=a121_0x2d21,_0x3d1530=_0x16ec05[_0x3a8edb(0xda)](/#\{[^}]*\}/g,'?')[_0x3a8edb(0xda)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3a8edb(0xda)](/--.*$/gm,'')[_0x3a8edb(0xda)](/\/\*[\s\S]*?\*\//g,''),_0x35bc09=[],_0x1ee3cc=_0x3d1530['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1ee3cc?.[0x1])_0x35bc09[_0x3a8edb(0xdb)](_0x1ee3cc[0x1][_0x3a8edb(0xda)](/[`"]/g,''));for(const _0x2ba407 of _0x3d1530['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x22b93a=_0x2ba407[0x1]?.['replace'](/[`"]/g,'');if(_0x22b93a&&!_0x35bc09['includes'](_0x22b93a))_0x35bc09[_0x3a8edb(0xdb)](_0x22b93a);}const _0x1253d8=_0x3d1530['match'](/INTO\s+([^\s(]+)/i);if(_0x1253d8?.[0x1]){const _0x576194=_0x1253d8[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09[_0x3a8edb(0xdf)](_0x576194))_0x35bc09[_0x3a8edb(0xdb)](_0x576194);}const _0x4136c9=_0x3d1530['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4136c9?.[0x1]){const _0x17fb16=_0x4136c9[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09['includes'](_0x17fb16))_0x35bc09[_0x3a8edb(0xdb)](_0x17fb16);}return _0x35bc09;}function extractParameters(_0x3d5584){const _0x57d68=a121_0x2d21,_0x251704=new Set();for(const _0x5a1974 of _0x3d5584[_0x57d68(0xdc)](/#\{(\w+)\}/g))if(_0x5a1974[0x1])_0x251704[_0x57d68(0xe7)](_0x5a1974[0x1]);for(const _0x54ccc4 of _0x3d5584[_0x57d68(0xdc)](/\$\{(\w+)\}/g))if(_0x54ccc4[0x1])_0x251704[_0x57d68(0xe7)](_0x54ccc4[0x1]);return Array[_0x57d68(0xce)](_0x251704);}export function validateSql(_0x819d69){const _0x13bd28=a121_0x2d21,_0x4fdee8=detectSqlType(_0x819d69),_0x7697a4=extractTables(_0x819d69),_0x276f9b=extractParameters(_0x819d69);if(_0x4fdee8[_0x13bd28(0xe2)])return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xd7)]||_0x4fdee8['type']+_0x13bd28(0xe0)};if(_0x4fdee8[_0x13bd28(0xea)]===_0x13bd28(0xcd))return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xea)]+_0x13bd28(0xe8)+(_0x7697a4['length']?_0x7697a4['join'](',\x20'):_0x13bd28(0xc9))+(_0x276f9b[_0x13bd28(0xd5)]?_0x13bd28(0xd3)+_0x276f9b['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a117_0x2a17(){const _0x1d787b=['\x20auth`\x20to\x20login\x20first.','validation_error','Not\x20in\x20a\x20','49encyKh','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','CliError','\x0a\x20\x20\x20\x20\x20\x20\x20','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','308565nhVdFH','join','Missing\x20required\x20flag:\x20--','99948iMKTZZ','84006wzYSkE','Network\x20error:\x20','exitCode','Run\x20`','config_missing','Tip:\x20`','\x20project\x20directory','Authentication\x20required','network_error','253cOvywv','Set\x20appcode\x20via\x20`','10yrzApl','65168JqEEgo','\x20--help`\x20to\x20see\x20available\x20commands.','92lOFfuE','2SboWsf','2033262vsYpAc','code','not_in_project','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','hint','flag_missing','cancelled','Unknown\x20command:\x20','name','49855qTHZZd','auth_required','unknown_command','Configuration\x20file\x20not\x20found','29847EyQzCo'];a117_0x2a17=function(){return _0x1d787b;};return a117_0x2a17();}const a117_0xdfad7b=a117_0x44b2;(function(_0x32c2c0,_0x1a1949){const _0x490d2f=a117_0x44b2,_0x124f0f=_0x32c2c0();while(!![]){try{const _0x59b52a=parseInt(_0x490d2f(0x103))/0x1*(-parseInt(_0x490d2f(0xf4))/0x2)+parseInt(_0x490d2f(0x110))/0x3+-parseInt(_0x490d2f(0xf3))/0x4*(-parseInt(_0x490d2f(0xff))/0x5)+-parseInt(_0x490d2f(0xf5))/0x6+-parseInt(_0x490d2f(0x107))/0x7*(-parseInt(_0x490d2f(0xf1))/0x8)+parseInt(_0x490d2f(0x10c))/0x9*(parseInt(_0x490d2f(0xf0))/0xa)+parseInt(_0x490d2f(0xee))/0xb*(parseInt(_0x490d2f(0x10f))/0xc);if(_0x59b52a===_0x1a1949)break;else _0x124f0f['push'](_0x124f0f['shift']());}catch(_0x63befa){_0x124f0f['push'](_0x124f0f['shift']());}}}(a117_0x2a17,0x29ddd));import{CLI_BIN_NAME}from'./constant/cli.js';function a117_0x44b2(_0x28a007,_0x8d172c){_0x28a007=_0x28a007-0xe7;const _0x2a17f5=a117_0x2a17();let _0x44b28f=_0x2a17f5[_0x28a007];return _0x44b28f;}export class CliError extends Error{[a117_0xdfad7b(0xf6)];['exitCode'];[a117_0xdfad7b(0xfa)];constructor(_0x17e49f,_0x9bcd2,_0x1cffd2,_0x119b8c){const _0x27a75b=a117_0xdfad7b;super(_0x1cffd2),this[_0x27a75b(0xfe)]=_0x27a75b(0x109),this[_0x27a75b(0xf6)]=_0x17e49f,this[_0x27a75b(0xe7)]=_0x9bcd2,this['hint']=_0x119b8c;}}export const CliErrors={'authRequired':_0x1179ea=>new CliError(a117_0xdfad7b(0x100),0x1,a117_0xdfad7b(0xec),_0x1179ea??a117_0xdfad7b(0xe8)+CLI_BIN_NAME+a117_0xdfad7b(0x104)),'configMissing':_0x3e0c19=>new CliError(a117_0xdfad7b(0xe9),0x1,a117_0xdfad7b(0x102),_0x3e0c19??[a117_0xdfad7b(0xef)+CLI_BIN_NAME+a117_0xdfad7b(0xf8),a117_0xdfad7b(0xea)+CLI_BIN_NAME+a117_0xdfad7b(0x108)][a117_0xdfad7b(0x10d)](a117_0xdfad7b(0x10a))),'notInProject':()=>new CliError(a117_0xdfad7b(0xf7),0x1,a117_0xdfad7b(0x106)+CLI_BIN_NAME+a117_0xdfad7b(0xeb),a117_0xdfad7b(0xf9)),'apiError':(_0x1b12ff,_0x88d1f5)=>new CliError('api_error',0x2,_0x1b12ff,_0x88d1f5),'networkError':_0x4246fc=>new CliError(a117_0xdfad7b(0xed),0x2,a117_0xdfad7b(0x111)+_0x4246fc,a117_0xdfad7b(0x10b)),'unknownCommand':_0x278b6e=>new CliError(a117_0xdfad7b(0x101),0x1,a117_0xdfad7b(0xfd)+_0x278b6e,a117_0xdfad7b(0xe8)+CLI_BIN_NAME+a117_0xdfad7b(0xf2)),'flagMissing':(_0x321d75,_0x5c8e0a)=>new CliError(a117_0xdfad7b(0xfb),0x1,a117_0xdfad7b(0x10e)+_0x321d75,_0x5c8e0a),'validation':(_0x2c8ae9,_0x27b7c8)=>new CliError(a117_0xdfad7b(0x105),0x1,_0x2c8ae9,_0x27b7c8),'cancelled':_0x30bf2e=>new CliError(a117_0xdfad7b(0xfc),0x0,_0x30bf2e??'Operation\x20cancelled.',undefined)};
1
+ const a122_0x49ffbb=a122_0x27d0;(function(_0x16cc73,_0x153d4c){const _0x27d33f=a122_0x27d0,_0x183759=_0x16cc73();while(!![]){try{const _0x5426d6=parseInt(_0x27d33f(0x116))/0x1*(parseInt(_0x27d33f(0x111))/0x2)+parseInt(_0x27d33f(0x10e))/0x3*(-parseInt(_0x27d33f(0x118))/0x4)+-parseInt(_0x27d33f(0x109))/0x5*(-parseInt(_0x27d33f(0x110))/0x6)+-parseInt(_0x27d33f(0x108))/0x7*(parseInt(_0x27d33f(0x119))/0x8)+parseInt(_0x27d33f(0x11a))/0x9+parseInt(_0x27d33f(0x10d))/0xa*(-parseInt(_0x27d33f(0x10b))/0xb)+-parseInt(_0x27d33f(0x117))/0xc*(parseInt(_0x27d33f(0x114))/0xd);if(_0x5426d6===_0x153d4c)break;else _0x183759['push'](_0x183759['shift']());}catch(_0x8e9b4c){_0x183759['push'](_0x183759['shift']());}}}(a122_0x2b88,0xb8e6b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a122_0x2b88(){const _0x1e283b=['2640065qaLOof','join','22yekPRH','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2061820yGwhxQ','32244KFHznU','\x0a\x20\x20\x20\x20\x20\x20\x20','12WwQaAj','5440pkVnLQ','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','13aSUjnj','\x20auth`\x20to\x20login\x20first.','293AVaxrk','16417428Zxrqnc','92MTBGCG','56yQfLSA','9919719YfbnpG','170135MtTdma'];a122_0x2b88=function(){return _0x1e283b;};return a122_0x2b88();}export{CliError};function a122_0x27d0(_0x533c1b,_0x2bca6a){_0x533c1b=_0x533c1b-0x108;const _0x2b884f=a122_0x2b88();let _0x27d029=_0x2b884f[_0x533c1b];return _0x27d029;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x115),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x112),'Tip:\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x10c)][a122_0x49ffbb(0x10a)](a122_0x49ffbb(0x10f)),'notInProjectHint':a122_0x49ffbb(0x113)});
@@ -1 +1 @@
1
- (function(_0x5395ea,_0x4481ae){const _0x55375b=a118_0x284d,_0x1aaa57=_0x5395ea();while(!![]){try{const _0x37b23e=-parseInt(_0x55375b(0x173))/0x1+-parseInt(_0x55375b(0x170))/0x2*(parseInt(_0x55375b(0x179))/0x3)+parseInt(_0x55375b(0x17c))/0x4+parseInt(_0x55375b(0x17b))/0x5*(parseInt(_0x55375b(0x17f))/0x6)+parseInt(_0x55375b(0x188))/0x7*(-parseInt(_0x55375b(0x17e))/0x8)+parseInt(_0x55375b(0x177))/0x9*(parseInt(_0x55375b(0x175))/0xa)+-parseInt(_0x55375b(0x182))/0xb;if(_0x37b23e===_0x4481ae)break;else _0x1aaa57['push'](_0x1aaa57['shift']());}catch(_0x349417){_0x1aaa57['push'](_0x1aaa57['shift']());}}}(a118_0x58d7,0x1e2d0));function a118_0x58d7(){const _0x22835c=['dry-run','Output\x20format','boolean','2502ucvTxN','Preview\x20the\x20operation\x20without\x20executing','defaultOutputFormat','35313qlVSjN','yes','50dFAPAS','push','280143fTmvGX','pretty','51RVBRmf','compress','35xpJBPk','525044cgcmUz','json','8BMktFg','190668qOrAaE','Skip\x20confirmation\x20prompt','dryRun','2172005mZPKhO','flags','format','string','risk','hasFormat','921949MgQqmC'];a118_0x58d7=function(){return _0x22835c;};return a118_0x58d7();}function a118_0x284d(_0x1a00a2,_0x1fe63e){_0x1a00a2=_0x1a00a2-0x170;const _0x58d7ef=a118_0x58d7();let _0x284db1=_0x58d7ef[_0x1a00a2];return _0x284db1;}export function buildAllFlags(_0xff28d9){const _0x6903ad=a118_0x284d,_0x3ef88d=[..._0xff28d9[_0x6903ad(0x183)]];return _0xff28d9[_0x6903ad(0x181)]&&_0x3ef88d[_0x6903ad(0x176)]({'name':_0x6903ad(0x189),'type':_0x6903ad(0x18b),'description':_0x6903ad(0x171)}),_0xff28d9[_0x6903ad(0x187)]!==![]&&_0x3ef88d['push']({'name':_0x6903ad(0x184),'type':_0x6903ad(0x185),'default':_0xff28d9[_0x6903ad(0x172)]??_0x6903ad(0x178),'enum':[_0x6903ad(0x17d),_0x6903ad(0x178),_0x6903ad(0x17a)],'description':_0x6903ad(0x18a)}),_0xff28d9[_0x6903ad(0x186)]==='high-risk-write'&&_0x3ef88d[_0x6903ad(0x176)]({'name':_0x6903ad(0x174),'type':'boolean','description':_0x6903ad(0x180)}),_0x3ef88d;}
1
+ (function(_0x308054,_0x4100c5){var _0x410fd6=a123_0x43db,_0x2d80dd=_0x308054();while(!![]){try{var _0x846c14=-parseInt(_0x410fd6(0x13c))/0x1*(-parseInt(_0x410fd6(0x13a))/0x2)+-parseInt(_0x410fd6(0x139))/0x3+-parseInt(_0x410fd6(0x13f))/0x4*(parseInt(_0x410fd6(0x13b))/0x5)+parseInt(_0x410fd6(0x138))/0x6*(parseInt(_0x410fd6(0x141))/0x7)+parseInt(_0x410fd6(0x136))/0x8*(parseInt(_0x410fd6(0x13d))/0x9)+parseInt(_0x410fd6(0x135))/0xa*(parseInt(_0x410fd6(0x140))/0xb)+-parseInt(_0x410fd6(0x13e))/0xc*(parseInt(_0x410fd6(0x137))/0xd);if(_0x846c14===_0x4100c5)break;else _0x2d80dd['push'](_0x2d80dd['shift']());}catch(_0x5f1ec4){_0x2d80dd['push'](_0x2d80dd['shift']());}}}(a123_0x43c7,0xa4365));function a123_0x43db(_0x327f59,_0x1066d9){_0x327f59=_0x327f59-0x135;var _0x43c76e=a123_0x43c7();var _0x43db95=_0x43c76e[_0x327f59];return _0x43db95;}function a123_0x43c7(){var _0xbd0571=['65244NrPXiZ','4EDrfYO','4653QSIecW','7slfHMJ','22170eCPnMn','8LSkLKr','6305WhLFhy','7657278qqAebu','235623ixzwiu','62994ZowQMf','1628645FVdkiP','29RwOQHp','5277699BcuXhn'];a123_0x43c7=function(){return _0xbd0571;};return a123_0x43c7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a123_0x2b2058}from'@lovrabet/cli-framework';export function buildAllFlags(_0x53a5d3){return a123_0x2b2058(_0x53a5d3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0xcf991,_0x3d7ddd){const _0x54e626=a119_0x22a5,_0x105475=_0xcf991();while(!![]){try{const _0x5e200d=parseInt(_0x54e626(0x1cd))/0x1+-parseInt(_0x54e626(0x1c8))/0x2+-parseInt(_0x54e626(0x1c4))/0x3*(parseInt(_0x54e626(0x1d9))/0x4)+-parseInt(_0x54e626(0x1d0))/0x5*(-parseInt(_0x54e626(0x1d2))/0x6)+-parseInt(_0x54e626(0x1cb))/0x7*(-parseInt(_0x54e626(0x1ce))/0x8)+parseInt(_0x54e626(0x1c5))/0x9*(-parseInt(_0x54e626(0x1bf))/0xa)+parseInt(_0x54e626(0x1bc))/0xb*(parseInt(_0x54e626(0x1bd))/0xc);if(_0x5e200d===_0x3d7ddd)break;else _0x105475['push'](_0x105475['shift']());}catch(_0x246296){_0x105475['push'](_0x105475['shift']());}}}(a119_0x1c75,0x55978));import{CliErrors}from'../errors.js';function a119_0x1c75(){const _0x207de8=['default','dryRun','boolean','\x20expects\x20a\x20number,\x20got\x20\x22','7172aZmNpc','enum',',\x20got\x20\x22','required','toUpperCase',':\x20expected\x20','validation','17831xRyxtW','3636zGcisn','includes','7860aUNYeE','pattern','\x20is\x20required\x20for\x20`','test','length','957YGKjcT','1467HcxNPf','Invalid\x20--','name','486542FvRBib','true','dry-run','7QemuNG','type','530855IaEsDZ','85304HAiNiK','flagMissing','1306295DbgpYS','regex','6sDkemQ','Invalid\x20value\x20\x22','number'];a119_0x1c75=function(){return _0x207de8;};return a119_0x1c75();}export function parseFlags(_0xb854d4,_0x1fc94b){const _0x231cdc=a119_0x22a5,_0x499295={};for(const _0x14f1eb of _0xb854d4){const _0x25ae0d=_0x1fc94b[_0x14f1eb[_0x231cdc(0x1c7)]]??_0x1fc94b[toCamelCase(_0x14f1eb[_0x231cdc(0x1c7)])];if(_0x25ae0d===undefined||_0x25ae0d===null){_0x14f1eb['default']!==undefined&&(_0x499295[_0x14f1eb[_0x231cdc(0x1c7)]]=_0x14f1eb[_0x231cdc(0x1d5)]);continue;}_0x499295[_0x14f1eb[_0x231cdc(0x1c7)]]=coerce(_0x14f1eb,_0x25ae0d);}for(const _0x507705 of[_0x231cdc(0x1ca),_0x231cdc(0x1d6),'yes','format','jq']){const _0x1970a5=_0x1fc94b[_0x507705];if(_0x1970a5!==undefined){const _0x19e7cd=_0x507705==='dryRun'?_0x231cdc(0x1ca):_0x507705;_0x499295[_0x19e7cd]=_0x1970a5;}}return _0x499295;}export function validateFlags(_0x594bf5,_0x22c9bf,_0x552d81){const _0x52da43=a119_0x22a5;for(const _0x56ca8f of _0x594bf5){const _0x53fddb=_0x22c9bf[_0x56ca8f[_0x52da43(0x1c7)]];if(_0x56ca8f[_0x52da43(0x1dc)]&&(_0x53fddb===undefined||_0x53fddb===''))throw CliErrors[_0x52da43(0x1cf)](_0x56ca8f[_0x52da43(0x1c7)],'--'+_0x56ca8f[_0x52da43(0x1c7)]+_0x52da43(0x1c1)+_0x552d81+'`.');if(_0x56ca8f[_0x52da43(0x1da)]&&_0x56ca8f['enum'][_0x52da43(0x1c3)]>0x0&&_0x53fddb!==undefined&&_0x53fddb!==''){if(!_0x56ca8f[_0x52da43(0x1da)][_0x52da43(0x1be)](String(_0x53fddb)))throw CliErrors[_0x52da43(0x1bb)](_0x52da43(0x1d3)+_0x53fddb+'\x22\x20for\x20--'+_0x56ca8f[_0x52da43(0x1c7)]+'.\x20Allowed:\x20'+_0x56ca8f[_0x52da43(0x1da)]['join'](',\x20'));}if(_0x56ca8f['pattern']&&_0x53fddb!==undefined&&_0x53fddb!==''){if(!_0x56ca8f['pattern'][_0x52da43(0x1d1)][_0x52da43(0x1c2)](String(_0x53fddb)))throw CliErrors[_0x52da43(0x1bb)](_0x52da43(0x1c6)+_0x56ca8f[_0x52da43(0x1c7)]+_0x52da43(0x1ba)+_0x56ca8f[_0x52da43(0x1c0)]['description']+_0x52da43(0x1db)+_0x53fddb+'\x22.');}}}function coerce(_0x5dbb7e,_0x4d47f4){const _0x2dd648=a119_0x22a5;switch(_0x5dbb7e[_0x2dd648(0x1cc)]){case _0x2dd648(0x1d7):return _0x4d47f4===!![]||_0x4d47f4===_0x2dd648(0x1c9);case _0x2dd648(0x1d4):{const _0x15380f=Number(_0x4d47f4);if(isNaN(_0x15380f))throw CliErrors['validation']('--'+_0x5dbb7e[_0x2dd648(0x1c7)]+_0x2dd648(0x1d8)+_0x4d47f4+'\x22');return _0x15380f;}default:return String(_0x4d47f4);}}function a119_0x22a5(_0x9485a9,_0x5f5a7c){_0x9485a9=_0x9485a9-0x1ba;const _0x1c755b=a119_0x1c75();let _0x22a5d3=_0x1c755b[_0x9485a9];return _0x22a5d3;}function toCamelCase(_0x2ad0cf){const _0x2b1b4d=a119_0x22a5;return _0x2ad0cf['replace'](/-([a-z])/g,(_0x261ee3,_0x2c56d6)=>_0x2c56d6[_0x2b1b4d(0x1dd)]());}
1
+ const a124_0x36ce33=a124_0x1c83;function a124_0x1c83(_0x39042f,_0x24499a){_0x39042f=_0x39042f-0x146;const _0x55ea75=a124_0x55ea();let _0x1c830d=_0x55ea75[_0x39042f];return _0x1c830d;}function a124_0x55ea(){const _0x112763=['3928281CgCyOZ','5214232GnDFPn','2361724Tyexaz','1878708zpaitU','427KpVumG','2681586jioWgx','70XeZXLA','1969595MOQXWQ','1erZyym','validateFlags','123594VecnkJ'];a124_0x55ea=function(){return _0x112763;};return a124_0x55ea();}(function(_0x433d8d,_0x4319db){const _0x555459=a124_0x1c83,_0x1b3109=_0x433d8d();while(!![]){try{const _0x1f0ca4=-parseInt(_0x555459(0x14d))/0x1*(parseInt(_0x555459(0x147))/0x2)+parseInt(_0x555459(0x150))/0x3+-parseInt(_0x555459(0x148))/0x4+-parseInt(_0x555459(0x14c))/0x5+parseInt(_0x555459(0x14f))/0x6*(-parseInt(_0x555459(0x149))/0x7)+parseInt(_0x555459(0x146))/0x8+parseInt(_0x555459(0x14a))/0x9*(parseInt(_0x555459(0x14b))/0xa);if(_0x1f0ca4===_0x4319db)break;else _0x1b3109['push'](_0x1b3109['shift']());}catch(_0x13e9cc){_0x1b3109['push'](_0x1b3109['shift']());}}}(a124_0x55ea,0xb619f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a124_0x36ce33(0x14e)];
@@ -1 +1 @@
1
- const a120_0x1bba4c=a120_0x1b48;function a120_0x1b48(_0x48e822,_0x185807){_0x48e822=_0x48e822-0xa3;const _0x4a522f=a120_0x4a52();let _0x1b4879=_0x4a522f[_0x48e822];return _0x1b4879;}(function(_0x465ced,_0x312f5f){const _0x3ac60f=a120_0x1b48,_0x20f4a5=_0x465ced();while(!![]){try{const _0x91e67c=-parseInt(_0x3ac60f(0xde))/0x1+-parseInt(_0x3ac60f(0xe5))/0x2*(-parseInt(_0x3ac60f(0xe4))/0x3)+parseInt(_0x3ac60f(0xad))/0x4*(parseInt(_0x3ac60f(0xa6))/0x5)+parseInt(_0x3ac60f(0xa8))/0x6+-parseInt(_0x3ac60f(0xbf))/0x7+parseInt(_0x3ac60f(0xbb))/0x8*(parseInt(_0x3ac60f(0xc1))/0x9)+parseInt(_0x3ac60f(0xdd))/0xa*(-parseInt(_0x3ac60f(0xe2))/0xb);if(_0x91e67c===_0x312f5f)break;else _0x20f4a5['push'](_0x20f4a5['shift']());}catch(_0x2d53ca){_0x20f4a5['push'](_0x20f4a5['shift']());}}}(a120_0x4a52,0xc4b93));import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a120_0x4a52(){const _0x18a104=['\x20\x20Run\x20`','get','boolean','\x20<n>','\x20\x20\x20\x20\x20\x20','\x20\x20[high-risk-write]','\x20[flags]','\x20\x20GLOBAL\x20OPTIONS','split','19112IeGRKN','description','\x20\x20ARGS','risk','861707kBBsBU','commands','4905CBfBVn','length','\x20auth`\x20first).','\x20[global-options]\x20<service>\x20<command>\x20[flags]','function','enum','\x20\x20[write]','\x20\x20USAGE','required','name','Requires\x20authentication\x20(run\x20`','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','wildcardDef','Requires\x20appcode\x20(set\x20via\x20`','type','flags','\x20|\x20','args','service','\x20<command>\x20[args]\x20[flags]','label','\x20\x20\x20\x20','\x20\x20PREREQUISITES','\x20project\x20init`\x20or\x20--appcode).','\x20<service>\x20--help`\x20for\x20service\x20commands.','\x20<value>','(required)','trim','18406090grYcNj','856275XnLvfN','join','helpExtra','hint','11LMeLgH','max','4702389HOayuo','2DkMpEp','push','requiresAuth','map','\x20\x20\x20\x20$\x20','\x20\x20FLAGS','dryRun','\x20\x20\x20\x20\x20\x20\x20\x20','filter','number','35YOdqkn','requiresAppCode','3293106ECvzoi','padEnd','command','high-risk-write','default','118540eIOiIs','tag','find','\x20\x20COMMANDS','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a120_0x4a52=function(){return _0x18a104;};return a120_0x4a52();}const RISK_LABELS={'read':'','write':a120_0x1bba4c(0xc7),'high-risk-write':a120_0x1bba4c(0xb7)};export function generateCommandHelp(_0x2d7afb){const _0x49b41f=a120_0x1bba4c,_0x11af7d=[],_0x37c888=_0x2d7afb[_0x49b41f(0xd3)]===_0x2d7afb[_0x49b41f(0xaa)]?CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]:CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]+'\x20'+_0x2d7afb[_0x49b41f(0xaa)],_0x4c542f=_0x2d7afb[_0x49b41f(0xd2)]?_0x2d7afb['args'][_0x49b41f(0xe8)](_0x522b4e=>_0x522b4e['required']!==![]?'<'+_0x522b4e[_0x49b41f(0xca)]+'>':'['+_0x522b4e[_0x49b41f(0xca)]+']')[_0x49b41f(0xdf)]('\x20'):'',_0x4b76e3=_0x4c542f?_0x37c888+'\x20'+_0x4c542f+_0x49b41f(0xb8):_0x37c888+'\x20[flags]';_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d[_0x49b41f(0xe6)]('\x20\x20'+_0x2d7afb[_0x49b41f(0xbc)]),_0x11af7d['push'](''),_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xc8)),_0x11af7d['push'](_0x49b41f(0xd6)+_0x4b76e3),_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d['push']('\x20\x20RISK:\x20'+_0x2d7afb[_0x49b41f(0xbe)]);_0x2d7afb['risk']===_0x49b41f(0xab)&&_0x11af7d['push'](_0x49b41f(0xb1));_0x11af7d[_0x49b41f(0xe6)]('');if(_0x2d7afb[_0x49b41f(0xd2)]&&_0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xc2)]>0x0){_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xbd));const _0x55867c=Math[_0x49b41f(0xe3)](..._0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xe8)](_0x4823aa=>_0x4823aa[_0x49b41f(0xca)][_0x49b41f(0xc2)]+0x2));for(const _0x16d017 of _0x2d7afb[_0x49b41f(0xd2)]){const _0x3d27b4=('<'+_0x16d017['name']+'>')['padEnd'](_0x55867c+0x2),_0x40bbed=_0x16d017[_0x49b41f(0xc9)]!==![]?'\x20(required)':'';_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xd6)+_0x3d27b4+_0x16d017[_0x49b41f(0xbc)]+_0x40bbed);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xd0)][_0x49b41f(0xc2)]>0x0||_0x2d7afb[_0x49b41f(0xeb)]||_0x2d7afb['hasFormat']!==![]){_0x11af7d['push'](_0x49b41f(0xea));const _0x43fbbd=buildAllFlags(_0x2d7afb),_0x1bbd39=Math[_0x49b41f(0xe3)](..._0x43fbbd[_0x49b41f(0xe8)](_0x5244f9=>formatFlagName(_0x5244f9)[_0x49b41f(0xc2)]));for(const _0x268202 of _0x43fbbd){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20'+formatFlagName(_0x268202)['padEnd'](_0x1bbd39+0x2)+renderFlagDesc(_0x268202));}_0x11af7d[_0x49b41f(0xe6)]('');}const _0x4e81c9=[];_0x2d7afb[_0x49b41f(0xe7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xcb)+CLI_BIN_NAME+_0x49b41f(0xc3));_0x2d7afb[_0x49b41f(0xa7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xce)+CLI_BIN_NAME+_0x49b41f(0xd8));if(_0x4e81c9[_0x49b41f(0xc2)]>0x0){_0x11af7d['push'](_0x49b41f(0xd7));for(const _0x2ed7c6 of _0x4e81c9){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20•\x20'+_0x2ed7c6);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xe0)]){const _0x5f0114=typeof _0x2d7afb[_0x49b41f(0xe0)]===_0x49b41f(0xc5)?_0x2d7afb[_0x49b41f(0xe0)]():_0x2d7afb[_0x49b41f(0xe0)];_0x11af7d['push'](_0x5f0114),_0x11af7d['push']('');}return _0x11af7d['join']('\x0a');}export function generateServiceHelp(_0x2433e8){const _0x3881f7=a120_0x1bba4c,_0x224c78=getServiceEntry(_0x2433e8);if(!_0x224c78)return'\x20\x20Unknown\x20service:\x20'+_0x2433e8+'\x0a';const _0x43f200=[],_0x47fd9e=serviceGroups[_0x3881f7(0xb3)](_0x2433e8);_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push']('\x20\x20'+_0x224c78[_0x3881f7(0xd5)]),_0x43f200['push'](''),_0x43f200[_0x3881f7(0xe6)]('\x20\x20USAGE'),_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xd6)+CLI_BIN_NAME+'\x20'+_0x2433e8+_0x3881f7(0xd4)),_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push'](_0x3881f7(0xb0));for(const _0x4c961b of _0x224c78[_0x3881f7(0xc0)]){_0x43f200[_0x3881f7(0xe6)]('');const _0x4bea65=_0x4c961b[_0x3881f7(0xae)]?'\x20\x20'+_0x4c961b['tag'][_0x3881f7(0xdc)]():'';_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20'+_0x4c961b['command']+_0x4bea65),_0x43f200['push'](_0x3881f7(0xb6)+_0x4c961b[_0x3881f7(0xbc)]);const _0x3322e0=_0x47fd9e?.[_0x3881f7(0xaf)](_0x5c9562=>_0x5c9562['command']===_0x4c961b[_0x3881f7(0xaa)]);if(_0x3322e0?.[_0x3881f7(0xd2)]&&_0x3322e0[_0x3881f7(0xd2)][_0x3881f7(0xc2)]>0x0){_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20\x20\x20ARGS');const _0x585495=Math[_0x3881f7(0xe3)](..._0x3322e0['args'][_0x3881f7(0xe8)](_0xe7c08a=>_0xe7c08a[_0x3881f7(0xca)]['length']+0x2));for(const _0xb55a3c of _0x3322e0[_0x3881f7(0xd2)]){const _0x3459b1=('<'+_0xb55a3c[_0x3881f7(0xca)]+'>')[_0x3881f7(0xa9)](_0x585495+0x2),_0x394335=_0xb55a3c[_0x3881f7(0xc9)]!==![]?'\x20(required)':'';_0x43f200['push'](_0x3881f7(0xa3)+_0x3459b1+_0xb55a3c[_0x3881f7(0xbc)]+_0x394335);}}const _0xb88d6d=getCommandFlags(_0x2433e8,_0x4c961b['command'],_0x47fd9e);if(_0xb88d6d[_0x3881f7(0xc2)]>0x0){const _0x335257=Math['max'](..._0xb88d6d[_0x3881f7(0xe8)](_0x256c96=>formatFlagName(_0x256c96)[_0x3881f7(0xc2)]));for(const _0x15fbba of _0xb88d6d){_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xb6)+formatFlagName(_0x15fbba)['padEnd'](_0x335257+0x2)+renderFlagDesc(_0x15fbba));}}}return _0x43f200[_0x3881f7(0xe6)](''),_0x43f200[_0x3881f7(0xdf)]('\x0a');}export function generateFullHelp(){const _0x55bf25=a120_0x1bba4c,_0xc622cf=[];_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+CLI_DISPLAY_NAME),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xc8)),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xe9)+CLI_BIN_NAME+_0x55bf25(0xc4)),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb9));const _0x1a75dc=GLOBAL_FLAGS[_0x55bf25(0xa4)](_0x458945=>!_0x458945['hidden']),_0x992511=Math[_0x55bf25(0xe3)](..._0x1a75dc[_0x55bf25(0xe8)](_0x73ce1c=>{const _0x4319ad=_0x55bf25,_0x381249=_0x73ce1c[_0x4319ad(0xe1)]?'\x20'+_0x73ce1c[_0x4319ad(0xe1)]:'';return('--'+_0x73ce1c['name']+_0x381249)[_0x4319ad(0xc2)];}));for(const _0x183c74 of _0x1a75dc){const _0x9e029d=_0x183c74[_0x55bf25(0xe1)]?'\x20'+_0x183c74[_0x55bf25(0xe1)]:'',_0x4b83d5=('--'+_0x183c74[_0x55bf25(0xca)]+_0x9e029d)['padEnd'](_0x992511+0x2);_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4b83d5+_0x183c74[_0x55bf25(0xbc)]);}_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf['push'](_0x55bf25(0xb0)),_0xc622cf[_0x55bf25(0xe6)]('');for(const _0x4318a1 of serviceRegistry){_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+_0x4318a1['label']);if(_0x4318a1['isSingleCommand']){const _0x5f2fed=_0x4318a1[_0x55bf25(0xc0)][0x0],_0xb82f01=_0x5f2fed[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4318a1[_0x55bf25(0xd3)][_0x55bf25(0xa9)](0x12)+_0x5f2fed[_0x55bf25(0xbc)]+_0xb82f01);}else{const _0x3b39bd=_0x4318a1['commands']['map'](_0x7676=>_0x4318a1[_0x55bf25(0xd3)]+'\x20'+_0x7676['command']),_0x23b943=Math['max'](..._0x3b39bd[_0x55bf25(0xe8)](_0xa5d11d=>_0xa5d11d[_0x55bf25(0xc2)]));for(let _0x4bd561=0x0;_0x4bd561<_0x4318a1[_0x55bf25(0xc0)][_0x55bf25(0xc2)];_0x4bd561++){const _0x18876c=_0x4318a1[_0x55bf25(0xc0)][_0x4bd561],_0x333276=_0x18876c[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x3b39bd[_0x4bd561][_0x55bf25(0xa9)](_0x23b943+0x2)+_0x18876c[_0x55bf25(0xbc)]+_0x333276);}}if(_0x4318a1[_0x55bf25(0xcd)]?.[_0x55bf25(0xe0)]){const _0x2d894c=typeof _0x4318a1['wildcardDef'][_0x55bf25(0xe0)]===_0x55bf25(0xc5)?_0x4318a1['wildcardDef'][_0x55bf25(0xe0)]():_0x4318a1[_0x55bf25(0xcd)][_0x55bf25(0xe0)];for(const _0x12e3f5 of _0x2d894c[_0x55bf25(0xba)]('\x0a')){_0xc622cf['push']('\x20\x20'+_0x12e3f5);}}_0xc622cf['push']('');}return _0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb2)+CLI_BIN_NAME+_0x55bf25(0xd9)),_0xc622cf['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+_0x55bf25(0xcc)),_0xc622cf['push'](''),_0xc622cf[_0x55bf25(0xdf)]('\x0a');}function getCommandFlags(_0x32563d,_0x29f7f2,_0x5333b4){const _0x5b1caa=a120_0x1bba4c;if(_0x5333b4){const _0x503de1=_0x5333b4['find'](_0x2752a6=>_0x2752a6[_0x5b1caa(0xaa)]===_0x29f7f2);if(_0x503de1)return buildAllFlags(_0x503de1);}return[];}function renderFlagDesc(_0x4f7a68){const _0x58c493=a120_0x1bba4c;let _0x4b625f=_0x4f7a68[_0x58c493(0xbc)];return _0x4f7a68[_0x58c493(0xc6)]&&_0x4f7a68[_0x58c493(0xc6)]['length']>0x0&&(_0x4b625f+='\x20('+_0x4f7a68[_0x58c493(0xc6)][_0x58c493(0xdf)](_0x58c493(0xd1))+')'),_0x4f7a68[_0x58c493(0xac)]!==undefined&&_0x4f7a68[_0x58c493(0xac)]!==''&&_0x4f7a68[_0x58c493(0xac)]!==![]&&(_0x4b625f+='\x20[default:\x20'+_0x4f7a68[_0x58c493(0xac)]+']'),_0x4f7a68[_0x58c493(0xc9)]&&!_0x4b625f['includes'](_0x58c493(0xdb))&&(_0x4b625f+='\x20(required)'),_0x4b625f;}function formatFlagName(_0xfe4312){const _0x32b372=a120_0x1bba4c,_0xc15e29=_0xfe4312[_0x32b372(0xcf)]===_0x32b372(0xb4)?'':_0xfe4312['type']===_0x32b372(0xa5)?_0x32b372(0xb5):_0x32b372(0xda);return'--'+_0xfe4312['name']+_0xc15e29;}
1
+ const a125_0x49bbbd=a125_0x84f5;(function(_0x19c22a,_0x363a64){const _0x66f2d1=a125_0x84f5,_0x1bea04=_0x19c22a();while(!![]){try{const _0xc207f5=parseInt(_0x66f2d1(0xd9))/0x1*(-parseInt(_0x66f2d1(0xd7))/0x2)+-parseInt(_0x66f2d1(0xdf))/0x3*(parseInt(_0x66f2d1(0xd6))/0x4)+parseInt(_0x66f2d1(0xd5))/0x5*(parseInt(_0x66f2d1(0xe2))/0x6)+parseInt(_0x66f2d1(0xe3))/0x7+parseInt(_0x66f2d1(0xd8))/0x8+parseInt(_0x66f2d1(0xda))/0x9+-parseInt(_0x66f2d1(0xd4))/0xa;if(_0xc207f5===_0x363a64)break;else _0x1bea04['push'](_0x1bea04['shift']());}catch(_0x5cc795){_0x1bea04['push'](_0x1bea04['shift']());}}}(a125_0x2313,0xef452));function a125_0x2313(){const _0x31c0fa=['27484velmYN','4uAPjXV','5172920WfueIl','419577KDnnQk','13699017tijiMY','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','get','generateFullHelp','822rpAiwq','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','5630064EhgHkM','8669759XXilFu','6437510YdIuqf','5oBUBhT'];a125_0x2313=function(){return _0x31c0fa;};return a125_0x2313();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x84f5(_0x6fa9da,_0x1b8ffa){_0x6fa9da=_0x6fa9da-0xd4;const _0x2313fc=a125_0x2313();let _0x84f58a=_0x2313fc[_0x6fa9da];return _0x84f58a;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3d93f4=>serviceGroups[a125_0x49bbbd(0xdd)](_0x3d93f4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a125_0x49bbbd(0xe1)+CLI_BIN_NAME+a125_0x49bbbd(0xdb),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x31279a){const _0x1841b9=a125_0x49bbbd;return generators[_0x1841b9(0xe0)](_0x31279a);}export const generateServiceHelp=generators[a125_0x49bbbd(0xdc)];export const generateFullHelp=generators[a125_0x49bbbd(0xde)];
@@ -1 +1 @@
1
- (function(_0x46811e,_0x550a8a){var _0xa67bd0=a121_0xb27b,_0x23bab0=_0x46811e();while(!![]){try{var _0xfcc2d7=parseInt(_0xa67bd0(0x12d))/0x1+-parseInt(_0xa67bd0(0x12e))/0x2+-parseInt(_0xa67bd0(0x131))/0x3+-parseInt(_0xa67bd0(0x12a))/0x4+parseInt(_0xa67bd0(0x129))/0x5*(parseInt(_0xa67bd0(0x12b))/0x6)+-parseInt(_0xa67bd0(0x12c))/0x7*(parseInt(_0xa67bd0(0x12f))/0x8)+-parseInt(_0xa67bd0(0x130))/0x9*(-parseInt(_0xa67bd0(0x128))/0xa);if(_0xfcc2d7===_0x550a8a)break;else _0x23bab0['push'](_0x23bab0['shift']());}catch(_0x29382f){_0x23bab0['push'](_0x23bab0['shift']());}}}(a121_0x3fc0,0x9a3bd));function a121_0x3fc0(){var _0x4fec89=['3392367MNwOwa','200810rCCkvB','270imDVwi','4036920aLjBzy','86706DapkMR','4102PuzWrY','768162REOZQV','1507998ruvsgQ','17144TDuwYL','1449HhhuxW'];a121_0x3fc0=function(){return _0x4fec89;};return a121_0x3fc0();}export{runCommand}from'../framework/runner.js';function a121_0xb27b(_0x7fcdef,_0x51010c){_0x7fcdef=_0x7fcdef-0x128;var _0x3fc09e=a121_0x3fc0();var _0xb27bcf=_0x3fc09e[_0x7fcdef];return _0xb27bcf;}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
+ function a126_0xe9b5(){var _0x29bbc3=['8348584dmYGdy','7RSydwi','6091785ndqbwF','4132695DrQGas','6614310tGKYmk','243026vJVQoM','4563307eHADSU','4739740gYHvFo'];a126_0xe9b5=function(){return _0x29bbc3;};return a126_0xe9b5();}(function(_0x7bb4a5,_0x4a2946){var _0x32bcd4=a126_0x3f08,_0x37c309=_0x7bb4a5();while(!![]){try{var _0x5813b3=parseInt(_0x32bcd4(0x1a1))/0x1*(parseInt(_0x32bcd4(0x19d))/0x2)+parseInt(_0x32bcd4(0x19b))/0x3+parseInt(_0x32bcd4(0x19f))/0x4+-parseInt(_0x32bcd4(0x19a))/0x5+-parseInt(_0x32bcd4(0x19c))/0x6+parseInt(_0x32bcd4(0x19e))/0x7+-parseInt(_0x32bcd4(0x1a0))/0x8;if(_0x5813b3===_0x4a2946)break;else _0x37c309['push'](_0x37c309['shift']());}catch(_0x563b80){_0x37c309['push'](_0x37c309['shift']());}}}(a126_0xe9b5,0xab105));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a126_0x3f08(_0x766c7a,_0x4a62d7){_0x766c7a=_0x766c7a-0x19a;var _0xe9b520=a126_0xe9b5();var _0x3f08e2=_0xe9b520[_0x766c7a];return _0x3f08e2;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a122_0x3105(_0x3c3ff8,_0x1930b6){_0x3c3ff8=_0x3c3ff8-0x17b;const _0x2f7b13=a122_0x2f7b();let _0x310572=_0x2f7b13[_0x3c3ff8];return _0x310572;}(function(_0x5cca0d,_0x483b8b){const _0x32c6ab=a122_0x3105,_0x52d50b=_0x5cca0d();while(!![]){try{const _0x33cd5e=-parseInt(_0x32c6ab(0x18c))/0x1*(parseInt(_0x32c6ab(0x18a))/0x2)+parseInt(_0x32c6ab(0x1a6))/0x3+parseInt(_0x32c6ab(0x198))/0x4+parseInt(_0x32c6ab(0x184))/0x5+-parseInt(_0x32c6ab(0x1a4))/0x6*(-parseInt(_0x32c6ab(0x195))/0x7)+parseInt(_0x32c6ab(0x190))/0x8*(-parseInt(_0x32c6ab(0x1ab))/0x9)+parseInt(_0x32c6ab(0x194))/0xa;if(_0x33cd5e===_0x483b8b)break;else _0x52d50b['push'](_0x52d50b['shift']());}catch(_0xb81695){_0x52d50b['push'](_0x52d50b['shift']());}}}(a122_0x2f7b,0x1c205));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x294861,_0xe6a2da){const _0x20f786=a122_0x3105,{format:_0x30614e}=_0xe6a2da;switch(_0x30614e){case'json':printJson(_0x294861,_0xe6a2da);break;case'compress':printCompress(_0x294861,_0xe6a2da);break;case _0x20f786(0x1a7):default:printPretty(_0x294861,_0xe6a2da);break;}}function buildEnvelope(_0x4ab28b,_0x2efda6){const _0x435ea3=a122_0x3105,_0x570854={'ok':_0x4ab28b['ok'],'command':_0x2efda6[_0x435ea3(0x19e)],'risk':_0x2efda6[_0x435ea3(0x18d)]};if(_0x2efda6['dryRun'])_0x570854[_0x435ea3(0x17e)]=!![];if(_0x4ab28b[_0x435ea3(0x19d)]!==undefined)_0x570854[_0x435ea3(0x19d)]=_0x4ab28b[_0x435ea3(0x19d)];return!_0x4ab28b['ok']&&_0x4ab28b[_0x435ea3(0x180)]&&(_0x570854[_0x435ea3(0x17d)]={'code':_0x435ea3(0x192),'message':_0x4ab28b[_0x435ea3(0x180)]}),_0x570854;}function printJson(_0x1d409f,_0xa71f97){const _0x36e452=buildEnvelope(_0x1d409f,_0xa71f97),_0x3fbde9=JSON['stringify'](_0x36e452,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0x3fbde9,_0xa71f97);}function a122_0x2f7b(){const _0x49be82=['error','dryRun','trim','message','\x20\x20Config:\x20\x20\x20','items','write','70980byxavL','map','stdout','project','meta','isArray','207722qSZpyT','Error:\x20','1LftTQQ','risk','object','(empty)','8PTCkoN','jqFilter','command_error','log','1467680EgkSZj','777bfWBkO','projectPath','stringify','387704yfVTJa','\x20(default\x20from\x20global\x20file)','\x20\x20Scope:\x20\x20\x20\x20','padEnd','scope','data','command','defaultApp','endsWith','keys','Found\x20','configPath','678lgRVGJ','filter','506040dWmJxK','pretty','length','\x20\x20Default\x20app:\x20\x20\x20\x20\x20','entries','1980423iNcszL','\x20(default\x20from\x20project\x20file)','max','(none)'];a122_0x2f7b=function(){return _0x49be82;};return a122_0x2f7b();}function printCompress(_0x404305,_0x4de794){const _0xd47ad0=buildEnvelope(_0x404305,_0x4de794),_0x47c174=JSON['stringify'](_0xd47ad0)+'\x0a';writeJsonWithOptionalJq(_0x47c174,_0x4de794);}function writeJsonWithOptionalJq(_0x5628d9,_0x5c42f2){const _0x141fb1=a122_0x3105,_0x4395b7=_0x5c42f2[_0x141fb1(0x191)]?.[_0x141fb1(0x17f)]();if(!_0x4395b7){process[_0x141fb1(0x186)]['write'](_0x5628d9);return;}const _0x1bb7b6=applyJqFilter(_0x5628d9,_0x4395b7);process[_0x141fb1(0x186)][_0x141fb1(0x183)](_0x1bb7b6[_0x141fb1(0x1a0)]('\x0a')?_0x1bb7b6:_0x1bb7b6+'\x0a');}function isListWithMetaData(_0x3cfe0d){const _0x2109f9=a122_0x3105;return typeof _0x3cfe0d==='object'&&_0x3cfe0d!==null&&_0x2109f9(0x182)in _0x3cfe0d&&Array[_0x2109f9(0x189)](_0x3cfe0d['items'])&&_0x2109f9(0x188)in _0x3cfe0d&&typeof _0x3cfe0d[_0x2109f9(0x188)]===_0x2109f9(0x18e)&&_0x3cfe0d['meta']!==null;}function printAppListMeta(_0x163426){const _0x59e54=a122_0x3105;if(_0x163426[_0x59e54(0x19c)]){const _0x118113=_0x163426[_0x59e54(0x1a3)]!=null?String(_0x163426[_0x59e54(0x1a3)]):'(none)';console[_0x59e54(0x193)](_0x59e54(0x19a)+String(_0x163426[_0x59e54(0x19c)])),console[_0x59e54(0x193)](_0x59e54(0x181)+_0x118113),console['log']();return;}const _0x421314=_0x163426['globalPath']!=null?String(_0x163426['globalPath']):_0x59e54(0x17c),_0x7bddf8=_0x163426[_0x59e54(0x196)]!=null?String(_0x163426[_0x59e54(0x196)]):_0x59e54(0x17c),_0x230bec=_0x163426[_0x59e54(0x19f)]!=null?String(_0x163426['defaultApp']):_0x59e54(0x17c),_0x46913d=_0x163426['defaultAppSource'],_0x3bccf3=_0x46913d===_0x59e54(0x187)?_0x59e54(0x1ac):_0x46913d==='global'?_0x59e54(0x199):'';console[_0x59e54(0x193)]('\x20\x20Global\x20config:\x20\x20\x20'+_0x421314),console['log']('\x20\x20Project\x20config:\x20\x20'+_0x7bddf8),console[_0x59e54(0x193)](_0x59e54(0x1a9)+_0x230bec+_0x3bccf3),console[_0x59e54(0x193)]();}function printPretty(_0x1e997e,_0xce6c72){const _0x4fd911=a122_0x3105;if(_0xce6c72[_0x4fd911(0x17e)]){console[_0x4fd911(0x193)]('[dry-run]\x20Would\x20execute:'),console[_0x4fd911(0x193)](JSON[_0x4fd911(0x197)](_0x1e997e[_0x4fd911(0x19d)],null,0x2));return;}if(!_0x1e997e['ok']){console[_0x4fd911(0x17d)](_0x4fd911(0x18b)+(_0x1e997e[_0x4fd911(0x180)]??'Unknown\x20error'));return;}const _0x2de108=_0x1e997e[_0x4fd911(0x19d)];if(_0x2de108===undefined||_0x2de108===null){if(_0x1e997e[_0x4fd911(0x180)])console[_0x4fd911(0x193)](_0x1e997e['message']);return;}if(isListWithMetaData(_0x2de108)){printAppListMeta(_0x2de108[_0x4fd911(0x188)]),printArrayPretty(_0x2de108[_0x4fd911(0x182)]);return;}if(Array[_0x4fd911(0x189)](_0x2de108)){printArrayPretty(_0x2de108);return;}if(typeof _0x2de108==='object'){printObjectPretty(_0x2de108);return;}console[_0x4fd911(0x193)](String(_0x2de108));}function printObjectPretty(_0x4eaaaa){const _0x4bfec9=a122_0x3105,_0x25c58d=Math[_0x4bfec9(0x17b)](...Object[_0x4bfec9(0x1a1)](_0x4eaaaa)[_0x4bfec9(0x185)](_0x5a8442=>_0x5a8442[_0x4bfec9(0x1a8)]),0x0);for(const [_0x57bee6,_0x44fe28]of Object[_0x4bfec9(0x1aa)](_0x4eaaaa)){if(_0x44fe28===undefined||_0x44fe28===null)continue;const _0x297a00=_0x57bee6[_0x4bfec9(0x19b)](_0x25c58d);typeof _0x44fe28===_0x4bfec9(0x18e)?console[_0x4bfec9(0x193)](_0x297a00+'\x20\x20'+JSON[_0x4bfec9(0x197)](_0x44fe28)):console[_0x4bfec9(0x193)](_0x297a00+'\x20\x20'+_0x44fe28);}}function printArrayPretty(_0x189526){const _0x31d341=a122_0x3105;if(_0x189526[_0x31d341(0x1a8)]===0x0){console[_0x31d341(0x193)](_0x31d341(0x18f));return;}console['log'](_0x31d341(0x1a2)+_0x189526[_0x31d341(0x1a8)]+'\x20items:\x0a');for(const _0x3d2326 of _0x189526){if(typeof _0x3d2326==='object'&&_0x3d2326!==null){const _0x58369f=Object[_0x31d341(0x1aa)](_0x3d2326)[_0x31d341(0x1a5)](([,_0x1563b0])=>_0x1563b0!=null&&_0x1563b0!=='');if(_0x58369f[_0x31d341(0x1a8)]===0x0)continue;const _0x19e605=Math[_0x31d341(0x17b)](..._0x58369f[_0x31d341(0x185)](([_0x40deb6])=>_0x40deb6[_0x31d341(0x1a8)]));for(const [_0x46f8d7,_0x5438ee]of _0x58369f){const _0x3d099d=typeof _0x5438ee===_0x31d341(0x18e)?JSON[_0x31d341(0x197)](_0x5438ee):String(_0x5438ee);console[_0x31d341(0x193)]('\x20\x20'+_0x46f8d7[_0x31d341(0x19b)](_0x19e605)+'\x20\x20'+_0x3d099d);}console[_0x31d341(0x193)]('');}else console['log']('\x20\x20'+_0x3d2326);}}
1
+ function a127_0x20a1(){var _0x521312=['77HSqRQL','18xHsIfa','1199592EhneeM','1156670Xysywt','97273OkbaPt','8UpTjPh','1471134nKDsFw','259936rXREed','704235cklasF','1902252DQoMMk','2MwyHrn'];a127_0x20a1=function(){return _0x521312;};return a127_0x20a1();}function a127_0x353f(_0x442726,_0x1ebefe){_0x442726=_0x442726-0x10e;var _0x20a161=a127_0x20a1();var _0x353f46=_0x20a161[_0x442726];return _0x353f46;}(function(_0x320035,_0x23510a){var _0x1d09ee=a127_0x353f,_0x3c066a=_0x320035();while(!![]){try{var _0x5d0cde=-parseInt(_0x1d09ee(0x110))/0x1+-parseInt(_0x1d09ee(0x116))/0x2*(parseInt(_0x1d09ee(0x112))/0x3)+-parseInt(_0x1d09ee(0x111))/0x4*(-parseInt(_0x1d09ee(0x114))/0x5)+-parseInt(_0x1d09ee(0x10e))/0x6+parseInt(_0x1d09ee(0x117))/0x7*(parseInt(_0x1d09ee(0x113))/0x8)+parseInt(_0x1d09ee(0x118))/0x9*(parseInt(_0x1d09ee(0x10f))/0xa)+parseInt(_0x1d09ee(0x115))/0xb;if(_0x5d0cde===_0x23510a)break;else _0x3c066a['push'](_0x3c066a['shift']());}catch(_0x5850bf){_0x3c066a['push'](_0x3c066a['shift']());}}}(a127_0x20a1,0x3e72d));export{formatOutput}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x4bca52,_0x5f5864){var _0x348e38=a123_0x407d,_0x403ab2=_0x4bca52();while(!![]){try{var _0x1da214=parseInt(_0x348e38(0x129))/0x1+-parseInt(_0x348e38(0x12d))/0x2*(parseInt(_0x348e38(0x124))/0x3)+-parseInt(_0x348e38(0x127))/0x4+parseInt(_0x348e38(0x126))/0x5+-parseInt(_0x348e38(0x123))/0x6*(-parseInt(_0x348e38(0x12f))/0x7)+parseInt(_0x348e38(0x125))/0x8+-parseInt(_0x348e38(0x12c))/0x9*(parseInt(_0x348e38(0x12b))/0xa);if(_0x1da214===_0x5f5864)break;else _0x403ab2['push'](_0x403ab2['shift']());}catch(_0x5d5d01){_0x403ab2['push'](_0x403ab2['shift']());}}}(a123_0x578b,0x8ff64));function a123_0x407d(_0x200372,_0x4a8db4){_0x200372=_0x200372-0x123;var _0x578ba7=a123_0x578b();var _0x407de7=_0x578ba7[_0x200372];return _0x407de7;}export function extractList(_0x2910f3){var _0x993096=a123_0x407d;if(Array[_0x993096(0x12e)](_0x2910f3))return _0x2910f3;if(_0x2910f3&&typeof _0x2910f3===_0x993096(0x12a))return _0x2910f3[_0x993096(0x128)]??[];return[];}function a123_0x578b(){var _0x648c4=['tableData','779659aMVTtB','object','7330ZXCQfH','8235WzCxIy','14airsMa','isArray','7ClGeFG','4921758AvcgYG','186543UjPjsg','4350736hKIlId','1449635isSDcE','2952364GGfMPl'];a123_0x578b=function(){return _0x648c4;};return a123_0x578b();}export function extractPaging(_0x23517c){var _0x28835b=a123_0x407d;if(_0x23517c&&typeof _0x23517c===_0x28835b(0x12a)&&!Array[_0x28835b(0x12e)](_0x23517c))return _0x23517c['paging'];return undefined;}
1
+ (function(_0x3cf123,_0x24a91f){var _0x133d3b=a128_0x54c8,_0x3daf69=_0x3cf123();while(!![]){try{var _0x4dd094=-parseInt(_0x133d3b(0x15f))/0x1*(parseInt(_0x133d3b(0x158))/0x2)+parseInt(_0x133d3b(0x15d))/0x3*(parseInt(_0x133d3b(0x15c))/0x4)+-parseInt(_0x133d3b(0x159))/0x5+parseInt(_0x133d3b(0x15e))/0x6+-parseInt(_0x133d3b(0x15b))/0x7+parseInt(_0x133d3b(0x15a))/0x8+parseInt(_0x133d3b(0x160))/0x9;if(_0x4dd094===_0x24a91f)break;else _0x3daf69['push'](_0x3daf69['shift']());}catch(_0x1148b4){_0x3daf69['push'](_0x3daf69['shift']());}}}(a128_0x3865,0x89185));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x54c8(_0x5dc415,_0x94da22){_0x5dc415=_0x5dc415-0x158;var _0x3865e3=a128_0x3865();var _0x54c882=_0x3865e3[_0x5dc415];return _0x54c882;}function a128_0x3865(){var _0x3f61d9=['4qJLVVJ','3233664wucZUy','3076506uLMaSn','910703ekMQpB','7676127JWrWKz','2eBtNrt','5237875kquNGB','7278152GLMusf','5834444OZdetX'];a128_0x3865=function(){return _0x3f61d9;};return a128_0x3865();}
@@ -0,0 +1 @@
1
+ (function(_0x23eefa,_0x580368){const _0x17b4e6=a129_0x328b,_0x59fdef=_0x23eefa();while(!![]){try{const _0x289f57=parseInt(_0x17b4e6(0x1ee))/0x1+parseInt(_0x17b4e6(0x1dc))/0x2+-parseInt(_0x17b4e6(0x1e9))/0x3+parseInt(_0x17b4e6(0x1e3))/0x4+parseInt(_0x17b4e6(0x1f1))/0x5*(-parseInt(_0x17b4e6(0x1e2))/0x6)+-parseInt(_0x17b4e6(0x1db))/0x7+-parseInt(_0x17b4e6(0x1eb))/0x8*(parseInt(_0x17b4e6(0x1f0))/0x9);if(_0x289f57===_0x580368)break;else _0x59fdef['push'](_0x59fdef['shift']());}catch(_0x50218c){_0x59fdef['push'](_0x59fdef['shift']());}}}(a129_0x31b3,0xd3b01));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x328b(_0x627225,_0x13c596){_0x627225=_0x627225-0x1d9;const _0x31b3f3=a129_0x31b3();let _0x328bf1=_0x31b3f3[_0x627225];return _0x328bf1;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x31b3(){const _0x1e17fc=['alias','3515049PeTzVt','`\x20requires\x20either\x20--code\x20or\x20--alias.','8HnqbzG','code','Unknown\x20alias\x20\x22','1521081NauLHE','validation','10078587ajyEBg','3059960wWktLZ','type','name','1582679mEFdNz','1695778mgDBzy','\x20api\x20pull`\x20first.','some','flags','.\x20Run\x20`','Available\x20aliases:\x20','6TZiMbm','6510872WAxCUZ','No\x20api.ts\x20found\x20in\x20','length','string','join'];a129_0x31b3=function(){return _0x1e17fc;};return a129_0x31b3();}export function resolveAliasToCode(_0x13d9ad,_0x13d6d3,_0xf7176f,_0x1f30fb){const _0x28d9cb=a129_0x328b,_0x4a16fc=_0x13d9ad[_0x28d9cb(0x1df)][_0x28d9cb(0x1de)](_0x45e481=>_0x45e481[_0x28d9cb(0x1da)]===_0x28d9cb(0x1ec)&&_0x45e481[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6)),_0x1b9d8b=_0x13d9ad[_0x28d9cb(0x1df)]['some'](_0x438e43=>_0x438e43[_0x28d9cb(0x1da)]===_0x28d9cb(0x1e8)&&_0x438e43[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6));if(!_0x4a16fc||!_0x1b9d8b)return;const _0x487709=_0x13d6d3[_0x28d9cb(0x1ec)]?String(_0x13d6d3[_0x28d9cb(0x1ec)]):'',_0x4592cd=_0x13d6d3[_0x28d9cb(0x1e8)]?String(_0x13d6d3[_0x28d9cb(0x1e8)]):'';if(!_0x487709&&!_0x4592cd)throw CliErrors[_0x28d9cb(0x1ef)]('`'+_0x1f30fb+_0x28d9cb(0x1ea));if(_0x4592cd&&!_0x487709){const _0x48dab7=resolveAlias(_0xf7176f,_0x4592cd);if(!_0x48dab7){const _0x3bb44b=listAliases(_0xf7176f)['map'](_0x14df32=>_0x14df32[_0x28d9cb(0x1e8)]),_0x52b4e5=_0x3bb44b[_0x28d9cb(0x1e5)]?_0x28d9cb(0x1e1)+_0x3bb44b[_0x28d9cb(0x1e7)](',\x20'):_0x28d9cb(0x1e4)+_0xf7176f+_0x28d9cb(0x1e0)+CLI_BIN_NAME+_0x28d9cb(0x1dd);throw CliErrors['validation'](_0x28d9cb(0x1ed)+_0x4592cd+'\x22.\x20'+_0x52b4e5);}_0x13d6d3[_0x28d9cb(0x1ec)]=_0x48dab7;}}
@@ -1 +1 @@
1
- function a124_0x4553(){const _0x4c8e67=['name','some','execute','command','44ffxoip','code','pagesize','`\x20requires\x20either\x20--code\x20or\x20--alias.','Available\x20aliases:\x20','High-risk\x20operation\x20`','hasFormat','type','alias','flags','createInterface','3863850UTSUnm','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','length','Unknown\x20alias\x20\x22','24Lwptoo','334817tHUJeJ','625890sBOERW','pretty','Operation\x20cancelled\x20by\x20user.','yes','resolveAppCode','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','close','toLowerCase','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','args','stdin','format','1434624FsJrCZ','161810ewenoD','157956rZfBKM','dry-run','selectedAppName','5972uiLHnW','stderr','resolveCookie','riskLevel','apiDir','defaultFormat','\x22.\x20','dryRun','resolveApiDomain','cancelled','apiDomain','isNonInteractive','`\x20has\x20risk\x20level\x20\x22','.\x20Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','service','node:readline','json','number','94vcjlKM','Set\x20appcode\x20via\x20`','compress','12zkjIba','No\x20api.ts\x20found\x20in\x20','defaultPageSize','high-risk-write','\x20api\x20pull`\x20first.','string','appCode','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','defaultOutputFormat','cookie','⚠\x20\x20High-risk\x20operation:\x20','54FEmevj','risk','Command\x20`','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','defaultVerbose','requiresAuth','rawFlags','validation'];a124_0x4553=function(){return _0x4c8e67;};return a124_0x4553();}(function(_0x198522,_0x4bfe5b){const _0x1e6653=a124_0x230f,_0x22f660=_0x198522();while(!![]){try{const _0x36084f=-parseInt(_0x1e6653(0x1de))/0x1*(-parseInt(_0x1e6653(0x1f1))/0x2)+parseInt(_0x1e6653(0x1db))/0x3*(-parseInt(_0x1e6653(0x1bb))/0x4)+parseInt(_0x1e6653(0x1c6))/0x5+-parseInt(_0x1e6653(0x1f4))/0x6*(-parseInt(_0x1e6653(0x1cb))/0x7)+parseInt(_0x1e6653(0x1d9))/0x8+-parseInt(_0x1e6653(0x1ff))/0x9*(parseInt(_0x1e6653(0x1cc))/0xa)+parseInt(_0x1e6653(0x1da))/0xb*(parseInt(_0x1e6653(0x1ca))/0xc);if(_0x36084f===_0x4bfe5b)break;else _0x22f660['push'](_0x22f660['shift']());}catch(_0xe5f600){_0x22f660['push'](_0x22f660['shift']());}}}(a124_0x4553,0x626d6));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a124_0x230f(_0x1622d1,_0xd4ed9f){_0x1622d1=_0x1622d1-0x1b0;const _0x4553b6=a124_0x4553();let _0x230f4b=_0x4553b6[_0x1622d1];return _0x230f4b;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x517917,_0x5ecae2){const _0x2cd54a=a124_0x230f,_0x35addc=CLI_BIN_NAME+'\x20'+_0x517917[_0x2cd54a(0x1ed)]+'\x20'+_0x517917[_0x2cd54a(0x1ba)],_0x2790d9=parseFlags(_0x517917[_0x2cd54a(0x1c4)],_0x5ecae2[_0x2cd54a(0x1b5)]);validateFlags(_0x517917[_0x2cd54a(0x1c4)],_0x2790d9,_0x35addc);if(!_0x2790d9[_0x2cd54a(0x1dc)]&&_0x5ecae2[_0x2cd54a(0x1e1)]&&riskLevelOrder(_0x517917[_0x2cd54a(0x1b0)])>riskLevelOrder(_0x5ecae2[_0x2cd54a(0x1e1)])){if(_0x5ecae2[_0x2cd54a(0x1e9)])throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1b1)+_0x35addc+_0x2cd54a(0x1ea)+_0x517917[_0x2cd54a(0x1b0)]+_0x2cd54a(0x1d5)+_0x5ecae2[_0x2cd54a(0x1e1)]+'\x22.');throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1b1)+_0x35addc+_0x2cd54a(0x1ea)+_0x517917[_0x2cd54a(0x1b0)]+_0x2cd54a(0x1d5)+_0x5ecae2[_0x2cd54a(0x1e1)]+'\x22.\x0a'+(_0x2cd54a(0x1d1)+_0x517917[_0x2cd54a(0x1b0)]+_0x2cd54a(0x1b2)));}const _0x5b1f44=_0x5ecae2[_0x2cd54a(0x1e2)]||DEFAULT_API_DIR;resolveAliasToCode(_0x517917,_0x2790d9,_0x5b1f44,_0x35addc);let _0x5cf4dc='';if(_0x517917[_0x2cd54a(0x1b4)]!==![]){_0x5cf4dc=_0x5ecae2[_0x2cd54a(0x1e0)]();if(!_0x5cf4dc)throw CliErrors['authRequired']();const {setActiveCookie:_0x21d453}=await import('../core/api-client.js');_0x21d453(_0x5cf4dc);}let _0x1f8db4='';if(_0x517917['requiresAppCode']!==![]){_0x1f8db4=_0x5ecae2[_0x2cd54a(0x1d0)]()??'';if(!_0x1f8db4)throw CliErrors['configMissing'](_0x2cd54a(0x1f2)+CLI_BIN_NAME+_0x2cd54a(0x1ec));}let _0x5ec0=resolveFormat(_0x2790d9,_0x517917,_0x5ecae2[_0x2cd54a(0x1e3)]);const _0x4a1ca5=resolveJqFilter(_0x2790d9);_0x4a1ca5&&_0x5ec0===_0x2cd54a(0x1cd)&&(_0x5ec0='json');if(_0x4a1ca5&&_0x5ec0!==_0x2cd54a(0x1ef)&&_0x5ec0!==_0x2cd54a(0x1f3))throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1d2)+_0x5ec0+').');const _0xd02a1b=buildRuntimeContext({'appCode':_0x1f8db4,'cookie':_0x5cf4dc,'apiDomain':_0x5ecae2[_0x2cd54a(0x1e6)](),'format':_0x5ec0,'jqFilter':_0x4a1ca5,'flags':_0x2790d9,'def':_0x517917,'nonInteractive':_0x5ecae2[_0x2cd54a(0x1e9)],'defaultPageSize':_0x5ecae2[_0x2cd54a(0x1f6)],'defaultVerbose':_0x5ecae2['defaultVerbose'],'apiDir':_0x5b1f44,'selectedAppName':_0x5ecae2[_0x2cd54a(0x1dd)],'args':_0x5ecae2[_0x2cd54a(0x1d6)]??[]});_0x517917['validate']&&await _0x517917['validate'](_0xd02a1b);if(_0x2790d9[_0x2cd54a(0x1dc)]){if(!_0x517917[_0x2cd54a(0x1e5)])throw CliErrors[_0x2cd54a(0x1b6)]('--dry-run\x20is\x20not\x20supported\x20for\x20`'+_0x35addc+'`.');const _0x57e7ba=await _0x517917[_0x2cd54a(0x1e5)](_0xd02a1b);formatOutput({'ok':!![],'data':_0x57e7ba},{'command':_0x35addc,'risk':_0x517917[_0x2cd54a(0x1b0)],'format':_0x5ec0,'dryRun':!![],'jqFilter':_0x4a1ca5});return;}if(_0x517917[_0x2cd54a(0x1b0)]===_0x2cd54a(0x1f7)&&!_0x2790d9['yes']){if(_0x5ecae2['isNonInteractive'])throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1c0)+_0x35addc+_0x2cd54a(0x1c7));await requireConfirmation(_0x35addc);}const _0x2b0b19=await _0x517917[_0x2cd54a(0x1b9)](_0xd02a1b);formatOutput(_0x2b0b19,{'command':_0x35addc,'risk':_0x517917[_0x2cd54a(0x1b0)],'format':_0x5ec0,'jqFilter':_0x4a1ca5});}function buildRuntimeContext(_0xac3dd9){const _0x2d5c31=a124_0x230f,{flags:_0x101b9b,def:_0x4b4ce4}=_0xac3dd9,_0x2517a7=CLI_BIN_NAME+'\x20'+_0x4b4ce4[_0x2d5c31(0x1ed)]+'\x20'+_0x4b4ce4['command'];return{'appCode':_0xac3dd9[_0x2d5c31(0x1fa)],'cookie':_0xac3dd9[_0x2d5c31(0x1fd)],'apiDomain':_0xac3dd9[_0x2d5c31(0x1e8)],'format':_0xac3dd9[_0x2d5c31(0x1d8)],'nonInteractive':_0xac3dd9['nonInteractive'],'apiDir':_0xac3dd9[_0x2d5c31(0x1e2)],'selectedAppName':_0xac3dd9[_0x2d5c31(0x1dd)],'args':_0xac3dd9[_0x2d5c31(0x1d6)],'str'(_0x1f334d){return String(_0x101b9b[_0x1f334d]??'');},'bool'(_0x4ecaf4){const _0x2c7984=_0x2d5c31;if(_0x101b9b[_0x4ecaf4]===!![])return!![];if(_0x4ecaf4==='verbose'&&_0xac3dd9[_0x2c7984(0x1b3)])return!![];return![];},'num'(_0x32f467,_0x2d8721){const _0x55bca6=_0x2d5c31,_0x3e3c5e=_0x101b9b[_0x32f467];if(typeof _0x3e3c5e===_0x55bca6(0x1f0))return _0x3e3c5e;if(_0x32f467===_0x55bca6(0x1bd)&&_0xac3dd9[_0x55bca6(0x1f6)]!=null)return _0xac3dd9[_0x55bca6(0x1f6)];return _0x2d8721??0x0;},'flag'(_0x5f1607){return _0x101b9b[_0x5f1607];},'output'(_0x351824){const _0x133dad=_0x2d5c31;formatOutput(_0x351824,{'command':_0x2517a7,'risk':_0x4b4ce4[_0x133dad(0x1b0)],'format':_0xac3dd9[_0x133dad(0x1d8)],'jqFilter':_0xac3dd9['jqFilter']});}};}function resolveJqFilter(_0x32ab05){const _0x5159ed=_0x32ab05['jq'];if(_0x5159ed===undefined||_0x5159ed===null)return undefined;const _0x4cf2be=String(_0x5159ed)['trim']();return _0x4cf2be===''?undefined:_0x4cf2be;}function resolveFormat(_0x5bc22f,_0x18cf89,_0x39d504){const _0x6775e2=a124_0x230f;if(_0x18cf89[_0x6775e2(0x1c1)]===![])return _0x6775e2(0x1cd);const _0x3c9637=normalizeLegacyOutputFormat(_0x5bc22f[_0x6775e2(0x1d8)]);if(_0x3c9637)return _0x3c9637;const _0x2f3921=normalizeLegacyOutputFormat(_0x39d504);if(_0x2f3921)return _0x2f3921;const _0xfd1064=normalizeLegacyOutputFormat(_0x18cf89[_0x6775e2(0x1fc)]);if(_0xfd1064)return _0xfd1064;return'compress';}async function requireConfirmation(_0x156097){const _0x722164=a124_0x230f,_0x3fb362=await import(_0x722164(0x1ee)),_0xed7c73=_0x3fb362[_0x722164(0x1c5)]({'input':process[_0x722164(0x1d7)],'output':process[_0x722164(0x1df)]});return new Promise((_0x55f656,_0x29a080)=>{const _0x2dba90=_0x722164;_0xed7c73['question'](_0x2dba90(0x1fe)+_0x156097+_0x2dba90(0x1fb),_0x5db8df=>{const _0x484521=_0x2dba90;_0xed7c73[_0x484521(0x1d3)](),_0x5db8df[_0x484521(0x1d4)]()==='y'||_0x5db8df['toLowerCase']()===_0x484521(0x1cf)?_0x55f656():_0x29a080(CliErrors[_0x484521(0x1e7)](_0x484521(0x1ce)));});});}function resolveAliasToCode(_0x3b1f3f,_0x1a7040,_0x50a985,_0x25b23f){const _0x12c968=a124_0x230f,_0x108739=_0x3b1f3f['flags'][_0x12c968(0x1b8)](_0x355819=>_0x355819[_0x12c968(0x1b7)]==='code'&&_0x355819['type']===_0x12c968(0x1f9)),_0x4e3aeb=_0x3b1f3f[_0x12c968(0x1c4)][_0x12c968(0x1b8)](_0x2aeacb=>_0x2aeacb['name']===_0x12c968(0x1c3)&&_0x2aeacb[_0x12c968(0x1c2)]===_0x12c968(0x1f9));if(!_0x108739||!_0x4e3aeb)return;const _0x416fef=_0x1a7040[_0x12c968(0x1bc)]?String(_0x1a7040[_0x12c968(0x1bc)]):'',_0x2606f3=_0x1a7040[_0x12c968(0x1c3)]?String(_0x1a7040[_0x12c968(0x1c3)]):'';if(!_0x416fef&&!_0x2606f3)throw CliErrors[_0x12c968(0x1b6)]('`'+_0x25b23f+_0x12c968(0x1be));if(_0x2606f3&&!_0x416fef){const _0x3e74cd=resolveAlias(_0x50a985,_0x2606f3);if(!_0x3e74cd){const _0x19a575=listAliases(_0x50a985)['map'](_0x9cae6b=>_0x9cae6b['alias']),_0xaf00f1=_0x19a575[_0x12c968(0x1c8)]?_0x12c968(0x1bf)+_0x19a575['join'](',\x20'):_0x12c968(0x1f5)+_0x50a985+_0x12c968(0x1eb)+CLI_BIN_NAME+_0x12c968(0x1f8);throw CliErrors[_0x12c968(0x1b6)](_0x12c968(0x1c9)+_0x2606f3+_0x12c968(0x1e4)+_0xaf00f1);}_0x1a7040['code']=_0x3e74cd;}}
1
+ const a130_0x2d4874=a130_0x3fe6;function a130_0x4c14(){const _0x31440f=['⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','mergedCli','2365990kLsPkD','defaultVerbose','1385brwVSG','cookie','2284tIzAyl','service','resolveCookie','has','435536xyAIzZ','181704jsiKkP','riskLevel','\x20\x20\x20Continue?\x20[y/N]\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultApp','710457yGjShk','filter','currentApp','../core/api-client.js','3781392QqCREF','validation','requiresAuth','63yCdoiJ','apps','authRequired','resolveApiDomain','appCode','explicitAppName','command','apiDir','format','High-risk\x20operation\x20`','170VoIjef','cancelled','60804gbSbFH','configMissing','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a130_0x4c14=function(){return _0x31440f;};return a130_0x4c14();}(function(_0xec5ddf,_0x129a9c){const _0x274644=a130_0x3fe6,_0x95d2d3=_0xec5ddf();while(!![]){try{const _0xc5607c=-parseInt(_0x274644(0x1ef))/0x1+parseInt(_0x274644(0x1e0))/0x2+-parseInt(_0x274644(0x1e9))/0x3+parseInt(_0x274644(0x1e4))/0x4*(parseInt(_0x274644(0x1e2))/0x5)+parseInt(_0x274644(0x1ca))/0x6+parseInt(_0x274644(0x1cd))/0x7*(-parseInt(_0x274644(0x1e8))/0x8)+-parseInt(_0x274644(0x1d9))/0x9*(parseInt(_0x274644(0x1d7))/0xa);if(_0xc5607c===_0x129a9c)break;else _0x95d2d3['push'](_0x95d2d3['shift']());}catch(_0x3039a6){_0x95d2d3['push'](_0x95d2d3['shift']());}}}(a130_0x4c14,0x91653));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a130_0x3fe6(_0xf3a298,_0x3dd219){_0xf3a298=_0xf3a298-0x1c8;const _0x4c145d=a130_0x4c14();let _0x3fe6f3=_0x4c145d[_0xf3a298];return _0x3fe6f3;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0x227ec9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2cf2d6,_0x351aa0,_0x49efaf=[]){const _0x2065c8=a130_0x3fe6;return{'rawFlags':_0x351aa0,'args':_0x49efaf,'resolveAppCode':()=>_0x2cf2d6[_0x2065c8(0x1d1)]||_0x351aa0['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2cf2d6[_0x2065c8(0x1e3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x227ec9(_0x351aa0),'defaultFormat':_0x2cf2d6[_0x2065c8(0x1d5)],'defaultPageSize':_0x2cf2d6['pageSize'],'defaultVerbose':_0x2cf2d6[_0x2065c8(0x1ed)],'apiDir':_0x2cf2d6[_0x2065c8(0x1d4)],'riskLevel':_0x2cf2d6[_0x2065c8(0x1ea)],'selectedAppName':_0x2cf2d6[_0x2065c8(0x1d2)],'mergedCli':{'defaultApp':_0x2cf2d6[_0x2065c8(0x1ee)],'currentApp':_0x2cf2d6[_0x2065c8(0x1c8)],'appCode':_0x2cf2d6['appCode'],'apps':_0x2cf2d6[_0x2065c8(0x1ce)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2d4874(0x1f0)](_0x45f925=>PIPELINE_FLAG_NAMES[a130_0x2d4874(0x1e7)](_0x45f925['name']))['map'](({name:_0x1e2c9b,type:_0x1ea840,description:_0x26050c})=>({'name':_0x1e2c9b,'type':_0x1ea840,'description':_0x26050c})),'formatOutput':formatOutput,'getCommandLabel'(_0x76b2ed){const _0x1593bc=a130_0x2d4874;return CLI_BIN_NAME+'\x20'+_0x76b2ed[_0x1593bc(0x1e5)]+'\x20'+_0x76b2ed[_0x1593bc(0x1d3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e5cb4){const _0x364870=a130_0x2d4874;return CliErrors[_0x364870(0x1cb)](_0x3e5cb4);}},async 'prepare'(_0x573e0f,_0x35798c,_0x212295,_0x3da7ab){const _0x5b091a=a130_0x2d4874,_0xec8e11=_0x35798c[_0x5b091a(0x1d4)]||DEFAULT_API_DIR;resolveAliasToCode(_0x573e0f,_0x212295,_0xec8e11,_0x3da7ab);let _0xae8e21='';if(_0x573e0f[_0x5b091a(0x1cc)]!==![]){_0xae8e21=_0x35798c[_0x5b091a(0x1e6)]();if(!_0xae8e21)throw CliErrors[_0x5b091a(0x1cf)]();const {setActiveCookie:_0x2c8d79}=await import('../core/api-client.js');_0x2c8d79(_0xae8e21);}let _0x17207f='';if(_0x573e0f['requiresAppCode']!==![]){_0x17207f=_0x35798c['resolveAppCode']()??'';if(!_0x17207f)throw CliErrors[_0x5b091a(0x1da)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x5b091a(0x1dc));}return{'defaults':{'booleans':{'verbose':_0x35798c[_0x5b091a(0x1e1)]},'numbers':{'pagesize':_0x35798c[_0x5b091a(0x1db)]}},'extras':{'appCode':_0x17207f,'cookie':_0xae8e21,'apiDomain':_0x35798c[_0x5b091a(0x1d0)](),'apiDir':_0xec8e11,'selectedAppName':_0x35798c[_0x5b091a(0x1de)],'mergedCli':_0x35798c[_0x5b091a(0x1df)]}};},async 'confirmHighRisk'({env:_0x3295a1,commandLabel:_0x56520c}){const _0x1fe506=a130_0x2d4874;if(_0x3295a1['isNonInteractive'])throw CliErrors[_0x1fe506(0x1cb)](_0x1fe506(0x1d6)+_0x56520c+_0x1fe506(0x1ec));await requireConfirmationPrompt({'lines':[_0x1fe506(0x1dd)+_0x56520c,_0x1fe506(0x1eb)],'createCancelledError':_0x49fc25=>CliErrors[_0x1fe506(0x1d8)](_0x49fc25)});},async 'finalize'(){const _0xf8d378=a130_0x2d4874,{clearActiveCookie:_0x178602}=await import(_0xf8d378(0x1c9));_0x178602();}};export async function runCommand(_0x39d979,_0x316421){await runCommandWithAdapter(_0x39d979,_0x316421,runnerAdapter);}
@@ -1 +1 @@
1
- function a125_0x33b6(_0x283b32,_0xd38494){_0x283b32=_0x283b32-0x74;const _0x6a4682=a125_0x6a46();let _0x33b6dc=_0x6a4682[_0x283b32];return _0x33b6dc;}(function(_0x16c662,_0x1a54b7){const _0x59ce17=a125_0x33b6,_0x30ee05=_0x16c662();while(!![]){try{const _0xeebcd9=parseInt(_0x59ce17(0x82))/0x1+-parseInt(_0x59ce17(0x91))/0x2*(parseInt(_0x59ce17(0x8a))/0x3)+parseInt(_0x59ce17(0x7a))/0x4*(-parseInt(_0x59ce17(0x75))/0x5)+parseInt(_0x59ce17(0x8e))/0x6+-parseInt(_0x59ce17(0x7f))/0x7*(parseInt(_0x59ce17(0x81))/0x8)+parseInt(_0x59ce17(0x9d))/0x9+parseInt(_0x59ce17(0x89))/0xa;if(_0xeebcd9===_0x1a54b7)break;else _0x30ee05['push'](_0x30ee05['shift']());}catch(_0x53a38f){_0x30ee05['push'](_0x30ee05['shift']());}}}(a125_0x6a46,0x66555));import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a125_0x6a46(){const _0x206661=['hidden','4450164CGAIaF','default','args','125130DsRNSO','tag','flags','service','regex','helpExtra','label','map','hasFormat','hint','alias','required','2329830naYpNx','function','<script>','1149865cqhAiG','requiresAuth','source','name','isSingleCommand','8caCldk','../commands/registry.js','description','length','type','11823sVBOAR','wildcardDef','952zuRvlT','364550CeVitl','risk','enum','command','dryRun','commands','defaultCommand','4031950OrtKwM','33jMSWJw','push','pattern'];a125_0x6a46=function(){return _0x206661;};return a125_0x6a46();}function serializeFlag(_0x48a758){const _0x29a5a7=a125_0x33b6,_0x46d0c1={'name':_0x48a758['name'],'type':_0x48a758[_0x29a5a7(0x7e)],'description':_0x48a758[_0x29a5a7(0x7c)]};if(_0x48a758['required']!==undefined)_0x46d0c1[_0x29a5a7(0x9c)]=_0x48a758[_0x29a5a7(0x9c)];if(_0x48a758[_0x29a5a7(0x8f)]!==undefined)_0x46d0c1['default']=_0x48a758[_0x29a5a7(0x8f)];if(_0x48a758[_0x29a5a7(0x84)]&&_0x48a758[_0x29a5a7(0x84)][_0x29a5a7(0x7d)]>0x0)_0x46d0c1[_0x29a5a7(0x84)]=_0x48a758[_0x29a5a7(0x84)];if(_0x48a758[_0x29a5a7(0x9b)])_0x46d0c1[_0x29a5a7(0x9b)]=_0x48a758[_0x29a5a7(0x9b)];if(_0x48a758[_0x29a5a7(0x8d)])_0x46d0c1[_0x29a5a7(0x8d)]=_0x48a758['hidden'];return _0x48a758[_0x29a5a7(0x8c)]&&(_0x46d0c1[_0x29a5a7(0x8c)]={'source':_0x48a758[_0x29a5a7(0x8c)][_0x29a5a7(0x95)][_0x29a5a7(0x77)],'flags':_0x48a758[_0x29a5a7(0x8c)][_0x29a5a7(0x95)][_0x29a5a7(0x93)],'description':_0x48a758[_0x29a5a7(0x8c)]['description']}),_0x46d0c1;}function serializeHelpExtra(_0x4126c1){const _0x3c7a81=a125_0x33b6;if(_0x4126c1['helpExtra']===undefined)return undefined;if(typeof _0x4126c1['helpExtra']===_0x3c7a81(0x9e))return{'dynamic':!![]};return _0x4126c1[_0x3c7a81(0x96)];}function serializeCommand(_0x44e29a,_0x22e06d){const _0x4f0c1a=a125_0x33b6,_0x37fee0=_0x44e29a[_0x4f0c1a(0x76)]!==![],_0x1d9082=_0x44e29a['requiresAppCode']!==![],_0x4ac3b0=_0x44e29a[_0x4f0c1a(0x99)]!==![],_0x4d14a0=serializeHelpExtra(_0x44e29a);return{'command':_0x22e06d['command'],'description':_0x22e06d[_0x4f0c1a(0x7c)],..._0x22e06d[_0x4f0c1a(0x92)]?{'tag':_0x22e06d[_0x4f0c1a(0x92)]['trim']()}:{},'risk':_0x44e29a[_0x4f0c1a(0x83)],'requiresAuth':_0x37fee0,'requiresAppCode':_0x1d9082,'hasFormat':_0x4ac3b0,'supportsDryRun':Boolean(_0x44e29a[_0x4f0c1a(0x86)]),..._0x44e29a[_0x4f0c1a(0x90)]&&_0x44e29a[_0x4f0c1a(0x90)][_0x4f0c1a(0x7d)]>0x0?{'args':_0x44e29a[_0x4f0c1a(0x90)]}:{},'flags':buildAllFlags(_0x44e29a)[_0x4f0c1a(0x98)](serializeFlag),..._0x4d14a0!==undefined?{'helpExtra':_0x4d14a0}:{}};}export async function buildSchemaPayload(){const _0x103619=a125_0x33b6,{serviceRegistry:_0x90054e,findDefinition:_0x2a1a5e}=await import(_0x103619(0x7b)),_0x3699ae=[];for(const _0x1776ec of _0x90054e){const _0x510949=[];for(const _0x144e63 of _0x1776ec[_0x103619(0x87)]){const _0x7b8cad=_0x144e63[_0x103619(0x85)]===_0x103619(0x74)&&_0x1776ec[_0x103619(0x80)]?_0x1776ec[_0x103619(0x80)]:_0x2a1a5e(_0x1776ec[_0x103619(0x94)],_0x144e63['command']);if(!_0x7b8cad)continue;_0x510949['push'](serializeCommand(_0x7b8cad,_0x144e63));}_0x3699ae[_0x103619(0x8b)]({'service':_0x1776ec[_0x103619(0x94)],'label':_0x1776ec[_0x103619(0x97)],..._0x1776ec[_0x103619(0x79)]?{'isSingleCommand':!![]}:{},..._0x1776ec[_0x103619(0x88)]?{'defaultCommand':_0x1776ec[_0x103619(0x88)]}:{},'hasWildcard':Boolean(_0x1776ec['wildcardDef']),'commands':_0x510949});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS['map'](_0x2949cf=>({'name':_0x2949cf[_0x103619(0x78)],'type':_0x2949cf['type'],'description':_0x2949cf[_0x103619(0x7c)],..._0x2949cf[_0x103619(0x9a)]?{'hint':_0x2949cf['hint']}:{},..._0x2949cf['hidden']?{'hidden':!![]}:{}})),'services':_0x3699ae};}
1
+ function a131_0x30c7(_0x367a05,_0x312bbd){_0x367a05=_0x367a05-0x1d4;const _0x5766fb=a131_0x5766();let _0x30c7d1=_0x5766fb[_0x367a05];return _0x30c7d1;}(function(_0x50b279,_0x31688b){const _0x2e4de1=a131_0x30c7,_0xa42750=_0x50b279();while(!![]){try{const _0x589b94=-parseInt(_0x2e4de1(0x1d7))/0x1+-parseInt(_0x2e4de1(0x1d4))/0x2+parseInt(_0x2e4de1(0x1dd))/0x3*(parseInt(_0x2e4de1(0x1da))/0x4)+parseInt(_0x2e4de1(0x1de))/0x5+parseInt(_0x2e4de1(0x1d8))/0x6*(-parseInt(_0x2e4de1(0x1d5))/0x7)+-parseInt(_0x2e4de1(0x1db))/0x8+parseInt(_0x2e4de1(0x1d6))/0x9*(parseInt(_0x2e4de1(0x1d9))/0xa);if(_0x589b94===_0x31688b)break;else _0xa42750['push'](_0xa42750['shift']());}catch(_0x4e3dad){_0xa42750['push'](_0xa42750['shift']());}}}(a131_0x5766,0xdebf4));function a131_0x5766(){const _0x2863f0=['5842071DHcNlL','827823jWTAgr','4463016VMQbZn','60SLlYqK','4ygQmmb','12253632FwpInl','../commands/registry.js','4655505OEsICU','1288870ekGsYj','1889504bolEKH','14UnSRwA'];a131_0x5766=function(){return _0x2863f0;};return a131_0x5766();}import{buildSchemaPayload as a131_0x4070cc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1c5d1a=a131_0x30c7,{serviceRegistry:_0x358557,findDefinition:_0x3fa5ac}=await import(_0x1c5d1a(0x1dc));return a131_0x4070cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x358557,'buildAllFlags':buildAllFlags,'findDefinition':_0x3fa5ac});}
@@ -1 +1 @@
1
- (function(_0x3fbaf3,_0x2f2983){const _0x3b686d=a126_0x1eca,_0x176434=_0x3fbaf3();while(!![]){try{const _0x2ad990=-parseInt(_0x3b686d(0xda))/0x1*(-parseInt(_0x3b686d(0xd7))/0x2)+-parseInt(_0x3b686d(0xe1))/0x3+parseInt(_0x3b686d(0xdd))/0x4*(-parseInt(_0x3b686d(0xd8))/0x5)+-parseInt(_0x3b686d(0xdf))/0x6*(-parseInt(_0x3b686d(0xe5))/0x7)+parseInt(_0x3b686d(0xe3))/0x8+-parseInt(_0x3b686d(0xe0))/0x9*(parseInt(_0x3b686d(0xdc))/0xa)+parseInt(_0x3b686d(0xde))/0xb*(-parseInt(_0x3b686d(0xd9))/0xc);if(_0x2ad990===_0x2f2983)break;else _0x176434['push'](_0x176434['shift']());}catch(_0x3d4f9e){_0x176434['push'](_0x176434['shift']());}}}(a126_0x14e4,0x82146));export function riskLevelOrder(_0x47b1db){const _0x55c804=a126_0x1eca,_0x317aa7={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x317aa7[_0x47b1db??_0x55c804(0xe2)]??0x0;}function a126_0x14e4(){const _0x173b31=['102688vHRgnZ','77VhBgJs','5375508uULVkT','25695rOJLEh','131835vcReoG','read','3717400TxctkE','compress','7BQWIKt','table','1788274MzlQoO','80cZLPVg','1433352AyHeNb','1uVXqih','pretty','1510ihWgIV'];a126_0x14e4=function(){return _0x173b31;};return a126_0x14e4();}function a126_0x1eca(_0x503255,_0x23a00f){_0x503255=_0x503255-0xd6;const _0x14e4e3=a126_0x14e4();let _0x1eca37=_0x14e4e3[_0x503255];return _0x1eca37;}export function isValidFormat(_0x17da0a){const _0x59995f=a126_0x1eca;return _0x17da0a==='json'||_0x17da0a===_0x59995f(0xdb)||_0x17da0a===_0x59995f(0xe4);}export function normalizeLegacyOutputFormat(_0x180e1f){const _0x489945=a126_0x1eca;if(_0x180e1f===_0x489945(0xd6))return _0x489945(0xdb);if(isValidFormat(_0x180e1f))return _0x180e1f;return undefined;}
1
+ function a132_0x3a91(_0x3fb1f2,_0xccace6){_0x3fb1f2=_0x3fb1f2-0x199;var _0x2b71ed=a132_0x2b71();var _0x3a911f=_0x2b71ed[_0x3fb1f2];return _0x3a911f;}function a132_0x2b71(){var _0x2ed14d=['600yIlTft','2249192krFXfH','1670106rXZeUp','1224720XgehGL','4825070jQeEmp','5283360lyJqoq','21osSBUQ','370871rNjzSU','146988rZwwLs','2aHOmGX'];a132_0x2b71=function(){return _0x2ed14d;};return a132_0x2b71();}(function(_0x3c4f08,_0x10f680){var _0x4c2705=a132_0x3a91,_0x56b09a=_0x3c4f08();while(!![]){try{var _0x1681c=-parseInt(_0x4c2705(0x199))/0x1+parseInt(_0x4c2705(0x19b))/0x2*(parseInt(_0x4c2705(0x19f))/0x3)+parseInt(_0x4c2705(0x19d))/0x4+parseInt(_0x4c2705(0x1a0))/0x5+-parseInt(_0x4c2705(0x19e))/0x6*(-parseInt(_0x4c2705(0x1a2))/0x7)+-parseInt(_0x4c2705(0x1a1))/0x8+-parseInt(_0x4c2705(0x19a))/0x9*(parseInt(_0x4c2705(0x19c))/0xa);if(_0x1681c===_0x10f680)break;else _0x56b09a['push'](_0x56b09a['shift']());}catch(_0x23b0a1){_0x56b09a['push'](_0x56b09a['shift']());}}}(a132_0x2b71,0xb9662));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a127_0x5275ad=a127_0x1c9b;(function(_0x350b94,_0x281e9e){const _0x5e1e1e=a127_0x1c9b,_0x121dcb=_0x350b94();while(!![]){try{const _0x493825=parseInt(_0x5e1e1e(0x12a))/0x1+parseInt(_0x5e1e1e(0x130))/0x2+-parseInt(_0x5e1e1e(0x12f))/0x3*(-parseInt(_0x5e1e1e(0x12c))/0x4)+-parseInt(_0x5e1e1e(0x129))/0x5+parseInt(_0x5e1e1e(0x12e))/0x6+parseInt(_0x5e1e1e(0x12d))/0x7*(-parseInt(_0x5e1e1e(0x12b))/0x8)+parseInt(_0x5e1e1e(0x132))/0x9*(parseInt(_0x5e1e1e(0x131))/0xa);if(_0x493825===_0x281e9e)break;else _0x121dcb['push'](_0x121dcb['shift']());}catch(_0x4c33b3){_0x121dcb['push'](_0x121dcb['shift']());}}}(a127_0xa30e,0xa4086));function a127_0x1c9b(_0x49cb8f,_0x3ba26c){_0x49cb8f=_0x49cb8f-0x129;const _0xa30e22=a127_0xa30e();let _0x1c9be7=_0xa30e22[_0x49cb8f];return _0x1c9be7;}function a127_0xa30e(){const _0x5b5532=['2652570CNixIc','2026-04-09T06:42:11.528Z','9c8f5c9','5616080hKtgoB','287027bcSRoc','3738968YtLlhZ','132bhhtPp','7iPYhwU','2215464cDWucF','99987sBPJkL','423214HQiSvE','10gBOELX'];a127_0xa30e=function(){return _0x5b5532;};return a127_0xa30e();}export const VERSION='2.1.1-beta.0';export const GIT_TAG='v2.1.1-beta.0';export const GIT_COMMIT=a127_0x5275ad(0x134);export const BUILD_TIME=a127_0x5275ad(0x133);
1
+ function a133_0x2527(){const _0x32ce81=['2rpISQn','1225917HIyBFo','2189712HlqxFl','2026-04-12T04:52:50.547Z','10HQibtL','10105839LOpAkD','5pKofCd','b8a2383','2.1.2-beta.0','v2.1.2-beta.0','4001977RueTEm','1878484gWIVSe','978433LUqPKh','10245088GbHZjU'];a133_0x2527=function(){return _0x32ce81;};return a133_0x2527();}const a133_0x1d875c=a133_0x36eb;(function(_0x42c204,_0x73de41){const _0x51b00d=a133_0x36eb,_0x33b0c0=_0x42c204();while(!![]){try{const _0x5cd7e1=-parseInt(_0x51b00d(0x9f))/0x1*(-parseInt(_0x51b00d(0xa1))/0x2)+parseInt(_0x51b00d(0xa2))/0x3+parseInt(_0x51b00d(0x9e))/0x4+-parseInt(_0x51b00d(0x99))/0x5*(parseInt(_0x51b00d(0xa3))/0x6)+-parseInt(_0x51b00d(0x9d))/0x7+-parseInt(_0x51b00d(0xa0))/0x8+-parseInt(_0x51b00d(0x98))/0x9*(-parseInt(_0x51b00d(0xa5))/0xa);if(_0x5cd7e1===_0x73de41)break;else _0x33b0c0['push'](_0x33b0c0['shift']());}catch(_0x4a5b28){_0x33b0c0['push'](_0x33b0c0['shift']());}}}(a133_0x2527,0xba199));export const VERSION=a133_0x1d875c(0x9b);export const GIT_TAG=a133_0x1d875c(0x9c);export const GIT_COMMIT=a133_0x1d875c(0x9a);function a133_0x36eb(_0xddcd01,_0x2075ed){_0xddcd01=_0xddcd01-0x98;const _0x252742=a133_0x2527();let _0x36eb9b=_0x252742[_0xddcd01];return _0x36eb9b;}export const BUILD_TIME=a133_0x1d875c(0xa4);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3d67c0,_0x4db1e9){var _0x546768=a128_0x3202,_0x4a29cd=_0x3d67c0();while(!![]){try{var _0x188103=-parseInt(_0x546768(0x6e))/0x1+-parseInt(_0x546768(0x72))/0x2*(parseInt(_0x546768(0x6d))/0x3)+parseInt(_0x546768(0x71))/0x4+-parseInt(_0x546768(0x6c))/0x5+parseInt(_0x546768(0x6f))/0x6*(-parseInt(_0x546768(0x79))/0x7)+parseInt(_0x546768(0x73))/0x8*(-parseInt(_0x546768(0x74))/0x9)+parseInt(_0x546768(0x75))/0xa;if(_0x188103===_0x4db1e9)break;else _0x4a29cd['push'](_0x4a29cd['shift']());}catch(_0x655d85){_0x4a29cd['push'](_0x4a29cd['shift']());}}}(a128_0x5286,0xe6c28));import a128_0x54fb73 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a128_0x3202(_0x38ae95,_0x5d7d8b){_0x38ae95=_0x38ae95-0x6b;var _0x52865d=a128_0x5286();var _0x320276=_0x52865d[_0x38ae95];return _0x320276;}export function showHelp(){var _0x187804=a128_0x3202;console[_0x187804(0x70)](),console[_0x187804(0x70)](a128_0x54fb73['green'][_0x187804(0x6b)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x187804(0x70)](),console[_0x187804(0x70)](_0x187804(0x76)+a128_0x54fb73[_0x187804(0x7a)][_0x187804(0x6b)](CLI_BIN_NAME+_0x187804(0x78))+_0x187804(0x77)),console[_0x187804(0x70)]();}function a128_0x5286(){var _0xba19cf=['2272612oifnMw','6VtqDYS','562064TYzYLM','198rXOwrJ','71456830SEdmvh','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','\x20--help','7YCSAFb','green','bold','6495350Jhyrys','772323oaYyPT','1486336ayidBk','9991434ABHFFA','log'];a128_0x5286=function(){return _0xba19cf;};return a128_0x5286();}
1
+ (function(_0x170d9e,_0x3b829c){var _0x50ad3e=a134_0x350c,_0x2b5ace=_0x170d9e();while(!![]){try{var _0x47dbcd=parseInt(_0x50ad3e(0x1bc))/0x1*(-parseInt(_0x50ad3e(0x1c0))/0x2)+parseInt(_0x50ad3e(0x1c8))/0x3*(parseInt(_0x50ad3e(0x1bd))/0x4)+parseInt(_0x50ad3e(0x1c4))/0x5*(-parseInt(_0x50ad3e(0x1c5))/0x6)+-parseInt(_0x50ad3e(0x1c2))/0x7*(-parseInt(_0x50ad3e(0x1bf))/0x8)+-parseInt(_0x50ad3e(0x1c6))/0x9+parseInt(_0x50ad3e(0x1c9))/0xa+parseInt(_0x50ad3e(0x1c7))/0xb;if(_0x47dbcd===_0x3b829c)break;else _0x2b5ace['push'](_0x2b5ace['shift']());}catch(_0x53ac65){_0x2b5ace['push'](_0x2b5ace['shift']());}}}(a134_0x26d9,0x4039a));function a134_0x350c(_0x19220f,_0x5ffdb8){_0x19220f=_0x19220f-0x1bb;var _0x26d91f=a134_0x26d9();var _0x350cf1=_0x26d91f[_0x19220f];return _0x350cf1;}function a134_0x26d9(){var _0x280d36=['1qJpsHi','1056252zJeIcp','\x20\x20Use\x20','96ShFqwE','955146zBsuXP','bold','42224YBxgFT','\x20to\x20view\x20available\x20commands.','10xrlfhe','529368LdgApT','3104847CAilbT','7595676wajLIo','3FrWyFw','2351150tldvAl','log'];a134_0x26d9=function(){return _0x280d36;};return a134_0x26d9();}import a134_0x1ed3e7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb4f531=a134_0x350c;console[_0xb4f531(0x1bb)](),console[_0xb4f531(0x1bb)](a134_0x1ed3e7['green'][_0xb4f531(0x1c1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xb4f531(0x1bb)](),console['log'](_0xb4f531(0x1be)+a134_0x1ed3e7['green'][_0xb4f531(0x1c1)](CLI_BIN_NAME+'\x20--help')+_0xb4f531(0x1c3)),console['log']();}
@@ -1 +1 @@
1
- const a129_0x24adb4=a129_0x96ab;function a129_0x1531(){const _0x1315fc=['length','skill','Equivalent\x20command:\x20','log','29898cAxnqs','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','argv','enable-bff-save','670mMMHGs','854592nwkCeX','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','9VPNzcR','entries','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','help','push','49ZQeuHY','setLogPath','--help','\x20skill\x20--help\x0a\x20\x20','2671665gPfUbt','不支持的命令:\x20','toLowerCase','error','\x0aAvailable\x20commands:','add','from','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','includes','796314NlhyYA','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','cwd','2825656njwmzC','has','1704BnXarl','336lGFtSr','143253LCWgYZ','startsWith'];a129_0x1531=function(){return _0x1315fc;};return a129_0x1531();}(function(_0x564f15,_0x363a2b){const _0x39a238=a129_0x96ab,_0x32adf0=_0x564f15();while(!![]){try{const _0x3e0f37=-parseInt(_0x39a238(0x18a))/0x1*(-parseInt(_0x39a238(0x189))/0x2)+parseInt(_0x39a238(0x184))/0x3+-parseInt(_0x39a238(0x170))/0x4+-parseInt(_0x39a238(0x17b))/0x5+-parseInt(_0x39a238(0x191))/0x6*(parseInt(_0x39a238(0x177))/0x7)+-parseInt(_0x39a238(0x187))/0x8*(parseInt(_0x39a238(0x172))/0x9)+-parseInt(_0x39a238(0x195))/0xa*(-parseInt(_0x39a238(0x18b))/0xb);if(_0x3e0f37===_0x363a2b)break;else _0x32adf0['push'](_0x32adf0['shift']());}catch(_0xbd118){_0x32adf0['push'](_0x32adf0['shift']());}}}(a129_0x1531,0x465b6));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x448115){const _0x468afc=a129_0x96ab,_0x3b01ce=[];for(const [_0x30b2f6,_0x7d5cb4]of Object[_0x468afc(0x173)](_0x448115)){if(_0x7d5cb4===!![]){const _0x12bb4a=_0x30b2f6['replace'](/([A-Z])/g,'-$1')[_0x468afc(0x17d)]();_0x3b01ce[_0x468afc(0x176)](_0x12bb4a);}}return _0x3b01ce;}export function parseDynamicFlags(){const _0x50f116=a129_0x96ab,_0x3b8eb8=[];for(let _0x5a3238=0x3;_0x5a3238<process[_0x50f116(0x193)][_0x50f116(0x18d)];_0x5a3238++){const _0x274c23=process['argv'][_0x5a3238];if(_0x274c23&&_0x274c23[_0x50f116(0x18c)]('--')){const _0xb5f20c=_0x274c23['slice'](0x2);_0xb5f20c&&!_0xb5f20c[_0x50f116(0x183)]('=')&&_0x3b8eb8['push'](_0xb5f20c);}}return _0x3b8eb8;}export function getAllProvidedFlags(_0xc05661){const _0x5593fa=a129_0x96ab,_0x406b67=camelCaseFlagsToKebab(_0xc05661),_0x58aa5f=parseDynamicFlags(),_0x91a9f8=new Set([..._0x406b67,..._0x58aa5f]);return Array[_0x5593fa(0x181)](_0x91a9f8);}export function normalizeLegacyBffSaveFlags(_0x2d5d38){const _0x5620ec=a129_0x96ab,_0x21ffd0=new Set(_0x2d5d38);return _0x21ffd0[_0x5620ec(0x188)]('dangerously-bff-save')&&_0x21ffd0[_0x5620ec(0x180)](_0x5620ec(0x194)),Array[_0x5620ec(0x181)](_0x21ffd0);}const SKILLS_INSTALL_COMMAND_LINE=a129_0x24adb4(0x171);function a129_0x96ab(_0x21c725,_0x1f28a7){_0x21c725=_0x21c725-0x170;const _0x15317a=a129_0x1531();let _0x96ab38=_0x15317a[_0x21c725];return _0x96ab38;}export async function skillsCommand(_0x4b25ce,_0x550d9e,_0x1f3e9e){const _0x2fdd9d=a129_0x24adb4;logger[_0x2fdd9d(0x178)](process[_0x2fdd9d(0x186)]());if(_0x1f3e9e?.[_0x2fdd9d(0x175)]||_0x4b25ce===_0x2fdd9d(0x179)){showHelp();return;}console[_0x2fdd9d(0x17e)]('Error:\x20Unsupported\x20command:\x20'+(_0x4b25ce||'(empty)')),console['log'](_0x2fdd9d(0x17f)),console[_0x2fdd9d(0x190)]('\x20\x20'+CLI_BIN_NAME+_0x2fdd9d(0x174)),console[_0x2fdd9d(0x190)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x2fdd9d(0x190)](''),console[_0x2fdd9d(0x190)](_0x2fdd9d(0x18f)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2fdd9d(0x17e)](_0x2fdd9d(0x18e),_0x2fdd9d(0x17c)+_0x4b25ce),process['exit'](0x1);}function showHelp(){const _0x20efc0=a129_0x24adb4;console[_0x20efc0(0x190)](_0x20efc0(0x182)+CLI_BIN_NAME+_0x20efc0(0x17a)+CLI_BIN_NAME+_0x20efc0(0x185)+SKILLS_INSTALL_COMMAND_LINE+_0x20efc0(0x192));}
1
+ (function(_0x5b0a6b,_0x9fe8cf){const _0x1eaad1=a135_0x414d,_0x436b73=_0x5b0a6b();while(!![]){try{const _0x526e82=parseInt(_0x1eaad1(0xea))/0x1+parseInt(_0x1eaad1(0xde))/0x2*(-parseInt(_0x1eaad1(0xd7))/0x3)+-parseInt(_0x1eaad1(0xe6))/0x4*(-parseInt(_0x1eaad1(0xd5))/0x5)+-parseInt(_0x1eaad1(0xe7))/0x6+-parseInt(_0x1eaad1(0xcf))/0x7*(-parseInt(_0x1eaad1(0xdd))/0x8)+parseInt(_0x1eaad1(0xca))/0x9+-parseInt(_0x1eaad1(0xe9))/0xa;if(_0x526e82===_0x9fe8cf)break;else _0x436b73['push'](_0x436b73['shift']());}catch(_0x1cc670){_0x436b73['push'](_0x436b73['shift']());}}}(a135_0x4c41,0xb2ab1));import{logger}from'../utils/logger.js';function a135_0x4c41(){const _0x385099=['\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','7555797hTOKDw','Error:\x20Unsupported\x20command:\x20','dangerously-bff-save','不支持的命令:\x20','log','7KyLTiE','skill','\x0aAvailable\x20commands:','from','help','-$1','2292340lSCcjJ','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','225FrLcUG','argv','enable-bff-save','length','push','startsWith','6658712xkaOXh','4578hGLpBn','error','entries','setLogPath','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','has','slice','exit','12oQhnQf','1636968FZqloO','toLowerCase','28121070WSOcwH','941159LHsDgg','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20--help\x0a\x20\x20','includes','Equivalent\x20command:\x20','--help'];a135_0x4c41=function(){return _0x385099;};return a135_0x4c41();}import{CLI_BIN_NAME}from'../constant/cli.js';function a135_0x414d(_0x4cea3f,_0x2d9523){_0x4cea3f=_0x4cea3f-0xc7;const _0x4c4163=a135_0x4c41();let _0x414d44=_0x4c4163[_0x4cea3f];return _0x414d44;}export function camelCaseFlagsToKebab(_0x239667){const _0xe52d21=a135_0x414d,_0x3ca11f=[];for(const [_0xf64e2c,_0x5db73b]of Object[_0xe52d21(0xe0)](_0x239667)){if(_0x5db73b===!![]){const _0x42fb53=_0xf64e2c['replace'](/([A-Z])/g,_0xe52d21(0xd4))[_0xe52d21(0xe8)]();_0x3ca11f[_0xe52d21(0xdb)](_0x42fb53);}}return _0x3ca11f;}export function parseDynamicFlags(){const _0x5f2229=a135_0x414d,_0x3aea96=[];for(let _0x44310f=0x3;_0x44310f<process[_0x5f2229(0xd8)][_0x5f2229(0xda)];_0x44310f++){const _0x5c0e3d=process['argv'][_0x44310f];if(_0x5c0e3d&&_0x5c0e3d[_0x5f2229(0xdc)]('--')){const _0x277dd0=_0x5c0e3d[_0x5f2229(0xe4)](0x2);_0x277dd0&&!_0x277dd0[_0x5f2229(0xed)]('=')&&_0x3aea96[_0x5f2229(0xdb)](_0x277dd0);}}return _0x3aea96;}export function getAllProvidedFlags(_0x266139){const _0x1a5732=camelCaseFlagsToKebab(_0x266139),_0x44d469=parseDynamicFlags(),_0x54d5fa=new Set([..._0x1a5732,..._0x44d469]);return Array['from'](_0x54d5fa);}export function normalizeLegacyBffSaveFlags(_0x17206b){const _0x32b837=a135_0x414d,_0x3d26b1=new Set(_0x17206b);return _0x3d26b1[_0x32b837(0xe3)](_0x32b837(0xcc))&&_0x3d26b1['add'](_0x32b837(0xd9)),Array[_0x32b837(0xd2)](_0x3d26b1);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x1c9f86,_0x28fde4,_0x8b61bb){const _0x573b27=a135_0x414d;logger[_0x573b27(0xe1)](process['cwd']());if(_0x8b61bb?.[_0x573b27(0xd3)]||_0x1c9f86===_0x573b27(0xc8)){showHelp();return;}console[_0x573b27(0xdf)](_0x573b27(0xcb)+(_0x1c9f86||'(empty)')),console[_0x573b27(0xce)](_0x573b27(0xd1)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xeb)),console[_0x573b27(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xd6)),console[_0x573b27(0xce)](''),console[_0x573b27(0xce)](_0x573b27(0xc7)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x573b27(0xdf)](_0x573b27(0xd0),_0x573b27(0xcd)+_0x1c9f86),process[_0x573b27(0xe5)](0x1);}function showHelp(){const _0x4a0460=a135_0x414d;console[_0x4a0460(0xce)](_0x4a0460(0xe2)+CLI_BIN_NAME+_0x4a0460(0xec)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4a0460(0xc9));}