@lovrabet/rabetbase-cli 2.0.11 → 2.0.13

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 (140) 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/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/pull.js +1 -0
  86. package/lib/commands/sql/save.js +1 -1
  87. package/lib/commands/sql/shared.js +1 -0
  88. package/lib/commands/sql/validate.js +1 -1
  89. package/lib/constant/cli.js +1 -1
  90. package/lib/constant/domain.js +1 -1
  91. package/lib/constant/env.js +1 -1
  92. package/lib/constant/paths.js +1 -1
  93. package/lib/context.js +1 -1
  94. package/lib/core/alias-resolver.js +1 -1
  95. package/lib/core/api-client.js +1 -1
  96. package/lib/core/bff/config.js +1 -1
  97. package/lib/core/bff/file-system.js +1 -1
  98. package/lib/core/bff/hash.js +1 -1
  99. package/lib/core/bff/lock.js +1 -1
  100. package/lib/core/bff/utils.js +1 -1
  101. package/lib/core/db-resolver.js +1 -1
  102. package/lib/core/sql-validator.js +1 -1
  103. package/lib/errors.js +1 -1
  104. package/lib/framework/build-all-flags.js +1 -1
  105. package/lib/framework/flags.js +1 -1
  106. package/lib/framework/help.js +1 -1
  107. package/lib/framework/index.js +1 -1
  108. package/lib/framework/output.js +1 -1
  109. package/lib/framework/response.js +1 -1
  110. package/lib/framework/runner.js +1 -1
  111. package/lib/framework/schema-export.js +1 -1
  112. package/lib/framework/types.js +1 -1
  113. package/lib/generated/build-info.js +1 -1
  114. package/lib/help.js +1 -1
  115. package/lib/skills/main.js +1 -1
  116. package/lib/skills/npx-skills-add.js +1 -1
  117. package/lib/telemetry/cli-command-trace.js +1 -1
  118. package/lib/telemetry/cli-help-trace.js +1 -1
  119. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  120. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  121. package/lib/telemetry/send-cli-trace-log.js +1 -1
  122. package/lib/utils/ai_config.js +1 -1
  123. package/lib/utils/apply-jq-filter.js +1 -1
  124. package/lib/utils/cdn-config.js +1 -1
  125. package/lib/utils/check-sdk-version.js +1 -1
  126. package/lib/utils/cli-version-check.js +1 -1
  127. package/lib/utils/config.js +1 -1
  128. package/lib/utils/copy-directory.js +1 -1
  129. package/lib/utils/file-utils.js +1 -1
  130. package/lib/utils/guides-cdn.js +1 -1
  131. package/lib/utils/http-client.js +1 -1
  132. package/lib/utils/is-non-interactive.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/rules-cdn.js +1 -1
  136. package/lib/utils/sleep.js +1 -1
  137. package/lib/utils/template-replacer.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/with-active-cookie.js +1 -1
  140. package/package.json +1 -1
@@ -1 +1 @@
1
- const a95_0x1bdd27=a95_0x4171;(function(_0x5db462,_0x1b934f){const _0x1a33f0=a95_0x4171,_0x5aec2c=_0x5db462();while(!![]){try{const _0x455b77=parseInt(_0x1a33f0(0x1d5))/0x1*(-parseInt(_0x1a33f0(0x1c2))/0x2)+-parseInt(_0x1a33f0(0x1b5))/0x3*(parseInt(_0x1a33f0(0x1b2))/0x4)+-parseInt(_0x1a33f0(0x1bc))/0x5+-parseInt(_0x1a33f0(0x1d3))/0x6+-parseInt(_0x1a33f0(0x1c4))/0x7*(-parseInt(_0x1a33f0(0x1c9))/0x8)+parseInt(_0x1a33f0(0x1c7))/0x9*(parseInt(_0x1a33f0(0x1c5))/0xa)+parseInt(_0x1a33f0(0x1cf))/0xb;if(_0x455b77===_0x1b934f)break;else _0x5aec2c['push'](_0x5aec2c['shift']());}catch(_0xfc3245){_0x5aec2c['push'](_0x5aec2c['shift']());}}}(a95_0x2da3,0x8b455));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=[a95_0x1bdd27(0x1d1),'ENDPOINT',a95_0x1bdd27(0x1b0)];export function normalizeBffType(_0x12d491){const _0x1f5a39=a95_0x1bdd27;if(!_0x12d491)return undefined;const _0x34ebbd=_0x12d491[_0x1f5a39(0x1b8)]()[_0x1f5a39(0x1b1)]();return SUPPORTED_BFF_TYPES[_0x1f5a39(0x1c1)](_0x34ebbd)?_0x34ebbd:undefined;}async function scanJsFilesRecursively(_0xffe098,_0x3b1e74){const _0x4cd08d=a95_0x1bdd27,_0x3a1b47=[];try{const _0x51a872=await readdir(_0xffe098,{'withFileTypes':!![]});for(const _0x2d565e of _0x51a872){const _0x5d46a7=join(_0xffe098,_0x2d565e[_0x4cd08d(0x1b7)]);if(_0x2d565e[_0x4cd08d(0x1bd)]())_0x3a1b47['push'](...await scanJsFilesRecursively(_0x5d46a7,_0x3b1e74+'/'+_0x2d565e[_0x4cd08d(0x1b7)]));else _0x2d565e[_0x4cd08d(0x1c6)]()&&_0x2d565e[_0x4cd08d(0x1b7)]['endsWith'](_0x4cd08d(0x1d2))&&_0x3a1b47[_0x4cd08d(0x1bb)]({'lockKey':_0x3b1e74+'/'+_0x2d565e[_0x4cd08d(0x1b7)]['replace'](/\.js$/,''),'filePath':_0x5d46a7});}}catch(_0x2f3205){if(_0x2f3205[_0x4cd08d(0x1d0)]!=='ENOENT')throw _0x2f3205;}return _0x3a1b47;}async function scanFlatFunctions(_0x2673e0,_0x2908ac){const _0x1015d5=a95_0x1bdd27,_0xee23b0=join(_0x2673e0[_0x1015d5(0x1d4)],_0x2908ac),_0x324779=await scanJsFilesRecursively(_0xee23b0,_0x2908ac);return _0x324779[_0x1015d5(0x1ba)](({lockKey:_0x18b99c,filePath:_0x581ccc})=>({'type':_0x2908ac,'name':_0x18b99c[_0x1015d5(0x1b6)]('/')['at'](-0x1)??'','filePath':_0x581ccc,'lockKey':_0x18b99c}));}async function scanHookFunctions(_0x668737){const _0x42c211=a95_0x1bdd27,_0x28f450=join(_0x668737[_0x42c211(0x1d4)],_0x42c211(0x1b0)),_0x8705dc=[];try{const _0x469717=await readdir(_0x28f450,{'withFileTypes':!![]});for(const _0xa371a2 of _0x469717){if(!_0xa371a2[_0x42c211(0x1bd)]())continue;const _0x2c8c9f=_0xa371a2[_0x42c211(0x1b7)],_0x3199f1=join(_0x28f450,_0x2c8c9f),_0x40e8ea=await readdir(_0x3199f1,{'withFileTypes':!![]});for(const _0x1dca6a of _0x40e8ea){if(!_0x1dca6a[_0x42c211(0x1bd)]())continue;const _0x46ada4=_0x1dca6a[_0x42c211(0x1b7)],_0x379349=join(_0x3199f1,_0x46ada4),_0x1dbd79=await readdir(_0x379349,{'withFileTypes':!![]});for(const _0x37371c of _0x1dbd79){if(!_0x37371c[_0x42c211(0x1bd)]())continue;const _0xd4d614=_0x37371c[_0x42c211(0x1b7)],_0xfe7e96=join(_0x379349,_0xd4d614),_0x2acc79=await readdir(_0xfe7e96,{'withFileTypes':!![]});for(const _0xd67583 of _0x2acc79){if(!_0xd67583['isFile']()||!_0xd67583['name'][_0x42c211(0x1d6)]('.js'))continue;const _0x29c3e7=_0xd67583['name'][_0x42c211(0x1ca)](/\.js$/,'');_0x8705dc['push']({'type':_0x42c211(0x1b0),'name':_0x29c3e7,'filePath':join(_0xfe7e96,_0xd67583[_0x42c211(0x1b7)]),'lockKey':_0x42c211(0x1c0)+_0x2c8c9f+'/'+_0x46ada4+'/'+_0xd4d614+'/'+_0x29c3e7,'alias':_0x2c8c9f,'operationType':_0x46ada4,'functionNode':_0xd4d614});}}}}}catch(_0x232d18){if(_0x232d18[_0x42c211(0x1d0)]!=='ENOENT')throw _0x232d18;}return _0x8705dc;}export async function scanLocalBffFunctions(_0x8034c5,_0x12d32a){const _0xe7ab10=a95_0x1bdd27;if(_0x12d32a===_0xe7ab10(0x1d1)||_0x12d32a===_0xe7ab10(0x1d7))return scanFlatFunctions(_0x8034c5,_0x12d32a);if(_0x12d32a===_0xe7ab10(0x1b0))return scanHookFunctions(_0x8034c5);const [_0x16382a,_0x49d091,_0x29f751]=await Promise[_0xe7ab10(0x1c3)]([scanFlatFunctions(_0x8034c5,_0xe7ab10(0x1d1)),scanFlatFunctions(_0x8034c5,_0xe7ab10(0x1d7)),scanHookFunctions(_0x8034c5)]);return[..._0x16382a,..._0x49d091,..._0x29f751];}export function resolveLocalFilePathFromLockKey(_0x53d92d,_0x22b875){const _0x283423=a95_0x1bdd27;return join(_0x53d92d[_0x283423(0x1d4)],..._0x22b875[_0x283423(0x1b6)]('/'))+_0x283423(0x1d2);}export function createHookLocationMap(_0x187f22){const _0x1bfa43=a95_0x1bdd27,_0x2fac52=new Map();for(const _0xc29d39 of _0x187f22){_0xc29d39[_0x1bfa43(0x1ce)]&&_0x2fac52[_0x1bfa43(0x1be)](_0xc29d39[_0x1bfa43(0x1ce)],{'datasetCode':_0xc29d39[_0x1bfa43(0x1cc)],'operationType':snakeToCamel(_0xc29d39['operationType']),'functionNode':_0x1bfa43(0x1cb)}),_0xc29d39['afterScriptId']&&_0x2fac52[_0x1bfa43(0x1be)](_0xc29d39['afterScriptId'],{'datasetCode':_0xc29d39[_0x1bfa43(0x1cc)],'operationType':snakeToCamel(_0xc29d39[_0x1bfa43(0x1b3)]),'functionNode':_0x1bfa43(0x1bf)});}return _0x2fac52;}function a95_0x4171(_0x598ed9,_0x4558c7){_0x598ed9=_0x598ed9-0x1b0;const _0x2da3bb=a95_0x2da3();let _0x4171f1=_0x2da3bb[_0x598ed9];return _0x4171f1;}export function resolveRemoteScriptTarget(_0x853bd3,_0x4c696a,_0x11378a,_0x5aa07f,_0x872a43){const _0x2fd841=a95_0x1bdd27,_0xc85e4d=normalizeBffType(_0x4c696a['scriptType']);if(!_0xc85e4d||!_0x4c696a[_0x2fd841(0x1cd)])return null;if(_0xc85e4d===_0x2fd841(0x1b0)){const _0x4e8d43=(_0x4c696a['id']?_0x11378a[_0x2fd841(0x1b4)](_0x4c696a['id']):undefined)??findHookLocationByRemoteId(_0x5aa07f,_0x4c696a['id']);if(!_0x4e8d43)return null;const _0x5b6f27=_0x4e8d43['alias']||_0x872a43[_0x2fd841(0x1b4)](_0x4e8d43[_0x2fd841(0x1cc)]),_0x4ef619=_0x5b6f27??_0x4e8d43['datasetCode'],_0x764f11={..._0x4e8d43,'alias':_0x5b6f27},_0x113ef2=_0x2fd841(0x1c0)+_0x4ef619+'/'+_0x764f11['operationType']+'/'+_0x764f11[_0x2fd841(0x1c8)]+'/'+_0x4c696a[_0x2fd841(0x1cd)];return{'lockKey':_0x113ef2,'filePath':resolveLocalFilePathFromLockKey(_0x853bd3,_0x113ef2),'type':_0x2fd841(0x1b0),'hookLocation':_0x764f11};}const _0x5182e9=_0xc85e4d+'/'+_0x4c696a['functionName'];return{'lockKey':_0x5182e9,'filePath':resolveLocalFilePathFromLockKey(_0x853bd3,_0x5182e9),'type':_0xc85e4d};}function a95_0x2da3(){const _0x24f37f=['HOOK/','includes','158gXxEck','all','1165227rrtzCa','796730aLgGRZ','isFile','117rxUQMl','functionNode','24mjgbja','replace','before','datasetCode','functionName','beforeScriptId','14838846hoGNvJ','code','COMMON','.js','6152892IBUuOH','scriptsRootDir','1293bajmZF','endsWith','ENDPOINT','HOOK','toUpperCase','2235476dpsXly','operationType','get','3eZdcTd','split','name','trim','F_OK','map','push','3135835GcwWzd','isDirectory','set','after'];a95_0x2da3=function(){return _0x24f37f;};return a95_0x2da3();}export async function ensureParentDirectory(_0xa82b29){await mkdir(dirname(_0xa82b29),{'recursive':!![]});}export async function fileExists(_0x1dc467){const _0x85c6ae=a95_0x1bdd27;try{return await access(_0x1dc467,constants[_0x85c6ae(0x1b9)]),!![];}catch{return![];}}export async function directoryExists(_0x335a0d){try{const _0x157fa3=await stat(_0x335a0d);return _0x157fa3['isDirectory']();}catch{return![];}}
1
+ const a97_0x2d561d=a97_0x3501;(function(_0x112a18,_0x1c4303){const _0x1d3391=a97_0x3501,_0x5703da=_0x112a18();while(!![]){try{const _0x2849bb=-parseInt(_0x1d3391(0x7a))/0x1*(parseInt(_0x1d3391(0x80))/0x2)+-parseInt(_0x1d3391(0x78))/0x3*(-parseInt(_0x1d3391(0x8a))/0x4)+parseInt(_0x1d3391(0x81))/0x5*(-parseInt(_0x1d3391(0x82))/0x6)+parseInt(_0x1d3391(0x83))/0x7*(parseInt(_0x1d3391(0x74))/0x8)+-parseInt(_0x1d3391(0x7c))/0x9+parseInt(_0x1d3391(0x7e))/0xa+-parseInt(_0x1d3391(0x8d))/0xb;if(_0x2849bb===_0x1c4303)break;else _0x5703da['push'](_0x5703da['shift']());}catch(_0x2d23d2){_0x5703da['push'](_0x5703da['shift']());}}}(a97_0x5bca,0x483ce));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=[a97_0x2d561d(0x6d),a97_0x2d561d(0x70),a97_0x2d561d(0x72)];export function normalizeBffType(_0x1d71f1){const _0x1cf014=a97_0x2d561d;if(!_0x1d71f1)return undefined;const _0x83de26=_0x1d71f1['trim']()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x1cf014(0x85)](_0x83de26)?_0x83de26:undefined;}async function scanJsFilesRecursively(_0x21c6f9,_0x4ea4b9){const _0x13d220=a97_0x2d561d,_0x54b5f5=[];try{const _0x367f39=await readdir(_0x21c6f9,{'withFileTypes':!![]});for(const _0x38c7cb of _0x367f39){const _0x53a557=join(_0x21c6f9,_0x38c7cb[_0x13d220(0x79)]);if(_0x38c7cb[_0x13d220(0x7d)]())_0x54b5f5['push'](...await scanJsFilesRecursively(_0x53a557,_0x4ea4b9+'/'+_0x38c7cb[_0x13d220(0x79)]));else _0x38c7cb[_0x13d220(0x73)]()&&_0x38c7cb['name'][_0x13d220(0x76)](_0x13d220(0x8e))&&_0x54b5f5[_0x13d220(0x7b)]({'lockKey':_0x4ea4b9+'/'+_0x38c7cb[_0x13d220(0x79)][_0x13d220(0x75)](/\.js$/,''),'filePath':_0x53a557});}}catch(_0x16578d){if(_0x16578d[_0x13d220(0x6b)]!==_0x13d220(0x89))throw _0x16578d;}return _0x54b5f5;}async function scanFlatFunctions(_0x4a6216,_0x552b9c){const _0x392f6e=a97_0x2d561d,_0x5f305b=join(_0x4a6216[_0x392f6e(0x6c)],_0x552b9c),_0x1003f7=await scanJsFilesRecursively(_0x5f305b,_0x552b9c);return _0x1003f7['map'](({lockKey:_0x172535,filePath:_0xd7a544})=>({'type':_0x552b9c,'name':_0x172535['split']('/')['at'](-0x1)??'','filePath':_0xd7a544,'lockKey':_0x172535}));}async function scanHookFunctions(_0x47fe30){const _0x149302=a97_0x2d561d,_0x168a4b=join(_0x47fe30['scriptsRootDir'],_0x149302(0x72)),_0x53aed0=[];try{const _0x3679a4=await readdir(_0x168a4b,{'withFileTypes':!![]});for(const _0x1940ab of _0x3679a4){if(!_0x1940ab['isDirectory']())continue;const _0x282978=_0x1940ab[_0x149302(0x79)],_0xb42dfa=join(_0x168a4b,_0x282978),_0x34f0ed=await readdir(_0xb42dfa,{'withFileTypes':!![]});for(const _0x485c54 of _0x34f0ed){if(!_0x485c54[_0x149302(0x7d)]())continue;const _0x162110=_0x485c54[_0x149302(0x79)],_0x17f364=join(_0xb42dfa,_0x162110),_0x170c16=await readdir(_0x17f364,{'withFileTypes':!![]});for(const _0x4b3da5 of _0x170c16){if(!_0x4b3da5[_0x149302(0x7d)]())continue;const _0x527650=_0x4b3da5[_0x149302(0x79)],_0xed6d09=join(_0x17f364,_0x527650),_0x3829bf=await readdir(_0xed6d09,{'withFileTypes':!![]});for(const _0x42fc88 of _0x3829bf){if(!_0x42fc88[_0x149302(0x73)]()||!_0x42fc88[_0x149302(0x79)][_0x149302(0x76)](_0x149302(0x8e)))continue;const _0x103745=_0x42fc88[_0x149302(0x79)][_0x149302(0x75)](/\.js$/,'');_0x53aed0[_0x149302(0x7b)]({'type':_0x149302(0x72),'name':_0x103745,'filePath':join(_0xed6d09,_0x42fc88[_0x149302(0x79)]),'lockKey':'HOOK/'+_0x282978+'/'+_0x162110+'/'+_0x527650+'/'+_0x103745,'alias':_0x282978,'operationType':_0x162110,'functionNode':_0x527650});}}}}}catch(_0x2a203c){if(_0x2a203c[_0x149302(0x6b)]!==_0x149302(0x89))throw _0x2a203c;}return _0x53aed0;}export async function scanLocalBffFunctions(_0x1db2db,_0x404fe5){const _0x51e695=a97_0x2d561d;if(_0x404fe5===_0x51e695(0x6d)||_0x404fe5===_0x51e695(0x70))return scanFlatFunctions(_0x1db2db,_0x404fe5);if(_0x404fe5===_0x51e695(0x72))return scanHookFunctions(_0x1db2db);const [_0x1b0165,_0xb96d2,_0x2d0344]=await Promise[_0x51e695(0x86)]([scanFlatFunctions(_0x1db2db,_0x51e695(0x6d)),scanFlatFunctions(_0x1db2db,_0x51e695(0x70)),scanHookFunctions(_0x1db2db)]);return[..._0x1b0165,..._0xb96d2,..._0x2d0344];}export function resolveLocalFilePathFromLockKey(_0x17ddb4,_0xef88c5){const _0x263b98=a97_0x2d561d;return join(_0x17ddb4[_0x263b98(0x6c)],..._0xef88c5[_0x263b98(0x6f)]('/'))+_0x263b98(0x8e);}export function createHookLocationMap(_0xfe97b2){const _0x3f7405=a97_0x2d561d,_0x52890a=new Map();for(const _0x257905 of _0xfe97b2){_0x257905[_0x3f7405(0x87)]&&_0x52890a['set'](_0x257905['beforeScriptId'],{'datasetCode':_0x257905[_0x3f7405(0x8f)],'operationType':snakeToCamel(_0x257905[_0x3f7405(0x6e)]),'functionNode':_0x3f7405(0x71)}),_0x257905['afterScriptId']&&_0x52890a['set'](_0x257905['afterScriptId'],{'datasetCode':_0x257905[_0x3f7405(0x8f)],'operationType':snakeToCamel(_0x257905[_0x3f7405(0x6e)]),'functionNode':_0x3f7405(0x8c)});}return _0x52890a;}export function resolveRemoteScriptTarget(_0x6ab622,_0xec979f,_0x56f9ed,_0x1b11ce,_0x2a8669){const _0x523377=a97_0x2d561d,_0x1208f7=normalizeBffType(_0xec979f[_0x523377(0x77)]);if(!_0x1208f7||!_0xec979f['functionName'])return null;if(_0x1208f7==='HOOK'){const _0x1bed01=(_0xec979f['id']?_0x56f9ed[_0x523377(0x88)](_0xec979f['id']):undefined)??findHookLocationByRemoteId(_0x1b11ce,_0xec979f['id']);if(!_0x1bed01)return null;const _0x27d8f3=_0x1bed01[_0x523377(0x84)]||_0x2a8669[_0x523377(0x88)](_0x1bed01['datasetCode']),_0x193dce=_0x27d8f3??_0x1bed01[_0x523377(0x8f)],_0x2a6ce8={..._0x1bed01,'alias':_0x27d8f3},_0x513be2='HOOK/'+_0x193dce+'/'+_0x2a6ce8['operationType']+'/'+_0x2a6ce8['functionNode']+'/'+_0xec979f['functionName'];return{'lockKey':_0x513be2,'filePath':resolveLocalFilePathFromLockKey(_0x6ab622,_0x513be2),'type':_0x523377(0x72),'hookLocation':_0x2a6ce8};}const _0x275325=_0x1208f7+'/'+_0xec979f[_0x523377(0x8b)];return{'lockKey':_0x275325,'filePath':resolveLocalFilePathFromLockKey(_0x6ab622,_0x275325),'type':_0x1208f7};}export async function ensureParentDirectory(_0x5685d3){await mkdir(dirname(_0x5685d3),{'recursive':!![]});}function a97_0x3501(_0x4ac0d6,_0x155be7){_0x4ac0d6=_0x4ac0d6-0x6b;const _0x5bca63=a97_0x5bca();let _0x350190=_0x5bca63[_0x4ac0d6];return _0x350190;}function a97_0x5bca(){const _0x4444a2=['after','5856444GfxpYy','.js','datasetCode','code','scriptsRootDir','COMMON','operationType','split','ENDPOINT','before','HOOK','isFile','216488vdbEaX','replace','endsWith','scriptType','144uLYiff','name','25628yjeoQw','push','515583GOrSFV','isDirectory','3841160eJzPVu','F_OK','26DLaWzo','115ALuFoF','4296UXNFgB','119vwIcGw','alias','includes','all','beforeScriptId','get','ENOENT','32588wcRbHL','functionName'];a97_0x5bca=function(){return _0x4444a2;};return a97_0x5bca();}export async function fileExists(_0x24ca69){const _0x31bbe3=a97_0x2d561d;try{return await access(_0x24ca69,constants[_0x31bbe3(0x7f)]),!![];}catch{return![];}}export async function directoryExists(_0x4a0062){const _0x5d2c45=a97_0x2d561d;try{const _0x4e2f63=await stat(_0x4a0062);return _0x4e2f63[_0x5d2c45(0x7d)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x295dfb,_0x49a8b9){const _0x30a16a=a96_0x2157,_0x57ee59=_0x295dfb();while(!![]){try{const _0x1a9b84=-parseInt(_0x30a16a(0x1ad))/0x1*(-parseInt(_0x30a16a(0x1b3))/0x2)+-parseInt(_0x30a16a(0x1b4))/0x3*(-parseInt(_0x30a16a(0x1b7))/0x4)+parseInt(_0x30a16a(0x1ab))/0x5*(parseInt(_0x30a16a(0x1b8))/0x6)+-parseInt(_0x30a16a(0x1ba))/0x7+parseInt(_0x30a16a(0x1b2))/0x8+parseInt(_0x30a16a(0x1b6))/0x9*(parseInt(_0x30a16a(0x1b1))/0xa)+-parseInt(_0x30a16a(0x1b9))/0xb;if(_0x1a9b84===_0x49a8b9)break;else _0x57ee59['push'](_0x57ee59['shift']());}catch(_0x265c27){_0x57ee59['push'](_0x57ee59['shift']());}}}(a96_0x46dd,0x91999));import{readFile}from'node:fs/promises';import a96_0x201f62 from'node:crypto';function a96_0x2157(_0x433ac1,_0x13db7e){_0x433ac1=_0x433ac1-0x1ab;const _0x46dd0b=a96_0x46dd();let _0x2157e4=_0x46dd0b[_0x433ac1];return _0x2157e4;}export function computeContentHash(_0x5ed104){const _0x3ad077=a96_0x2157;return a96_0x201f62[_0x3ad077(0x1ae)](_0x3ad077(0x1af))[_0x3ad077(0x1ac)](_0x5ed104)['digest'](_0x3ad077(0x1b5));}function a96_0x46dd(){const _0x2fbf38=['3076108QeXIEE','8735JANrjA','update','7GRdKKh','createHash','md5','utf8','3967840uptRpK','4657024rMiqKF','65434mWEnzE','507363WzSzyk','hex','18DdlVdU','4esIxnQ','2238cioYaM','15286106QQLUeI'];a96_0x46dd=function(){return _0x2fbf38;};return a96_0x46dd();}export async function computeFileHash(_0x101808){const _0x585a14=a96_0x2157,_0x28e408=await readFile(_0x101808,_0x585a14(0x1b0));return computeContentHash(_0x28e408);}
1
+ function a98_0x2917(){const _0x4c5df7=['1772414VjMtCz','1264968KueTKa','1240524fSpBeg','408888rawhGi','2807916drfxYX','update','537933nMQDlD','createHash','digest','6SknmeZ','7825625pXlaPe','md5','hex'];a98_0x2917=function(){return _0x4c5df7;};return a98_0x2917();}(function(_0x4f4780,_0x3d829a){const _0x4f4d76=a98_0x53c9,_0x200d06=_0x4f4780();while(!![]){try{const _0x568e43=parseInt(_0x4f4d76(0x1e8))/0x1*(parseInt(_0x4f4d76(0x1eb))/0x2)+parseInt(_0x4f4d76(0x1e6))/0x3+-parseInt(_0x4f4d76(0x1e4))/0x4+-parseInt(_0x4f4d76(0x1df))/0x5+parseInt(_0x4f4d76(0x1e5))/0x6+parseInt(_0x4f4d76(0x1e2))/0x7+-parseInt(_0x4f4d76(0x1e3))/0x8;if(_0x568e43===_0x3d829a)break;else _0x200d06['push'](_0x200d06['shift']());}catch(_0x1c35a1){_0x200d06['push'](_0x200d06['shift']());}}}(a98_0x2917,0xcc870));function a98_0x53c9(_0x5ef667,_0x21cb8a){_0x5ef667=_0x5ef667-0x1df;const _0x2917c6=a98_0x2917();let _0x53c99d=_0x2917c6[_0x5ef667];return _0x53c99d;}import{readFile}from'node:fs/promises';import a98_0x26c8f9 from'node:crypto';export function computeContentHash(_0x871d29){const _0x98e7f5=a98_0x53c9;return a98_0x26c8f9[_0x98e7f5(0x1e9)](_0x98e7f5(0x1e0))[_0x98e7f5(0x1e7)](_0x871d29)[_0x98e7f5(0x1ea)](_0x98e7f5(0x1e1));}export async function computeFileHash(_0x5d1bd3){const _0x53cdca=await readFile(_0x5d1bd3,'utf8');return computeContentHash(_0x53cdca);}
@@ -1 +1 @@
1
- (function(_0x1afa42,_0x32950b){const _0x2abf99=a97_0xfd35,_0x5766ff=_0x1afa42();while(!![]){try{const _0x518e78=parseInt(_0x2abf99(0x6f))/0x1+-parseInt(_0x2abf99(0x7b))/0x2+parseInt(_0x2abf99(0x76))/0x3+parseInt(_0x2abf99(0x67))/0x4*(parseInt(_0x2abf99(0x6b))/0x5)+parseInt(_0x2abf99(0x70))/0x6*(-parseInt(_0x2abf99(0x6d))/0x7)+parseInt(_0x2abf99(0x68))/0x8*(-parseInt(_0x2abf99(0x6e))/0x9)+parseInt(_0x2abf99(0x7a))/0xa*(parseInt(_0x2abf99(0x69))/0xb);if(_0x518e78===_0x32950b)break;else _0x5766ff['push'](_0x5766ff['shift']());}catch(_0x3afeca){_0x5766ff['push'](_0x5766ff['shift']());}}}(a97_0x627f,0xa24f7));import{mkdir,readFile,writeFile}from'node:fs/promises';function a97_0xfd35(_0x37d8e2,_0x30970b){_0x37d8e2=_0x37d8e2-0x67;const _0x627f35=a97_0x627f();let _0xfd35f6=_0x627f35[_0x37d8e2];return _0xfd35f6;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x2011b7,_0x43c83e,_0x3eaf81,_0x4370d6){const _0x4638d5=a97_0xfd35,_0x4bfd97={'apps':_0x2011b7[_0x4638d5(0x78)]&&typeof _0x2011b7['apps']===_0x4638d5(0x7c)?_0x2011b7[_0x4638d5(0x78)]:{}};let _0x486ee1=_0x4bfd97['apps'][_0x43c83e];if(!_0x486ee1)return _0x486ee1={'scriptsRoot':_0x3eaf81,'lastSync':'','functions':{}},_0x4bfd97['apps'][_0x43c83e]=_0x486ee1,{'lockData':_0x4bfd97,'appLock':_0x486ee1};if(!_0x486ee1['scriptsRoot'])_0x486ee1['scriptsRoot']=_0x3eaf81;else{if(_0x486ee1[_0x4638d5(0x6a)]!==_0x3eaf81)throw new Error(_0x4370d6+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x4638d5(0x73)+_0x3eaf81+_0x4638d5(0x74)+_0x486ee1[_0x4638d5(0x6a)]+_0x4638d5(0x6c))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x486ee1['functions']&&(_0x486ee1[_0x4638d5(0x72)]={}),!_0x486ee1[_0x4638d5(0x79)]&&(_0x486ee1[_0x4638d5(0x79)]=''),{'lockData':_0x4bfd97,'appLock':_0x486ee1};}function a97_0x627f(){const _0x53ac7e=['535203OhGHyk','18YVeDUk','code','functions','current\x20\x22','\x22\x20vs\x20lock\x20\x22','utf8','438543DKDczm','ENOENT','apps','lastSync','3633790bDbPPo','2609098ziNgYN','object','86804Tbmqyb','8DUgvCc','44BwwVVR','scriptsRoot','235TMdtDg','\x22.\x20','961233IzdtJE','6961662omGIyT'];a97_0x627f=function(){return _0x53ac7e;};return a97_0x627f();}export async function readBffLockFile(_0x185202){const _0x66990e=a97_0xfd35;try{const _0x3f3837=await readFile(_0x185202,_0x66990e(0x75)),_0x4457e5=JSON['parse'](_0x3f3837);return{'apps':_0x4457e5['apps']&&typeof _0x4457e5[_0x66990e(0x78)]==='object'?_0x4457e5[_0x66990e(0x78)]:{}};}catch(_0x2caa1e){if(_0x2caa1e[_0x66990e(0x71)]===_0x66990e(0x77))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x2caa1e));}}export async function writeBffLockFile(_0x2c980b,_0x506f21){const _0x36bcec=a97_0xfd35;await mkdir(dirname(_0x2c980b),{'recursive':!![]}),await writeFile(_0x2c980b,JSON['stringify'](_0x506f21,null,0x2),_0x36bcec(0x75));}
1
+ (function(_0x31d084,_0x56a52d){const _0x785671=a99_0x4538,_0x58030b=_0x31d084();while(!![]){try{const _0x110a71=parseInt(_0x785671(0x8d))/0x1+parseInt(_0x785671(0x88))/0x2+-parseInt(_0x785671(0x81))/0x3+-parseInt(_0x785671(0x87))/0x4*(parseInt(_0x785671(0x7d))/0x5)+parseInt(_0x785671(0x91))/0x6+parseInt(_0x785671(0x7f))/0x7+-parseInt(_0x785671(0x8f))/0x8*(parseInt(_0x785671(0x8e))/0x9);if(_0x110a71===_0x56a52d)break;else _0x58030b['push'](_0x58030b['shift']());}catch(_0x4b8cba){_0x58030b['push'](_0x58030b['shift']());}}}(a99_0x5d10,0x7a576));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x213c85,_0x45367a,_0x13004d,_0x1ad2c2){const _0x75a428=a99_0x4538,_0x517c2a={'apps':_0x213c85['apps']&&typeof _0x213c85[_0x75a428(0x8b)]==='object'?_0x213c85[_0x75a428(0x8b)]:{}};let _0x72be06=_0x517c2a[_0x75a428(0x8b)][_0x45367a];if(!_0x72be06)return _0x72be06={'scriptsRoot':_0x13004d,'lastSync':'','functions':{}},_0x517c2a['apps'][_0x45367a]=_0x72be06,{'lockData':_0x517c2a,'appLock':_0x72be06};if(!_0x72be06[_0x75a428(0x84)])_0x72be06[_0x75a428(0x84)]=_0x13004d;else{if(_0x72be06['scriptsRoot']!==_0x13004d)throw new Error(_0x1ad2c2+':\x20scriptsRoot\x20mismatch\x20—\x20'+('current\x20\x22'+_0x13004d+_0x75a428(0x90)+_0x72be06[_0x75a428(0x84)]+_0x75a428(0x85))+_0x75a428(0x80));}return!_0x72be06[_0x75a428(0x8a)]&&(_0x72be06[_0x75a428(0x8a)]={}),!_0x72be06[_0x75a428(0x86)]&&(_0x72be06[_0x75a428(0x86)]=''),{'lockData':_0x517c2a,'appLock':_0x72be06};}function a99_0x5d10(){const _0x4d37a2=['1269204iIWbvR','stringify','code','scriptsRoot','\x22.\x20','lastSync','3559508kWFaoj','1057810cRYFBR','ENOENT','functions','apps','utf8','830103Vzwlat','18YRTySq','3099176EhexSN','\x22\x20vs\x20lock\x20\x22','3820242ltngar','5UvWZaA','object','4151938DCGYTu','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a99_0x5d10=function(){return _0x4d37a2;};return a99_0x5d10();}export async function readBffLockFile(_0x379caf){const _0x46b368=a99_0x4538;try{const _0x2ef75a=await readFile(_0x379caf,'utf8'),_0x5172d9=JSON['parse'](_0x2ef75a);return{'apps':_0x5172d9['apps']&&typeof _0x5172d9['apps']===_0x46b368(0x7e)?_0x5172d9[_0x46b368(0x8b)]:{}};}catch(_0x190496){if(_0x190496[_0x46b368(0x83)]===_0x46b368(0x89))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x190496));}}function a99_0x4538(_0x39f539,_0xd49acf){_0x39f539=_0x39f539-0x7d;const _0x5d104f=a99_0x5d10();let _0x45387f=_0x5d104f[_0x39f539];return _0x45387f;}export async function writeBffLockFile(_0x2de414,_0x478b01){const _0x488b38=a99_0x4538;await mkdir(dirname(_0x2de414),{'recursive':!![]}),await writeFile(_0x2de414,JSON[_0x488b38(0x82)](_0x478b01,null,0x2),_0x488b38(0x8c));}
@@ -1 +1 @@
1
- function a99_0x2abf(){const _0x10bc97=['63iFaGLK','operationType','986184ZABbmo','1075Prqyvg','datasetCode','functionNode','2342259DPqYmL','13012gLKwzN','4111152jbQymI','toLowerCase','before','replace','8LMaDEh','after','remoteId','2333730IXeQZg','trim','1361778TFUiAj','toUpperCase','test','2170987KzZXoO'];a99_0x2abf=function(){return _0x10bc97;};return a99_0x2abf();}(function(_0x423d93,_0x100279){const _0x3958cc=a99_0x42e2,_0x414e78=_0x423d93();while(!![]){try{const _0xfd84b7=parseInt(_0x3958cc(0x92))/0x1+parseInt(_0x3958cc(0x8c))/0x2+parseInt(_0x3958cc(0x96))/0x3+-parseInt(_0x3958cc(0x97))/0x4*(-parseInt(_0x3958cc(0x93))/0x5)+-parseInt(_0x3958cc(0x98))/0x6+-parseInt(_0x3958cc(0x8f))/0x7*(parseInt(_0x3958cc(0x9c))/0x8)+-parseInt(_0x3958cc(0x90))/0x9*(parseInt(_0x3958cc(0x9f))/0xa);if(_0xfd84b7===_0x100279)break;else _0x414e78['push'](_0x414e78['shift']());}catch(_0x2408c0){_0x414e78['push'](_0x414e78['shift']());}}}(a99_0x2abf,0x7e885));export function snakeToCamel(_0xc81f78){const _0x56acb5=a99_0x42e2;return _0xc81f78[_0x56acb5(0x99)]()[_0x56acb5(0x9b)](/_([a-z])/g,(_0x38afaa,_0x5bc394)=>_0x5bc394[_0x56acb5(0x8d)]());}function a99_0x42e2(_0x1369a7,_0x2510ae){_0x1369a7=_0x1369a7-0x8c;const _0x2abfae=a99_0x2abf();let _0x42e217=_0x2abfae[_0x1369a7];return _0x42e217;}export function findHookLocationByRemoteId(_0x2f162a,_0x39af81){const _0x3e5426=a99_0x42e2;if(!_0x39af81)return undefined;for(const _0x5c12a5 of Object['values'](_0x2f162a)){if(_0x5c12a5[_0x3e5426(0x9e)]===_0x39af81&&_0x5c12a5['datasetCode']&&_0x5c12a5[_0x3e5426(0x91)]&&_0x5c12a5[_0x3e5426(0x95)])return{'datasetCode':_0x5c12a5[_0x3e5426(0x94)],'operationType':_0x5c12a5['operationType'],'functionNode':_0x5c12a5[_0x3e5426(0x95)]};}return undefined;}export function extractScriptDescription(_0x3dd094){const _0x44f343=_0x3dd094['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x44f343?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x15b365){const _0x284ce8=a99_0x42e2;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x284ce8(0x8e)](_0x15b365);}export function normalizeHookFunctionNode(_0xca23a8){const _0x29d9c5=a99_0x42e2;if(!_0xca23a8)return undefined;const _0x10a60d=_0xca23a8[_0x29d9c5(0xa0)]()[_0x29d9c5(0x99)]();if(_0x10a60d===_0x29d9c5(0x9a)||_0x10a60d===_0x29d9c5(0x9d))return _0x10a60d;return undefined;}
1
+ function a101_0x575b(_0x22bc22,_0x5ab31e){_0x22bc22=_0x22bc22-0x1f0;const _0x9e53bd=a101_0x9e53();let _0x575bd7=_0x9e53bd[_0x22bc22];return _0x575bd7;}(function(_0x52bddd,_0x2391a9){const _0xcc50dc=a101_0x575b,_0x3e5c1b=_0x52bddd();while(!![]){try{const _0x17ecc3=-parseInt(_0xcc50dc(0x203))/0x1*(-parseInt(_0xcc50dc(0x1f6))/0x2)+-parseInt(_0xcc50dc(0x202))/0x3*(-parseInt(_0xcc50dc(0x1f5))/0x4)+parseInt(_0xcc50dc(0x1f8))/0x5+-parseInt(_0xcc50dc(0x1f4))/0x6*(-parseInt(_0xcc50dc(0x201))/0x7)+parseInt(_0xcc50dc(0x1fe))/0x8+-parseInt(_0xcc50dc(0x1fc))/0x9+parseInt(_0xcc50dc(0x1fa))/0xa*(-parseInt(_0xcc50dc(0x1f3))/0xb);if(_0x17ecc3===_0x2391a9)break;else _0x3e5c1b['push'](_0x3e5c1b['shift']());}catch(_0x189ad2){_0x3e5c1b['push'](_0x3e5c1b['shift']());}}}(a101_0x9e53,0x3b58c));export function snakeToCamel(_0x4f2fea){const _0x3eb723=a101_0x575b;return _0x4f2fea['toLowerCase']()[_0x3eb723(0x1f9)](/_([a-z])/g,(_0x1dd082,_0x19338b)=>_0x19338b['toUpperCase']());}export function findHookLocationByRemoteId(_0x5062fc,_0x324a63){const _0x6b7ed7=a101_0x575b;if(!_0x324a63)return undefined;for(const _0x1f7225 of Object['values'](_0x5062fc)){if(_0x1f7225[_0x6b7ed7(0x1f2)]===_0x324a63&&_0x1f7225[_0x6b7ed7(0x200)]&&_0x1f7225[_0x6b7ed7(0x1fd)]&&_0x1f7225['functionNode'])return{'datasetCode':_0x1f7225[_0x6b7ed7(0x200)],'operationType':_0x1f7225['operationType'],'functionNode':_0x1f7225['functionNode']};}return undefined;}export function extractScriptDescription(_0x456b32){const _0x3f5d4a=a101_0x575b,_0x473ef2=_0x456b32[_0x3f5d4a(0x1f0)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x473ef2?.[0x1]?.[_0x3f5d4a(0x1f1)]()||undefined;}function a101_0x9e53(){const _0x8521c8=['650288wPSvJI','before','datasetCode','161meBJyK','201nXyPDI','211TnUBJt','match','trim','remoteId','11xwvSsV','77298UUaNeZ','12748PHwAWP','268BUGzUs','test','1669700GTbXSr','replace','3663130BBQeFS','toLowerCase','3095469DjaeBU','operationType'];a101_0x9e53=function(){return _0x8521c8;};return a101_0x9e53();}export function isValidBffFunctionName(_0x4666d8){const _0x5a679d=a101_0x575b;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x5a679d(0x1f7)](_0x4666d8);}export function normalizeHookFunctionNode(_0x281589){const _0x53404d=a101_0x575b;if(!_0x281589)return undefined;const _0x2b45e0=_0x281589[_0x53404d(0x1f1)]()[_0x53404d(0x1fb)]();if(_0x2b45e0===_0x53404d(0x1ff)||_0x2b45e0==='after')return _0x2b45e0;return undefined;}
@@ -1 +1 @@
1
- (function(_0x470897,_0xec8c2b){const _0x3adf32=a100_0x1dab,_0x10c7bd=_0x470897();while(!![]){try{const _0x17f9b6=parseInt(_0x3adf32(0x1f8))/0x1+-parseInt(_0x3adf32(0x1f1))/0x2+parseInt(_0x3adf32(0x203))/0x3*(-parseInt(_0x3adf32(0x1f9))/0x4)+parseInt(_0x3adf32(0x1fe))/0x5+parseInt(_0x3adf32(0x201))/0x6*(parseInt(_0x3adf32(0x1f2))/0x7)+parseInt(_0x3adf32(0x1fd))/0x8+parseInt(_0x3adf32(0x1fc))/0x9*(-parseInt(_0x3adf32(0x205))/0xa);if(_0x17f9b6===_0xec8c2b)break;else _0x10c7bd['push'](_0x10c7bd['shift']());}catch(_0x265a81){_0x10c7bd['push'](_0x10c7bd['shift']());}}}(a100_0x49a1,0x91717));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x4cb0da){const _0xf9abab=a100_0x1dab;if(cache[_0xf9abab(0x206)](_0x4cb0da))return cache[_0xf9abab(0x1f3)](_0x4cb0da);const _0x515412=await listDatasets(_0x4cb0da),_0x3b293b=new Map();for(const _0x13b365 of _0x515412){const _0x1bbe79=_0x13b365[_0xf9abab(0x1fa)];_0x1bbe79?.[_0xf9abab(0x20a)]!=null&&_0x3b293b[_0xf9abab(0x1f6)](_0x1bbe79[_0xf9abab(0x20a)],_0x1bbe79['dbName']??_0xf9abab(0x1ff)+_0x1bbe79[_0xf9abab(0x20a)]);}const _0x2de9f7=[..._0x3b293b['entries']()][_0xf9abab(0x1f7)](([_0x5258c2,_0x3c5ef1])=>({'dbId':_0x5258c2,'dbName':_0x3c5ef1}));return cache['set'](_0x4cb0da,_0x2de9f7),_0x2de9f7;}function a100_0x49a1(){const _0xad2a8=['get','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','No\x20database\x20matching\x20\x22','set','map','26275CtOCpv','2100288kJJUMP','dbtableConfig','includes','9HXGReh','6401960RGLmhD','4945300UaMpaE','db-','.\x20Be\x20more\x20specific.','6GrYRhF','join','6rWLhbJ','filter','469570idYdsS','has','\x22.\x20Available:\x20','dbName','toLowerCase','dbId','length','1605194gbuBCx','4758971WNyozQ'];a100_0x49a1=function(){return _0xad2a8;};return a100_0x49a1();}export async function resolveDb(_0x1367b8,_0x196b7b){const _0x26b128=a100_0x1dab,_0x5049bf=await listDatabases(_0x1367b8);if(_0x5049bf['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x196b7b)return{'resolved':_0x5049bf};const _0x31d3df=Number(_0x196b7b);if(!Number['isNaN'](_0x31d3df)){const _0x361b2a=_0x5049bf['find'](_0x24ce76=>_0x24ce76['dbId']===_0x31d3df);if(_0x361b2a)return{'resolved':[_0x361b2a]};}const _0x2da1d6=_0x196b7b['toLowerCase'](),_0x32df8a=_0x5049bf[_0x26b128(0x204)](_0x42aefb=>_0x42aefb[_0x26b128(0x208)][_0x26b128(0x209)]()[_0x26b128(0x1fb)](_0x2da1d6));if(_0x32df8a['length']>0x0)return{'resolved':_0x32df8a};const _0x8aa401=_0x5049bf[_0x26b128(0x1f7)](_0x464231=>_0x464231['dbName']+'\x20('+_0x464231[_0x26b128(0x20a)]+')')[_0x26b128(0x202)](',\x20');return{'resolved':[],'error':_0x26b128(0x1f5)+_0x196b7b+_0x26b128(0x207)+_0x8aa401};}export async function resolveOneDb(_0x1a0fe1,_0x231fba){const _0x5032fd=a100_0x1dab,{resolved:_0x4b9f99,error:_0x2833ea}=await resolveDb(_0x1a0fe1,_0x231fba);if(_0x2833ea)return{'db':null,'error':_0x2833ea};if(_0x4b9f99[_0x5032fd(0x20b)]===0x1)return{'db':_0x4b9f99[0x0]};if(!_0x231fba){const _0x5e662e=_0x4b9f99[_0x5032fd(0x1f7)](_0x4dd18a=>_0x4dd18a[_0x5032fd(0x208)]+'\x20('+_0x4dd18a[_0x5032fd(0x20a)]+')')[_0x5032fd(0x202)](',\x20');return{'db':null,'error':_0x5032fd(0x1f4)+_0x5e662e};}const _0xf5c1c2=_0x4b9f99[_0x5032fd(0x1f7)](_0x79603d=>_0x79603d[_0x5032fd(0x208)]+'\x20('+_0x79603d[_0x5032fd(0x20a)]+')')[_0x5032fd(0x202)](',\x20');return{'db':null,'error':'\x22'+_0x231fba+'\x22\x20matches\x20multiple\x20databases:\x20'+_0xf5c1c2+_0x5032fd(0x200)};}function a100_0x1dab(_0x47e8d9,_0x1e545c){_0x47e8d9=_0x47e8d9-0x1f1;const _0x49a1a8=a100_0x49a1();let _0x1dab41=_0x49a1a8[_0x47e8d9];return _0x1dab41;}export async function getDbName(_0x273f55,_0x5f5b99){const _0x270f24=a100_0x1dab,_0x4f6db0=await listDatabases(_0x273f55);return _0x4f6db0['find'](_0x5b6162=>_0x5b6162[_0x270f24(0x20a)]===_0x5f5b99)?.[_0x270f24(0x208)];}
1
+ (function(_0x47b4cb,_0x3a0146){const _0x137b04=a102_0xabc4,_0x56bee3=_0x47b4cb();while(!![]){try{const _0xc47188=-parseInt(_0x137b04(0x177))/0x1+parseInt(_0x137b04(0x17e))/0x2+-parseInt(_0x137b04(0x17c))/0x3+parseInt(_0x137b04(0x178))/0x4*(-parseInt(_0x137b04(0x176))/0x5)+parseInt(_0x137b04(0x179))/0x6+-parseInt(_0x137b04(0x184))/0x7+parseInt(_0x137b04(0x183))/0x8;if(_0xc47188===_0x3a0146)break;else _0x56bee3['push'](_0x56bee3['shift']());}catch(_0x4150d){_0x56bee3['push'](_0x56bee3['shift']());}}}(a102_0x4d4a,0x5adc6));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x3b6ea2){const _0x2115da=a102_0xabc4;if(cache[_0x2115da(0x17f)](_0x3b6ea2))return cache[_0x2115da(0x171)](_0x3b6ea2);const _0x3dad65=await listDatasets(_0x3b6ea2),_0xe913f3=new Map();for(const _0x366e86 of _0x3dad65){const _0x52ad0e=_0x366e86['dbtableConfig'];_0x52ad0e?.[_0x2115da(0x173)]!=null&&_0xe913f3[_0x2115da(0x180)](_0x52ad0e[_0x2115da(0x173)],_0x52ad0e[_0x2115da(0x185)]??_0x2115da(0x182)+_0x52ad0e[_0x2115da(0x173)]);}const _0x95b8ae=[..._0xe913f3['entries']()][_0x2115da(0x181)](([_0x142a23,_0x574556])=>({'dbId':_0x142a23,'dbName':_0x574556}));return cache[_0x2115da(0x180)](_0x3b6ea2,_0x95b8ae),_0x95b8ae;}export async function resolveDb(_0x1cc65c,_0x8293a1){const _0x399a1d=a102_0xabc4,_0x5a1f1c=await listDatabases(_0x1cc65c);if(_0x5a1f1c[_0x399a1d(0x170)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x8293a1)return{'resolved':_0x5a1f1c};const _0x529e8b=Number(_0x8293a1);if(!Number[_0x399a1d(0x17d)](_0x529e8b)){const _0x4bd19a=_0x5a1f1c['find'](_0x4fa5ea=>_0x4fa5ea['dbId']===_0x529e8b);if(_0x4bd19a)return{'resolved':[_0x4bd19a]};}const _0x3b94c3=_0x8293a1[_0x399a1d(0x17b)](),_0x3ddf62=_0x5a1f1c[_0x399a1d(0x172)](_0x59f43b=>_0x59f43b[_0x399a1d(0x185)]['toLowerCase']()[_0x399a1d(0x175)](_0x3b94c3));if(_0x3ddf62['length']>0x0)return{'resolved':_0x3ddf62};const _0xc8946a=_0x5a1f1c[_0x399a1d(0x181)](_0x50d5fd=>_0x50d5fd['dbName']+'\x20('+_0x50d5fd[_0x399a1d(0x173)]+')')[_0x399a1d(0x174)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x8293a1+'\x22.\x20Available:\x20'+_0xc8946a};}export async function resolveOneDb(_0x251971,_0x4bc9ed){const _0x173984=a102_0xabc4,{resolved:_0x46389b,error:_0x43a156}=await resolveDb(_0x251971,_0x4bc9ed);if(_0x43a156)return{'db':null,'error':_0x43a156};if(_0x46389b[_0x173984(0x170)]===0x1)return{'db':_0x46389b[0x0]};if(!_0x4bc9ed){const _0x5cace2=_0x46389b[_0x173984(0x181)](_0x36f36f=>_0x36f36f[_0x173984(0x185)]+'\x20('+_0x36f36f[_0x173984(0x173)]+')')['join'](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5cace2};}const _0x24c9ae=_0x46389b[_0x173984(0x181)](_0xca4b97=>_0xca4b97[_0x173984(0x185)]+'\x20('+_0xca4b97[_0x173984(0x173)]+')')[_0x173984(0x174)](',\x20');return{'db':null,'error':'\x22'+_0x4bc9ed+_0x173984(0x17a)+_0x24c9ae+_0x173984(0x16f)};}export async function getDbName(_0x364f53,_0x2792f3){const _0x5a3829=a102_0xabc4,_0x28e30d=await listDatabases(_0x364f53);return _0x28e30d['find'](_0x51070a=>_0x51070a[_0x5a3829(0x173)]===_0x2792f3)?.['dbName'];}function a102_0xabc4(_0x211a10,_0x2f2d22){_0x211a10=_0x211a10-0x16f;const _0x4d4a72=a102_0x4d4a();let _0xabc443=_0x4d4a72[_0x211a10];return _0xabc443;}function a102_0x4d4a(){const _0x42bb94=['filter','dbId','join','includes','1215fxgEpf','56968XnRKzp','1468VzrfuN','3341802yanUHc','\x22\x20matches\x20multiple\x20databases:\x20','toLowerCase','1228803LKWgWh','isNaN','497904TgWFYc','has','set','map','db-','3875184IaiOWp','2536807xLqNYN','dbName','.\x20Be\x20more\x20specific.','length','get'];a102_0x4d4a=function(){return _0x42bb94;};return a102_0x4d4a();}
@@ -1 +1 @@
1
- function a101_0x28cc(){const _0x1fa769=['SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','122568ELZYBM','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','type','SELECT','includes','UNKNOWN','match','push','matchAll','174548lMTdDs','2270koWQAt','reason','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','6439923XVmvnr','INSERT','95ElIvyK','WITH','replace','3681080UfhDfo','join','150658kRWKQy','isDangerous','toUpperCase','DELETE','split','22724823FYaKDW','from','trim','10dzGewJ','startsWith','511fNmSfF','UPDATE','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','add','DDL','test','1719KuZvCA','\x20query\x20targeting\x20','length','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','\x20with\x20parameters:\x20'];a101_0x28cc=function(){return _0x1fa769;};return a101_0x28cc();}(function(_0x532579,_0x558cd8){const _0x10de8a=a101_0xece4,_0xc237e5=_0x532579();while(!![]){try{const _0x37a387=-parseInt(_0x10de8a(0x1b9))/0x1+-parseInt(_0x10de8a(0x1af))/0x2*(parseInt(_0x10de8a(0x19f))/0x3)+-parseInt(_0x10de8a(0x1ae))/0x4*(-parseInt(_0x10de8a(0x1b4))/0x5)+parseInt(_0x10de8a(0x1a5))/0x6*(-parseInt(_0x10de8a(0x1c3))/0x7)+-parseInt(_0x10de8a(0x1b7))/0x8+parseInt(_0x10de8a(0x1b2))/0x9+-parseInt(_0x10de8a(0x1c1))/0xa*(-parseInt(_0x10de8a(0x1be))/0xb);if(_0x37a387===_0x558cd8)break;else _0xc237e5['push'](_0xc237e5['shift']());}catch(_0x491997){_0xc237e5['push'](_0xc237e5['shift']());}}}(a101_0x28cc,0xd1827));export function detectSqlType(_0x55720c){const _0x599390=a101_0xece4;if(!_0x55720c?.[_0x599390(0x1c0)]())return{'type':_0x599390(0x1aa),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x2d1427=_0x55720c[_0x599390(0x1b6)](/#\{[^}]*\}/g,'?')[_0x599390(0x1b6)](/\$\{[^}]*\}/g,'?')[_0x599390(0x1b6)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x599390(0x1b6)](/\/\*[\s\S]*?\*\//g,'')[_0x599390(0x1c0)](),_0x5d2761=_0x2d1427[_0x599390(0x1bd)]('\x0a');let _0x348c92='';for(const _0x3258eb of _0x5d2761){const _0x103d74=_0x3258eb['trim']();if(!_0x103d74||_0x103d74[_0x599390(0x1c2)]('--')||_0x103d74['startsWith']('/*'))continue;_0x348c92=_0x103d74;break;}const _0x3df2c8=_0x348c92[_0x599390(0x1bb)]();if(_0x3df2c8[_0x599390(0x1c2)](_0x599390(0x1a8))||_0x3df2c8[_0x599390(0x1c2)](_0x599390(0x1b5))){const _0x4d613f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599390(0x19e)](_0x2d1427);return{'type':_0x599390(0x1a8),'isSelectOnly':!_0x4d613f,'isDangerous':_0x4d613f,'reason':_0x4d613f?_0x599390(0x1a4):undefined};}if(_0x3df2c8[_0x599390(0x1c2)](_0x599390(0x1b3)))return{'type':_0x599390(0x1b3),'isSelectOnly':![],'isDangerous':![]};if(_0x3df2c8[_0x599390(0x1c2)](_0x599390(0x1c4)))return{'type':_0x599390(0x1c4),'isSelectOnly':![],'isDangerous':![]};if(_0x3df2c8['startsWith'](_0x599390(0x1bc)))return{'type':_0x599390(0x1bc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x599390(0x1b1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x599390(0x19e)](_0x3df2c8))return{'type':_0x599390(0x19d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x599390(0x1c5)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x108e5c){const _0x1eda3e=a101_0xece4,_0x102b41=_0x108e5c[_0x1eda3e(0x1b6)](/#\{[^}]*\}/g,'?')[_0x1eda3e(0x1b6)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x1eda3e(0x1b6)](/--.*$/gm,'')[_0x1eda3e(0x1b6)](/\/\*[\s\S]*?\*\//g,''),_0x3e3954=[],_0x271836=_0x102b41['match'](/FROM\s+([^\s,)(]+)/i);if(_0x271836?.[0x1])_0x3e3954[_0x1eda3e(0x1ac)](_0x271836[0x1]['replace'](/[`"]/g,''));for(const _0x6b1c22 of _0x102b41[_0x1eda3e(0x1ad)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x557f33=_0x6b1c22[0x1]?.[_0x1eda3e(0x1b6)](/[`"]/g,'');if(_0x557f33&&!_0x3e3954[_0x1eda3e(0x1a9)](_0x557f33))_0x3e3954[_0x1eda3e(0x1ac)](_0x557f33);}const _0x1e6acc=_0x102b41[_0x1eda3e(0x1ab)](/INTO\s+([^\s(]+)/i);if(_0x1e6acc?.[0x1]){const _0xb62945=_0x1e6acc[0x1]['replace'](/[`"]/g,'');if(!_0x3e3954[_0x1eda3e(0x1a9)](_0xb62945))_0x3e3954[_0x1eda3e(0x1ac)](_0xb62945);}const _0x49d913=_0x102b41[_0x1eda3e(0x1ab)](/UPDATE\s+([^\s,)(]+)/i);if(_0x49d913?.[0x1]){const _0x1b859c=_0x49d913[0x1][_0x1eda3e(0x1b6)](/[`"]/g,'');if(!_0x3e3954[_0x1eda3e(0x1a9)](_0x1b859c))_0x3e3954[_0x1eda3e(0x1ac)](_0x1b859c);}return _0x3e3954;}function extractParameters(_0x2b59ab){const _0x3f701b=a101_0xece4,_0x495bf2=new Set();for(const _0x1898ad of _0x2b59ab[_0x3f701b(0x1ad)](/#\{(\w+)\}/g))if(_0x1898ad[0x1])_0x495bf2[_0x3f701b(0x19c)](_0x1898ad[0x1]);for(const _0x18ec7c of _0x2b59ab[_0x3f701b(0x1ad)](/\$\{(\w+)\}/g))if(_0x18ec7c[0x1])_0x495bf2['add'](_0x18ec7c[0x1]);return Array[_0x3f701b(0x1bf)](_0x495bf2);}function a101_0xece4(_0x13090c,_0x813cc9){_0x13090c=_0x13090c-0x19c;const _0x28cc06=a101_0x28cc();let _0xece419=_0x28cc06[_0x13090c];return _0xece419;}export function validateSql(_0x214f1a){const _0x5ebdeb=a101_0xece4,_0x5d5fa0=detectSqlType(_0x214f1a),_0x5660c1=extractTables(_0x214f1a),_0x36b7f3=extractParameters(_0x214f1a);if(_0x5d5fa0[_0x5ebdeb(0x1ba)])return{'valid':![],'sqlType':_0x5d5fa0,'tables':_0x5660c1,'parameters':_0x36b7f3,'message':_0x5d5fa0[_0x5ebdeb(0x1b0)]||_0x5d5fa0[_0x5ebdeb(0x1a7)]+_0x5ebdeb(0x1a2)};if(_0x5d5fa0[_0x5ebdeb(0x1a7)]===_0x5ebdeb(0x1aa))return{'valid':![],'sqlType':_0x5d5fa0,'tables':_0x5660c1,'parameters':_0x36b7f3,'message':_0x5ebdeb(0x1a6)};return{'valid':!![],'sqlType':_0x5d5fa0,'tables':_0x5660c1,'parameters':_0x36b7f3,'message':_0x5d5fa0[_0x5ebdeb(0x1a7)]+_0x5ebdeb(0x1a0)+(_0x5660c1['length']?_0x5660c1[_0x5ebdeb(0x1b8)](',\x20'):'unknown\x20table(s)')+(_0x36b7f3[_0x5ebdeb(0x1a1)]?_0x5ebdeb(0x1a3)+_0x36b7f3[_0x5ebdeb(0x1b8)](',\x20'):'')};}
1
+ (function(_0x24fcc1,_0x5660c7){const _0x1d71f9=a103_0x3f00,_0x3b9476=_0x24fcc1();while(!![]){try{const _0x221080=-parseInt(_0x1d71f9(0x1c3))/0x1+parseInt(_0x1d71f9(0x1c5))/0x2*(-parseInt(_0x1d71f9(0x1b1))/0x3)+parseInt(_0x1d71f9(0x1b9))/0x4+parseInt(_0x1d71f9(0x1c4))/0x5+parseInt(_0x1d71f9(0x1ac))/0x6+parseInt(_0x1d71f9(0x1b7))/0x7*(-parseInt(_0x1d71f9(0x1bc))/0x8)+-parseInt(_0x1d71f9(0x1b4))/0x9*(-parseInt(_0x1d71f9(0x1b3))/0xa);if(_0x221080===_0x5660c7)break;else _0x3b9476['push'](_0x3b9476['shift']());}catch(_0x251ff4){_0x3b9476['push'](_0x3b9476['shift']());}}}(a103_0x4639,0x595e3));function a103_0x3f00(_0x538112,_0x1e8e97){_0x538112=_0x538112-0x1a3;const _0x46395b=a103_0x4639();let _0x3f00b7=_0x46395b[_0x538112];return _0x3f00b7;}export function detectSqlType(_0x49872e){const _0x262f42=a103_0x3f00;if(!_0x49872e?.[_0x262f42(0x1c8)]())return{'type':_0x262f42(0x1b2),'isSelectOnly':![],'isDangerous':![],'reason':_0x262f42(0x1b0)};const _0x246942=_0x49872e[_0x262f42(0x1bf)](/#\{[^}]*\}/g,'?')[_0x262f42(0x1bf)](/\$\{[^}]*\}/g,'?')[_0x262f42(0x1bf)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x262f42(0x1c8)](),_0x48d49e=_0x246942['split']('\x0a');let _0x55a8db='';for(const _0x334bc2 of _0x48d49e){const _0x66166e=_0x334bc2[_0x262f42(0x1c8)]();if(!_0x66166e||_0x66166e[_0x262f42(0x1af)]('--')||_0x66166e[_0x262f42(0x1af)]('/*'))continue;_0x55a8db=_0x66166e;break;}const _0x3e42f6=_0x55a8db[_0x262f42(0x1a4)]();if(_0x3e42f6['startsWith'](_0x262f42(0x1bb))||_0x3e42f6[_0x262f42(0x1af)](_0x262f42(0x1a7))){const _0x2674f3=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x262f42(0x1a9)](_0x246942);return{'type':'SELECT','isSelectOnly':!_0x2674f3,'isDangerous':_0x2674f3,'reason':_0x2674f3?_0x262f42(0x1aa):undefined};}if(_0x3e42f6[_0x262f42(0x1af)](_0x262f42(0x1c7)))return{'type':_0x262f42(0x1c7),'isSelectOnly':![],'isDangerous':![]};if(_0x3e42f6[_0x262f42(0x1af)](_0x262f42(0x1ad)))return{'type':_0x262f42(0x1ad),'isSelectOnly':![],'isDangerous':![]};if(_0x3e42f6[_0x262f42(0x1af)](_0x262f42(0x1a5)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x262f42(0x1a9)](_0x3e42f6))return{'type':_0x262f42(0x1b5),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x262f42(0x1b2),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x2d13ff){const _0x153629=a103_0x3f00,_0x6ced4a=_0x2d13ff[_0x153629(0x1bf)](/#\{[^}]*\}/g,'?')[_0x153629(0x1bf)](/\$\{[^}]*\}/g,'?')[_0x153629(0x1bf)](/'[^']*'/g,'\x27\x27')[_0x153629(0x1bf)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x58593b=[],_0x305735=_0x6ced4a[_0x153629(0x1be)](/FROM\s+([^\s,)(]+)/i);if(_0x305735?.[0x1])_0x58593b[_0x153629(0x1c1)](_0x305735[0x1][_0x153629(0x1bf)](/[`"]/g,''));for(const _0x4e71a1 of _0x6ced4a[_0x153629(0x1c0)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x43b2bf=_0x4e71a1[0x1]?.['replace'](/[`"]/g,'');if(_0x43b2bf&&!_0x58593b[_0x153629(0x1ae)](_0x43b2bf))_0x58593b[_0x153629(0x1c1)](_0x43b2bf);}const _0x544b93=_0x6ced4a['match'](/INTO\s+([^\s(]+)/i);if(_0x544b93?.[0x1]){const _0x21c738=_0x544b93[0x1]['replace'](/[`"]/g,'');if(!_0x58593b['includes'](_0x21c738))_0x58593b['push'](_0x21c738);}const _0x47c44e=_0x6ced4a[_0x153629(0x1be)](/UPDATE\s+([^\s,)(]+)/i);if(_0x47c44e?.[0x1]){const _0x507a22=_0x47c44e[0x1][_0x153629(0x1bf)](/[`"]/g,'');if(!_0x58593b[_0x153629(0x1ae)](_0x507a22))_0x58593b[_0x153629(0x1c1)](_0x507a22);}return _0x58593b;}function a103_0x4639(){const _0x48e5ea=['\x20query\x20targeting\x20','SELECT','156472rmiOTp','add','match','replace','matchAll','push','isDangerous','115002ehLpXq','1088590qUckdq','1282LcHnMx','join','INSERT','trim','reason','unknown\x20table(s)','toUpperCase','DELETE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','WITH','\x20with\x20parameters:\x20','test','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','type','587202aPoIJd','UPDATE','includes','startsWith','SQL\x20content\x20is\x20empty','1761qztsLL','UNKNOWN','2162470pnrnio','9fzPIGd','DDL','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','21KUHfUJ','length','1536660YqcCgI'];a103_0x4639=function(){return _0x48e5ea;};return a103_0x4639();}function extractParameters(_0x405c63){const _0xe430c8=a103_0x3f00,_0xe2d3f0=new Set();for(const _0x45f09b of _0x405c63[_0xe430c8(0x1c0)](/#\{(\w+)\}/g))if(_0x45f09b[0x1])_0xe2d3f0[_0xe430c8(0x1bd)](_0x45f09b[0x1]);for(const _0x33aad6 of _0x405c63[_0xe430c8(0x1c0)](/\$\{(\w+)\}/g))if(_0x33aad6[0x1])_0xe2d3f0[_0xe430c8(0x1bd)](_0x33aad6[0x1]);return Array['from'](_0xe2d3f0);}export function validateSql(_0x962b35){const _0x102820=a103_0x3f00,_0x2512b8=detectSqlType(_0x962b35),_0x4e3167=extractTables(_0x962b35),_0x5456ad=extractParameters(_0x962b35);if(_0x2512b8[_0x102820(0x1c2)])return{'valid':![],'sqlType':_0x2512b8,'tables':_0x4e3167,'parameters':_0x5456ad,'message':_0x2512b8[_0x102820(0x1c9)]||_0x2512b8[_0x102820(0x1ab)]+_0x102820(0x1a6)};if(_0x2512b8['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x2512b8,'tables':_0x4e3167,'parameters':_0x5456ad,'message':_0x102820(0x1b6)};return{'valid':!![],'sqlType':_0x2512b8,'tables':_0x4e3167,'parameters':_0x5456ad,'message':_0x2512b8[_0x102820(0x1ab)]+_0x102820(0x1ba)+(_0x4e3167[_0x102820(0x1b8)]?_0x4e3167[_0x102820(0x1c6)](',\x20'):_0x102820(0x1a3))+(_0x5456ad['length']?_0x102820(0x1a8)+_0x5456ad['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a102_0x30ca41=a102_0x1c26;(function(_0x431114,_0x3021a7){const _0x4dcc05=a102_0x1c26,_0x412969=_0x431114();while(!![]){try{const _0x240e36=parseInt(_0x4dcc05(0xbd))/0x1+-parseInt(_0x4dcc05(0xae))/0x2*(-parseInt(_0x4dcc05(0xb5))/0x3)+parseInt(_0x4dcc05(0xba))/0x4*(-parseInt(_0x4dcc05(0xa4))/0x5)+parseInt(_0x4dcc05(0xaf))/0x6+-parseInt(_0x4dcc05(0xb0))/0x7+parseInt(_0x4dcc05(0xa5))/0x8*(parseInt(_0x4dcc05(0xb4))/0x9)+-parseInt(_0x4dcc05(0xbc))/0xa*(parseInt(_0x4dcc05(0xa7))/0xb);if(_0x240e36===_0x3021a7)break;else _0x412969['push'](_0x412969['shift']());}catch(_0x25a41a){_0x412969['push'](_0x412969['shift']());}}}(a102_0x5e46,0xad1d6));import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a102_0x30ca41(0xc0)];[a102_0x30ca41(0xc1)];['hint'];constructor(_0x13191e,_0x1c2507,_0x39f39d,_0x43a3a1){const _0x295686=a102_0x30ca41;super(_0x39f39d),this['name']=_0x295686(0xb8),this[_0x295686(0xc0)]=_0x13191e,this[_0x295686(0xc1)]=_0x1c2507,this[_0x295686(0xb7)]=_0x43a3a1;}}export const CliErrors={'authRequired':_0xadb2b1=>new CliError('auth_required',0x1,a102_0x30ca41(0xaa),_0xadb2b1??'Run\x20`'+CLI_BIN_NAME+a102_0x30ca41(0xb6)),'configMissing':_0xb9e536=>new CliError(a102_0x30ca41(0xb2),0x1,'Configuration\x20file\x20not\x20found',_0xb9e536??[a102_0x30ca41(0xb9)+CLI_BIN_NAME+a102_0x30ca41(0xbf),'Tip:\x20`'+CLI_BIN_NAME+a102_0x30ca41(0xb3)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20')),'notInProject':()=>new CliError('not_in_project',0x1,a102_0x30ca41(0xbb)+CLI_BIN_NAME+'\x20project\x20directory',a102_0x30ca41(0xad)),'apiError':(_0x475715,_0x8d595f)=>new CliError(a102_0x30ca41(0xac),0x2,_0x475715,_0x8d595f),'networkError':_0x5442d3=>new CliError('network_error',0x2,'Network\x20error:\x20'+_0x5442d3,a102_0x30ca41(0xab)),'unknownCommand':_0x7aec31=>new CliError(a102_0x30ca41(0xa9),0x1,'Unknown\x20command:\x20'+_0x7aec31,a102_0x30ca41(0xbe)+CLI_BIN_NAME+a102_0x30ca41(0xa6)),'flagMissing':(_0x6cb1eb,_0x53fc36)=>new CliError(a102_0x30ca41(0xa8),0x1,'Missing\x20required\x20flag:\x20--'+_0x6cb1eb,_0x53fc36),'validation':(_0x545044,_0x1782e4)=>new CliError('validation_error',0x1,_0x545044,_0x1782e4),'cancelled':_0x38a2d1=>new CliError(a102_0x30ca41(0xb1),0x0,_0x38a2d1??'Operation\x20cancelled.',undefined)};function a102_0x1c26(_0x5e7f2b,_0x31509e){_0x5e7f2b=_0x5e7f2b-0xa4;const _0x5e46f4=a102_0x5e46();let _0x1c266c=_0x5e46f4[_0x5e7f2b];return _0x1c266c;}function a102_0x5e46(){const _0x5cf3c9=['1965yCLmCV','688vFTnLz','\x20--help`\x20to\x20see\x20available\x20commands.','4839406BUEpLt','flag_missing','unknown_command','Authentication\x20required','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','api_error','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','2vJSEmg','4290888DvxAml','6342161XnOqjq','cancelled','config_missing','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','88317kdFWYH','3984963caHQHb','\x20auth`\x20to\x20login\x20first.','hint','CliError','Set\x20appcode\x20via\x20`','10876zlFpFp','Not\x20in\x20a\x20','20ebQrsf','676173STZxKv','Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','code','exitCode'];a102_0x5e46=function(){return _0x5cf3c9;};return a102_0x5e46();}
1
+ function a104_0x3b66(_0x55975e,_0x451b25){_0x55975e=_0x55975e-0x9d;const _0x3ba6f8=a104_0x3ba6();let _0x3b6663=_0x3ba6f8[_0x55975e];return _0x3b6663;}const a104_0x4c4c3c=a104_0x3b66;(function(_0x2ce16f,_0x542475){const _0x55086b=a104_0x3b66,_0xb2f482=_0x2ce16f();while(!![]){try{const _0x299fd4=-parseInt(_0x55086b(0xbd))/0x1*(-parseInt(_0x55086b(0xac))/0x2)+-parseInt(_0x55086b(0xab))/0x3+-parseInt(_0x55086b(0xb2))/0x4*(-parseInt(_0x55086b(0x9d))/0x5)+parseInt(_0x55086b(0xa7))/0x6+parseInt(_0x55086b(0xa9))/0x7*(-parseInt(_0x55086b(0xba))/0x8)+parseInt(_0x55086b(0xa8))/0x9+parseInt(_0x55086b(0xa5))/0xa*(-parseInt(_0x55086b(0xa3))/0xb);if(_0x299fd4===_0x542475)break;else _0xb2f482['push'](_0xb2f482['shift']());}catch(_0x127109){_0xb2f482['push'](_0xb2f482['shift']());}}}(a104_0x3ba6,0xe552d));import{CLI_BIN_NAME}from'./constant/cli.js';function a104_0x3ba6(){const _0x2f73cb=['hint','Not\x20in\x20a\x20','329332CFNsog','Configuration\x20file\x20not\x20found','code','Tip:\x20`','Unknown\x20command:\x20','Run\x20`','Authentication\x20required','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','657848XfgpTT','config_missing','name','5560qRyIxb','exitCode','Network\x20error:\x20','5ssnoGQ','not_in_project','auth_required','Operation\x20cancelled.','\x20project\x20directory','Missing\x20required\x20flag:\x20--','11RlleVa','CliError','32710YqHcfI','flag_missing','9715350CCRPbd','438291IYUaGh','119OYPKpO','\x20auth`\x20to\x20login\x20first.','547770TbzARx','278YPhlDS','network_error','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'];a104_0x3ba6=function(){return _0x2f73cb;};return a104_0x3ba6();}export class CliError extends Error{[a104_0x4c4c3c(0xb4)];[a104_0x4c4c3c(0xbe)];['hint'];constructor(_0x527e23,_0x3f2160,_0x110f4a,_0xa6ec3a){const _0x160d0f=a104_0x4c4c3c;super(_0x110f4a),this[_0x160d0f(0xbc)]=_0x160d0f(0xa4),this[_0x160d0f(0xb4)]=_0x527e23,this[_0x160d0f(0xbe)]=_0x3f2160,this[_0x160d0f(0xb0)]=_0xa6ec3a;}}export const CliErrors={'authRequired':_0x1d226a=>new CliError(a104_0x4c4c3c(0x9f),0x1,a104_0x4c4c3c(0xb8),_0x1d226a??a104_0x4c4c3c(0xb7)+CLI_BIN_NAME+a104_0x4c4c3c(0xaa)),'configMissing':_0x4d2abe=>new CliError(a104_0x4c4c3c(0xbb),0x1,a104_0x4c4c3c(0xb3),_0x4d2abe??['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a104_0x4c4c3c(0xb9),a104_0x4c4c3c(0xb5)+CLI_BIN_NAME+a104_0x4c4c3c(0xaf)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20')),'notInProject':()=>new CliError(a104_0x4c4c3c(0x9e),0x1,a104_0x4c4c3c(0xb1)+CLI_BIN_NAME+a104_0x4c4c3c(0xa1),a104_0x4c4c3c(0xae)),'apiError':(_0x93e3ba,_0x177b84)=>new CliError('api_error',0x2,_0x93e3ba,_0x177b84),'networkError':_0xced8d0=>new CliError(a104_0x4c4c3c(0xad),0x2,a104_0x4c4c3c(0xbf)+_0xced8d0,'Check\x20your\x20internet\x20connection\x20and\x20try\x20again.'),'unknownCommand':_0x10f2f9=>new CliError('unknown_command',0x1,a104_0x4c4c3c(0xb6)+_0x10f2f9,'Run\x20`'+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.'),'flagMissing':(_0x2565e2,_0x43f447)=>new CliError(a104_0x4c4c3c(0xa6),0x1,a104_0x4c4c3c(0xa2)+_0x2565e2,_0x43f447),'validation':(_0x1c78aa,_0x367994)=>new CliError('validation_error',0x1,_0x1c78aa,_0x367994),'cancelled':_0x40c6cd=>new CliError('cancelled',0x0,_0x40c6cd??a104_0x4c4c3c(0xa0),undefined)};
@@ -1 +1 @@
1
- (function(_0x8847eb,_0x40cfe5){const _0x1b10f0=a103_0x5ef4,_0xba628c=_0x8847eb();while(!![]){try{const _0x274e47=-parseInt(_0x1b10f0(0x1e8))/0x1*(parseInt(_0x1b10f0(0x1ea))/0x2)+parseInt(_0x1b10f0(0x1d7))/0x3+-parseInt(_0x1b10f0(0x1ec))/0x4+parseInt(_0x1b10f0(0x1e9))/0x5*(-parseInt(_0x1b10f0(0x1e7))/0x6)+parseInt(_0x1b10f0(0x1eb))/0x7*(-parseInt(_0x1b10f0(0x1ed))/0x8)+parseInt(_0x1b10f0(0x1e1))/0x9+parseInt(_0x1b10f0(0x1d9))/0xa;if(_0x274e47===_0x40cfe5)break;else _0xba628c['push'](_0xba628c['shift']());}catch(_0x189a21){_0xba628c['push'](_0xba628c['shift']());}}}(a103_0x5008,0xcd78f));function a103_0x5008(){const _0xf8542e=['2022126DtAJxS','hasFormat','23796440EHDMKi','Output\x20format','boolean','pretty','compress','high-risk-write','Skip\x20confirmation\x20prompt','format','15049809VfFIou','Preview\x20the\x20operation\x20without\x20executing','risk','yes','defaultOutputFormat','push','2179680OzEPQA','277SOYmAG','10xuJnBP','8794iYuoVP','5393094JTyCQf','1595436KCMQUP','16DLPMEm'];a103_0x5008=function(){return _0xf8542e;};return a103_0x5008();}function a103_0x5ef4(_0x339c3c,_0x1a4b5c){_0x339c3c=_0x339c3c-0x1d7;const _0x5008e8=a103_0x5008();let _0x5ef4f5=_0x5008e8[_0x339c3c];return _0x5ef4f5;}export function buildAllFlags(_0x40d74c){const _0x26533d=a103_0x5ef4,_0x30db7d=[..._0x40d74c['flags']];return _0x40d74c['dryRun']&&_0x30db7d[_0x26533d(0x1e6)]({'name':'dry-run','type':'boolean','description':_0x26533d(0x1e2)}),_0x40d74c[_0x26533d(0x1d8)]!==![]&&_0x30db7d[_0x26533d(0x1e6)]({'name':_0x26533d(0x1e0),'type':'string','default':_0x40d74c[_0x26533d(0x1e5)]??'pretty','enum':['json',_0x26533d(0x1dc),_0x26533d(0x1dd)],'description':_0x26533d(0x1da)}),_0x40d74c[_0x26533d(0x1e3)]===_0x26533d(0x1de)&&_0x30db7d[_0x26533d(0x1e6)]({'name':_0x26533d(0x1e4),'type':_0x26533d(0x1db),'description':_0x26533d(0x1df)}),_0x30db7d;}
1
+ function a105_0x57f4(){const _0x321342=['3748kojCIF','1315480oZAjXm','push','dryRun','478488kDlvZG','8JhfArt','flags','8XTERiU','risk','286650jSClOE','format','boolean','1063636knLIZC','440832GelJLa','Output\x20format','dry-run','json','high-risk-write','hasFormat','8226567hhPXWg','compress','Preview\x20the\x20operation\x20without\x20executing','Skip\x20confirmation\x20prompt','pretty'];a105_0x57f4=function(){return _0x321342;};return a105_0x57f4();}(function(_0x14e6ad,_0x2ad1e9){const _0x44cc30=a105_0x5c0f,_0x4b9a31=_0x14e6ad();while(!![]){try{const _0x54e860=parseInt(_0x44cc30(0x10a))/0x1*(parseInt(_0x44cc30(0x105))/0x2)+-parseInt(_0x44cc30(0x10e))/0x3+-parseInt(_0x44cc30(0x109))/0x4+-parseInt(_0x44cc30(0x106))/0x5+-parseInt(_0x44cc30(0x112))/0x6+parseInt(_0x44cc30(0x111))/0x7*(-parseInt(_0x44cc30(0x10c))/0x8)+parseInt(_0x44cc30(0x100))/0x9;if(_0x54e860===_0x2ad1e9)break;else _0x4b9a31['push'](_0x4b9a31['shift']());}catch(_0x55716e){_0x4b9a31['push'](_0x4b9a31['shift']());}}}(a105_0x57f4,0x37057));function a105_0x5c0f(_0x5a483f,_0xc670d3){_0x5a483f=_0x5a483f-0xfb;const _0x57f402=a105_0x57f4();let _0x5c0f68=_0x57f402[_0x5a483f];return _0x5c0f68;}export function buildAllFlags(_0x2f4bb1){const _0x2df4a1=a105_0x5c0f,_0xfc09b=[..._0x2f4bb1[_0x2df4a1(0x10b)]];return _0x2f4bb1[_0x2df4a1(0x108)]&&_0xfc09b[_0x2df4a1(0x107)]({'name':_0x2df4a1(0xfc),'type':_0x2df4a1(0x110),'description':_0x2df4a1(0x102)}),_0x2f4bb1[_0x2df4a1(0xff)]!==![]&&_0xfc09b['push']({'name':_0x2df4a1(0x10f),'type':'string','default':_0x2f4bb1['defaultOutputFormat']??_0x2df4a1(0x104),'enum':[_0x2df4a1(0xfd),'pretty',_0x2df4a1(0x101)],'description':_0x2df4a1(0xfb)}),_0x2f4bb1[_0x2df4a1(0x10d)]===_0x2df4a1(0xfe)&&_0xfc09b[_0x2df4a1(0x107)]({'name':'yes','type':_0x2df4a1(0x110),'description':_0x2df4a1(0x103)}),_0xfc09b;}
@@ -1 +1 @@
1
- (function(_0x95129e,_0x42223e){const _0x32e0ab=a104_0x1a0c,_0x2b1d07=_0x95129e();while(!![]){try{const _0x550b9d=parseInt(_0x32e0ab(0x134))/0x1+parseInt(_0x32e0ab(0x129))/0x2*(parseInt(_0x32e0ab(0x121))/0x3)+parseInt(_0x32e0ab(0x132))/0x4+parseInt(_0x32e0ab(0x120))/0x5+parseInt(_0x32e0ab(0x133))/0x6+parseInt(_0x32e0ab(0x125))/0x7*(parseInt(_0x32e0ab(0x13b))/0x8)+parseInt(_0x32e0ab(0x13e))/0x9*(-parseInt(_0x32e0ab(0x12b))/0xa);if(_0x550b9d===_0x42223e)break;else _0x2b1d07['push'](_0x2b1d07['shift']());}catch(_0x3a19f7){_0x2b1d07['push'](_0x2b1d07['shift']());}}}(a104_0x3ac2,0x376d2));import{CliErrors}from'../errors.js';function a104_0x1a0c(_0x538db5,_0x47272d){_0x538db5=_0x538db5-0x11e;const _0x3ac23c=a104_0x3ac2();let _0x1a0c95=_0x3ac23c[_0x538db5];return _0x1a0c95;}export function parseFlags(_0x3e1f94,_0x5a6a4a){const _0x39709a=a104_0x1a0c,_0x443b1a={};for(const _0x4c5c47 of _0x3e1f94){const _0x2fb2e9=_0x5a6a4a[_0x4c5c47['name']]??_0x5a6a4a[toCamelCase(_0x4c5c47[_0x39709a(0x136)])];if(_0x2fb2e9===undefined||_0x2fb2e9===null){_0x4c5c47[_0x39709a(0x13a)]!==undefined&&(_0x443b1a[_0x4c5c47[_0x39709a(0x136)]]=_0x4c5c47[_0x39709a(0x13a)]);continue;}_0x443b1a[_0x4c5c47[_0x39709a(0x136)]]=coerce(_0x4c5c47,_0x2fb2e9);}for(const _0x57c7e7 of[_0x39709a(0x11f),_0x39709a(0x127),_0x39709a(0x12e),'format','jq']){const _0x4a2b3a=_0x5a6a4a[_0x57c7e7];if(_0x4a2b3a!==undefined){const _0x28797b=_0x57c7e7===_0x39709a(0x127)?_0x39709a(0x11f):_0x57c7e7;_0x443b1a[_0x28797b]=_0x4a2b3a;}}return _0x443b1a;}export function validateFlags(_0x4df141,_0x27e4e9,_0x25186c){const _0x1d0179=a104_0x1a0c;for(const _0xdc7a33 of _0x4df141){const _0x1ee769=_0x27e4e9[_0xdc7a33[_0x1d0179(0x136)]];if(_0xdc7a33[_0x1d0179(0x12c)]&&(_0x1ee769===undefined||_0x1ee769===''))throw CliErrors[_0x1d0179(0x12d)](_0xdc7a33[_0x1d0179(0x136)],'--'+_0xdc7a33[_0x1d0179(0x136)]+_0x1d0179(0x12a)+_0x25186c+'`.');if(_0xdc7a33[_0x1d0179(0x138)]&&_0xdc7a33['enum']['length']>0x0&&_0x1ee769!==undefined&&_0x1ee769!==''){if(!_0xdc7a33[_0x1d0179(0x138)][_0x1d0179(0x128)](String(_0x1ee769)))throw CliErrors[_0x1d0179(0x126)](_0x1d0179(0x13c)+_0x1ee769+_0x1d0179(0x130)+_0xdc7a33[_0x1d0179(0x136)]+'.\x20Allowed:\x20'+_0xdc7a33['enum'][_0x1d0179(0x124)](',\x20'));}if(_0xdc7a33[_0x1d0179(0x123)]&&_0x1ee769!==undefined&&_0x1ee769!==''){if(!_0xdc7a33[_0x1d0179(0x123)][_0x1d0179(0x122)][_0x1d0179(0x137)](String(_0x1ee769)))throw CliErrors['validation'](_0x1d0179(0x13d)+_0xdc7a33[_0x1d0179(0x136)]+_0x1d0179(0x139)+_0xdc7a33[_0x1d0179(0x123)]['description']+_0x1d0179(0x131)+_0x1ee769+'\x22.');}}}function a104_0x3ac2(){const _0x3cb481=['regex','pattern','join','1638238uSHOum','validation','dryRun','includes','10dQtfzz','\x20is\x20required\x20for\x20`','10kpLIud','required','flagMissing','yes','boolean','\x22\x20for\x20--',',\x20got\x20\x22','793784Xvpdyy','1442628GgyrWY','76122rOLXyy','type','name','test','enum',':\x20expected\x20','default','8KpcwEj','Invalid\x20value\x20\x22','Invalid\x20--','7591221vPEhuh','\x20expects\x20a\x20number,\x20got\x20\x22','dry-run','1176500wJuuht','51693OiARRf'];a104_0x3ac2=function(){return _0x3cb481;};return a104_0x3ac2();}function coerce(_0x621d5,_0x458765){const _0x30bd98=a104_0x1a0c;switch(_0x621d5[_0x30bd98(0x135)]){case _0x30bd98(0x12f):return _0x458765===!![]||_0x458765==='true';case'number':{const _0xd3e724=Number(_0x458765);if(isNaN(_0xd3e724))throw CliErrors[_0x30bd98(0x126)]('--'+_0x621d5[_0x30bd98(0x136)]+_0x30bd98(0x11e)+_0x458765+'\x22');return _0xd3e724;}default:return String(_0x458765);}}function toCamelCase(_0x21f63c){return _0x21f63c['replace'](/-([a-z])/g,(_0x180c85,_0x28ad7f)=>_0x28ad7f['toUpperCase']());}
1
+ (function(_0x3a0116,_0x52d221){const _0x28dabc=a106_0x4a39,_0x38eb33=_0x3a0116();while(!![]){try{const _0x3dd023=-parseInt(_0x28dabc(0x12e))/0x1*(parseInt(_0x28dabc(0x118))/0x2)+-parseInt(_0x28dabc(0x115))/0x3*(parseInt(_0x28dabc(0x127))/0x4)+parseInt(_0x28dabc(0x130))/0x5+parseInt(_0x28dabc(0x132))/0x6*(parseInt(_0x28dabc(0x134))/0x7)+-parseInt(_0x28dabc(0x133))/0x8*(parseInt(_0x28dabc(0x119))/0x9)+parseInt(_0x28dabc(0x128))/0xa+parseInt(_0x28dabc(0x11a))/0xb;if(_0x3dd023===_0x52d221)break;else _0x38eb33['push'](_0x38eb33['shift']());}catch(_0x10e8ea){_0x38eb33['push'](_0x38eb33['shift']());}}}(a106_0x19ad,0x9e92f));function a106_0x4a39(_0x4fe8fd,_0x2775d2){_0x4fe8fd=_0x4fe8fd-0x113;const _0x19ada6=a106_0x19ad();let _0x4a3967=_0x19ada6[_0x4fe8fd];return _0x4a3967;}function a106_0x19ad(){const _0x2ed4bf=['Invalid\x20--','145618hAQOyj','27vxcNKM','9463124ayaReu','\x20is\x20required\x20for\x20`','enum','dry-run','type','dryRun','test','\x22\x20for\x20--','default','join','replace','Invalid\x20value\x20\x22','length','184RwsiFb','4172070wRBiyr','description','number','.\x20Allowed:\x20','true','pattern','4UXcVWw','boolean','4235185lEDdOL','validation','6DtyFmQ','1141688gCDrMs','2287502zdIdIL','\x20expects\x20a\x20number,\x20got\x20\x22','name','includes','yes',',\x20got\x20\x22','70593AJzNyj',':\x20expected\x20'];a106_0x19ad=function(){return _0x2ed4bf;};return a106_0x19ad();}import{CliErrors}from'../errors.js';export function parseFlags(_0x489ebb,_0xa374bd){const _0x451432=a106_0x4a39,_0x293396={};for(const _0xcbe724 of _0x489ebb){const _0x48ccd7=_0xa374bd[_0xcbe724[_0x451432(0x136)]]??_0xa374bd[toCamelCase(_0xcbe724[_0x451432(0x136)])];if(_0x48ccd7===undefined||_0x48ccd7===null){_0xcbe724[_0x451432(0x122)]!==undefined&&(_0x293396[_0xcbe724[_0x451432(0x136)]]=_0xcbe724[_0x451432(0x122)]);continue;}_0x293396[_0xcbe724[_0x451432(0x136)]]=coerce(_0xcbe724,_0x48ccd7);}for(const _0x1af304 of[_0x451432(0x11d),_0x451432(0x11f),_0x451432(0x113),'format','jq']){const _0x2f79e0=_0xa374bd[_0x1af304];if(_0x2f79e0!==undefined){const _0x528f7b=_0x1af304===_0x451432(0x11f)?_0x451432(0x11d):_0x1af304;_0x293396[_0x528f7b]=_0x2f79e0;}}return _0x293396;}export function validateFlags(_0x3c4b18,_0x216d5c,_0x3e6ac2){const _0x5a1940=a106_0x4a39;for(const _0x16f5d2 of _0x3c4b18){const _0x26b114=_0x216d5c[_0x16f5d2['name']];if(_0x16f5d2['required']&&(_0x26b114===undefined||_0x26b114===''))throw CliErrors['flagMissing'](_0x16f5d2[_0x5a1940(0x136)],'--'+_0x16f5d2[_0x5a1940(0x136)]+_0x5a1940(0x11b)+_0x3e6ac2+'`.');if(_0x16f5d2[_0x5a1940(0x11c)]&&_0x16f5d2[_0x5a1940(0x11c)][_0x5a1940(0x126)]>0x0&&_0x26b114!==undefined&&_0x26b114!==''){if(!_0x16f5d2[_0x5a1940(0x11c)][_0x5a1940(0x137)](String(_0x26b114)))throw CliErrors['validation'](_0x5a1940(0x125)+_0x26b114+_0x5a1940(0x121)+_0x16f5d2[_0x5a1940(0x136)]+_0x5a1940(0x12b)+_0x16f5d2[_0x5a1940(0x11c)][_0x5a1940(0x123)](',\x20'));}if(_0x16f5d2[_0x5a1940(0x12d)]&&_0x26b114!==undefined&&_0x26b114!==''){if(!_0x16f5d2[_0x5a1940(0x12d)]['regex'][_0x5a1940(0x120)](String(_0x26b114)))throw CliErrors[_0x5a1940(0x131)](_0x5a1940(0x117)+_0x16f5d2[_0x5a1940(0x136)]+_0x5a1940(0x116)+_0x16f5d2['pattern'][_0x5a1940(0x129)]+_0x5a1940(0x114)+_0x26b114+'\x22.');}}}function coerce(_0xf89db5,_0x136ca1){const _0x2b27e1=a106_0x4a39;switch(_0xf89db5[_0x2b27e1(0x11e)]){case _0x2b27e1(0x12f):return _0x136ca1===!![]||_0x136ca1===_0x2b27e1(0x12c);case _0x2b27e1(0x12a):{const _0x1c408b=Number(_0x136ca1);if(isNaN(_0x1c408b))throw CliErrors[_0x2b27e1(0x131)]('--'+_0xf89db5['name']+_0x2b27e1(0x135)+_0x136ca1+'\x22');return _0x1c408b;}default:return String(_0x136ca1);}}function toCamelCase(_0x3df49b){const _0x2d4d88=a106_0x4a39;return _0x3df49b[_0x2d4d88(0x124)](/-([a-z])/g,(_0x1c58f7,_0x19a522)=>_0x19a522['toUpperCase']());}
@@ -1 +1 @@
1
- const a105_0x106d5d=a105_0x54df;function a105_0x2fb8(){const _0x41194f=['2040EmYNJK','\x20[global-options]\x20<service>\x20<command>\x20[flags]','\x20\x20PREREQUISITES','high-risk-write','service','get','split','hint','2MtbvRs','4896388ETGQDk','boolean','7146mZMjAb','\x20\x20Unknown\x20service:\x20','367890DXGuvz','length','\x20auth`\x20first).','Requires\x20authentication\x20(run\x20`','\x20\x20COMMANDS','\x20(required)','\x20\x20[write]','510FbPFZC','\x20\x20[high-risk-write]','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','\x20\x20FLAGS','\x20\x20RISK:\x20','hasFormat','Requires\x20appcode\x20(set\x20via\x20`','trim','number','default','commands','tag','1062039CechhB','473566WfQiCd','dryRun','47100TZSZhA','requiresAppCode','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','padEnd','isSingleCommand','7104713BEsiAm','\x20<n>','find','args','helpExtra','605JTxuEe','\x20[default:\x20','type','\x20project\x20init`\x20or\x20--appcode).','\x20\x20USAGE','risk','enum','\x20\x20\x20\x20\x20\x20','max','requiresAuth','required','\x20<service>\x20--help`\x20for\x20service\x20commands.','function','map','command','\x20[flags]','wildcardDef','label','push','\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20$\x20','name','\x20<value>','\x20\x20\x20\x20','description','join','\x20\x20ARGS','(required)','\x20\x20Run\x20`','includes'];a105_0x2fb8=function(){return _0x41194f;};return a105_0x2fb8();}(function(_0x17005e,_0x4bf996){const _0x5a5188=a105_0x54df,_0xb83b0f=_0x17005e();while(!![]){try{const _0x1f5761=-parseInt(_0x5a5188(0xb8))/0x1+parseInt(_0x5a5188(0xea))/0x2*(-parseInt(_0x5a5188(0xb7))/0x3)+parseInt(_0x5a5188(0xeb))/0x4+-parseInt(_0x5a5188(0xf6))/0x5*(parseInt(_0x5a5188(0xba))/0x6)+-parseInt(_0x5a5188(0xbf))/0x7+-parseInt(_0x5a5188(0xe2))/0x8*(-parseInt(_0x5a5188(0xed))/0x9)+-parseInt(_0x5a5188(0xef))/0xa*(-parseInt(_0x5a5188(0xc4))/0xb);if(_0x1f5761===_0x4bf996)break;else _0xb83b0f['push'](_0xb83b0f['shift']());}catch(_0x145f3b){_0xb83b0f['push'](_0xb83b0f['shift']());}}}(a105_0x2fb8,0xc4f44));function a105_0x54df(_0x56518b,_0x52659e){_0x56518b=_0x56518b-0xad;const _0x2fb83b=a105_0x2fb8();let _0x54dfd4=_0x2fb83b[_0x56518b];return _0x54dfd4;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a105_0x106d5d(0xf5),'high-risk-write':a105_0x106d5d(0xf7)};export function generateCommandHelp(_0x539e38){const _0x2c3bb1=a105_0x106d5d,_0x1f43e1=[],_0x2faf1f=_0x539e38['service']===_0x539e38[_0x2c3bb1(0xd2)]?CLI_BIN_NAME+'\x20'+_0x539e38[_0x2c3bb1(0xe6)]:CLI_BIN_NAME+'\x20'+_0x539e38['service']+'\x20'+_0x539e38['command'],_0x584f91=_0x539e38['args']?_0x539e38[_0x2c3bb1(0xc2)]['map'](_0x1705f0=>_0x1705f0['required']!==![]?'<'+_0x1705f0[_0x2c3bb1(0xd9)]+'>':'['+_0x1705f0[_0x2c3bb1(0xd9)]+']')[_0x2c3bb1(0xdd)]('\x20'):'',_0x173269=_0x584f91?_0x2faf1f+'\x20'+_0x584f91+'\x20[flags]':_0x2faf1f+_0x2c3bb1(0xd3);_0x1f43e1[_0x2c3bb1(0xd6)](''),_0x1f43e1['push']('\x20\x20'+_0x539e38[_0x2c3bb1(0xdc)]),_0x1f43e1[_0x2c3bb1(0xd6)](''),_0x1f43e1[_0x2c3bb1(0xd6)](_0x2c3bb1(0xc8)),_0x1f43e1['push']('\x20\x20\x20\x20'+_0x173269),_0x1f43e1[_0x2c3bb1(0xd6)](''),_0x1f43e1[_0x2c3bb1(0xd6)](_0x2c3bb1(0xaf)+_0x539e38[_0x2c3bb1(0xc9)]);_0x539e38[_0x2c3bb1(0xc9)]===_0x2c3bb1(0xe5)&&_0x1f43e1[_0x2c3bb1(0xd6)](_0x2c3bb1(0xbc));_0x1f43e1[_0x2c3bb1(0xd6)]('');if(_0x539e38[_0x2c3bb1(0xc2)]&&_0x539e38[_0x2c3bb1(0xc2)][_0x2c3bb1(0xf0)]>0x0){_0x1f43e1[_0x2c3bb1(0xd6)](_0x2c3bb1(0xde));const _0x5e8e1d=Math[_0x2c3bb1(0xcc)](..._0x539e38[_0x2c3bb1(0xc2)]['map'](_0xafdcf3=>_0xafdcf3['name'][_0x2c3bb1(0xf0)]+0x2));for(const _0xe356f3 of _0x539e38[_0x2c3bb1(0xc2)]){const _0x16a8d1=('<'+_0xe356f3['name']+'>')[_0x2c3bb1(0xbd)](_0x5e8e1d+0x2),_0x5aeed6=_0xe356f3[_0x2c3bb1(0xce)]!==![]?_0x2c3bb1(0xf4):'';_0x1f43e1[_0x2c3bb1(0xd6)]('\x20\x20\x20\x20'+_0x16a8d1+_0xe356f3['description']+_0x5aeed6);}_0x1f43e1['push']('');}if(_0x539e38['flags'][_0x2c3bb1(0xf0)]>0x0||_0x539e38[_0x2c3bb1(0xb9)]||_0x539e38[_0x2c3bb1(0xb0)]!==![]){_0x1f43e1[_0x2c3bb1(0xd6)](_0x2c3bb1(0xae));const _0x2bb6c2=buildAllFlags(_0x539e38),_0x51ec6a=Math[_0x2c3bb1(0xcc)](..._0x2bb6c2[_0x2c3bb1(0xd1)](_0x1ddc7f=>formatFlagName(_0x1ddc7f)[_0x2c3bb1(0xf0)]));for(const _0x3663f1 of _0x2bb6c2){_0x1f43e1[_0x2c3bb1(0xd6)]('\x20\x20\x20\x20'+formatFlagName(_0x3663f1)[_0x2c3bb1(0xbd)](_0x51ec6a+0x2)+renderFlagDesc(_0x3663f1));}_0x1f43e1[_0x2c3bb1(0xd6)]('');}const _0x3b8210=[];_0x539e38[_0x2c3bb1(0xcd)]!==![]&&_0x3b8210[_0x2c3bb1(0xd6)](_0x2c3bb1(0xf2)+CLI_BIN_NAME+_0x2c3bb1(0xf1));_0x539e38[_0x2c3bb1(0xbb)]!==![]&&_0x3b8210[_0x2c3bb1(0xd6)](_0x2c3bb1(0xb1)+CLI_BIN_NAME+_0x2c3bb1(0xc7));if(_0x3b8210[_0x2c3bb1(0xf0)]>0x0){_0x1f43e1[_0x2c3bb1(0xd6)](_0x2c3bb1(0xe4));for(const _0x3fa2f3 of _0x3b8210){_0x1f43e1[_0x2c3bb1(0xd6)]('\x20\x20\x20\x20•\x20'+_0x3fa2f3);}_0x1f43e1[_0x2c3bb1(0xd6)]('');}if(_0x539e38[_0x2c3bb1(0xc3)]){const _0x4b8438=typeof _0x539e38[_0x2c3bb1(0xc3)]===_0x2c3bb1(0xd0)?_0x539e38['helpExtra']():_0x539e38[_0x2c3bb1(0xc3)];_0x1f43e1['push'](_0x4b8438),_0x1f43e1[_0x2c3bb1(0xd6)]('');}return _0x1f43e1[_0x2c3bb1(0xdd)]('\x0a');}export function generateServiceHelp(_0x4e5d87){const _0x23852f=a105_0x106d5d,_0x4d1ea5=getServiceEntry(_0x4e5d87);if(!_0x4d1ea5)return _0x23852f(0xee)+_0x4e5d87+'\x0a';const _0x408908=[],_0x1ae093=serviceGroups[_0x23852f(0xe7)](_0x4e5d87);_0x408908[_0x23852f(0xd6)](''),_0x408908['push']('\x20\x20'+_0x4d1ea5[_0x23852f(0xd5)]),_0x408908['push'](''),_0x408908[_0x23852f(0xd6)](_0x23852f(0xc8)),_0x408908[_0x23852f(0xd6)](_0x23852f(0xdb)+CLI_BIN_NAME+'\x20'+_0x4e5d87+'\x20<command>\x20[args]\x20[flags]'),_0x408908['push'](''),_0x408908[_0x23852f(0xd6)]('\x20\x20COMMANDS');for(const _0x559c6 of _0x4d1ea5[_0x23852f(0xb5)]){_0x408908['push']('');const _0x297e23=_0x559c6['tag']?'\x20\x20'+_0x559c6[_0x23852f(0xb6)][_0x23852f(0xb2)]():'';_0x408908['push'](_0x23852f(0xdb)+_0x559c6[_0x23852f(0xd2)]+_0x297e23),_0x408908[_0x23852f(0xd6)](_0x23852f(0xcb)+_0x559c6[_0x23852f(0xdc)]);const _0xf92812=_0x1ae093?.[_0x23852f(0xc1)](_0x1f27ee=>_0x1f27ee['command']===_0x559c6['command']);if(_0xf92812?.[_0x23852f(0xc2)]&&_0xf92812['args'][_0x23852f(0xf0)]>0x0){_0x408908[_0x23852f(0xd6)]('\x20\x20\x20\x20\x20\x20ARGS');const _0x3f87bf=Math[_0x23852f(0xcc)](..._0xf92812[_0x23852f(0xc2)][_0x23852f(0xd1)](_0x393e62=>_0x393e62['name']['length']+0x2));for(const _0x111c53 of _0xf92812['args']){const _0x2200d9=('<'+_0x111c53['name']+'>')[_0x23852f(0xbd)](_0x3f87bf+0x2),_0x110027=_0x111c53[_0x23852f(0xce)]!==![]?_0x23852f(0xf4):'';_0x408908[_0x23852f(0xd6)](_0x23852f(0xd7)+_0x2200d9+_0x111c53[_0x23852f(0xdc)]+_0x110027);}}const _0x298127=getCommandFlags(_0x4e5d87,_0x559c6[_0x23852f(0xd2)],_0x1ae093);if(_0x298127['length']>0x0){const _0x2e97fd=Math[_0x23852f(0xcc)](..._0x298127['map'](_0x3d009f=>formatFlagName(_0x3d009f)[_0x23852f(0xf0)]));for(const _0x33e66a of _0x298127){_0x408908[_0x23852f(0xd6)]('\x20\x20\x20\x20\x20\x20'+formatFlagName(_0x33e66a)[_0x23852f(0xbd)](_0x2e97fd+0x2)+renderFlagDesc(_0x33e66a));}}}return _0x408908[_0x23852f(0xd6)](''),_0x408908[_0x23852f(0xdd)]('\x0a');}export function generateFullHelp(){const _0x174150=a105_0x106d5d,_0x166f2c=[];_0x166f2c['push'](''),_0x166f2c[_0x174150(0xd6)]('\x20\x20'+CLI_DISPLAY_NAME),_0x166f2c[_0x174150(0xd6)](''),_0x166f2c['push'](_0x174150(0xc8)),_0x166f2c['push'](_0x174150(0xd8)+CLI_BIN_NAME+_0x174150(0xe3)),_0x166f2c[_0x174150(0xd6)](''),_0x166f2c[_0x174150(0xd6)]('\x20\x20GLOBAL\x20OPTIONS');const _0x1b2063=GLOBAL_FLAGS['filter'](_0x58fced=>!_0x58fced['hidden']),_0x2f8d73=Math['max'](..._0x1b2063[_0x174150(0xd1)](_0x3e095a=>{const _0x1cd66b=_0x174150,_0x5cfd59=_0x3e095a[_0x1cd66b(0xe9)]?'\x20'+_0x3e095a[_0x1cd66b(0xe9)]:'';return('--'+_0x3e095a[_0x1cd66b(0xd9)]+_0x5cfd59)[_0x1cd66b(0xf0)];}));for(const _0x8cce8d of _0x1b2063){const _0x4128be=_0x8cce8d[_0x174150(0xe9)]?'\x20'+_0x8cce8d[_0x174150(0xe9)]:'',_0x300d14=('--'+_0x8cce8d['name']+_0x4128be)[_0x174150(0xbd)](_0x2f8d73+0x2);_0x166f2c[_0x174150(0xd6)](_0x174150(0xdb)+_0x300d14+_0x8cce8d[_0x174150(0xdc)]);}_0x166f2c['push'](''),_0x166f2c['push'](_0x174150(0xf3)),_0x166f2c[_0x174150(0xd6)]('');for(const _0x37ada2 of serviceRegistry){_0x166f2c['push']('\x20\x20'+_0x37ada2[_0x174150(0xd5)]);if(_0x37ada2[_0x174150(0xbe)]){const _0x38df53=_0x37ada2['commands'][0x0],_0x22ceac=_0x38df53[_0x174150(0xb6)]??'';_0x166f2c[_0x174150(0xd6)](_0x174150(0xdb)+_0x37ada2[_0x174150(0xe6)]['padEnd'](0x12)+_0x38df53['description']+_0x22ceac);}else{const _0x27c05f=_0x37ada2[_0x174150(0xb5)][_0x174150(0xd1)](_0x88321e=>_0x37ada2['service']+'\x20'+_0x88321e['command']),_0xf22575=Math['max'](..._0x27c05f['map'](_0x49b920=>_0x49b920[_0x174150(0xf0)]));for(let _0x2f2817=0x0;_0x2f2817<_0x37ada2[_0x174150(0xb5)]['length'];_0x2f2817++){const _0x407253=_0x37ada2['commands'][_0x2f2817],_0x342d57=_0x407253[_0x174150(0xb6)]??'';_0x166f2c['push'](_0x174150(0xdb)+_0x27c05f[_0x2f2817][_0x174150(0xbd)](_0xf22575+0x2)+_0x407253[_0x174150(0xdc)]+_0x342d57);}}if(_0x37ada2[_0x174150(0xd4)]?.[_0x174150(0xc3)]){const _0x94331b=typeof _0x37ada2[_0x174150(0xd4)]['helpExtra']===_0x174150(0xd0)?_0x37ada2['wildcardDef']['helpExtra']():_0x37ada2[_0x174150(0xd4)][_0x174150(0xc3)];for(const _0x574630 of _0x94331b[_0x174150(0xe8)]('\x0a')){_0x166f2c[_0x174150(0xd6)]('\x20\x20'+_0x574630);}}_0x166f2c['push']('');}return _0x166f2c['push'](_0x174150(0xe0)+CLI_BIN_NAME+_0x174150(0xcf)),_0x166f2c[_0x174150(0xd6)](_0x174150(0xe0)+CLI_BIN_NAME+_0x174150(0xad)),_0x166f2c[_0x174150(0xd6)](''),_0x166f2c['join']('\x0a');}function getCommandFlags(_0x4bd657,_0x2e33f8,_0x3218dc){const _0x58dd38=a105_0x106d5d;if(_0x3218dc){const _0x11c8fc=_0x3218dc['find'](_0x19346a=>_0x19346a[_0x58dd38(0xd2)]===_0x2e33f8);if(_0x11c8fc)return buildAllFlags(_0x11c8fc);}return[];}function renderFlagDesc(_0x3e2e22){const _0x35d6d1=a105_0x106d5d;let _0xdbe5b6=_0x3e2e22[_0x35d6d1(0xdc)];return _0x3e2e22[_0x35d6d1(0xca)]&&_0x3e2e22[_0x35d6d1(0xca)][_0x35d6d1(0xf0)]>0x0&&(_0xdbe5b6+='\x20('+_0x3e2e22[_0x35d6d1(0xca)][_0x35d6d1(0xdd)]('\x20|\x20')+')'),_0x3e2e22[_0x35d6d1(0xb4)]!==undefined&&_0x3e2e22[_0x35d6d1(0xb4)]!==''&&_0x3e2e22[_0x35d6d1(0xb4)]!==![]&&(_0xdbe5b6+=_0x35d6d1(0xc5)+_0x3e2e22[_0x35d6d1(0xb4)]+']'),_0x3e2e22[_0x35d6d1(0xce)]&&!_0xdbe5b6[_0x35d6d1(0xe1)](_0x35d6d1(0xdf))&&(_0xdbe5b6+='\x20(required)'),_0xdbe5b6;}function formatFlagName(_0x2bdb84){const _0x137876=a105_0x106d5d,_0x53770a=_0x2bdb84[_0x137876(0xc6)]===_0x137876(0xec)?'':_0x2bdb84[_0x137876(0xc6)]===_0x137876(0xb3)?_0x137876(0xc0):_0x137876(0xda);return'--'+_0x2bdb84[_0x137876(0xd9)]+_0x53770a;}
1
+ const a107_0x3b6eef=a107_0x5420;(function(_0x2932db,_0xc6618c){const _0x41c8a2=a107_0x5420,_0x4a0843=_0x2932db();while(!![]){try{const _0x76a7d0=-parseInt(_0x41c8a2(0xce))/0x1+parseInt(_0x41c8a2(0xbf))/0x2*(-parseInt(_0x41c8a2(0xbc))/0x3)+-parseInt(_0x41c8a2(0xe5))/0x4+-parseInt(_0x41c8a2(0xc9))/0x5+-parseInt(_0x41c8a2(0xe4))/0x6+parseInt(_0x41c8a2(0xc1))/0x7+parseInt(_0x41c8a2(0xde))/0x8*(parseInt(_0x41c8a2(0xda))/0x9);if(_0x76a7d0===_0xc6618c)break;else _0x4a0843['push'](_0x4a0843['shift']());}catch(_0x834cf6){_0x4a0843['push'](_0x4a0843['shift']());}}}(a107_0x1c6b,0xd3cfb));function a107_0x1c6b(){const _0x84e0ed=['description','boolean','requiresAuth','args','get','tag','\x20\x20ARGS','padEnd','1844145XdtTnh','\x20\x20\x20\x20•\x20','\x20\x20RISK:\x20','function','176lmPzYh','max','includes','Requires\x20authentication\x20(run\x20`','find','helpExtra','9037866zyDIwl','3129076cHNkTb','type','isSingleCommand','default','command','service','filter','\x20\x20\x20\x20\x20\x20','wildcardDef','\x20\x20\x20\x20\x20\x20ARGS','\x20\x20COMMANDS','dryRun','map','\x20\x20\x20\x20$\x20','\x20\x20[write]','label','\x20|\x20','number','\x20[flags]','push','\x20\x20\x20\x20','\x20<n>','\x20[global-options]\x20<service>\x20<command>\x20[flags]','join','enum','\x20\x20Run\x20`','\x20\x20FLAGS','(required)','high-risk-write','\x20(required)','1798494nNWUSf','required','commands','4lDzmbt','\x20<command>\x20[args]\x20[flags]','11932235gipuqd','Requires\x20appcode\x20(set\x20via\x20`','length','hint','\x20\x20GLOBAL\x20OPTIONS','\x20\x20USAGE','\x20[default:\x20','trim','1435315VflMvP','\x20<service>\x20--help`\x20for\x20service\x20commands.','hasFormat','\x20\x20Unknown\x20service:\x20','name','1570297urkSqh','requiresAppCode','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','hidden'];a107_0x1c6b=function(){return _0x84e0ed;};return a107_0x1c6b();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a107_0x3b6eef(0xac),'high-risk-write':'\x20\x20[high-risk-write]'};export function generateCommandHelp(_0x2893f7){const _0x3790ad=a107_0x3b6eef,_0x2dc1b2=[],_0x3b0fd5=_0x2893f7[_0x3790ad(0xa3)]===_0x2893f7['command']?CLI_BIN_NAME+'\x20'+_0x2893f7[_0x3790ad(0xa3)]:CLI_BIN_NAME+'\x20'+_0x2893f7[_0x3790ad(0xa3)]+'\x20'+_0x2893f7[_0x3790ad(0xa2)],_0x1d8dd7=_0x2893f7[_0x3790ad(0xd5)]?_0x2893f7[_0x3790ad(0xd5)][_0x3790ad(0xaa)](_0x4ea27b=>_0x4ea27b['required']!==![]?'<'+_0x4ea27b[_0x3790ad(0xcd)]+'>':'['+_0x4ea27b[_0x3790ad(0xcd)]+']')[_0x3790ad(0xb5)]('\x20'):'',_0x58d8a6=_0x1d8dd7?_0x3b0fd5+'\x20'+_0x1d8dd7+_0x3790ad(0xb0):_0x3b0fd5+_0x3790ad(0xb0);_0x2dc1b2[_0x3790ad(0xb1)](''),_0x2dc1b2[_0x3790ad(0xb1)]('\x20\x20'+_0x2893f7['description']),_0x2dc1b2[_0x3790ad(0xb1)](''),_0x2dc1b2[_0x3790ad(0xb1)]('\x20\x20USAGE'),_0x2dc1b2[_0x3790ad(0xb1)](_0x3790ad(0xb2)+_0x58d8a6),_0x2dc1b2[_0x3790ad(0xb1)](''),_0x2dc1b2['push'](_0x3790ad(0xdc)+_0x2893f7['risk']);_0x2893f7['risk']===_0x3790ad(0xba)&&_0x2dc1b2[_0x3790ad(0xb1)]('\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.');_0x2dc1b2[_0x3790ad(0xb1)]('');if(_0x2893f7[_0x3790ad(0xd5)]&&_0x2893f7[_0x3790ad(0xd5)][_0x3790ad(0xc3)]>0x0){_0x2dc1b2[_0x3790ad(0xb1)](_0x3790ad(0xd8));const _0x42f316=Math[_0x3790ad(0xdf)](..._0x2893f7[_0x3790ad(0xd5)][_0x3790ad(0xaa)](_0x2369ab=>_0x2369ab[_0x3790ad(0xcd)]['length']+0x2));for(const _0x2df9e2 of _0x2893f7[_0x3790ad(0xd5)]){const _0x4e66b3=('<'+_0x2df9e2[_0x3790ad(0xcd)]+'>')['padEnd'](_0x42f316+0x2),_0x22fefa=_0x2df9e2[_0x3790ad(0xbd)]!==![]?'\x20(required)':'';_0x2dc1b2['push']('\x20\x20\x20\x20'+_0x4e66b3+_0x2df9e2[_0x3790ad(0xd2)]+_0x22fefa);}_0x2dc1b2['push']('');}if(_0x2893f7['flags'][_0x3790ad(0xc3)]>0x0||_0x2893f7[_0x3790ad(0xa9)]||_0x2893f7[_0x3790ad(0xcb)]!==![]){_0x2dc1b2['push'](_0x3790ad(0xb8));const _0x55ffb0=buildAllFlags(_0x2893f7),_0x2f7556=Math[_0x3790ad(0xdf)](..._0x55ffb0['map'](_0x4992b0=>formatFlagName(_0x4992b0)['length']));for(const _0x1d4c70 of _0x55ffb0){_0x2dc1b2['push']('\x20\x20\x20\x20'+formatFlagName(_0x1d4c70)[_0x3790ad(0xd9)](_0x2f7556+0x2)+renderFlagDesc(_0x1d4c70));}_0x2dc1b2[_0x3790ad(0xb1)]('');}const _0x3976df=[];_0x2893f7[_0x3790ad(0xd4)]!==![]&&_0x3976df['push'](_0x3790ad(0xe1)+CLI_BIN_NAME+'\x20auth`\x20first).');_0x2893f7[_0x3790ad(0xcf)]!==![]&&_0x3976df[_0x3790ad(0xb1)](_0x3790ad(0xc2)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).');if(_0x3976df[_0x3790ad(0xc3)]>0x0){_0x2dc1b2[_0x3790ad(0xb1)]('\x20\x20PREREQUISITES');for(const _0x295274 of _0x3976df){_0x2dc1b2[_0x3790ad(0xb1)](_0x3790ad(0xdb)+_0x295274);}_0x2dc1b2[_0x3790ad(0xb1)]('');}if(_0x2893f7[_0x3790ad(0xe3)]){const _0x54ec6b=typeof _0x2893f7[_0x3790ad(0xe3)]===_0x3790ad(0xdd)?_0x2893f7['helpExtra']():_0x2893f7[_0x3790ad(0xe3)];_0x2dc1b2[_0x3790ad(0xb1)](_0x54ec6b),_0x2dc1b2[_0x3790ad(0xb1)]('');}return _0x2dc1b2['join']('\x0a');}export function generateServiceHelp(_0x4612ed){const _0x163d35=a107_0x3b6eef,_0x10b085=getServiceEntry(_0x4612ed);if(!_0x10b085)return _0x163d35(0xcc)+_0x4612ed+'\x0a';const _0x2685af=[],_0x506703=serviceGroups[_0x163d35(0xd6)](_0x4612ed);_0x2685af['push'](''),_0x2685af[_0x163d35(0xb1)]('\x20\x20'+_0x10b085[_0x163d35(0xad)]),_0x2685af[_0x163d35(0xb1)](''),_0x2685af['push'](_0x163d35(0xc6)),_0x2685af[_0x163d35(0xb1)](_0x163d35(0xb2)+CLI_BIN_NAME+'\x20'+_0x4612ed+_0x163d35(0xc0)),_0x2685af[_0x163d35(0xb1)](''),_0x2685af[_0x163d35(0xb1)](_0x163d35(0xa8));for(const _0x5144ac of _0x10b085[_0x163d35(0xbe)]){_0x2685af['push']('');const _0x176b4c=_0x5144ac[_0x163d35(0xd7)]?'\x20\x20'+_0x5144ac[_0x163d35(0xd7)][_0x163d35(0xc8)]():'';_0x2685af[_0x163d35(0xb1)](_0x163d35(0xb2)+_0x5144ac[_0x163d35(0xa2)]+_0x176b4c),_0x2685af[_0x163d35(0xb1)](_0x163d35(0xa5)+_0x5144ac['description']);const _0x59a3d4=_0x506703?.[_0x163d35(0xe2)](_0x5917de=>_0x5917de['command']===_0x5144ac[_0x163d35(0xa2)]);if(_0x59a3d4?.['args']&&_0x59a3d4[_0x163d35(0xd5)][_0x163d35(0xc3)]>0x0){_0x2685af['push'](_0x163d35(0xa7));const _0x44f775=Math[_0x163d35(0xdf)](..._0x59a3d4[_0x163d35(0xd5)][_0x163d35(0xaa)](_0x224b3a=>_0x224b3a['name'][_0x163d35(0xc3)]+0x2));for(const _0x4beb38 of _0x59a3d4[_0x163d35(0xd5)]){const _0x3ee300=('<'+_0x4beb38[_0x163d35(0xcd)]+'>')['padEnd'](_0x44f775+0x2),_0x3d32b5=_0x4beb38[_0x163d35(0xbd)]!==![]?_0x163d35(0xbb):'';_0x2685af[_0x163d35(0xb1)]('\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ee300+_0x4beb38[_0x163d35(0xd2)]+_0x3d32b5);}}const _0x4a4be8=getCommandFlags(_0x4612ed,_0x5144ac[_0x163d35(0xa2)],_0x506703);if(_0x4a4be8[_0x163d35(0xc3)]>0x0){const _0x2a58e5=Math['max'](..._0x4a4be8['map'](_0x12e505=>formatFlagName(_0x12e505)[_0x163d35(0xc3)]));for(const _0x5d1927 of _0x4a4be8){_0x2685af[_0x163d35(0xb1)](_0x163d35(0xa5)+formatFlagName(_0x5d1927)['padEnd'](_0x2a58e5+0x2)+renderFlagDesc(_0x5d1927));}}}return _0x2685af[_0x163d35(0xb1)](''),_0x2685af[_0x163d35(0xb5)]('\x0a');}export function generateFullHelp(){const _0x425949=a107_0x3b6eef,_0x481920=[];_0x481920['push'](''),_0x481920[_0x425949(0xb1)]('\x20\x20'+CLI_DISPLAY_NAME),_0x481920[_0x425949(0xb1)](''),_0x481920['push']('\x20\x20USAGE'),_0x481920['push'](_0x425949(0xab)+CLI_BIN_NAME+_0x425949(0xb4)),_0x481920[_0x425949(0xb1)](''),_0x481920[_0x425949(0xb1)](_0x425949(0xc5));const _0x1daa9f=GLOBAL_FLAGS[_0x425949(0xa4)](_0x5aca75=>!_0x5aca75[_0x425949(0xd1)]),_0x1ab4bb=Math[_0x425949(0xdf)](..._0x1daa9f[_0x425949(0xaa)](_0x5a5c0e=>{const _0x1dd4b7=_0x425949,_0x4c414c=_0x5a5c0e['hint']?'\x20'+_0x5a5c0e[_0x1dd4b7(0xc4)]:'';return('--'+_0x5a5c0e['name']+_0x4c414c)['length'];}));for(const _0x5e0222 of _0x1daa9f){const _0x23de38=_0x5e0222[_0x425949(0xc4)]?'\x20'+_0x5e0222[_0x425949(0xc4)]:'',_0x24f295=('--'+_0x5e0222[_0x425949(0xcd)]+_0x23de38)[_0x425949(0xd9)](_0x1ab4bb+0x2);_0x481920[_0x425949(0xb1)](_0x425949(0xb2)+_0x24f295+_0x5e0222['description']);}_0x481920['push'](''),_0x481920[_0x425949(0xb1)](_0x425949(0xa8)),_0x481920[_0x425949(0xb1)]('');for(const _0x44c993 of serviceRegistry){_0x481920[_0x425949(0xb1)]('\x20\x20'+_0x44c993[_0x425949(0xad)]);if(_0x44c993[_0x425949(0xe7)]){const _0x4e1fcd=_0x44c993['commands'][0x0],_0x5877fd=_0x4e1fcd['tag']??'';_0x481920[_0x425949(0xb1)](_0x425949(0xb2)+_0x44c993[_0x425949(0xa3)]['padEnd'](0x12)+_0x4e1fcd[_0x425949(0xd2)]+_0x5877fd);}else{const _0x203b71=_0x44c993[_0x425949(0xbe)][_0x425949(0xaa)](_0x482119=>_0x44c993[_0x425949(0xa3)]+'\x20'+_0x482119[_0x425949(0xa2)]),_0x36a48a=Math['max'](..._0x203b71[_0x425949(0xaa)](_0x133711=>_0x133711[_0x425949(0xc3)]));for(let _0x4d5a17=0x0;_0x4d5a17<_0x44c993['commands'][_0x425949(0xc3)];_0x4d5a17++){const _0x6a82cb=_0x44c993[_0x425949(0xbe)][_0x4d5a17],_0x2c9be7=_0x6a82cb[_0x425949(0xd7)]??'';_0x481920[_0x425949(0xb1)](_0x425949(0xb2)+_0x203b71[_0x4d5a17][_0x425949(0xd9)](_0x36a48a+0x2)+_0x6a82cb[_0x425949(0xd2)]+_0x2c9be7);}}if(_0x44c993[_0x425949(0xa6)]?.[_0x425949(0xe3)]){const _0x41449d=typeof _0x44c993[_0x425949(0xa6)]['helpExtra']===_0x425949(0xdd)?_0x44c993[_0x425949(0xa6)][_0x425949(0xe3)]():_0x44c993[_0x425949(0xa6)][_0x425949(0xe3)];for(const _0x377ea7 of _0x41449d['split']('\x0a')){_0x481920[_0x425949(0xb1)]('\x20\x20'+_0x377ea7);}}_0x481920[_0x425949(0xb1)]('');}return _0x481920['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+_0x425949(0xca)),_0x481920[_0x425949(0xb1)](_0x425949(0xb7)+CLI_BIN_NAME+_0x425949(0xd0)),_0x481920[_0x425949(0xb1)](''),_0x481920[_0x425949(0xb5)]('\x0a');}function getCommandFlags(_0x499676,_0x41035a,_0x188e0a){const _0x45dc2c=a107_0x3b6eef;if(_0x188e0a){const _0x2abd00=_0x188e0a[_0x45dc2c(0xe2)](_0x5a2f99=>_0x5a2f99[_0x45dc2c(0xa2)]===_0x41035a);if(_0x2abd00)return buildAllFlags(_0x2abd00);}return[];}function a107_0x5420(_0x546124,_0x3bdee0){_0x546124=_0x546124-0xa2;const _0x1c6b6c=a107_0x1c6b();let _0x542059=_0x1c6b6c[_0x546124];return _0x542059;}function renderFlagDesc(_0x5cd265){const _0x47e0ba=a107_0x3b6eef;let _0xfac806=_0x5cd265[_0x47e0ba(0xd2)];return _0x5cd265[_0x47e0ba(0xb6)]&&_0x5cd265[_0x47e0ba(0xb6)][_0x47e0ba(0xc3)]>0x0&&(_0xfac806+='\x20('+_0x5cd265[_0x47e0ba(0xb6)][_0x47e0ba(0xb5)](_0x47e0ba(0xae))+')'),_0x5cd265['default']!==undefined&&_0x5cd265['default']!==''&&_0x5cd265['default']!==![]&&(_0xfac806+=_0x47e0ba(0xc7)+_0x5cd265[_0x47e0ba(0xe8)]+']'),_0x5cd265[_0x47e0ba(0xbd)]&&!_0xfac806[_0x47e0ba(0xe0)](_0x47e0ba(0xb9))&&(_0xfac806+=_0x47e0ba(0xbb)),_0xfac806;}function formatFlagName(_0x27991f){const _0x16f326=a107_0x3b6eef,_0x34fa39=_0x27991f[_0x16f326(0xe6)]===_0x16f326(0xd3)?'':_0x27991f[_0x16f326(0xe6)]===_0x16f326(0xaf)?_0x16f326(0xb3):'\x20<value>';return'--'+_0x27991f[_0x16f326(0xcd)]+_0x34fa39;}
@@ -1 +1 @@
1
- function a106_0x3c61(){var _0x25d695=['9EnajPX','26eDZLpv','1294950AIRVzh','609903OnHplq','118676MfcLGP','18xaoHCM','44088tIPEPp','1658706WXJtWg','2189TfFZwn','8tRXPRd','117875uiRJzh','12701iLaZWB'];a106_0x3c61=function(){return _0x25d695;};return a106_0x3c61();}function a106_0x5dcf(_0x44acdc,_0xa4bdaa){_0x44acdc=_0x44acdc-0x9a;var _0x3c613b=a106_0x3c61();var _0x5dcf9a=_0x3c613b[_0x44acdc];return _0x5dcf9a;}(function(_0x13eb2a,_0xee14bc){var _0xf975e4=a106_0x5dcf,_0x5c8717=_0x13eb2a();while(!![]){try{var _0x48313c=-parseInt(_0xf975e4(0xa4))/0x1*(parseInt(_0xf975e4(0x9a))/0x2)+-parseInt(_0xf975e4(0xa5))/0x3*(-parseInt(_0xf975e4(0x9d))/0x4)+parseInt(_0xf975e4(0xa3))/0x5*(-parseInt(_0xf975e4(0x9e))/0x6)+parseInt(_0xf975e4(0xa0))/0x7*(-parseInt(_0xf975e4(0xa2))/0x8)+-parseInt(_0xf975e4(0x9c))/0x9+-parseInt(_0xf975e4(0x9b))/0xa+parseInt(_0xf975e4(0xa1))/0xb*(parseInt(_0xf975e4(0x9f))/0xc);if(_0x48313c===_0xee14bc)break;else _0x5c8717['push'](_0x5c8717['shift']());}catch(_0x1b8fab){_0x5c8717['push'](_0x5c8717['shift']());}}}(a106_0x3c61,0x24a3b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x3ce4da,_0x24c26c){var _0x302de3=a108_0x1c2b,_0x31800b=_0x3ce4da();while(!![]){try{var _0x330847=parseInt(_0x302de3(0x1ce))/0x1+-parseInt(_0x302de3(0x1c9))/0x2+parseInt(_0x302de3(0x1cc))/0x3+-parseInt(_0x302de3(0x1cb))/0x4*(parseInt(_0x302de3(0x1cd))/0x5)+-parseInt(_0x302de3(0x1cf))/0x6*(parseInt(_0x302de3(0x1ca))/0x7)+parseInt(_0x302de3(0x1d1))/0x8+parseInt(_0x302de3(0x1d0))/0x9;if(_0x330847===_0x24c26c)break;else _0x31800b['push'](_0x31800b['shift']());}catch(_0x23124a){_0x31800b['push'](_0x31800b['shift']());}}}(a108_0x13f4,0x8532c));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a108_0x13f4(){var _0x54104d=['2105304uBFcka','604692qruwUV','77JhisyY','1712hzxQeK','1467228bdlAne','1095JDKcEC','655393qmppWz','464256srooNA','3466458ZOIYZY'];a108_0x13f4=function(){return _0x54104d;};return a108_0x13f4();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a108_0x1c2b(_0x43d3e4,_0x55dc7c){_0x43d3e4=_0x43d3e4-0x1c9;var _0x13f441=a108_0x13f4();var _0x1c2ba4=_0x13f441[_0x43d3e4];return _0x1c2ba4;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x51677f,_0xd62dad){const _0x591b61=a107_0x46ab,_0x18be39=_0x51677f();while(!![]){try{const _0x39be19=parseInt(_0x591b61(0x15f))/0x1+-parseInt(_0x591b61(0x176))/0x2+parseInt(_0x591b61(0x166))/0x3+parseInt(_0x591b61(0x16c))/0x4+parseInt(_0x591b61(0x188))/0x5+parseInt(_0x591b61(0x175))/0x6+-parseInt(_0x591b61(0x17e))/0x7*(parseInt(_0x591b61(0x18c))/0x8);if(_0x39be19===_0xd62dad)break;else _0x18be39['push'](_0x18be39['shift']());}catch(_0x6eb05d){_0x18be39['push'](_0x18be39['shift']());}}}(a107_0x2939,0x35d3e));import{applyJqFilter}from'../utils/apply-jq-filter.js';function a107_0x2939(){const _0x1529a9=['62650GdzwQL','risk','isArray','items','log','entries','stringify','dryRun','pretty','stdout','722120sMuNqj','keys','error','max','472PwOJjp','\x20items:\x0a','64817xtoczA','\x20(default\x20from\x20global\x20file)','trim','projectPath','(empty)','length','Found\x20','137772tpILoE','global','Error:\x20','command_error','message','globalPath','1468416CeicBF','\x20\x20Global\x20config:\x20\x20\x20','defaultApp','(none)','data','meta','\x20\x20Project\x20config:\x20\x20','\x20(default\x20from\x20project\x20file)','write','1880298vlMNsj','374248gJMoEz','map','endsWith','padEnd','\x20\x20Default\x20app:\x20\x20\x20\x20\x20','command','Unknown\x20error','object'];a107_0x2939=function(){return _0x1529a9;};return a107_0x2939();}export function formatOutput(_0x49eeb9,_0x11a56e){const _0x407709=a107_0x46ab,{format:_0x4f73b5}=_0x11a56e;switch(_0x4f73b5){case'json':printJson(_0x49eeb9,_0x11a56e);break;case'compress':printCompress(_0x49eeb9,_0x11a56e);break;case _0x407709(0x186):default:printPretty(_0x49eeb9,_0x11a56e);break;}}function a107_0x46ab(_0xf13e88,_0x2cd523){_0xf13e88=_0xf13e88-0x15e;const _0x2939aa=a107_0x2939();let _0x46ab3c=_0x2939aa[_0xf13e88];return _0x46ab3c;}function buildEnvelope(_0x2f391a,_0x2172f2){const _0xf43283=a107_0x46ab,_0x42a0b8={'ok':_0x2f391a['ok'],'command':_0x2172f2[_0xf43283(0x17b)],'risk':_0x2172f2[_0xf43283(0x17f)]};if(_0x2172f2[_0xf43283(0x185)])_0x42a0b8[_0xf43283(0x185)]=!![];if(_0x2f391a['data']!==undefined)_0x42a0b8[_0xf43283(0x170)]=_0x2f391a[_0xf43283(0x170)];return!_0x2f391a['ok']&&_0x2f391a[_0xf43283(0x16a)]&&(_0x42a0b8[_0xf43283(0x18a)]={'code':_0xf43283(0x169),'message':_0x2f391a[_0xf43283(0x16a)]}),_0x42a0b8;}function printJson(_0x16dd89,_0x5e50ed){const _0x4c1e7d=buildEnvelope(_0x16dd89,_0x5e50ed),_0x2f0066=JSON['stringify'](_0x4c1e7d,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0x2f0066,_0x5e50ed);}function printCompress(_0x1e74fb,_0x572487){const _0x4197b1=a107_0x46ab,_0x3dd523=buildEnvelope(_0x1e74fb,_0x572487),_0x21706f=JSON[_0x4197b1(0x184)](_0x3dd523)+'\x0a';writeJsonWithOptionalJq(_0x21706f,_0x572487);}function writeJsonWithOptionalJq(_0x4cc96f,_0x30aa8c){const _0xe2a2c7=a107_0x46ab,_0x322f07=_0x30aa8c['jqFilter']?.[_0xe2a2c7(0x161)]();if(!_0x322f07){process['stdout'][_0xe2a2c7(0x174)](_0x4cc96f);return;}const _0x4619fb=applyJqFilter(_0x4cc96f,_0x322f07);process[_0xe2a2c7(0x187)][_0xe2a2c7(0x174)](_0x4619fb[_0xe2a2c7(0x178)]('\x0a')?_0x4619fb:_0x4619fb+'\x0a');}function isListWithMetaData(_0x17ec7d){const _0x592b8f=a107_0x46ab;return typeof _0x17ec7d===_0x592b8f(0x17d)&&_0x17ec7d!==null&&_0x592b8f(0x181)in _0x17ec7d&&Array[_0x592b8f(0x180)](_0x17ec7d[_0x592b8f(0x181)])&&_0x592b8f(0x171)in _0x17ec7d&&typeof _0x17ec7d[_0x592b8f(0x171)]===_0x592b8f(0x17d)&&_0x17ec7d[_0x592b8f(0x171)]!==null;}function printAppListMeta(_0x5d2b2f){const _0x1e37d4=a107_0x46ab,_0x3212dd=_0x5d2b2f['globalPath']!=null?String(_0x5d2b2f[_0x1e37d4(0x16b)]):_0x1e37d4(0x16f),_0x3f166a=_0x5d2b2f[_0x1e37d4(0x162)]!=null?String(_0x5d2b2f['projectPath']):_0x1e37d4(0x16f),_0x2c4156=_0x5d2b2f[_0x1e37d4(0x16e)]!=null?String(_0x5d2b2f[_0x1e37d4(0x16e)]):_0x1e37d4(0x16f),_0x3e1cf4=_0x5d2b2f['defaultAppSource'],_0x4b9ac7=_0x3e1cf4==='project'?_0x1e37d4(0x173):_0x3e1cf4===_0x1e37d4(0x167)?_0x1e37d4(0x160):'';console['log'](_0x1e37d4(0x16d)+_0x3212dd),console[_0x1e37d4(0x182)](_0x1e37d4(0x172)+_0x3f166a),console[_0x1e37d4(0x182)](_0x1e37d4(0x17a)+_0x2c4156+_0x4b9ac7),console[_0x1e37d4(0x182)]();}function printPretty(_0x327c0b,_0x5a3757){const _0x3bc920=a107_0x46ab;if(_0x5a3757[_0x3bc920(0x185)]){console[_0x3bc920(0x182)]('[dry-run]\x20Would\x20execute:'),console[_0x3bc920(0x182)](JSON[_0x3bc920(0x184)](_0x327c0b[_0x3bc920(0x170)],null,0x2));return;}if(!_0x327c0b['ok']){console[_0x3bc920(0x18a)](_0x3bc920(0x168)+(_0x327c0b['message']??_0x3bc920(0x17c)));return;}const _0x9e3e72=_0x327c0b[_0x3bc920(0x170)];if(_0x9e3e72===undefined||_0x9e3e72===null){if(_0x327c0b['message'])console[_0x3bc920(0x182)](_0x327c0b['message']);return;}if(isListWithMetaData(_0x9e3e72)){printAppListMeta(_0x9e3e72[_0x3bc920(0x171)]),printArrayPretty(_0x9e3e72['items']);return;}if(Array[_0x3bc920(0x180)](_0x9e3e72)){printArrayPretty(_0x9e3e72);return;}if(typeof _0x9e3e72===_0x3bc920(0x17d)){printObjectPretty(_0x9e3e72);return;}console[_0x3bc920(0x182)](String(_0x9e3e72));}function printObjectPretty(_0x4bf7af){const _0x5b054c=a107_0x46ab,_0x1af953=Math['max'](...Object[_0x5b054c(0x189)](_0x4bf7af)[_0x5b054c(0x177)](_0x2ca337=>_0x2ca337[_0x5b054c(0x164)]),0x0);for(const [_0x722fdf,_0x39f4ea]of Object[_0x5b054c(0x183)](_0x4bf7af)){if(_0x39f4ea===undefined||_0x39f4ea===null)continue;const _0x15915f=_0x722fdf[_0x5b054c(0x179)](_0x1af953);typeof _0x39f4ea===_0x5b054c(0x17d)?console[_0x5b054c(0x182)](_0x15915f+'\x20\x20'+JSON['stringify'](_0x39f4ea)):console[_0x5b054c(0x182)](_0x15915f+'\x20\x20'+_0x39f4ea);}}function printArrayPretty(_0x54e63b){const _0x3d74bf=a107_0x46ab;if(_0x54e63b['length']===0x0){console[_0x3d74bf(0x182)](_0x3d74bf(0x163));return;}console['log'](_0x3d74bf(0x165)+_0x54e63b[_0x3d74bf(0x164)]+_0x3d74bf(0x15e));for(const _0xf5635 of _0x54e63b){if(typeof _0xf5635===_0x3d74bf(0x17d)&&_0xf5635!==null){const _0x1ee9f4=Object[_0x3d74bf(0x183)](_0xf5635)['filter'](([,_0x117244])=>_0x117244!=null&&_0x117244!=='');if(_0x1ee9f4[_0x3d74bf(0x164)]===0x0)continue;const _0x21ee82=Math[_0x3d74bf(0x18b)](..._0x1ee9f4[_0x3d74bf(0x177)](([_0x557de9])=>_0x557de9['length']));for(const [_0x596f89,_0x214f10]of _0x1ee9f4){const _0x61694d=typeof _0x214f10===_0x3d74bf(0x17d)?JSON[_0x3d74bf(0x184)](_0x214f10):String(_0x214f10);console['log']('\x20\x20'+_0x596f89['padEnd'](_0x21ee82)+'\x20\x20'+_0x61694d);}console['log']('');}else console[_0x3d74bf(0x182)]('\x20\x20'+_0xf5635);}}
1
+ function a109_0x405a(_0x2430f8,_0x1b95d7){_0x2430f8=_0x2430f8-0xf0;const _0x48bbc5=a109_0x48bb();let _0x405a1c=_0x48bbc5[_0x2430f8];return _0x405a1c;}(function(_0x2acb11,_0xc3d1d2){const _0x3735ef=a109_0x405a,_0x8feb33=_0x2acb11();while(!![]){try{const _0x469f28=-parseInt(_0x3735ef(0xfd))/0x1*(parseInt(_0x3735ef(0x104))/0x2)+-parseInt(_0x3735ef(0x116))/0x3*(-parseInt(_0x3735ef(0x123))/0x4)+parseInt(_0x3735ef(0x11c))/0x5*(parseInt(_0x3735ef(0x118))/0x6)+parseInt(_0x3735ef(0x108))/0x7*(-parseInt(_0x3735ef(0x100))/0x8)+-parseInt(_0x3735ef(0xf8))/0x9+-parseInt(_0x3735ef(0x115))/0xa*(-parseInt(_0x3735ef(0xf5))/0xb)+parseInt(_0x3735ef(0xf6))/0xc*(parseInt(_0x3735ef(0x122))/0xd);if(_0x469f28===_0xc3d1d2)break;else _0x8feb33['push'](_0x8feb33['shift']());}catch(_0x1c3ff8){_0x8feb33['push'](_0x8feb33['shift']());}}}(a109_0x48bb,0x99247));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x1a7a5d,_0x28dcaa){const _0x242ff9=a109_0x405a,{format:_0x830de5}=_0x28dcaa;switch(_0x830de5){case _0x242ff9(0x121):printJson(_0x1a7a5d,_0x28dcaa);break;case _0x242ff9(0xfc):printCompress(_0x1a7a5d,_0x28dcaa);break;case _0x242ff9(0x101):default:printPretty(_0x1a7a5d,_0x28dcaa);break;}}function buildEnvelope(_0x505830,_0x2ec6d4){const _0x5f2747=a109_0x405a,_0x4f5cb6={'ok':_0x505830['ok'],'command':_0x2ec6d4[_0x5f2747(0x10f)],'risk':_0x2ec6d4[_0x5f2747(0x106)]};if(_0x2ec6d4[_0x5f2747(0x113)])_0x4f5cb6[_0x5f2747(0x113)]=!![];if(_0x505830[_0x5f2747(0x10a)]!==undefined)_0x4f5cb6[_0x5f2747(0x10a)]=_0x505830['data'];return!_0x505830['ok']&&_0x505830['message']&&(_0x4f5cb6[_0x5f2747(0x120)]={'code':_0x5f2747(0xfa),'message':_0x505830[_0x5f2747(0xf9)]}),_0x4f5cb6;}function printJson(_0x3f7597,_0x7fa4b4){const _0x2c3233=a109_0x405a,_0x3fa603=buildEnvelope(_0x3f7597,_0x7fa4b4),_0x4be373=JSON[_0x2c3233(0xf7)](_0x3fa603,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0x4be373,_0x7fa4b4);}function printCompress(_0xef51b9,_0x306348){const _0x1ecc7b=a109_0x405a,_0x84243a=buildEnvelope(_0xef51b9,_0x306348),_0xacf16c=JSON[_0x1ecc7b(0xf7)](_0x84243a)+'\x0a';writeJsonWithOptionalJq(_0xacf16c,_0x306348);}function writeJsonWithOptionalJq(_0x138fde,_0x1bbbb6){const _0x2e9433=a109_0x405a,_0x3cd684=_0x1bbbb6[_0x2e9433(0x10d)]?.['trim']();if(!_0x3cd684){process[_0x2e9433(0x11d)][_0x2e9433(0x109)](_0x138fde);return;}const _0x25969f=applyJqFilter(_0x138fde,_0x3cd684);process[_0x2e9433(0x11d)][_0x2e9433(0x109)](_0x25969f[_0x2e9433(0x103)]('\x0a')?_0x25969f:_0x25969f+'\x0a');}function a109_0x48bb(){const _0x1a7525=['globalPath','dryRun','(empty)','7270aGHxuY','3opMwvK','isArray','18JUFZBe','defaultAppSource','Error:\x20','\x20\x20Default\x20app:\x20\x20\x20\x20\x20','26995OndgYj','stdout','Found\x20','max','error','json','1456iwsYqy','4353864BUACZt','keys','map','(none)','Unknown\x20error','items','log','3443TXxMLJ','188580LWIoTc','stringify','4369113uZvcNz','message','command_error','projectPath','compress','871657MtGzQm','\x20\x20Global\x20config:\x20\x20\x20','global','8863272acMBlR','pretty','filter','endsWith','2ZHPdvE','object','risk','entries','7aRjTDw','write','data','length','\x20\x20Project\x20config:\x20\x20','jqFilter','meta','command','\x20items:\x0a','defaultApp'];a109_0x48bb=function(){return _0x1a7525;};return a109_0x48bb();}function isListWithMetaData(_0x588ebd){const _0x570fe1=a109_0x405a;return typeof _0x588ebd===_0x570fe1(0x105)&&_0x588ebd!==null&&_0x570fe1(0xf3)in _0x588ebd&&Array['isArray'](_0x588ebd['items'])&&'meta'in _0x588ebd&&typeof _0x588ebd[_0x570fe1(0x10e)]==='object'&&_0x588ebd['meta']!==null;}function printAppListMeta(_0x5d9e65){const _0x251a62=a109_0x405a,_0x4aa15f=_0x5d9e65[_0x251a62(0x112)]!=null?String(_0x5d9e65[_0x251a62(0x112)]):_0x251a62(0xf1),_0x567e52=_0x5d9e65[_0x251a62(0xfb)]!=null?String(_0x5d9e65[_0x251a62(0xfb)]):_0x251a62(0xf1),_0x19548d=_0x5d9e65[_0x251a62(0x111)]!=null?String(_0x5d9e65[_0x251a62(0x111)]):_0x251a62(0xf1),_0x319fc2=_0x5d9e65[_0x251a62(0x119)],_0x1e1449=_0x319fc2==='project'?'\x20(default\x20from\x20project\x20file)':_0x319fc2===_0x251a62(0xff)?'\x20(default\x20from\x20global\x20file)':'';console[_0x251a62(0xf4)](_0x251a62(0xfe)+_0x4aa15f),console[_0x251a62(0xf4)](_0x251a62(0x10c)+_0x567e52),console[_0x251a62(0xf4)](_0x251a62(0x11b)+_0x19548d+_0x1e1449),console[_0x251a62(0xf4)]();}function printPretty(_0x5b9c39,_0x32c462){const _0x5853eb=a109_0x405a;if(_0x32c462[_0x5853eb(0x113)]){console[_0x5853eb(0xf4)]('[dry-run]\x20Would\x20execute:'),console[_0x5853eb(0xf4)](JSON[_0x5853eb(0xf7)](_0x5b9c39[_0x5853eb(0x10a)],null,0x2));return;}if(!_0x5b9c39['ok']){console[_0x5853eb(0x120)](_0x5853eb(0x11a)+(_0x5b9c39[_0x5853eb(0xf9)]??_0x5853eb(0xf2)));return;}const _0x27067e=_0x5b9c39[_0x5853eb(0x10a)];if(_0x27067e===undefined||_0x27067e===null){if(_0x5b9c39['message'])console[_0x5853eb(0xf4)](_0x5b9c39[_0x5853eb(0xf9)]);return;}if(isListWithMetaData(_0x27067e)){printAppListMeta(_0x27067e[_0x5853eb(0x10e)]),printArrayPretty(_0x27067e[_0x5853eb(0xf3)]);return;}if(Array[_0x5853eb(0x117)](_0x27067e)){printArrayPretty(_0x27067e);return;}if(typeof _0x27067e===_0x5853eb(0x105)){printObjectPretty(_0x27067e);return;}console[_0x5853eb(0xf4)](String(_0x27067e));}function printObjectPretty(_0x3ff48a){const _0x108c09=a109_0x405a,_0xff4709=Math['max'](...Object[_0x108c09(0x124)](_0x3ff48a)['map'](_0x5b24a1=>_0x5b24a1[_0x108c09(0x10b)]),0x0);for(const [_0x48d296,_0x3ae0df]of Object[_0x108c09(0x107)](_0x3ff48a)){if(_0x3ae0df===undefined||_0x3ae0df===null)continue;const _0x33938b=_0x48d296['padEnd'](_0xff4709);typeof _0x3ae0df===_0x108c09(0x105)?console[_0x108c09(0xf4)](_0x33938b+'\x20\x20'+JSON['stringify'](_0x3ae0df)):console[_0x108c09(0xf4)](_0x33938b+'\x20\x20'+_0x3ae0df);}}function printArrayPretty(_0x2665aa){const _0x15fc90=a109_0x405a;if(_0x2665aa[_0x15fc90(0x10b)]===0x0){console[_0x15fc90(0xf4)](_0x15fc90(0x114));return;}console['log'](_0x15fc90(0x11e)+_0x2665aa[_0x15fc90(0x10b)]+_0x15fc90(0x110));for(const _0x130fd5 of _0x2665aa){if(typeof _0x130fd5==='object'&&_0x130fd5!==null){const _0x1489ea=Object[_0x15fc90(0x107)](_0x130fd5)[_0x15fc90(0x102)](([,_0x4fd54c])=>_0x4fd54c!=null&&_0x4fd54c!=='');if(_0x1489ea[_0x15fc90(0x10b)]===0x0)continue;const _0x22951f=Math[_0x15fc90(0x11f)](..._0x1489ea[_0x15fc90(0xf0)](([_0x35fd6a])=>_0x35fd6a[_0x15fc90(0x10b)]));for(const [_0x3d47ca,_0x3a0e5f]of _0x1489ea){const _0xef3881=typeof _0x3a0e5f===_0x15fc90(0x105)?JSON['stringify'](_0x3a0e5f):String(_0x3a0e5f);console[_0x15fc90(0xf4)]('\x20\x20'+_0x3d47ca['padEnd'](_0x22951f)+'\x20\x20'+_0xef3881);}console['log']('');}else console[_0x15fc90(0xf4)]('\x20\x20'+_0x130fd5);}}
@@ -1 +1 @@
1
- (function(_0x1369c6,_0x202268){var _0x4cab58=a108_0xcc09,_0x1ff3e8=_0x1369c6();while(!![]){try{var _0x1b1ee5=-parseInt(_0x4cab58(0x19e))/0x1+-parseInt(_0x4cab58(0x195))/0x2*(parseInt(_0x4cab58(0x1a1))/0x3)+-parseInt(_0x4cab58(0x19a))/0x4*(parseInt(_0x4cab58(0x19c))/0x5)+-parseInt(_0x4cab58(0x19b))/0x6*(-parseInt(_0x4cab58(0x193))/0x7)+-parseInt(_0x4cab58(0x198))/0x8*(parseInt(_0x4cab58(0x196))/0x9)+-parseInt(_0x4cab58(0x19f))/0xa*(-parseInt(_0x4cab58(0x197))/0xb)+parseInt(_0x4cab58(0x1a0))/0xc;if(_0x1b1ee5===_0x202268)break;else _0x1ff3e8['push'](_0x1ff3e8['shift']());}catch(_0x2981ec){_0x1ff3e8['push'](_0x1ff3e8['shift']());}}}(a108_0x6271,0xee7de));function a108_0xcc09(_0xc890f5,_0x3628c8){_0xc890f5=_0xc890f5-0x193;var _0x62715e=a108_0x6271();var _0xcc09f=_0x62715e[_0xc890f5];return _0xcc09f;}function a108_0x6271(){var _0xd8174a=['object','278qorfuZ','45UJtvuS','15279VFyiAd','2484056CKNRlq','paging','11536NPtmtN','49794bhsvxD','2770ZckosF','isArray','956387jRzKAk','9930KNKmuS','36803508ChkktT','20994cPjoeT','1358ltMxne'];a108_0x6271=function(){return _0xd8174a;};return a108_0x6271();}export function extractList(_0x2eff27){var _0x4229c3=a108_0xcc09;if(Array[_0x4229c3(0x19d)](_0x2eff27))return _0x2eff27;if(_0x2eff27&&typeof _0x2eff27==='object')return _0x2eff27['tableData']??[];return[];}export function extractPaging(_0x4fb924){var _0x2610c0=a108_0xcc09;if(_0x4fb924&&typeof _0x4fb924===_0x2610c0(0x194)&&!Array[_0x2610c0(0x19d)](_0x4fb924))return _0x4fb924[_0x2610c0(0x199)];return undefined;}
1
+ function a110_0x549c(){var _0x2b1046=['4hhUkXj','2258954AqAAEx','tableData','300727LXqryb','object','6676104csCQwL','2325006ylezhv','6205653rASJtd','47901DIcILV','isArray','30Zrndok','2873840lfSWCU','18ZmpOqF'];a110_0x549c=function(){return _0x2b1046;};return a110_0x549c();}(function(_0x57702a,_0x102ef9){var _0x6e3830=a110_0x5be0,_0xa4c6e8=_0x57702a();while(!![]){try{var _0x91ed5e=parseInt(_0x6e3830(0xc4))/0x1+-parseInt(_0x6e3830(0xc2))/0x2+parseInt(_0x6e3830(0xc7))/0x3*(-parseInt(_0x6e3830(0xc1))/0x4)+-parseInt(_0x6e3830(0xbf))/0x5+parseInt(_0x6e3830(0xc0))/0x6*(parseInt(_0x6e3830(0xbc))/0x7)+parseInt(_0x6e3830(0xc6))/0x8+-parseInt(_0x6e3830(0xc8))/0x9*(-parseInt(_0x6e3830(0xbe))/0xa);if(_0x91ed5e===_0x102ef9)break;else _0xa4c6e8['push'](_0xa4c6e8['shift']());}catch(_0x202032){_0xa4c6e8['push'](_0xa4c6e8['shift']());}}}(a110_0x549c,0xb5e71));export function extractList(_0x51257b){var _0x4d3ba6=a110_0x5be0;if(Array[_0x4d3ba6(0xbd)](_0x51257b))return _0x51257b;if(_0x51257b&&typeof _0x51257b===_0x4d3ba6(0xc5))return _0x51257b[_0x4d3ba6(0xc3)]??[];return[];}function a110_0x5be0(_0x13d65f,_0x32d122){_0x13d65f=_0x13d65f-0xbc;var _0x549c1a=a110_0x549c();var _0x5be0d4=_0x549c1a[_0x13d65f];return _0x5be0d4;}export function extractPaging(_0x5b2454){var _0x4e9ba1=a110_0x5be0;if(_0x5b2454&&typeof _0x5b2454===_0x4e9ba1(0xc5)&&!Array[_0x4e9ba1(0xbd)](_0x5b2454))return _0x5b2454['paging'];return undefined;}
@@ -1 +1 @@
1
- (function(_0x5269b1,_0x2ac857){const _0x5affe5=a109_0x1b4c,_0x48be3c=_0x5269b1();while(!![]){try{const _0x305d10=-parseInt(_0x5affe5(0x147))/0x1*(parseInt(_0x5affe5(0x161))/0x2)+-parseInt(_0x5affe5(0x143))/0x3*(-parseInt(_0x5affe5(0x135))/0x4)+parseInt(_0x5affe5(0x169))/0x5+parseInt(_0x5affe5(0x133))/0x6+parseInt(_0x5affe5(0x16b))/0x7*(parseInt(_0x5affe5(0x137))/0x8)+parseInt(_0x5affe5(0x14f))/0x9+parseInt(_0x5affe5(0x168))/0xa*(-parseInt(_0x5affe5(0x159))/0xb);if(_0x305d10===_0x2ac857)break;else _0x48be3c['push'](_0x48be3c['shift']());}catch(_0x39a5ec){_0x48be3c['push'](_0x48be3c['shift']());}}}(a109_0x2762,0xecc55));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';function a109_0x2762(){const _0x457eed=['`\x20has\x20risk\x20level\x20\x22','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','defaultFormat','code','defaultOutputFormat','356Vckxoc','isNonInteractive','length','High-risk\x20operation\x20`','service','pretty','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','8980kiAaIL','3568420fbKRxm','stderr','7daaiyd','\x22.\x20','\x20api\x20pull`\x20first.','appCode','dryRun','requiresAppCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','--dry-run\x20is\x20not\x20supported\x20for\x20`','selectedAppName','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','trim','createInterface','resolveApiDomain','`\x20requires\x20either\x20--code\x20or\x20--alias.','cookie','jqFilter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','command','node:readline','args','defaultPageSize','2158362FxEHAm','type','242636JDLXPP','risk','8903544wbbmJn','name','stdin','map','pagesize','question','../core/api-client.js','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','dry-run','hasFormat','requiresAuth','toLowerCase','51huIuxT','close','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','validation','6178jTgdWr','configMissing','flags','resolveCookie','rawFlags','No\x20api.ts\x20found\x20in\x20','alias','apiDir','9040014SQpkkC','Available\x20aliases:\x20','string','format','json','cancelled','riskLevel','number','yes','.\x20Run\x20`','26367mvdIMT','Command\x20`','defaultVerbose'];a109_0x2762=function(){return _0x457eed;};return a109_0x2762();}function a109_0x1b4c(_0x1f2931,_0x23d0f2){_0x1f2931=_0x1f2931-0x133;const _0x2762c0=a109_0x2762();let _0x1b4c77=_0x2762c0[_0x1f2931];return _0x1b4c77;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x2d6913,_0x422e57){const _0x8ae64c=a109_0x1b4c,_0x15d9c0=CLI_BIN_NAME+'\x20'+_0x2d6913[_0x8ae64c(0x165)]+'\x20'+_0x2d6913[_0x8ae64c(0x17c)],_0x58fa5e=parseFlags(_0x2d6913[_0x8ae64c(0x149)],_0x422e57[_0x8ae64c(0x14b)]);validateFlags(_0x2d6913['flags'],_0x58fa5e,_0x15d9c0);if(!_0x58fa5e[_0x8ae64c(0x13f)]&&_0x422e57[_0x8ae64c(0x155)]&&riskLevelOrder(_0x2d6913[_0x8ae64c(0x136)])>riskLevelOrder(_0x422e57['riskLevel'])){if(_0x422e57[_0x8ae64c(0x162)])throw CliErrors['validation']('Command\x20`'+_0x15d9c0+_0x8ae64c(0x15c)+_0x2d6913['risk']+_0x8ae64c(0x167)+_0x422e57[_0x8ae64c(0x155)]+'\x22.');throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x15a)+_0x15d9c0+_0x8ae64c(0x15c)+_0x2d6913['risk']+_0x8ae64c(0x167)+_0x422e57[_0x8ae64c(0x155)]+'\x22.\x0a'+(_0x8ae64c(0x145)+_0x2d6913[_0x8ae64c(0x136)]+_0x8ae64c(0x13e)));}const _0x5cde0c=_0x422e57['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x2d6913,_0x58fa5e,_0x5cde0c,_0x15d9c0);let _0x35935f='';if(_0x2d6913[_0x8ae64c(0x141)]!==![]){_0x35935f=_0x422e57[_0x8ae64c(0x14a)]();if(!_0x35935f)throw CliErrors['authRequired']();const {setActiveCookie:_0x24a79a}=await import(_0x8ae64c(0x13d));_0x24a79a(_0x35935f);}let _0x5911d8='';if(_0x2d6913[_0x8ae64c(0x170)]!==![]){_0x5911d8=_0x422e57['resolveAppCode']()??'';if(!_0x5911d8)throw CliErrors[_0x8ae64c(0x148)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x8ae64c(0x171));}let _0x562534=resolveFormat(_0x58fa5e,_0x2d6913,_0x422e57[_0x8ae64c(0x15e)]);const _0xd7fd9=resolveJqFilter(_0x58fa5e);_0xd7fd9&&_0x562534===_0x8ae64c(0x166)&&(_0x562534=_0x8ae64c(0x153));if(_0xd7fd9&&_0x562534!=='json'&&_0x562534!=='compress')throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x15d)+_0x562534+').');const _0x14d1bd=buildRuntimeContext({'appCode':_0x5911d8,'cookie':_0x35935f,'apiDomain':_0x422e57[_0x8ae64c(0x177)](),'format':_0x562534,'jqFilter':_0xd7fd9,'flags':_0x58fa5e,'def':_0x2d6913,'nonInteractive':_0x422e57[_0x8ae64c(0x162)],'defaultPageSize':_0x422e57[_0x8ae64c(0x17f)],'defaultVerbose':_0x422e57[_0x8ae64c(0x15b)],'apiDir':_0x5cde0c,'selectedAppName':_0x422e57[_0x8ae64c(0x173)],'args':_0x422e57['args']??[]});_0x2d6913['validate']&&await _0x2d6913['validate'](_0x14d1bd);if(_0x58fa5e[_0x8ae64c(0x13f)]){if(!_0x2d6913[_0x8ae64c(0x16f)])throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x172)+_0x15d9c0+'`.');const _0x327ab9=await _0x2d6913[_0x8ae64c(0x16f)](_0x14d1bd);formatOutput({'ok':!![],'data':_0x327ab9},{'command':_0x15d9c0,'risk':_0x2d6913[_0x8ae64c(0x136)],'format':_0x562534,'dryRun':!![],'jqFilter':_0xd7fd9});return;}if(_0x2d6913[_0x8ae64c(0x136)]==='high-risk-write'&&!_0x58fa5e['yes']){if(_0x422e57[_0x8ae64c(0x162)])throw CliErrors[_0x8ae64c(0x146)](_0x8ae64c(0x164)+_0x15d9c0+_0x8ae64c(0x17b));await requireConfirmation(_0x15d9c0);}const _0x40b965=await _0x2d6913['execute'](_0x14d1bd);formatOutput(_0x40b965,{'command':_0x15d9c0,'risk':_0x2d6913['risk'],'format':_0x562534,'jqFilter':_0xd7fd9});}function buildRuntimeContext(_0x24a1d3){const _0x5676ca=a109_0x1b4c,{flags:_0x4fd432,def:_0x18dabd}=_0x24a1d3,_0x3b39af=CLI_BIN_NAME+'\x20'+_0x18dabd[_0x5676ca(0x165)]+'\x20'+_0x18dabd[_0x5676ca(0x17c)];return{'appCode':_0x24a1d3[_0x5676ca(0x16e)],'cookie':_0x24a1d3[_0x5676ca(0x179)],'apiDomain':_0x24a1d3['apiDomain'],'format':_0x24a1d3['format'],'nonInteractive':_0x24a1d3['nonInteractive'],'apiDir':_0x24a1d3[_0x5676ca(0x14e)],'selectedAppName':_0x24a1d3[_0x5676ca(0x173)],'args':_0x24a1d3[_0x5676ca(0x17e)],'str'(_0x2f98ff){return String(_0x4fd432[_0x2f98ff]??'');},'bool'(_0x1b4d42){const _0x4602fb=_0x5676ca;if(_0x4fd432[_0x1b4d42]===!![])return!![];if(_0x1b4d42==='verbose'&&_0x24a1d3[_0x4602fb(0x15b)])return!![];return![];},'num'(_0xd2a8ac,_0x10978c){const _0x5509c8=_0x5676ca,_0x424407=_0x4fd432[_0xd2a8ac];if(typeof _0x424407===_0x5509c8(0x156))return _0x424407;if(_0xd2a8ac===_0x5509c8(0x13b)&&_0x24a1d3[_0x5509c8(0x17f)]!=null)return _0x24a1d3['defaultPageSize'];return _0x10978c??0x0;},'flag'(_0x11ec4c){return _0x4fd432[_0x11ec4c];},'output'(_0x21b2bd){const _0x14b934=_0x5676ca;formatOutput(_0x21b2bd,{'command':_0x3b39af,'risk':_0x18dabd['risk'],'format':_0x24a1d3[_0x14b934(0x152)],'jqFilter':_0x24a1d3[_0x14b934(0x17a)]});}};}function resolveJqFilter(_0x4d0577){const _0x26247f=a109_0x1b4c,_0x4c247f=_0x4d0577['jq'];if(_0x4c247f===undefined||_0x4c247f===null)return undefined;const _0xe47519=String(_0x4c247f)[_0x26247f(0x175)]();return _0xe47519===''?undefined:_0xe47519;}function resolveFormat(_0x20b1ad,_0x47db39,_0x3f2626){const _0x555d6a=a109_0x1b4c;if(_0x47db39[_0x555d6a(0x140)]===![])return _0x555d6a(0x166);const _0x5e2e23=normalizeLegacyOutputFormat(_0x20b1ad['format']);if(_0x5e2e23)return _0x5e2e23;const _0x2b1eb0=normalizeLegacyOutputFormat(_0x3f2626);if(_0x2b1eb0)return _0x2b1eb0;const _0x1d42e7=normalizeLegacyOutputFormat(_0x47db39[_0x555d6a(0x160)]);if(_0x1d42e7)return _0x1d42e7;return'pretty';}async function requireConfirmation(_0x93dbc){const _0x15976b=a109_0x1b4c,_0x3bbe18=await import(_0x15976b(0x17d)),_0x3385ea=_0x3bbe18[_0x15976b(0x176)]({'input':process[_0x15976b(0x139)],'output':process[_0x15976b(0x16a)]});return new Promise((_0x53a7fe,_0x7b1f24)=>{const _0x6fd372=_0x15976b;_0x3385ea[_0x6fd372(0x13c)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x93dbc+_0x6fd372(0x174),_0x427b20=>{const _0x287038=_0x6fd372;_0x3385ea[_0x287038(0x144)](),_0x427b20[_0x287038(0x142)]()==='y'||_0x427b20['toLowerCase']()===_0x287038(0x157)?_0x53a7fe():_0x7b1f24(CliErrors[_0x287038(0x154)]('Operation\x20cancelled\x20by\x20user.'));});});}function resolveAliasToCode(_0x3cd475,_0x5935b9,_0x140f50,_0x3766d8){const _0x1a2a0f=a109_0x1b4c,_0x2eb68b=_0x3cd475[_0x1a2a0f(0x149)]['some'](_0x45ed02=>_0x45ed02['name']==='code'&&_0x45ed02[_0x1a2a0f(0x134)]===_0x1a2a0f(0x151)),_0x1ab1be=_0x3cd475[_0x1a2a0f(0x149)]['some'](_0x51bebb=>_0x51bebb[_0x1a2a0f(0x138)]===_0x1a2a0f(0x14d)&&_0x51bebb[_0x1a2a0f(0x134)]===_0x1a2a0f(0x151));if(!_0x2eb68b||!_0x1ab1be)return;const _0x2390a9=_0x5935b9[_0x1a2a0f(0x15f)]?String(_0x5935b9['code']):'',_0x32d83f=_0x5935b9[_0x1a2a0f(0x14d)]?String(_0x5935b9[_0x1a2a0f(0x14d)]):'';if(!_0x2390a9&&!_0x32d83f)throw CliErrors[_0x1a2a0f(0x146)]('`'+_0x3766d8+_0x1a2a0f(0x178));if(_0x32d83f&&!_0x2390a9){const _0x2f67c4=resolveAlias(_0x140f50,_0x32d83f);if(!_0x2f67c4){const _0x570d0e=listAliases(_0x140f50)[_0x1a2a0f(0x13a)](_0x14740d=>_0x14740d['alias']),_0x2ebf4b=_0x570d0e[_0x1a2a0f(0x163)]?_0x1a2a0f(0x150)+_0x570d0e['join'](',\x20'):_0x1a2a0f(0x14c)+_0x140f50+_0x1a2a0f(0x158)+CLI_BIN_NAME+_0x1a2a0f(0x16d);throw CliErrors[_0x1a2a0f(0x146)]('Unknown\x20alias\x20\x22'+_0x32d83f+_0x1a2a0f(0x16c)+_0x2ebf4b);}_0x5935b9[_0x1a2a0f(0x15f)]=_0x2f67c4;}}
1
+ function a111_0x38f6(_0x4072b3,_0x54ec2c){_0x4072b3=_0x4072b3-0xcb;const _0x5b7a40=a111_0x5b7a();let _0x38f62f=_0x5b7a40[_0x4072b3];return _0x38f62f;}(function(_0x8a923b,_0x4c22e3){const _0x5b5fc3=a111_0x38f6,_0x433a60=_0x8a923b();while(!![]){try{const _0x5b6d96=-parseInt(_0x5b5fc3(0x115))/0x1*(parseInt(_0x5b5fc3(0x103))/0x2)+-parseInt(_0x5b5fc3(0x109))/0x3+parseInt(_0x5b5fc3(0x106))/0x4*(parseInt(_0x5b5fc3(0xd0))/0x5)+-parseInt(_0x5b5fc3(0xe8))/0x6+parseInt(_0x5b5fc3(0xee))/0x7+-parseInt(_0x5b5fc3(0xe5))/0x8+parseInt(_0x5b5fc3(0xf5))/0x9;if(_0x5b6d96===_0x4c22e3)break;else _0x433a60['push'](_0x433a60['shift']());}catch(_0x253f87){_0x433a60['push'](_0x433a60['shift']());}}}(a111_0x5b7a,0xad5e7));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';function a111_0x5b7a(){const _0xb76f7=['\x0a\x20\x20\x20Continue?\x20[y/N]\x20','toLowerCase','`\x20requires\x20either\x20--code\x20or\x20--alias.','202sKVAuL','stdin','requiresAuth','1432MIvvjr','compress','dry-run','1469883AuPyta','defaultVerbose','trim','authRequired','args','cancelled','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','verbose','Set\x20appcode\x20via\x20`','map','number','flags','12363zbqYeb','high-risk-write','`\x20has\x20risk\x20level\x20\x22','\x22.\x0a','code','node:readline','apiDomain','question','configMissing','17365Mvmujh','High-risk\x20operation\x20`','service','No\x20api.ts\x20found\x20in\x20','Operation\x20cancelled\x20by\x20user.','command','Command\x20`','jqFilter','format','risk','apiDir','some','close','pretty','yes','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultPageSize','Unknown\x20alias\x20\x22','\x20api\x20pull`\x20first.','\x22.\x20','resolveCookie','3970616vdwWvt','../core/api-client.js','resolveApiDomain','1804314mUXstu','hasFormat','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','cookie','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','name','8722413gJZLNF','validate','length','type','resolveAppCode','alias','execute','6807564OybxRp','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','isNonInteractive','--dry-run\x20is\x20not\x20supported\x20for\x20`','selectedAppName','rawFlags','dryRun','riskLevel','string','json','validation'];a111_0x5b7a=function(){return _0xb76f7;};return a111_0x5b7a();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0xd8a141,_0x1e31a9){const _0x1f6da2=a111_0x38f6,_0x3d2b78=CLI_BIN_NAME+'\x20'+_0xd8a141[_0x1f6da2(0xd2)]+'\x20'+_0xd8a141[_0x1f6da2(0xd5)],_0x517e38=parseFlags(_0xd8a141['flags'],_0x1e31a9[_0x1f6da2(0xfa)]);validateFlags(_0xd8a141[_0x1f6da2(0x114)],_0x517e38,_0x3d2b78);if(!_0x517e38[_0x1f6da2(0x108)]&&_0x1e31a9[_0x1f6da2(0xfc)]&&riskLevelOrder(_0xd8a141[_0x1f6da2(0xd9)])>riskLevelOrder(_0x1e31a9[_0x1f6da2(0xfc)])){if(_0x1e31a9['isNonInteractive'])throw CliErrors[_0x1f6da2(0xff)](_0x1f6da2(0xd6)+_0x3d2b78+_0x1f6da2(0x117)+_0xd8a141[_0x1f6da2(0xd9)]+_0x1f6da2(0xf6)+_0x1e31a9[_0x1f6da2(0xfc)]+'\x22.');throw CliErrors[_0x1f6da2(0xff)](_0x1f6da2(0xd6)+_0x3d2b78+'`\x20has\x20risk\x20level\x20\x22'+_0xd8a141[_0x1f6da2(0xd9)]+_0x1f6da2(0xf6)+_0x1e31a9[_0x1f6da2(0xfc)]+_0x1f6da2(0x118)+('\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22'+_0xd8a141[_0x1f6da2(0xd9)]+_0x1f6da2(0x10f)));}const _0x1b93f2=_0x1e31a9[_0x1f6da2(0xda)]||DEFAULT_API_DIR;resolveAliasToCode(_0xd8a141,_0x517e38,_0x1b93f2,_0x3d2b78);let _0x4aebc9='';if(_0xd8a141[_0x1f6da2(0x105)]!==![]){_0x4aebc9=_0x1e31a9[_0x1f6da2(0xe4)]();if(!_0x4aebc9)throw CliErrors[_0x1f6da2(0x10c)]();const {setActiveCookie:_0x143200}=await import(_0x1f6da2(0xe6));_0x143200(_0x4aebc9);}let _0xb769bb='';if(_0xd8a141['requiresAppCode']!==![]){_0xb769bb=_0x1e31a9[_0x1f6da2(0xf2)]()??'';if(!_0xb769bb)throw CliErrors[_0x1f6da2(0xcf)](_0x1f6da2(0x111)+CLI_BIN_NAME+_0x1f6da2(0xea));}let _0x2791b8=resolveFormat(_0x517e38,_0xd8a141,_0x1e31a9['defaultFormat']);const _0x5a3be4=resolveJqFilter(_0x517e38);_0x5a3be4&&_0x2791b8==='pretty'&&(_0x2791b8=_0x1f6da2(0xfe));if(_0x5a3be4&&_0x2791b8!=='json'&&_0x2791b8!==_0x1f6da2(0x107))throw CliErrors[_0x1f6da2(0xff)](_0x1f6da2(0xec)+_0x2791b8+').');const _0xc7335b=buildRuntimeContext({'appCode':_0xb769bb,'cookie':_0x4aebc9,'apiDomain':_0x1e31a9[_0x1f6da2(0xe7)](),'format':_0x2791b8,'jqFilter':_0x5a3be4,'flags':_0x517e38,'def':_0xd8a141,'nonInteractive':_0x1e31a9['isNonInteractive'],'defaultPageSize':_0x1e31a9[_0x1f6da2(0xe0)],'defaultVerbose':_0x1e31a9[_0x1f6da2(0x10a)],'apiDir':_0x1b93f2,'selectedAppName':_0x1e31a9[_0x1f6da2(0xf9)],'args':_0x1e31a9[_0x1f6da2(0x10d)]??[]});_0xd8a141[_0x1f6da2(0xef)]&&await _0xd8a141[_0x1f6da2(0xef)](_0xc7335b);if(_0x517e38[_0x1f6da2(0x108)]){if(!_0xd8a141[_0x1f6da2(0xfb)])throw CliErrors[_0x1f6da2(0xff)](_0x1f6da2(0xf8)+_0x3d2b78+'`.');const _0x30cf57=await _0xd8a141[_0x1f6da2(0xfb)](_0xc7335b);formatOutput({'ok':!![],'data':_0x30cf57},{'command':_0x3d2b78,'risk':_0xd8a141[_0x1f6da2(0xd9)],'format':_0x2791b8,'dryRun':!![],'jqFilter':_0x5a3be4});return;}if(_0xd8a141[_0x1f6da2(0xd9)]===_0x1f6da2(0x116)&&!_0x517e38['yes']){if(_0x1e31a9[_0x1f6da2(0xf7)])throw CliErrors[_0x1f6da2(0xff)](_0x1f6da2(0xd1)+_0x3d2b78+_0x1f6da2(0xdf));await requireConfirmation(_0x3d2b78);}const _0x1a5f35=await _0xd8a141[_0x1f6da2(0xf4)](_0xc7335b);formatOutput(_0x1a5f35,{'command':_0x3d2b78,'risk':_0xd8a141[_0x1f6da2(0xd9)],'format':_0x2791b8,'jqFilter':_0x5a3be4});}function buildRuntimeContext(_0x341b39){const _0x3d16f9=a111_0x38f6,{flags:_0xa818fe,def:_0x3628aa}=_0x341b39,_0x5c1efc=CLI_BIN_NAME+'\x20'+_0x3628aa['service']+'\x20'+_0x3628aa['command'];return{'appCode':_0x341b39['appCode'],'cookie':_0x341b39[_0x3d16f9(0xeb)],'apiDomain':_0x341b39[_0x3d16f9(0xcd)],'format':_0x341b39[_0x3d16f9(0xd8)],'nonInteractive':_0x341b39['nonInteractive'],'apiDir':_0x341b39[_0x3d16f9(0xda)],'selectedAppName':_0x341b39['selectedAppName'],'args':_0x341b39[_0x3d16f9(0x10d)],'str'(_0x46fb9a){return String(_0xa818fe[_0x46fb9a]??'');},'bool'(_0x430884){const _0x3a987e=_0x3d16f9;if(_0xa818fe[_0x430884]===!![])return!![];if(_0x430884===_0x3a987e(0x110)&&_0x341b39[_0x3a987e(0x10a)])return!![];return![];},'num'(_0x3f2469,_0x4028d7){const _0x2f48b1=_0x3d16f9,_0x3bdc00=_0xa818fe[_0x3f2469];if(typeof _0x3bdc00===_0x2f48b1(0x113))return _0x3bdc00;if(_0x3f2469==='pagesize'&&_0x341b39[_0x2f48b1(0xe0)]!=null)return _0x341b39[_0x2f48b1(0xe0)];return _0x4028d7??0x0;},'flag'(_0x427012){return _0xa818fe[_0x427012];},'output'(_0x464fa3){const _0x28f394=_0x3d16f9;formatOutput(_0x464fa3,{'command':_0x5c1efc,'risk':_0x3628aa['risk'],'format':_0x341b39[_0x28f394(0xd8)],'jqFilter':_0x341b39[_0x28f394(0xd7)]});}};}function resolveJqFilter(_0x5f2405){const _0x174d58=a111_0x38f6,_0x59d862=_0x5f2405['jq'];if(_0x59d862===undefined||_0x59d862===null)return undefined;const _0x1b5777=String(_0x59d862)[_0x174d58(0x10b)]();return _0x1b5777===''?undefined:_0x1b5777;}function resolveFormat(_0x10bdea,_0x413553,_0x5dfb31){const _0x3ed11f=a111_0x38f6;if(_0x413553[_0x3ed11f(0xe9)]===![])return _0x3ed11f(0xdd);const _0x31f296=normalizeLegacyOutputFormat(_0x10bdea[_0x3ed11f(0xd8)]);if(_0x31f296)return _0x31f296;const _0x42d510=normalizeLegacyOutputFormat(_0x5dfb31);if(_0x42d510)return _0x42d510;const _0xb38540=normalizeLegacyOutputFormat(_0x413553['defaultOutputFormat']);if(_0xb38540)return _0xb38540;return _0x3ed11f(0xdd);}async function requireConfirmation(_0x2222d4){const _0x3c2c4c=a111_0x38f6,_0x420c9d=await import(_0x3c2c4c(0xcc)),_0x224e53=_0x420c9d['createInterface']({'input':process[_0x3c2c4c(0x104)],'output':process['stderr']});return new Promise((_0x55a8d0,_0x3e3192)=>{const _0x5b6d5f=_0x3c2c4c;_0x224e53[_0x5b6d5f(0xce)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x2222d4+_0x5b6d5f(0x100),_0xb555df=>{const _0x9d9bf8=_0x5b6d5f;_0x224e53[_0x9d9bf8(0xdc)](),_0xb555df[_0x9d9bf8(0x101)]()==='y'||_0xb555df[_0x9d9bf8(0x101)]()===_0x9d9bf8(0xde)?_0x55a8d0():_0x3e3192(CliErrors[_0x9d9bf8(0x10e)](_0x9d9bf8(0xd4)));});});}function resolveAliasToCode(_0x5f577d,_0x38e97d,_0x45c656,_0x386c4c){const _0x42ef23=a111_0x38f6,_0x1a0bab=_0x5f577d[_0x42ef23(0x114)][_0x42ef23(0xdb)](_0xa2c514=>_0xa2c514[_0x42ef23(0xed)]===_0x42ef23(0xcb)&&_0xa2c514[_0x42ef23(0xf1)]===_0x42ef23(0xfd)),_0x1b6af6=_0x5f577d[_0x42ef23(0x114)][_0x42ef23(0xdb)](_0x3ea081=>_0x3ea081['name']==='alias'&&_0x3ea081['type']===_0x42ef23(0xfd));if(!_0x1a0bab||!_0x1b6af6)return;const _0xc609b=_0x38e97d[_0x42ef23(0xcb)]?String(_0x38e97d[_0x42ef23(0xcb)]):'',_0x13562=_0x38e97d[_0x42ef23(0xf3)]?String(_0x38e97d[_0x42ef23(0xf3)]):'';if(!_0xc609b&&!_0x13562)throw CliErrors[_0x42ef23(0xff)]('`'+_0x386c4c+_0x42ef23(0x102));if(_0x13562&&!_0xc609b){const _0x2182fa=resolveAlias(_0x45c656,_0x13562);if(!_0x2182fa){const _0x24fb81=listAliases(_0x45c656)[_0x42ef23(0x112)](_0x570cd1=>_0x570cd1['alias']),_0x3c59b7=_0x24fb81[_0x42ef23(0xf0)]?'Available\x20aliases:\x20'+_0x24fb81['join'](',\x20'):_0x42ef23(0xd3)+_0x45c656+'.\x20Run\x20`'+CLI_BIN_NAME+_0x42ef23(0xe2);throw CliErrors[_0x42ef23(0xff)](_0x42ef23(0xe1)+_0x13562+_0x42ef23(0xe3)+_0x3c59b7);}_0x38e97d[_0x42ef23(0xcb)]=_0x2182fa;}}
@@ -1 +1 @@
1
- function a110_0x5bfd(){const _0x502857=['757700pRjGaF','isSingleCommand','wildcardDef','default','push','hidden','flags','commands','enum','6014470MAfmuO','required','tag','../commands/registry.js','length','4605416OmulTG','696396wjQzgd','dryRun','source','4437498XyjuTA','trim','alias','hint','11328QymJOc','725PQhxUI','description','defaultCommand','service','regex','requiresAppCode','requiresAuth','map','1087584kOwUoq','pattern','command','<script>','helpExtra'];a110_0x5bfd=function(){return _0x502857;};return a110_0x5bfd();}(function(_0x54bf63,_0xcb0df4){const _0x885fa=a110_0x4e97,_0x8196f2=_0x54bf63();while(!![]){try{const _0x5d7c96=parseInt(_0x885fa(0xb4))/0x1+parseInt(_0x885fa(0xc3))/0x2+-parseInt(_0x885fa(0xaf))/0x3+-parseInt(_0x885fa(0xca))/0x4*(-parseInt(_0x885fa(0xcb))/0x5)+parseInt(_0x885fa(0xc6))/0x6+-parseInt(_0x885fa(0xbd))/0x7+-parseInt(_0x885fa(0xc2))/0x8;if(_0x5d7c96===_0xcb0df4)break;else _0x8196f2['push'](_0x8196f2['shift']());}catch(_0x447bd0){_0x8196f2['push'](_0x8196f2['shift']());}}}(a110_0x5bfd,0x6ffd2));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 serializeFlag(_0xe55e06){const _0xf0fe71=a110_0x4e97,_0xc0cc15={'name':_0xe55e06['name'],'type':_0xe55e06['type'],'description':_0xe55e06[_0xf0fe71(0xcc)]};if(_0xe55e06[_0xf0fe71(0xbe)]!==undefined)_0xc0cc15[_0xf0fe71(0xbe)]=_0xe55e06[_0xf0fe71(0xbe)];if(_0xe55e06[_0xf0fe71(0xb7)]!==undefined)_0xc0cc15[_0xf0fe71(0xb7)]=_0xe55e06['default'];if(_0xe55e06[_0xf0fe71(0xbc)]&&_0xe55e06['enum']['length']>0x0)_0xc0cc15['enum']=_0xe55e06[_0xf0fe71(0xbc)];if(_0xe55e06[_0xf0fe71(0xc8)])_0xc0cc15[_0xf0fe71(0xc8)]=_0xe55e06[_0xf0fe71(0xc8)];if(_0xe55e06['hidden'])_0xc0cc15[_0xf0fe71(0xb9)]=_0xe55e06[_0xf0fe71(0xb9)];return _0xe55e06['pattern']&&(_0xc0cc15[_0xf0fe71(0xb0)]={'source':_0xe55e06[_0xf0fe71(0xb0)]['regex'][_0xf0fe71(0xc5)],'flags':_0xe55e06['pattern'][_0xf0fe71(0xcf)][_0xf0fe71(0xba)],'description':_0xe55e06[_0xf0fe71(0xb0)][_0xf0fe71(0xcc)]}),_0xc0cc15;}function a110_0x4e97(_0x138c4f,_0x4f4912){_0x138c4f=_0x138c4f-0xae;const _0x5bfdee=a110_0x5bfd();let _0x4e9730=_0x5bfdee[_0x138c4f];return _0x4e9730;}function serializeHelpExtra(_0x417c2b){const _0x5e033c=a110_0x4e97;if(_0x417c2b[_0x5e033c(0xb3)]===undefined)return undefined;if(typeof _0x417c2b['helpExtra']==='function')return{'dynamic':!![]};return _0x417c2b[_0x5e033c(0xb3)];}function serializeCommand(_0x2cf6a5,_0x24454a){const _0x39ce78=a110_0x4e97,_0x5ca62c=_0x2cf6a5[_0x39ce78(0xd1)]!==![],_0x1fd920=_0x2cf6a5[_0x39ce78(0xd0)]!==![],_0x571693=_0x2cf6a5['hasFormat']!==![],_0xecf980=serializeHelpExtra(_0x2cf6a5);return{'command':_0x24454a['command'],'description':_0x24454a[_0x39ce78(0xcc)],..._0x24454a[_0x39ce78(0xbf)]?{'tag':_0x24454a[_0x39ce78(0xbf)][_0x39ce78(0xc7)]()}:{},'risk':_0x2cf6a5['risk'],'requiresAuth':_0x5ca62c,'requiresAppCode':_0x1fd920,'hasFormat':_0x571693,'supportsDryRun':Boolean(_0x2cf6a5[_0x39ce78(0xc4)]),..._0x2cf6a5['args']&&_0x2cf6a5['args'][_0x39ce78(0xc1)]>0x0?{'args':_0x2cf6a5['args']}:{},'flags':buildAllFlags(_0x2cf6a5)[_0x39ce78(0xae)](serializeFlag),..._0xecf980!==undefined?{'helpExtra':_0xecf980}:{}};}export async function buildSchemaPayload(){const _0x208df9=a110_0x4e97,{serviceRegistry:_0x29cb78,findDefinition:_0x5b8581}=await import(_0x208df9(0xc0)),_0x4b64f0=[];for(const _0x18b2b9 of _0x29cb78){const _0x4dcc5e=[];for(const _0x55ef6a of _0x18b2b9[_0x208df9(0xbb)]){const _0x4451a8=_0x55ef6a[_0x208df9(0xb1)]===_0x208df9(0xb2)&&_0x18b2b9['wildcardDef']?_0x18b2b9[_0x208df9(0xb6)]:_0x5b8581(_0x18b2b9[_0x208df9(0xce)],_0x55ef6a[_0x208df9(0xb1)]);if(!_0x4451a8)continue;_0x4dcc5e[_0x208df9(0xb8)](serializeCommand(_0x4451a8,_0x55ef6a));}_0x4b64f0[_0x208df9(0xb8)]({'service':_0x18b2b9[_0x208df9(0xce)],'label':_0x18b2b9['label'],..._0x18b2b9[_0x208df9(0xb5)]?{'isSingleCommand':!![]}:{},..._0x18b2b9[_0x208df9(0xcd)]?{'defaultCommand':_0x18b2b9[_0x208df9(0xcd)]}:{},'hasWildcard':Boolean(_0x18b2b9[_0x208df9(0xb6)]),'commands':_0x4dcc5e});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS['map'](_0x2af743=>({'name':_0x2af743['name'],'type':_0x2af743['type'],'description':_0x2af743[_0x208df9(0xcc)],..._0x2af743[_0x208df9(0xc9)]?{'hint':_0x2af743[_0x208df9(0xc9)]}:{},..._0x2af743['hidden']?{'hidden':!![]}:{}})),'services':_0x4b64f0};}
1
+ (function(_0x48aded,_0x18f982){const _0x2fffc8=a112_0x37f2,_0x2352f4=_0x48aded();while(!![]){try{const _0x169b44=-parseInt(_0x2fffc8(0xb5))/0x1+parseInt(_0x2fffc8(0x91))/0x2+-parseInt(_0x2fffc8(0x9b))/0x3+-parseInt(_0x2fffc8(0xa3))/0x4+-parseInt(_0x2fffc8(0x8d))/0x5+-parseInt(_0x2fffc8(0xb0))/0x6+-parseInt(_0x2fffc8(0x9d))/0x7*(-parseInt(_0x2fffc8(0x9c))/0x8);if(_0x169b44===_0x18f982)break;else _0x2352f4['push'](_0x2352f4['shift']());}catch(_0x57dafd){_0x2352f4['push'](_0x2352f4['shift']());}}}(a112_0x11ba,0x9e803));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 a112_0x37f2(_0x3e10df,_0x2526b8){_0x3e10df=_0x3e10df-0x8d;const _0x11ba04=a112_0x11ba();let _0x37f2ef=_0x11ba04[_0x3e10df];return _0x37f2ef;}function serializeFlag(_0x3bf7ea){const _0x439cd7=a112_0x37f2,_0x485408={'name':_0x3bf7ea['name'],'type':_0x3bf7ea['type'],'description':_0x3bf7ea[_0x439cd7(0xa1)]};if(_0x3bf7ea['required']!==undefined)_0x485408['required']=_0x3bf7ea[_0x439cd7(0xa7)];if(_0x3bf7ea[_0x439cd7(0x93)]!==undefined)_0x485408[_0x439cd7(0x93)]=_0x3bf7ea[_0x439cd7(0x93)];if(_0x3bf7ea[_0x439cd7(0x90)]&&_0x3bf7ea[_0x439cd7(0x90)][_0x439cd7(0x96)]>0x0)_0x485408['enum']=_0x3bf7ea[_0x439cd7(0x90)];if(_0x3bf7ea[_0x439cd7(0xb4)])_0x485408[_0x439cd7(0xb4)]=_0x3bf7ea[_0x439cd7(0xb4)];if(_0x3bf7ea[_0x439cd7(0x98)])_0x485408[_0x439cd7(0x98)]=_0x3bf7ea[_0x439cd7(0x98)];return _0x3bf7ea[_0x439cd7(0xa9)]&&(_0x485408[_0x439cd7(0xa9)]={'source':_0x3bf7ea[_0x439cd7(0xa9)][_0x439cd7(0x99)][_0x439cd7(0xa2)],'flags':_0x3bf7ea[_0x439cd7(0xa9)][_0x439cd7(0x99)][_0x439cd7(0xa6)],'description':_0x3bf7ea[_0x439cd7(0xa9)][_0x439cd7(0xa1)]}),_0x485408;}function a112_0x11ba(){const _0x5a745c=['source','5154728PUhgLS','requiresAppCode','args','flags','required','hint','pattern','map','<script>','hasFormat','tag','function','label','2274426ZAngqf','../commands/registry.js','requiresAuth','dryRun','alias','288403FWCYhE','2829295WNFKcW','commands','helpExtra','enum','707782SVbQKB','service','default','push','name','length','trim','hidden','regex','command','961479KQzbWc','482744JNcAYN','364JhVNwI','wildcardDef','defaultCommand','type','description'];a112_0x11ba=function(){return _0x5a745c;};return a112_0x11ba();}function serializeHelpExtra(_0x37c9aa){const _0x513107=a112_0x37f2;if(_0x37c9aa[_0x513107(0x8f)]===undefined)return undefined;if(typeof _0x37c9aa[_0x513107(0x8f)]===_0x513107(0xae))return{'dynamic':!![]};return _0x37c9aa[_0x513107(0x8f)];}function serializeCommand(_0xe172cf,_0x2e575e){const _0x3bdce9=a112_0x37f2,_0x2b1c8f=_0xe172cf[_0x3bdce9(0xb2)]!==![],_0x7f8864=_0xe172cf[_0x3bdce9(0xa4)]!==![],_0x3571c9=_0xe172cf[_0x3bdce9(0xac)]!==![],_0x4ad020=serializeHelpExtra(_0xe172cf);return{'command':_0x2e575e['command'],'description':_0x2e575e['description'],..._0x2e575e[_0x3bdce9(0xad)]?{'tag':_0x2e575e['tag'][_0x3bdce9(0x97)]()}:{},'risk':_0xe172cf['risk'],'requiresAuth':_0x2b1c8f,'requiresAppCode':_0x7f8864,'hasFormat':_0x3571c9,'supportsDryRun':Boolean(_0xe172cf[_0x3bdce9(0xb3)]),..._0xe172cf['args']&&_0xe172cf[_0x3bdce9(0xa5)][_0x3bdce9(0x96)]>0x0?{'args':_0xe172cf[_0x3bdce9(0xa5)]}:{},'flags':buildAllFlags(_0xe172cf)[_0x3bdce9(0xaa)](serializeFlag),..._0x4ad020!==undefined?{'helpExtra':_0x4ad020}:{}};}export async function buildSchemaPayload(){const _0x1ac21d=a112_0x37f2,{serviceRegistry:_0x11300f,findDefinition:_0x1d0c65}=await import(_0x1ac21d(0xb1)),_0x467599=[];for(const _0x550b0c of _0x11300f){const _0x3bce71=[];for(const _0x196784 of _0x550b0c[_0x1ac21d(0x8e)]){const _0x14c707=_0x196784[_0x1ac21d(0x9a)]===_0x1ac21d(0xab)&&_0x550b0c[_0x1ac21d(0x9e)]?_0x550b0c[_0x1ac21d(0x9e)]:_0x1d0c65(_0x550b0c[_0x1ac21d(0x92)],_0x196784[_0x1ac21d(0x9a)]);if(!_0x14c707)continue;_0x3bce71[_0x1ac21d(0x94)](serializeCommand(_0x14c707,_0x196784));}_0x467599['push']({'service':_0x550b0c[_0x1ac21d(0x92)],'label':_0x550b0c[_0x1ac21d(0xaf)],..._0x550b0c['isSingleCommand']?{'isSingleCommand':!![]}:{},..._0x550b0c['defaultCommand']?{'defaultCommand':_0x550b0c[_0x1ac21d(0x9f)]}:{},'hasWildcard':Boolean(_0x550b0c[_0x1ac21d(0x9e)]),'commands':_0x3bce71});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS[_0x1ac21d(0xaa)](_0x3f6fa0=>({'name':_0x3f6fa0[_0x1ac21d(0x95)],'type':_0x3f6fa0[_0x1ac21d(0xa0)],'description':_0x3f6fa0['description'],..._0x3f6fa0[_0x1ac21d(0xa8)]?{'hint':_0x3f6fa0[_0x1ac21d(0xa8)]}:{},..._0x3f6fa0[_0x1ac21d(0x98)]?{'hidden':!![]}:{}})),'services':_0x467599};}