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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -0
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -0
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -0
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -0
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -0
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -0
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -0
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -0
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/file-utils.js +1 -1
  149. package/lib/utils/guides-cdn.js +1 -1
  150. package/lib/utils/http-client.js +1 -1
  151. package/lib/utils/is-non-interactive.js +1 -1
  152. package/lib/utils/logger.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/rules-cdn.js +1 -1
  155. package/lib/utils/sleep.js +1 -1
  156. package/lib/utils/template-replacer.js +1 -1
  157. package/lib/utils/version.js +1 -1
  158. package/lib/utils/with-active-cookie.js +1 -1
  159. package/lib/utils/write-cli-side-channel.js +1 -1
  160. package/package.json +3 -2
  161. package/lib/commands/api/doc.js +0 -1
  162. package/lib/commands/app/remote.js +0 -1
@@ -1 +1 @@
1
- (function(_0x5da39d,_0xfb7d58){const _0x2257d7=a112_0x5d50,_0x170f23=_0x5da39d();while(!![]){try{const _0x145c03=-parseInt(_0x2257d7(0x1b6))/0x1+-parseInt(_0x2257d7(0x1be))/0x2*(-parseInt(_0x2257d7(0x1ba))/0x3)+parseInt(_0x2257d7(0x1ae))/0x4*(parseInt(_0x2257d7(0x1bb))/0x5)+-parseInt(_0x2257d7(0x1ad))/0x6*(parseInt(_0x2257d7(0x1ac))/0x7)+-parseInt(_0x2257d7(0x1c0))/0x8+parseInt(_0x2257d7(0x1bf))/0x9+-parseInt(_0x2257d7(0x1bc))/0xa;if(_0x145c03===_0xfb7d58)break;else _0x170f23['push'](_0x170f23['shift']());}catch(_0x18c80e){_0x170f23['push'](_0x170f23['shift']());}}}(a112_0x13bb,0x7bd07));import{mkdir,readFile,writeFile}from'node:fs/promises';function a112_0x13bb(){const _0x3658f4=['current\x20\x22','object','functions','scriptsRoot','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','284335FDcgzI','stringify','ENOENT','parse','1156290EqNsxS','4597835sirhLO','4954930vNBRMv','apps','2sIMrkf','8239581hxSFgd','3846136gVPEes',':\x20scriptsRoot\x20mismatch\x20—\x20','code','99043bjdBZb','192vOibkT','4AYiGXu','lastSync','\x22\x20vs\x20lock\x20\x22'];a112_0x13bb=function(){return _0x3658f4;};return a112_0x13bb();}import{dirname}from'node:path';function a112_0x5d50(_0x3756e8,_0x30af20){_0x3756e8=_0x3756e8-0x1aa;const _0x13bbb6=a112_0x13bb();let _0x5d50c3=_0x13bbb6[_0x3756e8];return _0x5d50c3;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x58810c,_0x2ea678,_0x536794,_0x52b607){const _0x53348f=a112_0x5d50,_0x2ee251={'apps':_0x58810c['apps']&&typeof _0x58810c[_0x53348f(0x1bd)]===_0x53348f(0x1b2)?_0x58810c[_0x53348f(0x1bd)]:{}};let _0x4da4f3=_0x2ee251[_0x53348f(0x1bd)][_0x2ea678];if(!_0x4da4f3)return _0x4da4f3={'scriptsRoot':_0x536794,'lastSync':'','functions':{}},_0x2ee251['apps'][_0x2ea678]=_0x4da4f3,{'lockData':_0x2ee251,'appLock':_0x4da4f3};if(!_0x4da4f3[_0x53348f(0x1b4)])_0x4da4f3['scriptsRoot']=_0x536794;else{if(_0x4da4f3[_0x53348f(0x1b4)]!==_0x536794)throw new Error(_0x52b607+_0x53348f(0x1aa)+(_0x53348f(0x1b1)+_0x536794+_0x53348f(0x1b0)+_0x4da4f3[_0x53348f(0x1b4)]+'\x22.\x20')+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x4da4f3[_0x53348f(0x1b3)]&&(_0x4da4f3[_0x53348f(0x1b3)]={}),!_0x4da4f3['lastSync']&&(_0x4da4f3[_0x53348f(0x1af)]=''),{'lockData':_0x2ee251,'appLock':_0x4da4f3};}export async function readBffLockFile(_0x57999e){const _0x591917=a112_0x5d50;try{const _0x8e20ab=await readFile(_0x57999e,'utf8'),_0x17e4a4=JSON[_0x591917(0x1b9)](_0x8e20ab);return{'apps':_0x17e4a4[_0x591917(0x1bd)]&&typeof _0x17e4a4[_0x591917(0x1bd)]==='object'?_0x17e4a4[_0x591917(0x1bd)]:{}};}catch(_0x4831c8){if(_0x4831c8[_0x591917(0x1ab)]===_0x591917(0x1b8))return null;throw new Error(_0x591917(0x1b5)+String(_0x4831c8));}}export async function writeBffLockFile(_0x1c2c6f,_0xc28da6){const _0x1a87e6=a112_0x5d50;await mkdir(dirname(_0x1c2c6f),{'recursive':!![]}),await writeFile(_0x1c2c6f,JSON[_0x1a87e6(0x1b7)](_0xc28da6,null,0x2),'utf8');}
1
+ (function(_0x128f2e,_0x31fb2b){const _0x54c005=a117_0xdf08,_0x1c990a=_0x128f2e();while(!![]){try{const _0x2fe453=-parseInt(_0x54c005(0x162))/0x1*(-parseInt(_0x54c005(0x14d))/0x2)+-parseInt(_0x54c005(0x14f))/0x3+-parseInt(_0x54c005(0x152))/0x4*(parseInt(_0x54c005(0x159))/0x5)+parseInt(_0x54c005(0x14c))/0x6+parseInt(_0x54c005(0x15e))/0x7*(parseInt(_0x54c005(0x14b))/0x8)+-parseInt(_0x54c005(0x160))/0x9*(parseInt(_0x54c005(0x161))/0xa)+parseInt(_0x54c005(0x155))/0xb;if(_0x2fe453===_0x31fb2b)break;else _0x1c990a['push'](_0x1c990a['shift']());}catch(_0x1c3ea8){_0x1c990a['push'](_0x1c990a['shift']());}}}(a117_0x175f,0x395df));function a117_0xdf08(_0x31a1b4,_0x23c5d1){_0x31a1b4=_0x31a1b4-0x14b;const _0x175f48=a117_0x175f();let _0xdf08cb=_0x175f48[_0x31a1b4];return _0xdf08cb;}function a117_0x175f(){const _0x2830f6=['8KGHrKG','313770FnLJhH','120ubtDYX',':\x20scriptsRoot\x20mismatch\x20—\x20','815586hFpQHF','functions','utf8','597768foisWs','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10082435uoomjc','apps','current\x20\x22','code','15QIPKVR','scriptsRoot','stringify','lastSync','object','1286173AwwYSb','parse','18Aeurfn','1163380QgVaws','587ibGtYH'];a117_0x175f=function(){return _0x2830f6;};return a117_0x175f();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x43cfdc,_0x5a3d45,_0x538b2d,_0x4716c3){const _0x15e4a3=a117_0xdf08,_0x47d20a={'apps':_0x43cfdc[_0x15e4a3(0x156)]&&typeof _0x43cfdc[_0x15e4a3(0x156)]===_0x15e4a3(0x15d)?_0x43cfdc[_0x15e4a3(0x156)]:{}};let _0x58d05b=_0x47d20a['apps'][_0x5a3d45];if(!_0x58d05b)return _0x58d05b={'scriptsRoot':_0x538b2d,'lastSync':'','functions':{}},_0x47d20a[_0x15e4a3(0x156)][_0x5a3d45]=_0x58d05b,{'lockData':_0x47d20a,'appLock':_0x58d05b};if(!_0x58d05b['scriptsRoot'])_0x58d05b[_0x15e4a3(0x15a)]=_0x538b2d;else{if(_0x58d05b[_0x15e4a3(0x15a)]!==_0x538b2d)throw new Error(_0x4716c3+_0x15e4a3(0x14e)+(_0x15e4a3(0x157)+_0x538b2d+'\x22\x20vs\x20lock\x20\x22'+_0x58d05b['scriptsRoot']+'\x22.\x20')+_0x15e4a3(0x154));}return!_0x58d05b[_0x15e4a3(0x150)]&&(_0x58d05b[_0x15e4a3(0x150)]={}),!_0x58d05b['lastSync']&&(_0x58d05b[_0x15e4a3(0x15c)]=''),{'lockData':_0x47d20a,'appLock':_0x58d05b};}export async function readBffLockFile(_0x55678a){const _0x19a4db=a117_0xdf08;try{const _0x55a015=await readFile(_0x55678a,_0x19a4db(0x151)),_0x9b8a8f=JSON[_0x19a4db(0x15f)](_0x55a015);return{'apps':_0x9b8a8f[_0x19a4db(0x156)]&&typeof _0x9b8a8f[_0x19a4db(0x156)]==='object'?_0x9b8a8f[_0x19a4db(0x156)]:{}};}catch(_0x3770fc){if(_0x3770fc[_0x19a4db(0x158)]==='ENOENT')return null;throw new Error(_0x19a4db(0x153)+String(_0x3770fc));}}export async function writeBffLockFile(_0x4c2ced,_0x394e60){const _0x282a67=a117_0xdf08;await mkdir(dirname(_0x4c2ced),{'recursive':!![]}),await writeFile(_0x4c2ced,JSON[_0x282a67(0x15b)](_0x394e60,null,0x2),_0x282a67(0x151));}
@@ -1 +1 @@
1
- function a114_0x115a(){const _0x303853=['datasetCode','7WhKXZg','toLowerCase','68874KoZTko','2925028IcWnXy','functionNode','1938990ycgfxW','remoteId','before','8XyWETi','values','after','20418417vosvgR','toUpperCase','test','trim','708138OafraP','641592PdvjZM','1554903TerODG','operationType'];a114_0x115a=function(){return _0x303853;};return a114_0x115a();}(function(_0x424675,_0xcb2b4b){const _0x4bfe37=a114_0x2d13,_0x38aed8=_0x424675();while(!![]){try{const _0x4c6462=-parseInt(_0x4bfe37(0xd7))/0x1+-parseInt(_0x4bfe37(0xd8))/0x2+-parseInt(_0x4bfe37(0xd9))/0x3+-parseInt(_0x4bfe37(0xcb))/0x4+parseInt(_0x4bfe37(0xcd))/0x5+parseInt(_0x4bfe37(0xca))/0x6*(parseInt(_0x4bfe37(0xdc))/0x7)+parseInt(_0x4bfe37(0xd0))/0x8*(parseInt(_0x4bfe37(0xd3))/0x9);if(_0x4c6462===_0xcb2b4b)break;else _0x38aed8['push'](_0x38aed8['shift']());}catch(_0x479a70){_0x38aed8['push'](_0x38aed8['shift']());}}}(a114_0x115a,0x5f17a));function a114_0x2d13(_0x330a14,_0x1e6abc){_0x330a14=_0x330a14-0xc9;const _0x115a48=a114_0x115a();let _0x2d132e=_0x115a48[_0x330a14];return _0x2d132e;}export function snakeToCamel(_0x326fae){const _0x5557a2=a114_0x2d13;return _0x326fae['toLowerCase']()['replace'](/_([a-z])/g,(_0x11e2a1,_0x5d8a75)=>_0x5d8a75[_0x5557a2(0xd4)]());}export function findHookLocationByRemoteId(_0x2f2ac2,_0x1e4b63){const _0x2b9cc9=a114_0x2d13;if(!_0x1e4b63)return undefined;for(const _0x689266 of Object[_0x2b9cc9(0xd1)](_0x2f2ac2)){if(_0x689266[_0x2b9cc9(0xce)]===_0x1e4b63&&_0x689266['datasetCode']&&_0x689266[_0x2b9cc9(0xda)]&&_0x689266[_0x2b9cc9(0xcc)])return{'datasetCode':_0x689266[_0x2b9cc9(0xdb)],'operationType':_0x689266[_0x2b9cc9(0xda)],'functionNode':_0x689266['functionNode']};}return undefined;}export function extractScriptDescription(_0x204a2f){const _0x573e8a=_0x204a2f['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x573e8a?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x5b0f66){const _0x5a2d1f=a114_0x2d13;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x5a2d1f(0xd5)](_0x5b0f66);}export function normalizeHookFunctionNode(_0x4e52af){const _0x13b724=a114_0x2d13;if(!_0x4e52af)return undefined;const _0x266712=_0x4e52af[_0x13b724(0xd6)]()[_0x13b724(0xc9)]();if(_0x266712===_0x13b724(0xcf)||_0x266712===_0x13b724(0xd2))return _0x266712;return undefined;}
1
+ (function(_0x3fb7b3,_0x580a72){const _0x2c53cc=a119_0x2b17,_0x528bc3=_0x3fb7b3();while(!![]){try{const _0xc093e=-parseInt(_0x2c53cc(0xdd))/0x1*(parseInt(_0x2c53cc(0xd7))/0x2)+-parseInt(_0x2c53cc(0xdf))/0x3+parseInt(_0x2c53cc(0xe4))/0x4+-parseInt(_0x2c53cc(0xe7))/0x5+parseInt(_0x2c53cc(0xe2))/0x6*(-parseInt(_0x2c53cc(0xe0))/0x7)+parseInt(_0x2c53cc(0xe3))/0x8*(parseInt(_0x2c53cc(0xe6))/0x9)+parseInt(_0x2c53cc(0xd3))/0xa;if(_0xc093e===_0x580a72)break;else _0x528bc3['push'](_0x528bc3['shift']());}catch(_0x479ff0){_0x528bc3['push'](_0x528bc3['shift']());}}}(a119_0x27ae,0x8d2af));export function snakeToCamel(_0x4ce7b0){const _0x4c1438=a119_0x2b17;return _0x4ce7b0[_0x4c1438(0xde)]()[_0x4c1438(0xd5)](/_([a-z])/g,(_0x9538a9,_0x5a42fe)=>_0x5a42fe[_0x4c1438(0xd4)]());}function a119_0x2b17(_0x3a9de9,_0x3f7009){_0x3a9de9=_0x3a9de9-0xd2;const _0x27ae8c=a119_0x27ae();let _0x2b1751=_0x27ae8c[_0x3a9de9];return _0x2b1751;}export function findHookLocationByRemoteId(_0x5affac,_0x492708){const _0x27ba64=a119_0x2b17;if(!_0x492708)return undefined;for(const _0x4ea534 of Object['values'](_0x5affac)){if(_0x4ea534[_0x27ba64(0xd9)]===_0x492708&&_0x4ea534[_0x27ba64(0xe1)]&&_0x4ea534['operationType']&&_0x4ea534[_0x27ba64(0xda)])return{'datasetCode':_0x4ea534[_0x27ba64(0xe1)],'operationType':_0x4ea534[_0x27ba64(0xd6)],'functionNode':_0x4ea534[_0x27ba64(0xda)]};}return undefined;}function a119_0x27ae(){const _0x219418=['operationType','6mxMMEM','match','remoteId','functionNode','trim','before','327983EGUqqN','toLowerCase','591471GOfhfI','797083YwJZnt','datasetCode','6ZQZLSh','5963464CTrdoP','3146780FwcbIE','test','9zVjvsB','2293885JeJWZH','after','7998470BmsHLe','toUpperCase','replace'];a119_0x27ae=function(){return _0x219418;};return a119_0x27ae();}export function extractScriptDescription(_0xda9769){const _0x17cadc=a119_0x2b17,_0x6bcf1e=_0xda9769[_0x17cadc(0xd8)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x6bcf1e?.[0x1]?.[_0x17cadc(0xdb)]()||undefined;}export function isValidBffFunctionName(_0x24fb9d){const _0xe749fa=a119_0x2b17;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe749fa(0xe5)](_0x24fb9d);}export function normalizeHookFunctionNode(_0x4d42ce){const _0x412f00=a119_0x2b17;if(!_0x4d42ce)return undefined;const _0x5baa6d=_0x4d42ce['trim']()[_0x412f00(0xde)]();if(_0x5baa6d===_0x412f00(0xdc)||_0x5baa6d===_0x412f00(0xd2))return _0x5baa6d;return undefined;}
@@ -1 +1 @@
1
- (function(_0x3a49f6,_0x58c192){const _0x20674b=a115_0x525f,_0x1d20f7=_0x3a49f6();while(!![]){try{const _0x481ead=parseInt(_0x20674b(0x194))/0x1+parseInt(_0x20674b(0x1a0))/0x2+parseInt(_0x20674b(0x1a2))/0x3+parseInt(_0x20674b(0x19a))/0x4*(parseInt(_0x20674b(0x197))/0x5)+parseInt(_0x20674b(0x18e))/0x6*(-parseInt(_0x20674b(0x19f))/0x7)+parseInt(_0x20674b(0x18a))/0x8*(parseInt(_0x20674b(0x19e))/0x9)+parseInt(_0x20674b(0x195))/0xa*(-parseInt(_0x20674b(0x191))/0xb);if(_0x481ead===_0x58c192)break;else _0x1d20f7['push'](_0x1d20f7['shift']());}catch(_0x4d2bd9){_0x1d20f7['push'](_0x1d20f7['shift']());}}}(a115_0x5620,0xb65b2));function a115_0x525f(_0x1fcb2b,_0x35b221){_0x1fcb2b=_0x1fcb2b-0x188;const _0x56206f=a115_0x5620();let _0x525f77=_0x56206f[_0x1fcb2b];return _0x525f77;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0xd26bd4){const _0x46079b=a115_0x525f;if(cache[_0x46079b(0x1a3)](_0xd26bd4))return cache['get'](_0xd26bd4);const _0x2753f0=await listDatasets(_0xd26bd4),_0x16d814=new Map();for(const _0xe388b3 of _0x2753f0){const _0x37072d=_0xe388b3[_0x46079b(0x196)];_0x37072d?.[_0x46079b(0x199)]!=null&&_0x16d814[_0x46079b(0x19b)](_0x37072d[_0x46079b(0x199)],_0x37072d[_0x46079b(0x190)]??_0x46079b(0x19c)+_0x37072d[_0x46079b(0x199)]);}const _0x3b66e0=[..._0x16d814[_0x46079b(0x189)]()]['map'](([_0xaf0c0c,_0x1b8bd9])=>({'dbId':_0xaf0c0c,'dbName':_0x1b8bd9}));return cache[_0x46079b(0x19b)](_0xd26bd4,_0x3b66e0),_0x3b66e0;}export async function resolveDb(_0x531678,_0x3a37c0){const _0x164957=a115_0x525f,_0x28cf0f=await listDatabases(_0x531678);if(_0x28cf0f[_0x164957(0x193)]===0x0)return{'resolved':[],'error':_0x164957(0x18c)};if(!_0x3a37c0)return{'resolved':_0x28cf0f};const _0x5abdc2=Number(_0x3a37c0);if(!Number['isNaN'](_0x5abdc2)){const _0x362679=_0x28cf0f[_0x164957(0x198)](_0x553266=>_0x553266[_0x164957(0x199)]===_0x5abdc2);if(_0x362679)return{'resolved':[_0x362679]};}const _0x31c61e=_0x3a37c0[_0x164957(0x19d)](),_0x302b81=_0x28cf0f[_0x164957(0x18f)](_0x32a6f=>_0x32a6f[_0x164957(0x190)]['toLowerCase']()[_0x164957(0x188)](_0x31c61e));if(_0x302b81[_0x164957(0x193)]>0x0)return{'resolved':_0x302b81};const _0x271987=_0x28cf0f['map'](_0x169f7f=>_0x169f7f[_0x164957(0x190)]+'\x20('+_0x169f7f[_0x164957(0x199)]+')')['join'](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x3a37c0+_0x164957(0x192)+_0x271987};}function a115_0x5620(){const _0x2a8daf=['dbName','24975511VLeHJf','\x22.\x20Available:\x20','length','722784ktnkSF','10BrGoWN','dbtableConfig','425yHglCI','find','dbId','60484IhUnPk','set','db-','toLowerCase','45DjoZCD','7ITndVw','262042xIKsLd','join','3221760uSZVHV','has','includes','entries','1897880OyjuHe','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','8290524cPwNvY','filter'];a115_0x5620=function(){return _0x2a8daf;};return a115_0x5620();}export async function resolveOneDb(_0x5192ec,_0x1bbdb4){const _0x3af854=a115_0x525f,{resolved:_0xcfd2ff,error:_0x352a79}=await resolveDb(_0x5192ec,_0x1bbdb4);if(_0x352a79)return{'db':null,'error':_0x352a79};if(_0xcfd2ff['length']===0x1)return{'db':_0xcfd2ff[0x0]};if(!_0x1bbdb4){const _0xb67ed2=_0xcfd2ff['map'](_0x556582=>_0x556582['dbName']+'\x20('+_0x556582['dbId']+')')[_0x3af854(0x1a1)](',\x20');return{'db':null,'error':_0x3af854(0x18b)+_0xb67ed2};}const _0x1cdc1a=_0xcfd2ff['map'](_0x5e4754=>_0x5e4754['dbName']+'\x20('+_0x5e4754[_0x3af854(0x199)]+')')[_0x3af854(0x1a1)](',\x20');return{'db':null,'error':'\x22'+_0x1bbdb4+_0x3af854(0x18d)+_0x1cdc1a+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x4f04b4,_0x9a5576){const _0x3c63fb=a115_0x525f,_0x1aefd6=await listDatabases(_0x4f04b4);return _0x1aefd6[_0x3c63fb(0x198)](_0x9f8229=>_0x9f8229[_0x3c63fb(0x199)]===_0x9a5576)?.[_0x3c63fb(0x190)];}
1
+ (function(_0x176699,_0x4a0dda){const _0x48b513=a120_0x1287,_0x3cf82d=_0x176699();while(!![]){try{const _0x119ecd=-parseInt(_0x48b513(0x128))/0x1+parseInt(_0x48b513(0x13a))/0x2*(parseInt(_0x48b513(0x122))/0x3)+parseInt(_0x48b513(0x12e))/0x4+parseInt(_0x48b513(0x126))/0x5*(-parseInt(_0x48b513(0x127))/0x6)+parseInt(_0x48b513(0x11f))/0x7*(parseInt(_0x48b513(0x130))/0x8)+-parseInt(_0x48b513(0x138))/0x9+parseInt(_0x48b513(0x129))/0xa;if(_0x119ecd===_0x4a0dda)break;else _0x3cf82d['push'](_0x3cf82d['shift']());}catch(_0x4a316b){_0x3cf82d['push'](_0x3cf82d['shift']());}}}(a120_0x4870,0x67a25));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x28928c){const _0x1b1b1c=a120_0x1287;if(cache['has'](_0x28928c))return cache[_0x1b1b1c(0x123)](_0x28928c);const _0x27019e=await listDatasets(_0x28928c),_0x3bcdc8=new Map();for(const _0x27cd83 of _0x27019e){const _0x1dce42=_0x27cd83[_0x1b1b1c(0x134)];_0x1dce42?.[_0x1b1b1c(0x131)]!=null&&_0x3bcdc8[_0x1b1b1c(0x137)](_0x1dce42['dbId'],_0x1dce42[_0x1b1b1c(0x12b)]??_0x1b1b1c(0x132)+_0x1dce42[_0x1b1b1c(0x131)]);}const _0x129e4c=[..._0x3bcdc8['entries']()][_0x1b1b1c(0x121)](([_0x14d05d,_0xef47fc])=>({'dbId':_0x14d05d,'dbName':_0xef47fc}));return cache[_0x1b1b1c(0x137)](_0x28928c,_0x129e4c),_0x129e4c;}function a120_0x1287(_0x1d344b,_0x34abe2){_0x1d344b=_0x1d344b-0x11f;const _0x4870f7=a120_0x4870();let _0x128732=_0x4870f7[_0x1d344b];return _0x128732;}export async function resolveDb(_0x50a756,_0x1c135a){const _0x373f54=a120_0x1287,_0x5644e1=await listDatabases(_0x50a756);if(_0x5644e1['length']===0x0)return{'resolved':[],'error':_0x373f54(0x12a)};if(!_0x1c135a)return{'resolved':_0x5644e1};const _0x47ba08=Number(_0x1c135a);if(!Number['isNaN'](_0x47ba08)){const _0x5266f7=_0x5644e1[_0x373f54(0x124)](_0x4ca652=>_0x4ca652[_0x373f54(0x131)]===_0x47ba08);if(_0x5266f7)return{'resolved':[_0x5266f7]};}const _0x417011=_0x1c135a[_0x373f54(0x13b)](),_0x353108=_0x5644e1[_0x373f54(0x135)](_0x19805e=>_0x19805e[_0x373f54(0x12b)]['toLowerCase']()[_0x373f54(0x125)](_0x417011));if(_0x353108[_0x373f54(0x120)]>0x0)return{'resolved':_0x353108};const _0xdd5f35=_0x5644e1[_0x373f54(0x121)](_0xcba23f=>_0xcba23f[_0x373f54(0x12b)]+'\x20('+_0xcba23f[_0x373f54(0x131)]+')')[_0x373f54(0x136)](',\x20');return{'resolved':[],'error':_0x373f54(0x12d)+_0x1c135a+_0x373f54(0x12c)+_0xdd5f35};}export async function resolveOneDb(_0x206ae5,_0x493880){const _0x26673a=a120_0x1287,{resolved:_0x3fad03,error:_0xa9fde2}=await resolveDb(_0x206ae5,_0x493880);if(_0xa9fde2)return{'db':null,'error':_0xa9fde2};if(_0x3fad03[_0x26673a(0x120)]===0x1)return{'db':_0x3fad03[0x0]};if(!_0x493880){const _0x5bf966=_0x3fad03[_0x26673a(0x121)](_0x5022f6=>_0x5022f6['dbName']+'\x20('+_0x5022f6[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':_0x26673a(0x139)+_0x5bf966};}const _0x182301=_0x3fad03[_0x26673a(0x121)](_0x1be764=>_0x1be764['dbName']+'\x20('+_0x1be764[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':'\x22'+_0x493880+_0x26673a(0x133)+_0x182301+_0x26673a(0x12f)};}export async function getDbName(_0x1929f4,_0x158572){const _0x5b4348=a120_0x1287,_0x363073=await listDatabases(_0x1929f4);return _0x363073['find'](_0x1d7577=>_0x1d7577[_0x5b4348(0x131)]===_0x158572)?.[_0x5b4348(0x12b)];}function a120_0x4870(){const _0x166784=['6GmWYAJ','755230pfzDdC','3223720AcYLEu','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbName','\x22.\x20Available:\x20','No\x20database\x20matching\x20\x22','2422468iBYAkd','.\x20Be\x20more\x20specific.','8arQcDo','dbId','db-','\x22\x20matches\x20multiple\x20databases:\x20','dbtableConfig','filter','join','set','6320718RpkCnl','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','945388FXQErF','toLowerCase','5309437HAxmQa','length','map','3aQyKkv','get','find','includes','1385785ihvUfh'];a120_0x4870=function(){return _0x166784;};return a120_0x4870();}
@@ -1 +1 @@
1
- (function(_0x1dcbc9,_0x19b4a8){const _0x405820=a116_0x3baf,_0x363dee=_0x1dcbc9();while(!![]){try{const _0x5f8389=-parseInt(_0x405820(0x1ab))/0x1+-parseInt(_0x405820(0x1a2))/0x2*(-parseInt(_0x405820(0x1ba))/0x3)+-parseInt(_0x405820(0x1a6))/0x4*(parseInt(_0x405820(0x1b6))/0x5)+-parseInt(_0x405820(0x19e))/0x6+-parseInt(_0x405820(0x1aa))/0x7+-parseInt(_0x405820(0x1b4))/0x8*(parseInt(_0x405820(0x1a3))/0x9)+parseInt(_0x405820(0x19a))/0xa*(parseInt(_0x405820(0x1ad))/0xb);if(_0x5f8389===_0x19b4a8)break;else _0x363dee['push'](_0x363dee['shift']());}catch(_0x3281d1){_0x363dee['push'](_0x363dee['shift']());}}}(a116_0x28a3,0xefa10));function a116_0x28a3(){const _0x3ac613=['type','\x20with\x20parameters:\x20','unknown\x20table(s)','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','50ylPIGW','\x20query\x20targeting\x20','replace','WITH','6694134xVBltk','reason','test','matchAll','30GGamYb','9aeeonq','push','join','4WaYoko','SQL\x20content\x20is\x20empty','trim','isDangerous','8957718URfldr','309649YdkhpA','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','13529340akFNdb','startsWith','add','UPDATE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','INSERT','toUpperCase','13051816upweKn','match','8879330QxNqbJ','length','SELECT','DDL','188835oOrFAg','includes','DELETE','UNKNOWN'];a116_0x28a3=function(){return _0x3ac613;};return a116_0x28a3();}export function detectSqlType(_0x13a66c){const _0x3e699d=a116_0x3baf;if(!_0x13a66c?.[_0x3e699d(0x1a8)]())return{'type':_0x3e699d(0x1bd),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e699d(0x1a7)};const _0x5579d7=_0x13a66c[_0x3e699d(0x19c)](/#\{[^}]*\}/g,'?')[_0x3e699d(0x19c)](/\$\{[^}]*\}/g,'?')[_0x3e699d(0x19c)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x3e699d(0x19c)](/\/\*[\s\S]*?\*\//g,'')[_0x3e699d(0x1a8)](),_0x175608=_0x5579d7['split']('\x0a');let _0x38352c='';for(const _0xcbe5c of _0x175608){const _0x580c53=_0xcbe5c[_0x3e699d(0x1a8)]();if(!_0x580c53||_0x580c53['startsWith']('--')||_0x580c53[_0x3e699d(0x1ae)]('/*'))continue;_0x38352c=_0x580c53;break;}const _0x3a7967=_0x38352c[_0x3e699d(0x1b3)]();if(_0x3a7967['startsWith'](_0x3e699d(0x1b8))||_0x3a7967[_0x3e699d(0x1ae)](_0x3e699d(0x19d))){const _0x3ebc2a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3e699d(0x1a0)](_0x5579d7);return{'type':'SELECT','isSelectOnly':!_0x3ebc2a,'isDangerous':_0x3ebc2a,'reason':_0x3ebc2a?_0x3e699d(0x1ac):undefined};}if(_0x3a7967[_0x3e699d(0x1ae)](_0x3e699d(0x1b2)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x3a7967['startsWith'](_0x3e699d(0x1b0)))return{'type':_0x3e699d(0x1b0),'isSelectOnly':![],'isDangerous':![]};if(_0x3a7967['startsWith'](_0x3e699d(0x1bc)))return{'type':_0x3e699d(0x1bc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e699d(0x1c1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x3e699d(0x1a0)](_0x3a7967))return{'type':_0x3e699d(0x1b9),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x3e699d(0x1bd),'isSelectOnly':![],'isDangerous':![]};}function a116_0x3baf(_0x149752,_0x17ad6e){_0x149752=_0x149752-0x19a;const _0x28a3=a116_0x28a3();let _0x3bafe2=_0x28a3[_0x149752];return _0x3bafe2;}function extractTables(_0x247c5e){const _0x26526e=a116_0x3baf,_0x5cfd27=_0x247c5e[_0x26526e(0x19c)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x26526e(0x19c)](/'[^']*'/g,'\x27\x27')[_0x26526e(0x19c)](/--.*$/gm,'')[_0x26526e(0x19c)](/\/\*[\s\S]*?\*\//g,''),_0x2f4b60=[],_0x1a7bd7=_0x5cfd27['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1a7bd7?.[0x1])_0x2f4b60[_0x26526e(0x1a4)](_0x1a7bd7[0x1]['replace'](/[`"]/g,''));for(const _0x23fb4b of _0x5cfd27[_0x26526e(0x1a1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2a25c3=_0x23fb4b[0x1]?.['replace'](/[`"]/g,'');if(_0x2a25c3&&!_0x2f4b60[_0x26526e(0x1bb)](_0x2a25c3))_0x2f4b60[_0x26526e(0x1a4)](_0x2a25c3);}const _0x420170=_0x5cfd27[_0x26526e(0x1b5)](/INTO\s+([^\s(]+)/i);if(_0x420170?.[0x1]){const _0x30fbd6=_0x420170[0x1]['replace'](/[`"]/g,'');if(!_0x2f4b60['includes'](_0x30fbd6))_0x2f4b60['push'](_0x30fbd6);}const _0x2cd3cc=_0x5cfd27['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2cd3cc?.[0x1]){const _0x2ca3a0=_0x2cd3cc[0x1][_0x26526e(0x19c)](/[`"]/g,'');if(!_0x2f4b60[_0x26526e(0x1bb)](_0x2ca3a0))_0x2f4b60[_0x26526e(0x1a4)](_0x2ca3a0);}return _0x2f4b60;}function extractParameters(_0x36802e){const _0x4d18f8=a116_0x3baf,_0x3a5e90=new Set();for(const _0x2ca9a9 of _0x36802e[_0x4d18f8(0x1a1)](/#\{(\w+)\}/g))if(_0x2ca9a9[0x1])_0x3a5e90[_0x4d18f8(0x1af)](_0x2ca9a9[0x1]);for(const _0x110db6 of _0x36802e[_0x4d18f8(0x1a1)](/\$\{(\w+)\}/g))if(_0x110db6[0x1])_0x3a5e90['add'](_0x110db6[0x1]);return Array['from'](_0x3a5e90);}export function validateSql(_0x383515){const _0x15ae2c=a116_0x3baf,_0x50d347=detectSqlType(_0x383515),_0x311730=extractTables(_0x383515),_0x36b735=extractParameters(_0x383515);if(_0x50d347[_0x15ae2c(0x1a9)])return{'valid':![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':_0x50d347[_0x15ae2c(0x19f)]||_0x50d347[_0x15ae2c(0x1be)]+_0x15ae2c(0x1b1)};if(_0x50d347['type']===_0x15ae2c(0x1bd))return{'valid':![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':_0x50d347[_0x15ae2c(0x1be)]+_0x15ae2c(0x19b)+(_0x311730[_0x15ae2c(0x1b7)]?_0x311730[_0x15ae2c(0x1a5)](',\x20'):_0x15ae2c(0x1c0))+(_0x36b735[_0x15ae2c(0x1b7)]?_0x15ae2c(0x1bf)+_0x36b735[_0x15ae2c(0x1a5)](',\x20'):'')};}
1
+ function a121_0x2d21(_0x2b03b7,_0x215c86){_0x2b03b7=_0x2b03b7-0xc4;const _0x49109b=a121_0x4910();let _0x2d2151=_0x49109b[_0x2b03b7];return _0x2d2151;}function a121_0x4910(){const _0x47c609=['toUpperCase','add','\x20query\x20targeting\x20','3264GuNHLR','type','8071mKsxZQ','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','24zFjdYu','5307809MQHimS','unknown\x20table(s)','DELETE','2875371uFprSO','UPDATE','UNKNOWN','from','test','10HNuIqL','SQL\x20content\x20is\x20empty','4404RUdXlD','\x20with\x20parameters:\x20','9604107SuCTRf','length','trim','reason','DDL','4kjNtGx','replace','push','matchAll','INSERT','4YOcyhC','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','11815xQuIsZ','isDangerous','1661kGsOlt','598385NykjTn','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a121_0x4910=function(){return _0x47c609;};return a121_0x4910();}(function(_0x39a815,_0x22540d){const _0x524e77=a121_0x2d21,_0x536093=_0x39a815();while(!![]){try{const _0x253430=parseInt(_0x524e77(0xe4))/0x1*(parseInt(_0x524e77(0xde))/0x2)+parseInt(_0x524e77(0xcb))/0x3*(-parseInt(_0x524e77(0xd9))/0x4)+-parseInt(_0x524e77(0xe1))/0x5*(-parseInt(_0x524e77(0xe9))/0x6)+-parseInt(_0x524e77(0xc4))/0x7*(parseInt(_0x524e77(0xc7))/0x8)+parseInt(_0x524e77(0xd4))/0x9*(-parseInt(_0x524e77(0xd0))/0xa)+parseInt(_0x524e77(0xe3))/0xb*(-parseInt(_0x524e77(0xd2))/0xc)+parseInt(_0x524e77(0xc8))/0xd;if(_0x253430===_0x22540d)break;else _0x536093['push'](_0x536093['shift']());}catch(_0x59b260){_0x536093['push'](_0x536093['shift']());}}}(a121_0x4910,0xc4cbf));export function detectSqlType(_0x46f1cd){const _0x96005e=a121_0x2d21;if(!_0x46f1cd?.[_0x96005e(0xd6)]())return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![],'reason':_0x96005e(0xd1)};const _0x36e6f5=_0x46f1cd['replace'](/#\{[^}]*\}/g,'?')[_0x96005e(0xda)](/\$\{[^}]*\}/g,'?')[_0x96005e(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x96005e(0xda)](/\/\*[\s\S]*?\*\//g,'')[_0x96005e(0xd6)](),_0x38dfc4=_0x36e6f5['split']('\x0a');let _0x28735b='';for(const _0x140b51 of _0x38dfc4){const _0x53361e=_0x140b51['trim']();if(!_0x53361e||_0x53361e[_0x96005e(0xc6)]('--')||_0x53361e[_0x96005e(0xc6)]('/*'))continue;_0x28735b=_0x53361e;break;}const _0x47985f=_0x28735b[_0x96005e(0xe6)]();if(_0x47985f[_0x96005e(0xc6)]('SELECT')||_0x47985f[_0x96005e(0xc6)]('WITH')){const _0x4134ef=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x96005e(0xcf)](_0x36e6f5);return{'type':'SELECT','isSelectOnly':!_0x4134ef,'isDangerous':_0x4134ef,'reason':_0x4134ef?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x47985f[_0x96005e(0xc6)](_0x96005e(0xdd)))return{'type':_0x96005e(0xdd),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('UPDATE'))return{'type':_0x96005e(0xcc),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('DELETE'))return{'type':_0x96005e(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xe5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x96005e(0xcf)](_0x47985f))return{'type':_0x96005e(0xd8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xc5)};return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x16ec05){const _0x3a8edb=a121_0x2d21,_0x3d1530=_0x16ec05[_0x3a8edb(0xda)](/#\{[^}]*\}/g,'?')[_0x3a8edb(0xda)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3a8edb(0xda)](/--.*$/gm,'')[_0x3a8edb(0xda)](/\/\*[\s\S]*?\*\//g,''),_0x35bc09=[],_0x1ee3cc=_0x3d1530['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1ee3cc?.[0x1])_0x35bc09[_0x3a8edb(0xdb)](_0x1ee3cc[0x1][_0x3a8edb(0xda)](/[`"]/g,''));for(const _0x2ba407 of _0x3d1530['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x22b93a=_0x2ba407[0x1]?.['replace'](/[`"]/g,'');if(_0x22b93a&&!_0x35bc09['includes'](_0x22b93a))_0x35bc09[_0x3a8edb(0xdb)](_0x22b93a);}const _0x1253d8=_0x3d1530['match'](/INTO\s+([^\s(]+)/i);if(_0x1253d8?.[0x1]){const _0x576194=_0x1253d8[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09[_0x3a8edb(0xdf)](_0x576194))_0x35bc09[_0x3a8edb(0xdb)](_0x576194);}const _0x4136c9=_0x3d1530['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4136c9?.[0x1]){const _0x17fb16=_0x4136c9[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09['includes'](_0x17fb16))_0x35bc09[_0x3a8edb(0xdb)](_0x17fb16);}return _0x35bc09;}function extractParameters(_0x3d5584){const _0x57d68=a121_0x2d21,_0x251704=new Set();for(const _0x5a1974 of _0x3d5584[_0x57d68(0xdc)](/#\{(\w+)\}/g))if(_0x5a1974[0x1])_0x251704[_0x57d68(0xe7)](_0x5a1974[0x1]);for(const _0x54ccc4 of _0x3d5584[_0x57d68(0xdc)](/\$\{(\w+)\}/g))if(_0x54ccc4[0x1])_0x251704[_0x57d68(0xe7)](_0x54ccc4[0x1]);return Array[_0x57d68(0xce)](_0x251704);}export function validateSql(_0x819d69){const _0x13bd28=a121_0x2d21,_0x4fdee8=detectSqlType(_0x819d69),_0x7697a4=extractTables(_0x819d69),_0x276f9b=extractParameters(_0x819d69);if(_0x4fdee8[_0x13bd28(0xe2)])return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xd7)]||_0x4fdee8['type']+_0x13bd28(0xe0)};if(_0x4fdee8[_0x13bd28(0xea)]===_0x13bd28(0xcd))return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xea)]+_0x13bd28(0xe8)+(_0x7697a4['length']?_0x7697a4['join'](',\x20'):_0x13bd28(0xc9))+(_0x276f9b[_0x13bd28(0xd5)]?_0x13bd28(0xd3)+_0x276f9b['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a117_0x3614(){const _0x23c1d2=['auth_required','\x20project\x20directory','362644EqDnoq','423QyuuFu','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','code','192120ylqXkg','\x0a\x20\x20\x20\x20\x20\x20\x20','754407HdCqPA','3636xfCLtV','api_error','681908RLjcCS','10935240BXIjcW','4QbSWqw','12845PJtSdU','flag_missing','Operation\x20cancelled.','validation_error','\x20--help`\x20to\x20see\x20available\x20commands.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','network_error','CliError','cancelled','Run\x20`','Authentication\x20required','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','35BwHCfY','join','Not\x20in\x20a\x20','not_in_project','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','7591650fqVyua','Set\x20appcode\x20via\x20`','name','Unknown\x20command:\x20','\x20auth`\x20to\x20login\x20first.','Configuration\x20file\x20not\x20found'];a117_0x3614=function(){return _0x23c1d2;};return a117_0x3614();}const a117_0x4b89e2=a117_0x44d6;(function(_0x341d3b,_0x21ea10){const _0x22a255=a117_0x44d6,_0x4c0693=_0x341d3b();while(!![]){try{const _0xbf022e=parseInt(_0x22a255(0x1be))/0x1*(-parseInt(_0x22a255(0x1b3))/0x2)+parseInt(_0x22a255(0x1b9))/0x3+parseInt(_0x22a255(0x1bc))/0x4*(-parseInt(_0x22a255(0x1cb))/0x5)+parseInt(_0x22a255(0x1ba))/0x6*(parseInt(_0x22a255(0x1bf))/0x7)+parseInt(_0x22a255(0x1b7))/0x8*(parseInt(_0x22a255(0x1b4))/0x9)+parseInt(_0x22a255(0x1bd))/0xa+-parseInt(_0x22a255(0x1d0))/0xb;if(_0xbf022e===_0x21ea10)break;else _0x4c0693['push'](_0x4c0693['shift']());}catch(_0x1bb8bb){_0x4c0693['push'](_0x4c0693['shift']());}}}(a117_0x3614,0xee823));function a117_0x44d6(_0x240e3b,_0x3adf9e){_0x240e3b=_0x240e3b-0x1b1;const _0x361458=a117_0x3614();let _0x44d6dd=_0x361458[_0x240e3b];return _0x44d6dd;}import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{['code'];['exitCode'];['hint'];constructor(_0x27f91b,_0x3eb2a0,_0x1b1039,_0x4d55d9){const _0x28dfdb=a117_0x44d6;super(_0x1b1039),this[_0x28dfdb(0x1d2)]=_0x28dfdb(0x1c6),this[_0x28dfdb(0x1b6)]=_0x27f91b,this['exitCode']=_0x3eb2a0,this['hint']=_0x4d55d9;}}export const CliErrors={'authRequired':_0x10f825=>new CliError(a117_0x4b89e2(0x1b1),0x1,a117_0x4b89e2(0x1c9),_0x10f825??a117_0x4b89e2(0x1c8)+CLI_BIN_NAME+a117_0x4b89e2(0x1d4)),'configMissing':_0x4b33cc=>new CliError('config_missing',0x1,a117_0x4b89e2(0x1d5),_0x4b33cc??[a117_0x4b89e2(0x1d1)+CLI_BIN_NAME+a117_0x4b89e2(0x1ca),'Tip:\x20`'+CLI_BIN_NAME+a117_0x4b89e2(0x1cf)][a117_0x4b89e2(0x1cc)](a117_0x4b89e2(0x1b8))),'notInProject':()=>new CliError(a117_0x4b89e2(0x1ce),0x1,a117_0x4b89e2(0x1cd)+CLI_BIN_NAME+a117_0x4b89e2(0x1b2),a117_0x4b89e2(0x1b5)),'apiError':(_0xb014ee,_0x578c3a)=>new CliError(a117_0x4b89e2(0x1bb),0x2,_0xb014ee,_0x578c3a),'networkError':_0xc64726=>new CliError(a117_0x4b89e2(0x1c5),0x2,'Network\x20error:\x20'+_0xc64726,a117_0x4b89e2(0x1c4)),'unknownCommand':_0x2955ca=>new CliError('unknown_command',0x1,a117_0x4b89e2(0x1d3)+_0x2955ca,a117_0x4b89e2(0x1c8)+CLI_BIN_NAME+a117_0x4b89e2(0x1c3)),'flagMissing':(_0x4dd345,_0x29a245)=>new CliError(a117_0x4b89e2(0x1c0),0x1,'Missing\x20required\x20flag:\x20--'+_0x4dd345,_0x29a245),'validation':(_0x59f9bf,_0x1ebed3)=>new CliError(a117_0x4b89e2(0x1c2),0x1,_0x59f9bf,_0x1ebed3),'cancelled':_0x1d30ca=>new CliError(a117_0x4b89e2(0x1c7),0x0,_0x1d30ca??a117_0x4b89e2(0x1c1),undefined)};
1
+ const a122_0x49ffbb=a122_0x27d0;(function(_0x16cc73,_0x153d4c){const _0x27d33f=a122_0x27d0,_0x183759=_0x16cc73();while(!![]){try{const _0x5426d6=parseInt(_0x27d33f(0x116))/0x1*(parseInt(_0x27d33f(0x111))/0x2)+parseInt(_0x27d33f(0x10e))/0x3*(-parseInt(_0x27d33f(0x118))/0x4)+-parseInt(_0x27d33f(0x109))/0x5*(-parseInt(_0x27d33f(0x110))/0x6)+-parseInt(_0x27d33f(0x108))/0x7*(parseInt(_0x27d33f(0x119))/0x8)+parseInt(_0x27d33f(0x11a))/0x9+parseInt(_0x27d33f(0x10d))/0xa*(-parseInt(_0x27d33f(0x10b))/0xb)+-parseInt(_0x27d33f(0x117))/0xc*(parseInt(_0x27d33f(0x114))/0xd);if(_0x5426d6===_0x153d4c)break;else _0x183759['push'](_0x183759['shift']());}catch(_0x8e9b4c){_0x183759['push'](_0x183759['shift']());}}}(a122_0x2b88,0xb8e6b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a122_0x2b88(){const _0x1e283b=['2640065qaLOof','join','22yekPRH','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2061820yGwhxQ','32244KFHznU','\x0a\x20\x20\x20\x20\x20\x20\x20','12WwQaAj','5440pkVnLQ','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','13aSUjnj','\x20auth`\x20to\x20login\x20first.','293AVaxrk','16417428Zxrqnc','92MTBGCG','56yQfLSA','9919719YfbnpG','170135MtTdma'];a122_0x2b88=function(){return _0x1e283b;};return a122_0x2b88();}export{CliError};function a122_0x27d0(_0x533c1b,_0x2bca6a){_0x533c1b=_0x533c1b-0x108;const _0x2b884f=a122_0x2b88();let _0x27d029=_0x2b884f[_0x533c1b];return _0x27d029;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x115),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x112),'Tip:\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x10c)][a122_0x49ffbb(0x10a)](a122_0x49ffbb(0x10f)),'notInProjectHint':a122_0x49ffbb(0x113)});
@@ -1 +1 @@
1
- function a118_0x2a81(_0x13655f,_0x520f0a){_0x13655f=_0x13655f-0x14f;const _0x50fb46=a118_0x50fb();let _0x2a811a=_0x50fb46[_0x13655f];return _0x2a811a;}function a118_0x50fb(){const _0x1f19c3=['yes','dryRun','3161370euXAUx','58596pzlwbx','pretty','2195290UdiBzN','boolean','6280NhlHTS','231oPUjNR','flags','push','hasFormat','string','dry-run','Output\x20format','Skip\x20confirmation\x20prompt','26111250ElixJi','114354hIihCK','712acosto','463HmXRwl','format','14IzgpMy','json','9444540fcGOMf','defaultOutputFormat','Preview\x20the\x20operation\x20without\x20executing'];a118_0x50fb=function(){return _0x1f19c3;};return a118_0x50fb();}(function(_0x909ccf,_0x3f2589){const _0x559587=a118_0x2a81,_0x36acf8=_0x909ccf();while(!![]){try{const _0x2401c2=parseInt(_0x559587(0x151))/0x1*(-parseInt(_0x559587(0x15f))/0x2)+-parseInt(_0x559587(0x160))/0x3*(-parseInt(_0x559587(0x15b))/0x4)+parseInt(_0x559587(0x15d))/0x5+-parseInt(_0x559587(0x15a))/0x6*(-parseInt(_0x559587(0x153))/0x7)+-parseInt(_0x559587(0x150))/0x8*(-parseInt(_0x559587(0x14f))/0x9)+parseInt(_0x559587(0x155))/0xa+-parseInt(_0x559587(0x168))/0xb;if(_0x2401c2===_0x3f2589)break;else _0x36acf8['push'](_0x36acf8['shift']());}catch(_0x11c578){_0x36acf8['push'](_0x36acf8['shift']());}}}(a118_0x50fb,0xd40bb));export function buildAllFlags(_0x1e8c89){const _0x459759=a118_0x2a81,_0x71c4a3=[..._0x1e8c89[_0x459759(0x161)]];return _0x1e8c89[_0x459759(0x159)]&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x165),'type':_0x459759(0x15e),'description':_0x459759(0x157)}),_0x1e8c89[_0x459759(0x163)]!==![]&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x152),'type':_0x459759(0x164),'default':_0x1e8c89[_0x459759(0x156)]??'pretty','enum':[_0x459759(0x154),_0x459759(0x15c),'compress'],'description':_0x459759(0x166)}),_0x1e8c89['risk']==='high-risk-write'&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x158),'type':_0x459759(0x15e),'description':_0x459759(0x167)}),_0x71c4a3;}
1
+ (function(_0x308054,_0x4100c5){var _0x410fd6=a123_0x43db,_0x2d80dd=_0x308054();while(!![]){try{var _0x846c14=-parseInt(_0x410fd6(0x13c))/0x1*(-parseInt(_0x410fd6(0x13a))/0x2)+-parseInt(_0x410fd6(0x139))/0x3+-parseInt(_0x410fd6(0x13f))/0x4*(parseInt(_0x410fd6(0x13b))/0x5)+parseInt(_0x410fd6(0x138))/0x6*(parseInt(_0x410fd6(0x141))/0x7)+parseInt(_0x410fd6(0x136))/0x8*(parseInt(_0x410fd6(0x13d))/0x9)+parseInt(_0x410fd6(0x135))/0xa*(parseInt(_0x410fd6(0x140))/0xb)+-parseInt(_0x410fd6(0x13e))/0xc*(parseInt(_0x410fd6(0x137))/0xd);if(_0x846c14===_0x4100c5)break;else _0x2d80dd['push'](_0x2d80dd['shift']());}catch(_0x5f1ec4){_0x2d80dd['push'](_0x2d80dd['shift']());}}}(a123_0x43c7,0xa4365));function a123_0x43db(_0x327f59,_0x1066d9){_0x327f59=_0x327f59-0x135;var _0x43c76e=a123_0x43c7();var _0x43db95=_0x43c76e[_0x327f59];return _0x43db95;}function a123_0x43c7(){var _0xbd0571=['65244NrPXiZ','4EDrfYO','4653QSIecW','7slfHMJ','22170eCPnMn','8LSkLKr','6305WhLFhy','7657278qqAebu','235623ixzwiu','62994ZowQMf','1628645FVdkiP','29RwOQHp','5277699BcuXhn'];a123_0x43c7=function(){return _0xbd0571;};return a123_0x43c7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a123_0x2b2058}from'@lovrabet/cli-framework';export function buildAllFlags(_0x53a5d3){return a123_0x2b2058(_0x53a5d3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x275141,_0x198c54){const _0x1b1ec9=a119_0x4c4a,_0x109263=_0x275141();while(!![]){try{const _0xa5ee32=parseInt(_0x1b1ec9(0x133))/0x1+parseInt(_0x1b1ec9(0x120))/0x2*(parseInt(_0x1b1ec9(0x11b))/0x3)+-parseInt(_0x1b1ec9(0x12b))/0x4*(parseInt(_0x1b1ec9(0x123))/0x5)+parseInt(_0x1b1ec9(0x124))/0x6+-parseInt(_0x1b1ec9(0x12f))/0x7+parseInt(_0x1b1ec9(0x12a))/0x8*(-parseInt(_0x1b1ec9(0x12e))/0x9)+parseInt(_0x1b1ec9(0x11c))/0xa;if(_0xa5ee32===_0x198c54)break;else _0x109263['push'](_0x109263['shift']());}catch(_0xdf1435){_0x109263['push'](_0x109263['shift']());}}}(a119_0x5378,0x896d2));import{CliErrors}from'../errors.js';export function parseFlags(_0x3e36c0,_0x19a0ba){const _0x54ecd5=a119_0x4c4a,_0x56604f={};for(const _0x5b4829 of _0x3e36c0){const _0x479ca8=_0x19a0ba[_0x5b4829[_0x54ecd5(0x11a)]]??_0x19a0ba[toCamelCase(_0x5b4829[_0x54ecd5(0x11a)])];if(_0x479ca8===undefined||_0x479ca8===null){_0x5b4829[_0x54ecd5(0x122)]!==undefined&&(_0x56604f[_0x5b4829[_0x54ecd5(0x11a)]]=_0x5b4829['default']);continue;}_0x56604f[_0x5b4829[_0x54ecd5(0x11a)]]=coerce(_0x5b4829,_0x479ca8);}for(const _0xd56afa of[_0x54ecd5(0x116),'dryRun','yes',_0x54ecd5(0x128),'jq']){const _0x331817=_0x19a0ba[_0xd56afa];if(_0x331817!==undefined){const _0x40fc93=_0xd56afa===_0x54ecd5(0x12d)?_0x54ecd5(0x116):_0xd56afa;_0x56604f[_0x40fc93]=_0x331817;}}return _0x56604f;}function a119_0x5378(){const _0x1f3f8c=['984yYTdoU','400820RJQcJu','\x22\x20for\x20--',',\x20got\x20\x22','replace','3346gHBVIb','test','default','6695sUWKfW','526680VnsajE','description','type','regex','format','validation','1901872clRZIk','1068dDrAvf','Invalid\x20value\x20\x22','dryRun','9bYFAMY','436324YMBkZP','flagMissing','pattern','boolean','543871dSeBic','number','enum','dry-run','Invalid\x20--','toUpperCase','.\x20Allowed:\x20','name'];a119_0x5378=function(){return _0x1f3f8c;};return a119_0x5378();}export function validateFlags(_0x1cc16e,_0x69e5ec,_0x2371a8){const _0x3b3227=a119_0x4c4a;for(const _0x45d09f of _0x1cc16e){const _0x5d11bf=_0x69e5ec[_0x45d09f[_0x3b3227(0x11a)]];if(_0x45d09f['required']&&(_0x5d11bf===undefined||_0x5d11bf===''))throw CliErrors[_0x3b3227(0x130)](_0x45d09f[_0x3b3227(0x11a)],'--'+_0x45d09f[_0x3b3227(0x11a)]+'\x20is\x20required\x20for\x20`'+_0x2371a8+'`.');if(_0x45d09f[_0x3b3227(0x115)]&&_0x45d09f[_0x3b3227(0x115)]['length']>0x0&&_0x5d11bf!==undefined&&_0x5d11bf!==''){if(!_0x45d09f[_0x3b3227(0x115)]['includes'](String(_0x5d11bf)))throw CliErrors[_0x3b3227(0x129)](_0x3b3227(0x12c)+_0x5d11bf+_0x3b3227(0x11d)+_0x45d09f[_0x3b3227(0x11a)]+_0x3b3227(0x119)+_0x45d09f['enum']['join'](',\x20'));}if(_0x45d09f[_0x3b3227(0x131)]&&_0x5d11bf!==undefined&&_0x5d11bf!==''){if(!_0x45d09f['pattern'][_0x3b3227(0x127)][_0x3b3227(0x121)](String(_0x5d11bf)))throw CliErrors[_0x3b3227(0x129)](_0x3b3227(0x117)+_0x45d09f[_0x3b3227(0x11a)]+':\x20expected\x20'+_0x45d09f[_0x3b3227(0x131)][_0x3b3227(0x125)]+_0x3b3227(0x11e)+_0x5d11bf+'\x22.');}}}function coerce(_0x34eabb,_0x322b23){const _0x19eb1d=a119_0x4c4a;switch(_0x34eabb[_0x19eb1d(0x126)]){case _0x19eb1d(0x132):return _0x322b23===!![]||_0x322b23==='true';case _0x19eb1d(0x114):{const _0x9d68f1=Number(_0x322b23);if(isNaN(_0x9d68f1))throw CliErrors[_0x19eb1d(0x129)]('--'+_0x34eabb['name']+'\x20expects\x20a\x20number,\x20got\x20\x22'+_0x322b23+'\x22');return _0x9d68f1;}default:return String(_0x322b23);}}function a119_0x4c4a(_0x461a46,_0x5a7f63){_0x461a46=_0x461a46-0x114;const _0x537872=a119_0x5378();let _0x4c4a1f=_0x537872[_0x461a46];return _0x4c4a1f;}function toCamelCase(_0x11cb78){const _0x5ef0ab=a119_0x4c4a;return _0x11cb78[_0x5ef0ab(0x11f)](/-([a-z])/g,(_0x51019a,_0x19f608)=>_0x19f608[_0x5ef0ab(0x118)]());}
1
+ const a124_0x36ce33=a124_0x1c83;function a124_0x1c83(_0x39042f,_0x24499a){_0x39042f=_0x39042f-0x146;const _0x55ea75=a124_0x55ea();let _0x1c830d=_0x55ea75[_0x39042f];return _0x1c830d;}function a124_0x55ea(){const _0x112763=['3928281CgCyOZ','5214232GnDFPn','2361724Tyexaz','1878708zpaitU','427KpVumG','2681586jioWgx','70XeZXLA','1969595MOQXWQ','1erZyym','validateFlags','123594VecnkJ'];a124_0x55ea=function(){return _0x112763;};return a124_0x55ea();}(function(_0x433d8d,_0x4319db){const _0x555459=a124_0x1c83,_0x1b3109=_0x433d8d();while(!![]){try{const _0x1f0ca4=-parseInt(_0x555459(0x14d))/0x1*(parseInt(_0x555459(0x147))/0x2)+parseInt(_0x555459(0x150))/0x3+-parseInt(_0x555459(0x148))/0x4+-parseInt(_0x555459(0x14c))/0x5+parseInt(_0x555459(0x14f))/0x6*(-parseInt(_0x555459(0x149))/0x7)+parseInt(_0x555459(0x146))/0x8+parseInt(_0x555459(0x14a))/0x9*(parseInt(_0x555459(0x14b))/0xa);if(_0x1f0ca4===_0x4319db)break;else _0x1b3109['push'](_0x1b3109['shift']());}catch(_0x13e9cc){_0x1b3109['push'](_0x1b3109['shift']());}}}(a124_0x55ea,0xb619f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a124_0x36ce33(0x14e)];
@@ -1 +1 @@
1
- const a120_0x37c836=a120_0x331e;(function(_0xe9df7a,_0x5ce7da){const _0x64dbe7=a120_0x331e,_0x376e36=_0xe9df7a();while(!![]){try{const _0x2dadb8=parseInt(_0x64dbe7(0xe6))/0x1+-parseInt(_0x64dbe7(0xbd))/0x2*(parseInt(_0x64dbe7(0xd3))/0x3)+-parseInt(_0x64dbe7(0xe4))/0x4+-parseInt(_0x64dbe7(0xeb))/0x5*(parseInt(_0x64dbe7(0xdb))/0x6)+-parseInt(_0x64dbe7(0xe1))/0x7*(-parseInt(_0x64dbe7(0xc3))/0x8)+-parseInt(_0x64dbe7(0xb6))/0x9*(-parseInt(_0x64dbe7(0xba))/0xa)+parseInt(_0x64dbe7(0xec))/0xb;if(_0x2dadb8===_0x5ce7da)break;else _0x376e36['push'](_0x376e36['shift']());}catch(_0x16abfa){_0x376e36['push'](_0x376e36['shift']());}}}(a120_0x1a74,0xe5001));import{buildAllFlags}from'../framework/build-all-flags.js';function a120_0x331e(_0x33e91e,_0x5dada8){_0x33e91e=_0x33e91e-0xb6;const _0x1a7432=a120_0x1a74();let _0x331ed7=_0x1a7432[_0x33e91e];return _0x331ed7;}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':a120_0x37c836(0xfa),'high-risk-write':'\x20\x20[high-risk-write]'};export function generateCommandHelp(_0x53664b){const _0x34be15=a120_0x37c836,_0x328fd8=[],_0x1efa70=_0x53664b[_0x34be15(0xe3)]===_0x53664b[_0x34be15(0xbc)]?CLI_BIN_NAME+'\x20'+_0x53664b[_0x34be15(0xe3)]:CLI_BIN_NAME+'\x20'+_0x53664b[_0x34be15(0xe3)]+'\x20'+_0x53664b[_0x34be15(0xbc)],_0x16d81e=_0x53664b[_0x34be15(0xd7)]?_0x53664b[_0x34be15(0xd7)][_0x34be15(0xb8)](_0x170e82=>_0x170e82[_0x34be15(0xdc)]!==![]?'<'+_0x170e82['name']+'>':'['+_0x170e82[_0x34be15(0xcb)]+']')[_0x34be15(0xbb)]('\x20'):'',_0x45c0d4=_0x16d81e?_0x1efa70+'\x20'+_0x16d81e+_0x34be15(0xbe):_0x1efa70+_0x34be15(0xbe);_0x328fd8['push'](''),_0x328fd8['push']('\x20\x20'+_0x53664b['description']),_0x328fd8[_0x34be15(0xca)](''),_0x328fd8[_0x34be15(0xca)](_0x34be15(0xf3)),_0x328fd8[_0x34be15(0xca)]('\x20\x20\x20\x20'+_0x45c0d4),_0x328fd8[_0x34be15(0xca)](''),_0x328fd8[_0x34be15(0xca)]('\x20\x20RISK:\x20'+_0x53664b[_0x34be15(0xf1)]);_0x53664b[_0x34be15(0xf1)]===_0x34be15(0xe5)&&_0x328fd8['push'](_0x34be15(0xc4));_0x328fd8[_0x34be15(0xca)]('');if(_0x53664b[_0x34be15(0xd7)]&&_0x53664b['args'][_0x34be15(0xe2)]>0x0){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xee));const _0x257036=Math['max'](..._0x53664b[_0x34be15(0xd7)][_0x34be15(0xb8)](_0x2c09fa=>_0x2c09fa[_0x34be15(0xcb)][_0x34be15(0xe2)]+0x2));for(const _0x3fc7eb of _0x53664b[_0x34be15(0xd7)]){const _0x20ff41=('<'+_0x3fc7eb['name']+'>')[_0x34be15(0xed)](_0x257036+0x2),_0x2ab7fa=_0x3fc7eb[_0x34be15(0xdc)]!==![]?_0x34be15(0xda):'';_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc6)+_0x20ff41+_0x3fc7eb[_0x34be15(0xc2)]+_0x2ab7fa);}_0x328fd8[_0x34be15(0xca)]('');}if(_0x53664b[_0x34be15(0xef)][_0x34be15(0xe2)]>0x0||_0x53664b['dryRun']||_0x53664b[_0x34be15(0xce)]!==![]){_0x328fd8['push'](_0x34be15(0xd0));const _0x5c7182=buildAllFlags(_0x53664b),_0x341f15=Math['max'](..._0x5c7182[_0x34be15(0xb8)](_0x271f9e=>formatFlagName(_0x271f9e)[_0x34be15(0xe2)]));for(const _0x6e1cbf of _0x5c7182){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc6)+formatFlagName(_0x6e1cbf)[_0x34be15(0xed)](_0x341f15+0x2)+renderFlagDesc(_0x6e1cbf));}_0x328fd8[_0x34be15(0xca)]('');}const _0x166386=[];_0x53664b[_0x34be15(0xcc)]!==![]&&_0x166386['push'](_0x34be15(0xf4)+CLI_BIN_NAME+_0x34be15(0xf9));_0x53664b[_0x34be15(0xbf)]!==![]&&_0x166386['push']('Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x34be15(0xd6));if(_0x166386[_0x34be15(0xe2)]>0x0){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc5));for(const _0x32acae of _0x166386){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xdf)+_0x32acae);}_0x328fd8[_0x34be15(0xca)]('');}if(_0x53664b['helpExtra']){const _0x26c1fd=typeof _0x53664b[_0x34be15(0xf0)]===_0x34be15(0xd8)?_0x53664b[_0x34be15(0xf0)]():_0x53664b[_0x34be15(0xf0)];_0x328fd8[_0x34be15(0xca)](_0x26c1fd),_0x328fd8[_0x34be15(0xca)]('');}return _0x328fd8[_0x34be15(0xbb)]('\x0a');}export function generateServiceHelp(_0x115673){const _0x3f9ce1=a120_0x37c836,_0x1332c4=getServiceEntry(_0x115673);if(!_0x1332c4)return'\x20\x20Unknown\x20service:\x20'+_0x115673+'\x0a';const _0x315f75=[],_0x5b8f5b=serviceGroups['get'](_0x115673);_0x315f75[_0x3f9ce1(0xca)](''),_0x315f75[_0x3f9ce1(0xca)]('\x20\x20'+_0x1332c4['label']),_0x315f75[_0x3f9ce1(0xca)](''),_0x315f75['push'](_0x3f9ce1(0xf3)),_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xc6)+CLI_BIN_NAME+'\x20'+_0x115673+_0x3f9ce1(0xf7)),_0x315f75['push'](''),_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xd2));for(const _0xd30044 of _0x1332c4[_0x3f9ce1(0xe0)]){_0x315f75[_0x3f9ce1(0xca)]('');const _0x7965d2=_0xd30044[_0x3f9ce1(0xd5)]?'\x20\x20'+_0xd30044[_0x3f9ce1(0xd5)][_0x3f9ce1(0xcf)]():'';_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xc6)+_0xd30044[_0x3f9ce1(0xbc)]+_0x7965d2),_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20'+_0xd30044[_0x3f9ce1(0xc2)]);const _0x440818=_0x5b8f5b?.[_0x3f9ce1(0xd4)](_0x4ee494=>_0x4ee494['command']===_0xd30044[_0x3f9ce1(0xbc)]);if(_0x440818?.[_0x3f9ce1(0xd7)]&&_0x440818[_0x3f9ce1(0xd7)][_0x3f9ce1(0xe2)]>0x0){_0x315f75['push'](_0x3f9ce1(0xf5));const _0x48eef3=Math[_0x3f9ce1(0xc9)](..._0x440818[_0x3f9ce1(0xd7)][_0x3f9ce1(0xb8)](_0x157ffe=>_0x157ffe['name'][_0x3f9ce1(0xe2)]+0x2));for(const _0x5c5526 of _0x440818[_0x3f9ce1(0xd7)]){const _0x59c9ba=('<'+_0x5c5526[_0x3f9ce1(0xcb)]+'>')['padEnd'](_0x48eef3+0x2),_0x5a974a=_0x5c5526['required']!==![]?_0x3f9ce1(0xda):'';_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20\x20\x20'+_0x59c9ba+_0x5c5526[_0x3f9ce1(0xc2)]+_0x5a974a);}}const _0x168f38=getCommandFlags(_0x115673,_0xd30044[_0x3f9ce1(0xbc)],_0x5b8f5b);if(_0x168f38[_0x3f9ce1(0xe2)]>0x0){const _0x44b7da=Math[_0x3f9ce1(0xc9)](..._0x168f38[_0x3f9ce1(0xb8)](_0x51db23=>formatFlagName(_0x51db23)['length']));for(const _0x152978 of _0x168f38){_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20'+formatFlagName(_0x152978)[_0x3f9ce1(0xed)](_0x44b7da+0x2)+renderFlagDesc(_0x152978));}}}return _0x315f75[_0x3f9ce1(0xca)](''),_0x315f75['join']('\x0a');}export function generateFullHelp(){const _0x17dc30=a120_0x37c836,_0x3e2f34=[];_0x3e2f34['push'](''),_0x3e2f34[_0x17dc30(0xca)]('\x20\x20'+CLI_DISPLAY_NAME),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xf3)),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xea)+CLI_BIN_NAME+_0x17dc30(0xe9)),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34['push'](_0x17dc30(0xde));const _0x567baf=GLOBAL_FLAGS['filter'](_0x30f6da=>!_0x30f6da['hidden']),_0x41ae86=Math['max'](..._0x567baf[_0x17dc30(0xb8)](_0x3547f8=>{const _0x36086c=_0x17dc30,_0x2c5dbd=_0x3547f8[_0x36086c(0xf8)]?'\x20'+_0x3547f8[_0x36086c(0xf8)]:'';return('--'+_0x3547f8['name']+_0x2c5dbd)[_0x36086c(0xe2)];}));for(const _0x585c1e of _0x567baf){const _0x3124d6=_0x585c1e[_0x17dc30(0xf8)]?'\x20'+_0x585c1e[_0x17dc30(0xf8)]:'',_0x1f551e=('--'+_0x585c1e[_0x17dc30(0xcb)]+_0x3124d6)[_0x17dc30(0xed)](_0x41ae86+0x2);_0x3e2f34[_0x17dc30(0xca)]('\x20\x20\x20\x20'+_0x1f551e+_0x585c1e['description']);}_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xd2)),_0x3e2f34[_0x17dc30(0xca)]('');for(const _0x4e65a0 of serviceRegistry){_0x3e2f34['push']('\x20\x20'+_0x4e65a0[_0x17dc30(0xe7)]);if(_0x4e65a0[_0x17dc30(0xf2)]){const _0x1f401b=_0x4e65a0[_0x17dc30(0xe0)][0x0],_0x2614ed=_0x1f401b[_0x17dc30(0xd5)]??'';_0x3e2f34['push'](_0x17dc30(0xc6)+_0x4e65a0[_0x17dc30(0xe3)]['padEnd'](0x12)+_0x1f401b[_0x17dc30(0xc2)]+_0x2614ed);}else{const _0x446a35=_0x4e65a0[_0x17dc30(0xe0)][_0x17dc30(0xb8)](_0x422e07=>_0x4e65a0[_0x17dc30(0xe3)]+'\x20'+_0x422e07[_0x17dc30(0xbc)]),_0x3b396d=Math[_0x17dc30(0xc9)](..._0x446a35[_0x17dc30(0xb8)](_0xd356b9=>_0xd356b9[_0x17dc30(0xe2)]));for(let _0x40f160=0x0;_0x40f160<_0x4e65a0[_0x17dc30(0xe0)]['length'];_0x40f160++){const _0x1071c9=_0x4e65a0[_0x17dc30(0xe0)][_0x40f160],_0x1f289d=_0x1071c9[_0x17dc30(0xd5)]??'';_0x3e2f34['push'](_0x17dc30(0xc6)+_0x446a35[_0x40f160][_0x17dc30(0xed)](_0x3b396d+0x2)+_0x1071c9['description']+_0x1f289d);}}if(_0x4e65a0[_0x17dc30(0xc1)]?.[_0x17dc30(0xf0)]){const _0x4ff83f=typeof _0x4e65a0['wildcardDef'][_0x17dc30(0xf0)]===_0x17dc30(0xd8)?_0x4e65a0[_0x17dc30(0xc1)]['helpExtra']():_0x4e65a0[_0x17dc30(0xc1)][_0x17dc30(0xf0)];for(const _0x4ffcf0 of _0x4ff83f['split']('\x0a')){_0x3e2f34[_0x17dc30(0xca)]('\x20\x20'+_0x4ffcf0);}}_0x3e2f34[_0x17dc30(0xca)]('');}return _0x3e2f34[_0x17dc30(0xca)]('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20<service>\x20--help`\x20for\x20service\x20commands.'),_0x3e2f34['push'](_0x17dc30(0xf6)+CLI_BIN_NAME+_0x17dc30(0xe8)),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34['join']('\x0a');}function getCommandFlags(_0x534ebf,_0x13631a,_0x1ea1b4){const _0x49ebfa=a120_0x37c836;if(_0x1ea1b4){const _0x231d3d=_0x1ea1b4['find'](_0x107754=>_0x107754[_0x49ebfa(0xbc)]===_0x13631a);if(_0x231d3d)return buildAllFlags(_0x231d3d);}return[];}function renderFlagDesc(_0x296aa4){const _0x4556c4=a120_0x37c836;let _0xab21d3=_0x296aa4[_0x4556c4(0xc2)];return _0x296aa4['enum']&&_0x296aa4[_0x4556c4(0xd9)][_0x4556c4(0xe2)]>0x0&&(_0xab21d3+='\x20('+_0x296aa4[_0x4556c4(0xd9)][_0x4556c4(0xbb)](_0x4556c4(0xcd))+')'),_0x296aa4[_0x4556c4(0xd1)]!==undefined&&_0x296aa4['default']!==''&&_0x296aa4[_0x4556c4(0xd1)]!==![]&&(_0xab21d3+=_0x4556c4(0xc0)+_0x296aa4[_0x4556c4(0xd1)]+']'),_0x296aa4[_0x4556c4(0xdc)]&&!_0xab21d3[_0x4556c4(0xc7)](_0x4556c4(0xdd))&&(_0xab21d3+=_0x4556c4(0xda)),_0xab21d3;}function formatFlagName(_0x3ae481){const _0x2b6a42=a120_0x37c836,_0x5dc724=_0x3ae481[_0x2b6a42(0xc8)]==='boolean'?'':_0x3ae481[_0x2b6a42(0xc8)]==='number'?_0x2b6a42(0xb7):_0x2b6a42(0xb9);return'--'+_0x3ae481[_0x2b6a42(0xcb)]+_0x5dc724;}function a120_0x1a74(){const _0x5a103c=['\x20[default:\x20','wildcardDef','description','32aLLqql','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20\x20PREREQUISITES','\x20\x20\x20\x20','includes','type','max','push','name','requiresAuth','\x20|\x20','hasFormat','trim','\x20\x20FLAGS','default','\x20\x20COMMANDS','7164WFapMX','find','tag','\x20project\x20init`\x20or\x20--appcode).','args','function','enum','\x20(required)','5155998JpHDgZ','required','(required)','\x20\x20GLOBAL\x20OPTIONS','\x20\x20\x20\x20•\x20','commands','2144261OMpLoa','length','service','4549540fekEbT','high-risk-write','330193VaQZkP','label','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','\x20[global-options]\x20<service>\x20<command>\x20[flags]','\x20\x20\x20\x20$\x20','5dZvgLd','15760888VfttZT','padEnd','\x20\x20ARGS','flags','helpExtra','risk','isSingleCommand','\x20\x20USAGE','Requires\x20authentication\x20(run\x20`','\x20\x20\x20\x20\x20\x20ARGS','\x20\x20Run\x20`','\x20<command>\x20[args]\x20[flags]','hint','\x20auth`\x20first).','\x20\x20[write]','6485841Jwlhwj','\x20<n>','map','\x20<value>','20dQgLwP','join','command','1252FwWYES','\x20[flags]','requiresAppCode'];a120_0x1a74=function(){return _0x5a103c;};return a120_0x1a74();}
1
+ const a125_0x49bbbd=a125_0x84f5;(function(_0x19c22a,_0x363a64){const _0x66f2d1=a125_0x84f5,_0x1bea04=_0x19c22a();while(!![]){try{const _0xc207f5=parseInt(_0x66f2d1(0xd9))/0x1*(-parseInt(_0x66f2d1(0xd7))/0x2)+-parseInt(_0x66f2d1(0xdf))/0x3*(parseInt(_0x66f2d1(0xd6))/0x4)+parseInt(_0x66f2d1(0xd5))/0x5*(parseInt(_0x66f2d1(0xe2))/0x6)+parseInt(_0x66f2d1(0xe3))/0x7+parseInt(_0x66f2d1(0xd8))/0x8+parseInt(_0x66f2d1(0xda))/0x9+-parseInt(_0x66f2d1(0xd4))/0xa;if(_0xc207f5===_0x363a64)break;else _0x1bea04['push'](_0x1bea04['shift']());}catch(_0x5cc795){_0x1bea04['push'](_0x1bea04['shift']());}}}(a125_0x2313,0xef452));function a125_0x2313(){const _0x31c0fa=['27484velmYN','4uAPjXV','5172920WfueIl','419577KDnnQk','13699017tijiMY','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','get','generateFullHelp','822rpAiwq','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','5630064EhgHkM','8669759XXilFu','6437510YdIuqf','5oBUBhT'];a125_0x2313=function(){return _0x31c0fa;};return a125_0x2313();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x84f5(_0x6fa9da,_0x1b8ffa){_0x6fa9da=_0x6fa9da-0xd4;const _0x2313fc=a125_0x2313();let _0x84f58a=_0x2313fc[_0x6fa9da];return _0x84f58a;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3d93f4=>serviceGroups[a125_0x49bbbd(0xdd)](_0x3d93f4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a125_0x49bbbd(0xe1)+CLI_BIN_NAME+a125_0x49bbbd(0xdb),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x31279a){const _0x1841b9=a125_0x49bbbd;return generators[_0x1841b9(0xe0)](_0x31279a);}export const generateServiceHelp=generators[a125_0x49bbbd(0xdc)];export const generateFullHelp=generators[a125_0x49bbbd(0xde)];
@@ -1 +1 @@
1
- (function(_0x372f20,_0x815e21){var _0x5de4ba=a121_0x59d7,_0x2f062f=_0x372f20();while(!![]){try{var _0x44d5d4=-parseInt(_0x5de4ba(0x1d6))/0x1+parseInt(_0x5de4ba(0x1db))/0x2+-parseInt(_0x5de4ba(0x1dc))/0x3+parseInt(_0x5de4ba(0x1d7))/0x4*(-parseInt(_0x5de4ba(0x1de))/0x5)+-parseInt(_0x5de4ba(0x1d8))/0x6*(-parseInt(_0x5de4ba(0x1dd))/0x7)+-parseInt(_0x5de4ba(0x1da))/0x8+parseInt(_0x5de4ba(0x1d9))/0x9;if(_0x44d5d4===_0x815e21)break;else _0x2f062f['push'](_0x2f062f['shift']());}catch(_0x4716ae){_0x2f062f['push'](_0x2f062f['shift']());}}}(a121_0x1943,0xa060f));function a121_0x1943(){var _0x5a7473=['1768938aodusX','1950618RgGOdf','127015xHIXKX','685SyKmzK','1179699RQuXbT','852OcGLUD','90Wlpkjs','20658465FjwJDg','7488256diSctC'];a121_0x1943=function(){return _0x5a7473;};return a121_0x1943();}export{runCommand}from'../framework/runner.js';function a121_0x59d7(_0x3a7979,_0x450d31){_0x3a7979=_0x3a7979-0x1d6;var _0x1943b9=a121_0x1943();var _0x59d781=_0x1943b9[_0x3a7979];return _0x59d781;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ function a126_0xe9b5(){var _0x29bbc3=['8348584dmYGdy','7RSydwi','6091785ndqbwF','4132695DrQGas','6614310tGKYmk','243026vJVQoM','4563307eHADSU','4739740gYHvFo'];a126_0xe9b5=function(){return _0x29bbc3;};return a126_0xe9b5();}(function(_0x7bb4a5,_0x4a2946){var _0x32bcd4=a126_0x3f08,_0x37c309=_0x7bb4a5();while(!![]){try{var _0x5813b3=parseInt(_0x32bcd4(0x1a1))/0x1*(parseInt(_0x32bcd4(0x19d))/0x2)+parseInt(_0x32bcd4(0x19b))/0x3+parseInt(_0x32bcd4(0x19f))/0x4+-parseInt(_0x32bcd4(0x19a))/0x5+-parseInt(_0x32bcd4(0x19c))/0x6+parseInt(_0x32bcd4(0x19e))/0x7+-parseInt(_0x32bcd4(0x1a0))/0x8;if(_0x5813b3===_0x4a2946)break;else _0x37c309['push'](_0x37c309['shift']());}catch(_0x563b80){_0x37c309['push'](_0x37c309['shift']());}}}(a126_0xe9b5,0xab105));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a126_0x3f08(_0x766c7a,_0x4a62d7){_0x766c7a=_0x766c7a-0x19a;var _0xe9b520=a126_0xe9b5();var _0x3f08e2=_0xe9b520[_0x766c7a];return _0x3f08e2;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x40c46f,_0x2fc4c4){const _0x4723fa=a122_0x1078,_0x4cc0b4=_0x40c46f();while(!![]){try{const _0x13ec57=-parseInt(_0x4723fa(0x14c))/0x1*(-parseInt(_0x4723fa(0x148))/0x2)+parseInt(_0x4723fa(0x152))/0x3+-parseInt(_0x4723fa(0x151))/0x4*(-parseInt(_0x4723fa(0x12f))/0x5)+-parseInt(_0x4723fa(0x13f))/0x6+parseInt(_0x4723fa(0x12e))/0x7+-parseInt(_0x4723fa(0x149))/0x8*(-parseInt(_0x4723fa(0x146))/0x9)+parseInt(_0x4723fa(0x142))/0xa*(-parseInt(_0x4723fa(0x120))/0xb);if(_0x13ec57===_0x2fc4c4)break;else _0x4cc0b4['push'](_0x4cc0b4['shift']());}catch(_0x1cf582){_0x4cc0b4['push'](_0x4cc0b4['shift']());}}}(a122_0x43a9,0x75679));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x124429,_0x41b496){const _0x301cd1=a122_0x1078,{format:_0x26002a}=_0x41b496;switch(_0x26002a){case _0x301cd1(0x12d):printJson(_0x124429,_0x41b496);break;case _0x301cd1(0x154):printCompress(_0x124429,_0x41b496);break;case'pretty':default:printPretty(_0x124429,_0x41b496);break;}}function buildEnvelope(_0x4764f8,_0x408655){const _0x3bddd7=a122_0x1078,_0x335c0a={'ok':_0x4764f8['ok'],'command':_0x408655[_0x3bddd7(0x140)],'risk':_0x408655[_0x3bddd7(0x127)]};if(_0x408655[_0x3bddd7(0x131)])_0x335c0a[_0x3bddd7(0x131)]=!![];if(_0x4764f8['data']!==undefined)_0x335c0a[_0x3bddd7(0x147)]=_0x4764f8['data'];return!_0x4764f8['ok']&&_0x4764f8[_0x3bddd7(0x143)]&&(_0x335c0a[_0x3bddd7(0x13a)]={'code':_0x3bddd7(0x13e),'message':_0x4764f8[_0x3bddd7(0x143)]}),_0x335c0a;}function printJson(_0x3e43da,_0x4e368f){const _0x40e127=buildEnvelope(_0x3e43da,_0x4e368f),_0xf9fc00=JSON['stringify'](_0x40e127,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0xf9fc00,_0x4e368f);}function printCompress(_0x4fd201,_0x5cfa82){const _0x28fa80=a122_0x1078,_0x29336d=buildEnvelope(_0x4fd201,_0x5cfa82),_0x399af1=JSON[_0x28fa80(0x153)](_0x29336d)+'\x0a';writeJsonWithOptionalJq(_0x399af1,_0x5cfa82);}function writeJsonWithOptionalJq(_0xf3cf4a,_0x34c116){const _0x55af24=a122_0x1078,_0xf95285=_0x34c116['jqFilter']?.[_0x55af24(0x126)]();if(!_0xf95285){process[_0x55af24(0x129)][_0x55af24(0x123)](_0xf3cf4a);return;}const _0x51aed3=applyJqFilter(_0xf3cf4a,_0xf95285);process[_0x55af24(0x129)][_0x55af24(0x123)](_0x51aed3['endsWith']('\x0a')?_0x51aed3:_0x51aed3+'\x0a');}function isListWithMetaData(_0xa13676){const _0x173041=a122_0x1078;return typeof _0xa13676===_0x173041(0x135)&&_0xa13676!==null&&'items'in _0xa13676&&Array[_0x173041(0x124)](_0xa13676[_0x173041(0x144)])&&_0x173041(0x13c)in _0xa13676&&typeof _0xa13676[_0x173041(0x13c)]===_0x173041(0x135)&&_0xa13676[_0x173041(0x13c)]!==null;}function a122_0x1078(_0x242a0a,_0x5eb2ec){_0x242a0a=_0x242a0a-0x11e;const _0x43a9af=a122_0x43a9();let _0x1078f6=_0x43a9af[_0x242a0a];return _0x1078f6;}function printAppListMeta(_0x5c80fc){const _0x4a5aa2=a122_0x1078;if(_0x5c80fc[_0x4a5aa2(0x11e)]){const _0x426ee5=_0x5c80fc[_0x4a5aa2(0x132)]!=null?String(_0x5c80fc['configPath']):_0x4a5aa2(0x12a);console[_0x4a5aa2(0x145)](_0x4a5aa2(0x130)+String(_0x5c80fc[_0x4a5aa2(0x11e)])),console['log']('\x20\x20Config:\x20\x20\x20'+_0x426ee5),console['log']();return;}const _0x24da86=_0x5c80fc[_0x4a5aa2(0x121)]!=null?String(_0x5c80fc[_0x4a5aa2(0x121)]):_0x4a5aa2(0x12a),_0x370ffc=_0x5c80fc[_0x4a5aa2(0x139)]!=null?String(_0x5c80fc[_0x4a5aa2(0x139)]):_0x4a5aa2(0x12a),_0x2215cf=_0x5c80fc[_0x4a5aa2(0x122)]!=null?String(_0x5c80fc[_0x4a5aa2(0x122)]):'(none)',_0x38ca60=_0x5c80fc[_0x4a5aa2(0x14f)],_0x56e144=_0x38ca60===_0x4a5aa2(0x128)?_0x4a5aa2(0x138):_0x38ca60===_0x4a5aa2(0x12c)?_0x4a5aa2(0x14a):'';console['log'](_0x4a5aa2(0x137)+_0x24da86),console['log']('\x20\x20Project\x20config:\x20\x20'+_0x370ffc),console[_0x4a5aa2(0x145)](_0x4a5aa2(0x125)+_0x2215cf+_0x56e144),console[_0x4a5aa2(0x145)]();}function a122_0x43a9(){const _0x4dc346=['\x20\x20Default\x20app:\x20\x20\x20\x20\x20','trim','risk','project','stdout','(none)','\x20items:\x0a','global','json','382466OiqxiP','319645RUuOoz','\x20\x20Scope:\x20\x20\x20\x20','dryRun','configPath','(empty)','entries','object','length','\x20\x20Global\x20config:\x20\x20\x20','\x20(default\x20from\x20project\x20file)','projectPath','error','map','meta','padEnd','command_error','2233092eTigVn','command','keys','9102110kypojX','message','items','log','2993211VLXBNb','data','4eXriWJ','8ZilczN','\x20(default\x20from\x20global\x20file)','[dry-run]\x20Would\x20execute:','28617QfkNYi','max','Error:\x20','defaultAppSource','Unknown\x20error','40eXDliU','2038623xhhrTw','stringify','compress','scope','filter','11sfyZuh','globalPath','defaultApp','write','isArray'];a122_0x43a9=function(){return _0x4dc346;};return a122_0x43a9();}function printPretty(_0x4dde0e,_0xc05fc4){const _0x2b9992=a122_0x1078;if(_0xc05fc4['dryRun']){console['log'](_0x2b9992(0x14b)),console[_0x2b9992(0x145)](JSON[_0x2b9992(0x153)](_0x4dde0e[_0x2b9992(0x147)],null,0x2));return;}if(!_0x4dde0e['ok']){console[_0x2b9992(0x13a)](_0x2b9992(0x14e)+(_0x4dde0e['message']??_0x2b9992(0x150)));return;}const _0x5404d1=_0x4dde0e[_0x2b9992(0x147)];if(_0x5404d1===undefined||_0x5404d1===null){if(_0x4dde0e['message'])console[_0x2b9992(0x145)](_0x4dde0e[_0x2b9992(0x143)]);return;}if(isListWithMetaData(_0x5404d1)){printAppListMeta(_0x5404d1[_0x2b9992(0x13c)]),printArrayPretty(_0x5404d1[_0x2b9992(0x144)]);return;}if(Array['isArray'](_0x5404d1)){printArrayPretty(_0x5404d1);return;}if(typeof _0x5404d1===_0x2b9992(0x135)){printObjectPretty(_0x5404d1);return;}console[_0x2b9992(0x145)](String(_0x5404d1));}function printObjectPretty(_0x3fdcb3){const _0x1148fe=a122_0x1078,_0x25025f=Math['max'](...Object[_0x1148fe(0x141)](_0x3fdcb3)[_0x1148fe(0x13b)](_0x173ab2=>_0x173ab2['length']),0x0);for(const [_0x42d933,_0x225b00]of Object[_0x1148fe(0x134)](_0x3fdcb3)){if(_0x225b00===undefined||_0x225b00===null)continue;const _0x4a2b06=_0x42d933[_0x1148fe(0x13d)](_0x25025f);typeof _0x225b00===_0x1148fe(0x135)?console[_0x1148fe(0x145)](_0x4a2b06+'\x20\x20'+JSON[_0x1148fe(0x153)](_0x225b00)):console[_0x1148fe(0x145)](_0x4a2b06+'\x20\x20'+_0x225b00);}}function printArrayPretty(_0x33234f){const _0x136e91=a122_0x1078;if(_0x33234f[_0x136e91(0x136)]===0x0){console[_0x136e91(0x145)](_0x136e91(0x133));return;}console[_0x136e91(0x145)]('Found\x20'+_0x33234f[_0x136e91(0x136)]+_0x136e91(0x12b));for(const _0x38827d of _0x33234f){if(typeof _0x38827d===_0x136e91(0x135)&&_0x38827d!==null){const _0x378c61=Object['entries'](_0x38827d)[_0x136e91(0x11f)](([,_0xf8adc1])=>_0xf8adc1!=null&&_0xf8adc1!=='');if(_0x378c61[_0x136e91(0x136)]===0x0)continue;const _0x7bc2be=Math[_0x136e91(0x14d)](..._0x378c61[_0x136e91(0x13b)](([_0x1cac99])=>_0x1cac99[_0x136e91(0x136)]));for(const [_0x1b618c,_0x182bcc]of _0x378c61){const _0x5364b5=typeof _0x182bcc==='object'?JSON['stringify'](_0x182bcc):String(_0x182bcc);console[_0x136e91(0x145)]('\x20\x20'+_0x1b618c[_0x136e91(0x13d)](_0x7bc2be)+'\x20\x20'+_0x5364b5);}console[_0x136e91(0x145)]('');}else console[_0x136e91(0x145)]('\x20\x20'+_0x38827d);}}
1
+ function a127_0x20a1(){var _0x521312=['77HSqRQL','18xHsIfa','1199592EhneeM','1156670Xysywt','97273OkbaPt','8UpTjPh','1471134nKDsFw','259936rXREed','704235cklasF','1902252DQoMMk','2MwyHrn'];a127_0x20a1=function(){return _0x521312;};return a127_0x20a1();}function a127_0x353f(_0x442726,_0x1ebefe){_0x442726=_0x442726-0x10e;var _0x20a161=a127_0x20a1();var _0x353f46=_0x20a161[_0x442726];return _0x353f46;}(function(_0x320035,_0x23510a){var _0x1d09ee=a127_0x353f,_0x3c066a=_0x320035();while(!![]){try{var _0x5d0cde=-parseInt(_0x1d09ee(0x110))/0x1+-parseInt(_0x1d09ee(0x116))/0x2*(parseInt(_0x1d09ee(0x112))/0x3)+-parseInt(_0x1d09ee(0x111))/0x4*(-parseInt(_0x1d09ee(0x114))/0x5)+-parseInt(_0x1d09ee(0x10e))/0x6+parseInt(_0x1d09ee(0x117))/0x7*(parseInt(_0x1d09ee(0x113))/0x8)+parseInt(_0x1d09ee(0x118))/0x9*(parseInt(_0x1d09ee(0x10f))/0xa)+parseInt(_0x1d09ee(0x115))/0xb;if(_0x5d0cde===_0x23510a)break;else _0x3c066a['push'](_0x3c066a['shift']());}catch(_0x5850bf){_0x3c066a['push'](_0x3c066a['shift']());}}}(a127_0x20a1,0x3e72d));export{formatOutput}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0xd6bfb3,_0x1b7781){var _0x4b3365=a123_0x42ad,_0x552917=_0xd6bfb3();while(!![]){try{var _0x2c773f=-parseInt(_0x4b3365(0x1e0))/0x1+parseInt(_0x4b3365(0x1dd))/0x2+-parseInt(_0x4b3365(0x1d9))/0x3*(parseInt(_0x4b3365(0x1df))/0x4)+parseInt(_0x4b3365(0x1da))/0x5*(-parseInt(_0x4b3365(0x1dc))/0x6)+parseInt(_0x4b3365(0x1de))/0x7+-parseInt(_0x4b3365(0x1d6))/0x8+parseInt(_0x4b3365(0x1db))/0x9;if(_0x2c773f===_0x1b7781)break;else _0x552917['push'](_0x552917['shift']());}catch(_0x1cb060){_0x552917['push'](_0x552917['shift']());}}}(a123_0x2454,0x5a585));function a123_0x42ad(_0x968ad6,_0x57ab98){_0x968ad6=_0x968ad6-0x1d6;var _0x24548d=a123_0x2454();var _0x42ad29=_0x24548d[_0x968ad6];return _0x42ad29;}export function extractList(_0x2ad875){var _0x53d8e7=a123_0x42ad;if(Array[_0x53d8e7(0x1e1)](_0x2ad875))return _0x2ad875;if(_0x2ad875&&typeof _0x2ad875===_0x53d8e7(0x1d8))return _0x2ad875[_0x53d8e7(0x1e2)]??[];return[];}export function extractPaging(_0x46167c){var _0x4ac2da=a123_0x42ad;if(_0x46167c&&typeof _0x46167c===_0x4ac2da(0x1d8)&&!Array['isArray'](_0x46167c))return _0x46167c[_0x4ac2da(0x1d7)];return undefined;}function a123_0x2454(){var _0x43cfe8=['4765GkEEKm','5990184MRqZPL','696umUCYA','729194srRITA','3088428SHzzPP','1319596HNdZtx','123349FPkrFO','isArray','tableData','4300224nmpOeN','paging','object','3Jhgkao'];a123_0x2454=function(){return _0x43cfe8;};return a123_0x2454();}
1
+ (function(_0x3cf123,_0x24a91f){var _0x133d3b=a128_0x54c8,_0x3daf69=_0x3cf123();while(!![]){try{var _0x4dd094=-parseInt(_0x133d3b(0x15f))/0x1*(parseInt(_0x133d3b(0x158))/0x2)+parseInt(_0x133d3b(0x15d))/0x3*(parseInt(_0x133d3b(0x15c))/0x4)+-parseInt(_0x133d3b(0x159))/0x5+parseInt(_0x133d3b(0x15e))/0x6+-parseInt(_0x133d3b(0x15b))/0x7+parseInt(_0x133d3b(0x15a))/0x8+parseInt(_0x133d3b(0x160))/0x9;if(_0x4dd094===_0x24a91f)break;else _0x3daf69['push'](_0x3daf69['shift']());}catch(_0x1148b4){_0x3daf69['push'](_0x3daf69['shift']());}}}(a128_0x3865,0x89185));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x54c8(_0x5dc415,_0x94da22){_0x5dc415=_0x5dc415-0x158;var _0x3865e3=a128_0x3865();var _0x54c882=_0x3865e3[_0x5dc415];return _0x54c882;}function a128_0x3865(){var _0x3f61d9=['4qJLVVJ','3233664wucZUy','3076506uLMaSn','910703ekMQpB','7676127JWrWKz','2eBtNrt','5237875kquNGB','7278152GLMusf','5834444OZdetX'];a128_0x3865=function(){return _0x3f61d9;};return a128_0x3865();}
@@ -0,0 +1 @@
1
+ (function(_0x23eefa,_0x580368){const _0x17b4e6=a129_0x328b,_0x59fdef=_0x23eefa();while(!![]){try{const _0x289f57=parseInt(_0x17b4e6(0x1ee))/0x1+parseInt(_0x17b4e6(0x1dc))/0x2+-parseInt(_0x17b4e6(0x1e9))/0x3+parseInt(_0x17b4e6(0x1e3))/0x4+parseInt(_0x17b4e6(0x1f1))/0x5*(-parseInt(_0x17b4e6(0x1e2))/0x6)+-parseInt(_0x17b4e6(0x1db))/0x7+-parseInt(_0x17b4e6(0x1eb))/0x8*(parseInt(_0x17b4e6(0x1f0))/0x9);if(_0x289f57===_0x580368)break;else _0x59fdef['push'](_0x59fdef['shift']());}catch(_0x50218c){_0x59fdef['push'](_0x59fdef['shift']());}}}(a129_0x31b3,0xd3b01));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x328b(_0x627225,_0x13c596){_0x627225=_0x627225-0x1d9;const _0x31b3f3=a129_0x31b3();let _0x328bf1=_0x31b3f3[_0x627225];return _0x328bf1;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x31b3(){const _0x1e17fc=['alias','3515049PeTzVt','`\x20requires\x20either\x20--code\x20or\x20--alias.','8HnqbzG','code','Unknown\x20alias\x20\x22','1521081NauLHE','validation','10078587ajyEBg','3059960wWktLZ','type','name','1582679mEFdNz','1695778mgDBzy','\x20api\x20pull`\x20first.','some','flags','.\x20Run\x20`','Available\x20aliases:\x20','6TZiMbm','6510872WAxCUZ','No\x20api.ts\x20found\x20in\x20','length','string','join'];a129_0x31b3=function(){return _0x1e17fc;};return a129_0x31b3();}export function resolveAliasToCode(_0x13d9ad,_0x13d6d3,_0xf7176f,_0x1f30fb){const _0x28d9cb=a129_0x328b,_0x4a16fc=_0x13d9ad[_0x28d9cb(0x1df)][_0x28d9cb(0x1de)](_0x45e481=>_0x45e481[_0x28d9cb(0x1da)]===_0x28d9cb(0x1ec)&&_0x45e481[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6)),_0x1b9d8b=_0x13d9ad[_0x28d9cb(0x1df)]['some'](_0x438e43=>_0x438e43[_0x28d9cb(0x1da)]===_0x28d9cb(0x1e8)&&_0x438e43[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6));if(!_0x4a16fc||!_0x1b9d8b)return;const _0x487709=_0x13d6d3[_0x28d9cb(0x1ec)]?String(_0x13d6d3[_0x28d9cb(0x1ec)]):'',_0x4592cd=_0x13d6d3[_0x28d9cb(0x1e8)]?String(_0x13d6d3[_0x28d9cb(0x1e8)]):'';if(!_0x487709&&!_0x4592cd)throw CliErrors[_0x28d9cb(0x1ef)]('`'+_0x1f30fb+_0x28d9cb(0x1ea));if(_0x4592cd&&!_0x487709){const _0x48dab7=resolveAlias(_0xf7176f,_0x4592cd);if(!_0x48dab7){const _0x3bb44b=listAliases(_0xf7176f)['map'](_0x14df32=>_0x14df32[_0x28d9cb(0x1e8)]),_0x52b4e5=_0x3bb44b[_0x28d9cb(0x1e5)]?_0x28d9cb(0x1e1)+_0x3bb44b[_0x28d9cb(0x1e7)](',\x20'):_0x28d9cb(0x1e4)+_0xf7176f+_0x28d9cb(0x1e0)+CLI_BIN_NAME+_0x28d9cb(0x1dd);throw CliErrors['validation'](_0x28d9cb(0x1ed)+_0x4592cd+'\x22.\x20'+_0x52b4e5);}_0x13d6d3[_0x28d9cb(0x1ec)]=_0x48dab7;}}
@@ -1 +1 @@
1
- function a124_0x3d64(_0x9422ab,_0x104f1e){_0x9422ab=_0x9422ab-0x16e;const _0x461aff=a124_0x461a();let _0x3d6494=_0x461aff[_0x9422ab];return _0x3d6494;}(function(_0x469ac6,_0xf4d4c9){const _0xfbab23=a124_0x3d64,_0x505e30=_0x469ac6();while(!![]){try{const _0x3eb2ef=-parseInt(_0xfbab23(0x17b))/0x1*(-parseInt(_0xfbab23(0x172))/0x2)+parseInt(_0xfbab23(0x177))/0x3+parseInt(_0xfbab23(0x1b5))/0x4*(-parseInt(_0xfbab23(0x175))/0x5)+-parseInt(_0xfbab23(0x19c))/0x6*(-parseInt(_0xfbab23(0x1b9))/0x7)+-parseInt(_0xfbab23(0x174))/0x8+-parseInt(_0xfbab23(0x1ad))/0x9*(-parseInt(_0xfbab23(0x178))/0xa)+-parseInt(_0xfbab23(0x1b2))/0xb;if(_0x3eb2ef===_0xf4d4c9)break;else _0x505e30['push'](_0x505e30['shift']());}catch(_0x2866f7){_0x505e30['push'](_0x505e30['shift']());}}}(a124_0x461a,0xcd0a3));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';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x407ab0,_0x452555){const _0x2293d2=a124_0x3d64,_0xba2b81=CLI_BIN_NAME+'\x20'+_0x407ab0[_0x2293d2(0x1ac)]+'\x20'+_0x407ab0[_0x2293d2(0x17a)],_0x1706b0=parseFlags(_0x407ab0[_0x2293d2(0x18b)],_0x452555['rawFlags']);validateFlags(_0x407ab0[_0x2293d2(0x18b)],_0x1706b0,_0xba2b81);if(!_0x1706b0[_0x2293d2(0x18d)]&&_0x452555[_0x2293d2(0x1b7)]&&riskLevelOrder(_0x407ab0[_0x2293d2(0x1af)])>riskLevelOrder(_0x452555[_0x2293d2(0x1b7)])){if(_0x452555[_0x2293d2(0x17f)])throw CliErrors['validation'](_0x2293d2(0x190)+_0xba2b81+_0x2293d2(0x1b6)+_0x407ab0[_0x2293d2(0x1af)]+_0x2293d2(0x173)+_0x452555[_0x2293d2(0x1b7)]+'\x22.');throw CliErrors[_0x2293d2(0x171)](_0x2293d2(0x190)+_0xba2b81+_0x2293d2(0x1b6)+_0x407ab0[_0x2293d2(0x1af)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x452555[_0x2293d2(0x1b7)]+'\x22.\x0a'+(_0x2293d2(0x1a1)+_0x407ab0['risk']+'\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.'));}const _0x258e76=_0x452555['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x407ab0,_0x1706b0,_0x258e76,_0xba2b81);let _0xba5e6='';if(_0x407ab0['requiresAuth']!==![]){_0xba5e6=_0x452555[_0x2293d2(0x188)]();if(!_0xba5e6)throw CliErrors[_0x2293d2(0x19e)]();const {setActiveCookie:_0x1887ab}=await import(_0x2293d2(0x18f));_0x1887ab(_0xba5e6);}let _0x5bbafa='';if(_0x407ab0[_0x2293d2(0x192)]!==![]){_0x5bbafa=_0x452555[_0x2293d2(0x17d)]()??'';if(!_0x5bbafa)throw CliErrors[_0x2293d2(0x1a7)](_0x2293d2(0x1aa)+CLI_BIN_NAME+_0x2293d2(0x1a4));}let _0x20eab0=resolveFormat(_0x1706b0,_0x407ab0,_0x452555[_0x2293d2(0x179)]);const _0x59ae9c=resolveJqFilter(_0x1706b0);_0x59ae9c&&_0x20eab0===_0x2293d2(0x1a3)&&(_0x20eab0='json');if(_0x59ae9c&&_0x20eab0!==_0x2293d2(0x17c)&&_0x20eab0!==_0x2293d2(0x1b4))throw CliErrors['validation'](_0x2293d2(0x197)+_0x20eab0+').');const _0x465109=buildRuntimeContext({'appCode':_0x5bbafa,'cookie':_0xba5e6,'apiDomain':_0x452555[_0x2293d2(0x16f)](),'format':_0x20eab0,'jqFilter':_0x59ae9c,'flags':_0x1706b0,'def':_0x407ab0,'nonInteractive':_0x452555[_0x2293d2(0x17f)],'defaultPageSize':_0x452555[_0x2293d2(0x18c)],'defaultVerbose':_0x452555[_0x2293d2(0x198)],'apiDir':_0x258e76,'selectedAppName':_0x452555[_0x2293d2(0x185)],'args':_0x452555[_0x2293d2(0x195)]??[]});_0x407ab0[_0x2293d2(0x191)]&&await _0x407ab0['validate'](_0x465109);if(_0x1706b0[_0x2293d2(0x18d)]){if(!_0x407ab0['dryRun'])throw CliErrors[_0x2293d2(0x171)](_0x2293d2(0x181)+_0xba2b81+'`.');const _0x549da8=await _0x407ab0[_0x2293d2(0x1b1)](_0x465109);formatOutput({'ok':!![],'data':_0x549da8},{'command':_0xba2b81,'risk':_0x407ab0['risk'],'format':_0x20eab0,'dryRun':!![],'jqFilter':_0x59ae9c});return;}if(_0x407ab0[_0x2293d2(0x1af)]===_0x2293d2(0x1a6)&&!_0x1706b0['yes']){if(_0x452555[_0x2293d2(0x17f)])throw CliErrors['validation'](_0x2293d2(0x193)+_0xba2b81+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0xba2b81);}const _0x21fc43=await _0x407ab0[_0x2293d2(0x18e)](_0x465109);formatOutput(_0x21fc43,{'command':_0xba2b81,'risk':_0x407ab0[_0x2293d2(0x1af)],'format':_0x20eab0,'jqFilter':_0x59ae9c});}function a124_0x461a(){const _0x206754=['compress','4OSowRo','`\x20has\x20risk\x20level\x20\x22','riskLevel','No\x20api.ts\x20found\x20in\x20','9627051sYfLdp','type','resolveApiDomain','createInterface','validation','22HFrRlg','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','7295120vMflLT','6579085ieGYFT','join','2269998FsKBCr','9881150zLBPSv','defaultFormat','command','28319SwnAKW','json','resolveAppCode','apiDir','isNonInteractive','number','--dry-run\x20is\x20not\x20supported\x20for\x20`','stdin','map','hasFormat','selectedAppName','length','some','resolveCookie','code','trim','flags','defaultPageSize','dry-run','execute','../core/api-client.js','Command\x20`','validate','requiresAppCode','High-risk\x20operation\x20`','string','args','toLowerCase','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','defaultVerbose','yes','apiDomain','verbose','6AQixcp','Unknown\x20alias\x20\x22','authRequired','Available\x20aliases:\x20','format','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','\x22.\x20','pretty','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20api\x20pull`\x20first.','high-risk-write','configMissing','nonInteractive','question','Set\x20appcode\x20via\x20`','appCode','service','9yDpnRd','stderr','risk','name','dryRun','4004363NUAvha','alias'];a124_0x461a=function(){return _0x206754;};return a124_0x461a();}function buildRuntimeContext(_0x29926f){const _0x35448c=a124_0x3d64,{flags:_0x463117,def:_0x46a443}=_0x29926f,_0x5d8257=CLI_BIN_NAME+'\x20'+_0x46a443[_0x35448c(0x1ac)]+'\x20'+_0x46a443[_0x35448c(0x17a)];return{'appCode':_0x29926f[_0x35448c(0x1ab)],'cookie':_0x29926f['cookie'],'apiDomain':_0x29926f[_0x35448c(0x19a)],'format':_0x29926f[_0x35448c(0x1a0)],'nonInteractive':_0x29926f[_0x35448c(0x1a8)],'apiDir':_0x29926f[_0x35448c(0x17e)],'selectedAppName':_0x29926f[_0x35448c(0x185)],'args':_0x29926f[_0x35448c(0x195)],'str'(_0x2b25dd){return String(_0x463117[_0x2b25dd]??'');},'bool'(_0x49801d){const _0x581797=_0x35448c;if(_0x463117[_0x49801d]===!![])return!![];if(_0x49801d===_0x581797(0x19b)&&_0x29926f[_0x581797(0x198)])return!![];return![];},'num'(_0x374216,_0x634843){const _0x11b229=_0x35448c,_0x5a61dc=_0x463117[_0x374216];if(typeof _0x5a61dc===_0x11b229(0x180))return _0x5a61dc;if(_0x374216==='pagesize'&&_0x29926f[_0x11b229(0x18c)]!=null)return _0x29926f['defaultPageSize'];return _0x634843??0x0;},'flag'(_0x5716f0){return _0x463117[_0x5716f0];},'output'(_0x301ff8){const _0x1fbb69=_0x35448c;formatOutput(_0x301ff8,{'command':_0x5d8257,'risk':_0x46a443[_0x1fbb69(0x1af)],'format':_0x29926f[_0x1fbb69(0x1a0)],'jqFilter':_0x29926f['jqFilter']});}};}function resolveJqFilter(_0x2ede94){const _0xbcb94b=a124_0x3d64,_0x5c4e52=_0x2ede94['jq'];if(_0x5c4e52===undefined||_0x5c4e52===null)return undefined;const _0xcd753=String(_0x5c4e52)[_0xbcb94b(0x18a)]();return _0xcd753===''?undefined:_0xcd753;}function resolveFormat(_0x59b6cd,_0x63b714,_0x5f3ff9){const _0x2b6901=a124_0x3d64;if(_0x63b714[_0x2b6901(0x184)]===![])return'pretty';const _0x1c4117=normalizeLegacyOutputFormat(_0x59b6cd[_0x2b6901(0x1a0)]);if(_0x1c4117)return _0x1c4117;const _0x138ec1=normalizeLegacyOutputFormat(_0x5f3ff9);if(_0x138ec1)return _0x138ec1;const _0x2cf01a=normalizeLegacyOutputFormat(_0x63b714['defaultOutputFormat']);if(_0x2cf01a)return _0x2cf01a;return _0x2b6901(0x1b4);}async function requireConfirmation(_0x343d1a){const _0x10b0e2=a124_0x3d64,_0x29b53d=await import('node:readline'),_0xbc405=_0x29b53d[_0x10b0e2(0x170)]({'input':process[_0x10b0e2(0x182)],'output':process[_0x10b0e2(0x1ae)]});return new Promise((_0x5ad845,_0x2a7fb7)=>{const _0x44e0fc=_0x10b0e2;_0xbc405[_0x44e0fc(0x1a9)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x343d1a+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0xeb2fed=>{const _0x447e54=_0x44e0fc;_0xbc405['close'](),_0xeb2fed[_0x447e54(0x196)]()==='y'||_0xeb2fed[_0x447e54(0x196)]()===_0x447e54(0x199)?_0x5ad845():_0x2a7fb7(CliErrors['cancelled']('Operation\x20cancelled\x20by\x20user.'));});});}function resolveAliasToCode(_0x4cbbc0,_0x5ab3d1,_0x3a1047,_0x4d2dce){const _0x14b005=a124_0x3d64,_0x44c1a5=_0x4cbbc0[_0x14b005(0x18b)]['some'](_0x53ddb2=>_0x53ddb2[_0x14b005(0x1b0)]==='code'&&_0x53ddb2[_0x14b005(0x16e)]==='string'),_0x4c3258=_0x4cbbc0[_0x14b005(0x18b)][_0x14b005(0x187)](_0x45a3d0=>_0x45a3d0[_0x14b005(0x1b0)]==='alias'&&_0x45a3d0[_0x14b005(0x16e)]===_0x14b005(0x194));if(!_0x44c1a5||!_0x4c3258)return;const _0x1a70ea=_0x5ab3d1['code']?String(_0x5ab3d1[_0x14b005(0x189)]):'',_0xfb442b=_0x5ab3d1[_0x14b005(0x1b3)]?String(_0x5ab3d1['alias']):'';if(!_0x1a70ea&&!_0xfb442b)throw CliErrors[_0x14b005(0x171)]('`'+_0x4d2dce+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0xfb442b&&!_0x1a70ea){const _0x54762e=resolveAlias(_0x3a1047,_0xfb442b);if(!_0x54762e){const _0x49510f=listAliases(_0x3a1047)[_0x14b005(0x183)](_0x38439a=>_0x38439a[_0x14b005(0x1b3)]),_0x1101ec=_0x49510f[_0x14b005(0x186)]?_0x14b005(0x19f)+_0x49510f[_0x14b005(0x176)](',\x20'):_0x14b005(0x1b8)+_0x3a1047+'.\x20Run\x20`'+CLI_BIN_NAME+_0x14b005(0x1a5);throw CliErrors[_0x14b005(0x171)](_0x14b005(0x19d)+_0xfb442b+_0x14b005(0x1a2)+_0x1101ec);}_0x5ab3d1[_0x14b005(0x189)]=_0x54762e;}}
1
+ const a130_0x2d4874=a130_0x3fe6;function a130_0x4c14(){const _0x31440f=['⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','mergedCli','2365990kLsPkD','defaultVerbose','1385brwVSG','cookie','2284tIzAyl','service','resolveCookie','has','435536xyAIzZ','181704jsiKkP','riskLevel','\x20\x20\x20Continue?\x20[y/N]\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultApp','710457yGjShk','filter','currentApp','../core/api-client.js','3781392QqCREF','validation','requiresAuth','63yCdoiJ','apps','authRequired','resolveApiDomain','appCode','explicitAppName','command','apiDir','format','High-risk\x20operation\x20`','170VoIjef','cancelled','60804gbSbFH','configMissing','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a130_0x4c14=function(){return _0x31440f;};return a130_0x4c14();}(function(_0xec5ddf,_0x129a9c){const _0x274644=a130_0x3fe6,_0x95d2d3=_0xec5ddf();while(!![]){try{const _0xc5607c=-parseInt(_0x274644(0x1ef))/0x1+parseInt(_0x274644(0x1e0))/0x2+-parseInt(_0x274644(0x1e9))/0x3+parseInt(_0x274644(0x1e4))/0x4*(parseInt(_0x274644(0x1e2))/0x5)+parseInt(_0x274644(0x1ca))/0x6+parseInt(_0x274644(0x1cd))/0x7*(-parseInt(_0x274644(0x1e8))/0x8)+-parseInt(_0x274644(0x1d9))/0x9*(parseInt(_0x274644(0x1d7))/0xa);if(_0xc5607c===_0x129a9c)break;else _0x95d2d3['push'](_0x95d2d3['shift']());}catch(_0x3039a6){_0x95d2d3['push'](_0x95d2d3['shift']());}}}(a130_0x4c14,0x91653));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a130_0x3fe6(_0xf3a298,_0x3dd219){_0xf3a298=_0xf3a298-0x1c8;const _0x4c145d=a130_0x4c14();let _0x3fe6f3=_0x4c145d[_0xf3a298];return _0x3fe6f3;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0x227ec9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2cf2d6,_0x351aa0,_0x49efaf=[]){const _0x2065c8=a130_0x3fe6;return{'rawFlags':_0x351aa0,'args':_0x49efaf,'resolveAppCode':()=>_0x2cf2d6[_0x2065c8(0x1d1)]||_0x351aa0['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2cf2d6[_0x2065c8(0x1e3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x227ec9(_0x351aa0),'defaultFormat':_0x2cf2d6[_0x2065c8(0x1d5)],'defaultPageSize':_0x2cf2d6['pageSize'],'defaultVerbose':_0x2cf2d6[_0x2065c8(0x1ed)],'apiDir':_0x2cf2d6[_0x2065c8(0x1d4)],'riskLevel':_0x2cf2d6[_0x2065c8(0x1ea)],'selectedAppName':_0x2cf2d6[_0x2065c8(0x1d2)],'mergedCli':{'defaultApp':_0x2cf2d6[_0x2065c8(0x1ee)],'currentApp':_0x2cf2d6[_0x2065c8(0x1c8)],'appCode':_0x2cf2d6['appCode'],'apps':_0x2cf2d6[_0x2065c8(0x1ce)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2d4874(0x1f0)](_0x45f925=>PIPELINE_FLAG_NAMES[a130_0x2d4874(0x1e7)](_0x45f925['name']))['map'](({name:_0x1e2c9b,type:_0x1ea840,description:_0x26050c})=>({'name':_0x1e2c9b,'type':_0x1ea840,'description':_0x26050c})),'formatOutput':formatOutput,'getCommandLabel'(_0x76b2ed){const _0x1593bc=a130_0x2d4874;return CLI_BIN_NAME+'\x20'+_0x76b2ed[_0x1593bc(0x1e5)]+'\x20'+_0x76b2ed[_0x1593bc(0x1d3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e5cb4){const _0x364870=a130_0x2d4874;return CliErrors[_0x364870(0x1cb)](_0x3e5cb4);}},async 'prepare'(_0x573e0f,_0x35798c,_0x212295,_0x3da7ab){const _0x5b091a=a130_0x2d4874,_0xec8e11=_0x35798c[_0x5b091a(0x1d4)]||DEFAULT_API_DIR;resolveAliasToCode(_0x573e0f,_0x212295,_0xec8e11,_0x3da7ab);let _0xae8e21='';if(_0x573e0f[_0x5b091a(0x1cc)]!==![]){_0xae8e21=_0x35798c[_0x5b091a(0x1e6)]();if(!_0xae8e21)throw CliErrors[_0x5b091a(0x1cf)]();const {setActiveCookie:_0x2c8d79}=await import('../core/api-client.js');_0x2c8d79(_0xae8e21);}let _0x17207f='';if(_0x573e0f['requiresAppCode']!==![]){_0x17207f=_0x35798c['resolveAppCode']()??'';if(!_0x17207f)throw CliErrors[_0x5b091a(0x1da)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x5b091a(0x1dc));}return{'defaults':{'booleans':{'verbose':_0x35798c[_0x5b091a(0x1e1)]},'numbers':{'pagesize':_0x35798c[_0x5b091a(0x1db)]}},'extras':{'appCode':_0x17207f,'cookie':_0xae8e21,'apiDomain':_0x35798c[_0x5b091a(0x1d0)](),'apiDir':_0xec8e11,'selectedAppName':_0x35798c[_0x5b091a(0x1de)],'mergedCli':_0x35798c[_0x5b091a(0x1df)]}};},async 'confirmHighRisk'({env:_0x3295a1,commandLabel:_0x56520c}){const _0x1fe506=a130_0x2d4874;if(_0x3295a1['isNonInteractive'])throw CliErrors[_0x1fe506(0x1cb)](_0x1fe506(0x1d6)+_0x56520c+_0x1fe506(0x1ec));await requireConfirmationPrompt({'lines':[_0x1fe506(0x1dd)+_0x56520c,_0x1fe506(0x1eb)],'createCancelledError':_0x49fc25=>CliErrors[_0x1fe506(0x1d8)](_0x49fc25)});},async 'finalize'(){const _0xf8d378=a130_0x2d4874,{clearActiveCookie:_0x178602}=await import(_0xf8d378(0x1c9));_0x178602();}};export async function runCommand(_0x39d979,_0x316421){await runCommandWithAdapter(_0x39d979,_0x316421,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x72cc6c,_0x2e4016){const _0x1df472=a125_0x3789,_0x50e2c4=_0x72cc6c();while(!![]){try{const _0x3374a1=parseInt(_0x1df472(0x11d))/0x1+-parseInt(_0x1df472(0x131))/0x2*(parseInt(_0x1df472(0x11c))/0x3)+-parseInt(_0x1df472(0x111))/0x4*(-parseInt(_0x1df472(0x11b))/0x5)+-parseInt(_0x1df472(0x11e))/0x6*(-parseInt(_0x1df472(0x132))/0x7)+parseInt(_0x1df472(0x122))/0x8+-parseInt(_0x1df472(0x129))/0x9*(-parseInt(_0x1df472(0x123))/0xa)+-parseInt(_0x1df472(0x127))/0xb;if(_0x3374a1===_0x2e4016)break;else _0x50e2c4['push'](_0x50e2c4['shift']());}catch(_0xc4be8){_0x50e2c4['push'](_0x50e2c4['shift']());}}}(a125_0x1afb,0x19db3));import{buildAllFlags}from'../framework/build-all-flags.js';function a125_0x3789(_0x5c1334,_0x2638fa){_0x5c1334=_0x5c1334-0x110;const _0x1afb50=a125_0x1afb();let _0x37895f=_0x1afb50[_0x5c1334];return _0x37895f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function serializeFlag(_0x3a51c2){const _0xc318ea=a125_0x3789,_0x2596f6={'name':_0x3a51c2[_0xc318ea(0x128)],'type':_0x3a51c2['type'],'description':_0x3a51c2[_0xc318ea(0x113)]};if(_0x3a51c2[_0xc318ea(0x115)]!==undefined)_0x2596f6[_0xc318ea(0x115)]=_0x3a51c2['required'];if(_0x3a51c2[_0xc318ea(0x134)]!==undefined)_0x2596f6[_0xc318ea(0x134)]=_0x3a51c2[_0xc318ea(0x134)];if(_0x3a51c2['enum']&&_0x3a51c2['enum'][_0xc318ea(0x121)]>0x0)_0x2596f6['enum']=_0x3a51c2[_0xc318ea(0x126)];if(_0x3a51c2[_0xc318ea(0x117)])_0x2596f6[_0xc318ea(0x117)]=_0x3a51c2['alias'];if(_0x3a51c2[_0xc318ea(0x12c)])_0x2596f6[_0xc318ea(0x12c)]=_0x3a51c2[_0xc318ea(0x12c)];return _0x3a51c2['pattern']&&(_0x2596f6[_0xc318ea(0x110)]={'source':_0x3a51c2['pattern'][_0xc318ea(0x125)][_0xc318ea(0x133)],'flags':_0x3a51c2[_0xc318ea(0x110)][_0xc318ea(0x125)]['flags'],'description':_0x3a51c2[_0xc318ea(0x110)][_0xc318ea(0x113)]}),_0x2596f6;}function serializeHelpExtra(_0x4df754){const _0x1b453f=a125_0x3789;if(_0x4df754['helpExtra']===undefined)return undefined;if(typeof _0x4df754['helpExtra']===_0x1b453f(0x116))return{'dynamic':!![]};return _0x4df754[_0x1b453f(0x120)];}function a125_0x1afb(){const _0x44b968=['push','256104pNqRpL','1393609GXALnD','source','default','wildcardDef','commands','pattern','285836JKvSHp','service','description','args','required','function','alias','../commands/registry.js','risk','defaultCommand','5hQNYyi','3asQmWv','116262YAsXSW','6voyocx','command','helpExtra','length','1689976MiQQdt','8540dCfhMU','map','regex','enum','4831728YLDVgV','name','792bvDIqY','trim','hint','hidden','type','isSingleCommand','label'];a125_0x1afb=function(){return _0x44b968;};return a125_0x1afb();}function serializeCommand(_0x32721d,_0x4ba504){const _0x207e06=a125_0x3789,_0x4270b5=_0x32721d['requiresAuth']!==![],_0x372570=_0x32721d['requiresAppCode']!==![],_0x1757fc=_0x32721d['hasFormat']!==![],_0x1e1f05=serializeHelpExtra(_0x32721d);return{'command':_0x4ba504[_0x207e06(0x11f)],'description':_0x4ba504['description'],..._0x4ba504['tag']?{'tag':_0x4ba504['tag'][_0x207e06(0x12a)]()}:{},'risk':_0x32721d[_0x207e06(0x119)],'requiresAuth':_0x4270b5,'requiresAppCode':_0x372570,'hasFormat':_0x1757fc,'supportsDryRun':Boolean(_0x32721d['dryRun']),..._0x32721d[_0x207e06(0x114)]&&_0x32721d[_0x207e06(0x114)][_0x207e06(0x121)]>0x0?{'args':_0x32721d[_0x207e06(0x114)]}:{},'flags':buildAllFlags(_0x32721d)[_0x207e06(0x124)](serializeFlag),..._0x1e1f05!==undefined?{'helpExtra':_0x1e1f05}:{}};}export async function buildSchemaPayload(){const _0x3f552b=a125_0x3789,{serviceRegistry:_0xf16f81,findDefinition:_0x56d4d5}=await import(_0x3f552b(0x118)),_0x412713=[];for(const _0x2c7f96 of _0xf16f81){const _0x5a3840=[];for(const _0x2fd502 of _0x2c7f96[_0x3f552b(0x136)]){const _0x8d8f17=_0x2fd502[_0x3f552b(0x11f)]==='<script>'&&_0x2c7f96['wildcardDef']?_0x2c7f96[_0x3f552b(0x135)]:_0x56d4d5(_0x2c7f96[_0x3f552b(0x112)],_0x2fd502[_0x3f552b(0x11f)]);if(!_0x8d8f17)continue;_0x5a3840[_0x3f552b(0x130)](serializeCommand(_0x8d8f17,_0x2fd502));}_0x412713[_0x3f552b(0x130)]({'service':_0x2c7f96[_0x3f552b(0x112)],'label':_0x2c7f96[_0x3f552b(0x12f)],..._0x2c7f96[_0x3f552b(0x12e)]?{'isSingleCommand':!![]}:{},..._0x2c7f96[_0x3f552b(0x11a)]?{'defaultCommand':_0x2c7f96[_0x3f552b(0x11a)]}:{},'hasWildcard':Boolean(_0x2c7f96[_0x3f552b(0x135)]),'commands':_0x5a3840});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS[_0x3f552b(0x124)](_0x4e6f88=>({'name':_0x4e6f88[_0x3f552b(0x128)],'type':_0x4e6f88[_0x3f552b(0x12d)],'description':_0x4e6f88[_0x3f552b(0x113)],..._0x4e6f88['hint']?{'hint':_0x4e6f88[_0x3f552b(0x12b)]}:{},..._0x4e6f88['hidden']?{'hidden':!![]}:{}})),'services':_0x412713};}
1
+ function a131_0x30c7(_0x367a05,_0x312bbd){_0x367a05=_0x367a05-0x1d4;const _0x5766fb=a131_0x5766();let _0x30c7d1=_0x5766fb[_0x367a05];return _0x30c7d1;}(function(_0x50b279,_0x31688b){const _0x2e4de1=a131_0x30c7,_0xa42750=_0x50b279();while(!![]){try{const _0x589b94=-parseInt(_0x2e4de1(0x1d7))/0x1+-parseInt(_0x2e4de1(0x1d4))/0x2+parseInt(_0x2e4de1(0x1dd))/0x3*(parseInt(_0x2e4de1(0x1da))/0x4)+parseInt(_0x2e4de1(0x1de))/0x5+parseInt(_0x2e4de1(0x1d8))/0x6*(-parseInt(_0x2e4de1(0x1d5))/0x7)+-parseInt(_0x2e4de1(0x1db))/0x8+parseInt(_0x2e4de1(0x1d6))/0x9*(parseInt(_0x2e4de1(0x1d9))/0xa);if(_0x589b94===_0x31688b)break;else _0xa42750['push'](_0xa42750['shift']());}catch(_0x4e3dad){_0xa42750['push'](_0xa42750['shift']());}}}(a131_0x5766,0xdebf4));function a131_0x5766(){const _0x2863f0=['5842071DHcNlL','827823jWTAgr','4463016VMQbZn','60SLlYqK','4ygQmmb','12253632FwpInl','../commands/registry.js','4655505OEsICU','1288870ekGsYj','1889504bolEKH','14UnSRwA'];a131_0x5766=function(){return _0x2863f0;};return a131_0x5766();}import{buildSchemaPayload as a131_0x4070cc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1c5d1a=a131_0x30c7,{serviceRegistry:_0x358557,findDefinition:_0x3fa5ac}=await import(_0x1c5d1a(0x1dc));return a131_0x4070cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x358557,'buildAllFlags':buildAllFlags,'findDefinition':_0x3fa5ac});}
@@ -1 +1 @@
1
- function a126_0x201f(){const _0x17e258=['390iRDsyv','3HdfGnj','pretty','table','6sHUHot','97182vGBrrU','4015FFUpUW','14964CKDXId','9VecwqA','118018Fybsjy','717335IWrPyi','98204ZXqodi','compress','read','388731bnJrlq','2783280dtVQkV'];a126_0x201f=function(){return _0x17e258;};return a126_0x201f();}(function(_0x1e4ed9,_0x10f6a6){const _0x2d5799=a126_0x5350,_0x5e5bc1=_0x1e4ed9();while(!![]){try{const _0x38eb96=-parseInt(_0x2d5799(0x146))/0x1*(parseInt(_0x2d5799(0x14e))/0x2)+-parseInt(_0x2d5799(0x14d))/0x3*(-parseInt(_0x2d5799(0x140))/0x4)+parseInt(_0x2d5799(0x14f))/0x5*(-parseInt(_0x2d5799(0x149))/0x6)+-parseInt(_0x2d5799(0x143))/0x7+-parseInt(_0x2d5799(0x144))/0x8+parseInt(_0x2d5799(0x14a))/0x9*(parseInt(_0x2d5799(0x145))/0xa)+parseInt(_0x2d5799(0x14b))/0xb*(parseInt(_0x2d5799(0x14c))/0xc);if(_0x38eb96===_0x10f6a6)break;else _0x5e5bc1['push'](_0x5e5bc1['shift']());}catch(_0x3d508a){_0x5e5bc1['push'](_0x5e5bc1['shift']());}}}(a126_0x201f,0x372c9));function a126_0x5350(_0x47e878,_0x11069e){_0x47e878=_0x47e878-0x140;const _0x201ff2=a126_0x201f();let _0x53509e=_0x201ff2[_0x47e878];return _0x53509e;}export function riskLevelOrder(_0x44e5b7){const _0x499f60=a126_0x5350,_0x57f612={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x57f612[_0x44e5b7??_0x499f60(0x142)]??0x0;}export function isValidFormat(_0x205bd1){const _0x504ce9=a126_0x5350;return _0x205bd1==='json'||_0x205bd1===_0x504ce9(0x147)||_0x205bd1===_0x504ce9(0x141);}export function normalizeLegacyOutputFormat(_0x588851){const _0x51b64b=a126_0x5350;if(_0x588851===_0x51b64b(0x148))return _0x51b64b(0x147);if(isValidFormat(_0x588851))return _0x588851;return undefined;}
1
+ function a132_0x3a91(_0x3fb1f2,_0xccace6){_0x3fb1f2=_0x3fb1f2-0x199;var _0x2b71ed=a132_0x2b71();var _0x3a911f=_0x2b71ed[_0x3fb1f2];return _0x3a911f;}function a132_0x2b71(){var _0x2ed14d=['600yIlTft','2249192krFXfH','1670106rXZeUp','1224720XgehGL','4825070jQeEmp','5283360lyJqoq','21osSBUQ','370871rNjzSU','146988rZwwLs','2aHOmGX'];a132_0x2b71=function(){return _0x2ed14d;};return a132_0x2b71();}(function(_0x3c4f08,_0x10f680){var _0x4c2705=a132_0x3a91,_0x56b09a=_0x3c4f08();while(!![]){try{var _0x1681c=-parseInt(_0x4c2705(0x199))/0x1+parseInt(_0x4c2705(0x19b))/0x2*(parseInt(_0x4c2705(0x19f))/0x3)+parseInt(_0x4c2705(0x19d))/0x4+parseInt(_0x4c2705(0x1a0))/0x5+-parseInt(_0x4c2705(0x19e))/0x6*(-parseInt(_0x4c2705(0x1a2))/0x7)+-parseInt(_0x4c2705(0x1a1))/0x8+-parseInt(_0x4c2705(0x19a))/0x9*(parseInt(_0x4c2705(0x19c))/0xa);if(_0x1681c===_0x10f680)break;else _0x56b09a['push'](_0x56b09a['shift']());}catch(_0x23b0a1){_0x56b09a['push'](_0x56b09a['shift']());}}}(a132_0x2b71,0xb9662));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a127_0x5ebf6a=a127_0x34e2;(function(_0x6fc2fc,_0x2213ff){const _0x37c15e=a127_0x34e2,_0x48b3c4=_0x6fc2fc();while(!![]){try{const _0x311288=-parseInt(_0x37c15e(0x14a))/0x1*(parseInt(_0x37c15e(0x14d))/0x2)+parseInt(_0x37c15e(0x148))/0x3+parseInt(_0x37c15e(0x147))/0x4+parseInt(_0x37c15e(0x142))/0x5+-parseInt(_0x37c15e(0x145))/0x6*(parseInt(_0x37c15e(0x146))/0x7)+parseInt(_0x37c15e(0x144))/0x8*(parseInt(_0x37c15e(0x14c))/0x9)+-parseInt(_0x37c15e(0x149))/0xa;if(_0x311288===_0x2213ff)break;else _0x48b3c4['push'](_0x48b3c4['shift']());}catch(_0x215c2a){_0x48b3c4['push'](_0x48b3c4['shift']());}}}(a127_0x5895,0x8c239));function a127_0x34e2(_0x15e71c,_0x4871b0){_0x15e71c=_0x15e71c-0x142;const _0x589534=a127_0x5895();let _0x34e2d8=_0x589534[_0x15e71c];return _0x34e2d8;}export const VERSION=a127_0x5ebf6a(0x14e);function a127_0x5895(){const _0x772d70=['44UJpqgu','2026-04-09T11:25:15.642Z','1449FQiREl','32050BDeMaF','2.1.1','2292955wMYIpi','v2.1.1','45448rrYoGz','42EgfMBq','238217lLNHDf','4403588HdJHzh','650415RViDIK','11736080pIMmAu'];a127_0x5895=function(){return _0x772d70;};return a127_0x5895();}export const GIT_TAG=a127_0x5ebf6a(0x143);export const GIT_COMMIT='75628b5';export const BUILD_TIME=a127_0x5ebf6a(0x14b);
1
+ function a133_0x2527(){const _0x32ce81=['2rpISQn','1225917HIyBFo','2189712HlqxFl','2026-04-12T04:52:50.547Z','10HQibtL','10105839LOpAkD','5pKofCd','b8a2383','2.1.2-beta.0','v2.1.2-beta.0','4001977RueTEm','1878484gWIVSe','978433LUqPKh','10245088GbHZjU'];a133_0x2527=function(){return _0x32ce81;};return a133_0x2527();}const a133_0x1d875c=a133_0x36eb;(function(_0x42c204,_0x73de41){const _0x51b00d=a133_0x36eb,_0x33b0c0=_0x42c204();while(!![]){try{const _0x5cd7e1=-parseInt(_0x51b00d(0x9f))/0x1*(-parseInt(_0x51b00d(0xa1))/0x2)+parseInt(_0x51b00d(0xa2))/0x3+parseInt(_0x51b00d(0x9e))/0x4+-parseInt(_0x51b00d(0x99))/0x5*(parseInt(_0x51b00d(0xa3))/0x6)+-parseInt(_0x51b00d(0x9d))/0x7+-parseInt(_0x51b00d(0xa0))/0x8+-parseInt(_0x51b00d(0x98))/0x9*(-parseInt(_0x51b00d(0xa5))/0xa);if(_0x5cd7e1===_0x73de41)break;else _0x33b0c0['push'](_0x33b0c0['shift']());}catch(_0x4a5b28){_0x33b0c0['push'](_0x33b0c0['shift']());}}}(a133_0x2527,0xba199));export const VERSION=a133_0x1d875c(0x9b);export const GIT_TAG=a133_0x1d875c(0x9c);export const GIT_COMMIT=a133_0x1d875c(0x9a);function a133_0x36eb(_0xddcd01,_0x2075ed){_0xddcd01=_0xddcd01-0x98;const _0x252742=a133_0x2527();let _0x36eb9b=_0x252742[_0xddcd01];return _0x36eb9b;}export const BUILD_TIME=a133_0x1d875c(0xa4);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x473e52,_0x1f5975){var _0x8863bd=a128_0x58fa,_0x28986e=_0x473e52();while(!![]){try{var _0x56ff7d=parseInt(_0x8863bd(0x1ca))/0x1*(parseInt(_0x8863bd(0x1da))/0x2)+parseInt(_0x8863bd(0x1d3))/0x3*(-parseInt(_0x8863bd(0x1cf))/0x4)+-parseInt(_0x8863bd(0x1d8))/0x5*(parseInt(_0x8863bd(0x1d5))/0x6)+-parseInt(_0x8863bd(0x1d7))/0x7*(parseInt(_0x8863bd(0x1ce))/0x8)+-parseInt(_0x8863bd(0x1d6))/0x9+parseInt(_0x8863bd(0x1c9))/0xa+parseInt(_0x8863bd(0x1d4))/0xb*(parseInt(_0x8863bd(0x1cd))/0xc);if(_0x56ff7d===_0x1f5975)break;else _0x28986e['push'](_0x28986e['shift']());}catch(_0x2a5f04){_0x28986e['push'](_0x28986e['shift']());}}}(a128_0x1e48,0xd1e36));import a128_0x4c9ca9 from'chalk';function a128_0x1e48(){var _0x1defb6=['\x20to\x20view\x20available\x20commands.','116ntrYWa','15374680OugTjU','11933wxhHId','\x20--help','log','1499952VeUhZU','410952aURQHf','40384VmdsbS','\x20\x20Use\x20','green','bold','240OsZoXc','88AOgOuM','1686XRpBgG','7644411HzFwqG','14opNDUa','10855FJBnxz'];a128_0x1e48=function(){return _0x1defb6;};return a128_0x1e48();}function a128_0x58fa(_0x35cfc5,_0x43b719){_0x35cfc5=_0x35cfc5-0x1c9;var _0x1e486f=a128_0x1e48();var _0x58fa0b=_0x1e486f[_0x35cfc5];return _0x58fa0b;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4e7a9c=a128_0x58fa;console[_0x4e7a9c(0x1cc)](),console[_0x4e7a9c(0x1cc)](a128_0x4c9ca9[_0x4e7a9c(0x1d1)][_0x4e7a9c(0x1d2)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4e7a9c(0x1cc)](),console['log'](_0x4e7a9c(0x1d0)+a128_0x4c9ca9[_0x4e7a9c(0x1d1)][_0x4e7a9c(0x1d2)](CLI_BIN_NAME+_0x4e7a9c(0x1cb))+_0x4e7a9c(0x1d9)),console['log']();}
1
+ (function(_0x170d9e,_0x3b829c){var _0x50ad3e=a134_0x350c,_0x2b5ace=_0x170d9e();while(!![]){try{var _0x47dbcd=parseInt(_0x50ad3e(0x1bc))/0x1*(-parseInt(_0x50ad3e(0x1c0))/0x2)+parseInt(_0x50ad3e(0x1c8))/0x3*(parseInt(_0x50ad3e(0x1bd))/0x4)+parseInt(_0x50ad3e(0x1c4))/0x5*(-parseInt(_0x50ad3e(0x1c5))/0x6)+-parseInt(_0x50ad3e(0x1c2))/0x7*(-parseInt(_0x50ad3e(0x1bf))/0x8)+-parseInt(_0x50ad3e(0x1c6))/0x9+parseInt(_0x50ad3e(0x1c9))/0xa+parseInt(_0x50ad3e(0x1c7))/0xb;if(_0x47dbcd===_0x3b829c)break;else _0x2b5ace['push'](_0x2b5ace['shift']());}catch(_0x53ac65){_0x2b5ace['push'](_0x2b5ace['shift']());}}}(a134_0x26d9,0x4039a));function a134_0x350c(_0x19220f,_0x5ffdb8){_0x19220f=_0x19220f-0x1bb;var _0x26d91f=a134_0x26d9();var _0x350cf1=_0x26d91f[_0x19220f];return _0x350cf1;}function a134_0x26d9(){var _0x280d36=['1qJpsHi','1056252zJeIcp','\x20\x20Use\x20','96ShFqwE','955146zBsuXP','bold','42224YBxgFT','\x20to\x20view\x20available\x20commands.','10xrlfhe','529368LdgApT','3104847CAilbT','7595676wajLIo','3FrWyFw','2351150tldvAl','log'];a134_0x26d9=function(){return _0x280d36;};return a134_0x26d9();}import a134_0x1ed3e7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb4f531=a134_0x350c;console[_0xb4f531(0x1bb)](),console[_0xb4f531(0x1bb)](a134_0x1ed3e7['green'][_0xb4f531(0x1c1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xb4f531(0x1bb)](),console['log'](_0xb4f531(0x1be)+a134_0x1ed3e7['green'][_0xb4f531(0x1c1)](CLI_BIN_NAME+'\x20--help')+_0xb4f531(0x1c3)),console['log']();}
@@ -1 +1 @@
1
- const a129_0x10d0c9=a129_0x1381;(function(_0xca51d1,_0x5e94b7){const _0x19176e=a129_0x1381,_0x4f1735=_0xca51d1();while(!![]){try{const _0x2f826a=parseInt(_0x19176e(0x1ee))/0x1+parseInt(_0x19176e(0x1e7))/0x2+parseInt(_0x19176e(0x1ec))/0x3+parseInt(_0x19176e(0x1f1))/0x4*(-parseInt(_0x19176e(0x1f0))/0x5)+-parseInt(_0x19176e(0x1f8))/0x6+parseInt(_0x19176e(0x1fe))/0x7*(-parseInt(_0x19176e(0x1e5))/0x8)+-parseInt(_0x19176e(0x1f9))/0x9;if(_0x2f826a===_0x5e94b7)break;else _0x4f1735['push'](_0x4f1735['shift']());}catch(_0x561b40){_0x4f1735['push'](_0x4f1735['shift']());}}}(a129_0x6c56,0x91ea2));import{logger}from'../utils/logger.js';function a129_0x1381(_0x5bfd76,_0x590048){_0x5bfd76=_0x5bfd76-0x1dd;const _0x6c567a=a129_0x6c56();let _0x138113=_0x6c567a[_0x5bfd76];return _0x138113;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x6c56(){const _0x167941=['5QDdDzf','2483868NgoPIN','dangerously-bff-save','has','-$1','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','exit','不支持的命令:\x20','2776236ehLmkI','4140126RAieip','entries','(empty)','Equivalent\x20command:\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','6843606NYanAs','push','Error:\x20Unsupported\x20command:\x20','from','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','help','includes','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','slice','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','startsWith','\x20skill\x20--help\x0a\x20\x20','add','argv','8YpscNs','log','2167846dxUwPx','cwd','error','setLogPath','\x0aAvailable\x20commands:','3144039iSniQs','length','987075EsZaar','replace'];a129_0x6c56=function(){return _0x167941;};return a129_0x6c56();}export function camelCaseFlagsToKebab(_0x155f98){const _0x28d4b0=a129_0x1381,_0x1edfb0=[];for(const [_0x3d8eeb,_0x49e0ef]of Object[_0x28d4b0(0x1fa)](_0x155f98)){if(_0x49e0ef===!![]){const _0xee13ab=_0x3d8eeb[_0x28d4b0(0x1ef)](/([A-Z])/g,_0x28d4b0(0x1f4))['toLowerCase']();_0x1edfb0[_0x28d4b0(0x1ff)](_0xee13ab);}}return _0x1edfb0;}export function parseDynamicFlags(){const _0x252c65=a129_0x1381,_0x2373c8=[];for(let _0x3ba355=0x3;_0x3ba355<process[_0x252c65(0x1e4)][_0x252c65(0x1ed)];_0x3ba355++){const _0x2ecf37=process[_0x252c65(0x1e4)][_0x3ba355];if(_0x2ecf37&&_0x2ecf37[_0x252c65(0x1e1)]('--')){const _0x2c2d47=_0x2ecf37[_0x252c65(0x1df)](0x2);_0x2c2d47&&!_0x2c2d47[_0x252c65(0x1dd)]('=')&&_0x2373c8[_0x252c65(0x1ff)](_0x2c2d47);}}return _0x2373c8;}export function getAllProvidedFlags(_0x4a6f80){const _0x475b15=a129_0x1381,_0x33ec5a=camelCaseFlagsToKebab(_0x4a6f80),_0x2d1388=parseDynamicFlags(),_0xea8d41=new Set([..._0x33ec5a,..._0x2d1388]);return Array[_0x475b15(0x201)](_0xea8d41);}export function normalizeLegacyBffSaveFlags(_0x467ab4){const _0x29059c=a129_0x1381,_0xb0e327=new Set(_0x467ab4);return _0xb0e327[_0x29059c(0x1f3)](_0x29059c(0x1f2))&&_0xb0e327[_0x29059c(0x1e3)]('enable-bff-save'),Array[_0x29059c(0x201)](_0xb0e327);}const SKILLS_INSTALL_COMMAND_LINE=a129_0x10d0c9(0x1de);export async function skillsCommand(_0x48f4dc,_0xadbf78,_0x1c2848){const _0x1be7e3=a129_0x10d0c9;logger[_0x1be7e3(0x1ea)](process[_0x1be7e3(0x1e8)]());if(_0x1c2848?.[_0x1be7e3(0x203)]||_0x48f4dc==='--help'){showHelp();return;}console[_0x1be7e3(0x1e9)](_0x1be7e3(0x200)+(_0x48f4dc||_0x1be7e3(0x1fb))),console[_0x1be7e3(0x1e6)](_0x1be7e3(0x1eb)),console[_0x1be7e3(0x1e6)]('\x20\x20'+CLI_BIN_NAME+_0x1be7e3(0x1e0)),console[_0x1be7e3(0x1e6)]('\x20\x20'+CLI_BIN_NAME+_0x1be7e3(0x1f5)),console[_0x1be7e3(0x1e6)](''),console[_0x1be7e3(0x1e6)](_0x1be7e3(0x1fc)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1be7e3(0x1e9)]('skill',_0x1be7e3(0x1f7)+_0x48f4dc),process[_0x1be7e3(0x1f6)](0x1);}function showHelp(){const _0x334c40=a129_0x10d0c9;console[_0x334c40(0x1e6)](_0x334c40(0x202)+CLI_BIN_NAME+_0x334c40(0x1e2)+CLI_BIN_NAME+_0x334c40(0x1fd)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x5b0a6b,_0x9fe8cf){const _0x1eaad1=a135_0x414d,_0x436b73=_0x5b0a6b();while(!![]){try{const _0x526e82=parseInt(_0x1eaad1(0xea))/0x1+parseInt(_0x1eaad1(0xde))/0x2*(-parseInt(_0x1eaad1(0xd7))/0x3)+-parseInt(_0x1eaad1(0xe6))/0x4*(-parseInt(_0x1eaad1(0xd5))/0x5)+-parseInt(_0x1eaad1(0xe7))/0x6+-parseInt(_0x1eaad1(0xcf))/0x7*(-parseInt(_0x1eaad1(0xdd))/0x8)+parseInt(_0x1eaad1(0xca))/0x9+-parseInt(_0x1eaad1(0xe9))/0xa;if(_0x526e82===_0x9fe8cf)break;else _0x436b73['push'](_0x436b73['shift']());}catch(_0x1cc670){_0x436b73['push'](_0x436b73['shift']());}}}(a135_0x4c41,0xb2ab1));import{logger}from'../utils/logger.js';function a135_0x4c41(){const _0x385099=['\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','7555797hTOKDw','Error:\x20Unsupported\x20command:\x20','dangerously-bff-save','不支持的命令:\x20','log','7KyLTiE','skill','\x0aAvailable\x20commands:','from','help','-$1','2292340lSCcjJ','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','225FrLcUG','argv','enable-bff-save','length','push','startsWith','6658712xkaOXh','4578hGLpBn','error','entries','setLogPath','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','has','slice','exit','12oQhnQf','1636968FZqloO','toLowerCase','28121070WSOcwH','941159LHsDgg','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20--help\x0a\x20\x20','includes','Equivalent\x20command:\x20','--help'];a135_0x4c41=function(){return _0x385099;};return a135_0x4c41();}import{CLI_BIN_NAME}from'../constant/cli.js';function a135_0x414d(_0x4cea3f,_0x2d9523){_0x4cea3f=_0x4cea3f-0xc7;const _0x4c4163=a135_0x4c41();let _0x414d44=_0x4c4163[_0x4cea3f];return _0x414d44;}export function camelCaseFlagsToKebab(_0x239667){const _0xe52d21=a135_0x414d,_0x3ca11f=[];for(const [_0xf64e2c,_0x5db73b]of Object[_0xe52d21(0xe0)](_0x239667)){if(_0x5db73b===!![]){const _0x42fb53=_0xf64e2c['replace'](/([A-Z])/g,_0xe52d21(0xd4))[_0xe52d21(0xe8)]();_0x3ca11f[_0xe52d21(0xdb)](_0x42fb53);}}return _0x3ca11f;}export function parseDynamicFlags(){const _0x5f2229=a135_0x414d,_0x3aea96=[];for(let _0x44310f=0x3;_0x44310f<process[_0x5f2229(0xd8)][_0x5f2229(0xda)];_0x44310f++){const _0x5c0e3d=process['argv'][_0x44310f];if(_0x5c0e3d&&_0x5c0e3d[_0x5f2229(0xdc)]('--')){const _0x277dd0=_0x5c0e3d[_0x5f2229(0xe4)](0x2);_0x277dd0&&!_0x277dd0[_0x5f2229(0xed)]('=')&&_0x3aea96[_0x5f2229(0xdb)](_0x277dd0);}}return _0x3aea96;}export function getAllProvidedFlags(_0x266139){const _0x1a5732=camelCaseFlagsToKebab(_0x266139),_0x44d469=parseDynamicFlags(),_0x54d5fa=new Set([..._0x1a5732,..._0x44d469]);return Array['from'](_0x54d5fa);}export function normalizeLegacyBffSaveFlags(_0x17206b){const _0x32b837=a135_0x414d,_0x3d26b1=new Set(_0x17206b);return _0x3d26b1[_0x32b837(0xe3)](_0x32b837(0xcc))&&_0x3d26b1['add'](_0x32b837(0xd9)),Array[_0x32b837(0xd2)](_0x3d26b1);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x1c9f86,_0x28fde4,_0x8b61bb){const _0x573b27=a135_0x414d;logger[_0x573b27(0xe1)](process['cwd']());if(_0x8b61bb?.[_0x573b27(0xd3)]||_0x1c9f86===_0x573b27(0xc8)){showHelp();return;}console[_0x573b27(0xdf)](_0x573b27(0xcb)+(_0x1c9f86||'(empty)')),console[_0x573b27(0xce)](_0x573b27(0xd1)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xeb)),console[_0x573b27(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xd6)),console[_0x573b27(0xce)](''),console[_0x573b27(0xce)](_0x573b27(0xc7)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x573b27(0xdf)](_0x573b27(0xd0),_0x573b27(0xcd)+_0x1c9f86),process[_0x573b27(0xe5)](0x1);}function showHelp(){const _0x4a0460=a135_0x414d;console[_0x4a0460(0xce)](_0x4a0460(0xe2)+CLI_BIN_NAME+_0x4a0460(0xec)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4a0460(0xc9));}
@@ -1 +1 @@
1
- const a130_0x10dca6=a130_0x8ce4;(function(_0x2c800b,_0x4b4965){const _0x14dc9f=a130_0x8ce4,_0x562b04=_0x2c800b();while(!![]){try{const _0x2be0f7=parseInt(_0x14dc9f(0x1b5))/0x1+parseInt(_0x14dc9f(0x1b0))/0x2*(-parseInt(_0x14dc9f(0x19b))/0x3)+parseInt(_0x14dc9f(0x1a8))/0x4+parseInt(_0x14dc9f(0x1af))/0x5+parseInt(_0x14dc9f(0x1ad))/0x6*(-parseInt(_0x14dc9f(0x19f))/0x7)+parseInt(_0x14dc9f(0x1ae))/0x8+parseInt(_0x14dc9f(0x1ac))/0x9*(parseInt(_0x14dc9f(0x1b1))/0xa);if(_0x2be0f7===_0x4b4965)break;else _0x562b04['push'](_0x562b04['shift']());}catch(_0x5bf488){_0x562b04['push'](_0x562b04['shift']());}}}(a130_0x50a4,0x7e9cf));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';function a130_0x8ce4(_0x29fe4c,_0x28fd42){_0x29fe4c=_0x29fe4c-0x19b;const _0x50a4f0=a130_0x50a4();let _0x8ce4f=_0x50a4f0[_0x29fe4c];return _0x8ce4f;}export const NPX_SKILLS_SUBCOMMAND_ADD=a130_0x10dca6(0x1b9);export const NPX_SKILLS_FLAG_SKILL=a130_0x10dca6(0x1a9);export const RABETBASE_SKILL_SOURCE=a130_0x10dca6(0x1a6);export const DEFAULT_RABETBASE_SKILL_NAME=a130_0x10dca6(0x1a2);export function buildNpxSkillsAddArgv(_0x162d43=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x162d43];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a130_0x10dca6(0x1a4),...buildNpxSkillsAddArgv()]['join']('\x20');function a130_0x50a4(){const _0x3d9533=['3652504phMBqE','1208935JSxrQw','4MdqwIu','105980rTPymz','skill','log','remove','238180CsgRxb','pipe','stdio','status','add','909276NgNufw','inherit','--global','stderr','7pMxbDF','toString','exit\x20','Lovrabet','trim','npx','yes','lovrabet/lovrabet-skill','unknown','864280CdkFVB','--skill','join','stdout','387qqjoND','2901138doRxPX'];a130_0x50a4=function(){return _0x3d9533;};return a130_0x50a4();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x6076c4,_0x2cae11){const _0x5a5d9c=a130_0x10dca6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4b2d47=_0x2cae11?.[_0x5a5d9c(0x1b7)]??_0x5a5d9c(0x19c),_0x33ba5c=resolveNpmBin('npx'),_0x4d65d8=buildNpxSkillsAddArgv(_0x2cae11?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x10e54f=[_0x33ba5c,..._0x4d65d8]['join']('\x20');console['log']('*\x20'+_0x10e54f);const _0x53f27a=spawnSync(_0x33ba5c,_0x4d65d8,{'cwd':_0x6076c4,'stdio':_0x4b2d47,'env':process.env,'shell':![]}),_0x4eb288=_0x53f27a[_0x5a5d9c(0x1b8)];if(_0x4eb288===0x0)return{'ok':!![],'status':0x0};let _0x1120c8=_0x5a5d9c(0x1a1)+(_0x4eb288??'unknown');if(_0x4b2d47===_0x5a5d9c(0x1b6)){const _0x36c895=_0x53f27a[_0x5a5d9c(0x19e)]?_0x53f27a[_0x5a5d9c(0x19e)][_0x5a5d9c(0x1a0)]()[_0x5a5d9c(0x1a3)]():'',_0x11abb4=_0x53f27a[_0x5a5d9c(0x1ab)]?_0x53f27a[_0x5a5d9c(0x1ab)][_0x5a5d9c(0x1a0)]()['trim']():'';if(_0x36c895)_0x1120c8=_0x36c895;else{if(_0x11abb4)_0x1120c8=_0x11abb4;}}return{'ok':![],'status':_0x4eb288??null,'error':_0x1120c8};}export function runNpxSkillsRemove(_0x5c2687,_0x2e4a80){const _0x5a5a84=a130_0x10dca6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4b4a5e=_0x2e4a80?.['stdio']??_0x5a5a84(0x19c),_0xb51310=resolveNpmBin(_0x5a5a84(0x1a4)),_0x46f713=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5a5a84(0x1b4),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2e4a80?.[_0x5a5a84(0x1b2)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x2e4a80?.[_0x5a5a84(0x1a5)]?['-y']:[]],_0x5a0b16=[_0xb51310,..._0x46f713][_0x5a5a84(0x1aa)]('\x20');console[_0x5a5a84(0x1b3)]('*\x20'+_0x5a0b16);const _0x4f67ef=spawnSync(_0xb51310,_0x46f713,{'cwd':_0x5c2687,'stdio':_0x4b4a5e,'env':process.env,'shell':![]}),_0x3ae59f=_0x4f67ef[_0x5a5a84(0x1b8)];if(_0x3ae59f===0x0)return{'ok':!![],'status':0x0};let _0x12cb2b=_0x5a5a84(0x1a1)+(_0x3ae59f??_0x5a5a84(0x1a7));if(_0x4b4a5e===_0x5a5a84(0x1b6)){const _0x20d856=_0x4f67ef[_0x5a5a84(0x19e)]?_0x4f67ef[_0x5a5a84(0x19e)][_0x5a5a84(0x1a0)]()[_0x5a5a84(0x1a3)]():'',_0x47ad11=_0x4f67ef[_0x5a5a84(0x1ab)]?_0x4f67ef[_0x5a5a84(0x1ab)][_0x5a5a84(0x1a0)]()[_0x5a5a84(0x1a3)]():'';if(_0x20d856)_0x12cb2b=_0x20d856;else{if(_0x47ad11)_0x12cb2b=_0x47ad11;}}return{'ok':![],'status':_0x3ae59f??null,'error':_0x12cb2b};}export function runNpxSkillsAddGlobal(_0x1bd765,_0x53206f,_0x2b8b84){const _0x4cf384=a130_0x10dca6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x51f865=_0x2b8b84?.[_0x4cf384(0x1b7)]??_0x4cf384(0x19c),_0x36df39=resolveNpmBin(_0x4cf384(0x1a4)),_0x42c08e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53206f,_0x4cf384(0x19d),..._0x2b8b84?.[_0x4cf384(0x1a5)]?['-y']:[]],_0x98c86f=[_0x36df39,..._0x42c08e]['join']('\x20');console[_0x4cf384(0x1b3)]('*\x20'+_0x98c86f);const _0x23fcbe=spawnSync(_0x36df39,_0x42c08e,{'cwd':_0x1bd765,'stdio':_0x51f865,'env':process.env,'shell':![]}),_0x4aff22=_0x23fcbe[_0x4cf384(0x1b8)];if(_0x4aff22===0x0)return{'ok':!![],'status':0x0};let _0xed1c35=_0x4cf384(0x1a1)+(_0x4aff22??_0x4cf384(0x1a7));if(_0x51f865===_0x4cf384(0x1b6)){const _0x13d536=_0x23fcbe[_0x4cf384(0x19e)]?_0x23fcbe[_0x4cf384(0x19e)][_0x4cf384(0x1a0)]()[_0x4cf384(0x1a3)]():'',_0x4bbf80=_0x23fcbe[_0x4cf384(0x1ab)]?_0x23fcbe[_0x4cf384(0x1ab)]['toString']()['trim']():'';if(_0x13d536)_0xed1c35=_0x13d536;else{if(_0x4bbf80)_0xed1c35=_0x4bbf80;}}return{'ok':![],'status':_0x4aff22??null,'error':_0xed1c35};}
1
+ const a136_0x4a9f4a=a136_0x193c;(function(_0x2a76c0,_0x1d1616){const _0x29e87b=a136_0x193c,_0x2a6118=_0x2a76c0();while(!![]){try{const _0xcede2e=-parseInt(_0x29e87b(0x7a))/0x1*(parseInt(_0x29e87b(0x84))/0x2)+parseInt(_0x29e87b(0x79))/0x3+-parseInt(_0x29e87b(0x8b))/0x4*(-parseInt(_0x29e87b(0x78))/0x5)+parseInt(_0x29e87b(0x8a))/0x6+parseInt(_0x29e87b(0x86))/0x7+parseInt(_0x29e87b(0x7d))/0x8+-parseInt(_0x29e87b(0x81))/0x9;if(_0xcede2e===_0x1d1616)break;else _0x2a6118['push'](_0x2a6118['shift']());}catch(_0x57d350){_0x2a6118['push'](_0x2a6118['shift']());}}}(a136_0xfa29,0x5701b));function a136_0xfa29(){const _0x3d9d80=['yes','1903872xwLEWb','1489652SzdejB','log','exit\x20','stderr','--skill','lovrabet/lovrabet-skill','pipe','inherit','5YVbSjI','1681356eKCRyT','224947hUxQFx','unknown','status','1420440svLNQl','stdio','join','npx','13895046zMLFwn','trim','Lovrabet','2BpOAwF','skills','4882416MRlzXn','toString','stdout'];a136_0xfa29=function(){return _0x3d9d80;};return a136_0xfa29();}function a136_0x193c(_0x4a55ad,_0x5ef56e){_0x4a55ad=_0x4a55ad-0x71;const _0xfa29a2=a136_0xfa29();let _0x193ced=_0xfa29a2[_0x4a55ad];return _0x193ced;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x4a9f4a(0x85);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a136_0x4a9f4a(0x74);export const RABETBASE_SKILL_SOURCE=a136_0x4a9f4a(0x75);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x4a9f4a(0x83);export function buildNpxSkillsAddArgv(_0x114141=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x114141];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x4a9f4a(0x80),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x50e30c,_0x5e84e2){const _0x3204b2=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5340b7=_0x5e84e2?.['stdio']??_0x3204b2(0x77),_0x165919=resolveNpmBin(_0x3204b2(0x80)),_0x10cfdb=buildNpxSkillsAddArgv(_0x5e84e2?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x1197d4=[_0x165919,..._0x10cfdb]['join']('\x20');console['log']('*\x20'+_0x1197d4);const _0x1e574d=spawnSync(_0x165919,_0x10cfdb,{'cwd':_0x50e30c,'stdio':_0x5340b7,'env':process.env,'shell':![]}),_0x88eb48=_0x1e574d[_0x3204b2(0x7c)];if(_0x88eb48===0x0)return{'ok':!![],'status':0x0};let _0x3dbe32=_0x3204b2(0x72)+(_0x88eb48??'unknown');if(_0x5340b7==='pipe'){const _0x10175d=_0x1e574d['stderr']?_0x1e574d['stderr'][_0x3204b2(0x87)]()['trim']():'',_0x49ceb6=_0x1e574d['stdout']?_0x1e574d[_0x3204b2(0x88)][_0x3204b2(0x87)]()[_0x3204b2(0x82)]():'';if(_0x10175d)_0x3dbe32=_0x10175d;else{if(_0x49ceb6)_0x3dbe32=_0x49ceb6;}}return{'ok':![],'status':_0x88eb48??null,'error':_0x3dbe32};}export function runNpxSkillsRemove(_0x375639,_0x12041d){const _0x21d822=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20de70=_0x12041d?.[_0x21d822(0x7e)]??'inherit',_0x3ffe61=resolveNpmBin(_0x21d822(0x80)),_0x13a2d3=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x12041d?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x12041d?.[_0x21d822(0x89)]?['-y']:[]],_0x4dc43b=[_0x3ffe61,..._0x13a2d3][_0x21d822(0x7f)]('\x20');console[_0x21d822(0x71)]('*\x20'+_0x4dc43b);const _0x53310a=spawnSync(_0x3ffe61,_0x13a2d3,{'cwd':_0x375639,'stdio':_0x20de70,'env':process.env,'shell':![]}),_0x825d2b=_0x53310a[_0x21d822(0x7c)];if(_0x825d2b===0x0)return{'ok':!![],'status':0x0};let _0x275bfc=_0x21d822(0x72)+(_0x825d2b??_0x21d822(0x7b));if(_0x20de70==='pipe'){const _0x562876=_0x53310a[_0x21d822(0x73)]?_0x53310a[_0x21d822(0x73)]['toString']()[_0x21d822(0x82)]():'',_0xb48189=_0x53310a[_0x21d822(0x88)]?_0x53310a[_0x21d822(0x88)]['toString']()[_0x21d822(0x82)]():'';if(_0x562876)_0x275bfc=_0x562876;else{if(_0xb48189)_0x275bfc=_0xb48189;}}return{'ok':![],'status':_0x825d2b??null,'error':_0x275bfc};}export function runNpxSkillsAddGlobal(_0x1cfefb,_0x12c5ca,_0x5b9233){const _0x3c462d=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x190a8e=_0x5b9233?.[_0x3c462d(0x7e)]??_0x3c462d(0x77),_0x29fdb8=resolveNpmBin(_0x3c462d(0x80)),_0x248baf=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12c5ca,'--global',..._0x5b9233?.[_0x3c462d(0x89)]?['-y']:[]],_0x87caa=[_0x29fdb8,..._0x248baf][_0x3c462d(0x7f)]('\x20');console[_0x3c462d(0x71)]('*\x20'+_0x87caa);const _0x148c63=spawnSync(_0x29fdb8,_0x248baf,{'cwd':_0x1cfefb,'stdio':_0x190a8e,'env':process.env,'shell':![]}),_0x321db6=_0x148c63[_0x3c462d(0x7c)];if(_0x321db6===0x0)return{'ok':!![],'status':0x0};let _0x59dade=_0x3c462d(0x72)+(_0x321db6??_0x3c462d(0x7b));if(_0x190a8e===_0x3c462d(0x76)){const _0xed981b=_0x148c63['stderr']?_0x148c63[_0x3c462d(0x73)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'',_0x3764c8=_0x148c63['stdout']?_0x148c63[_0x3c462d(0x88)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'';if(_0xed981b)_0x59dade=_0xed981b;else{if(_0x3764c8)_0x59dade=_0x3764c8;}}return{'ok':![],'status':_0x321db6??null,'error':_0x59dade};}
@@ -1 +1 @@
1
- (function(_0x39a795,_0x5481a2){const _0x60d683=a131_0x178c,_0x22c53a=_0x39a795();while(!![]){try{const _0xfbf5f1=-parseInt(_0x60d683(0x19e))/0x1+parseInt(_0x60d683(0x1a9))/0x2*(parseInt(_0x60d683(0x1ad))/0x3)+parseInt(_0x60d683(0x1a7))/0x4*(parseInt(_0x60d683(0x1a2))/0x5)+parseInt(_0x60d683(0x1a6))/0x6*(parseInt(_0x60d683(0x1b2))/0x7)+-parseInt(_0x60d683(0x1af))/0x8*(parseInt(_0x60d683(0x1a8))/0x9)+parseInt(_0x60d683(0x1a4))/0xa+-parseInt(_0x60d683(0x1b0))/0xb*(parseInt(_0x60d683(0x1ac))/0xc);if(_0xfbf5f1===_0x5481a2)break;else _0x22c53a['push'](_0x22c53a['shift']());}catch(_0x1abaf9){_0x22c53a['push'](_0x22c53a['shift']());}}}(a131_0x28ed,0x25fc3));function a131_0x28ed(){const _0x205892=['durationMs','1421040XoPVcJ','stringify','265494UxIinu','376sWUFlm','90819khSzNR','263126EabsMz','service','[REDACTED]','1092QeWpmq','3jHpgKq','command','8wfiHeb','46519rbiDQi','message','21EKcTtE','error','test','flags','151057YwfAPU','rabetbase.command','some','entries','15700LFDbyR'];a131_0x28ed=function(){return _0x205892;};return a131_0x28ed();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a131_0x178c(_0x103e95,_0x34b2da){_0x103e95=_0x103e95-0x19b;const _0x28ed96=a131_0x28ed();let _0x178c5d=_0x28ed96[_0x103e95];return _0x178c5d;}function isSensitiveKey(_0x1b6d1b){const _0x5a7f2b=a131_0x178c;return SENSITIVE_PATTERNS[_0x5a7f2b(0x1a0)](_0x512fa9=>_0x512fa9[_0x5a7f2b(0x19c)](_0x1b6d1b));}function sanitizeFlags(_0x39c1a6){const _0x29adbe=a131_0x178c,_0x1d8759={};for(const [_0x4b1a9e,_0x1f3217]of Object[_0x29adbe(0x1a1)](_0x39c1a6)){isSensitiveKey(_0x4b1a9e)?_0x1d8759[_0x4b1a9e]=_0x1f3217!=null&&_0x1f3217!==''?_0x29adbe(0x1ab):_0x1f3217:_0x1d8759[_0x4b1a9e]=_0x1f3217;}return _0x1d8759;}export async function reportCommandTrace(_0x3f4e5e){const _0x333bb6=a131_0x178c;try{const _0x11163d=sanitizeFlags(_0x3f4e5e[_0x333bb6(0x19d)]);await sendCliTraceLog({'spanName':_0x333bb6(0x19f),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3f4e5e[_0x333bb6(0x1aa)],'command.name':_0x3f4e5e[_0x333bb6(0x1ae)],'command.flags':JSON[_0x333bb6(0x1a5)](_0x11163d),..._0x3f4e5e[_0x333bb6(0x1a3)]!=null?{'command.duration_ms':_0x3f4e5e[_0x333bb6(0x1a3)]}:{},..._0x3f4e5e[_0x333bb6(0x19b)]?{'command.error':_0x3f4e5e['error']instanceof Error?_0x3f4e5e[_0x333bb6(0x19b)][_0x333bb6(0x1b1)]:String(_0x3f4e5e[_0x333bb6(0x19b)])}:{}}});}catch{}}
1
+ function a137_0x47c3(){const _0x56796c=['rabetbase.command','126279ytcOUs','10381840LQoqxD','error','238677EyPFyK','test','16rpLNAm','service','868875HTQFbY','412218dpmFFT','command','message','durationMs','629745NNlZjF','3550314uDBxWS','[REDACTED]'];a137_0x47c3=function(){return _0x56796c;};return a137_0x47c3();}(function(_0x5985b5,_0x4e3a6d){const _0x56f5f1=a137_0x5e89,_0x26dda2=_0x5985b5();while(!![]){try{const _0x58e2b9=parseInt(_0x56f5f1(0x1a5))/0x1+parseInt(_0x56f5f1(0x1aa))/0x2+-parseInt(_0x56f5f1(0x1a2))/0x3+parseInt(_0x56f5f1(0x1a7))/0x4*(parseInt(_0x56f5f1(0x1ae))/0x5)+parseInt(_0x56f5f1(0x1af))/0x6+parseInt(_0x56f5f1(0x1a9))/0x7+-parseInt(_0x56f5f1(0x1a3))/0x8;if(_0x58e2b9===_0x4e3a6d)break;else _0x26dda2['push'](_0x26dda2['shift']());}catch(_0x4dfd10){_0x26dda2['push'](_0x26dda2['shift']());}}}(a137_0x47c3,0x4f3fb));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a137_0x5e89(_0x4d6afc,_0x597683){_0x4d6afc=_0x4d6afc-0x1a0;const _0x47c3ee=a137_0x47c3();let _0x5e8933=_0x47c3ee[_0x4d6afc];return _0x5e8933;}function isSensitiveKey(_0x63253a){const _0x314e81=a137_0x5e89;return SENSITIVE_PATTERNS['some'](_0x1ffc9d=>_0x1ffc9d[_0x314e81(0x1a6)](_0x63253a));}function sanitizeFlags(_0x58c6ad){const _0xe21202=a137_0x5e89,_0x31eed2={};for(const [_0x88ccd9,_0x136c2c]of Object['entries'](_0x58c6ad)){isSensitiveKey(_0x88ccd9)?_0x31eed2[_0x88ccd9]=_0x136c2c!=null&&_0x136c2c!==''?_0xe21202(0x1a0):_0x136c2c:_0x31eed2[_0x88ccd9]=_0x136c2c;}return _0x31eed2;}export async function reportCommandTrace(_0x3847aa){const _0x337951=a137_0x5e89;try{const _0x2bccdd=sanitizeFlags(_0x3847aa['flags']);await sendCliTraceLog({'spanName':_0x337951(0x1a1),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3847aa[_0x337951(0x1a8)],'command.name':_0x3847aa[_0x337951(0x1ab)],'command.flags':JSON['stringify'](_0x2bccdd),..._0x3847aa['durationMs']!=null?{'command.duration_ms':_0x3847aa[_0x337951(0x1ad)]}:{},..._0x3847aa['error']?{'command.error':_0x3847aa[_0x337951(0x1a4)]instanceof Error?_0x3847aa[_0x337951(0x1a4)][_0x337951(0x1ac)]:String(_0x3847aa[_0x337951(0x1a4)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0xaedfe1,_0x4488ea){var _0x345aaf=a132_0x7e61,_0x51ac11=_0xaedfe1();while(!![]){try{var _0x141c1c=parseInt(_0x345aaf(0x146))/0x1+parseInt(_0x345aaf(0x147))/0x2*(-parseInt(_0x345aaf(0x145))/0x3)+-parseInt(_0x345aaf(0x143))/0x4+-parseInt(_0x345aaf(0x142))/0x5+-parseInt(_0x345aaf(0x13b))/0x6+-parseInt(_0x345aaf(0x13c))/0x7*(parseInt(_0x345aaf(0x141))/0x8)+parseInt(_0x345aaf(0x13f))/0x9;if(_0x141c1c===_0x4488ea)break;else _0x51ac11['push'](_0x51ac11['shift']());}catch(_0x592c5d){_0x51ac11['push'](_0x51ac11['shift']());}}}(a132_0x4b54,0x90e0c));function a132_0x7e61(_0xb78597,_0x3d2729){_0xb78597=_0xb78597-0x13b;var _0x4b54c8=a132_0x4b54();var _0x7e6170=_0x4b54c8[_0xb78597];return _0x7e6170;}function a132_0x4b54(){var _0x1c4845=['45DdOQHs','769472pErusj','23738OlHTWB','2092926wVOaZi','14sbMgcv','error','service','24519564RHJPKb','Failed\x20to\x20report\x20CLI\x20help\x20trace:','3732696rOsrmL','5025380YedOUa','1741368QiMkTB','cli.help'];a132_0x4b54=function(){return _0x1c4845;};return a132_0x4b54();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x32d2bd,_0x484cf9){var _0x307f6d=a132_0x7e61;try{await sendCliTraceLog({'spanName':_0x307f6d(0x144),'logData':{'rabetbase.help.kind':_0x32d2bd,..._0x484cf9?.[_0x307f6d(0x13e)]&&{'rabetbase.help.service':_0x484cf9[_0x307f6d(0x13e)]}}});}catch(_0x30c13e){console[_0x307f6d(0x13d)](_0x307f6d(0x140),_0x30c13e);}}
1
+ (function(_0xd0557b,_0x11b8d3){var _0x463c5c=a138_0x2dbd,_0x751485=_0xd0557b();while(!![]){try{var _0x323aa3=-parseInt(_0x463c5c(0xbf))/0x1+parseInt(_0x463c5c(0xc0))/0x2+-parseInt(_0x463c5c(0xca))/0x3+parseInt(_0x463c5c(0xcb))/0x4*(-parseInt(_0x463c5c(0xc5))/0x5)+parseInt(_0x463c5c(0xc1))/0x6*(parseInt(_0x463c5c(0xc4))/0x7)+-parseInt(_0x463c5c(0xc3))/0x8*(parseInt(_0x463c5c(0xc8))/0x9)+-parseInt(_0x463c5c(0xcc))/0xa*(-parseInt(_0x463c5c(0xbe))/0xb);if(_0x323aa3===_0x11b8d3)break;else _0x751485['push'](_0x751485['shift']());}catch(_0x5acbb4){_0x751485['push'](_0x751485['shift']());}}}(a138_0xcd6c,0xd3e33));function a138_0xcd6c(){var _0xe17034=['26785170CFCfvo','11MdHNML','1347947gVSZJn','2900718XWeVPj','1623666VhGwgx','service','265704qnNXCC','21zGskoU','6290PGwRhz','error','cli.help','162dITwaS','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1539069LYOxLr','5132oZnKkS'];a138_0xcd6c=function(){return _0xe17034;};return a138_0xcd6c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a138_0x2dbd(_0x24b679,_0x419acc){_0x24b679=_0x24b679-0xbe;var _0xcd6cd=a138_0xcd6c();var _0x2dbda8=_0xcd6cd[_0x24b679];return _0x2dbda8;}export async function reportCliHelpTrace(_0x40f67c,_0x4787cc){var _0xe60831=a138_0x2dbd;try{await sendCliTraceLog({'spanName':_0xe60831(0xc7),'logData':{'rabetbase.help.kind':_0x40f67c,..._0x4787cc?.[_0xe60831(0xc2)]&&{'rabetbase.help.service':_0x4787cc[_0xe60831(0xc2)]}}});}catch(_0x4ba219){console[_0xe60831(0xc6)](_0xe60831(0xc9),_0x4ba219);}}