@lovrabet/rabetbase-cli 2.0.8 → 2.0.9

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 (137) 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/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/context.js +1 -1
  91. package/lib/core/alias-resolver.js +1 -1
  92. package/lib/core/api-client.js +1 -1
  93. package/lib/core/bff/config.js +1 -1
  94. package/lib/core/bff/file-system.js +1 -1
  95. package/lib/core/bff/hash.js +1 -1
  96. package/lib/core/bff/lock.js +1 -1
  97. package/lib/core/bff/utils.js +1 -1
  98. package/lib/core/db-resolver.js +1 -1
  99. package/lib/core/sql-validator.js +1 -1
  100. package/lib/errors.js +1 -1
  101. package/lib/framework/build-all-flags.js +1 -1
  102. package/lib/framework/flags.js +1 -1
  103. package/lib/framework/help.js +1 -1
  104. package/lib/framework/index.js +1 -1
  105. package/lib/framework/output.js +1 -1
  106. package/lib/framework/response.js +1 -1
  107. package/lib/framework/runner.js +1 -1
  108. package/lib/framework/schema-export.js +1 -1
  109. package/lib/framework/types.js +1 -1
  110. package/lib/generated/build-info.js +1 -1
  111. package/lib/help.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-command-trace.js +1 -1
  115. package/lib/telemetry/cli-help-trace.js +1 -1
  116. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  117. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  118. package/lib/telemetry/send-cli-trace-log.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/cdn-config.js +1 -1
  122. package/lib/utils/check-sdk-version.js +1 -1
  123. package/lib/utils/cli-version-check.js +1 -1
  124. package/lib/utils/config.js +1 -1
  125. package/lib/utils/copy-directory.js +1 -1
  126. package/lib/utils/file-utils.js +1 -1
  127. package/lib/utils/guides-cdn.js +1 -1
  128. package/lib/utils/http-client.js +1 -1
  129. package/lib/utils/is-non-interactive.js +1 -1
  130. package/lib/utils/logger.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/rules-cdn.js +1 -1
  133. package/lib/utils/sleep.js +1 -1
  134. package/lib/utils/template-replacer.js +1 -1
  135. package/lib/utils/version.js +1 -1
  136. package/lib/utils/with-active-cookie.js +1 -1
  137. package/package.json +4 -3
@@ -1 +1 @@
1
- (function(_0x10e4da,_0x13ac01){const _0x5d8b75=a96_0x2ef8,_0x41c78f=_0x10e4da();while(!![]){try{const _0x3a1f12=-parseInt(_0x5d8b75(0x1cf))/0x1*(-parseInt(_0x5d8b75(0x1c8))/0x2)+parseInt(_0x5d8b75(0x1da))/0x3+parseInt(_0x5d8b75(0x1c9))/0x4*(-parseInt(_0x5d8b75(0x1d4))/0x5)+parseInt(_0x5d8b75(0x1ce))/0x6*(-parseInt(_0x5d8b75(0x1d6))/0x7)+-parseInt(_0x5d8b75(0x1cb))/0x8*(-parseInt(_0x5d8b75(0x1d0))/0x9)+-parseInt(_0x5d8b75(0x1dd))/0xa+-parseInt(_0x5d8b75(0x1d3))/0xb;if(_0x3a1f12===_0x13ac01)break;else _0x41c78f['push'](_0x41c78f['shift']());}catch(_0x4d1b03){_0x41c78f['push'](_0x41c78f['shift']());}}}(a96_0xe42d,0x2a7b5));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x1856fb,_0x40566d,_0x4167f1,_0x3f6e12){const _0x39e1d4=a96_0x2ef8,_0x6a9af1={'apps':_0x1856fb['apps']&&typeof _0x1856fb[_0x39e1d4(0x1d9)]===_0x39e1d4(0x1cc)?_0x1856fb[_0x39e1d4(0x1d9)]:{}};let _0x445edf=_0x6a9af1[_0x39e1d4(0x1d9)][_0x40566d];if(!_0x445edf)return _0x445edf={'scriptsRoot':_0x4167f1,'lastSync':'','functions':{}},_0x6a9af1[_0x39e1d4(0x1d9)][_0x40566d]=_0x445edf,{'lockData':_0x6a9af1,'appLock':_0x445edf};if(!_0x445edf['scriptsRoot'])_0x445edf[_0x39e1d4(0x1d5)]=_0x4167f1;else{if(_0x445edf[_0x39e1d4(0x1d5)]!==_0x4167f1)throw new Error(_0x3f6e12+_0x39e1d4(0x1ca)+(_0x39e1d4(0x1d1)+_0x4167f1+_0x39e1d4(0x1d8)+_0x445edf[_0x39e1d4(0x1d5)]+_0x39e1d4(0x1d2))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x445edf[_0x39e1d4(0x1cd)]&&(_0x445edf[_0x39e1d4(0x1cd)]={}),!_0x445edf[_0x39e1d4(0x1d7)]&&(_0x445edf['lastSync']=''),{'lockData':_0x6a9af1,'appLock':_0x445edf};}export async function readBffLockFile(_0x2baa02){const _0x419b23=a96_0x2ef8;try{const _0xb3d352=await readFile(_0x2baa02,_0x419b23(0x1dc)),_0x49c1f8=JSON['parse'](_0xb3d352);return{'apps':_0x49c1f8[_0x419b23(0x1d9)]&&typeof _0x49c1f8[_0x419b23(0x1d9)]===_0x419b23(0x1cc)?_0x49c1f8[_0x419b23(0x1d9)]:{}};}catch(_0x21d583){if(_0x21d583[_0x419b23(0x1db)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x21d583));}}function a96_0x2ef8(_0xc3898b,_0x4aec78){_0xc3898b=_0xc3898b-0x1c8;const _0xe42d98=a96_0xe42d();let _0x2ef85c=_0xe42d98[_0xc3898b];return _0x2ef85c;}function a96_0xe42d(){const _0x3f786a=['current\x20\x22','\x22.\x20','441309BGefAQ','19495yhRWrd','scriptsRoot','17234YqzAJG','lastSync','\x22\x20vs\x20lock\x20\x22','apps','378693PcbFLo','code','utf8','1020640OVflNI','54512zGkUFD','96xYEDhH',':\x20scriptsRoot\x20mismatch\x20—\x20','744MoLBEv','object','functions','606dyvkjl','7IDGxdc','33039eXvxBS'];a96_0xe42d=function(){return _0x3f786a;};return a96_0xe42d();}export async function writeBffLockFile(_0x2ce321,_0x55dc54){const _0x33d22e=a96_0x2ef8;await mkdir(dirname(_0x2ce321),{'recursive':!![]}),await writeFile(_0x2ce321,JSON['stringify'](_0x55dc54,null,0x2),_0x33d22e(0x1dc));}
1
+ (function(_0xfa53aa,_0x4c01b3){const _0x486e12=a96_0x1882,_0x3a4609=_0xfa53aa();while(!![]){try{const _0x5a196f=-parseInt(_0x486e12(0xe4))/0x1+-parseInt(_0x486e12(0xe0))/0x2*(parseInt(_0x486e12(0xf1))/0x3)+parseInt(_0x486e12(0xec))/0x4*(parseInt(_0x486e12(0xeb))/0x5)+parseInt(_0x486e12(0xe8))/0x6*(-parseInt(_0x486e12(0xe7))/0x7)+parseInt(_0x486e12(0xe2))/0x8+parseInt(_0x486e12(0xf2))/0x9*(parseInt(_0x486e12(0xe1))/0xa)+parseInt(_0x486e12(0xea))/0xb;if(_0x5a196f===_0x4c01b3)break;else _0x3a4609['push'](_0x3a4609['shift']());}catch(_0x1df4b2){_0x3a4609['push'](_0x3a4609['shift']());}}}(a96_0x5a3b,0x8d29d));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a96_0x1882(_0x5ecbc8,_0x355277){_0x5ecbc8=_0x5ecbc8-0xdd;const _0x5a3b14=a96_0x5a3b();let _0x188275=_0x5a3b14[_0x5ecbc8];return _0x188275;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0xe483da,_0x12d6da,_0x27b65c,_0x13499e){const _0x2dda1a=a96_0x1882,_0x4681a9={'apps':_0xe483da['apps']&&typeof _0xe483da['apps']==='object'?_0xe483da[_0x2dda1a(0xe3)]:{}};let _0x30f37a=_0x4681a9['apps'][_0x12d6da];if(!_0x30f37a)return _0x30f37a={'scriptsRoot':_0x27b65c,'lastSync':'','functions':{}},_0x4681a9['apps'][_0x12d6da]=_0x30f37a,{'lockData':_0x4681a9,'appLock':_0x30f37a};if(!_0x30f37a[_0x2dda1a(0xdf)])_0x30f37a['scriptsRoot']=_0x27b65c;else{if(_0x30f37a['scriptsRoot']!==_0x27b65c)throw new Error(_0x13499e+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x2dda1a(0xef)+_0x27b65c+_0x2dda1a(0xf3)+_0x30f37a['scriptsRoot']+'\x22.\x20')+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x30f37a[_0x2dda1a(0xf0)]&&(_0x30f37a[_0x2dda1a(0xf0)]={}),!_0x30f37a[_0x2dda1a(0xed)]&&(_0x30f37a[_0x2dda1a(0xed)]=''),{'lockData':_0x4681a9,'appLock':_0x30f37a};}function a96_0x5a3b(){const _0x42a7b8=['code','79338faDGKQ','282rkYwBb','ENOENT','8126316xPPGEi','10LdUOAF','489948ZIbIjg','lastSync','stringify','current\x20\x22','functions','3VqOIUD','18uuWzhJ','\x22\x20vs\x20lock\x20\x22','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','object','scriptsRoot','1876582bRuwJN','5194470UEJprJ','8054584tTnAft','apps','980253bxMiDm','utf8'];a96_0x5a3b=function(){return _0x42a7b8;};return a96_0x5a3b();}export async function readBffLockFile(_0x27ecea){const _0xe21135=a96_0x1882;try{const _0x5c412a=await readFile(_0x27ecea,_0xe21135(0xe5)),_0x2638dd=JSON['parse'](_0x5c412a);return{'apps':_0x2638dd[_0xe21135(0xe3)]&&typeof _0x2638dd[_0xe21135(0xe3)]===_0xe21135(0xde)?_0x2638dd['apps']:{}};}catch(_0x3dc472){if(_0x3dc472[_0xe21135(0xe6)]===_0xe21135(0xe9))return null;throw new Error(_0xe21135(0xdd)+String(_0x3dc472));}}export async function writeBffLockFile(_0x11b210,_0x1fdf7f){const _0x303aaa=a96_0x1882;await mkdir(dirname(_0x11b210),{'recursive':!![]}),await writeFile(_0x11b210,JSON[_0x303aaa(0xee)](_0x1fdf7f,null,0x2),_0x303aaa(0xe5));}
@@ -1 +1 @@
1
- function a98_0x54ed(_0x401e17,_0x490639){_0x401e17=_0x401e17-0xf3;const _0x1dba3b=a98_0x1dba();let _0x54ede2=_0x1dba3b[_0x401e17];return _0x54ede2;}function a98_0x1dba(){const _0x4a7a70=['values','toUpperCase','56330532RxTIBb','11EmmKpM','functionNode','operationType','1604998ifHNjO','2749735vSrjpS','17156010AIPLuv','3TKhsiF','after','14NFrUGu','4966872VYtoTF','9ctGuBd','18vfrScB','toLowerCase','trim','4943908WMbxTx','576094zqrfkM','datasetCode'];a98_0x1dba=function(){return _0x4a7a70;};return a98_0x1dba();}(function(_0x1ac7f9,_0x23462a){const _0x2d6007=a98_0x54ed,_0x18999b=_0x1ac7f9();while(!![]){try{const _0x56e69d=-parseInt(_0x2d6007(0x104))/0x1+-parseInt(_0x2d6007(0xf8))/0x2+parseInt(_0x2d6007(0xfb))/0x3*(-parseInt(_0x2d6007(0x103))/0x4)+parseInt(_0x2d6007(0xf9))/0x5*(-parseInt(_0x2d6007(0x100))/0x6)+-parseInt(_0x2d6007(0xfd))/0x7*(parseInt(_0x2d6007(0xfe))/0x8)+parseInt(_0x2d6007(0xff))/0x9*(parseInt(_0x2d6007(0xfa))/0xa)+-parseInt(_0x2d6007(0xf5))/0xb*(-parseInt(_0x2d6007(0xf4))/0xc);if(_0x56e69d===_0x23462a)break;else _0x18999b['push'](_0x18999b['shift']());}catch(_0x48421c){_0x18999b['push'](_0x18999b['shift']());}}}(a98_0x1dba,0xdca03));export function snakeToCamel(_0xd35d85){const _0x50f50c=a98_0x54ed;return _0xd35d85[_0x50f50c(0x101)]()['replace'](/_([a-z])/g,(_0x3c4a20,_0x330649)=>_0x330649[_0x50f50c(0xf3)]());}export function findHookLocationByRemoteId(_0x31da5f,_0x2889e2){const _0x2256e8=a98_0x54ed;if(!_0x2889e2)return undefined;for(const _0x554d5f of Object[_0x2256e8(0x106)](_0x31da5f)){if(_0x554d5f['remoteId']===_0x2889e2&&_0x554d5f['datasetCode']&&_0x554d5f[_0x2256e8(0xf7)]&&_0x554d5f[_0x2256e8(0xf6)])return{'datasetCode':_0x554d5f[_0x2256e8(0x105)],'operationType':_0x554d5f[_0x2256e8(0xf7)],'functionNode':_0x554d5f[_0x2256e8(0xf6)]};}return undefined;}export function extractScriptDescription(_0x217d00){const _0x1579c9=a98_0x54ed,_0x337f0d=_0x217d00['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x337f0d?.[0x1]?.[_0x1579c9(0x102)]()||undefined;}export function isValidBffFunctionName(_0x318f27){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x318f27);}export function normalizeHookFunctionNode(_0x22087e){const _0x581bfc=a98_0x54ed;if(!_0x22087e)return undefined;const _0x4effe3=_0x22087e[_0x581bfc(0x102)]()[_0x581bfc(0x101)]();if(_0x4effe3==='before'||_0x4effe3===_0x581bfc(0xfc))return _0x4effe3;return undefined;}
1
+ (function(_0x1bd148,_0x530bc6){const _0xd7b8a1=a98_0x1713,_0x5a3f9c=_0x1bd148();while(!![]){try{const _0x565e09=-parseInt(_0xd7b8a1(0x1bf))/0x1+-parseInt(_0xd7b8a1(0x1c7))/0x2+-parseInt(_0xd7b8a1(0x1ba))/0x3+-parseInt(_0xd7b8a1(0x1b7))/0x4*(-parseInt(_0xd7b8a1(0x1c8))/0x5)+-parseInt(_0xd7b8a1(0x1c5))/0x6+-parseInt(_0xd7b8a1(0x1b8))/0x7*(parseInt(_0xd7b8a1(0x1bb))/0x8)+-parseInt(_0xd7b8a1(0x1b5))/0x9*(-parseInt(_0xd7b8a1(0x1cb))/0xa);if(_0x565e09===_0x530bc6)break;else _0x5a3f9c['push'](_0x5a3f9c['shift']());}catch(_0x4bf51b){_0x5a3f9c['push'](_0x5a3f9c['shift']());}}}(a98_0xdcf9,0xe954c));export function snakeToCamel(_0x237990){const _0x2b820c=a98_0x1713;return _0x237990[_0x2b820c(0x1c0)]()[_0x2b820c(0x1bd)](/_([a-z])/g,(_0x1a3551,_0x3f5491)=>_0x3f5491[_0x2b820c(0x1c2)]());}export function findHookLocationByRemoteId(_0x3b228f,_0x4cf2a5){const _0x473f45=a98_0x1713;if(!_0x4cf2a5)return undefined;for(const _0x2ac268 of Object[_0x473f45(0x1b6)](_0x3b228f)){if(_0x2ac268[_0x473f45(0x1be)]===_0x4cf2a5&&_0x2ac268[_0x473f45(0x1c9)]&&_0x2ac268['operationType']&&_0x2ac268[_0x473f45(0x1c3)])return{'datasetCode':_0x2ac268[_0x473f45(0x1c9)],'operationType':_0x2ac268[_0x473f45(0x1c4)],'functionNode':_0x2ac268[_0x473f45(0x1c3)]};}return undefined;}function a98_0xdcf9(){const _0x524c30=['2085412zdYZYW','6631385guRofQ','datasetCode','test','1260ZuZYBG','178839VFxfbI','values','4sKhKGY','7dFLOML','match','1673565PpuRCu','321824DpphBm','trim','replace','remoteId','915121qkbsmj','toLowerCase','before','toUpperCase','functionNode','operationType','1910334gMszlB','after'];a98_0xdcf9=function(){return _0x524c30;};return a98_0xdcf9();}export function extractScriptDescription(_0x3373d3){const _0x3ceedb=a98_0x1713,_0x1279dd=_0x3373d3[_0x3ceedb(0x1b9)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x1279dd?.[0x1]?.[_0x3ceedb(0x1bc)]()||undefined;}export function isValidBffFunctionName(_0x35d909){const _0x48b704=a98_0x1713;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x48b704(0x1ca)](_0x35d909);}function a98_0x1713(_0x4c63fd,_0x2a2c90){_0x4c63fd=_0x4c63fd-0x1b5;const _0xdcf99a=a98_0xdcf9();let _0x1713ab=_0xdcf99a[_0x4c63fd];return _0x1713ab;}export function normalizeHookFunctionNode(_0x278d95){const _0x209a9d=a98_0x1713;if(!_0x278d95)return undefined;const _0x13016a=_0x278d95[_0x209a9d(0x1bc)]()[_0x209a9d(0x1c0)]();if(_0x13016a===_0x209a9d(0x1c1)||_0x13016a===_0x209a9d(0x1c6))return _0x13016a;return undefined;}
@@ -1 +1 @@
1
- (function(_0x1f69dd,_0x551915){const _0x2573c5=a99_0x4a5b,_0x543043=_0x1f69dd();while(!![]){try{const _0x59c2b8=parseInt(_0x2573c5(0xeb))/0x1+parseInt(_0x2573c5(0xd1))/0x2*(parseInt(_0x2573c5(0xdd))/0x3)+-parseInt(_0x2573c5(0xea))/0x4*(-parseInt(_0x2573c5(0xd2))/0x5)+-parseInt(_0x2573c5(0xec))/0x6*(-parseInt(_0x2573c5(0xd7))/0x7)+-parseInt(_0x2573c5(0xe0))/0x8*(-parseInt(_0x2573c5(0xdf))/0x9)+parseInt(_0x2573c5(0xd3))/0xa*(-parseInt(_0x2573c5(0xe6))/0xb)+-parseInt(_0x2573c5(0xd4))/0xc;if(_0x59c2b8===_0x551915)break;else _0x543043['push'](_0x543043['shift']());}catch(_0x158809){_0x543043['push'](_0x543043['shift']());}}}(a99_0x43ce,0x457a8));function a99_0x4a5b(_0x6249ab,_0x58bdc8){_0x6249ab=_0x6249ab-0xd1;const _0x43cef2=a99_0x43ce();let _0x4a5be5=_0x43cef2[_0x6249ab];return _0x4a5be5;}import{listDatasets}from'./api-client.js';function a99_0x43ce(){const _0x1d499e=['entries','get','find','dbId','dbtableConfig','195udsYPA','join','91179TVNQSq','424gLYOfy','\x22.\x20Available:\x20','filter','dbName','toLowerCase','length','687137UeQxHi','includes','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','set','3368JtgWhY','410978mMXJbl','6smKvXb','isNaN','6694vnULAn','295jQsUff','60zyydxp','12639912pweguL','.\x20Be\x20more\x20specific.','map','3482906QqzJtl'];a99_0x43ce=function(){return _0x1d499e;};return a99_0x43ce();}const cache=new Map();export async function listDatabases(_0xc7f577){const _0x1b6186=a99_0x4a5b;if(cache['has'](_0xc7f577))return cache[_0x1b6186(0xd9)](_0xc7f577);const _0xc54fb7=await listDatasets(_0xc7f577),_0x93d7e0=new Map();for(const _0x4e3046 of _0xc54fb7){const _0x1bef63=_0x4e3046[_0x1b6186(0xdc)];_0x1bef63?.['dbId']!=null&&_0x93d7e0[_0x1b6186(0xe9)](_0x1bef63[_0x1b6186(0xdb)],_0x1bef63[_0x1b6186(0xe3)]??'db-'+_0x1bef63['dbId']);}const _0x20e6ae=[..._0x93d7e0[_0x1b6186(0xd8)]()][_0x1b6186(0xd6)](([_0x5cd5f9,_0x176e0e])=>({'dbId':_0x5cd5f9,'dbName':_0x176e0e}));return cache[_0x1b6186(0xe9)](_0xc7f577,_0x20e6ae),_0x20e6ae;}export async function resolveDb(_0x1049ec,_0x2f351b){const _0x79b577=a99_0x4a5b,_0x41be74=await listDatabases(_0x1049ec);if(_0x41be74[_0x79b577(0xe5)]===0x0)return{'resolved':[],'error':_0x79b577(0xe8)};if(!_0x2f351b)return{'resolved':_0x41be74};const _0x32daf9=Number(_0x2f351b);if(!Number[_0x79b577(0xed)](_0x32daf9)){const _0x2b0c21=_0x41be74[_0x79b577(0xda)](_0x445c57=>_0x445c57['dbId']===_0x32daf9);if(_0x2b0c21)return{'resolved':[_0x2b0c21]};}const _0x89e5c7=_0x2f351b['toLowerCase'](),_0x565d46=_0x41be74[_0x79b577(0xe2)](_0x260f9f=>_0x260f9f[_0x79b577(0xe3)][_0x79b577(0xe4)]()[_0x79b577(0xe7)](_0x89e5c7));if(_0x565d46[_0x79b577(0xe5)]>0x0)return{'resolved':_0x565d46};const _0x5e67b8=_0x41be74[_0x79b577(0xd6)](_0x5cf3d0=>_0x5cf3d0['dbName']+'\x20('+_0x5cf3d0[_0x79b577(0xdb)]+')')[_0x79b577(0xde)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x2f351b+_0x79b577(0xe1)+_0x5e67b8};}export async function resolveOneDb(_0x2de76b,_0xfa77df){const _0xe3cf33=a99_0x4a5b,{resolved:_0x259e02,error:_0x5738f6}=await resolveDb(_0x2de76b,_0xfa77df);if(_0x5738f6)return{'db':null,'error':_0x5738f6};if(_0x259e02[_0xe3cf33(0xe5)]===0x1)return{'db':_0x259e02[0x0]};if(!_0xfa77df){const _0xf01774=_0x259e02[_0xe3cf33(0xd6)](_0x273cbb=>_0x273cbb['dbName']+'\x20('+_0x273cbb[_0xe3cf33(0xdb)]+')')['join'](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0xf01774};}const _0xd4b4f1=_0x259e02[_0xe3cf33(0xd6)](_0x566be3=>_0x566be3[_0xe3cf33(0xe3)]+'\x20('+_0x566be3['dbId']+')')[_0xe3cf33(0xde)](',\x20');return{'db':null,'error':'\x22'+_0xfa77df+'\x22\x20matches\x20multiple\x20databases:\x20'+_0xd4b4f1+_0xe3cf33(0xd5)};}export async function getDbName(_0x349b02,_0x2cbb20){const _0x9b3717=a99_0x4a5b,_0x5036f2=await listDatabases(_0x349b02);return _0x5036f2[_0x9b3717(0xda)](_0x2cb468=>_0x2cb468[_0x9b3717(0xdb)]===_0x2cbb20)?.['dbName'];}
1
+ (function(_0xe21d2e,_0x39f71f){const _0x187c53=a99_0x412c,_0x34a557=_0xe21d2e();while(!![]){try{const _0x104e80=-parseInt(_0x187c53(0xaf))/0x1+parseInt(_0x187c53(0xc4))/0x2+parseInt(_0x187c53(0xb9))/0x3*(parseInt(_0x187c53(0xbf))/0x4)+parseInt(_0x187c53(0xc1))/0x5+-parseInt(_0x187c53(0xbd))/0x6*(parseInt(_0x187c53(0xc7))/0x7)+-parseInt(_0x187c53(0xb2))/0x8*(-parseInt(_0x187c53(0xb5))/0x9)+-parseInt(_0x187c53(0xb3))/0xa*(-parseInt(_0x187c53(0xc6))/0xb);if(_0x104e80===_0x39f71f)break;else _0x34a557['push'](_0x34a557['shift']());}catch(_0x3f8b50){_0x34a557['push'](_0x34a557['shift']());}}}(a99_0x4838,0x1ff35));function a99_0x4838(){const _0x2c81e5=['540980yBQGbH','set','find','312666iiVqow','db-','11Lbazys','21VhpImu','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','toLowerCase','dbtableConfig','205960ocMOgr','\x22.\x20Available:\x20','dbId','24uJnhLH','151630nSDxZX','\x22\x20matches\x20multiple\x20databases:\x20','1719NiUZRn','isNaN','filter','length','3867NTkuWC','entries','dbName','map','75066lvScFC','join','292XMuRNJ','get'];a99_0x4838=function(){return _0x2c81e5;};return a99_0x4838();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x344e6c){const _0x3a514a=a99_0x412c;if(cache['has'](_0x344e6c))return cache[_0x3a514a(0xc0)](_0x344e6c);const _0x243206=await listDatasets(_0x344e6c),_0x58c422=new Map();for(const _0x43b117 of _0x243206){const _0xd456c6=_0x43b117[_0x3a514a(0xae)];_0xd456c6?.['dbId']!=null&&_0x58c422[_0x3a514a(0xc2)](_0xd456c6[_0x3a514a(0xb1)],_0xd456c6[_0x3a514a(0xbb)]??_0x3a514a(0xc5)+_0xd456c6[_0x3a514a(0xb1)]);}const _0x5b5546=[..._0x58c422[_0x3a514a(0xba)]()][_0x3a514a(0xbc)](([_0x74818,_0x1d481d])=>({'dbId':_0x74818,'dbName':_0x1d481d}));return cache[_0x3a514a(0xc2)](_0x344e6c,_0x5b5546),_0x5b5546;}export async function resolveDb(_0x18dc9c,_0x5688d1){const _0x47696f=a99_0x412c,_0x3379a3=await listDatabases(_0x18dc9c);if(_0x3379a3['length']===0x0)return{'resolved':[],'error':_0x47696f(0xac)};if(!_0x5688d1)return{'resolved':_0x3379a3};const _0x5171d4=Number(_0x5688d1);if(!Number[_0x47696f(0xb6)](_0x5171d4)){const _0x444e91=_0x3379a3[_0x47696f(0xc3)](_0x8d5f1c=>_0x8d5f1c['dbId']===_0x5171d4);if(_0x444e91)return{'resolved':[_0x444e91]};}const _0x514d2a=_0x5688d1[_0x47696f(0xad)](),_0x8c0db2=_0x3379a3[_0x47696f(0xb7)](_0x59434f=>_0x59434f[_0x47696f(0xbb)]['toLowerCase']()['includes'](_0x514d2a));if(_0x8c0db2[_0x47696f(0xb8)]>0x0)return{'resolved':_0x8c0db2};const _0x4d4306=_0x3379a3[_0x47696f(0xbc)](_0x27b9e7=>_0x27b9e7[_0x47696f(0xbb)]+'\x20('+_0x27b9e7[_0x47696f(0xb1)]+')')[_0x47696f(0xbe)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x5688d1+_0x47696f(0xb0)+_0x4d4306};}function a99_0x412c(_0x183d47,_0x363385){_0x183d47=_0x183d47-0xac;const _0x483872=a99_0x4838();let _0x412c8c=_0x483872[_0x183d47];return _0x412c8c;}export async function resolveOneDb(_0x5bc7bd,_0x510879){const _0x2bbfbe=a99_0x412c,{resolved:_0x396c15,error:_0x52a00d}=await resolveDb(_0x5bc7bd,_0x510879);if(_0x52a00d)return{'db':null,'error':_0x52a00d};if(_0x396c15[_0x2bbfbe(0xb8)]===0x1)return{'db':_0x396c15[0x0]};if(!_0x510879){const _0x2fb6f4=_0x396c15['map'](_0x570748=>_0x570748[_0x2bbfbe(0xbb)]+'\x20('+_0x570748['dbId']+')')[_0x2bbfbe(0xbe)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x2fb6f4};}const _0x3ec79f=_0x396c15[_0x2bbfbe(0xbc)](_0x9f56a4=>_0x9f56a4[_0x2bbfbe(0xbb)]+'\x20('+_0x9f56a4[_0x2bbfbe(0xb1)]+')')[_0x2bbfbe(0xbe)](',\x20');return{'db':null,'error':'\x22'+_0x510879+_0x2bbfbe(0xb4)+_0x3ec79f+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x38be66,_0x1a741d){const _0x527f18=a99_0x412c,_0x267767=await listDatabases(_0x38be66);return _0x267767[_0x527f18(0xc3)](_0x48960b=>_0x48960b['dbId']===_0x1a741d)?.['dbName'];}
@@ -1 +1 @@
1
- (function(_0x4145f5,_0x575159){const _0x3faa73=a100_0x3655,_0x310a95=_0x4145f5();while(!![]){try{const _0x251d3f=parseInt(_0x3faa73(0x16a))/0x1*(-parseInt(_0x3faa73(0x151))/0x2)+-parseInt(_0x3faa73(0x15d))/0x3*(-parseInt(_0x3faa73(0x162))/0x4)+-parseInt(_0x3faa73(0x158))/0x5+parseInt(_0x3faa73(0x16c))/0x6+-parseInt(_0x3faa73(0x173))/0x7*(parseInt(_0x3faa73(0x170))/0x8)+-parseInt(_0x3faa73(0x150))/0x9+-parseInt(_0x3faa73(0x174))/0xa*(-parseInt(_0x3faa73(0x153))/0xb);if(_0x251d3f===_0x575159)break;else _0x310a95['push'](_0x310a95['shift']());}catch(_0x1e04fb){_0x310a95['push'](_0x310a95['shift']());}}}(a100_0x32ba,0x8fded));export function detectSqlType(_0x1e3a66){const _0x4965dc=a100_0x3655;if(!_0x1e3a66?.[_0x4965dc(0x16d)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x291382=_0x1e3a66[_0x4965dc(0x171)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4965dc(0x171)](/\/\*[\s\S]*?\*\//g,'')[_0x4965dc(0x16d)](),_0x5c613b=_0x291382[_0x4965dc(0x15c)]('\x0a');let _0xb60003='';for(const _0x32ce76 of _0x5c613b){const _0x3c2e34=_0x32ce76[_0x4965dc(0x16d)]();if(!_0x3c2e34||_0x3c2e34[_0x4965dc(0x16b)]('--')||_0x3c2e34[_0x4965dc(0x16b)]('/*'))continue;_0xb60003=_0x3c2e34;break;}const _0x1f481c=_0xb60003[_0x4965dc(0x164)]();if(_0x1f481c['startsWith']('SELECT')||_0x1f481c['startsWith'](_0x4965dc(0x166))){const _0x57b6b7=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4965dc(0x165)](_0x291382);return{'type':_0x4965dc(0x161),'isSelectOnly':!_0x57b6b7,'isDangerous':_0x57b6b7,'reason':_0x57b6b7?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x1f481c[_0x4965dc(0x16b)](_0x4965dc(0x163)))return{'type':_0x4965dc(0x163),'isSelectOnly':![],'isDangerous':![]};if(_0x1f481c[_0x4965dc(0x16b)](_0x4965dc(0x157)))return{'type':_0x4965dc(0x157),'isSelectOnly':![],'isDangerous':![]};if(_0x1f481c[_0x4965dc(0x16b)]('DELETE'))return{'type':_0x4965dc(0x156),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4965dc(0x15b)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x1f481c))return{'type':_0x4965dc(0x169),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4965dc(0x152)};return{'type':_0x4965dc(0x154),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42fcb1){const _0x106f24=a100_0x3655,_0x21ff60=_0x42fcb1[_0x106f24(0x171)](/#\{[^}]*\}/g,'?')[_0x106f24(0x171)](/\$\{[^}]*\}/g,'?')[_0x106f24(0x171)](/'[^']*'/g,'\x27\x27')[_0x106f24(0x171)](/--.*$/gm,'')[_0x106f24(0x171)](/\/\*[\s\S]*?\*\//g,''),_0x190ca=[],_0x230eed=_0x21ff60[_0x106f24(0x16e)](/FROM\s+([^\s,)(]+)/i);if(_0x230eed?.[0x1])_0x190ca[_0x106f24(0x16f)](_0x230eed[0x1]['replace'](/[`"]/g,''));for(const _0x1141c4 of _0x21ff60[_0x106f24(0x168)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x48d126=_0x1141c4[0x1]?.[_0x106f24(0x171)](/[`"]/g,'');if(_0x48d126&&!_0x190ca['includes'](_0x48d126))_0x190ca['push'](_0x48d126);}const _0x449f99=_0x21ff60[_0x106f24(0x16e)](/INTO\s+([^\s(]+)/i);if(_0x449f99?.[0x1]){const _0x4dc48e=_0x449f99[0x1][_0x106f24(0x171)](/[`"]/g,'');if(!_0x190ca[_0x106f24(0x155)](_0x4dc48e))_0x190ca[_0x106f24(0x16f)](_0x4dc48e);}const _0x3e972a=_0x21ff60[_0x106f24(0x16e)](/UPDATE\s+([^\s,)(]+)/i);if(_0x3e972a?.[0x1]){const _0x4f775b=_0x3e972a[0x1][_0x106f24(0x171)](/[`"]/g,'');if(!_0x190ca['includes'](_0x4f775b))_0x190ca[_0x106f24(0x16f)](_0x4f775b);}return _0x190ca;}function extractParameters(_0x35ae48){const _0x27d3f0=a100_0x3655,_0x2bae9c=new Set();for(const _0x5d1bc1 of _0x35ae48[_0x27d3f0(0x168)](/#\{(\w+)\}/g))if(_0x5d1bc1[0x1])_0x2bae9c['add'](_0x5d1bc1[0x1]);for(const _0x52f31c of _0x35ae48[_0x27d3f0(0x168)](/\$\{(\w+)\}/g))if(_0x52f31c[0x1])_0x2bae9c[_0x27d3f0(0x160)](_0x52f31c[0x1]);return Array[_0x27d3f0(0x159)](_0x2bae9c);}function a100_0x3655(_0x29d4d2,_0x5dc971){_0x29d4d2=_0x29d4d2-0x14e;const _0x32ba03=a100_0x32ba();let _0x36550d=_0x32ba03[_0x29d4d2];return _0x36550d;}export function validateSql(_0x3f99b9){const _0x58975f=a100_0x3655,_0xa73749=detectSqlType(_0x3f99b9),_0x22348d=extractTables(_0x3f99b9),_0x49e219=extractParameters(_0x3f99b9);if(_0xa73749['isDangerous'])return{'valid':![],'sqlType':_0xa73749,'tables':_0x22348d,'parameters':_0x49e219,'message':_0xa73749['reason']||_0xa73749[_0x58975f(0x15f)]+_0x58975f(0x172)};if(_0xa73749[_0x58975f(0x15f)]==='UNKNOWN')return{'valid':![],'sqlType':_0xa73749,'tables':_0x22348d,'parameters':_0x49e219,'message':_0x58975f(0x15a)};return{'valid':!![],'sqlType':_0xa73749,'tables':_0x22348d,'parameters':_0x49e219,'message':_0xa73749[_0x58975f(0x15f)]+'\x20query\x20targeting\x20'+(_0x22348d[_0x58975f(0x14f)]?_0x22348d[_0x58975f(0x15e)](',\x20'):_0x58975f(0x14e))+(_0x49e219[_0x58975f(0x14f)]?_0x58975f(0x167)+_0x49e219[_0x58975f(0x15e)](',\x20'):'')};}function a100_0x32ba(){const _0x376ea1=['2289825NWBVbw','34dWTINr','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','11nllQFp','UNKNOWN','includes','DELETE','UPDATE','2483780ODDjJh','from','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','split','3zwyQce','join','type','add','SELECT','1740828lOARgs','INSERT','toUpperCase','test','WITH','\x20with\x20parameters:\x20','matchAll','DDL','65869WTavWA','startsWith','941196jLktRV','trim','match','push','78536cQgrCg','replace','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','35sRmetc','19172590RYueRj','unknown\x20table(s)','length'];a100_0x32ba=function(){return _0x376ea1;};return a100_0x32ba();}
1
+ (function(_0x2e4aa0,_0x3e1dc1){const _0x4964b1=a100_0x5e9d,_0x5336ea=_0x2e4aa0();while(!![]){try{const _0x3900bb=parseInt(_0x4964b1(0x15c))/0x1*(-parseInt(_0x4964b1(0x147))/0x2)+parseInt(_0x4964b1(0x155))/0x3+parseInt(_0x4964b1(0x159))/0x4*(parseInt(_0x4964b1(0x15a))/0x5)+parseInt(_0x4964b1(0x158))/0x6+parseInt(_0x4964b1(0x14b))/0x7+parseInt(_0x4964b1(0x149))/0x8+-parseInt(_0x4964b1(0x13e))/0x9*(parseInt(_0x4964b1(0x14c))/0xa);if(_0x3900bb===_0x3e1dc1)break;else _0x5336ea['push'](_0x5336ea['shift']());}catch(_0x33dca0){_0x5336ea['push'](_0x5336ea['shift']());}}}(a100_0x188e,0x4ff28));export function detectSqlType(_0x4c211b){const _0x77d35d=a100_0x5e9d;if(!_0x4c211b?.[_0x77d35d(0x15f)]())return{'type':_0x77d35d(0x14f),'isSelectOnly':![],'isDangerous':![],'reason':_0x77d35d(0x148)};const _0x36ee75=_0x4c211b[_0x77d35d(0x13f)](/#\{[^}]*\}/g,'?')[_0x77d35d(0x13f)](/\$\{[^}]*\}/g,'?')[_0x77d35d(0x13f)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x396daf=_0x36ee75['split']('\x0a');let _0x2ea6fd='';for(const _0x3b57df of _0x396daf){const _0x14b552=_0x3b57df['trim']();if(!_0x14b552||_0x14b552[_0x77d35d(0x156)]('--')||_0x14b552[_0x77d35d(0x156)]('/*'))continue;_0x2ea6fd=_0x14b552;break;}const _0x45f5ea=_0x2ea6fd['toUpperCase']();if(_0x45f5ea['startsWith'](_0x77d35d(0x15b))||_0x45f5ea['startsWith']('WITH')){const _0x1ba29e=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x77d35d(0x14a)](_0x36ee75);return{'type':_0x77d35d(0x15b),'isSelectOnly':!_0x1ba29e,'isDangerous':_0x1ba29e,'reason':_0x1ba29e?_0x77d35d(0x160):undefined};}if(_0x45f5ea['startsWith'](_0x77d35d(0x141)))return{'type':_0x77d35d(0x141),'isSelectOnly':![],'isDangerous':![]};if(_0x45f5ea[_0x77d35d(0x156)](_0x77d35d(0x157)))return{'type':_0x77d35d(0x157),'isSelectOnly':![],'isDangerous':![]};if(_0x45f5ea['startsWith'](_0x77d35d(0x146)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x77d35d(0x140)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x77d35d(0x14a)](_0x45f5ea))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x36abab){const _0x57900d=a100_0x5e9d,_0x59174e=_0x36abab[_0x57900d(0x13f)](/#\{[^}]*\}/g,'?')[_0x57900d(0x13f)](/\$\{[^}]*\}/g,'?')[_0x57900d(0x13f)](/'[^']*'/g,'\x27\x27')[_0x57900d(0x13f)](/--.*$/gm,'')[_0x57900d(0x13f)](/\/\*[\s\S]*?\*\//g,''),_0x591a0f=[],_0x34aab4=_0x59174e['match'](/FROM\s+([^\s,)(]+)/i);if(_0x34aab4?.[0x1])_0x591a0f[_0x57900d(0x153)](_0x34aab4[0x1]['replace'](/[`"]/g,''));for(const _0x196f72 of _0x59174e[_0x57900d(0x14e)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x540efc=_0x196f72[0x1]?.['replace'](/[`"]/g,'');if(_0x540efc&&!_0x591a0f[_0x57900d(0x151)](_0x540efc))_0x591a0f[_0x57900d(0x153)](_0x540efc);}const _0x6893cb=_0x59174e[_0x57900d(0x15d)](/INTO\s+([^\s(]+)/i);if(_0x6893cb?.[0x1]){const _0x588987=_0x6893cb[0x1][_0x57900d(0x13f)](/[`"]/g,'');if(!_0x591a0f[_0x57900d(0x151)](_0x588987))_0x591a0f[_0x57900d(0x153)](_0x588987);}const _0x397004=_0x59174e[_0x57900d(0x15d)](/UPDATE\s+([^\s,)(]+)/i);if(_0x397004?.[0x1]){const _0xa5599f=_0x397004[0x1][_0x57900d(0x13f)](/[`"]/g,'');if(!_0x591a0f[_0x57900d(0x151)](_0xa5599f))_0x591a0f[_0x57900d(0x153)](_0xa5599f);}return _0x591a0f;}function extractParameters(_0x2d7954){const _0x427f97=a100_0x5e9d,_0x51f8f8=new Set();for(const _0x3a1621 of _0x2d7954[_0x427f97(0x14e)](/#\{(\w+)\}/g))if(_0x3a1621[0x1])_0x51f8f8['add'](_0x3a1621[0x1]);for(const _0x252dc6 of _0x2d7954[_0x427f97(0x14e)](/\$\{(\w+)\}/g))if(_0x252dc6[0x1])_0x51f8f8[_0x427f97(0x144)](_0x252dc6[0x1]);return Array[_0x427f97(0x142)](_0x51f8f8);}function a100_0x5e9d(_0x45ed0b,_0x18191b){_0x45ed0b=_0x45ed0b-0x13e;const _0x188e51=a100_0x188e();let _0x5e9d28=_0x188e51[_0x45ed0b];return _0x5e9d28;}function a100_0x188e(){const _0x448c4f=['INSERT','from','reason','add','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','DELETE','32366bHFAyD','SQL\x20content\x20is\x20empty','3875584TIZtJw','test','710479ctCqaw','10VnkMRr','length','matchAll','UNKNOWN','unknown\x20table(s)','includes','\x20query\x20targeting\x20','push','isDangerous','228618hATMur','startsWith','UPDATE','3130344ldhhPK','194856SweISv','25tepcpI','SELECT','2MjYNes','match','type','trim','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','join','\x20with\x20parameters:\x20','9608535RXHWvt','replace','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a100_0x188e=function(){return _0x448c4f;};return a100_0x188e();}export function validateSql(_0x277345){const _0x47b1cb=a100_0x5e9d,_0x420ad3=detectSqlType(_0x277345),_0x5c1306=extractTables(_0x277345),_0x18896e=extractParameters(_0x277345);if(_0x420ad3[_0x47b1cb(0x154)])return{'valid':![],'sqlType':_0x420ad3,'tables':_0x5c1306,'parameters':_0x18896e,'message':_0x420ad3[_0x47b1cb(0x143)]||_0x420ad3['type']+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x420ad3[_0x47b1cb(0x15e)]===_0x47b1cb(0x14f))return{'valid':![],'sqlType':_0x420ad3,'tables':_0x5c1306,'parameters':_0x18896e,'message':_0x47b1cb(0x145)};return{'valid':!![],'sqlType':_0x420ad3,'tables':_0x5c1306,'parameters':_0x18896e,'message':_0x420ad3[_0x47b1cb(0x15e)]+_0x47b1cb(0x152)+(_0x5c1306[_0x47b1cb(0x14d)]?_0x5c1306[_0x47b1cb(0x161)](',\x20'):_0x47b1cb(0x150))+(_0x18896e[_0x47b1cb(0x14d)]?_0x47b1cb(0x162)+_0x18896e['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a101_0x3ae818=a101_0x313a;(function(_0x182c8e,_0xa5cc32){const _0x431e21=a101_0x313a,_0x4be022=_0x182c8e();while(!![]){try{const _0x50d33d=parseInt(_0x431e21(0x76))/0x1*(parseInt(_0x431e21(0x7a))/0x2)+-parseInt(_0x431e21(0x6d))/0x3+-parseInt(_0x431e21(0x78))/0x4+parseInt(_0x431e21(0x8d))/0x5*(parseInt(_0x431e21(0x6f))/0x6)+-parseInt(_0x431e21(0x7e))/0x7+parseInt(_0x431e21(0x72))/0x8*(parseInt(_0x431e21(0x70))/0x9)+-parseInt(_0x431e21(0x7f))/0xa;if(_0x50d33d===_0xa5cc32)break;else _0x4be022['push'](_0x4be022['shift']());}catch(_0x5e54bd){_0x4be022['push'](_0x4be022['shift']());}}}(a101_0x52f3,0x72d75));import{CLI_BIN_NAME}from'./constant/cli.js';function a101_0x52f3(){const _0x4bbfe8=['code','exitCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Not\x20in\x20a\x20','validation_error','16795oRPokB','flag_missing','Missing\x20required\x20flag:\x20--','675567VfJXcu','Unknown\x20command:\x20','594yqSSgw','308475sufqbT','Run\x20`','72BqTMuA','config_missing','name','join','11UVZqcl','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','241148KdBqsb','unknown_command','139982TeGNZp','hint','Tip:\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','2448502eTUSrQ','3052660kECBfz','not_in_project','CliError','Configuration\x20file\x20not\x20found','Authentication\x20required','Operation\x20cancelled.','Network\x20error:\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','api_error'];a101_0x52f3=function(){return _0x4bbfe8;};return a101_0x52f3();}function a101_0x313a(_0x1b5190,_0x4b19b2){_0x1b5190=_0x1b5190-0x6c;const _0x52f381=a101_0x52f3();let _0x313aee=_0x52f381[_0x1b5190];return _0x313aee;}export class CliError extends Error{[a101_0x3ae818(0x88)];[a101_0x3ae818(0x89)];['hint'];constructor(_0x27a126,_0x3cb00b,_0xcef257,_0x4226f5){const _0x596e1c=a101_0x3ae818;super(_0xcef257),this[_0x596e1c(0x74)]=_0x596e1c(0x81),this[_0x596e1c(0x88)]=_0x27a126,this['exitCode']=_0x3cb00b,this[_0x596e1c(0x7b)]=_0x4226f5;}}export const CliErrors={'authRequired':_0x1f97d2=>new CliError('auth_required',0x1,a101_0x3ae818(0x83),_0x1f97d2??a101_0x3ae818(0x71)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.'),'configMissing':_0x473aca=>new CliError(a101_0x3ae818(0x73),0x1,a101_0x3ae818(0x82),_0x473aca??['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a101_0x3ae818(0x8a),a101_0x3ae818(0x7c)+CLI_BIN_NAME+a101_0x3ae818(0x86)][a101_0x3ae818(0x75)](a101_0x3ae818(0x7d))),'notInProject':()=>new CliError(a101_0x3ae818(0x80),0x1,a101_0x3ae818(0x8b)+CLI_BIN_NAME+'\x20project\x20directory','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'),'apiError':(_0x248fa3,_0x10d700)=>new CliError(a101_0x3ae818(0x87),0x2,_0x248fa3,_0x10d700),'networkError':_0x84ba40=>new CliError('network_error',0x2,a101_0x3ae818(0x85)+_0x84ba40,a101_0x3ae818(0x77)),'unknownCommand':_0x22bd42=>new CliError(a101_0x3ae818(0x79),0x1,a101_0x3ae818(0x6e)+_0x22bd42,a101_0x3ae818(0x71)+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.'),'flagMissing':(_0x1b1f8e,_0x4dec4e)=>new CliError(a101_0x3ae818(0x8e),0x1,a101_0x3ae818(0x6c)+_0x1b1f8e,_0x4dec4e),'validation':(_0x2a763e,_0x516fb4)=>new CliError(a101_0x3ae818(0x8c),0x1,_0x2a763e,_0x516fb4),'cancelled':_0x24432a=>new CliError('cancelled',0x0,_0x24432a??a101_0x3ae818(0x84),undefined)};
1
+ const a101_0x10050a=a101_0x2a2f;function a101_0x2a2f(_0x665b26,_0x2403c2){_0x665b26=_0x665b26-0x1ea;const _0x35dcdf=a101_0x35dc();let _0x2a2fca=_0x35dcdf[_0x665b26];return _0x2a2fca;}function a101_0x35dc(){const _0x6865ba=['code','exitCode','hint','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','api_error','join','\x20auth`\x20to\x20login\x20first.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','name','4395284tUjIar','3SXPRya','CliError','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','network_error','1721392fYRjrH','Operation\x20cancelled.','10cKIqWK','validation_error','Tip:\x20`','unknown_command','flag_missing','15735214fPeKnB','config_missing','1597232EgZQyp','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','5uTmVsU','\x20project\x20directory','10235709TfrMQB','\x0a\x20\x20\x20\x20\x20\x20\x20','21RJJZyK','7373418FvrAQB','881028eDmkvI','not_in_project','\x20--help`\x20to\x20see\x20available\x20commands.','Unknown\x20command:\x20'];a101_0x35dc=function(){return _0x6865ba;};return a101_0x35dc();}(function(_0x5734ad,_0x4a2807){const _0xa7f743=a101_0x2a2f,_0x374ad6=_0x5734ad();while(!![]){try{const _0x58eb91=-parseInt(_0xa7f743(0x207))/0x1+parseInt(_0xa7f743(0x1ff))/0x2+parseInt(_0xa7f743(0x1f2))/0x3*(-parseInt(_0xa7f743(0x1f1))/0x4)+parseInt(_0xa7f743(0x201))/0x5*(-parseInt(_0xa7f743(0x206))/0x6)+parseInt(_0xa7f743(0x205))/0x7*(parseInt(_0xa7f743(0x1f6))/0x8)+parseInt(_0xa7f743(0x203))/0x9*(parseInt(_0xa7f743(0x1f8))/0xa)+parseInt(_0xa7f743(0x1fd))/0xb;if(_0x58eb91===_0x4a2807)break;else _0x374ad6['push'](_0x374ad6['shift']());}catch(_0x265ac2){_0x374ad6['push'](_0x374ad6['shift']());}}}(a101_0x35dc,0xc4159));import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{['code'];[a101_0x10050a(0x20c)];[a101_0x10050a(0x1ea)];constructor(_0x3c4833,_0x1d4481,_0x342417,_0x4dc0c3){const _0x106e52=a101_0x10050a;super(_0x342417),this[_0x106e52(0x1f0)]=_0x106e52(0x1f3),this[_0x106e52(0x20b)]=_0x3c4833,this[_0x106e52(0x20c)]=_0x1d4481,this[_0x106e52(0x1ea)]=_0x4dc0c3;}}export const CliErrors={'authRequired':_0x3ff372=>new CliError('auth_required',0x1,'Authentication\x20required',_0x3ff372??'Run\x20`'+CLI_BIN_NAME+a101_0x10050a(0x1ee)),'configMissing':_0x3f05c0=>new CliError(a101_0x10050a(0x1fe),0x1,'Configuration\x20file\x20not\x20found',_0x3f05c0??['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a101_0x10050a(0x1f4),a101_0x10050a(0x1fa)+CLI_BIN_NAME+a101_0x10050a(0x1eb)][a101_0x10050a(0x1ed)](a101_0x10050a(0x204))),'notInProject':()=>new CliError(a101_0x10050a(0x208),0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+a101_0x10050a(0x202),a101_0x10050a(0x200)),'apiError':(_0x4bf62f,_0x38f256)=>new CliError(a101_0x10050a(0x1ec),0x2,_0x4bf62f,_0x38f256),'networkError':_0x5e4078=>new CliError(a101_0x10050a(0x1f5),0x2,'Network\x20error:\x20'+_0x5e4078,a101_0x10050a(0x1ef)),'unknownCommand':_0x3f48c9=>new CliError(a101_0x10050a(0x1fb),0x1,a101_0x10050a(0x20a)+_0x3f48c9,'Run\x20`'+CLI_BIN_NAME+a101_0x10050a(0x209)),'flagMissing':(_0x297ec5,_0x29493d)=>new CliError(a101_0x10050a(0x1fc),0x1,'Missing\x20required\x20flag:\x20--'+_0x297ec5,_0x29493d),'validation':(_0x30fafd,_0x4b11b1)=>new CliError(a101_0x10050a(0x1f9),0x1,_0x30fafd,_0x4b11b1),'cancelled':_0x408d32=>new CliError('cancelled',0x0,_0x408d32??a101_0x10050a(0x1f7),undefined)};
@@ -1 +1 @@
1
- function a102_0x2165(_0x140434,_0x5a8eec){_0x140434=_0x140434-0x13b;const _0x4c726b=a102_0x4c72();let _0x216504=_0x4c726b[_0x140434];return _0x216504;}(function(_0xee44fe,_0x9d3152){const _0x58327c=a102_0x2165,_0x2b5e91=_0xee44fe();while(!![]){try{const _0x260dfb=-parseInt(_0x58327c(0x14e))/0x1+-parseInt(_0x58327c(0x14b))/0x2*(parseInt(_0x58327c(0x141))/0x3)+-parseInt(_0x58327c(0x14a))/0x4+parseInt(_0x58327c(0x14f))/0x5+-parseInt(_0x58327c(0x149))/0x6+-parseInt(_0x58327c(0x13b))/0x7+parseInt(_0x58327c(0x150))/0x8*(parseInt(_0x58327c(0x147))/0x9);if(_0x260dfb===_0x9d3152)break;else _0x2b5e91['push'](_0x2b5e91['shift']());}catch(_0x38f7e1){_0x2b5e91['push'](_0x2b5e91['shift']());}}}(a102_0x4c72,0x8c3c0));export function buildAllFlags(_0x2b774e){const _0x5bf5fe=a102_0x2165,_0xf06f7c=[..._0x2b774e[_0x5bf5fe(0x144)]];return _0x2b774e[_0x5bf5fe(0x146)]&&_0xf06f7c['push']({'name':_0x5bf5fe(0x152),'type':'boolean','description':_0x5bf5fe(0x13c)}),_0x2b774e[_0x5bf5fe(0x143)]!==![]&&_0xf06f7c[_0x5bf5fe(0x148)]({'name':_0x5bf5fe(0x151),'type':'string','default':_0x2b774e[_0x5bf5fe(0x145)]??'pretty','enum':[_0x5bf5fe(0x153),'pretty',_0x5bf5fe(0x13d),_0x5bf5fe(0x14c)],'description':_0x5bf5fe(0x142)}),_0x2b774e[_0x5bf5fe(0x154)]===_0x5bf5fe(0x140)&&_0xf06f7c[_0x5bf5fe(0x148)]({'name':_0x5bf5fe(0x13e),'type':_0x5bf5fe(0x13f),'description':_0x5bf5fe(0x14d)}),_0xf06f7c;}function a102_0x4c72(){const _0x277aa7=['defaultOutputFormat','dryRun','9ZnARuW','push','3871032wvaKiy','211104RuWJBb','4sRqiUt','compress','Skip\x20confirmation\x20prompt','208147XdFsNZ','5398950ROiuLI','14448584WHWBWN','format','dry-run','json','risk','1965418mDWkTT','Preview\x20the\x20operation\x20without\x20executing','table','yes','boolean','high-risk-write','1686891llmvpE','Output\x20format','hasFormat','flags'];a102_0x4c72=function(){return _0x277aa7;};return a102_0x4c72();}
1
+ (function(_0x361eb0,_0x396305){const _0x59d088=a102_0x6c5b,_0x42217f=_0x361eb0();while(!![]){try{const _0x2494fd=parseInt(_0x59d088(0xa1))/0x1*(-parseInt(_0x59d088(0xa3))/0x2)+-parseInt(_0x59d088(0x98))/0x3+parseInt(_0x59d088(0x91))/0x4+-parseInt(_0x59d088(0x9e))/0x5*(-parseInt(_0x59d088(0x95))/0x6)+-parseInt(_0x59d088(0xa4))/0x7*(parseInt(_0x59d088(0x93))/0x8)+parseInt(_0x59d088(0x92))/0x9*(-parseInt(_0x59d088(0x9b))/0xa)+parseInt(_0x59d088(0x99))/0xb*(parseInt(_0x59d088(0xa6))/0xc);if(_0x2494fd===_0x396305)break;else _0x42217f['push'](_0x42217f['shift']());}catch(_0x5e28db){_0x42217f['push'](_0x42217f['shift']());}}}(a102_0x1fba,0x1c934));function a102_0x6c5b(_0x30f7c4,_0x28e8dd){_0x30f7c4=_0x30f7c4-0x90;const _0x1fba5a=a102_0x1fba();let _0x6c5b5=_0x1fba5a[_0x30f7c4];return _0x6c5b5;}export function buildAllFlags(_0x19137d){const _0x37fbf6=a102_0x6c5b,_0x2bf48a=[..._0x19137d['flags']];return _0x19137d[_0x37fbf6(0x97)]&&_0x2bf48a[_0x37fbf6(0x9d)]({'name':'dry-run','type':_0x37fbf6(0x9c),'description':_0x37fbf6(0xa7)}),_0x19137d['hasFormat']!==![]&&_0x2bf48a[_0x37fbf6(0x9d)]({'name':'format','type':'string','default':_0x19137d[_0x37fbf6(0xa2)]??_0x37fbf6(0x9f),'enum':['json',_0x37fbf6(0x9f),_0x37fbf6(0x90)],'description':_0x37fbf6(0x94)}),_0x19137d[_0x37fbf6(0x96)]===_0x37fbf6(0xa0)&&_0x2bf48a[_0x37fbf6(0x9d)]({'name':_0x37fbf6(0x9a),'type':_0x37fbf6(0x9c),'description':_0x37fbf6(0xa5)}),_0x2bf48a;}function a102_0x1fba(){const _0x14fec4=['2GFzStr','defaultOutputFormat','146614XYRJwy','10983NtCVQe','Skip\x20confirmation\x20prompt','1380XVCFFE','Preview\x20the\x20operation\x20without\x20executing','compress','260468barLqx','9qTbNKj','456NtiGXR','Output\x20format','66kSWuVh','risk','dryRun','103221Qcbqwd','20471TfptHT','yes','793930aUjWPQ','boolean','push','85345WCwfus','pretty','high-risk-write'];a102_0x1fba=function(){return _0x14fec4;};return a102_0x1fba();}
@@ -1 +1 @@
1
- (function(_0x43f50e,_0x2483c0){const _0x5383b2=a103_0x175e,_0x49de16=_0x43f50e();while(!![]){try{const _0x158a35=parseInt(_0x5383b2(0x138))/0x1+-parseInt(_0x5383b2(0x140))/0x2+parseInt(_0x5383b2(0x12e))/0x3*(-parseInt(_0x5383b2(0x12a))/0x4)+parseInt(_0x5383b2(0x12c))/0x5+parseInt(_0x5383b2(0x139))/0x6+parseInt(_0x5383b2(0x136))/0x7*(-parseInt(_0x5383b2(0x134))/0x8)+-parseInt(_0x5383b2(0x13d))/0x9;if(_0x158a35===_0x2483c0)break;else _0x49de16['push'](_0x49de16['shift']());}catch(_0xefc5f3){_0x49de16['push'](_0x49de16['shift']());}}}(a103_0x29e8,0xd29b7));import{CliErrors}from'../errors.js';export function parseFlags(_0x4abdd9,_0x1cb4d1){const _0x537a7c=a103_0x175e,_0x3c621c={};for(const _0x33d879 of _0x4abdd9){const _0x1e5056=_0x1cb4d1[_0x33d879[_0x537a7c(0x14c)]]??_0x1cb4d1[toCamelCase(_0x33d879[_0x537a7c(0x14c)])];if(_0x1e5056===undefined||_0x1e5056===null){_0x33d879['default']!==undefined&&(_0x3c621c[_0x33d879[_0x537a7c(0x14c)]]=_0x33d879[_0x537a7c(0x12b)]);continue;}_0x3c621c[_0x33d879[_0x537a7c(0x14c)]]=coerce(_0x33d879,_0x1e5056);}for(const _0x23d38a of[_0x537a7c(0x13e),_0x537a7c(0x146),_0x537a7c(0x12f),_0x537a7c(0x135),'jq']){const _0x1cdeef=_0x1cb4d1[_0x23d38a];if(_0x1cdeef!==undefined){const _0x54c18b=_0x23d38a===_0x537a7c(0x146)?_0x537a7c(0x13e):_0x23d38a;_0x3c621c[_0x54c18b]=_0x1cdeef;}}return _0x3c621c;}function a103_0x175e(_0x3f6e2f,_0x5cb35f){_0x3f6e2f=_0x3f6e2f-0x129;const _0x29e88c=a103_0x29e8();let _0x175e84=_0x29e88c[_0x3f6e2f];return _0x175e84;}export function validateFlags(_0x3827fa,_0x956d75,_0x1014ba){const _0x3d33e4=a103_0x175e;for(const _0x2c712b of _0x3827fa){const _0x2ff166=_0x956d75[_0x2c712b['name']];if(_0x2c712b[_0x3d33e4(0x148)]&&(_0x2ff166===undefined||_0x2ff166===''))throw CliErrors[_0x3d33e4(0x12d)](_0x2c712b[_0x3d33e4(0x14c)],'--'+_0x2c712b[_0x3d33e4(0x14c)]+_0x3d33e4(0x149)+_0x1014ba+'`.');if(_0x2c712b['enum']&&_0x2c712b[_0x3d33e4(0x141)]['length']>0x0&&_0x2ff166!==undefined&&_0x2ff166!==''){if(!_0x2c712b[_0x3d33e4(0x141)]['includes'](String(_0x2ff166)))throw CliErrors[_0x3d33e4(0x147)](_0x3d33e4(0x145)+_0x2ff166+_0x3d33e4(0x130)+_0x2c712b[_0x3d33e4(0x14c)]+_0x3d33e4(0x143)+_0x2c712b[_0x3d33e4(0x141)][_0x3d33e4(0x131)](',\x20'));}if(_0x2c712b[_0x3d33e4(0x142)]&&_0x2ff166!==undefined&&_0x2ff166!==''){if(!_0x2c712b[_0x3d33e4(0x142)][_0x3d33e4(0x13b)][_0x3d33e4(0x13c)](String(_0x2ff166)))throw CliErrors[_0x3d33e4(0x147)](_0x3d33e4(0x14d)+_0x2c712b[_0x3d33e4(0x14c)]+_0x3d33e4(0x132)+_0x2c712b[_0x3d33e4(0x142)][_0x3d33e4(0x144)]+_0x3d33e4(0x13f)+_0x2ff166+'\x22.');}}}function coerce(_0x2c9bc2,_0x3e0619){const _0x47d81e=a103_0x175e;switch(_0x2c9bc2['type']){case _0x47d81e(0x14a):return _0x3e0619===!![]||_0x3e0619===_0x47d81e(0x133);case _0x47d81e(0x129):{const _0x15d4e0=Number(_0x3e0619);if(isNaN(_0x15d4e0))throw CliErrors['validation']('--'+_0x2c9bc2[_0x47d81e(0x14c)]+_0x47d81e(0x13a)+_0x3e0619+'\x22');return _0x15d4e0;}default:return String(_0x3e0619);}}function a103_0x29e8(){const _0x546353=['regex','test','3006657pigiqV','dry-run',',\x20got\x20\x22','1072992kUXbVT','enum','pattern','.\x20Allowed:\x20','description','Invalid\x20value\x20\x22','dryRun','validation','required','\x20is\x20required\x20for\x20`','boolean','replace','name','Invalid\x20--','number','9040lqXOnM','default','5867250KiJZXC','flagMissing','1095HSsiAY','yes','\x22\x20for\x20--','join',':\x20expected\x20','true','6296iNVOwV','format','371LbfOmv','toUpperCase','356461MWQhox','6419496cOLPFV','\x20expects\x20a\x20number,\x20got\x20\x22'];a103_0x29e8=function(){return _0x546353;};return a103_0x29e8();}function toCamelCase(_0x1a282f){const _0x3683d4=a103_0x175e;return _0x1a282f[_0x3683d4(0x14b)](/-([a-z])/g,(_0x10a8af,_0x243257)=>_0x243257[_0x3683d4(0x137)]());}
1
+ (function(_0x1c80ae,_0x417940){const _0x431a95=a103_0x1648,_0x3e903e=_0x1c80ae();while(!![]){try{const _0x4c8b57=-parseInt(_0x431a95(0x1fa))/0x1+parseInt(_0x431a95(0x212))/0x2*(-parseInt(_0x431a95(0x1fd))/0x3)+-parseInt(_0x431a95(0x1fb))/0x4+-parseInt(_0x431a95(0x20d))/0x5*(parseInt(_0x431a95(0x1f4))/0x6)+-parseInt(_0x431a95(0x203))/0x7+-parseInt(_0x431a95(0x206))/0x8+-parseInt(_0x431a95(0x20a))/0x9*(-parseInt(_0x431a95(0x213))/0xa);if(_0x4c8b57===_0x417940)break;else _0x3e903e['push'](_0x3e903e['shift']());}catch(_0x1d2b04){_0x3e903e['push'](_0x3e903e['shift']());}}}(a103_0x4642,0x42fb0));function a103_0x1648(_0x5b2431,_0x2f0880){_0x5b2431=_0x5b2431-0x1f4;const _0x4642a4=a103_0x4642();let _0x164824=_0x4642a4[_0x5b2431];return _0x164824;}import{CliErrors}from'../errors.js';export function parseFlags(_0x54ce00,_0xe3be64){const _0x245ba4=a103_0x1648,_0x235764={};for(const _0x575bbb of _0x54ce00){const _0xb4f44f=_0xe3be64[_0x575bbb[_0x245ba4(0x207)]]??_0xe3be64[toCamelCase(_0x575bbb[_0x245ba4(0x207)])];if(_0xb4f44f===undefined||_0xb4f44f===null){_0x575bbb[_0x245ba4(0x214)]!==undefined&&(_0x235764[_0x575bbb[_0x245ba4(0x207)]]=_0x575bbb[_0x245ba4(0x214)]);continue;}_0x235764[_0x575bbb[_0x245ba4(0x207)]]=coerce(_0x575bbb,_0xb4f44f);}for(const _0xc4e812 of[_0x245ba4(0x20b),_0x245ba4(0x205),'yes',_0x245ba4(0x1fe),'jq']){const _0xe6ab21=_0xe3be64[_0xc4e812];if(_0xe6ab21!==undefined){const _0x4ecbab=_0xc4e812==='dryRun'?_0x245ba4(0x20b):_0xc4e812;_0x235764[_0x4ecbab]=_0xe6ab21;}}return _0x235764;}function a103_0x4642(){const _0x115f14=['Invalid\x20value\x20\x22','required','267880uhMBBM','1676276JfFCaK','regex','6918dayBMB','format','description','Invalid\x20--','\x22\x20for\x20--','.\x20Allowed:\x20','890001WJDjQO','test','dryRun','3635496dUlsjo','name','pattern','true','748476qByfzf','dry-run','enum','35kwkqBp','\x20expects\x20a\x20number,\x20got\x20\x22','includes','replace','join','238slYgmu','220LDNkHk','default','type','10554OPTIxX','\x20is\x20required\x20for\x20`','validation',',\x20got\x20\x22'];a103_0x4642=function(){return _0x115f14;};return a103_0x4642();}export function validateFlags(_0x5edc78,_0x24b9bd,_0x1ea5d2){const _0x45cd7a=a103_0x1648;for(const _0x56f355 of _0x5edc78){const _0x467892=_0x24b9bd[_0x56f355['name']];if(_0x56f355[_0x45cd7a(0x1f9)]&&(_0x467892===undefined||_0x467892===''))throw CliErrors['flagMissing'](_0x56f355[_0x45cd7a(0x207)],'--'+_0x56f355[_0x45cd7a(0x207)]+_0x45cd7a(0x1f5)+_0x1ea5d2+'`.');if(_0x56f355['enum']&&_0x56f355[_0x45cd7a(0x20c)]['length']>0x0&&_0x467892!==undefined&&_0x467892!==''){if(!_0x56f355['enum'][_0x45cd7a(0x20f)](String(_0x467892)))throw CliErrors[_0x45cd7a(0x1f6)](_0x45cd7a(0x1f8)+_0x467892+_0x45cd7a(0x201)+_0x56f355[_0x45cd7a(0x207)]+_0x45cd7a(0x202)+_0x56f355['enum'][_0x45cd7a(0x211)](',\x20'));}if(_0x56f355[_0x45cd7a(0x208)]&&_0x467892!==undefined&&_0x467892!==''){if(!_0x56f355[_0x45cd7a(0x208)][_0x45cd7a(0x1fc)][_0x45cd7a(0x204)](String(_0x467892)))throw CliErrors['validation'](_0x45cd7a(0x200)+_0x56f355[_0x45cd7a(0x207)]+':\x20expected\x20'+_0x56f355[_0x45cd7a(0x208)][_0x45cd7a(0x1ff)]+_0x45cd7a(0x1f7)+_0x467892+'\x22.');}}}function coerce(_0x16645b,_0x2df333){const _0x1fb2ab=a103_0x1648;switch(_0x16645b[_0x1fb2ab(0x215)]){case'boolean':return _0x2df333===!![]||_0x2df333===_0x1fb2ab(0x209);case'number':{const _0xfe7b56=Number(_0x2df333);if(isNaN(_0xfe7b56))throw CliErrors[_0x1fb2ab(0x1f6)]('--'+_0x16645b[_0x1fb2ab(0x207)]+_0x1fb2ab(0x20e)+_0x2df333+'\x22');return _0xfe7b56;}default:return String(_0x2df333);}}function toCamelCase(_0x5746cb){const _0x300bed=a103_0x1648;return _0x5746cb[_0x300bed(0x210)](/-([a-z])/g,(_0x1f0d64,_0x53e5b2)=>_0x53e5b2['toUpperCase']());}
@@ -1 +1 @@
1
- function a104_0x12ca(){const _0xa5d5e6=['risk','isSingleCommand','3mCgHen','7082887WtRrJK','\x20project\x20init`\x20or\x20--appcode).','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','13AScLpb','23124972jORGRD','\x20\x20\x20\x20\x20\x20\x20\x20','enum','padEnd','service','\x20\x20COMMANDS','(required)','6amzZQU','300100HsBamB','2nQbtMc','length','\x20<value>','\x20\x20USAGE','68953mECAmg','push','hasFormat','find','required','190ZmfFca','default','type','label','\x20[global-options]\x20<service>\x20<command>\x20[flags]','flags','join','requiresAuth','tag','hint','\x20auth`\x20first).','348689sRJfzP','helpExtra','\x20\x20GLOBAL\x20OPTIONS','\x20<service>\x20--help`\x20for\x20service\x20commands.','dryRun','name','number','\x20|\x20','args','high-risk-write','commands','Requires\x20appcode\x20(set\x20via\x20`','\x20\x20\x20\x20','\x20\x20Unknown\x20service:\x20','description','9bWMTdA','\x20\x20Run\x20`','\x20\x20FLAGS','filter','wildcardDef','6412456ztLzNS','command','\x20\x20[high-risk-write]','max','get','trim','\x20\x20\x20\x20\x20\x20ARGS','map','includes','\x20\x20ARGS','\x20(required)','\x20\x20\x20\x20•\x20','requiresAppCode','869645QVXLga','function','\x20\x20\x20\x20\x20\x20'];a104_0x12ca=function(){return _0xa5d5e6;};return a104_0x12ca();}const a104_0x447fb3=a104_0x1bd9;(function(_0xfb340c,_0x40d0e8){const _0x4ec4a9=a104_0x1bd9,_0x3a4bb8=_0xfb340c();while(!![]){try{const _0x585af5=-parseInt(_0x4ec4a9(0x1d3))/0x1*(-parseInt(_0x4ec4a9(0x1cf))/0x2)+-parseInt(_0x4ec4a9(0x209))/0x3*(parseInt(_0x4ec4a9(0x1ce))/0x4)+-parseInt(_0x4ec4a9(0x204))/0x5+-parseInt(_0x4ec4a9(0x1cd))/0x6*(parseInt(_0x4ec4a9(0x20a))/0x7)+-parseInt(_0x4ec4a9(0x1f7))/0x8*(parseInt(_0x4ec4a9(0x1f2))/0x9)+parseInt(_0x4ec4a9(0x1d8))/0xa*(parseInt(_0x4ec4a9(0x1e3))/0xb)+parseInt(_0x4ec4a9(0x20e))/0xc*(parseInt(_0x4ec4a9(0x20d))/0xd);if(_0x585af5===_0x40d0e8)break;else _0x3a4bb8['push'](_0x3a4bb8['shift']());}catch(_0x5734d1){_0x3a4bb8['push'](_0x3a4bb8['shift']());}}}(a104_0x12ca,0x82d9b));import{buildAllFlags}from'./build-all-flags.js';function a104_0x1bd9(_0x7d9949,_0x132891){_0x7d9949=_0x7d9949-0x1c7;const _0x12ca5c=a104_0x12ca();let _0x1bd928=_0x12ca5c[_0x7d9949];return _0x1bd928;}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':'\x20\x20[write]','high-risk-write':a104_0x447fb3(0x1f9)};export function generateCommandHelp(_0x343a8d){const _0x11c363=a104_0x447fb3,_0x1ddfe5=[],_0x3d2c44=_0x343a8d[_0x11c363(0x1ca)]===_0x343a8d[_0x11c363(0x1f8)]?CLI_BIN_NAME+'\x20'+_0x343a8d['service']:CLI_BIN_NAME+'\x20'+_0x343a8d['service']+'\x20'+_0x343a8d[_0x11c363(0x1f8)],_0xd7defe=_0x343a8d[_0x11c363(0x1eb)]?_0x343a8d[_0x11c363(0x1eb)][_0x11c363(0x1fe)](_0x2e0347=>_0x2e0347['required']!==![]?'<'+_0x2e0347[_0x11c363(0x1e8)]+'>':'['+_0x2e0347[_0x11c363(0x1e8)]+']')['join']('\x20'):'',_0x3d0e46=_0xd7defe?_0x3d2c44+'\x20'+_0xd7defe+'\x20[flags]':_0x3d2c44+'\x20[flags]';_0x1ddfe5[_0x11c363(0x1d4)](''),_0x1ddfe5[_0x11c363(0x1d4)]('\x20\x20'+_0x343a8d[_0x11c363(0x1f1)]),_0x1ddfe5['push'](''),_0x1ddfe5[_0x11c363(0x1d4)](_0x11c363(0x1d2)),_0x1ddfe5[_0x11c363(0x1d4)](_0x11c363(0x1ef)+_0x3d0e46),_0x1ddfe5[_0x11c363(0x1d4)](''),_0x1ddfe5[_0x11c363(0x1d4)]('\x20\x20RISK:\x20'+_0x343a8d[_0x11c363(0x207)]);_0x343a8d[_0x11c363(0x207)]===_0x11c363(0x1ec)&&_0x1ddfe5['push']('\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.');_0x1ddfe5[_0x11c363(0x1d4)]('');if(_0x343a8d[_0x11c363(0x1eb)]&&_0x343a8d['args'][_0x11c363(0x1d0)]>0x0){_0x1ddfe5['push'](_0x11c363(0x200));const _0xe47dd8=Math['max'](..._0x343a8d[_0x11c363(0x1eb)][_0x11c363(0x1fe)](_0x1adde8=>_0x1adde8[_0x11c363(0x1e8)][_0x11c363(0x1d0)]+0x2));for(const _0x4286ea of _0x343a8d[_0x11c363(0x1eb)]){const _0x50a8da=('<'+_0x4286ea[_0x11c363(0x1e8)]+'>')[_0x11c363(0x1c9)](_0xe47dd8+0x2),_0x2f0c11=_0x4286ea[_0x11c363(0x1d7)]!==![]?'\x20(required)':'';_0x1ddfe5[_0x11c363(0x1d4)]('\x20\x20\x20\x20'+_0x50a8da+_0x4286ea[_0x11c363(0x1f1)]+_0x2f0c11);}_0x1ddfe5[_0x11c363(0x1d4)]('');}if(_0x343a8d[_0x11c363(0x1dd)][_0x11c363(0x1d0)]>0x0||_0x343a8d[_0x11c363(0x1e7)]||_0x343a8d[_0x11c363(0x1d5)]!==![]){_0x1ddfe5[_0x11c363(0x1d4)](_0x11c363(0x1f4));const _0x5f30a8=buildAllFlags(_0x343a8d),_0x18f2dd=Math[_0x11c363(0x1fa)](..._0x5f30a8['map'](_0x55e3d2=>formatFlagName(_0x55e3d2)[_0x11c363(0x1d0)]));for(const _0x541a96 of _0x5f30a8){_0x1ddfe5[_0x11c363(0x1d4)](_0x11c363(0x1ef)+formatFlagName(_0x541a96)[_0x11c363(0x1c9)](_0x18f2dd+0x2)+renderFlagDesc(_0x541a96));}_0x1ddfe5['push']('');}const _0x4b4f20=[];_0x343a8d[_0x11c363(0x1df)]!==![]&&_0x4b4f20[_0x11c363(0x1d4)]('Requires\x20authentication\x20(run\x20`'+CLI_BIN_NAME+_0x11c363(0x1e2));_0x343a8d[_0x11c363(0x203)]!==![]&&_0x4b4f20['push'](_0x11c363(0x1ee)+CLI_BIN_NAME+_0x11c363(0x20b));if(_0x4b4f20['length']>0x0){_0x1ddfe5[_0x11c363(0x1d4)]('\x20\x20PREREQUISITES');for(const _0x480c50 of _0x4b4f20){_0x1ddfe5[_0x11c363(0x1d4)](_0x11c363(0x202)+_0x480c50);}_0x1ddfe5[_0x11c363(0x1d4)]('');}if(_0x343a8d[_0x11c363(0x1e4)]){const _0x13affa=typeof _0x343a8d[_0x11c363(0x1e4)]===_0x11c363(0x205)?_0x343a8d[_0x11c363(0x1e4)]():_0x343a8d[_0x11c363(0x1e4)];_0x1ddfe5[_0x11c363(0x1d4)](_0x13affa),_0x1ddfe5[_0x11c363(0x1d4)]('');}return _0x1ddfe5['join']('\x0a');}export function generateServiceHelp(_0x2da3fe){const _0x221e2d=a104_0x447fb3,_0x575a37=getServiceEntry(_0x2da3fe);if(!_0x575a37)return _0x221e2d(0x1f0)+_0x2da3fe+'\x0a';const _0x3ce2a1=[],_0x2eb709=serviceGroups[_0x221e2d(0x1fb)](_0x2da3fe);_0x3ce2a1[_0x221e2d(0x1d4)](''),_0x3ce2a1[_0x221e2d(0x1d4)]('\x20\x20'+_0x575a37['label']),_0x3ce2a1['push'](''),_0x3ce2a1[_0x221e2d(0x1d4)]('\x20\x20USAGE'),_0x3ce2a1['push'](_0x221e2d(0x1ef)+CLI_BIN_NAME+'\x20'+_0x2da3fe+'\x20<command>\x20[args]\x20[flags]'),_0x3ce2a1[_0x221e2d(0x1d4)](''),_0x3ce2a1[_0x221e2d(0x1d4)](_0x221e2d(0x1cb));for(const _0x531347 of _0x575a37[_0x221e2d(0x1ed)]){_0x3ce2a1[_0x221e2d(0x1d4)]('');const _0x1822c2=_0x531347[_0x221e2d(0x1e0)]?'\x20\x20'+_0x531347['tag'][_0x221e2d(0x1fc)]():'';_0x3ce2a1['push'](_0x221e2d(0x1ef)+_0x531347['command']+_0x1822c2),_0x3ce2a1['push'](_0x221e2d(0x206)+_0x531347[_0x221e2d(0x1f1)]);const _0xb4bed0=_0x2eb709?.[_0x221e2d(0x1d6)](_0x2f02c9=>_0x2f02c9['command']===_0x531347[_0x221e2d(0x1f8)]);if(_0xb4bed0?.[_0x221e2d(0x1eb)]&&_0xb4bed0[_0x221e2d(0x1eb)][_0x221e2d(0x1d0)]>0x0){_0x3ce2a1['push'](_0x221e2d(0x1fd));const _0x3f983e=Math[_0x221e2d(0x1fa)](..._0xb4bed0['args']['map'](_0x5cba9f=>_0x5cba9f[_0x221e2d(0x1e8)]['length']+0x2));for(const _0x34ba1e of _0xb4bed0[_0x221e2d(0x1eb)]){const _0x595a31=('<'+_0x34ba1e[_0x221e2d(0x1e8)]+'>')[_0x221e2d(0x1c9)](_0x3f983e+0x2),_0x2e2850=_0x34ba1e['required']!==![]?_0x221e2d(0x201):'';_0x3ce2a1[_0x221e2d(0x1d4)](_0x221e2d(0x1c7)+_0x595a31+_0x34ba1e[_0x221e2d(0x1f1)]+_0x2e2850);}}const _0x2a68df=getCommandFlags(_0x2da3fe,_0x531347[_0x221e2d(0x1f8)],_0x2eb709);if(_0x2a68df['length']>0x0){const _0x8c5b4d=Math[_0x221e2d(0x1fa)](..._0x2a68df[_0x221e2d(0x1fe)](_0x3bb5b6=>formatFlagName(_0x3bb5b6)[_0x221e2d(0x1d0)]));for(const _0x107bd8 of _0x2a68df){_0x3ce2a1[_0x221e2d(0x1d4)](_0x221e2d(0x206)+formatFlagName(_0x107bd8)[_0x221e2d(0x1c9)](_0x8c5b4d+0x2)+renderFlagDesc(_0x107bd8));}}}return _0x3ce2a1[_0x221e2d(0x1d4)](''),_0x3ce2a1[_0x221e2d(0x1de)]('\x0a');}export function generateFullHelp(){const _0x2540e8=a104_0x447fb3,_0x49c410=[];_0x49c410[_0x2540e8(0x1d4)](''),_0x49c410[_0x2540e8(0x1d4)]('\x20\x20'+CLI_DISPLAY_NAME),_0x49c410['push'](''),_0x49c410[_0x2540e8(0x1d4)](_0x2540e8(0x1d2)),_0x49c410['push']('\x20\x20\x20\x20$\x20'+CLI_BIN_NAME+_0x2540e8(0x1dc)),_0x49c410['push'](''),_0x49c410['push'](_0x2540e8(0x1e5));const _0x575660=GLOBAL_FLAGS[_0x2540e8(0x1f5)](_0x1d8eb9=>!_0x1d8eb9['hidden']),_0x350ad5=Math['max'](..._0x575660[_0x2540e8(0x1fe)](_0x401788=>{const _0x205234=_0x2540e8,_0x10fb69=_0x401788[_0x205234(0x1e1)]?'\x20'+_0x401788[_0x205234(0x1e1)]:'';return('--'+_0x401788['name']+_0x10fb69)[_0x205234(0x1d0)];}));for(const _0x4e1df4 of _0x575660){const _0x38a4ec=_0x4e1df4[_0x2540e8(0x1e1)]?'\x20'+_0x4e1df4[_0x2540e8(0x1e1)]:'',_0xac1382=('--'+_0x4e1df4[_0x2540e8(0x1e8)]+_0x38a4ec)['padEnd'](_0x350ad5+0x2);_0x49c410['push'](_0x2540e8(0x1ef)+_0xac1382+_0x4e1df4['description']);}_0x49c410['push'](''),_0x49c410['push'](_0x2540e8(0x1cb)),_0x49c410[_0x2540e8(0x1d4)]('');for(const _0x26315a of serviceRegistry){_0x49c410[_0x2540e8(0x1d4)]('\x20\x20'+_0x26315a[_0x2540e8(0x1db)]);if(_0x26315a[_0x2540e8(0x208)]){const _0x1ce00f=_0x26315a[_0x2540e8(0x1ed)][0x0],_0x1a71b5=_0x1ce00f['tag']??'';_0x49c410[_0x2540e8(0x1d4)](_0x2540e8(0x1ef)+_0x26315a['service']['padEnd'](0x12)+_0x1ce00f[_0x2540e8(0x1f1)]+_0x1a71b5);}else{const _0x59d837=_0x26315a['commands'][_0x2540e8(0x1fe)](_0x48c6f1=>_0x26315a[_0x2540e8(0x1ca)]+'\x20'+_0x48c6f1[_0x2540e8(0x1f8)]),_0x58278a=Math[_0x2540e8(0x1fa)](..._0x59d837['map'](_0x341e90=>_0x341e90[_0x2540e8(0x1d0)]));for(let _0x5e723e=0x0;_0x5e723e<_0x26315a[_0x2540e8(0x1ed)][_0x2540e8(0x1d0)];_0x5e723e++){const _0x4afe5b=_0x26315a[_0x2540e8(0x1ed)][_0x5e723e],_0x1aa915=_0x4afe5b[_0x2540e8(0x1e0)]??'';_0x49c410[_0x2540e8(0x1d4)](_0x2540e8(0x1ef)+_0x59d837[_0x5e723e][_0x2540e8(0x1c9)](_0x58278a+0x2)+_0x4afe5b[_0x2540e8(0x1f1)]+_0x1aa915);}}if(_0x26315a[_0x2540e8(0x1f6)]?.['helpExtra']){const _0x64fb44=typeof _0x26315a[_0x2540e8(0x1f6)][_0x2540e8(0x1e4)]===_0x2540e8(0x205)?_0x26315a['wildcardDef'][_0x2540e8(0x1e4)]():_0x26315a['wildcardDef'][_0x2540e8(0x1e4)];for(const _0x5e68f9 of _0x64fb44['split']('\x0a')){_0x49c410['push']('\x20\x20'+_0x5e68f9);}}_0x49c410[_0x2540e8(0x1d4)]('');}return _0x49c410[_0x2540e8(0x1d4)]('\x20\x20Run\x20`'+CLI_BIN_NAME+_0x2540e8(0x1e6)),_0x49c410[_0x2540e8(0x1d4)](_0x2540e8(0x1f3)+CLI_BIN_NAME+_0x2540e8(0x20c)),_0x49c410['push'](''),_0x49c410[_0x2540e8(0x1de)]('\x0a');}function getCommandFlags(_0x37961c,_0x3fd502,_0x3d2d34){if(_0x3d2d34){const _0x4f6612=_0x3d2d34['find'](_0x514fb6=>_0x514fb6['command']===_0x3fd502);if(_0x4f6612)return buildAllFlags(_0x4f6612);}return[];}function renderFlagDesc(_0x406c36){const _0x5af847=a104_0x447fb3;let _0x30771f=_0x406c36[_0x5af847(0x1f1)];return _0x406c36[_0x5af847(0x1c8)]&&_0x406c36[_0x5af847(0x1c8)][_0x5af847(0x1d0)]>0x0&&(_0x30771f+='\x20('+_0x406c36[_0x5af847(0x1c8)][_0x5af847(0x1de)](_0x5af847(0x1ea))+')'),_0x406c36[_0x5af847(0x1d9)]!==undefined&&_0x406c36['default']!==''&&_0x406c36[_0x5af847(0x1d9)]!==![]&&(_0x30771f+='\x20[default:\x20'+_0x406c36[_0x5af847(0x1d9)]+']'),_0x406c36[_0x5af847(0x1d7)]&&!_0x30771f[_0x5af847(0x1ff)](_0x5af847(0x1cc))&&(_0x30771f+=_0x5af847(0x201)),_0x30771f;}function formatFlagName(_0x98a334){const _0x1e6c42=a104_0x447fb3,_0x1583f6=_0x98a334['type']==='boolean'?'':_0x98a334[_0x1e6c42(0x1da)]===_0x1e6c42(0x1e9)?'\x20<n>':_0x1e6c42(0x1d1);return'--'+_0x98a334['name']+_0x1583f6;}
1
+ const a104_0x1d3ca8=a104_0x2c33;(function(_0x59966c,_0x3e8bc7){const _0xf33ece=a104_0x2c33,_0xfce5c3=_0x59966c();while(!![]){try{const _0xc044a9=-parseInt(_0xf33ece(0x19d))/0x1*(-parseInt(_0xf33ece(0x1aa))/0x2)+-parseInt(_0xf33ece(0x1bf))/0x3*(-parseInt(_0xf33ece(0x1c7))/0x4)+-parseInt(_0xf33ece(0x1ab))/0x5*(-parseInt(_0xf33ece(0x1ce))/0x6)+-parseInt(_0xf33ece(0x1a4))/0x7*(-parseInt(_0xf33ece(0x1de))/0x8)+-parseInt(_0xf33ece(0x1b1))/0x9+-parseInt(_0xf33ece(0x1ad))/0xa*(-parseInt(_0xf33ece(0x1d6))/0xb)+parseInt(_0xf33ece(0x1c6))/0xc*(-parseInt(_0xf33ece(0x1cf))/0xd);if(_0xc044a9===_0x3e8bc7)break;else _0xfce5c3['push'](_0xfce5c3['shift']());}catch(_0x2f530f){_0xfce5c3['push'](_0xfce5c3['shift']());}}}(a104_0xdffd,0x715b2));import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a104_0x2c33(_0xccd80a,_0x2f934b){_0xccd80a=_0xccd80a-0x19a;const _0xdffdb8=a104_0xdffd();let _0x2c33cd=_0xdffdb8[_0xccd80a];return _0x2c33cd;}const RISK_LABELS={'read':'','write':a104_0x1d3ca8(0x1be),'high-risk-write':a104_0x1d3ca8(0x1a0)};function a104_0xdffd(){const _0x30072a=['\x20<service>\x20--help`\x20for\x20service\x20commands.','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','1002396KYNoAH','16qVrsej','hint','push','function','\x20\x20\x20\x20\x20\x20ARGS','filter','\x20\x20\x20\x20\x20\x20\x20\x20','1119654AnPLzt','221iBXNir','dryRun','\x20\x20Run\x20`','required','get','hasFormat','\x20\x20Unknown\x20service:\x20','6897dHvHLy','\x20project\x20init`\x20or\x20--appcode).','description','\x20\x20\x20\x20$\x20','\x20auth`\x20first).','command','tag','join','4576088xJkhva','helpExtra','\x20[flags]','type','requiresAppCode','6QJaWlR','default','find','\x20\x20[high-risk-write]','args','(required)','wildcardDef','7GauZeB','commands','\x20\x20COMMANDS','\x20\x20ARGS','risk','label','220678wxqaRX','5NpMsqb','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','320agLDeV','name','max','padEnd','1584891kNEEWU','enum','\x20\x20\x20\x20\x20\x20','trim','\x20\x20\x20\x20','number','\x20(required)','\x20<value>','boolean','\x20[default:\x20','\x20<command>\x20[args]\x20[flags]','\x20\x20PREREQUISITES','includes','\x20\x20[write]','464811evTryq','\x20\x20USAGE','map','length','service'];a104_0xdffd=function(){return _0x30072a;};return a104_0xdffd();}export function generateCommandHelp(_0x4c1481){const _0x3af791=a104_0x1d3ca8,_0x52a994=[],_0x2ae337=_0x4c1481[_0x3af791(0x1c3)]===_0x4c1481[_0x3af791(0x1db)]?CLI_BIN_NAME+'\x20'+_0x4c1481[_0x3af791(0x1c3)]:CLI_BIN_NAME+'\x20'+_0x4c1481[_0x3af791(0x1c3)]+'\x20'+_0x4c1481[_0x3af791(0x1db)],_0x39174f=_0x4c1481[_0x3af791(0x1a1)]?_0x4c1481[_0x3af791(0x1a1)][_0x3af791(0x1c1)](_0x178f06=>_0x178f06[_0x3af791(0x1d2)]!==![]?'<'+_0x178f06[_0x3af791(0x1ae)]+'>':'['+_0x178f06[_0x3af791(0x1ae)]+']')['join']('\x20'):'',_0x2a0e39=_0x39174f?_0x2ae337+'\x20'+_0x39174f+_0x3af791(0x19a):_0x2ae337+_0x3af791(0x19a);_0x52a994['push'](''),_0x52a994['push']('\x20\x20'+_0x4c1481[_0x3af791(0x1d8)]),_0x52a994[_0x3af791(0x1c9)](''),_0x52a994[_0x3af791(0x1c9)](_0x3af791(0x1c0)),_0x52a994[_0x3af791(0x1c9)](_0x3af791(0x1b5)+_0x2a0e39),_0x52a994['push'](''),_0x52a994[_0x3af791(0x1c9)]('\x20\x20RISK:\x20'+_0x4c1481['risk']);_0x4c1481[_0x3af791(0x1a8)]==='high-risk-write'&&_0x52a994[_0x3af791(0x1c9)](_0x3af791(0x1ac));_0x52a994[_0x3af791(0x1c9)]('');if(_0x4c1481[_0x3af791(0x1a1)]&&_0x4c1481['args'][_0x3af791(0x1c2)]>0x0){_0x52a994[_0x3af791(0x1c9)](_0x3af791(0x1a7));const _0x1cc93b=Math[_0x3af791(0x1af)](..._0x4c1481[_0x3af791(0x1a1)][_0x3af791(0x1c1)](_0x4e162a=>_0x4e162a[_0x3af791(0x1ae)][_0x3af791(0x1c2)]+0x2));for(const _0x463611 of _0x4c1481[_0x3af791(0x1a1)]){const _0x534412=('<'+_0x463611[_0x3af791(0x1ae)]+'>')[_0x3af791(0x1b0)](_0x1cc93b+0x2),_0x4df76a=_0x463611[_0x3af791(0x1d2)]!==![]?_0x3af791(0x1b7):'';_0x52a994[_0x3af791(0x1c9)](_0x3af791(0x1b5)+_0x534412+_0x463611['description']+_0x4df76a);}_0x52a994[_0x3af791(0x1c9)]('');}if(_0x4c1481['flags'][_0x3af791(0x1c2)]>0x0||_0x4c1481[_0x3af791(0x1d0)]||_0x4c1481[_0x3af791(0x1d4)]!==![]){_0x52a994['push']('\x20\x20FLAGS');const _0xdc1521=buildAllFlags(_0x4c1481),_0x3ec28d=Math['max'](..._0xdc1521[_0x3af791(0x1c1)](_0x5a6e6a=>formatFlagName(_0x5a6e6a)[_0x3af791(0x1c2)]));for(const _0x89e1ae of _0xdc1521){_0x52a994['push']('\x20\x20\x20\x20'+formatFlagName(_0x89e1ae)['padEnd'](_0x3ec28d+0x2)+renderFlagDesc(_0x89e1ae));}_0x52a994['push']('');}const _0x3f0f0d=[];_0x4c1481['requiresAuth']!==![]&&_0x3f0f0d[_0x3af791(0x1c9)]('Requires\x20authentication\x20(run\x20`'+CLI_BIN_NAME+_0x3af791(0x1da));_0x4c1481[_0x3af791(0x19c)]!==![]&&_0x3f0f0d[_0x3af791(0x1c9)]('Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x3af791(0x1d7));if(_0x3f0f0d['length']>0x0){_0x52a994[_0x3af791(0x1c9)](_0x3af791(0x1bc));for(const _0x109f43 of _0x3f0f0d){_0x52a994['push']('\x20\x20\x20\x20•\x20'+_0x109f43);}_0x52a994[_0x3af791(0x1c9)]('');}if(_0x4c1481['helpExtra']){const _0x52f41e=typeof _0x4c1481[_0x3af791(0x1df)]===_0x3af791(0x1ca)?_0x4c1481[_0x3af791(0x1df)]():_0x4c1481[_0x3af791(0x1df)];_0x52a994[_0x3af791(0x1c9)](_0x52f41e),_0x52a994[_0x3af791(0x1c9)]('');}return _0x52a994['join']('\x0a');}export function generateServiceHelp(_0x183b00){const _0x3c1737=a104_0x1d3ca8,_0x5f29d8=getServiceEntry(_0x183b00);if(!_0x5f29d8)return _0x3c1737(0x1d5)+_0x183b00+'\x0a';const _0x2f1d09=[],_0x8fe71f=serviceGroups[_0x3c1737(0x1d3)](_0x183b00);_0x2f1d09[_0x3c1737(0x1c9)](''),_0x2f1d09[_0x3c1737(0x1c9)]('\x20\x20'+_0x5f29d8[_0x3c1737(0x1a9)]),_0x2f1d09[_0x3c1737(0x1c9)](''),_0x2f1d09[_0x3c1737(0x1c9)](_0x3c1737(0x1c0)),_0x2f1d09['push'](_0x3c1737(0x1b5)+CLI_BIN_NAME+'\x20'+_0x183b00+_0x3c1737(0x1bb)),_0x2f1d09[_0x3c1737(0x1c9)](''),_0x2f1d09[_0x3c1737(0x1c9)](_0x3c1737(0x1a6));for(const _0x5880d3 of _0x5f29d8[_0x3c1737(0x1a5)]){_0x2f1d09[_0x3c1737(0x1c9)]('');const _0x584c0b=_0x5880d3[_0x3c1737(0x1dc)]?'\x20\x20'+_0x5880d3['tag'][_0x3c1737(0x1b4)]():'';_0x2f1d09['push'](_0x3c1737(0x1b5)+_0x5880d3['command']+_0x584c0b),_0x2f1d09[_0x3c1737(0x1c9)](_0x3c1737(0x1b3)+_0x5880d3['description']);const _0x250681=_0x8fe71f?.[_0x3c1737(0x19f)](_0x431710=>_0x431710['command']===_0x5880d3[_0x3c1737(0x1db)]);if(_0x250681?.[_0x3c1737(0x1a1)]&&_0x250681[_0x3c1737(0x1a1)][_0x3c1737(0x1c2)]>0x0){_0x2f1d09[_0x3c1737(0x1c9)](_0x3c1737(0x1cb));const _0x9cd99d=Math[_0x3c1737(0x1af)](..._0x250681[_0x3c1737(0x1a1)][_0x3c1737(0x1c1)](_0x5b4a55=>_0x5b4a55[_0x3c1737(0x1ae)][_0x3c1737(0x1c2)]+0x2));for(const _0x110bb9 of _0x250681[_0x3c1737(0x1a1)]){const _0xd308be=('<'+_0x110bb9[_0x3c1737(0x1ae)]+'>')['padEnd'](_0x9cd99d+0x2),_0x45114f=_0x110bb9['required']!==![]?'\x20(required)':'';_0x2f1d09['push'](_0x3c1737(0x1cd)+_0xd308be+_0x110bb9[_0x3c1737(0x1d8)]+_0x45114f);}}const _0x44fb1c=getCommandFlags(_0x183b00,_0x5880d3[_0x3c1737(0x1db)],_0x8fe71f);if(_0x44fb1c[_0x3c1737(0x1c2)]>0x0){const _0x4053b3=Math[_0x3c1737(0x1af)](..._0x44fb1c[_0x3c1737(0x1c1)](_0x5f6f59=>formatFlagName(_0x5f6f59)[_0x3c1737(0x1c2)]));for(const _0xd073b5 of _0x44fb1c){_0x2f1d09[_0x3c1737(0x1c9)](_0x3c1737(0x1b3)+formatFlagName(_0xd073b5)[_0x3c1737(0x1b0)](_0x4053b3+0x2)+renderFlagDesc(_0xd073b5));}}}return _0x2f1d09[_0x3c1737(0x1c9)](''),_0x2f1d09[_0x3c1737(0x1dd)]('\x0a');}export function generateFullHelp(){const _0x5f0abf=a104_0x1d3ca8,_0x1b9276=[];_0x1b9276[_0x5f0abf(0x1c9)](''),_0x1b9276[_0x5f0abf(0x1c9)]('\x20\x20'+CLI_DISPLAY_NAME),_0x1b9276[_0x5f0abf(0x1c9)](''),_0x1b9276[_0x5f0abf(0x1c9)](_0x5f0abf(0x1c0)),_0x1b9276[_0x5f0abf(0x1c9)](_0x5f0abf(0x1d9)+CLI_BIN_NAME+'\x20[global-options]\x20<service>\x20<command>\x20[flags]'),_0x1b9276[_0x5f0abf(0x1c9)](''),_0x1b9276[_0x5f0abf(0x1c9)]('\x20\x20GLOBAL\x20OPTIONS');const _0x20779c=GLOBAL_FLAGS[_0x5f0abf(0x1cc)](_0x2eebad=>!_0x2eebad['hidden']),_0x21ea40=Math[_0x5f0abf(0x1af)](..._0x20779c[_0x5f0abf(0x1c1)](_0x2b3da6=>{const _0x3afae4=_0x5f0abf,_0x234162=_0x2b3da6[_0x3afae4(0x1c8)]?'\x20'+_0x2b3da6['hint']:'';return('--'+_0x2b3da6[_0x3afae4(0x1ae)]+_0x234162)[_0x3afae4(0x1c2)];}));for(const _0xfd8870 of _0x20779c){const _0x25425b=_0xfd8870[_0x5f0abf(0x1c8)]?'\x20'+_0xfd8870['hint']:'',_0x5bc3fd=('--'+_0xfd8870[_0x5f0abf(0x1ae)]+_0x25425b)['padEnd'](_0x21ea40+0x2);_0x1b9276[_0x5f0abf(0x1c9)]('\x20\x20\x20\x20'+_0x5bc3fd+_0xfd8870[_0x5f0abf(0x1d8)]);}_0x1b9276[_0x5f0abf(0x1c9)](''),_0x1b9276[_0x5f0abf(0x1c9)]('\x20\x20COMMANDS'),_0x1b9276[_0x5f0abf(0x1c9)]('');for(const _0x39e9ee of serviceRegistry){_0x1b9276['push']('\x20\x20'+_0x39e9ee[_0x5f0abf(0x1a9)]);if(_0x39e9ee['isSingleCommand']){const _0x560e5d=_0x39e9ee['commands'][0x0],_0x32de48=_0x560e5d[_0x5f0abf(0x1dc)]??'';_0x1b9276[_0x5f0abf(0x1c9)](_0x5f0abf(0x1b5)+_0x39e9ee[_0x5f0abf(0x1c3)][_0x5f0abf(0x1b0)](0x12)+_0x560e5d[_0x5f0abf(0x1d8)]+_0x32de48);}else{const _0xea3ca9=_0x39e9ee[_0x5f0abf(0x1a5)][_0x5f0abf(0x1c1)](_0x236ac9=>_0x39e9ee[_0x5f0abf(0x1c3)]+'\x20'+_0x236ac9[_0x5f0abf(0x1db)]),_0x186dbf=Math[_0x5f0abf(0x1af)](..._0xea3ca9['map'](_0x4a0679=>_0x4a0679['length']));for(let _0x39e0a2=0x0;_0x39e0a2<_0x39e9ee['commands']['length'];_0x39e0a2++){const _0x5ebdce=_0x39e9ee[_0x5f0abf(0x1a5)][_0x39e0a2],_0x36aab6=_0x5ebdce[_0x5f0abf(0x1dc)]??'';_0x1b9276['push'](_0x5f0abf(0x1b5)+_0xea3ca9[_0x39e0a2][_0x5f0abf(0x1b0)](_0x186dbf+0x2)+_0x5ebdce[_0x5f0abf(0x1d8)]+_0x36aab6);}}if(_0x39e9ee[_0x5f0abf(0x1a3)]?.['helpExtra']){const _0x4a1913=typeof _0x39e9ee[_0x5f0abf(0x1a3)][_0x5f0abf(0x1df)]===_0x5f0abf(0x1ca)?_0x39e9ee[_0x5f0abf(0x1a3)][_0x5f0abf(0x1df)]():_0x39e9ee[_0x5f0abf(0x1a3)][_0x5f0abf(0x1df)];for(const _0x33af47 of _0x4a1913['split']('\x0a')){_0x1b9276[_0x5f0abf(0x1c9)]('\x20\x20'+_0x33af47);}}_0x1b9276[_0x5f0abf(0x1c9)]('');}return _0x1b9276[_0x5f0abf(0x1c9)](_0x5f0abf(0x1d1)+CLI_BIN_NAME+_0x5f0abf(0x1c4)),_0x1b9276[_0x5f0abf(0x1c9)](_0x5f0abf(0x1d1)+CLI_BIN_NAME+_0x5f0abf(0x1c5)),_0x1b9276[_0x5f0abf(0x1c9)](''),_0x1b9276[_0x5f0abf(0x1dd)]('\x0a');}function getCommandFlags(_0x3987d4,_0x1cc1bd,_0x25eb9e){if(_0x25eb9e){const _0x3b0948=_0x25eb9e['find'](_0x3299e8=>_0x3299e8['command']===_0x1cc1bd);if(_0x3b0948)return buildAllFlags(_0x3b0948);}return[];}function renderFlagDesc(_0x140770){const _0x1fb727=a104_0x1d3ca8;let _0x36c04c=_0x140770[_0x1fb727(0x1d8)];return _0x140770[_0x1fb727(0x1b2)]&&_0x140770[_0x1fb727(0x1b2)]['length']>0x0&&(_0x36c04c+='\x20('+_0x140770[_0x1fb727(0x1b2)][_0x1fb727(0x1dd)]('\x20|\x20')+')'),_0x140770['default']!==undefined&&_0x140770[_0x1fb727(0x19e)]!==''&&_0x140770[_0x1fb727(0x19e)]!==![]&&(_0x36c04c+=_0x1fb727(0x1ba)+_0x140770[_0x1fb727(0x19e)]+']'),_0x140770[_0x1fb727(0x1d2)]&&!_0x36c04c[_0x1fb727(0x1bd)](_0x1fb727(0x1a2))&&(_0x36c04c+=_0x1fb727(0x1b7)),_0x36c04c;}function formatFlagName(_0x2c7ae0){const _0x3517cf=a104_0x1d3ca8,_0x478f59=_0x2c7ae0[_0x3517cf(0x19b)]===_0x3517cf(0x1b9)?'':_0x2c7ae0[_0x3517cf(0x19b)]===_0x3517cf(0x1b6)?'\x20<n>':_0x3517cf(0x1b8);return'--'+_0x2c7ae0['name']+_0x478f59;}
@@ -1 +1 @@
1
- function a105_0x17ce(){var _0x37582c=['2712rAjpCp','135XNziDZ','1485105xXGMoc','12220IIboGT','37890FiVzri','24nwmEUe','1430YejTlb','18621cdRqKa','48CAaiAM','9718716fxgZNa','17800ENEXdE','285313uYWDhF'];a105_0x17ce=function(){return _0x37582c;};return a105_0x17ce();}(function(_0x1e3b2a,_0x1e1798){var _0x1bc631=a105_0x2967,_0x4c4276=_0x1e3b2a();while(!![]){try{var _0x311589=parseInt(_0x1bc631(0x148))/0x1*(parseInt(_0x1bc631(0x146))/0x2)+parseInt(_0x1bc631(0x14c))/0x3+-parseInt(_0x1bc631(0x14d))/0x4*(parseInt(_0x1bc631(0x14b))/0x5)+-parseInt(_0x1bc631(0x14f))/0x6*(-parseInt(_0x1bc631(0x149))/0x7)+-parseInt(_0x1bc631(0x14a))/0x8*(-parseInt(_0x1bc631(0x145))/0x9)+parseInt(_0x1bc631(0x14e))/0xa*(-parseInt(_0x1bc631(0x144))/0xb)+-parseInt(_0x1bc631(0x147))/0xc;if(_0x311589===_0x1e1798)break;else _0x4c4276['push'](_0x4c4276['shift']());}catch(_0x363542){_0x4c4276['push'](_0x4c4276['shift']());}}}(a105_0x17ce,0x62132));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';export{formatOutput}from'./output.js';function a105_0x2967(_0x36ecd2,_0x7d7eb8){_0x36ecd2=_0x36ecd2-0x144;var _0x17ce70=a105_0x17ce();var _0x296788=_0x17ce70[_0x36ecd2];return _0x296788;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';export{riskLevelOrder}from'./types.js';
1
+ function a105_0x2d2a(){var _0xb67ba8=['479267ojwnvG','1320DvsuKT','4565jSQneI','2644280dFsazc','2044500IsIKmj','2863116noKDbp','12eyVVtb','35inqJtN','37228RUNeaC','748936KjDDde'];a105_0x2d2a=function(){return _0xb67ba8;};return a105_0x2d2a();}(function(_0x4fcce1,_0x5b2ea6){var _0x14115a=a105_0x44bd,_0x2176e6=_0x4fcce1();while(!![]){try{var _0x3a374e=parseInt(_0x14115a(0xc5))/0x1+parseInt(_0x14115a(0xc3))/0x2*(parseInt(_0x14115a(0xcb))/0x3)+-parseInt(_0x14115a(0xc9))/0x4+-parseInt(_0x14115a(0xc7))/0x5*(parseInt(_0x14115a(0xc6))/0x6)+parseInt(_0x14115a(0xc2))/0x7*(parseInt(_0x14115a(0xc4))/0x8)+-parseInt(_0x14115a(0xca))/0x9+parseInt(_0x14115a(0xc8))/0xa;if(_0x3a374e===_0x5b2ea6)break;else _0x2176e6['push'](_0x2176e6['shift']());}catch(_0x35693e){_0x2176e6['push'](_0x2176e6['shift']());}}}(a105_0x2d2a,0x3e87f));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a105_0x44bd(_0x2dd625,_0x327cec){_0x2dd625=_0x2dd625-0xc2;var _0x2d2ae8=a105_0x2d2a();var _0x44bd84=_0x2d2ae8[_0x2dd625];return _0x44bd84;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a106_0x3e8e(){const _0x580063=['541899XeYxzt','isArray','map','Unknown\x20error','repeat','message','error','object','(none)','compress','globalPath','data','json','project','meta','dryRun','padEnd','\x20\x20Default\x20app:\x20\x20\x20\x20\x20','(empty)','2222cisNrT','table','log','Error:\x20','61854wWzepp','defaultAppSource','\x20items:\x0a','defaultApp','3iYRgFL','join','1672876NLceXV','pretty','write','\x20(default\x20from\x20global\x20file)','\x20\x20Global\x20config:\x20\x20\x20','78640qltuug','413639ZzpJVC','stringify','3914848oMmNgr','2xXetLc','Found\x20','77pFTlmB','853195lprsyU','max','keys','stdout','[dry-run]\x20Would\x20execute:','trim','entries','length','risk','global','endsWith','\x20\x20Project\x20config:\x20\x20','items'];a106_0x3e8e=function(){return _0x580063;};return a106_0x3e8e();}(function(_0x23d7f,_0x431840){const _0x4a98ae=a106_0x2997,_0x25eeac=_0x23d7f();while(!![]){try{const _0x58932a=-parseInt(_0x4a98ae(0x93))/0x1*(parseInt(_0x4a98ae(0x96))/0x2)+parseInt(_0x4a98ae(0xc1))/0x3*(-parseInt(_0x4a98ae(0xc3))/0x4)+parseInt(_0x4a98ae(0x99))/0x5+parseInt(_0x4a98ae(0xbd))/0x6*(-parseInt(_0x4a98ae(0x98))/0x7)+-parseInt(_0x4a98ae(0x95))/0x8+-parseInt(_0x4a98ae(0xa6))/0x9+parseInt(_0x4a98ae(0x92))/0xa*(parseInt(_0x4a98ae(0xb9))/0xb);if(_0x58932a===_0x431840)break;else _0x25eeac['push'](_0x25eeac['shift']());}catch(_0xdf2f13){_0x25eeac['push'](_0x25eeac['shift']());}}}(a106_0x3e8e,0x40897));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x4bb1e5,_0x5c325e){const _0x34c5f1=a106_0x2997,{format:_0x29fc52}=_0x5c325e;switch(_0x29fc52){case _0x34c5f1(0xb2):printJson(_0x4bb1e5,_0x5c325e);break;case _0x34c5f1(0xaf):printCompress(_0x4bb1e5,_0x5c325e);break;case _0x34c5f1(0xba):printTable(_0x4bb1e5,_0x5c325e);break;case _0x34c5f1(0x8e):default:printPretty(_0x4bb1e5,_0x5c325e);break;}}function buildEnvelope(_0x5e48e9,_0x5ed7de){const _0x408e7b=a106_0x2997,_0x588f03={'ok':_0x5e48e9['ok'],'command':_0x5ed7de['command'],'risk':_0x5ed7de[_0x408e7b(0xa1)]};if(_0x5ed7de[_0x408e7b(0xb5)])_0x588f03[_0x408e7b(0xb5)]=!![];if(_0x5e48e9[_0x408e7b(0xb1)]!==undefined)_0x588f03['data']=_0x5e48e9['data'];return!_0x5e48e9['ok']&&_0x5e48e9[_0x408e7b(0xab)]&&(_0x588f03[_0x408e7b(0xac)]={'code':'command_error','message':_0x5e48e9['message']}),_0x588f03;}function printJson(_0x4c6a9c,_0xbafa44){const _0x28e11b=a106_0x2997,_0x417614=buildEnvelope(_0x4c6a9c,_0xbafa44),_0xb9f27b=JSON[_0x28e11b(0x94)](_0x417614,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0xb9f27b,_0xbafa44);}function printCompress(_0xfc3147,_0x2c068c){const _0x5b411b=buildEnvelope(_0xfc3147,_0x2c068c),_0xa2ed0f=JSON['stringify'](_0x5b411b)+'\x0a';writeJsonWithOptionalJq(_0xa2ed0f,_0x2c068c);}function writeJsonWithOptionalJq(_0x18bd42,_0x47f6a9){const _0x3087b3=a106_0x2997,_0x96328a=_0x47f6a9['jqFilter']?.[_0x3087b3(0x9e)]();if(!_0x96328a){process['stdout'][_0x3087b3(0x8f)](_0x18bd42);return;}const _0x1ea94d=applyJqFilter(_0x18bd42,_0x96328a);process[_0x3087b3(0x9c)][_0x3087b3(0x8f)](_0x1ea94d[_0x3087b3(0xa3)]('\x0a')?_0x1ea94d:_0x1ea94d+'\x0a');}function isListWithMetaData(_0x2991d5){const _0xe807af=a106_0x2997;return typeof _0x2991d5===_0xe807af(0xad)&&_0x2991d5!==null&&_0xe807af(0xa5)in _0x2991d5&&Array[_0xe807af(0xa7)](_0x2991d5[_0xe807af(0xa5)])&&_0xe807af(0xb4)in _0x2991d5&&typeof _0x2991d5[_0xe807af(0xb4)]==='object'&&_0x2991d5[_0xe807af(0xb4)]!==null;}function printAppListMeta(_0x1a536d){const _0x3f36fc=a106_0x2997,_0x543de8=_0x1a536d[_0x3f36fc(0xb0)]!=null?String(_0x1a536d[_0x3f36fc(0xb0)]):_0x3f36fc(0xae),_0x1cc94c=_0x1a536d['projectPath']!=null?String(_0x1a536d['projectPath']):_0x3f36fc(0xae),_0x3929bf=_0x1a536d[_0x3f36fc(0xc0)]!=null?String(_0x1a536d[_0x3f36fc(0xc0)]):_0x3f36fc(0xae),_0x2edcd8=_0x1a536d[_0x3f36fc(0xbe)],_0x571598=_0x2edcd8===_0x3f36fc(0xb3)?'\x20(default\x20from\x20project\x20file)':_0x2edcd8===_0x3f36fc(0xa2)?_0x3f36fc(0x90):'';console[_0x3f36fc(0xbb)](_0x3f36fc(0x91)+_0x543de8),console['log'](_0x3f36fc(0xa4)+_0x1cc94c),console[_0x3f36fc(0xbb)](_0x3f36fc(0xb7)+_0x3929bf+_0x571598),console[_0x3f36fc(0xbb)]();}function a106_0x2997(_0x2f3950,_0x15496e){_0x2f3950=_0x2f3950-0x8e;const _0x3e8e85=a106_0x3e8e();let _0x2997ec=_0x3e8e85[_0x2f3950];return _0x2997ec;}function printPretty(_0x32b3f6,_0x4fe85f){const _0x11020f=a106_0x2997;if(_0x4fe85f[_0x11020f(0xb5)]){console[_0x11020f(0xbb)](_0x11020f(0x9d)),console[_0x11020f(0xbb)](JSON[_0x11020f(0x94)](_0x32b3f6[_0x11020f(0xb1)],null,0x2));return;}if(!_0x32b3f6['ok']){console['error'](_0x11020f(0xbc)+(_0x32b3f6['message']??_0x11020f(0xa9)));return;}const _0x42df71=_0x32b3f6[_0x11020f(0xb1)];if(_0x42df71===undefined||_0x42df71===null){if(_0x32b3f6['message'])console['log'](_0x32b3f6[_0x11020f(0xab)]);return;}if(isListWithMetaData(_0x42df71)){printAppListMeta(_0x42df71[_0x11020f(0xb4)]),printArrayPretty(_0x42df71[_0x11020f(0xa5)]);return;}if(Array[_0x11020f(0xa7)](_0x42df71)){printArrayPretty(_0x42df71);return;}if(typeof _0x42df71===_0x11020f(0xad)){printObjectPretty(_0x42df71);return;}console[_0x11020f(0xbb)](String(_0x42df71));}function printObjectPretty(_0x5bd9a6){const _0x1878d6=a106_0x2997,_0x4bba46=Math[_0x1878d6(0x9a)](...Object[_0x1878d6(0x9b)](_0x5bd9a6)[_0x1878d6(0xa8)](_0x590ad5=>_0x590ad5['length']),0x0);for(const [_0x409f6b,_0x1ef569]of Object[_0x1878d6(0x9f)](_0x5bd9a6)){if(_0x1ef569===undefined||_0x1ef569===null)continue;const _0x4e9566=_0x409f6b[_0x1878d6(0xb6)](_0x4bba46);typeof _0x1ef569===_0x1878d6(0xad)?console[_0x1878d6(0xbb)](_0x4e9566+'\x20\x20'+JSON[_0x1878d6(0x94)](_0x1ef569)):console[_0x1878d6(0xbb)](_0x4e9566+'\x20\x20'+_0x1ef569);}}function printArrayPretty(_0x43e275){const _0x2ea1bb=a106_0x2997;if(_0x43e275[_0x2ea1bb(0xa0)]===0x0){console[_0x2ea1bb(0xbb)](_0x2ea1bb(0xb8));return;}console['log'](_0x2ea1bb(0x97)+_0x43e275[_0x2ea1bb(0xa0)]+_0x2ea1bb(0xbf));for(const _0x7df535 of _0x43e275){if(typeof _0x7df535===_0x2ea1bb(0xad)&&_0x7df535!==null){const _0x14976f=Object[_0x2ea1bb(0x9f)](_0x7df535)['filter'](([,_0x1f9329])=>_0x1f9329!=null&&_0x1f9329!=='');if(_0x14976f[_0x2ea1bb(0xa0)]===0x0)continue;const _0x385c94=Math[_0x2ea1bb(0x9a)](..._0x14976f['map'](([_0x4f0784])=>_0x4f0784['length']));for(const [_0x26033f,_0x4a70f7]of _0x14976f){const _0x3267ad=typeof _0x4a70f7===_0x2ea1bb(0xad)?JSON[_0x2ea1bb(0x94)](_0x4a70f7):String(_0x4a70f7);console[_0x2ea1bb(0xbb)]('\x20\x20'+_0x26033f['padEnd'](_0x385c94)+'\x20\x20'+_0x3267ad);}console['log']('');}else console[_0x2ea1bb(0xbb)]('\x20\x20'+_0x7df535);}}function printTable(_0xb5382d,_0x3ac747){const _0x3c1248=a106_0x2997,_0x1c390c=_0xb5382d['data'];if(!_0xb5382d['ok']){console[_0x3c1248(0xac)](_0x3c1248(0xbc)+(_0xb5382d[_0x3c1248(0xab)]??_0x3c1248(0xa9)));return;}if(isListWithMetaData(_0x1c390c)){printAppListMeta(_0x1c390c['meta']),printTableRows(_0x1c390c[_0x3c1248(0xa5)]);return;}const _0x3709f3=Array[_0x3c1248(0xa7)](_0x1c390c)?_0x1c390c:_0x1c390c?[_0x1c390c]:[];printTableRows(_0x3709f3);}function printTableRows(_0x1dcde6){const _0x2adcb8=a106_0x2997;if(_0x1dcde6[_0x2adcb8(0xa0)]===0x0){console[_0x2adcb8(0xbb)]('(empty)');return;}const _0x346c13=Object['keys'](_0x1dcde6[0x0]),_0x5dd7af=_0x346c13[_0x2adcb8(0xa8)](_0x382e80=>Math[_0x2adcb8(0x9a)](_0x382e80['length'],..._0x1dcde6[_0x2adcb8(0xa8)](_0x445540=>String(_0x445540[_0x382e80]??'')[_0x2adcb8(0xa0)]))),_0x4891b8=_0x346c13['map']((_0x4543e6,_0x12bd90)=>_0x4543e6[_0x2adcb8(0xb6)](_0x5dd7af[_0x12bd90]))[_0x2adcb8(0xc2)]('\x20\x20'),_0xe9b006=_0x5dd7af['map'](_0x58296c=>'-'[_0x2adcb8(0xaa)](_0x58296c))[_0x2adcb8(0xc2)]('\x20\x20');console[_0x2adcb8(0xbb)](_0x4891b8),console['log'](_0xe9b006);for(const _0x2406ab of _0x1dcde6){const _0x440a0e=_0x346c13[_0x2adcb8(0xa8)]((_0x299196,_0x1d2c8e)=>String(_0x2406ab[_0x299196]??'')[_0x2adcb8(0xb6)](_0x5dd7af[_0x1d2c8e]))['join']('\x20\x20');console[_0x2adcb8(0xbb)](_0x440a0e);}}
1
+ (function(_0x3845b8,_0x31dac9){const _0x44fcd6=a106_0x347c,_0x35d5d9=_0x3845b8();while(!![]){try{const _0x1fe372=-parseInt(_0x44fcd6(0x170))/0x1+-parseInt(_0x44fcd6(0x166))/0x2+-parseInt(_0x44fcd6(0x15b))/0x3*(-parseInt(_0x44fcd6(0x172))/0x4)+parseInt(_0x44fcd6(0x151))/0x5+-parseInt(_0x44fcd6(0x176))/0x6*(-parseInt(_0x44fcd6(0x161))/0x7)+-parseInt(_0x44fcd6(0x157))/0x8+parseInt(_0x44fcd6(0x16c))/0x9;if(_0x1fe372===_0x31dac9)break;else _0x35d5d9['push'](_0x35d5d9['shift']());}catch(_0x34432c){_0x35d5d9['push'](_0x35d5d9['shift']());}}}(a106_0x2423,0xf21cb));function a106_0x347c(_0x398b9f,_0x1684d7){_0x398b9f=_0x398b9f-0x14b;const _0x242353=a106_0x2423();let _0x347c90=_0x242353[_0x398b9f];return _0x347c90;}import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x48d89c,_0x5b1c3d){const _0x54df7b=a106_0x347c,{format:_0x235688}=_0x5b1c3d;switch(_0x235688){case _0x54df7b(0x165):printJson(_0x48d89c,_0x5b1c3d);break;case _0x54df7b(0x15a):printCompress(_0x48d89c,_0x5b1c3d);break;case _0x54df7b(0x152):default:printPretty(_0x48d89c,_0x5b1c3d);break;}}function buildEnvelope(_0x29b3e0,_0x1fe77a){const _0x364cea=a106_0x347c,_0x3f001f={'ok':_0x29b3e0['ok'],'command':_0x1fe77a[_0x364cea(0x150)],'risk':_0x1fe77a[_0x364cea(0x171)]};if(_0x1fe77a[_0x364cea(0x14b)])_0x3f001f[_0x364cea(0x14b)]=!![];if(_0x29b3e0[_0x364cea(0x16e)]!==undefined)_0x3f001f[_0x364cea(0x16e)]=_0x29b3e0['data'];return!_0x29b3e0['ok']&&_0x29b3e0[_0x364cea(0x14c)]&&(_0x3f001f[_0x364cea(0x156)]={'code':_0x364cea(0x160),'message':_0x29b3e0['message']}),_0x3f001f;}function a106_0x2423(){const _0x498b5e=['write','data','Unknown\x20error','1732054nlpcYa','risk','4tLJgLA','defaultAppSource','items','meta','912cHrLGr','\x20items:\x0a','stdout','dryRun','message','\x20(default\x20from\x20global\x20file)','globalPath','stringify','command','1275820tdcCNe','pretty','endsWith','[dry-run]\x20Would\x20execute:','log','error','14842016dMTFlH','entries','padEnd','compress','3970788Xapmcf','isArray','defaultApp','(none)','length','command_error','13811IhTBTF','keys','jqFilter','global','json','1818310yQOOTz','projectPath','map','\x20\x20Default\x20app:\x20\x20\x20\x20\x20','object','trim','32485464XYJdlA'];a106_0x2423=function(){return _0x498b5e;};return a106_0x2423();}function printJson(_0xa5d333,_0x4b30ed){const _0x8aaa72=buildEnvelope(_0xa5d333,_0x4b30ed),_0x3ab024=JSON['stringify'](_0x8aaa72,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0x3ab024,_0x4b30ed);}function printCompress(_0x2cffa5,_0x45cced){const _0x5e8f8a=a106_0x347c,_0x517254=buildEnvelope(_0x2cffa5,_0x45cced),_0x4dc210=JSON[_0x5e8f8a(0x14f)](_0x517254)+'\x0a';writeJsonWithOptionalJq(_0x4dc210,_0x45cced);}function writeJsonWithOptionalJq(_0x534a26,_0x293500){const _0x198a77=a106_0x347c,_0x2e725b=_0x293500[_0x198a77(0x163)]?.[_0x198a77(0x16b)]();if(!_0x2e725b){process[_0x198a77(0x178)][_0x198a77(0x16d)](_0x534a26);return;}const _0x511c49=applyJqFilter(_0x534a26,_0x2e725b);process['stdout']['write'](_0x511c49[_0x198a77(0x153)]('\x0a')?_0x511c49:_0x511c49+'\x0a');}function isListWithMetaData(_0x1104d9){const _0x4e8e9c=a106_0x347c;return typeof _0x1104d9===_0x4e8e9c(0x16a)&&_0x1104d9!==null&&'items'in _0x1104d9&&Array[_0x4e8e9c(0x15c)](_0x1104d9[_0x4e8e9c(0x174)])&&'meta'in _0x1104d9&&typeof _0x1104d9[_0x4e8e9c(0x175)]==='object'&&_0x1104d9['meta']!==null;}function printAppListMeta(_0x1922fe){const _0x266f18=a106_0x347c,_0x34b35f=_0x1922fe[_0x266f18(0x14e)]!=null?String(_0x1922fe['globalPath']):_0x266f18(0x15e),_0x117185=_0x1922fe[_0x266f18(0x167)]!=null?String(_0x1922fe[_0x266f18(0x167)]):_0x266f18(0x15e),_0x1b7033=_0x1922fe[_0x266f18(0x15d)]!=null?String(_0x1922fe['defaultApp']):'(none)',_0x5ab9a4=_0x1922fe[_0x266f18(0x173)],_0x4c7192=_0x5ab9a4==='project'?'\x20(default\x20from\x20project\x20file)':_0x5ab9a4===_0x266f18(0x164)?_0x266f18(0x14d):'';console['log']('\x20\x20Global\x20config:\x20\x20\x20'+_0x34b35f),console[_0x266f18(0x155)]('\x20\x20Project\x20config:\x20\x20'+_0x117185),console[_0x266f18(0x155)](_0x266f18(0x169)+_0x1b7033+_0x4c7192),console[_0x266f18(0x155)]();}function printPretty(_0x609aef,_0x4860cd){const _0x363242=a106_0x347c;if(_0x4860cd[_0x363242(0x14b)]){console[_0x363242(0x155)](_0x363242(0x154)),console['log'](JSON['stringify'](_0x609aef['data'],null,0x2));return;}if(!_0x609aef['ok']){console[_0x363242(0x156)]('Error:\x20'+(_0x609aef[_0x363242(0x14c)]??_0x363242(0x16f)));return;}const _0x383ff3=_0x609aef[_0x363242(0x16e)];if(_0x383ff3===undefined||_0x383ff3===null){if(_0x609aef[_0x363242(0x14c)])console[_0x363242(0x155)](_0x609aef[_0x363242(0x14c)]);return;}if(isListWithMetaData(_0x383ff3)){printAppListMeta(_0x383ff3[_0x363242(0x175)]),printArrayPretty(_0x383ff3[_0x363242(0x174)]);return;}if(Array[_0x363242(0x15c)](_0x383ff3)){printArrayPretty(_0x383ff3);return;}if(typeof _0x383ff3===_0x363242(0x16a)){printObjectPretty(_0x383ff3);return;}console['log'](String(_0x383ff3));}function printObjectPretty(_0x44f912){const _0x2e29b8=a106_0x347c,_0x1535f2=Math['max'](...Object[_0x2e29b8(0x162)](_0x44f912)[_0x2e29b8(0x168)](_0x1531a3=>_0x1531a3['length']),0x0);for(const [_0x531d69,_0x4abee7]of Object[_0x2e29b8(0x158)](_0x44f912)){if(_0x4abee7===undefined||_0x4abee7===null)continue;const _0x55db28=_0x531d69[_0x2e29b8(0x159)](_0x1535f2);typeof _0x4abee7===_0x2e29b8(0x16a)?console['log'](_0x55db28+'\x20\x20'+JSON[_0x2e29b8(0x14f)](_0x4abee7)):console[_0x2e29b8(0x155)](_0x55db28+'\x20\x20'+_0x4abee7);}}function printArrayPretty(_0x454a30){const _0x5d0dcd=a106_0x347c;if(_0x454a30[_0x5d0dcd(0x15f)]===0x0){console[_0x5d0dcd(0x155)]('(empty)');return;}console[_0x5d0dcd(0x155)]('Found\x20'+_0x454a30['length']+_0x5d0dcd(0x177));for(const _0x36818e of _0x454a30){if(typeof _0x36818e==='object'&&_0x36818e!==null){const _0x4ef4b2=Object[_0x5d0dcd(0x158)](_0x36818e)['filter'](([,_0x11524f])=>_0x11524f!=null&&_0x11524f!=='');if(_0x4ef4b2[_0x5d0dcd(0x15f)]===0x0)continue;const _0x2cc0d2=Math['max'](..._0x4ef4b2[_0x5d0dcd(0x168)](([_0x1a7eea])=>_0x1a7eea[_0x5d0dcd(0x15f)]));for(const [_0x5db390,_0x1dca72]of _0x4ef4b2){const _0x48e362=typeof _0x1dca72===_0x5d0dcd(0x16a)?JSON[_0x5d0dcd(0x14f)](_0x1dca72):String(_0x1dca72);console['log']('\x20\x20'+_0x5db390[_0x5d0dcd(0x159)](_0x2cc0d2)+'\x20\x20'+_0x48e362);}console[_0x5d0dcd(0x155)]('');}else console[_0x5d0dcd(0x155)]('\x20\x20'+_0x36818e);}}
@@ -1 +1 @@
1
- (function(_0x32d5ec,_0x2ab586){var _0x58db59=a107_0x5860,_0xea9f54=_0x32d5ec();while(!![]){try{var _0x3a93b6=parseInt(_0x58db59(0x90))/0x1*(parseInt(_0x58db59(0x8f))/0x2)+parseInt(_0x58db59(0x91))/0x3*(-parseInt(_0x58db59(0x85))/0x4)+-parseInt(_0x58db59(0x88))/0x5+parseInt(_0x58db59(0x8b))/0x6+parseInt(_0x58db59(0x87))/0x7*(-parseInt(_0x58db59(0x8d))/0x8)+-parseInt(_0x58db59(0x8a))/0x9*(parseInt(_0x58db59(0x8e))/0xa)+-parseInt(_0x58db59(0x93))/0xb*(-parseInt(_0x58db59(0x8c))/0xc);if(_0x3a93b6===_0x2ab586)break;else _0xea9f54['push'](_0xea9f54['shift']());}catch(_0x4c4cbd){_0xea9f54['push'](_0xea9f54['shift']());}}}(a107_0x92ba,0xca79f));export function extractList(_0x1b80e7){var _0x4fb017=a107_0x5860;if(Array[_0x4fb017(0x86)](_0x1b80e7))return _0x1b80e7;if(_0x1b80e7&&typeof _0x1b80e7===_0x4fb017(0x84))return _0x1b80e7[_0x4fb017(0x89)]??[];return[];}function a107_0x92ba(){var _0x5a6d37=['tableData','473094QIUOiR','7720482UfJvHu','3840eYvqTS','8XfnhDK','190ROpUNq','54rKHFlz','17077BkvZem','15fWoMrK','paging','95172DLGEIu','object','761268YEnhUX','isArray','3152590BaYqYk','6432070HWjBgI'];a107_0x92ba=function(){return _0x5a6d37;};return a107_0x92ba();}function a107_0x5860(_0x5ab521,_0x58d5b5){_0x5ab521=_0x5ab521-0x84;var _0x92ba69=a107_0x92ba();var _0x586031=_0x92ba69[_0x5ab521];return _0x586031;}export function extractPaging(_0x4ce030){var _0x898ab0=a107_0x5860;if(_0x4ce030&&typeof _0x4ce030===_0x898ab0(0x84)&&!Array[_0x898ab0(0x86)](_0x4ce030))return _0x4ce030[_0x898ab0(0x92)];return undefined;}
1
+ (function(_0x5b5dd8,_0x4bccd5){var _0x56ad89=a107_0x4b03,_0x47223c=_0x5b5dd8();while(!![]){try{var _0x24e13c=parseInt(_0x56ad89(0xc7))/0x1+parseInt(_0x56ad89(0xcb))/0x2+-parseInt(_0x56ad89(0xc8))/0x3*(parseInt(_0x56ad89(0xc5))/0x4)+parseInt(_0x56ad89(0xca))/0x5+-parseInt(_0x56ad89(0xc4))/0x6*(-parseInt(_0x56ad89(0xc6))/0x7)+-parseInt(_0x56ad89(0xc2))/0x8+parseInt(_0x56ad89(0xc0))/0x9*(-parseInt(_0x56ad89(0xc9))/0xa);if(_0x24e13c===_0x4bccd5)break;else _0x47223c['push'](_0x47223c['shift']());}catch(_0x295968){_0x47223c['push'](_0x47223c['shift']());}}}(a107_0x4eb8,0x33f2f));export function extractList(_0x5eb7da){var _0x5c19a6=a107_0x4b03;if(Array[_0x5c19a6(0xc3)](_0x5eb7da))return _0x5eb7da;if(_0x5eb7da&&typeof _0x5eb7da===_0x5c19a6(0xbf))return _0x5eb7da[_0x5c19a6(0xc1)]??[];return[];}function a107_0x4b03(_0x476da4,_0x32d3fc){_0x476da4=_0x476da4-0xbf;var _0x4eb89a=a107_0x4eb8();var _0x4b03eb=_0x4eb89a[_0x476da4];return _0x4b03eb;}function a107_0x4eb8(){var _0x3dd480=['tableData','65504SiMzeN','isArray','20778HKSVhH','4ZugGst','287KIWEFK','422847HqlcrV','172203zujFmX','10JHbpNn','1953595OchIVB','521812VGaQka','object','8442747xLZgTY'];a107_0x4eb8=function(){return _0x3dd480;};return a107_0x4eb8();}export function extractPaging(_0x467a72){var _0x328aff=a107_0x4b03;if(_0x467a72&&typeof _0x467a72===_0x328aff(0xbf)&&!Array[_0x328aff(0xc3)](_0x467a72))return _0x467a72['paging'];return undefined;}
@@ -1 +1 @@
1
- (function(_0x459251,_0x4800ce){const _0xce67c4=a108_0x3849,_0xe2a9d3=_0x459251();while(!![]){try{const _0x31a94f=-parseInt(_0xce67c4(0x224))/0x1*(parseInt(_0xce67c4(0x220))/0x2)+-parseInt(_0xce67c4(0x20c))/0x3+-parseInt(_0xce67c4(0x213))/0x4+-parseInt(_0xce67c4(0x225))/0x5*(-parseInt(_0xce67c4(0x21c))/0x6)+parseInt(_0xce67c4(0x210))/0x7+-parseInt(_0xce67c4(0x1fe))/0x8+-parseInt(_0xce67c4(0x233))/0x9*(-parseInt(_0xce67c4(0x1f8))/0xa);if(_0x31a94f===_0x4800ce)break;else _0xe2a9d3['push'](_0xe2a9d3['shift']());}catch(_0x93515b){_0xe2a9d3['push'](_0xe2a9d3['shift']());}}}(a108_0x2427,0xcd953));import{riskLevelOrder,isValidFormat}from'./types.js';import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';function a108_0x2427(){const _0x460677=['7146QpJwUF','some','verbose','../core/api-client.js','code','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','command','.\x20Run\x20`','./src/api','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','`\x20requires\x20either\x20--code\x20or\x20--alias.','cookie','args','apiDomain','resolveApiDomain','yes','46370zBhJSg','cancelled','map','Available\x20aliases:\x20','pretty','No\x20api.ts\x20found\x20in\x20','7594480WVdmOR','toLowerCase','Operation\x20cancelled\x20by\x20user.','createInterface','string','type','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','flags','apiDir','json','isNonInteractive','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','trim','dryRun','55734wLItdY','resolveCookie','validation','stdin','6000155CTLgMQ','\x22.\x0a','service','5349924ILleog','riskLevel','defaultOutputFormat','Set\x20appcode\x20via\x20`','authRequired','configMissing','compress','defaultVerbose','selectedAppName','18uxQsOF','stderr','⚠\x20\x20High-risk\x20operation:\x20','jqFilter','88QQEWMq','alias','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','38122MSYkhN','476435VzGogB','`\x20has\x20risk\x20level\x20\x22','dry-run','defaultPageSize','risk','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','pagesize','hasFormat','number','format','validate','node:readline','Command\x20`','High-risk\x20operation\x20`'];a108_0x2427=function(){return _0x460677;};return a108_0x2427();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x1e8afa,_0x307384){const _0x416ffb=a108_0x3849,_0x235954=CLI_BIN_NAME+'\x20'+_0x1e8afa[_0x416ffb(0x212)]+'\x20'+_0x1e8afa['command'],_0x26e712=parseFlags(_0x1e8afa[_0x416ffb(0x205)],_0x307384['rawFlags']);validateFlags(_0x1e8afa[_0x416ffb(0x205)],_0x26e712,_0x235954);if(!_0x26e712['dry-run']&&_0x307384[_0x416ffb(0x214)]&&riskLevelOrder(_0x1e8afa[_0x416ffb(0x229)])>riskLevelOrder(_0x307384[_0x416ffb(0x214)])){if(_0x307384[_0x416ffb(0x208)])throw CliErrors[_0x416ffb(0x20e)](_0x416ffb(0x231)+_0x235954+_0x416ffb(0x226)+_0x1e8afa[_0x416ffb(0x229)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x307384[_0x416ffb(0x214)]+'\x22.');throw CliErrors['validation'](_0x416ffb(0x231)+_0x235954+_0x416ffb(0x226)+_0x1e8afa['risk']+_0x416ffb(0x22a)+_0x307384['riskLevel']+_0x416ffb(0x211)+(_0x416ffb(0x23c)+_0x1e8afa['risk']+_0x416ffb(0x238)));}const _0x3f9a93=_0x307384[_0x416ffb(0x206)]||_0x416ffb(0x23b);resolveAliasToCode(_0x1e8afa,_0x26e712,_0x3f9a93,_0x235954);let _0x4b9705='';if(_0x1e8afa['requiresAuth']!==![]){_0x4b9705=_0x307384[_0x416ffb(0x20d)]();if(!_0x4b9705)throw CliErrors[_0x416ffb(0x217)]();const {setActiveCookie:_0x5553fd}=await import(_0x416ffb(0x236));_0x5553fd(_0x4b9705);}let _0x3df702='';if(_0x1e8afa['requiresAppCode']!==![]){_0x3df702=_0x307384['resolveAppCode']()??'';if(!_0x3df702)throw CliErrors[_0x416ffb(0x218)](_0x416ffb(0x216)+CLI_BIN_NAME+_0x416ffb(0x209));}const _0x5f31f3=resolveFormat(_0x26e712,_0x1e8afa,_0x307384['defaultFormat']),_0x4c590a=resolveJqFilter(_0x26e712);if(_0x4c590a&&_0x5f31f3!==_0x416ffb(0x207)&&_0x5f31f3!==_0x416ffb(0x219))throw CliErrors[_0x416ffb(0x20e)](_0x416ffb(0x223)+_0x5f31f3+').');const _0x43f3c8=buildRuntimeContext({'appCode':_0x3df702,'cookie':_0x4b9705,'apiDomain':_0x307384[_0x416ffb(0x1f6)](),'format':_0x5f31f3,'jqFilter':_0x4c590a,'flags':_0x26e712,'def':_0x1e8afa,'nonInteractive':_0x307384['isNonInteractive'],'defaultPageSize':_0x307384[_0x416ffb(0x228)],'defaultVerbose':_0x307384[_0x416ffb(0x21a)],'apiDir':_0x3f9a93,'selectedAppName':_0x307384[_0x416ffb(0x21b)],'args':_0x307384[_0x416ffb(0x1f4)]??[]});_0x1e8afa[_0x416ffb(0x22f)]&&await _0x1e8afa['validate'](_0x43f3c8);if(_0x26e712[_0x416ffb(0x227)]){if(!_0x1e8afa['dryRun'])throw CliErrors['validation']('--dry-run\x20is\x20not\x20supported\x20for\x20`'+_0x235954+'`.');const _0x242aae=await _0x1e8afa[_0x416ffb(0x20b)](_0x43f3c8);formatOutput({'ok':!![],'data':_0x242aae},{'command':_0x235954,'risk':_0x1e8afa[_0x416ffb(0x229)],'format':_0x5f31f3,'dryRun':!![],'jqFilter':_0x4c590a});return;}if(_0x1e8afa['risk']==='high-risk-write'&&!_0x26e712['yes']){if(_0x307384[_0x416ffb(0x208)])throw CliErrors['validation'](_0x416ffb(0x232)+_0x235954+_0x416ffb(0x222));await requireConfirmation(_0x235954);}const _0x1ecb81=await _0x1e8afa['execute'](_0x43f3c8);formatOutput(_0x1ecb81,{'command':_0x235954,'risk':_0x1e8afa[_0x416ffb(0x229)],'format':_0x5f31f3,'jqFilter':_0x4c590a});}function buildRuntimeContext(_0x11742d){const _0x21e1ab=a108_0x3849,{flags:_0x51a24b,def:_0x25fef8}=_0x11742d,_0x2e4ef3=CLI_BIN_NAME+'\x20'+_0x25fef8[_0x21e1ab(0x212)]+'\x20'+_0x25fef8[_0x21e1ab(0x239)];return{'appCode':_0x11742d['appCode'],'cookie':_0x11742d[_0x21e1ab(0x1f3)],'apiDomain':_0x11742d[_0x21e1ab(0x1f5)],'format':_0x11742d['format'],'nonInteractive':_0x11742d['nonInteractive'],'apiDir':_0x11742d['apiDir'],'selectedAppName':_0x11742d['selectedAppName'],'args':_0x11742d['args'],'str'(_0x2f10b9){return String(_0x51a24b[_0x2f10b9]??'');},'bool'(_0x312634){const _0x34fa24=_0x21e1ab;if(_0x51a24b[_0x312634]===!![])return!![];if(_0x312634===_0x34fa24(0x235)&&_0x11742d[_0x34fa24(0x21a)])return!![];return![];},'num'(_0xfc718,_0x439345){const _0x5aea44=_0x21e1ab,_0x11adb1=_0x51a24b[_0xfc718];if(typeof _0x11adb1===_0x5aea44(0x22d))return _0x11adb1;if(_0xfc718===_0x5aea44(0x22b)&&_0x11742d[_0x5aea44(0x228)]!=null)return _0x11742d[_0x5aea44(0x228)];return _0x439345??0x0;},'flag'(_0x2ea93a){return _0x51a24b[_0x2ea93a];},'output'(_0x4b62d9){const _0x385b3a=_0x21e1ab;formatOutput(_0x4b62d9,{'command':_0x2e4ef3,'risk':_0x25fef8[_0x385b3a(0x229)],'format':_0x11742d['format'],'jqFilter':_0x11742d[_0x385b3a(0x21f)]});}};}function resolveJqFilter(_0x19eedd){const _0x125efc=a108_0x3849,_0x519066=_0x19eedd['jq'];if(_0x519066===undefined||_0x519066===null)return undefined;const _0x352901=String(_0x519066)[_0x125efc(0x20a)]();return _0x352901===''?undefined:_0x352901;}function a108_0x3849(_0x2e3650,_0x466537){_0x2e3650=_0x2e3650-0x1f2;const _0x2427be=a108_0x2427();let _0x3849ca=_0x2427be[_0x2e3650];return _0x3849ca;}function resolveFormat(_0x249f55,_0x2e8f3c,_0x381800){const _0x480836=a108_0x3849;if(_0x2e8f3c[_0x480836(0x22c)]===![])return _0x480836(0x1fc);const _0x1c2240=_0x249f55[_0x480836(0x22e)];if(isValidFormat(_0x1c2240))return _0x1c2240;if(_0x381800&&isValidFormat(_0x381800))return _0x381800;if(_0x2e8f3c[_0x480836(0x215)]&&isValidFormat(_0x2e8f3c[_0x480836(0x215)]))return _0x2e8f3c[_0x480836(0x215)];return _0x480836(0x1fc);}async function requireConfirmation(_0x291e81){const _0x53ff19=a108_0x3849,_0x4c246c=await import(_0x53ff19(0x230)),_0x3d4196=_0x4c246c[_0x53ff19(0x201)]({'input':process[_0x53ff19(0x20f)],'output':process[_0x53ff19(0x21d)]});return new Promise((_0x44e6d4,_0x34de46)=>{const _0x2475ef=_0x53ff19;_0x3d4196['question'](_0x2475ef(0x21e)+_0x291e81+_0x2475ef(0x204),_0x2e7d71=>{const _0x4e8ea5=_0x2475ef;_0x3d4196['close'](),_0x2e7d71[_0x4e8ea5(0x1ff)]()==='y'||_0x2e7d71[_0x4e8ea5(0x1ff)]()===_0x4e8ea5(0x1f7)?_0x44e6d4():_0x34de46(CliErrors[_0x4e8ea5(0x1f9)](_0x4e8ea5(0x200)));});});}function resolveAliasToCode(_0x29a81f,_0x5022fe,_0x9086e4,_0x50a6e4){const _0x3ccd9d=a108_0x3849,_0x562908=_0x29a81f[_0x3ccd9d(0x205)][_0x3ccd9d(0x234)](_0x4d3dfa=>_0x4d3dfa['name']===_0x3ccd9d(0x237)&&_0x4d3dfa['type']==='string'),_0x380516=_0x29a81f[_0x3ccd9d(0x205)][_0x3ccd9d(0x234)](_0x37da25=>_0x37da25['name']===_0x3ccd9d(0x221)&&_0x37da25[_0x3ccd9d(0x203)]===_0x3ccd9d(0x202));if(!_0x562908||!_0x380516)return;const _0x12153e=_0x5022fe[_0x3ccd9d(0x237)]?String(_0x5022fe[_0x3ccd9d(0x237)]):'',_0x587ac0=_0x5022fe['alias']?String(_0x5022fe[_0x3ccd9d(0x221)]):'';if(!_0x12153e&&!_0x587ac0)throw CliErrors[_0x3ccd9d(0x20e)]('`'+_0x50a6e4+_0x3ccd9d(0x1f2));if(_0x587ac0&&!_0x12153e){const _0x4313f5=resolveAlias(_0x9086e4,_0x587ac0);if(!_0x4313f5){const _0x52daad=listAliases(_0x9086e4)[_0x3ccd9d(0x1fa)](_0x33f168=>_0x33f168[_0x3ccd9d(0x221)]),_0x4a99df=_0x52daad['length']?_0x3ccd9d(0x1fb)+_0x52daad['join'](',\x20'):_0x3ccd9d(0x1fd)+_0x9086e4+_0x3ccd9d(0x23a)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x3ccd9d(0x20e)]('Unknown\x20alias\x20\x22'+_0x587ac0+'\x22.\x20'+_0x4a99df);}_0x5022fe[_0x3ccd9d(0x237)]=_0x4313f5;}}
1
+ (function(_0x3f458c,_0x5c0eae){const _0x4de2e1=a108_0x46bf,_0x2a4d66=_0x3f458c();while(!![]){try{const _0x4d3f89=-parseInt(_0x4de2e1(0x19e))/0x1*(-parseInt(_0x4de2e1(0x1b8))/0x2)+-parseInt(_0x4de2e1(0x171))/0x3*(-parseInt(_0x4de2e1(0x177))/0x4)+parseInt(_0x4de2e1(0x198))/0x5*(parseInt(_0x4de2e1(0x17c))/0x6)+-parseInt(_0x4de2e1(0x180))/0x7*(-parseInt(_0x4de2e1(0x176))/0x8)+parseInt(_0x4de2e1(0x18e))/0x9+parseInt(_0x4de2e1(0x17f))/0xa*(parseInt(_0x4de2e1(0x1a8))/0xb)+-parseInt(_0x4de2e1(0x175))/0xc*(parseInt(_0x4de2e1(0x19d))/0xd);if(_0x4d3f89===_0x5c0eae)break;else _0x2a4d66['push'](_0x2a4d66['shift']());}catch(_0x2975a1){_0x2a4d66['push'](_0x2a4d66['shift']());}}}(a108_0x4590,0x581e8));function a108_0x4590(){const _0x44fce9=['json','requiresAuth','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','182586yYdStV','Available\x20aliases:\x20','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','cancelled','11230092lGURwR','120YXVtQc','12HYVITv','defaultPageSize','selectedAppName','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','\x22.\x20','1236iRIsVb','resolveAppCode','apiDir','1481030QsVsjv','49518PsfyYX','toLowerCase','resolveCookie','name','yes','defaultVerbose','High-risk\x20operation\x20`','Operation\x20cancelled\x20by\x20user.','code','trim','dry-run','Set\x20appcode\x20via\x20`','string','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','4395717XgOXJW','isNonInteractive','type','appCode','No\x20api.ts\x20found\x20in\x20','execute','rawFlags','riskLevel','verbose','Command\x20`','8210BwTYWE','high-risk-write','length','question','defaultOutputFormat','26SfjTtB','558mWzaCy','./src/api','pagesize','authRequired','../core/api-client.js','flags','pretty','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','format','apiDomain','33kNFGBJ','some','risk','command','validation','nonInteractive','args','node:readline','close','createInterface','Unknown\x20alias\x20\x22','number','jqFilter','alias','configMissing','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','2412HkbslZ','`\x20requires\x20either\x20--code\x20or\x20--alias.','resolveApiDomain','validate','service','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','join','⚠\x20\x20High-risk\x20operation:\x20','requiresAppCode','map','`\x20has\x20risk\x20level\x20\x22'];a108_0x4590=function(){return _0x44fce9;};return a108_0x4590();}import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x199541,_0x2ccd95){const _0x31d6c0=a108_0x46bf,_0x1b8d31=CLI_BIN_NAME+'\x20'+_0x199541[_0x31d6c0(0x1bc)]+'\x20'+_0x199541[_0x31d6c0(0x1ab)],_0x5ad6e9=parseFlags(_0x199541[_0x31d6c0(0x1a3)],_0x2ccd95[_0x31d6c0(0x194)]);validateFlags(_0x199541['flags'],_0x5ad6e9,_0x1b8d31);if(!_0x5ad6e9[_0x31d6c0(0x18a)]&&_0x2ccd95[_0x31d6c0(0x195)]&&riskLevelOrder(_0x199541[_0x31d6c0(0x1aa)])>riskLevelOrder(_0x2ccd95[_0x31d6c0(0x195)])){if(_0x2ccd95['isNonInteractive'])throw CliErrors[_0x31d6c0(0x1ac)](_0x31d6c0(0x197)+_0x1b8d31+_0x31d6c0(0x16d)+_0x199541[_0x31d6c0(0x1aa)]+_0x31d6c0(0x173)+_0x2ccd95[_0x31d6c0(0x195)]+'\x22.');throw CliErrors[_0x31d6c0(0x1ac)]('Command\x20`'+_0x1b8d31+_0x31d6c0(0x16d)+_0x199541[_0x31d6c0(0x1aa)]+_0x31d6c0(0x173)+_0x2ccd95[_0x31d6c0(0x195)]+'\x22.\x0a'+(_0x31d6c0(0x17a)+_0x199541[_0x31d6c0(0x1aa)]+_0x31d6c0(0x1a5)));}const _0x46eef0=_0x2ccd95['apiDir']||_0x31d6c0(0x19f);resolveAliasToCode(_0x199541,_0x5ad6e9,_0x46eef0,_0x1b8d31);let _0x361f19='';if(_0x199541[_0x31d6c0(0x16f)]!==![]){_0x361f19=_0x2ccd95[_0x31d6c0(0x182)]();if(!_0x361f19)throw CliErrors[_0x31d6c0(0x1a1)]();const {setActiveCookie:_0x3caaa5}=await import(_0x31d6c0(0x1a2));_0x3caaa5(_0x361f19);}let _0x216cd2='';if(_0x199541[_0x31d6c0(0x16b)]!==![]){_0x216cd2=_0x2ccd95[_0x31d6c0(0x17d)]()??'';if(!_0x216cd2)throw CliErrors[_0x31d6c0(0x1b6)](_0x31d6c0(0x18b)+CLI_BIN_NAME+_0x31d6c0(0x170));}let _0x399ebc=resolveFormat(_0x5ad6e9,_0x199541,_0x2ccd95['defaultFormat']);const _0x520152=resolveJqFilter(_0x5ad6e9);_0x520152&&_0x399ebc===_0x31d6c0(0x1a4)&&(_0x399ebc=_0x31d6c0(0x16e));if(_0x520152&&_0x399ebc!==_0x31d6c0(0x16e)&&_0x399ebc!=='compress')throw CliErrors[_0x31d6c0(0x1ac)](_0x31d6c0(0x18d)+_0x399ebc+').');const _0xa42e98=buildRuntimeContext({'appCode':_0x216cd2,'cookie':_0x361f19,'apiDomain':_0x2ccd95[_0x31d6c0(0x1ba)](),'format':_0x399ebc,'jqFilter':_0x520152,'flags':_0x5ad6e9,'def':_0x199541,'nonInteractive':_0x2ccd95[_0x31d6c0(0x18f)],'defaultPageSize':_0x2ccd95[_0x31d6c0(0x178)],'defaultVerbose':_0x2ccd95[_0x31d6c0(0x185)],'apiDir':_0x46eef0,'selectedAppName':_0x2ccd95[_0x31d6c0(0x179)],'args':_0x2ccd95['args']??[]});_0x199541[_0x31d6c0(0x1bb)]&&await _0x199541[_0x31d6c0(0x1bb)](_0xa42e98);if(_0x5ad6e9[_0x31d6c0(0x18a)]){if(!_0x199541['dryRun'])throw CliErrors[_0x31d6c0(0x1ac)]('--dry-run\x20is\x20not\x20supported\x20for\x20`'+_0x1b8d31+'`.');const _0x45ecc7=await _0x199541['dryRun'](_0xa42e98);formatOutput({'ok':!![],'data':_0x45ecc7},{'command':_0x1b8d31,'risk':_0x199541[_0x31d6c0(0x1aa)],'format':_0x399ebc,'dryRun':!![],'jqFilter':_0x520152});return;}if(_0x199541[_0x31d6c0(0x1aa)]===_0x31d6c0(0x199)&&!_0x5ad6e9[_0x31d6c0(0x184)]){if(_0x2ccd95['isNonInteractive'])throw CliErrors[_0x31d6c0(0x1ac)](_0x31d6c0(0x186)+_0x1b8d31+_0x31d6c0(0x1bd));await requireConfirmation(_0x1b8d31);}const _0x10240c=await _0x199541[_0x31d6c0(0x193)](_0xa42e98);formatOutput(_0x10240c,{'command':_0x1b8d31,'risk':_0x199541[_0x31d6c0(0x1aa)],'format':_0x399ebc,'jqFilter':_0x520152});}function buildRuntimeContext(_0x2f64bd){const _0x30beec=a108_0x46bf,{flags:_0x55f74f,def:_0x2a8451}=_0x2f64bd,_0x438111=CLI_BIN_NAME+'\x20'+_0x2a8451['service']+'\x20'+_0x2a8451['command'];return{'appCode':_0x2f64bd[_0x30beec(0x191)],'cookie':_0x2f64bd['cookie'],'apiDomain':_0x2f64bd[_0x30beec(0x1a7)],'format':_0x2f64bd['format'],'nonInteractive':_0x2f64bd[_0x30beec(0x1ad)],'apiDir':_0x2f64bd[_0x30beec(0x17e)],'selectedAppName':_0x2f64bd['selectedAppName'],'args':_0x2f64bd[_0x30beec(0x1ae)],'str'(_0x261767){return String(_0x55f74f[_0x261767]??'');},'bool'(_0x226c06){const _0x310120=_0x30beec;if(_0x55f74f[_0x226c06]===!![])return!![];if(_0x226c06===_0x310120(0x196)&&_0x2f64bd['defaultVerbose'])return!![];return![];},'num'(_0x38c1f3,_0x53fa13){const _0x39bca7=_0x30beec,_0x2cfbff=_0x55f74f[_0x38c1f3];if(typeof _0x2cfbff===_0x39bca7(0x1b3))return _0x2cfbff;if(_0x38c1f3===_0x39bca7(0x1a0)&&_0x2f64bd[_0x39bca7(0x178)]!=null)return _0x2f64bd[_0x39bca7(0x178)];return _0x53fa13??0x0;},'flag'(_0xa005c9){return _0x55f74f[_0xa005c9];},'output'(_0x24940b){const _0x5c5537=_0x30beec;formatOutput(_0x24940b,{'command':_0x438111,'risk':_0x2a8451[_0x5c5537(0x1aa)],'format':_0x2f64bd[_0x5c5537(0x1a6)],'jqFilter':_0x2f64bd[_0x5c5537(0x1b4)]});}};}function a108_0x46bf(_0x3e8afc,_0x4f93f4){_0x3e8afc=_0x3e8afc-0x16a;const _0x4590ca=a108_0x4590();let _0x46bff1=_0x4590ca[_0x3e8afc];return _0x46bff1;}function resolveJqFilter(_0x41ff60){const _0x22c4ee=a108_0x46bf,_0x2565aa=_0x41ff60['jq'];if(_0x2565aa===undefined||_0x2565aa===null)return undefined;const _0x3a53ef=String(_0x2565aa)[_0x22c4ee(0x189)]();return _0x3a53ef===''?undefined:_0x3a53ef;}function resolveFormat(_0x3f586c,_0x301f35,_0x284ccf){const _0x16694e=a108_0x46bf;if(_0x301f35['hasFormat']===![])return _0x16694e(0x1a4);const _0x5a1a49=normalizeLegacyOutputFormat(_0x3f586c[_0x16694e(0x1a6)]);if(_0x5a1a49)return _0x5a1a49;const _0x292775=normalizeLegacyOutputFormat(_0x284ccf);if(_0x292775)return _0x292775;const _0x20777d=normalizeLegacyOutputFormat(_0x301f35[_0x16694e(0x19c)]);if(_0x20777d)return _0x20777d;return _0x16694e(0x1a4);}async function requireConfirmation(_0x28b3c8){const _0x305fd9=a108_0x46bf,_0x146785=await import(_0x305fd9(0x1af)),_0x472ed1=_0x146785[_0x305fd9(0x1b1)]({'input':process['stdin'],'output':process['stderr']});return new Promise((_0x36976c,_0x42c62a)=>{const _0x1fbc94=_0x305fd9;_0x472ed1[_0x1fbc94(0x19b)](_0x1fbc94(0x16a)+_0x28b3c8+_0x1fbc94(0x1b7),_0x144bbd=>{const _0x370136=_0x1fbc94;_0x472ed1[_0x370136(0x1b0)](),_0x144bbd[_0x370136(0x181)]()==='y'||_0x144bbd[_0x370136(0x181)]()===_0x370136(0x184)?_0x36976c():_0x42c62a(CliErrors[_0x370136(0x174)](_0x370136(0x187)));});});}function resolveAliasToCode(_0x27ff95,_0x1d0fd2,_0x4acb36,_0x12d0b2){const _0x5555ad=a108_0x46bf,_0x31afa4=_0x27ff95[_0x5555ad(0x1a3)][_0x5555ad(0x1a9)](_0x5ca8c7=>_0x5ca8c7[_0x5555ad(0x183)]===_0x5555ad(0x188)&&_0x5ca8c7['type']==='string'),_0x360135=_0x27ff95[_0x5555ad(0x1a3)][_0x5555ad(0x1a9)](_0x2a8e9b=>_0x2a8e9b[_0x5555ad(0x183)]===_0x5555ad(0x1b5)&&_0x2a8e9b[_0x5555ad(0x190)]===_0x5555ad(0x18c));if(!_0x31afa4||!_0x360135)return;const _0x28e1fd=_0x1d0fd2['code']?String(_0x1d0fd2['code']):'',_0x318c50=_0x1d0fd2['alias']?String(_0x1d0fd2[_0x5555ad(0x1b5)]):'';if(!_0x28e1fd&&!_0x318c50)throw CliErrors[_0x5555ad(0x1ac)]('`'+_0x12d0b2+_0x5555ad(0x1b9));if(_0x318c50&&!_0x28e1fd){const _0x534191=resolveAlias(_0x4acb36,_0x318c50);if(!_0x534191){const _0x514dd9=listAliases(_0x4acb36)[_0x5555ad(0x16c)](_0x3596c1=>_0x3596c1[_0x5555ad(0x1b5)]),_0x4bed76=_0x514dd9[_0x5555ad(0x19a)]?_0x5555ad(0x172)+_0x514dd9[_0x5555ad(0x1be)](',\x20'):_0x5555ad(0x192)+_0x4acb36+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x5555ad(0x1ac)](_0x5555ad(0x1b2)+_0x318c50+_0x5555ad(0x17b)+_0x4bed76);}_0x1d0fd2[_0x5555ad(0x188)]=_0x534191;}}
@@ -1 +1 @@
1
- (function(_0x1171b5,_0x18693e){const _0x3a4ffb=a109_0x51c2,_0x385442=_0x1171b5();while(!![]){try{const _0x1f573f=-parseInt(_0x3a4ffb(0x171))/0x1*(-parseInt(_0x3a4ffb(0x16e))/0x2)+parseInt(_0x3a4ffb(0x15e))/0x3+parseInt(_0x3a4ffb(0x164))/0x4+parseInt(_0x3a4ffb(0x16d))/0x5+parseInt(_0x3a4ffb(0x155))/0x6+-parseInt(_0x3a4ffb(0x15b))/0x7*(parseInt(_0x3a4ffb(0x175))/0x8)+-parseInt(_0x3a4ffb(0x169))/0x9;if(_0x1f573f===_0x18693e)break;else _0x385442['push'](_0x385442['shift']());}catch(_0x38ed81){_0x385442['push'](_0x385442['shift']());}}}(a109_0x46f3,0x50bc9));import{buildAllFlags}from'./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 a109_0x46f3(){const _0x3dbd23=['1sviWnI','requiresAppCode','wildcardDef','tag','8Lfnabh','description','dryRun','isSingleCommand','args','pattern','defaultCommand','command','requiresAuth','type','1465962GeoLTZ','hasFormat','helpExtra','map','required','<script>','3477299MmzeYt','push','service','998670Brwuze','../commands/registry.js','label','enum','risk','function','2435032qXxGCO','flags','length','regex','hidden','9845082RBPlGJ','alias','hint','commands','538910UejVsW','1255190OZaSHV','default','name'];a109_0x46f3=function(){return _0x3dbd23;};return a109_0x46f3();}function serializeFlag(_0x33d626){const _0x4f6b95=a109_0x51c2,_0x1d3ae3={'name':_0x33d626[_0x4f6b95(0x170)],'type':_0x33d626[_0x4f6b95(0x154)],'description':_0x33d626[_0x4f6b95(0x176)]};if(_0x33d626['required']!==undefined)_0x1d3ae3[_0x4f6b95(0x159)]=_0x33d626[_0x4f6b95(0x159)];if(_0x33d626[_0x4f6b95(0x16f)]!==undefined)_0x1d3ae3[_0x4f6b95(0x16f)]=_0x33d626[_0x4f6b95(0x16f)];if(_0x33d626[_0x4f6b95(0x161)]&&_0x33d626[_0x4f6b95(0x161)][_0x4f6b95(0x166)]>0x0)_0x1d3ae3[_0x4f6b95(0x161)]=_0x33d626['enum'];if(_0x33d626[_0x4f6b95(0x16a)])_0x1d3ae3[_0x4f6b95(0x16a)]=_0x33d626[_0x4f6b95(0x16a)];if(_0x33d626['hidden'])_0x1d3ae3[_0x4f6b95(0x168)]=_0x33d626[_0x4f6b95(0x168)];return _0x33d626[_0x4f6b95(0x17a)]&&(_0x1d3ae3[_0x4f6b95(0x17a)]={'source':_0x33d626[_0x4f6b95(0x17a)][_0x4f6b95(0x167)]['source'],'flags':_0x33d626[_0x4f6b95(0x17a)]['regex'][_0x4f6b95(0x165)],'description':_0x33d626['pattern'][_0x4f6b95(0x176)]}),_0x1d3ae3;}function serializeHelpExtra(_0x3a9e14){const _0x385dab=a109_0x51c2;if(_0x3a9e14[_0x385dab(0x157)]===undefined)return undefined;if(typeof _0x3a9e14[_0x385dab(0x157)]===_0x385dab(0x163))return{'dynamic':!![]};return _0x3a9e14['helpExtra'];}function a109_0x51c2(_0x177c6d,_0x42c97d){_0x177c6d=_0x177c6d-0x154;const _0x46f33b=a109_0x46f3();let _0x51c283=_0x46f33b[_0x177c6d];return _0x51c283;}function serializeCommand(_0x2922bd,_0x447b3a){const _0x3db46e=a109_0x51c2,_0x5ca88c=_0x2922bd[_0x3db46e(0x17d)]!==![],_0x83e26a=_0x2922bd[_0x3db46e(0x172)]!==![],_0x541f65=_0x2922bd[_0x3db46e(0x156)]!==![],_0x3a7dbb=serializeHelpExtra(_0x2922bd);return{'command':_0x447b3a[_0x3db46e(0x17c)],'description':_0x447b3a['description'],..._0x447b3a['tag']?{'tag':_0x447b3a[_0x3db46e(0x174)]['trim']()}:{},'risk':_0x2922bd[_0x3db46e(0x162)],'requiresAuth':_0x5ca88c,'requiresAppCode':_0x83e26a,'hasFormat':_0x541f65,'supportsDryRun':Boolean(_0x2922bd[_0x3db46e(0x177)]),..._0x2922bd['args']&&_0x2922bd[_0x3db46e(0x179)][_0x3db46e(0x166)]>0x0?{'args':_0x2922bd[_0x3db46e(0x179)]}:{},'flags':buildAllFlags(_0x2922bd)[_0x3db46e(0x158)](serializeFlag),..._0x3a7dbb!==undefined?{'helpExtra':_0x3a7dbb}:{}};}export async function buildSchemaPayload(){const _0x2e40f2=a109_0x51c2,{serviceRegistry:_0x19fcb0,findDefinition:_0x170a6f}=await import(_0x2e40f2(0x15f)),_0x24dcff=[];for(const _0x19a93d of _0x19fcb0){const _0xcd9bb2=[];for(const _0xa6194 of _0x19a93d[_0x2e40f2(0x16c)]){const _0x24972e=_0xa6194[_0x2e40f2(0x17c)]===_0x2e40f2(0x15a)&&_0x19a93d['wildcardDef']?_0x19a93d[_0x2e40f2(0x173)]:_0x170a6f(_0x19a93d[_0x2e40f2(0x15d)],_0xa6194[_0x2e40f2(0x17c)]);if(!_0x24972e)continue;_0xcd9bb2[_0x2e40f2(0x15c)](serializeCommand(_0x24972e,_0xa6194));}_0x24dcff[_0x2e40f2(0x15c)]({'service':_0x19a93d[_0x2e40f2(0x15d)],'label':_0x19a93d[_0x2e40f2(0x160)],..._0x19a93d[_0x2e40f2(0x178)]?{'isSingleCommand':!![]}:{},..._0x19a93d[_0x2e40f2(0x17b)]?{'defaultCommand':_0x19a93d[_0x2e40f2(0x17b)]}:{},'hasWildcard':Boolean(_0x19a93d['wildcardDef']),'commands':_0xcd9bb2});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS[_0x2e40f2(0x158)](_0x242ce3=>({'name':_0x242ce3['name'],'type':_0x242ce3[_0x2e40f2(0x154)],'description':_0x242ce3['description'],..._0x242ce3['hint']?{'hint':_0x242ce3[_0x2e40f2(0x16b)]}:{},..._0x242ce3[_0x2e40f2(0x168)]?{'hidden':!![]}:{}})),'services':_0x24dcff};}
1
+ function a109_0x3fd2(_0x588700,_0x52fd83){_0x588700=_0x588700-0x1a9;const _0x5583e6=a109_0x5583();let _0x3fd21c=_0x5583e6[_0x588700];return _0x3fd21c;}(function(_0x266eea,_0xbe7ec9){const _0x25c291=a109_0x3fd2,_0x517ccf=_0x266eea();while(!![]){try{const _0x20d02f=-parseInt(_0x25c291(0x1bb))/0x1+-parseInt(_0x25c291(0x1bf))/0x2+parseInt(_0x25c291(0x1b3))/0x3+parseInt(_0x25c291(0x1c3))/0x4*(-parseInt(_0x25c291(0x1b7))/0x5)+-parseInt(_0x25c291(0x1ba))/0x6*(-parseInt(_0x25c291(0x1a9))/0x7)+-parseInt(_0x25c291(0x1cc))/0x8*(parseInt(_0x25c291(0x1bd))/0x9)+-parseInt(_0x25c291(0x1af))/0xa*(-parseInt(_0x25c291(0x1c6))/0xb);if(_0x20d02f===_0xbe7ec9)break;else _0x517ccf['push'](_0x517ccf['shift']());}catch(_0x5ad98a){_0x517ccf['push'](_0x517ccf['shift']());}}}(a109_0x5583,0xdba23));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(_0x9bc78e){const _0x2e2178=a109_0x3fd2,_0x401553={'name':_0x9bc78e[_0x2e2178(0x1b0)],'type':_0x9bc78e[_0x2e2178(0x1bc)],'description':_0x9bc78e[_0x2e2178(0x1b5)]};if(_0x9bc78e[_0x2e2178(0x1ca)]!==undefined)_0x401553[_0x2e2178(0x1ca)]=_0x9bc78e[_0x2e2178(0x1ca)];if(_0x9bc78e[_0x2e2178(0x1c0)]!==undefined)_0x401553[_0x2e2178(0x1c0)]=_0x9bc78e['default'];if(_0x9bc78e['enum']&&_0x9bc78e[_0x2e2178(0x1aa)][_0x2e2178(0x1b1)]>0x0)_0x401553[_0x2e2178(0x1aa)]=_0x9bc78e[_0x2e2178(0x1aa)];if(_0x9bc78e[_0x2e2178(0x1be)])_0x401553[_0x2e2178(0x1be)]=_0x9bc78e[_0x2e2178(0x1be)];if(_0x9bc78e['hidden'])_0x401553[_0x2e2178(0x1b9)]=_0x9bc78e[_0x2e2178(0x1b9)];return _0x9bc78e[_0x2e2178(0x1ab)]&&(_0x401553[_0x2e2178(0x1ab)]={'source':_0x9bc78e[_0x2e2178(0x1ab)][_0x2e2178(0x1c8)][_0x2e2178(0x1c4)],'flags':_0x9bc78e[_0x2e2178(0x1ab)][_0x2e2178(0x1c8)]['flags'],'description':_0x9bc78e['pattern'][_0x2e2178(0x1b5)]}),_0x401553;}function a109_0x5583(){const _0x1a3432=['hidden','1350CUDSsE','238030lwrHta','type','57897zjxjnO','alias','1610122WGZIna','default','risk','push','2796wMolZi','source','commands','609785qVCCoz','wildcardDef','regex','args','required','function','248GuVeyh','requiresAppCode','hasFormat','tag','6195TacUlw','enum','pattern','command','helpExtra','service','290YrGlay','name','length','requiresAuth','2629257GNakTn','hint','description','defaultCommand','3870jMpAJH','label'];a109_0x5583=function(){return _0x1a3432;};return a109_0x5583();}function serializeHelpExtra(_0x3ffb69){const _0x23d68b=a109_0x3fd2;if(_0x3ffb69[_0x23d68b(0x1ad)]===undefined)return undefined;if(typeof _0x3ffb69[_0x23d68b(0x1ad)]===_0x23d68b(0x1cb))return{'dynamic':!![]};return _0x3ffb69[_0x23d68b(0x1ad)];}function serializeCommand(_0x1193fc,_0x5dd69c){const _0x33dca1=a109_0x3fd2,_0x15cf62=_0x1193fc[_0x33dca1(0x1b2)]!==![],_0x4678e7=_0x1193fc[_0x33dca1(0x1cd)]!==![],_0x27a3ca=_0x1193fc[_0x33dca1(0x1ce)]!==![],_0x51efed=serializeHelpExtra(_0x1193fc);return{'command':_0x5dd69c['command'],'description':_0x5dd69c[_0x33dca1(0x1b5)],..._0x5dd69c['tag']?{'tag':_0x5dd69c[_0x33dca1(0x1cf)]['trim']()}:{},'risk':_0x1193fc[_0x33dca1(0x1c1)],'requiresAuth':_0x15cf62,'requiresAppCode':_0x4678e7,'hasFormat':_0x27a3ca,'supportsDryRun':Boolean(_0x1193fc['dryRun']),..._0x1193fc[_0x33dca1(0x1c9)]&&_0x1193fc['args'][_0x33dca1(0x1b1)]>0x0?{'args':_0x1193fc[_0x33dca1(0x1c9)]}:{},'flags':buildAllFlags(_0x1193fc)['map'](serializeFlag),..._0x51efed!==undefined?{'helpExtra':_0x51efed}:{}};}export async function buildSchemaPayload(){const _0x3a7523=a109_0x3fd2,{serviceRegistry:_0x4e0095,findDefinition:_0x2cdd80}=await import('../commands/registry.js'),_0x505ec1=[];for(const _0x3e151f of _0x4e0095){const _0x598bf3=[];for(const _0x53f95a of _0x3e151f[_0x3a7523(0x1c5)]){const _0xe8d953=_0x53f95a[_0x3a7523(0x1ac)]==='<script>'&&_0x3e151f[_0x3a7523(0x1c7)]?_0x3e151f[_0x3a7523(0x1c7)]:_0x2cdd80(_0x3e151f[_0x3a7523(0x1ae)],_0x53f95a[_0x3a7523(0x1ac)]);if(!_0xe8d953)continue;_0x598bf3[_0x3a7523(0x1c2)](serializeCommand(_0xe8d953,_0x53f95a));}_0x505ec1[_0x3a7523(0x1c2)]({'service':_0x3e151f[_0x3a7523(0x1ae)],'label':_0x3e151f[_0x3a7523(0x1b8)],..._0x3e151f['isSingleCommand']?{'isSingleCommand':!![]}:{},..._0x3e151f[_0x3a7523(0x1b6)]?{'defaultCommand':_0x3e151f[_0x3a7523(0x1b6)]}:{},'hasWildcard':Boolean(_0x3e151f[_0x3a7523(0x1c7)]),'commands':_0x598bf3});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS['map'](_0x6cb723=>({'name':_0x6cb723[_0x3a7523(0x1b0)],'type':_0x6cb723[_0x3a7523(0x1bc)],'description':_0x6cb723[_0x3a7523(0x1b5)],..._0x6cb723[_0x3a7523(0x1b4)]?{'hint':_0x6cb723[_0x3a7523(0x1b4)]}:{},..._0x6cb723['hidden']?{'hidden':!![]}:{}})),'services':_0x505ec1};}
@@ -1 +1 @@
1
- function a110_0x42e9(_0x1e9682,_0x5d3254){_0x1e9682=_0x1e9682-0x8f;const _0x4d6fba=a110_0x4d6f();let _0x42e9ac=_0x4d6fba[_0x1e9682];return _0x42e9ac;}(function(_0x4dae4a,_0x549f11){const _0x5d9b80=a110_0x42e9,_0xc839f3=_0x4dae4a();while(!![]){try{const _0x4ef0a3=parseInt(_0x5d9b80(0x97))/0x1+parseInt(_0x5d9b80(0x94))/0x2*(-parseInt(_0x5d9b80(0x91))/0x3)+parseInt(_0x5d9b80(0x9d))/0x4*(parseInt(_0x5d9b80(0x99))/0x5)+-parseInt(_0x5d9b80(0x98))/0x6*(parseInt(_0x5d9b80(0x8f))/0x7)+-parseInt(_0x5d9b80(0x9b))/0x8*(-parseInt(_0x5d9b80(0x9c))/0x9)+-parseInt(_0x5d9b80(0x96))/0xa*(-parseInt(_0x5d9b80(0x90))/0xb)+-parseInt(_0x5d9b80(0x9e))/0xc;if(_0x4ef0a3===_0x549f11)break;else _0xc839f3['push'](_0xc839f3['shift']());}catch(_0x9b3ba8){_0xc839f3['push'](_0xc839f3['shift']());}}}(a110_0x4d6f,0x7b590));export function riskLevelOrder(_0x5bd5ce){const _0x5f2e7a=a110_0x42e9,_0x57b605={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x57b605[_0x5bd5ce??_0x5f2e7a(0x9a)]??0x0;}function a110_0x4d6f(){const _0x5d70a4=['90392MjdfLN','477bgkyUY','4xmUNch','6165528RlbTul','table','1158073uETiWU','948519wEsgKU','687JgojpU','compress','json','4538OQCdub','pretty','20iuugtn','841188ppSLhf','6ULgiiG','457865cMtPvd','read'];a110_0x4d6f=function(){return _0x5d70a4;};return a110_0x4d6f();}export function isValidFormat(_0xbe8e58){const _0x493c1a=a110_0x42e9;return _0xbe8e58===_0x493c1a(0x93)||_0xbe8e58===_0x493c1a(0x95)||_0xbe8e58===_0x493c1a(0x9f)||_0xbe8e58===_0x493c1a(0x92);}
1
+ function a110_0x3b21(){const _0x16618d=['3CrdTck','pretty','591966fxgsee','1680280moALNX','10452072HjJFDC','json','190mUMsrt','6581984fWhuIK','table','3172974ZpMhtE','11351370opozGr','3427106nmcwhF','1WjZqRG','compress'];a110_0x3b21=function(){return _0x16618d;};return a110_0x3b21();}function a110_0x28da(_0x18baef,_0x3bc4ae){_0x18baef=_0x18baef-0xbb;const _0x3b216d=a110_0x3b21();let _0x28daf8=_0x3b216d[_0x18baef];return _0x28daf8;}(function(_0x19e9aa,_0x33e3c6){const _0x182db5=a110_0x28da,_0x42010f=_0x19e9aa();while(!![]){try{const _0x46c224=parseInt(_0x182db5(0xc0))/0x1*(-parseInt(_0x182db5(0xbf))/0x2)+parseInt(_0x182db5(0xc2))/0x3*(parseInt(_0x182db5(0xbb))/0x4)+-parseInt(_0x182db5(0xc5))/0x5+parseInt(_0x182db5(0xbe))/0x6+-parseInt(_0x182db5(0xbd))/0x7+-parseInt(_0x182db5(0xc6))/0x8+-parseInt(_0x182db5(0xc4))/0x9*(-parseInt(_0x182db5(0xc8))/0xa);if(_0x46c224===_0x33e3c6)break;else _0x42010f['push'](_0x42010f['shift']());}catch(_0x3648c0){_0x42010f['push'](_0x42010f['shift']());}}}(a110_0x3b21,0xeeb21));export function riskLevelOrder(_0x4f0ef8){const _0x3743be={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x3743be[_0x4f0ef8??'read']??0x0;}export function isValidFormat(_0x247aed){const _0xf7dcd6=a110_0x28da;return _0x247aed===_0xf7dcd6(0xc7)||_0x247aed===_0xf7dcd6(0xc3)||_0x247aed===_0xf7dcd6(0xc1);}export function normalizeLegacyOutputFormat(_0x3bc89e){const _0x482c77=a110_0x28da;if(_0x3bc89e===_0x482c77(0xbc))return _0x482c77(0xc3);if(isValidFormat(_0x3bc89e))return _0x3bc89e;return undefined;}
@@ -1 +1 @@
1
- const a111_0x575d7f=a111_0x5076;(function(_0x488a1e,_0x50d09b){const _0x39b6dc=a111_0x5076,_0xab840c=_0x488a1e();while(!![]){try{const _0x1c0d6e=-parseInt(_0x39b6dc(0x140))/0x1+-parseInt(_0x39b6dc(0x13a))/0x2*(-parseInt(_0x39b6dc(0x136))/0x3)+parseInt(_0x39b6dc(0x133))/0x4*(parseInt(_0x39b6dc(0x132))/0x5)+-parseInt(_0x39b6dc(0x139))/0x6*(parseInt(_0x39b6dc(0x13b))/0x7)+parseInt(_0x39b6dc(0x138))/0x8*(-parseInt(_0x39b6dc(0x135))/0x9)+parseInt(_0x39b6dc(0x13e))/0xa*(-parseInt(_0x39b6dc(0x13f))/0xb)+parseInt(_0x39b6dc(0x134))/0xc;if(_0x1c0d6e===_0x50d09b)break;else _0xab840c['push'](_0xab840c['shift']());}catch(_0x2c3335){_0xab840c['push'](_0xab840c['shift']());}}}(a111_0x4ec4,0x42af0));export const VERSION='2.0.8';function a111_0x5076(_0x47fafd,_0x32d5e0){_0x47fafd=_0x47fafd-0x132;const _0x4ec4d4=a111_0x4ec4();let _0x507699=_0x4ec4d4[_0x47fafd];return _0x507699;}export const GIT_TAG=a111_0x575d7f(0x13c);export const GIT_COMMIT=a111_0x575d7f(0x13d);export const BUILD_TIME=a111_0x575d7f(0x137);function a111_0x4ec4(){const _0x534872=['2930VjcEbB','2136QSFACF','1779792lkpKNe','9tTzbkP','357WTKIwM','2026-04-04T10:38:00.545Z','543576UnKDSk','10638SycoPp','2818krezOn','483gqzEfp','v2.0.8','cd0fdf2','10Qelqdv','68981FXDyDD','159220jczGPn'];a111_0x4ec4=function(){return _0x534872;};return a111_0x4ec4();}
1
+ const a111_0x16b40a=a111_0x7eb3;(function(_0x485ce3,_0x1d130b){const _0x5b0796=a111_0x7eb3,_0x18a94e=_0x485ce3();while(!![]){try{const _0x4b8508=-parseInt(_0x5b0796(0xdb))/0x1*(-parseInt(_0x5b0796(0xda))/0x2)+-parseInt(_0x5b0796(0xd0))/0x3*(-parseInt(_0x5b0796(0xde))/0x4)+parseInt(_0x5b0796(0xd3))/0x5+parseInt(_0x5b0796(0xd1))/0x6*(-parseInt(_0x5b0796(0xd2))/0x7)+parseInt(_0x5b0796(0xd7))/0x8*(-parseInt(_0x5b0796(0xd8))/0x9)+-parseInt(_0x5b0796(0xd4))/0xa*(parseInt(_0x5b0796(0xd9))/0xb)+-parseInt(_0x5b0796(0xdc))/0xc*(-parseInt(_0x5b0796(0xd5))/0xd);if(_0x4b8508===_0x1d130b)break;else _0x18a94e['push'](_0x18a94e['shift']());}catch(_0x353f19){_0x18a94e['push'](_0x18a94e['shift']());}}}(a111_0x4f09,0x5a0b5));function a111_0x4f09(){const _0x416450=['4027980mWXOYq','2026-04-04T16:01:08.958Z','548AwnIhC','2.0.9','v2.0.9','15591ZJwLoU','42WiXQKK','248731dGQWzR','2205870psWgZL','60080EwSeeo','13UtMDQr','99cfbd7','8mUwHsH','4794165PGmXDT','1221QeVzbt','466BsaLNp','1409Faxwjd'];a111_0x4f09=function(){return _0x416450;};return a111_0x4f09();}export const VERSION=a111_0x16b40a(0xdf);export const GIT_TAG=a111_0x16b40a(0xcf);export const GIT_COMMIT=a111_0x16b40a(0xd6);function a111_0x7eb3(_0x4e6111,_0x4e68b0){_0x4e6111=_0x4e6111-0xcf;const _0x4f092a=a111_0x4f09();let _0x7eb3da=_0x4f092a[_0x4e6111];return _0x7eb3da;}export const BUILD_TIME=a111_0x16b40a(0xdd);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a112_0x31a3(){var _0x1f4b36=['log','2126404oukexy','3052LjxBxh','15168hfruZv','1008487psOwwW','bold','3VnDzMk','\x20--help','210pqPaMH','1977222QjnFbQ','12PLfOQW','4jOsuvk','30087RrYiFR','green','5857745GlbShK','19241387nYPbOn'];a112_0x31a3=function(){return _0x1f4b36;};return a112_0x31a3();}(function(_0x2c7e05,_0x3728ca){var _0x2f8fe9=a112_0x5cb0,_0x87e916=_0x2c7e05();while(!![]){try{var _0x3bfac5=-parseInt(_0x2f8fe9(0x14a))/0x1+parseInt(_0x2f8fe9(0x157))/0x2*(parseInt(_0x2f8fe9(0x14c))/0x3)+-parseInt(_0x2f8fe9(0x151))/0x4*(-parseInt(_0x2f8fe9(0x154))/0x5)+parseInt(_0x2f8fe9(0x14f))/0x6+parseInt(_0x2f8fe9(0x148))/0x7*(parseInt(_0x2f8fe9(0x149))/0x8)+-parseInt(_0x2f8fe9(0x152))/0x9*(-parseInt(_0x2f8fe9(0x14e))/0xa)+parseInt(_0x2f8fe9(0x155))/0xb*(-parseInt(_0x2f8fe9(0x150))/0xc);if(_0x3bfac5===_0x3728ca)break;else _0x87e916['push'](_0x87e916['shift']());}catch(_0xa0c208){_0x87e916['push'](_0x87e916['shift']());}}}(a112_0x31a3,0xabbd3));function a112_0x5cb0(_0x59bd48,_0x52063d){_0x59bd48=_0x59bd48-0x148;var _0x31a31b=a112_0x31a3();var _0x5cb053=_0x31a31b[_0x59bd48];return _0x5cb053;}import a112_0x35ee11 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x28b8e7=a112_0x5cb0;console[_0x28b8e7(0x156)](),console[_0x28b8e7(0x156)](a112_0x35ee11[_0x28b8e7(0x153)][_0x28b8e7(0x14b)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x28b8e7(0x156)](),console[_0x28b8e7(0x156)]('\x20\x20Use\x20'+a112_0x35ee11[_0x28b8e7(0x153)][_0x28b8e7(0x14b)](CLI_BIN_NAME+_0x28b8e7(0x14d))+'\x20to\x20view\x20available\x20commands.'),console['log']();}
1
+ (function(_0x2d7228,_0x1293bf){var _0x2e4277=a112_0x41c8,_0x21f387=_0x2d7228();while(!![]){try{var _0x2303a8=parseInt(_0x2e4277(0xf0))/0x1*(-parseInt(_0x2e4277(0xfd))/0x2)+parseInt(_0x2e4277(0xf2))/0x3+parseInt(_0x2e4277(0xef))/0x4+-parseInt(_0x2e4277(0xf9))/0x5*(parseInt(_0x2e4277(0xfa))/0x6)+-parseInt(_0x2e4277(0xf6))/0x7*(parseInt(_0x2e4277(0xf8))/0x8)+parseInt(_0x2e4277(0xfc))/0x9+parseInt(_0x2e4277(0xf5))/0xa;if(_0x2303a8===_0x1293bf)break;else _0x21f387['push'](_0x21f387['shift']());}catch(_0xb22dd9){_0x21f387['push'](_0x21f387['shift']());}}}(a112_0x1015,0xbd4dc));import a112_0x32f825 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a112_0x1015(){var _0x299dee=['3047571odSNmL','log','\x20\x20Use\x20','20522710qtZfIT','14ZvbcZh','green','3525240HBJAml','22045WVeYgx','822tvircx','\x20--help','2719098LPBHWd','2PtbFro','877560GCGKWr','1328909eHxdyC','bold'];a112_0x1015=function(){return _0x299dee;};return a112_0x1015();}function a112_0x41c8(_0x11759e,_0x2b9a59){_0x11759e=_0x11759e-0xef;var _0x10153a=a112_0x1015();var _0x41c8ef=_0x10153a[_0x11759e];return _0x41c8ef;}export function showHelp(){var _0x41aef7=a112_0x41c8;console[_0x41aef7(0xf3)](),console[_0x41aef7(0xf3)](a112_0x32f825[_0x41aef7(0xf7)][_0x41aef7(0xf1)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x41aef7(0xf4)+a112_0x32f825[_0x41aef7(0xf7)]['bold'](CLI_BIN_NAME+_0x41aef7(0xfb))+'\x20to\x20view\x20available\x20commands.'),console[_0x41aef7(0xf3)]();}